@itwin/appui-react 3.0.0-dev.98 → 3.0.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 (929) hide show
  1. package/CHANGELOG.md +188 -16
  2. package/LICENSE.md +1 -1
  3. package/README.md +3 -3
  4. package/lib/cjs/appui-react/UiFramework.d.ts +37 -22
  5. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  6. package/lib/cjs/appui-react/UiFramework.js +53 -38
  7. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  8. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts +3 -3
  9. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  10. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js +3 -3
  11. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  12. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  14. package/lib/cjs/appui-react/accudraw/Calculator.js +1 -1
  15. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  16. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +4 -4
  17. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  18. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +5 -4
  19. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  20. package/lib/cjs/appui-react/backstage/Backstage.d.ts +0 -2
  21. package/lib/cjs/appui-react/backstage/Backstage.d.ts.map +1 -1
  22. package/lib/cjs/appui-react/backstage/Backstage.js.map +1 -1
  23. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts +2 -0
  24. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  25. package/lib/cjs/appui-react/backstage/BackstageComposer.js +26 -8
  26. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  27. package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts +2 -2
  28. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +1 -1
  29. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  30. package/lib/cjs/appui-react/backstage/BackstageItemProps.d.ts +3 -3
  31. package/lib/cjs/appui-react/backstage/BackstageItemProps.js +1 -1
  32. package/lib/cjs/appui-react/backstage/BackstageItemProps.js.map +1 -1
  33. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts +5 -5
  34. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +3 -3
  35. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  36. package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts +2 -0
  37. package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts.map +1 -1
  38. package/lib/cjs/appui-react/backstage/CommandLaunch.js +1 -0
  39. package/lib/cjs/appui-react/backstage/CommandLaunch.js.map +1 -1
  40. package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts +4 -0
  41. package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -1
  42. package/lib/cjs/appui-react/backstage/FrontstageLaunch.js +5 -6
  43. package/lib/cjs/appui-react/backstage/FrontstageLaunch.js.map +1 -1
  44. package/lib/cjs/appui-react/backstage/Separator.d.ts +1 -0
  45. package/lib/cjs/appui-react/backstage/Separator.d.ts.map +1 -1
  46. package/lib/cjs/appui-react/backstage/Separator.js +3 -2
  47. package/lib/cjs/appui-react/backstage/Separator.js.map +1 -1
  48. package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts +1 -1
  49. package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  50. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js +4 -5
  51. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  52. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  53. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  54. package/lib/cjs/appui-react/configurableui/state.d.ts +10 -3
  55. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  56. package/lib/cjs/appui-react/configurableui/state.js +15 -2
  57. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  58. package/lib/cjs/appui-react/content/ContentControl.d.ts +1 -1
  59. package/lib/cjs/appui-react/content/ContentControl.d.ts.map +1 -1
  60. package/lib/cjs/appui-react/content/ContentControl.js +2 -2
  61. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  62. package/lib/cjs/appui-react/content/ContentLayout.d.ts +2 -2
  63. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  64. package/lib/cjs/appui-react/content/ContentLayout.js +4 -3
  65. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  66. package/lib/cjs/appui-react/content/ContentViewManager.d.ts +1 -1
  67. package/lib/cjs/appui-react/content/ContentViewManager.d.ts.map +1 -1
  68. package/lib/cjs/appui-react/content/ContentViewManager.js +3 -3
  69. package/lib/cjs/appui-react/content/ContentViewManager.js.map +1 -1
  70. package/lib/cjs/appui-react/content/IModelViewport.d.ts +13 -1
  71. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  72. package/lib/cjs/appui-react/content/IModelViewport.js +18 -5
  73. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  74. package/lib/cjs/appui-react/content/{SavedViewLayout.d.ts → StageContentLayout.d.ts} +11 -11
  75. package/lib/cjs/appui-react/content/StageContentLayout.d.ts.map +1 -0
  76. package/lib/cjs/appui-react/content/{SavedViewLayout.js → StageContentLayout.js} +19 -17
  77. package/lib/cjs/appui-react/content/StageContentLayout.js.map +1 -0
  78. package/lib/cjs/appui-react/content/{SavedView.d.ts → ViewStateHelper.d.ts} +7 -7
  79. package/lib/cjs/appui-react/content/ViewStateHelper.d.ts.map +1 -0
  80. package/lib/cjs/appui-react/content/{SavedView.js → ViewStateHelper.js} +4 -4
  81. package/lib/cjs/appui-react/content/ViewStateHelper.js.map +1 -0
  82. package/lib/cjs/appui-react/content/split-pane/Pane.d.ts +21 -0
  83. package/lib/cjs/appui-react/content/split-pane/Pane.d.ts.map +1 -0
  84. package/lib/cjs/appui-react/content/split-pane/Pane.js +43 -0
  85. package/lib/cjs/appui-react/content/split-pane/Pane.js.map +1 -0
  86. package/lib/cjs/appui-react/content/split-pane/Resizer.d.ts +23 -0
  87. package/lib/cjs/appui-react/content/split-pane/Resizer.d.ts.map +1 -0
  88. package/lib/cjs/appui-react/content/split-pane/Resizer.js +39 -0
  89. package/lib/cjs/appui-react/content/split-pane/Resizer.js.map +1 -0
  90. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +70 -0
  91. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -0
  92. package/lib/cjs/appui-react/content/split-pane/SplitPane.js +243 -0
  93. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -0
  94. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +1 -2
  95. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  96. package/lib/cjs/appui-react/cursor/CursorInformation.js +1 -1
  97. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  98. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  99. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  100. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +2 -2
  101. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  102. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js +3 -3
  103. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  104. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +1 -1
  105. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  106. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -2
  107. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  108. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  109. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +3 -0
  110. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  111. package/lib/cjs/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -1
  112. package/lib/cjs/appui-react/dragdrop/ZoneTargets.js +8 -4
  113. package/lib/cjs/appui-react/dragdrop/ZoneTargets.js.map +1 -1
  114. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +2 -2
  115. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  116. package/lib/cjs/appui-react/feedback/ElementTooltip.js +4 -2
  117. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  118. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +1 -0
  119. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  120. package/lib/cjs/appui-react/frontstage/Frontstage.js +32 -13
  121. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -1
  122. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  123. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  124. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js +15 -1
  125. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  126. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +15 -2
  127. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  128. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +138 -3
  129. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  130. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  131. package/lib/cjs/appui-react/frontstage/FrontstageManager.js +2 -1
  132. package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +1 -1
  133. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +6 -0
  134. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  135. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  136. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  137. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  138. package/lib/cjs/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  139. package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
  140. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts +12 -9
  141. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -1
  142. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js +19 -21
  143. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  144. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +1 -1
  145. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -1
  146. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js +6 -7
  147. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -1
  148. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +3 -3
  149. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  150. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +1 -1
  151. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  152. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts +0 -5
  153. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  154. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  155. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +1 -1
  156. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -1
  157. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +81 -68
  158. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -1
  159. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  160. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  161. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +2 -1
  162. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  163. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +1 -1
  164. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  165. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts +5 -5
  166. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -1
  167. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js +3 -2
  168. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -1
  169. package/lib/cjs/appui-react/messages/AppNotificationManager.d.ts +1 -1
  170. package/lib/cjs/appui-react/messages/AppNotificationManager.js +1 -1
  171. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  172. package/lib/cjs/appui-react/messages/MessageManager.d.ts +1 -2
  173. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  174. package/lib/cjs/appui-react/messages/MessageManager.js +15 -9
  175. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  176. package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
  177. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  178. package/lib/cjs/appui-react/messages/Pointer.js +4 -3
  179. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  180. package/lib/cjs/appui-react/messages/ToastMessage.js +2 -1
  181. package/lib/cjs/appui-react/messages/ToastMessage.js.map +1 -1
  182. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +1 -1
  183. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  184. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +2 -2
  185. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  186. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -1
  187. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  188. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +2 -1
  189. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  190. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +6 -4
  191. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  192. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +3 -0
  193. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  194. package/lib/cjs/appui-react/pickers/ListPicker.js +24 -9
  195. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  196. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +1 -1
  197. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  198. package/lib/cjs/appui-react/pickers/ViewSelector.js +9 -9
  199. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  200. package/lib/cjs/appui-react/popup/CardPopup.d.ts +7 -4
  201. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  202. package/lib/cjs/appui-react/popup/CardPopup.js +3 -2
  203. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  204. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts +3 -2
  205. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  206. package/lib/cjs/appui-react/popup/InputEditorPopup.js +1 -1
  207. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  208. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +6 -6
  209. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  210. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +3 -2
  211. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  212. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js +1 -1
  213. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  214. package/lib/cjs/appui-react/popup/PopupManager.d.ts +10 -10
  215. package/lib/cjs/appui-react/popup/PopupManager.d.ts.map +1 -1
  216. package/lib/cjs/appui-react/popup/PopupManager.js +4 -4
  217. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  218. package/lib/cjs/appui-react/popup/PositionPopup.d.ts +5 -3
  219. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/popup/PositionPopup.js +3 -2
  221. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  222. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts +3 -2
  223. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  224. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js +1 -1
  225. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  226. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts +4 -3
  227. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/popup/ToolbarPopup.js +2 -2
  229. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  230. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +1 -1
  231. package/lib/cjs/appui-react/redux/SessionState.d.ts +0 -6
  232. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  233. package/lib/cjs/appui-react/redux/SessionState.js +0 -8
  234. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  235. package/lib/cjs/appui-react/redux/StateManager.d.ts +1 -1
  236. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  237. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js +7 -7
  238. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  239. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  240. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js +1 -1
  241. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  242. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  243. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +28 -19
  244. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  245. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  246. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  247. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  248. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +2 -2
  249. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  250. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -1
  251. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  252. package/lib/cjs/appui-react/shared/ItemProps.d.ts +2 -2
  253. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  254. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +1 -1
  255. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/shared/ToolItemDef.js +2 -2
  257. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  258. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -1
  259. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js +1 -0
  260. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -1
  261. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts +2 -2
  262. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  263. package/lib/cjs/appui-react/stagepanels/StagePanel.js +1 -0
  264. package/lib/cjs/appui-react/stagepanels/StagePanel.js.map +1 -1
  265. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +26 -2
  266. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  267. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +24 -3
  268. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  269. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts +2 -2
  270. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -1
  271. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js +2 -1
  272. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js.map +1 -1
  273. package/lib/cjs/appui-react/statusbar/StatusBar.js +2 -1
  274. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  275. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  276. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +17 -5
  277. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  278. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  279. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js +1 -1
  280. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  281. package/lib/cjs/appui-react/statusfields/Indicator.d.ts +15 -14
  282. package/lib/cjs/appui-react/statusfields/Indicator.d.ts.map +1 -1
  283. package/lib/cjs/appui-react/statusfields/Indicator.js +23 -21
  284. package/lib/cjs/appui-react/statusfields/Indicator.js.map +1 -1
  285. package/lib/cjs/appui-react/statusfields/Indicator.scss +29 -18
  286. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  287. package/lib/cjs/appui-react/statusfields/MessageCenter.js +2 -1
  288. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  289. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +1 -0
  290. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  291. package/lib/cjs/appui-react/statusfields/SelectionScope.js +6 -4
  292. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  293. package/lib/cjs/appui-react/statusfields/SelectionScope.scss +13 -3
  294. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +2 -10
  295. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  296. package/lib/cjs/appui-react/statusfields/SnapMode.js +4 -34
  297. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  298. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +0 -6
  299. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  300. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -25
  301. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  302. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +7 -7
  303. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  304. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +13 -12
  305. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  306. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +8 -3
  307. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts +2 -2
  308. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts.map +1 -1
  309. package/lib/cjs/appui-react/syncui/BooleanListener.js +2 -1
  310. package/lib/cjs/appui-react/syncui/BooleanListener.js.map +1 -1
  311. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +8 -18
  312. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  313. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +30 -103
  314. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  315. package/lib/cjs/appui-react/toolbar/ActionButtonItem.js +2 -1
  316. package/lib/cjs/appui-react/toolbar/ActionButtonItem.js.map +1 -1
  317. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  318. package/lib/cjs/appui-react/toolbar/ActionItemButton.js +2 -1
  319. package/lib/cjs/appui-react/toolbar/ActionItemButton.js.map +1 -1
  320. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js +24 -20
  321. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js.map +1 -1
  322. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  323. package/lib/cjs/appui-react/toolbar/GroupItem.js +33 -29
  324. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  325. package/lib/cjs/appui-react/toolbar/ToolButton.js +3 -2
  326. package/lib/cjs/appui-react/toolbar/ToolButton.js.map +1 -1
  327. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  328. package/lib/cjs/appui-react/toolbar/Toolbar.js +3 -2
  329. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  330. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  331. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +22 -20
  332. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  333. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -1
  334. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +4 -4
  335. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  336. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.d.ts +2 -2
  337. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js +2 -2
  338. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js.map +1 -1
  339. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +8 -10
  340. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  341. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +17 -36
  342. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  343. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +7 -9
  344. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  345. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +12 -20
  346. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  347. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +7 -9
  348. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  349. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +39 -50
  350. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  351. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.scss +4 -4
  352. package/lib/{esm/appui-react/uisettings → cjs/appui-react/uistate}/AppUiSettings.d.ts +11 -9
  353. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -0
  354. package/lib/cjs/appui-react/{uisettings → uistate}/AppUiSettings.js +12 -8
  355. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -0
  356. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
  357. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
  358. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js +59 -0
  359. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js.map +1 -0
  360. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts +20 -0
  361. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -0
  362. package/lib/cjs/appui-react/uistate/useUiStateStorage.js +38 -0
  363. package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -0
  364. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts +5 -5
  365. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  366. package/lib/cjs/appui-react/utils/UiShowHideManager.js +8 -8
  367. package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +1 -1
  368. package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
  369. package/lib/cjs/appui-react/widget-panels/Content.js +1 -4
  370. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  371. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +98 -8
  372. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  373. package/lib/cjs/appui-react/widget-panels/Frontstage.js +83 -93
  374. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  375. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts +1 -1
  376. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  377. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +22 -0
  378. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -0
  379. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +56 -0
  380. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -0
  381. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  382. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +1 -0
  383. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  384. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  385. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +3 -1
  386. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  387. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts +9 -0
  388. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
  389. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js +10 -0
  390. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  391. package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts.map +1 -1
  392. package/lib/cjs/appui-react/widgets/NavigationWidget.js +2 -1
  393. package/lib/cjs/appui-react/widgets/NavigationWidget.js.map +1 -1
  394. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +1 -0
  395. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  396. package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  397. package/lib/cjs/appui-react/widgets/StableWidgetDef.js +1 -1
  398. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  399. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js +2 -1
  400. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  401. package/lib/cjs/appui-react/widgets/ToolWidget.js +3 -2
  402. package/lib/cjs/appui-react/widgets/ToolWidget.js.map +1 -1
  403. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts +0 -12
  404. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  405. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js +1 -36
  406. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  407. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts +1 -0
  408. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -1
  409. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js +5 -2
  410. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  411. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts +0 -1
  412. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  413. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
  414. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  415. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -3
  416. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  417. package/lib/cjs/appui-react/widgets/WidgetDef.js +18 -7
  418. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  419. package/lib/cjs/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/widgets/WidgetHost.js +1 -0
  421. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  422. package/lib/cjs/appui-react/widgets/WidgetStack.d.ts.map +1 -1
  423. package/lib/cjs/appui-react/widgets/WidgetStack.js +2 -0
  424. package/lib/cjs/appui-react/widgets/WidgetStack.js.map +1 -1
  425. package/lib/cjs/appui-react/zones/FrameworkZone.js.map +1 -1
  426. package/lib/cjs/appui-react/zones/StatusBarZone.js.map +1 -1
  427. package/lib/cjs/appui-react/zones/Zone.d.ts +1 -1
  428. package/lib/cjs/appui-react/zones/Zone.d.ts.map +1 -1
  429. package/lib/cjs/appui-react/zones/Zone.js +2 -1
  430. package/lib/cjs/appui-react/zones/Zone.js.map +1 -1
  431. package/lib/cjs/appui-react/zones/ZoneDef.d.ts +4 -4
  432. package/lib/cjs/appui-react/zones/ZoneDef.d.ts.map +1 -1
  433. package/lib/cjs/appui-react/zones/ZoneDef.js +5 -4
  434. package/lib/cjs/appui-react/zones/ZoneDef.js.map +1 -1
  435. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts +1 -2
  436. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -1
  437. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js +3 -2
  438. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -1
  439. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -1
  440. package/lib/cjs/appui-react.d.ts +15 -18
  441. package/lib/cjs/appui-react.d.ts.map +1 -1
  442. package/lib/cjs/appui-react.js +15 -18
  443. package/lib/cjs/appui-react.js.map +1 -1
  444. package/lib/esm/appui-react/UiFramework.d.ts +37 -22
  445. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  446. package/lib/esm/appui-react/UiFramework.js +52 -37
  447. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  448. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts +3 -3
  449. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  450. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +3 -3
  451. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  452. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +1 -1
  453. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  454. package/lib/esm/appui-react/accudraw/Calculator.js +1 -1
  455. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  456. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +4 -4
  457. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  458. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +6 -5
  459. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  460. package/lib/esm/appui-react/backstage/Backstage.d.ts +0 -2
  461. package/lib/esm/appui-react/backstage/Backstage.d.ts.map +1 -1
  462. package/lib/esm/appui-react/backstage/Backstage.js.map +1 -1
  463. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts +2 -0
  464. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  465. package/lib/esm/appui-react/backstage/BackstageComposer.js +27 -9
  466. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  467. package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts +2 -2
  468. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +1 -1
  469. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  470. package/lib/esm/appui-react/backstage/BackstageItemProps.d.ts +3 -3
  471. package/lib/esm/appui-react/backstage/BackstageItemProps.js +1 -1
  472. package/lib/esm/appui-react/backstage/BackstageItemProps.js.map +1 -1
  473. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +5 -5
  474. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +3 -3
  475. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  476. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts +2 -0
  477. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts.map +1 -1
  478. package/lib/esm/appui-react/backstage/CommandLaunch.js +1 -0
  479. package/lib/esm/appui-react/backstage/CommandLaunch.js.map +1 -1
  480. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts +4 -0
  481. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -1
  482. package/lib/esm/appui-react/backstage/FrontstageLaunch.js +5 -6
  483. package/lib/esm/appui-react/backstage/FrontstageLaunch.js.map +1 -1
  484. package/lib/esm/appui-react/backstage/Separator.d.ts +1 -0
  485. package/lib/esm/appui-react/backstage/Separator.d.ts.map +1 -1
  486. package/lib/esm/appui-react/backstage/Separator.js +3 -2
  487. package/lib/esm/appui-react/backstage/Separator.js.map +1 -1
  488. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts +1 -1
  489. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  490. package/lib/esm/appui-react/childwindow/ChildWindowManager.js +4 -5
  491. package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  492. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  493. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  494. package/lib/esm/appui-react/configurableui/state.d.ts +10 -3
  495. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  496. package/lib/esm/appui-react/configurableui/state.js +15 -2
  497. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  498. package/lib/esm/appui-react/content/ContentControl.d.ts +1 -1
  499. package/lib/esm/appui-react/content/ContentControl.d.ts.map +1 -1
  500. package/lib/esm/appui-react/content/ContentControl.js +1 -1
  501. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  502. package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
  503. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  504. package/lib/esm/appui-react/content/ContentLayout.js +3 -2
  505. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  506. package/lib/esm/appui-react/content/ContentViewManager.d.ts +1 -1
  507. package/lib/esm/appui-react/content/ContentViewManager.d.ts.map +1 -1
  508. package/lib/esm/appui-react/content/ContentViewManager.js +1 -1
  509. package/lib/esm/appui-react/content/ContentViewManager.js.map +1 -1
  510. package/lib/esm/appui-react/content/IModelViewport.d.ts +13 -1
  511. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  512. package/lib/esm/appui-react/content/IModelViewport.js +16 -4
  513. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  514. package/lib/esm/appui-react/content/{SavedViewLayout.d.ts → StageContentLayout.d.ts} +11 -11
  515. package/lib/esm/appui-react/content/StageContentLayout.d.ts.map +1 -0
  516. package/lib/esm/appui-react/content/{SavedViewLayout.js → StageContentLayout.js} +17 -15
  517. package/lib/esm/appui-react/content/StageContentLayout.js.map +1 -0
  518. package/lib/esm/appui-react/content/{SavedView.d.ts → ViewStateHelper.d.ts} +7 -7
  519. package/lib/esm/appui-react/content/ViewStateHelper.d.ts.map +1 -0
  520. package/lib/esm/appui-react/content/{SavedView.js → ViewStateHelper.js} +2 -2
  521. package/lib/esm/appui-react/content/ViewStateHelper.js.map +1 -0
  522. package/lib/esm/appui-react/content/split-pane/Pane.d.ts +21 -0
  523. package/lib/esm/appui-react/content/split-pane/Pane.d.ts.map +1 -0
  524. package/lib/esm/appui-react/content/split-pane/Pane.js +39 -0
  525. package/lib/esm/appui-react/content/split-pane/Pane.js.map +1 -0
  526. package/lib/esm/appui-react/content/split-pane/Resizer.d.ts +23 -0
  527. package/lib/esm/appui-react/content/split-pane/Resizer.d.ts.map +1 -0
  528. package/lib/esm/appui-react/content/split-pane/Resizer.js +35 -0
  529. package/lib/esm/appui-react/content/split-pane/Resizer.js.map +1 -0
  530. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +70 -0
  531. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -0
  532. package/lib/esm/appui-react/content/split-pane/SplitPane.js +239 -0
  533. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -0
  534. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +1 -2
  535. package/lib/esm/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  536. package/lib/esm/appui-react/cursor/CursorInformation.js +2 -2
  537. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  538. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  539. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  540. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +2 -2
  541. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  542. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js +2 -2
  543. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  544. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +1 -1
  545. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  546. package/lib/esm/appui-react/dialog/DialogManagerBase.js +1 -1
  547. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  548. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  549. package/lib/esm/appui-react/dialog/StandardMessageBox.js +3 -0
  550. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  551. package/lib/esm/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -1
  552. package/lib/esm/appui-react/dragdrop/ZoneTargets.js +8 -4
  553. package/lib/esm/appui-react/dragdrop/ZoneTargets.js.map +1 -1
  554. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +2 -2
  555. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  556. package/lib/esm/appui-react/feedback/ElementTooltip.js +4 -2
  557. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  558. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +1 -0
  559. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  560. package/lib/esm/appui-react/frontstage/Frontstage.js +32 -13
  561. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -1
  562. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  563. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  564. package/lib/esm/appui-react/frontstage/FrontstageComposer.js +15 -1
  565. package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  566. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +15 -2
  567. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  568. package/lib/esm/appui-react/frontstage/FrontstageDef.js +140 -5
  569. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  570. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  571. package/lib/esm/appui-react/frontstage/FrontstageManager.js +2 -1
  572. package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
  573. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +6 -0
  574. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  575. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  576. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  577. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  578. package/lib/esm/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  579. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  580. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts +12 -9
  581. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -1
  582. package/lib/esm/appui-react/hooks/useFrameworkVersion.js +19 -21
  583. package/lib/esm/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  584. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +1 -1
  585. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -1
  586. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js +6 -7
  587. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -1
  588. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +3 -3
  589. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  590. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +1 -1
  591. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  592. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts +0 -5
  593. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  594. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  595. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +1 -1
  596. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -1
  597. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +83 -70
  598. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -1
  599. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  600. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  601. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +2 -1
  602. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  603. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +2 -2
  604. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  605. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts +5 -5
  606. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -1
  607. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js +3 -2
  608. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -1
  609. package/lib/esm/appui-react/messages/AppNotificationManager.d.ts +1 -1
  610. package/lib/esm/appui-react/messages/AppNotificationManager.js +1 -1
  611. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  612. package/lib/esm/appui-react/messages/MessageManager.d.ts +1 -2
  613. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  614. package/lib/esm/appui-react/messages/MessageManager.js +9 -3
  615. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  616. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  617. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  618. package/lib/esm/appui-react/messages/Pointer.js +4 -3
  619. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  620. package/lib/esm/appui-react/messages/ToastMessage.js +2 -1
  621. package/lib/esm/appui-react/messages/ToastMessage.js.map +1 -1
  622. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +1 -1
  623. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  624. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  625. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  626. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -1
  627. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  628. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +2 -1
  629. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  630. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +6 -4
  631. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  632. package/lib/esm/appui-react/pickers/ListPicker.d.ts +3 -0
  633. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  634. package/lib/esm/appui-react/pickers/ListPicker.js +23 -9
  635. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  636. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +1 -1
  637. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  638. package/lib/esm/appui-react/pickers/ViewSelector.js +7 -7
  639. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  640. package/lib/esm/appui-react/popup/CardPopup.d.ts +7 -4
  641. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  642. package/lib/esm/appui-react/popup/CardPopup.js +3 -2
  643. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  644. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts +3 -2
  645. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  646. package/lib/esm/appui-react/popup/InputEditorPopup.js +1 -1
  647. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  648. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +7 -7
  649. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  650. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +3 -2
  651. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  652. package/lib/esm/appui-react/popup/KeyinPalettePopup.js +1 -1
  653. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  654. package/lib/esm/appui-react/popup/PopupManager.d.ts +10 -10
  655. package/lib/esm/appui-react/popup/PopupManager.d.ts.map +1 -1
  656. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  657. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  658. package/lib/esm/appui-react/popup/PositionPopup.d.ts +5 -3
  659. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  660. package/lib/esm/appui-react/popup/PositionPopup.js +3 -2
  661. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  662. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts +3 -2
  663. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  664. package/lib/esm/appui-react/popup/ToolSettingsPopup.js +1 -1
  665. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  666. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts +4 -3
  667. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  668. package/lib/esm/appui-react/popup/ToolbarPopup.js +2 -2
  669. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  670. package/lib/esm/appui-react/redux/FrameworkState.d.ts +1 -1
  671. package/lib/esm/appui-react/redux/SessionState.d.ts +0 -6
  672. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  673. package/lib/esm/appui-react/redux/SessionState.js +0 -8
  674. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  675. package/lib/esm/appui-react/redux/StateManager.d.ts +1 -1
  676. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  677. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js +7 -7
  678. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  679. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  680. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js +1 -1
  681. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  682. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  683. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +28 -19
  684. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  685. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  686. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  687. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  688. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +2 -2
  689. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  690. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -1
  691. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  692. package/lib/esm/appui-react/shared/ItemProps.d.ts +2 -2
  693. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  694. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +1 -1
  695. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  696. package/lib/esm/appui-react/shared/ToolItemDef.js +2 -2
  697. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  698. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -1
  699. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js +1 -0
  700. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -1
  701. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts +2 -2
  702. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  703. package/lib/esm/appui-react/stagepanels/StagePanel.js +1 -0
  704. package/lib/esm/appui-react/stagepanels/StagePanel.js.map +1 -1
  705. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +26 -2
  706. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  707. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +24 -3
  708. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  709. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts +2 -2
  710. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -1
  711. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js +2 -1
  712. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js.map +1 -1
  713. package/lib/esm/appui-react/statusbar/StatusBar.js +2 -1
  714. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  715. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  716. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +17 -5
  717. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  718. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  719. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js +1 -1
  720. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  721. package/lib/esm/appui-react/statusfields/Indicator.d.ts +15 -14
  722. package/lib/esm/appui-react/statusfields/Indicator.d.ts.map +1 -1
  723. package/lib/esm/appui-react/statusfields/Indicator.js +23 -21
  724. package/lib/esm/appui-react/statusfields/Indicator.js.map +1 -1
  725. package/lib/esm/appui-react/statusfields/Indicator.scss +29 -18
  726. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  727. package/lib/esm/appui-react/statusfields/MessageCenter.js +2 -1
  728. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  729. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +1 -0
  730. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  731. package/lib/esm/appui-react/statusfields/SelectionScope.js +6 -4
  732. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  733. package/lib/esm/appui-react/statusfields/SelectionScope.scss +13 -3
  734. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +2 -10
  735. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  736. package/lib/esm/appui-react/statusfields/SnapMode.js +5 -35
  737. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  738. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +0 -6
  739. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  740. package/lib/esm/appui-react/statusfields/ViewAttributes.js +2 -26
  741. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  742. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +7 -7
  743. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  744. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +14 -13
  745. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  746. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +8 -3
  747. package/lib/esm/appui-react/syncui/BooleanListener.d.ts +2 -2
  748. package/lib/esm/appui-react/syncui/BooleanListener.d.ts.map +1 -1
  749. package/lib/esm/appui-react/syncui/BooleanListener.js +2 -1
  750. package/lib/esm/appui-react/syncui/BooleanListener.js.map +1 -1
  751. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +8 -18
  752. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  753. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +29 -101
  754. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  755. package/lib/esm/appui-react/toolbar/ActionButtonItem.js +2 -1
  756. package/lib/esm/appui-react/toolbar/ActionButtonItem.js.map +1 -1
  757. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  758. package/lib/esm/appui-react/toolbar/ActionItemButton.js +2 -1
  759. package/lib/esm/appui-react/toolbar/ActionItemButton.js.map +1 -1
  760. package/lib/esm/appui-react/toolbar/GroupButtonItem.js +24 -20
  761. package/lib/esm/appui-react/toolbar/GroupButtonItem.js.map +1 -1
  762. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  763. package/lib/esm/appui-react/toolbar/GroupItem.js +33 -29
  764. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  765. package/lib/esm/appui-react/toolbar/ToolButton.js +3 -2
  766. package/lib/esm/appui-react/toolbar/ToolButton.js.map +1 -1
  767. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  768. package/lib/esm/appui-react/toolbar/Toolbar.js +3 -2
  769. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  770. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  771. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +22 -20
  772. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  773. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -1
  774. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +4 -4
  775. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  776. package/lib/esm/appui-react/tools/MarkupToolDefinitions.d.ts +2 -2
  777. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js +2 -2
  778. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js.map +1 -1
  779. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +8 -10
  780. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  781. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +18 -37
  782. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  783. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +7 -9
  784. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  785. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +13 -21
  786. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  787. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +7 -9
  788. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  789. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +40 -51
  790. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  791. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.scss +4 -4
  792. package/lib/{cjs/appui-react/uisettings → esm/appui-react/uistate}/AppUiSettings.d.ts +11 -9
  793. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -0
  794. package/lib/esm/appui-react/{uisettings → uistate}/AppUiSettings.js +13 -9
  795. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -0
  796. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
  797. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
  798. package/lib/esm/appui-react/uistate/UserSettingsStorage.js +55 -0
  799. package/lib/esm/appui-react/uistate/UserSettingsStorage.js.map +1 -0
  800. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts +20 -0
  801. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -0
  802. package/lib/esm/appui-react/uistate/useUiStateStorage.js +33 -0
  803. package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -0
  804. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts +5 -5
  805. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  806. package/lib/esm/appui-react/utils/UiShowHideManager.js +9 -9
  807. package/lib/esm/appui-react/utils/UiShowHideManager.js.map +1 -1
  808. package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
  809. package/lib/esm/appui-react/widget-panels/Content.js +1 -4
  810. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  811. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +98 -8
  812. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  813. package/lib/esm/appui-react/widget-panels/Frontstage.js +83 -92
  814. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  815. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts +1 -1
  816. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  817. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +22 -0
  818. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -0
  819. package/lib/esm/appui-react/widgets/BackstageAppButton.js +52 -0
  820. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -0
  821. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  822. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +1 -0
  823. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  824. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  825. package/lib/esm/appui-react/widgets/BasicToolWidget.js +3 -1
  826. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  827. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts +9 -0
  828. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
  829. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js +10 -0
  830. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  831. package/lib/esm/appui-react/widgets/NavigationWidget.d.ts.map +1 -1
  832. package/lib/esm/appui-react/widgets/NavigationWidget.js +2 -1
  833. package/lib/esm/appui-react/widgets/NavigationWidget.js.map +1 -1
  834. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +1 -0
  835. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  836. package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  837. package/lib/esm/appui-react/widgets/StableWidgetDef.js +1 -1
  838. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  839. package/lib/esm/appui-react/widgets/ToolSettingsContent.js +2 -1
  840. package/lib/esm/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  841. package/lib/esm/appui-react/widgets/ToolWidget.js +3 -2
  842. package/lib/esm/appui-react/widgets/ToolWidget.js.map +1 -1
  843. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts +0 -12
  844. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  845. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js +2 -36
  846. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  847. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts +1 -0
  848. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -1
  849. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js +5 -2
  850. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  851. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts +0 -1
  852. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  853. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
  854. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  855. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -3
  856. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  857. package/lib/esm/appui-react/widgets/WidgetDef.js +18 -7
  858. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  859. package/lib/esm/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  860. package/lib/esm/appui-react/widgets/WidgetHost.js +1 -0
  861. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  862. package/lib/esm/appui-react/widgets/WidgetStack.d.ts.map +1 -1
  863. package/lib/esm/appui-react/widgets/WidgetStack.js +2 -0
  864. package/lib/esm/appui-react/widgets/WidgetStack.js.map +1 -1
  865. package/lib/esm/appui-react/zones/FrameworkZone.js.map +1 -1
  866. package/lib/esm/appui-react/zones/StatusBarZone.js.map +1 -1
  867. package/lib/esm/appui-react/zones/Zone.d.ts +1 -1
  868. package/lib/esm/appui-react/zones/Zone.d.ts.map +1 -1
  869. package/lib/esm/appui-react/zones/Zone.js +2 -1
  870. package/lib/esm/appui-react/zones/Zone.js.map +1 -1
  871. package/lib/esm/appui-react/zones/ZoneDef.d.ts +4 -4
  872. package/lib/esm/appui-react/zones/ZoneDef.d.ts.map +1 -1
  873. package/lib/esm/appui-react/zones/ZoneDef.js +5 -4
  874. package/lib/esm/appui-react/zones/ZoneDef.js.map +1 -1
  875. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts +1 -2
  876. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -1
  877. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js +2 -1
  878. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -1
  879. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -1
  880. package/lib/esm/appui-react.d.ts +15 -18
  881. package/lib/esm/appui-react.d.ts.map +1 -1
  882. package/lib/esm/appui-react.js +15 -18
  883. package/lib/esm/appui-react.js.map +1 -1
  884. package/lib/public/locales/en/UiFramework.json +9 -2
  885. package/package.json +46 -53
  886. package/lib/cjs/appui-react/UserInfo.d.ts +0 -58
  887. package/lib/cjs/appui-react/UserInfo.d.ts.map +0 -1
  888. package/lib/cjs/appui-react/UserInfo.js +0 -34
  889. package/lib/cjs/appui-react/UserInfo.js.map +0 -1
  890. package/lib/cjs/appui-react/content/SavedView.d.ts.map +0 -1
  891. package/lib/cjs/appui-react/content/SavedView.js.map +0 -1
  892. package/lib/cjs/appui-react/content/SavedViewLayout.d.ts.map +0 -1
  893. package/lib/cjs/appui-react/content/SavedViewLayout.js.map +0 -1
  894. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.d.ts +0 -25
  895. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.d.ts.map +0 -1
  896. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.js +0 -34
  897. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.js.map +0 -1
  898. package/lib/cjs/appui-react/uisettings/AppUiSettings.d.ts.map +0 -1
  899. package/lib/cjs/appui-react/uisettings/AppUiSettings.js.map +0 -1
  900. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.d.ts +0 -23
  901. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.d.ts.map +0 -1
  902. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.js +0 -74
  903. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.js.map +0 -1
  904. package/lib/cjs/appui-react/uisettings/useUiSettings.d.ts +0 -21
  905. package/lib/cjs/appui-react/uisettings/useUiSettings.d.ts.map +0 -1
  906. package/lib/cjs/appui-react/uisettings/useUiSettings.js +0 -28
  907. package/lib/cjs/appui-react/uisettings/useUiSettings.js.map +0 -1
  908. package/lib/esm/appui-react/UserInfo.d.ts +0 -58
  909. package/lib/esm/appui-react/UserInfo.d.ts.map +0 -1
  910. package/lib/esm/appui-react/UserInfo.js +0 -30
  911. package/lib/esm/appui-react/UserInfo.js.map +0 -1
  912. package/lib/esm/appui-react/content/SavedView.d.ts.map +0 -1
  913. package/lib/esm/appui-react/content/SavedView.js.map +0 -1
  914. package/lib/esm/appui-react/content/SavedViewLayout.d.ts.map +0 -1
  915. package/lib/esm/appui-react/content/SavedViewLayout.js.map +0 -1
  916. package/lib/esm/appui-react/stagepanels/StagePanelEnums.d.ts +0 -25
  917. package/lib/esm/appui-react/stagepanels/StagePanelEnums.d.ts.map +0 -1
  918. package/lib/esm/appui-react/stagepanels/StagePanelEnums.js +0 -31
  919. package/lib/esm/appui-react/stagepanels/StagePanelEnums.js.map +0 -1
  920. package/lib/esm/appui-react/uisettings/AppUiSettings.d.ts.map +0 -1
  921. package/lib/esm/appui-react/uisettings/AppUiSettings.js.map +0 -1
  922. package/lib/esm/appui-react/uisettings/UserSettingsStorage.d.ts +0 -23
  923. package/lib/esm/appui-react/uisettings/UserSettingsStorage.d.ts.map +0 -1
  924. package/lib/esm/appui-react/uisettings/UserSettingsStorage.js +0 -68
  925. package/lib/esm/appui-react/uisettings/UserSettingsStorage.js.map +0 -1
  926. package/lib/esm/appui-react/uisettings/useUiSettings.d.ts +0 -21
  927. package/lib/esm/appui-react/uisettings/useUiSettings.d.ts.map +0 -1
  928. package/lib/esm/appui-react/uisettings/useUiSettings.js +0 -23
  929. package/lib/esm/appui-react/uisettings/useUiSettings.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"BackstageComposerItem.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/BackstageComposerItem.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAA6C;AAC7C,0DAE+B;AAC/B,kDAAyD;AACzD,kEAA8E;AAC9E,yDAAiE;AACjE,uEAAoE;AACpE,yDAAyD;AAOzD,gBAAgB;AAChB,SAAgB,2BAA2B,CAAC,EAAE,IAAI,EAAoC;IACpF,MAAM,OAAO,GAAG,IAAA,sCAAmB,GAAE,CAAC;IACtC,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACzC,OAAO,CAAC,KAAK,EAAE,CAAC;QACh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,IAAA,kCAAqB,GAAE,CAAC;IACnD,MAAM,QAAQ,GAAG,wCAAuB,CAAC,QAAQ,CAAC,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,CAAC,OAAO,KAAK,kBAAkB,CAAC,CAAC;IACxG,OAAO,CACL,oBAAC,kCAAgB,IACf,MAAM,EAAE,IAAI,CAAC,EAAE,EACf,IAAI,EAAE,oBAAC,iBAAI,IAAC,QAAQ,EAAE,uCAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAI,EACpE,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,wCAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,EAC7D,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,uCAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EACxD,KAAK,EAAE,2BAAc,CAAC,wBAAwB,CAAC,IAAI,CAAC,SAAS,CAAC,IAE7D,uCAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAC3B,CACpB,CAAC;AACJ,CAAC;AAvBD,wEAuBC;AAUD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,EAAE,IAAI,EAA8B;IACxE,IAAI,IAAA,gCAAe,EAAC,IAAI,CAAC,EAAE;QACzB,OAAO,CACL,oBAAC,8BAA8B,IAC7B,IAAI,EAAE,IAAI,GACV,CACH,CAAC;KACH;IACD,OAAO,CACL,oBAAC,2BAA2B,IAC1B,IAAI,EAAE,IAAI,GACV,CACH,CAAC;AACJ,CAAC;AAbD,sDAaC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport {\r\n BackstageActionItem, BackstageItem, BackstageStageLauncher, ConditionalBooleanValue, ConditionalStringValue, isStageLauncher,\r\n} from \"@itwin/appui-abstract\";\r\nimport { BadgeUtilities, Icon } from \"@itwin/core-react\";\r\nimport { BackstageItem as NZ_BackstageItem } from \"@itwin/appui-layout-react\";\r\nimport { useActiveFrontstageId } from \"../frontstage/Frontstage\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { useBackstageManager } from \"./BackstageManager\";\r\n\r\n/** @internal */\r\nexport interface BackstageComposerActionItemProps {\r\n readonly item: BackstageActionItem;\r\n}\r\n\r\n/** @internal */\r\nexport function BackstageComposerActionItem({ item }: BackstageComposerActionItemProps) {\r\n const manager = useBackstageManager();\r\n const handleClick = React.useCallback(() => {\r\n manager.close();\r\n item.execute();\r\n }, [manager, item]);\r\n return (\r\n <NZ_BackstageItem\r\n itemId={item.id}\r\n icon={<Icon iconSpec={ConditionalStringValue.getValue(item.icon)} />}\r\n isActive={ConditionalBooleanValue.getValue(item.isActive)}\r\n isDisabled={ConditionalBooleanValue.getValue(item.isDisabled)}\r\n onClick={handleClick}\r\n subtitle={ConditionalStringValue.getValue(item.subtitle)}\r\n badge={BadgeUtilities.getComponentForBadgeType(item.badgeType)}\r\n >\r\n {ConditionalStringValue.getValue(item.label)}\r\n </NZ_BackstageItem>\r\n );\r\n}\r\n\r\n/** @internal */\r\nexport interface BackstageComposerStageLauncherProps {\r\n readonly item: BackstageStageLauncher;\r\n}\r\n\r\n/** @internal */\r\nexport function BackstageComposerStageLauncher({ item }: BackstageComposerStageLauncherProps) {\r\n const manager = useBackstageManager();\r\n const handleClick = React.useCallback(() => {\r\n manager.close();\r\n if (!FrontstageManager.hasFrontstage(item.stageId))\r\n return Logger.logError(\"BackstageComposerStageLauncher\", `Frontstage with id '${item.stageId}' not found`);\r\n void FrontstageManager.setActiveFrontstage(item.stageId);\r\n }, [manager, item.stageId]);\r\n const activeFrontstageId = useActiveFrontstageId();\r\n const isActive = ConditionalBooleanValue.getValue(item.isActive ?? item.stageId === activeFrontstageId);\r\n return (\r\n <NZ_BackstageItem\r\n itemId={item.id}\r\n icon={<Icon iconSpec={ConditionalStringValue.getValue(item.icon)} />}\r\n isActive={isActive}\r\n isDisabled={ConditionalBooleanValue.getValue(item.isDisabled)}\r\n onClick={handleClick}\r\n subtitle={ConditionalStringValue.getValue(item.subtitle)}\r\n badge={BadgeUtilities.getComponentForBadgeType(item.badgeType)}\r\n >\r\n {ConditionalStringValue.getValue(item.label)}\r\n </NZ_BackstageItem>\r\n );\r\n}\r\n\r\n/** Props of [[BackstageComposerItem]] component.\r\n * @beta\r\n */\r\nexport interface BackstageComposerItemProps {\r\n /** Backstage item to render */\r\n readonly item: BackstageItem;\r\n}\r\n\r\n/** Item of [[BackstageComposer]].\r\n * @beta\r\n */\r\nexport function BackstageComposerItem({ item }: BackstageComposerItemProps) {\r\n if (isStageLauncher(item)) {\r\n return (\r\n <BackstageComposerStageLauncher\r\n item={item}\r\n />\r\n );\r\n }\r\n return (\r\n <BackstageComposerActionItem\r\n item={item}\r\n />\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"BackstageComposerItem.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/BackstageComposerItem.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAA6C;AAC7C,0DAE+B;AAC/B,kDAAyD;AACzD,kEAA8E;AAC9E,yDAAiE;AACjE,uEAAoE;AACpE,yDAAyD;AAOzD,gBAAgB;AAChB,SAAgB,2BAA2B,CAAC,EAAE,IAAI,EAAoC;IACpF,MAAM,OAAO,GAAG,IAAA,sCAAmB,GAAE,CAAC;IACtC,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACzC,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,C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AAI,CAAC,QAAQ,mCAAI,IAAI,CAAC,OAAO,KAAK,kBAAkB,CAAC,CAAC;IACxG,OAAO,CACL,oBAAC,kCAAgB,IACf,MAAM,EAAE,IAAI,CAAC,EAAE,EACf,IAAI,EAAE,oBAAC,iBAAI,IAAC,QAAQ,EAAE,uCAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAI,EACpE,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,wCAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,EAC7D,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,uCAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EACxD,KAAK,EAAE,2BAAc,CAAC,wBAAwB,CAAC,IAAI,CAAC,SAAS,CAAC,IAE7D,uCAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAC3B,CACpB,CAAC;AACJ,CAAC;AAvBD,wEAuBC;AAUD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,EAAE,IAAI,EAA8B;IACxE,IAAI,IAAA,gCAAe,EAAC,IAAI,CAAC,EAAE;QACzB,OAAO,CACL,oBAAC,8BAA8B,IAC7B,IAAI,EAAE,IAAI,GACV,CACH,CAAC;KACH;IACD,OAAO,CACL,oBAAC,2BAA2B,IAC1B,IAAI,EAAE,IAAI,GACV,CACH,CAAC;AACJ,CAAC;AAbD,sDAaC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport {\r\n BackstageActionItem, BackstageItem, BackstageStageLauncher, ConditionalBooleanValue, ConditionalStringValue, isStageLauncher,\r\n} from \"@itwin/appui-abstract\";\r\nimport { BadgeUtilities, Icon } from \"@itwin/core-react\";\r\nimport { BackstageItem as NZ_BackstageItem } from \"@itwin/appui-layout-react\";\r\nimport { useActiveFrontstageId } from \"../frontstage/Frontstage\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { useBackstageManager } from \"./BackstageManager\";\r\n\r\n/** @internal */\r\nexport interface BackstageComposerActionItemProps {\r\n readonly item: BackstageActionItem;\r\n}\r\n\r\n/** @internal */\r\nexport function BackstageComposerActionItem({ item }: BackstageComposerActionItemProps) {\r\n const manager = useBackstageManager();\r\n const handleClick = React.useCallback(() => {\r\n manager.close();\r\n item.execute();\r\n }, [manager, item]);\r\n return (\r\n <NZ_BackstageItem\r\n itemId={item.id}\r\n icon={<Icon iconSpec={ConditionalStringValue.getValue(item.icon)} />}\r\n isActive={ConditionalBooleanValue.getValue(item.isActive)}\r\n isDisabled={ConditionalBooleanValue.getValue(item.isDisabled)}\r\n onClick={handleClick}\r\n subtitle={ConditionalStringValue.getValue(item.subtitle)}\r\n badge={BadgeUtilities.getComponentForBadgeType(item.badgeType)}\r\n >\r\n {ConditionalStringValue.getValue(item.label)}\r\n </NZ_BackstageItem>\r\n );\r\n}\r\n\r\n/** @internal */\r\nexport interface BackstageComposerStageLauncherProps {\r\n readonly item: BackstageStageLauncher;\r\n}\r\n\r\n/** @internal */\r\nexport function BackstageComposerStageLauncher({ item }: BackstageComposerStageLauncherProps) {\r\n const manager = useBackstageManager();\r\n const handleClick = React.useCallback(() => {\r\n manager.close();\r\n if (!FrontstageManager.hasFrontstage(item.stageId))\r\n return Logger.logError(\"BackstageComposerStageLauncher\", `Frontstage with id '${item.stageId}' not found`);\r\n void FrontstageManager.setActiveFrontstage(item.stageId);\r\n }, [manager, item.stageId]);\r\n const activeFrontstageId = useActiveFrontstageId();\r\n const isActive = ConditionalBooleanValue.getValue(item.isActive ?? item.stageId === activeFrontstageId);\r\n return (\r\n <NZ_BackstageItem\r\n itemId={item.id}\r\n icon={<Icon iconSpec={ConditionalStringValue.getValue(item.icon)} />}\r\n isActive={isActive}\r\n isDisabled={ConditionalBooleanValue.getValue(item.isDisabled)}\r\n onClick={handleClick}\r\n subtitle={ConditionalStringValue.getValue(item.subtitle)}\r\n badge={BadgeUtilities.getComponentForBadgeType(item.badgeType)}\r\n >\r\n {ConditionalStringValue.getValue(item.label)}\r\n </NZ_BackstageItem>\r\n );\r\n}\r\n\r\n/** Props of [[BackstageComposerItem]] component.\r\n * @internal\r\n */\r\nexport interface BackstageComposerItemProps {\r\n /** Backstage item to render */\r\n readonly item: BackstageItem;\r\n}\r\n\r\n/** Item of [[BackstageComposer]].\r\n * @internal\r\n */\r\nexport function BackstageComposerItem({ item }: BackstageComposerItemProps) {\r\n if (isStageLauncher(item)) {\r\n return (\r\n <BackstageComposerStageLauncher\r\n item={item}\r\n />\r\n );\r\n }\r\n return (\r\n <BackstageComposerActionItem\r\n item={item}\r\n />\r\n );\r\n}\r\n"]}
@@ -5,7 +5,7 @@ import { StringGetter } from "@itwin/appui-abstract";
5
5
  import { IconProps, IconSpec } from "@itwin/core-react";
6
6
  /** Base properties for a [[Backstage]] item.
7
7
  * @public
8
- * @deprecated - use [BackstageItem]($appui-abstract) in bentley/appui-abstract instead
8
+ * @deprecated Use [BackstageItem]($appui-abstract) instead
9
9
  */
10
10
  export interface BackstageItemProps extends IconProps {
11
11
  /** if set, component will be enabled - defaults to true */
@@ -31,7 +31,7 @@ export interface BackstageItemProps extends IconProps {
31
31
  }
32
32
  /** Properties that define the state of a Backstage items.
33
33
  * @public
34
- * @deprecated - use [BackstageItem]($appui-abstract) in bentley/appui-abstract instead
34
+ * @deprecated Use [BackstageItem]($appui-abstract) instead
35
35
  */
36
36
  export interface BackstageItemState {
37
37
  isEnabled: boolean;
@@ -43,7 +43,7 @@ export interface BackstageItemState {
43
43
  }
44
44
  /** Helper method to set backstage item state from props.
45
45
  * @public
46
- * @deprecated - use [BackstageItem]($appui-abstract) in bentley/appui-abstract instead
46
+ * @deprecated Use [BackstageItem]($appui-abstract) instead
47
47
  */
48
48
  export declare const getBackstageItemStateFromProps: (props: BackstageItemProps) => BackstageItemState;
49
49
  //# sourceMappingURL=BackstageItemProps.d.ts.map
@@ -11,7 +11,7 @@ exports.getBackstageItemStateFromProps = void 0;
11
11
  const BackstageItemUtilities_1 = require("./BackstageItemUtilities");
12
12
  /** Helper method to set backstage item state from props.
13
13
  * @public
14
- * @deprecated - use [BackstageItem]($appui-abstract) in bentley/appui-abstract instead
14
+ * @deprecated Use [BackstageItem]($appui-abstract) instead
15
15
  */
16
16
  // istanbul ignore next
17
17
  const getBackstageItemStateFromProps = (props) => {
@@ -1 +1 @@
1
- {"version":3,"file":"BackstageItemProps.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/BackstageItemProps.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAIH,qEAAkE;AA0ClE;;;GAGG;AACH,uBAAuB;AAChB,MAAM,8BAA8B,GAAG,CAAC,KAAyB,EAAsB,EAAE;IAC9F,mDAAmD;IACnD,OAAO,+CAAsB,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;AACtE,CAAC,CAAC;AAHW,QAAA,8BAA8B,kCAGzC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport { StringGetter } from \"@itwin/appui-abstract\";\r\nimport { IconProps, IconSpec } from \"@itwin/core-react\";\r\nimport { BackstageItemUtilities } from \"./BackstageItemUtilities\";\r\n\r\n/** Base properties for a [[Backstage]] item.\r\n * @public\r\n * @deprecated - use [BackstageItem]($appui-abstract) in bentley/appui-abstract instead\r\n */\r\nexport interface BackstageItemProps extends IconProps {\r\n /** if set, component will be enabled - defaults to true */\r\n isEnabled?: boolean;\r\n /** if set, component will be shown with as the active item - defaults to false */\r\n isActive?: boolean;\r\n /** optional function to set state of backstage item */\r\n stateFunc?: (state: Readonly<BackstageItemState>) => BackstageItemState; // eslint-disable-line deprecation/deprecation\r\n /** optional SyncUi event ids that will trigger the state function to run. */\r\n stateSyncIds?: string[];\r\n /** if set, it is used to explicitly set the label shown by a component. */\r\n label?: string | StringGetter;\r\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\r\n labelKey?: string;\r\n /** if set, it is used to explicitly set the description shown by a component. */\r\n description?: string | StringGetter;\r\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */\r\n descriptionKey?: string;\r\n /** used to explicitly set the tooltip shown by a component. */\r\n tooltip?: string | StringGetter;\r\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\r\n tooltipKey?: string;\r\n}\r\n\r\n/** Properties that define the state of a Backstage items.\r\n * @public\r\n * @deprecated - use [BackstageItem]($appui-abstract) in bentley/appui-abstract instead\r\n */\r\nexport interface BackstageItemState {\r\n isEnabled: boolean;\r\n label: string;\r\n subtitle: string;\r\n tooltip: string;\r\n iconSpec: IconSpec;\r\n isActive?: boolean;\r\n}\r\n\r\n/** Helper method to set backstage item state from props.\r\n * @public\r\n * @deprecated - use [BackstageItem]($appui-abstract) in bentley/appui-abstract instead\r\n */\r\n// istanbul ignore next\r\nexport const getBackstageItemStateFromProps = (props: BackstageItemProps): BackstageItemState => { // eslint-disable-line deprecation/deprecation\r\n // eslint-disable-next-line deprecation/deprecation\r\n return BackstageItemUtilities.getBackstageItemStateFromProps(props);\r\n};\r\n"]}
1
+ {"version":3,"file":"BackstageItemProps.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/BackstageItemProps.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAIH,qEAAkE;AA0ClE;;;GAGG;AACH,uBAAuB;AAChB,MAAM,8BAA8B,GAAG,CAAC,KAAyB,EAAsB,EAAE;IAC9F,mDAAmD;IACnD,OAAO,+CAAsB,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;AACtE,CAAC,CAAC;AAHW,QAAA,8BAA8B,kCAGzC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport { StringGetter } from \"@itwin/appui-abstract\";\r\nimport { IconProps, IconSpec } from \"@itwin/core-react\";\r\nimport { BackstageItemUtilities } from \"./BackstageItemUtilities\";\r\n\r\n/** Base properties for a [[Backstage]] item.\r\n * @public\r\n * @deprecated Use [BackstageItem]($appui-abstract) instead\r\n */\r\nexport interface BackstageItemProps extends IconProps {\r\n /** if set, component will be enabled - defaults to true */\r\n isEnabled?: boolean;\r\n /** if set, component will be shown with as the active item - defaults to false */\r\n isActive?: boolean;\r\n /** optional function to set state of backstage item */\r\n stateFunc?: (state: Readonly<BackstageItemState>) => BackstageItemState; // eslint-disable-line deprecation/deprecation\r\n /** optional SyncUi event ids that will trigger the state function to run. */\r\n stateSyncIds?: string[];\r\n /** if set, it is used to explicitly set the label shown by a component. */\r\n label?: string | StringGetter;\r\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\r\n labelKey?: string;\r\n /** if set, it is used to explicitly set the description shown by a component. */\r\n description?: string | StringGetter;\r\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */\r\n descriptionKey?: string;\r\n /** used to explicitly set the tooltip shown by a component. */\r\n tooltip?: string | StringGetter;\r\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\r\n tooltipKey?: string;\r\n}\r\n\r\n/** Properties that define the state of a Backstage items.\r\n * @public\r\n * @deprecated Use [BackstageItem]($appui-abstract) instead\r\n */\r\nexport interface BackstageItemState {\r\n isEnabled: boolean;\r\n label: string;\r\n subtitle: string;\r\n tooltip: string;\r\n iconSpec: IconSpec;\r\n isActive?: boolean;\r\n}\r\n\r\n/** Helper method to set backstage item state from props.\r\n * @public\r\n * @deprecated Use [BackstageItem]($appui-abstract) instead\r\n */\r\n// istanbul ignore next\r\nexport const getBackstageItemStateFromProps = (props: BackstageItemProps): BackstageItemState => { // eslint-disable-line deprecation/deprecation\r\n // eslint-disable-next-line deprecation/deprecation\r\n return BackstageItemUtilities.getBackstageItemStateFromProps(props);\r\n};\r\n"]}
@@ -5,7 +5,7 @@ import { BackstageActionItem as UIA_BackstageActionItem, BackstageStageLauncher
5
5
  import { BackstageItemProps, BackstageItemState } from "./BackstageItemProps";
6
6
  /** Used to specify the item type added to the backstage menu.
7
7
  * @beta
8
- * @deprecated Use [BackstageItemType]($appui-abstract) in bentley/appui-abstract instead
8
+ * @deprecated Use [BackstageItemType]($appui-abstract) instead
9
9
  */
10
10
  export declare enum BackstageItemType {
11
11
  /** Item that executes an action function */
@@ -15,14 +15,14 @@ export declare enum BackstageItemType {
15
15
  }
16
16
  /** Describes the data needed to insert an action button into the backstage menu.
17
17
  * @beta
18
- * @deprecated Use [BackstageActionItem]($appui-abstract) in bentley/appui-abstract instead
18
+ * @deprecated Use [BackstageActionItem]($appui-abstract) instead
19
19
  */
20
20
  export interface BackstageActionItem extends UIA_BackstageActionItem {
21
21
  readonly type: BackstageItemType.ActionItem;
22
22
  }
23
23
  /** Describes the data needed to insert an action button into the backstage menu.
24
24
  * @beta
25
- * @deprecated Use [BackstageStageLauncher]($appui-abstract) in bentley/appui-abstract instead
25
+ * @deprecated Use [BackstageStageLauncher]($appui-abstract) instead
26
26
  */
27
27
  export interface BackstageStageLauncher extends UIA_BackstageStageLauncher {
28
28
  readonly type: BackstageItemType.StageLauncher;
@@ -33,12 +33,12 @@ export interface BackstageStageLauncher extends UIA_BackstageStageLauncher {
33
33
  export declare class BackstageItemUtilities {
34
34
  /** Creates a stage launcher backstage item
35
35
  * @beta
36
- * @deprecated Use BackstageItemUtilities.createStageLauncher in bentley/appui-abstract instead
36
+ * @deprecated Use [BackstageItemUtilities.createStageLauncher]($appui-abstract) instead
37
37
  */
38
38
  static createStageLauncher: (frontstageId: string, groupPriority: number, itemPriority: number, label: string, subtitle?: string | undefined, iconSpec?: string | undefined, overrides?: Partial<BackstageStageLauncher> | undefined) => BackstageStageLauncher;
39
39
  /** Creates an action backstage item
40
40
  * @beta
41
- * @deprecated Use BackstageItemUtilities.createActionItem in bentley/appui-abstract instead
41
+ * @deprecated Use [BackstageItemUtilities.createActionItem]($appui-abstract) instead
42
42
  */
43
43
  static createActionItem: (itemId: string, groupPriority: number, itemPriority: number, execute: () => void, label: string, subtitle?: string | undefined, iconSpec?: string | undefined, overrides?: Partial<BackstageActionItem> | undefined) => BackstageActionItem;
44
44
  /** Helper method to set backstage item state from props */
@@ -11,7 +11,7 @@ exports.BackstageItemUtilities = exports.BackstageItemType = void 0;
11
11
  const PropsHelper_1 = require("../utils/PropsHelper");
12
12
  /** Used to specify the item type added to the backstage menu.
13
13
  * @beta
14
- * @deprecated Use [BackstageItemType]($appui-abstract) in bentley/appui-abstract instead
14
+ * @deprecated Use [BackstageItemType]($appui-abstract) instead
15
15
  */
16
16
  var BackstageItemType;
17
17
  (function (BackstageItemType) {
@@ -28,7 +28,7 @@ class BackstageItemUtilities {
28
28
  exports.BackstageItemUtilities = BackstageItemUtilities;
29
29
  /** Creates a stage launcher backstage item
30
30
  * @beta
31
- * @deprecated Use BackstageItemUtilities.createStageLauncher in bentley/appui-abstract instead
31
+ * @deprecated Use [BackstageItemUtilities.createStageLauncher]($appui-abstract) instead
32
32
  */
33
33
  BackstageItemUtilities.createStageLauncher = (frontstageId, groupPriority, itemPriority, label, subtitle, iconSpec, overrides) => ({
34
34
  groupPriority,
@@ -43,7 +43,7 @@ BackstageItemUtilities.createStageLauncher = (frontstageId, groupPriority, itemP
43
43
  });
44
44
  /** Creates an action backstage item
45
45
  * @beta
46
- * @deprecated Use BackstageItemUtilities.createActionItem in bentley/appui-abstract instead
46
+ * @deprecated Use [BackstageItemUtilities.createActionItem]($appui-abstract) instead
47
47
  */
48
48
  BackstageItemUtilities.createActionItem = (itemId, groupPriority, itemPriority, execute, label, subtitle, iconSpec, overrides) => ({
49
49
  execute,
@@ -1 +1 @@
1
- {"version":3,"file":"BackstageItemUtilities.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/BackstageItemUtilities.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,sDAAmD;AAGnD;;;GAGG;AACH,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,qEAAc,CAAA;IACd,kCAAkC;IAClC,2EAAiB,CAAA;AACnB,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AAkBD;;GAEG;AACH,MAAa,sBAAsB;;AAAnC,wDAgDC;AA/CC;;;GAGG;AACW,0CAAmB,GAAG,CAAC,YAAoB,EAAE,aAAqB,EAAE,YAAoB,EAAE,KAAa,EAAE,QAAiB,EAAE,QAAiB,EAAE,SAA2C,EAA0B,EAAE,CAAC,CAAC;IACpO,aAAa;IACb,IAAI,EAAE,QAAQ;IACd,EAAE,EAAE,YAAY;IAChB,YAAY;IACZ,IAAI,EAAE,iBAAiB,CAAC,aAAa;IACrC,KAAK;IACL,OAAO,EAAE,YAAY;IACrB,QAAQ;IACR,GAAG,SAAS;CACb,CAAC,CAAC;AAEH;;;GAGG;AACW,uCAAgB,GAAG,CAAC,MAAc,EAAE,aAAqB,EAAE,YAAoB,EAAE,OAAmB,EAAE,KAAa,EAAE,QAAiB,EAAE,QAAiB,EAAE,SAAwC,EAAuB,EAAE,CAAC,CAAC;IAC1O,OAAO;IACP,aAAa;IACb,IAAI,EAAE,QAAQ;IACd,EAAE,EAAE,MAAM;IACV,YAAY;IACZ,IAAI,EAAE,iBAAiB,CAAC,UAAU;IAClC,KAAK;IACL,QAAQ;IACR,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,2DAA2D;AAC7C,qDAA8B,GAAG,CAAC,KAAyB,EAAsB,EAAE;IAC/F,MAAM,SAAS,GAAG,yBAAW,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzE,MAAM,YAAY,GAAG,yBAAW,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACxF,MAAM,WAAW,GAAG,yBAAW,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAE/E,OAAO;QACL,SAAS,EAAE,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAA,KAAK;QAC5F,KAAK,EAAE,yBAAW,CAAC,iBAAiB,CAAC,SAAS,CAAC;QAC/C,QAAQ,EAAE,yBAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC;QACrD,OAAO,EAAE,yBAAW,CAAC,iBAAiB,CAAC,WAAW,CAAC;QACnD,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,QAAQ,EAAE,SAAS,KAAK,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;KAChE,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport { BackstageActionItem as UIA_BackstageActionItem, BackstageStageLauncher as UIA_BackstageStageLauncher } from \"@itwin/appui-abstract\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { BackstageItemProps, BackstageItemState } from \"./BackstageItemProps\";\r\n\r\n/** Used to specify the item type added to the backstage menu.\r\n * @beta\r\n * @deprecated Use [BackstageItemType]($appui-abstract) in bentley/appui-abstract instead\r\n */\r\nexport enum BackstageItemType {\r\n /** Item that executes an action function */\r\n ActionItem = 1,\r\n /** Item that activate a stage. */\r\n StageLauncher = 2,\r\n}\r\n\r\n/** Describes the data needed to insert an action button into the backstage menu.\r\n * @beta\r\n * @deprecated Use [BackstageActionItem]($appui-abstract) in bentley/appui-abstract instead\r\n */\r\nexport interface BackstageActionItem extends UIA_BackstageActionItem {\r\n readonly type: BackstageItemType.ActionItem; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** Describes the data needed to insert an action button into the backstage menu.\r\n * @beta\r\n * @deprecated Use [BackstageStageLauncher]($appui-abstract) in bentley/appui-abstract instead\r\n */\r\nexport interface BackstageStageLauncher extends UIA_BackstageStageLauncher {\r\n readonly type: BackstageItemType.StageLauncher; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** Utilities for creating and maintaining backstage items\r\n * @beta @deprecated\r\n */\r\nexport class BackstageItemUtilities {\r\n /** Creates a stage launcher backstage item\r\n * @beta\r\n * @deprecated Use BackstageItemUtilities.createStageLauncher in bentley/appui-abstract instead\r\n */\r\n public static createStageLauncher = (frontstageId: string, groupPriority: number, itemPriority: number, label: string, subtitle?: string, iconSpec?: string, overrides?: Partial<BackstageStageLauncher>): BackstageStageLauncher => ({ // eslint-disable-line deprecation/deprecation\r\n groupPriority,\r\n icon: iconSpec,\r\n id: frontstageId,\r\n itemPriority,\r\n type: BackstageItemType.StageLauncher, // eslint-disable-line deprecation/deprecation\r\n label,\r\n stageId: frontstageId,\r\n subtitle,\r\n ...overrides,\r\n });\r\n\r\n /** Creates an action backstage item\r\n * @beta\r\n * @deprecated Use BackstageItemUtilities.createActionItem in bentley/appui-abstract instead\r\n */\r\n public static createActionItem = (itemId: string, groupPriority: number, itemPriority: number, execute: () => void, label: string, subtitle?: string, iconSpec?: string, overrides?: Partial<BackstageActionItem>): BackstageActionItem => ({ // eslint-disable-line deprecation/deprecation\r\n execute,\r\n groupPriority,\r\n icon: iconSpec,\r\n id: itemId,\r\n itemPriority,\r\n type: BackstageItemType.ActionItem, // eslint-disable-line deprecation/deprecation\r\n label,\r\n subtitle,\r\n ...overrides,\r\n });\r\n\r\n /** Helper method to set backstage item state from props */\r\n public static getBackstageItemStateFromProps = (props: BackstageItemProps): BackstageItemState => { // eslint-disable-line deprecation/deprecation\r\n const labelSpec = PropsHelper.getStringSpec(props.label, props.labelKey);\r\n const subtitleSpec = PropsHelper.getStringSpec(props.description, props.descriptionKey);\r\n const tooltipSpec = PropsHelper.getStringSpec(props.tooltip, props.tooltipKey);\r\n\r\n return {\r\n isEnabled: undefined !== props.isEnabled ? props.isEnabled : /* istanbul ignore next */false,\r\n label: PropsHelper.getStringFromSpec(labelSpec),\r\n subtitle: PropsHelper.getStringFromSpec(subtitleSpec),\r\n tooltip: PropsHelper.getStringFromSpec(tooltipSpec),\r\n iconSpec: props.iconSpec,\r\n isActive: undefined !== props.isActive ? props.isActive : false,\r\n };\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"BackstageItemUtilities.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/BackstageItemUtilities.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,sDAAmD;AAGnD;;;GAGG;AACH,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,qEAAc,CAAA;IACd,kCAAkC;IAClC,2EAAiB,CAAA;AACnB,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AAkBD;;GAEG;AACH,MAAa,sBAAsB;;AAAnC,wDAgDC;AA/CC;;;GAGG;AACW,0CAAmB,GAAG,CAAC,YAAoB,EAAE,aAAqB,EAAE,YAAoB,EAAE,KAAa,EAAE,QAAiB,EAAE,QAAiB,EAAE,SAA2C,EAA0B,EAAE,CAAC,CAAC;IACpO,aAAa;IACb,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,QAAQ;QACxB,QAAQ,EAAE,SAAS,KAAK,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;KAChE,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport { BackstageActionItem as UIA_BackstageActionItem, BackstageStageLauncher as UIA_BackstageStageLauncher } from \"@itwin/appui-abstract\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { BackstageItemProps, BackstageItemState } from \"./BackstageItemProps\";\r\n\r\n/** Used to specify the item type added to the backstage menu.\r\n * @beta\r\n * @deprecated Use [BackstageItemType]($appui-abstract) instead\r\n */\r\nexport enum BackstageItemType {\r\n /** Item that executes an action function */\r\n ActionItem = 1,\r\n /** Item that activate a stage. */\r\n StageLauncher = 2,\r\n}\r\n\r\n/** Describes the data needed to insert an action button into the backstage menu.\r\n * @beta\r\n * @deprecated Use [BackstageActionItem]($appui-abstract) instead\r\n */\r\nexport interface BackstageActionItem extends UIA_BackstageActionItem {\r\n readonly type: BackstageItemType.ActionItem; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** Describes the data needed to insert an action button into the backstage menu.\r\n * @beta\r\n * @deprecated Use [BackstageStageLauncher]($appui-abstract) instead\r\n */\r\nexport interface BackstageStageLauncher extends UIA_BackstageStageLauncher {\r\n readonly type: BackstageItemType.StageLauncher; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** Utilities for creating and maintaining backstage items\r\n * @beta @deprecated\r\n */\r\nexport class BackstageItemUtilities {\r\n /** Creates a stage launcher backstage item\r\n * @beta\r\n * @deprecated Use [BackstageItemUtilities.createStageLauncher]($appui-abstract) instead\r\n */\r\n public static createStageLauncher = (frontstageId: string, groupPriority: number, itemPriority: number, label: string, subtitle?: string, iconSpec?: string, overrides?: Partial<BackstageStageLauncher>): BackstageStageLauncher => ({ // eslint-disable-line deprecation/deprecation\r\n groupPriority,\r\n icon: iconSpec,\r\n id: frontstageId,\r\n itemPriority,\r\n type: BackstageItemType.StageLauncher, // eslint-disable-line deprecation/deprecation\r\n label,\r\n stageId: frontstageId,\r\n subtitle,\r\n ...overrides,\r\n });\r\n\r\n /** Creates an action backstage item\r\n * @beta\r\n * @deprecated Use [BackstageItemUtilities.createActionItem]($appui-abstract) instead\r\n */\r\n public static createActionItem = (itemId: string, groupPriority: number, itemPriority: number, execute: () => void, label: string, subtitle?: string, iconSpec?: string, overrides?: Partial<BackstageActionItem>): BackstageActionItem => ({ // eslint-disable-line deprecation/deprecation\r\n execute,\r\n groupPriority,\r\n icon: iconSpec,\r\n id: itemId,\r\n itemPriority,\r\n type: BackstageItemType.ActionItem, // eslint-disable-line deprecation/deprecation\r\n label,\r\n subtitle,\r\n ...overrides,\r\n });\r\n\r\n /** Helper method to set backstage item state from props */\r\n public static getBackstageItemStateFromProps = (props: BackstageItemProps): BackstageItemState => { // eslint-disable-line deprecation/deprecation\r\n const labelSpec = PropsHelper.getStringSpec(props.label, props.labelKey);\r\n const subtitleSpec = PropsHelper.getStringSpec(props.description, props.descriptionKey);\r\n const tooltipSpec = PropsHelper.getStringSpec(props.tooltip, props.tooltipKey);\r\n\r\n return {\r\n isEnabled: undefined !== props.isEnabled ? props.isEnabled : /* istanbul ignore next */false,\r\n label: PropsHelper.getStringFromSpec(labelSpec),\r\n subtitle: PropsHelper.getStringFromSpec(subtitleSpec),\r\n tooltip: PropsHelper.getStringFromSpec(tooltipSpec),\r\n iconSpec: props.iconSpec,\r\n isActive: undefined !== props.isActive ? props.isActive : false,\r\n };\r\n };\r\n}\r\n"]}
@@ -6,6 +6,7 @@ import { CommandHandler } from "@itwin/appui-abstract";
6
6
  import { BackstageItemProps, BackstageItemState } from "./BackstageItemProps";
7
7
  /** Properties for a [[CommandLaunchBackstageItem]] component
8
8
  * @public
9
+ * @deprecated Use [BackstageActionItem]($appui-abstract) instead.
9
10
  */
10
11
  export interface CommandLaunchBackstageItemProps extends BackstageItemProps, CommandHandler {
11
12
  /** Unique Id for this backstage item. */
@@ -13,6 +14,7 @@ export interface CommandLaunchBackstageItemProps extends BackstageItemProps, Com
13
14
  }
14
15
  /** Backstage item that launches a Command
15
16
  * @public
17
+ * @deprecated Use [BackstageActionItem]($appui-abstract) instead.
16
18
  */
17
19
  export declare class CommandLaunchBackstageItem extends React.PureComponent<CommandLaunchBackstageItemProps, BackstageItemState> {
18
20
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"CommandLaunch.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/CommandLaunch.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAOvD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ9E;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,kBAAkB,EAAE,cAAc;IACzF,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,KAAK,CAAC,aAAa,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAEtH,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC7D,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,aAAa,CAAgB;gBAEzB,KAAK,EAAE,+BAA+B;IAUlC,iBAAiB;IAKjB,oBAAoB;IAOpC,OAAO,CAAC,kBAAkB,CAexB;IAEK,OAAO,QAAO,IAAI,CAUvB;IAIc,kBAAkB,CAAC,UAAU,EAAE,+BAA+B;IAQ9D,MAAM,IAAI,KAAK,CAAC,SAAS;CAa1C"}
1
+ {"version":3,"file":"CommandLaunch.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/CommandLaunch.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAmB,MAAM,uBAAuB,CAAC;AAOxE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ9E;;;GAGG;AACH,MAAM,WAAW,+BAAgC,SAAQ,kBAAkB,EAAE,cAAc;IACzF,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,KAAK,CAAC,aAAa,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAEtH,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC7D,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,aAAa,CAAgB;gBAEzB,KAAK,EAAE,+BAA+B;IAUlC,iBAAiB;IAKjB,oBAAoB;IAOpC,OAAO,CAAC,kBAAkB,CAexB;IAEK,OAAO,QAAO,IAAI,CAUvB;IAIc,kBAAkB,CAAC,UAAU,EAAE,+BAA+B;IAQ9D,MAAM,IAAI,KAAK,CAAC,SAAS;CAa1C"}
@@ -22,6 +22,7 @@ const BackstageItemUtilities_1 = require("./BackstageItemUtilities");
22
22
  const BackstageItem = (0, SafeAreaContext_1.withSafeArea)(appui_layout_react_1.BackstageItem);
23
23
  /** Backstage item that launches a Command
24
24
  * @public
25
+ * @deprecated Use [BackstageActionItem]($appui-abstract) instead.
25
26
  */
26
27
  class CommandLaunchBackstageItem extends React.PureComponent {
27
28
  constructor(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"CommandLaunch.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/CommandLaunch.tsx"],"names":[],"mappings":";AAAA;;;+F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,yBAAW,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC;YACvD,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC;IAChD,CAAC;IAED,+DAA+D;IAC/C,MAAM;QACpB,OAAO,CACL,oBAAC,aAAa,IACZ,IAAI,EAAE,yBAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAC9C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,UAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EACjC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,IAEpB,IAAI,CAAC,KAAK,CAAC,KAAK,CACH,CACjB,CAAC;IACJ,CAAC;CACF;AAjFD,gEAiFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport { CommandHandler } from \"@itwin/appui-abstract\";\r\nimport { BackstageItem as NZ_BackstageItem } from \"@itwin/appui-layout-react\";\r\nimport { withSafeArea } from \"../safearea/SafeAreaContext\";\r\nimport { SyncUiEventArgs, SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { Backstage } from \"./Backstage\";\r\nimport { BackstageItemProps, BackstageItemState } from \"./BackstageItemProps\";\r\nimport { BackstageItemUtilities } from \"./BackstageItemUtilities\";\r\n\r\n// cspell:ignore safearea\r\n\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nconst BackstageItem = withSafeArea(NZ_BackstageItem);\r\n\r\n/** Properties for a [[CommandLaunchBackstageItem]] component\r\n * @public\r\n */\r\nexport interface CommandLaunchBackstageItemProps extends BackstageItemProps, CommandHandler { // eslint-disable-line deprecation/deprecation\r\n /** Unique Id for this backstage item. */\r\n commandId: string;\r\n}\r\n\r\n/** Backstage item that launches a Command\r\n * @public\r\n */\r\nexport class CommandLaunchBackstageItem extends React.PureComponent<CommandLaunchBackstageItemProps, BackstageItemState> { // eslint-disable-line deprecation/deprecation\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<BackstageItemState>; // eslint-disable-line deprecation/deprecation\r\n private _componentUnmounting = false; // used to ensure _handleSyncUiEvent callback is not processed after componentWillUnmount is called\r\n private _stateSyncIds: string[] = []; // local version of syncId that are lower cased\r\n\r\n constructor(props: CommandLaunchBackstageItemProps) {\r\n super(props);\r\n\r\n if (props.stateSyncIds)\r\n this._stateSyncIds = props.stateSyncIds.map((value) => value.toLowerCase());\r\n\r\n // eslint-disable-next-line deprecation/deprecation\r\n this.state = BackstageItemUtilities.getBackstageItemStateFromProps(props);\r\n }\r\n\r\n public override componentDidMount() {\r\n if (this.props.stateFunc && this._stateSyncIds.length > 0)\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n this._componentUnmounting = true;\r\n /* istanbul ignore else */\r\n if (this.props.stateFunc && this._stateSyncIds.length > 0)\r\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(this._handleSyncUiEvent);\r\n }\r\n\r\n private _handleSyncUiEvent = (args: SyncUiEventArgs): void => {\r\n /* istanbul ignore next */\r\n if (this._componentUnmounting)\r\n return;\r\n\r\n /* istanbul ignore else */\r\n if (SyncUiEventDispatcher.hasEventOfInterest(args.eventIds, this._stateSyncIds)) {\r\n /* istanbul ignore else */\r\n if (this.props.stateFunc) {\r\n const newState = this.props.stateFunc(this.state);\r\n /* istanbul ignore next */\r\n if (!PropsHelper.isShallowEqual(newState, this.state))\r\n this.setState((_prevState) => newState);\r\n }\r\n }\r\n };\r\n\r\n public execute = (): void => {\r\n Backstage.hide(); // eslint-disable-line deprecation/deprecation\r\n\r\n if (this.props.execute) {\r\n if (this.props.getCommandArgs)\r\n this.props.execute(this.props.getCommandArgs());\r\n else\r\n this.props.execute(this.props.parameters);\r\n } else\r\n Logger.logError(UiFramework.loggerCategory(this), `'${this.props.commandId}' has no execute() function`);\r\n };\r\n\r\n // deprecated class\r\n // istanbul ignore next\r\n public override componentDidUpdate(_prevProps: CommandLaunchBackstageItemProps) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n const updatedState = BackstageItemUtilities.getBackstageItemStateFromProps(this.props);\r\n if (!PropsHelper.isShallowEqual(updatedState, this.state))\r\n this.setState((_prevState) => updatedState);\r\n }\r\n\r\n // TODO: add tooltip, subtitle, aria-label? to NZ_BackstageItem\r\n public override render(): React.ReactNode {\r\n return (\r\n <BackstageItem\r\n icon={PropsHelper.getIcon(this.state.iconSpec)}\r\n isActive={this.state.isActive}\r\n isDisabled={!this.state.isEnabled}\r\n key={this.props.commandId}\r\n onClick={this.execute}\r\n >\r\n {this.state.label}\r\n </BackstageItem>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"CommandLaunch.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/CommandLaunch.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAA6C;AAE7C,kEAA8E;AAC9E,iEAA2D;AAC3D,2EAAwE;AACxE,gDAA6C;AAC7C,sDAAmD;AACnD,2CAAwC;AAExC,qEAAkE;AAElE,yBAAyB;AAEzB,gEAAgE;AAChE,MAAM,aAAa,GAAG,IAAA,8BAAY,EAAC,kCAAgB,CAAC,CAAC;AAWrD;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,KAAK,CAAC,aAAkE;IAOtH,YAAY,KAAsC;QAChD,KAAK,CAAC,KAAK,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AAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EACjC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,IAEpB,IAAI,CAAC,KAAK,CAAC,KAAK,CACH,CACjB,CAAC;IACJ,CAAC;CACF;AAjFD,gEAiFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport { CommandHandler, UiSyncEventArgs } from \"@itwin/appui-abstract\";\r\nimport { BackstageItem as NZ_BackstageItem } from \"@itwin/appui-layout-react\";\r\nimport { withSafeArea } from \"../safearea/SafeAreaContext\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { Backstage } from \"./Backstage\";\r\nimport { BackstageItemProps, BackstageItemState } from \"./BackstageItemProps\";\r\nimport { BackstageItemUtilities } from \"./BackstageItemUtilities\";\r\n\r\n// cspell:ignore safearea\r\n\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nconst BackstageItem = withSafeArea(NZ_BackstageItem);\r\n\r\n/** Properties for a [[CommandLaunchBackstageItem]] component\r\n * @public\r\n * @deprecated Use [BackstageActionItem]($appui-abstract) instead.\r\n */\r\nexport interface CommandLaunchBackstageItemProps extends BackstageItemProps, CommandHandler { // eslint-disable-line deprecation/deprecation\r\n /** Unique Id for this backstage item. */\r\n commandId: string;\r\n}\r\n\r\n/** Backstage item that launches a Command\r\n * @public\r\n * @deprecated Use [BackstageActionItem]($appui-abstract) instead.\r\n */\r\nexport class CommandLaunchBackstageItem extends React.PureComponent<CommandLaunchBackstageItemProps, BackstageItemState> { // eslint-disable-line deprecation/deprecation\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<BackstageItemState>; // eslint-disable-line deprecation/deprecation\r\n private _componentUnmounting = false; // used to ensure _handleSyncUiEvent callback is not processed after componentWillUnmount is called\r\n private _stateSyncIds: string[] = []; // local version of syncId that are lower cased\r\n\r\n constructor(props: CommandLaunchBackstageItemProps) { // eslint-disable-line deprecation/deprecation\r\n super(props);\r\n\r\n if (props.stateSyncIds)\r\n this._stateSyncIds = props.stateSyncIds.map((value) => value.toLowerCase());\r\n\r\n // eslint-disable-next-line deprecation/deprecation\r\n this.state = BackstageItemUtilities.getBackstageItemStateFromProps(props);\r\n }\r\n\r\n public override componentDidMount() {\r\n if (this.props.stateFunc && this._stateSyncIds.length > 0)\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n this._componentUnmounting = true;\r\n /* istanbul ignore else */\r\n if (this.props.stateFunc && this._stateSyncIds.length > 0)\r\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(this._handleSyncUiEvent);\r\n }\r\n\r\n private _handleSyncUiEvent = (args: UiSyncEventArgs): void => {\r\n /* istanbul ignore next */\r\n if (this._componentUnmounting)\r\n return;\r\n\r\n /* istanbul ignore else */\r\n if (SyncUiEventDispatcher.hasEventOfInterest(args.eventIds, this._stateSyncIds)) {\r\n /* istanbul ignore else */\r\n if (this.props.stateFunc) {\r\n const newState = this.props.stateFunc(this.state);\r\n /* istanbul ignore next */\r\n if (!PropsHelper.isShallowEqual(newState, this.state))\r\n this.setState((_prevState) => newState);\r\n }\r\n }\r\n };\r\n\r\n public execute = (): void => {\r\n Backstage.hide(); // eslint-disable-line deprecation/deprecation\r\n\r\n if (this.props.execute) {\r\n if (this.props.getCommandArgs)\r\n this.props.execute(this.props.getCommandArgs());\r\n else\r\n this.props.execute(this.props.parameters);\r\n } else\r\n Logger.logError(UiFramework.loggerCategory(this), `'${this.props.commandId}' has no execute() function`);\r\n };\r\n\r\n // deprecated class\r\n // istanbul ignore next\r\n public override componentDidUpdate(_prevProps: CommandLaunchBackstageItemProps) { // eslint-disable-line deprecation/deprecation\r\n // eslint-disable-next-line deprecation/deprecation\r\n const updatedState = BackstageItemUtilities.getBackstageItemStateFromProps(this.props);\r\n if (!PropsHelper.isShallowEqual(updatedState, this.state))\r\n this.setState((_prevState) => updatedState);\r\n }\r\n\r\n // TODO: add tooltip, subtitle, aria-label? to NZ_BackstageItem\r\n public override render(): React.ReactNode {\r\n return (\r\n <BackstageItem\r\n icon={PropsHelper.getIcon(this.state.iconSpec)}\r\n isActive={this.state.isActive}\r\n isDisabled={!this.state.isEnabled}\r\n key={this.props.commandId}\r\n onClick={this.execute}\r\n >\r\n {this.state.label}\r\n </BackstageItem>\r\n );\r\n }\r\n}\r\n"]}
@@ -5,6 +5,7 @@ import * as React from "react";
5
5
  import { BackstageItemProps, BackstageItemState } from "./BackstageItemProps";
6
6
  /** Properties for a [[FrontstageLaunchBackstageItem]] component
7
7
  * @public
8
+ * @deprecated Use [BackstageStageLauncher]($appui-abstract) instead.
8
9
  */
9
10
  export interface FrontstageLaunchBackstageItemProps extends BackstageItemProps {
10
11
  /** id of the frontstage */
@@ -12,12 +13,15 @@ export interface FrontstageLaunchBackstageItemProps extends BackstageItemProps {
12
13
  }
13
14
  /** Backstage item that activates a Frontstage
14
15
  * @public
16
+ * @deprecated Use [BackstageStageLauncher]($appui-abstract) instead.
15
17
  */
16
18
  export declare class FrontstageLaunchBackstageItem extends React.PureComponent<FrontstageLaunchBackstageItemProps, BackstageItemState> {
17
19
  /** @internal */
18
20
  readonly state: Readonly<BackstageItemState>;
19
21
  private _componentUnmounting;
20
22
  private _stateSyncIds;
23
+ private _removeSyncUiEventListener?;
24
+ private _removeFrontstageActivatedEventListener?;
21
25
  constructor(props: FrontstageLaunchBackstageItemProps);
22
26
  componentDidMount(): void;
23
27
  componentWillUnmount(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"FrontstageLaunch.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/FrontstageLaunch.tsx"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ9E;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,kBAAkB;IAC5E,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,KAAK,CAAC,aAAa,CAAC,kCAAkC,EAAE,kBAAkB,CAAC;IAC5H,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC7D,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,aAAa,CAAgB;gBAEzB,KAAK,EAAE,kCAAkC;IAarC,iBAAiB;IAMjB,oBAAoB;IAQpC,OAAO,CAAC,kBAAkB,CAexB;IAEK,OAAO,sBAQZ;IAEc,kBAAkB,CAAC,UAAU,EAAE,kCAAkC;IAOjF,OAAO,CAAC,+BAA+B,CAKrC;IAGc,MAAM,IAAI,KAAK,CAAC,SAAS;CAc1C"}
1
+ {"version":3,"file":"FrontstageLaunch.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/FrontstageLaunch.tsx"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ9E;;;GAGG;AACH,MAAM,WAAW,kCAAmC,SAAQ,kBAAkB;IAC5E,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,qBAAa,6BAA8B,SAAQ,KAAK,CAAC,aAAa,CAAC,kCAAkC,EAAE,kBAAkB,CAAC;IAC5H,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC7D,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,0BAA0B,CAAC,CAAa;IAChD,OAAO,CAAC,uCAAuC,CAAC,CAAa;gBACjD,KAAK,EAAE,kCAAkC;IAarC,iBAAiB;IAMjB,oBAAoB;IAMpC,OAAO,CAAC,kBAAkB,CAexB;IAEK,OAAO,sBAQZ;IAEc,kBAAkB,CAAC,UAAU,EAAE,kCAAkC;IAOjF,OAAO,CAAC,+BAA+B,CAKrC;IAGc,MAAM,IAAI,KAAK,CAAC,SAAS;CAc1C"}
@@ -24,6 +24,7 @@ const BackstageItemUtilities_1 = require("./BackstageItemUtilities");
24
24
  const BackstageItem = (0, SafeAreaContext_1.withSafeArea)(appui_layout_react_1.BackstageItem);
25
25
  /** Backstage item that activates a Frontstage
26
26
  * @public
27
+ * @deprecated Use [BackstageStageLauncher]($appui-abstract) instead.
27
28
  */
28
29
  class FrontstageLaunchBackstageItem extends React.PureComponent {
29
30
  constructor(props) {
@@ -69,15 +70,13 @@ class FrontstageLaunchBackstageItem extends React.PureComponent {
69
70
  }
70
71
  componentDidMount() {
71
72
  if (this.props.stateFunc && this._stateSyncIds.length > 0)
72
- SyncUiEventDispatcher_1.SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);
73
- FrontstageManager_1.FrontstageManager.onFrontstageActivatedEvent.addListener(this._handleFrontstageActivatedEvent);
73
+ this._removeSyncUiEventListener = SyncUiEventDispatcher_1.SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);
74
+ this._removeFrontstageActivatedEventListener = FrontstageManager_1.FrontstageManager.onFrontstageActivatedEvent.addListener(this._handleFrontstageActivatedEvent);
74
75
  }
75
76
  componentWillUnmount() {
76
77
  this._componentUnmounting = true;
77
- /* istanbul ignore else */
78
- if (this.props.stateFunc && this._stateSyncIds.length > 0)
79
- SyncUiEventDispatcher_1.SyncUiEventDispatcher.onSyncUiEvent.removeListener(this._handleSyncUiEvent);
80
- FrontstageManager_1.FrontstageManager.onFrontstageActivatedEvent.removeListener(this._handleFrontstageActivatedEvent);
78
+ this._removeSyncUiEventListener && this._removeSyncUiEventListener();
79
+ this._removeFrontstageActivatedEventListener && this._removeFrontstageActivatedEventListener();
81
80
  }
82
81
  componentDidUpdate(_prevProps) {
83
82
  const updatedState = BackstageItemUtilities_1.BackstageItemUtilities.getBackstageItemStateFromProps(this.props);
@@ -1 +1 @@
1
- {"version":3,"file":"FrontstageLaunch.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/FrontstageLaunch.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAA6C;AAC7C,kEAA8E;AAC9E,uEAAkG;AAClG,iEAA2D;AAC3D,2EAAyF;AACzF,gDAA6C;AAC7C,sDAAmD;AACnD,2CAAwC;AAExC,qEAAkE;AAElE,yBAAyB;AAEzB,gEAAgE;AAChE,MAAM,aAAa,GAAG,IAAA,8BAAY,EAAC,kCAAgB,CAAC,CAAC;AAUrD;;GAEG;AACH,MAAa,6BAA8B,SAAQ,KAAK,CAAC,aAAqE;IAM5H,YAAY,KAAyC;QACnD,KAAK,CAAC,KAAK,CAAC,CAAC;QAJP,yBAAoB,GAAG,KAAK,CAAC,CAAE,mGAAmG;QAClI,kBAAa,GAAa,EAAE,CAAC,CAAE,+CAA+C;QA6B9E,uBAAkB,GAAG,CAAC,IAAqB,EAAQ,EAAE;YAC3D,0BAA0B;YAC1B,IAAI,IAAI,CAAC,oBAAoB;gBAC3B,OAAO;YAET,0BAA0B;YAC1B,IAAI,6CAAqB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE;gBAC/E,0BAA0B;gBAC1B,IAAI,IAAI,CAAC,KA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C,YAAY,CAAC,CAAC;IAChD,CAAC;IASD,qDAAqD;IACrC,MAAM;QACpB,OAAO,CACL,oBAAC,aAAa,IACZ,IAAI,EAAE,yBAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAC9C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,UAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EACjC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,IAE5B,IAAI,CAAC,KAAK,CAAC,KAAK,CACH,CACjB,CAAC;IACJ,CAAC;CACF;AAzFD,sEAyFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport { BackstageItem as NZ_BackstageItem } from \"@itwin/appui-layout-react\";\r\nimport { FrontstageActivatedEventArgs, FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { withSafeArea } from \"../safearea/SafeAreaContext\";\r\nimport { SyncUiEventArgs, SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { Backstage } from \"./Backstage\";\r\nimport { BackstageItemProps, BackstageItemState } from \"./BackstageItemProps\";\r\nimport { BackstageItemUtilities } from \"./BackstageItemUtilities\";\r\n\r\n// cspell:ignore safearea\r\n\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nconst BackstageItem = withSafeArea(NZ_BackstageItem);\r\n\r\n/** Properties for a [[FrontstageLaunchBackstageItem]] component\r\n * @public\r\n */\r\nexport interface FrontstageLaunchBackstageItemProps extends BackstageItemProps { // eslint-disable-line deprecation/deprecation\r\n /** id of the frontstage */\r\n frontstageId: string;\r\n}\r\n\r\n/** Backstage item that activates a Frontstage\r\n * @public\r\n */\r\nexport class FrontstageLaunchBackstageItem extends React.PureComponent<FrontstageLaunchBackstageItemProps, BackstageItemState> { // eslint-disable-line deprecation/deprecation\r\n /** @internal */\r\n public override readonly state: Readonly<BackstageItemState>; // eslint-disable-line deprecation/deprecation\r\n private _componentUnmounting = false; // used to ensure _handleSyncUiEvent callback is not processed after componentWillUnmount is called\r\n private _stateSyncIds: string[] = []; // local version of syncId that are lower cased\r\n\r\n constructor(props: FrontstageLaunchBackstageItemProps) {\r\n super(props);\r\n\r\n if (props.stateSyncIds)\r\n this._stateSyncIds = props.stateSyncIds.map((value) => value.toLowerCase());\r\n\r\n const state = BackstageItemUtilities.getBackstageItemStateFromProps(props);\r\n /* istanbul ignore else */\r\n if (this.props.isActive === undefined)\r\n state.isActive = FrontstageManager.activeFrontstageId === this.props.frontstageId;\r\n this.state = state;\r\n }\r\n\r\n public override componentDidMount() {\r\n if (this.props.stateFunc && this._stateSyncIds.length > 0)\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);\r\n FrontstageManager.onFrontstageActivatedEvent.addListener(this._handleFrontstageActivatedEvent);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n this._componentUnmounting = true;\r\n /* istanbul ignore else */\r\n if (this.props.stateFunc && this._stateSyncIds.length > 0)\r\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(this._handleSyncUiEvent);\r\n FrontstageManager.onFrontstageActivatedEvent.removeListener(this._handleFrontstageActivatedEvent);\r\n }\r\n\r\n private _handleSyncUiEvent = (args: SyncUiEventArgs): void => {\r\n /* istanbul ignore next */\r\n if (this._componentUnmounting)\r\n return;\r\n\r\n /* istanbul ignore else */\r\n if (SyncUiEventDispatcher.hasEventOfInterest(args.eventIds, this._stateSyncIds)) {\r\n /* istanbul ignore else */\r\n if (this.props.stateFunc) {\r\n const newState = this.props.stateFunc(this.state);\r\n /* istanbul ignore else */\r\n if (!PropsHelper.isShallowEqual(newState, this.state))\r\n this.setState((_prevState) => newState);\r\n }\r\n }\r\n };\r\n\r\n public execute = async () => {\r\n Backstage.hide(); // eslint-disable-line deprecation/deprecation\r\n\r\n const frontstageDef = await FrontstageManager.getFrontstageDef(this.props.frontstageId);\r\n if (frontstageDef)\r\n await FrontstageManager.setActiveFrontstageDef(frontstageDef);\r\n else\r\n Logger.logError(UiFramework.loggerCategory(this), `Frontstage with id '${this.props.frontstageId}' not found`);\r\n };\r\n\r\n public override componentDidUpdate(_prevProps: FrontstageLaunchBackstageItemProps) {\r\n const updatedState = BackstageItemUtilities.getBackstageItemStateFromProps(this.props);\r\n updatedState.isActive = FrontstageManager.activeFrontstageId === this.props.frontstageId;\r\n if (!PropsHelper.isShallowEqual(updatedState, this.state))\r\n this.setState((_prevState) => updatedState);\r\n }\r\n\r\n private _handleFrontstageActivatedEvent = (args: FrontstageActivatedEventArgs) => {\r\n const isActive = args.activatedFrontstageDef.id === this.props.frontstageId;\r\n /* istanbul ignore else */\r\n if (isActive !== this.state.isActive)\r\n this.setState({ isActive });\r\n };\r\n\r\n // TODO: add tooltip, aria-label? to NZ_BackstageItem\r\n public override render(): React.ReactNode {\r\n return (\r\n <BackstageItem\r\n icon={PropsHelper.getIcon(this.state.iconSpec)}\r\n isActive={this.state.isActive}\r\n isDisabled={!this.state.isEnabled}\r\n key={this.props.frontstageId}\r\n onClick={this.execute}\r\n subtitle={this.state.subtitle}\r\n >\r\n {this.state.label}\r\n </BackstageItem>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"FrontstageLaunch.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/FrontstageLaunch.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4C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C7G,IAAI,CAAC,uCAAuC,GAAG,qCAAiB,CAAC,0BAA0B,CAAC,WAAW,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;IAChJ,CAAC;IAEe,oBAAoB;QAClC,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC;QACjC,IAAI,CAAC,0BAA0B,IAAI,IAAI,CAAC,0BAA0B,EAAE,CAAC;QACrE,IAAI,CAAC,uCAAuC,IAAI,IAAI,CAAC,uCAAuC,EAAE,CAAC;IACjG,CAAC;IA6Be,kBAAkB,CAAC,UAA8C;QAC/E,MAAM,YAAY,GAAG,+CAAsB,CAAC,8BAA8B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvF,YAAY,CAAC,QAAQ,GAAG,qCAAiB,CAAC,kBAAkB,KAAK,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;QACzF,IAAI,CAAC,yBAAW,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC;YACvD,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC;IAChD,CAAC;IASD,qDAAqD;IACrC,MAAM;QACpB,OAAO,CACL,oBAAC,aAAa,IACZ,IAAI,EAAE,yBAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAC9C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,UAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EACjC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,IAE5B,IAAI,CAAC,KAAK,CAAC,KAAK,CACH,CACjB,CAAC;IACJ,CAAC;CACF;AAxFD,sEAwFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport { BackstageItem as NZ_BackstageItem } from \"@itwin/appui-layout-react\";\r\nimport { FrontstageActivatedEventArgs, FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { withSafeArea } from \"../safearea/SafeAreaContext\";\r\nimport { SyncUiEventArgs, SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { Backstage } from \"./Backstage\";\r\nimport { BackstageItemProps, BackstageItemState } from \"./BackstageItemProps\";\r\nimport { BackstageItemUtilities } from \"./BackstageItemUtilities\";\r\n\r\n// cspell:ignore safearea\r\n\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nconst BackstageItem = withSafeArea(NZ_BackstageItem);\r\n\r\n/** Properties for a [[FrontstageLaunchBackstageItem]] component\r\n * @public\r\n * @deprecated Use [BackstageStageLauncher]($appui-abstract) instead.\r\n */\r\nexport interface FrontstageLaunchBackstageItemProps extends BackstageItemProps { // eslint-disable-line deprecation/deprecation\r\n /** id of the frontstage */\r\n frontstageId: string;\r\n}\r\n\r\n/** Backstage item that activates a Frontstage\r\n * @public\r\n * @deprecated Use [BackstageStageLauncher]($appui-abstract) instead.\r\n */\r\nexport class FrontstageLaunchBackstageItem extends React.PureComponent<FrontstageLaunchBackstageItemProps, BackstageItemState> { // eslint-disable-line deprecation/deprecation\r\n /** @internal */\r\n public override readonly state: Readonly<BackstageItemState>; // eslint-disable-line deprecation/deprecation\r\n private _componentUnmounting = false; // used to ensure _handleSyncUiEvent callback is not processed after componentWillUnmount is called\r\n private _stateSyncIds: string[] = []; // local version of syncId that are lower cased\r\n private _removeSyncUiEventListener?: () => void;\r\n private _removeFrontstageActivatedEventListener?: () => void;\r\n constructor(props: FrontstageLaunchBackstageItemProps) {\r\n super(props);\r\n\r\n if (props.stateSyncIds)\r\n this._stateSyncIds = props.stateSyncIds.map((value) => value.toLowerCase());\r\n\r\n const state = BackstageItemUtilities.getBackstageItemStateFromProps(props);\r\n /* istanbul ignore else */\r\n if (this.props.isActive === undefined)\r\n state.isActive = FrontstageManager.activeFrontstageId === this.props.frontstageId;\r\n this.state = state;\r\n }\r\n\r\n public override componentDidMount() {\r\n if (this.props.stateFunc && this._stateSyncIds.length > 0)\r\n this._removeSyncUiEventListener = SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);\r\n this._removeFrontstageActivatedEventListener = FrontstageManager.onFrontstageActivatedEvent.addListener(this._handleFrontstageActivatedEvent);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n this._componentUnmounting = true;\r\n this._removeSyncUiEventListener && this._removeSyncUiEventListener();\r\n this._removeFrontstageActivatedEventListener && this._removeFrontstageActivatedEventListener();\r\n }\r\n\r\n private _handleSyncUiEvent = (args: SyncUiEventArgs): void => {\r\n /* istanbul ignore next */\r\n if (this._componentUnmounting)\r\n return;\r\n\r\n /* istanbul ignore else */\r\n if (SyncUiEventDispatcher.hasEventOfInterest(args.eventIds, this._stateSyncIds)) {\r\n /* istanbul ignore else */\r\n if (this.props.stateFunc) {\r\n const newState = this.props.stateFunc(this.state);\r\n /* istanbul ignore else */\r\n if (!PropsHelper.isShallowEqual(newState, this.state))\r\n this.setState((_prevState) => newState);\r\n }\r\n }\r\n };\r\n\r\n public execute = async () => {\r\n Backstage.hide(); // eslint-disable-line deprecation/deprecation\r\n\r\n const frontstageDef = await FrontstageManager.getFrontstageDef(this.props.frontstageId);\r\n if (frontstageDef)\r\n await FrontstageManager.setActiveFrontstageDef(frontstageDef);\r\n else\r\n Logger.logError(UiFramework.loggerCategory(this), `Frontstage with id '${this.props.frontstageId}' not found`);\r\n };\r\n\r\n public override componentDidUpdate(_prevProps: FrontstageLaunchBackstageItemProps) {\r\n const updatedState = BackstageItemUtilities.getBackstageItemStateFromProps(this.props);\r\n updatedState.isActive = FrontstageManager.activeFrontstageId === this.props.frontstageId;\r\n if (!PropsHelper.isShallowEqual(updatedState, this.state))\r\n this.setState((_prevState) => updatedState);\r\n }\r\n\r\n private _handleFrontstageActivatedEvent = (args: FrontstageActivatedEventArgs) => {\r\n const isActive = args.activatedFrontstageDef.id === this.props.frontstageId;\r\n /* istanbul ignore else */\r\n if (isActive !== this.state.isActive)\r\n this.setState({ isActive });\r\n };\r\n\r\n // TODO: add tooltip, aria-label? to NZ_BackstageItem\r\n public override render(): React.ReactNode {\r\n return (\r\n <BackstageItem\r\n icon={PropsHelper.getIcon(this.state.iconSpec)}\r\n isActive={this.state.isActive}\r\n isDisabled={!this.state.isEnabled}\r\n key={this.props.frontstageId}\r\n onClick={this.execute}\r\n subtitle={this.state.subtitle}\r\n >\r\n {this.state.label}\r\n </BackstageItem>\r\n );\r\n }\r\n}\r\n"]}
@@ -5,6 +5,7 @@ import * as React from "react";
5
5
  import { BackstageItemProps } from "./BackstageItemProps";
6
6
  /** Separator Backstage item.
7
7
  * @public
8
+ * @deprecated
8
9
  */
9
10
  export declare class SeparatorBackstageItem extends React.PureComponent<BackstageItemProps> {
10
11
  private static _sSeparatorBackstageItemKey;
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/Separator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC;IACjF,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAS;IACnD,OAAO,CAAC,IAAI,CAAS;gBAET,yBAAyB,EAAE,kBAAkB;IAOzC,MAAM,IAAI,KAAK,CAAC,SAAS;CAK1C"}
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/Separator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC;IACjF,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAS;IACnD,OAAO,CAAC,IAAI,CAAS;gBAET,yBAAyB,EAAE,kBAAkB;IAOzC,MAAM,IAAI,KAAK,CAAC,SAAS;CAK1C"}
@@ -12,12 +12,13 @@ const React = require("react");
12
12
  const appui_layout_react_1 = require("@itwin/appui-layout-react");
13
13
  /** Separator Backstage item.
14
14
  * @public
15
+ * @deprecated
15
16
  */
16
17
  class SeparatorBackstageItem extends React.PureComponent {
17
18
  constructor(separatorBackstageItemDef) {
18
19
  super(separatorBackstageItemDef);
19
- SeparatorBackstageItem._sSeparatorBackstageItemKey++;
20
- this._key = SeparatorBackstageItem._sSeparatorBackstageItemKey;
20
+ SeparatorBackstageItem._sSeparatorBackstageItemKey++; // eslint-disable-line deprecation/deprecation
21
+ this._key = SeparatorBackstageItem._sSeparatorBackstageItemKey; // eslint-disable-line deprecation/deprecation
21
22
  }
22
23
  render() {
23
24
  return (React.createElement(appui_layout_react_1.BackstageSeparator, { key: this._key }));
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/Separator.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,kEAAwF;AAGxF;;GAEG;AACH,MAAa,sBAAuB,SAAQ,KAAK,CAAC,aAAiC;IAIjF,YAAY,yBAA6C;QACvD,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAEjC,sBAAsB,CAAC,2BAA2B,EAAE,CAAC;QACrD,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC,2BAA2B,CAAC;IACjE,CAAC;IAEe,MAAM;QACpB,OAAO,CACL,oBAAC,uCAAqB,IAAC,GAAG,EAAE,IAAI,CAAC,IAAI,GAAI,CAC1C,CAAC;IACJ,CAAC;CACF;AAhBD,wDAgBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { BackstageSeparator as NZ_BackstageSeparator } from \"@itwin/appui-layout-react\";\r\nimport { BackstageItemProps } from \"./BackstageItemProps\";\r\n\r\n/** Separator Backstage item.\r\n * @public\r\n */\r\nexport class SeparatorBackstageItem extends React.PureComponent<BackstageItemProps> { // eslint-disable-line deprecation/deprecation\r\n private static _sSeparatorBackstageItemKey: number;\r\n private _key: number;\r\n\r\n constructor(separatorBackstageItemDef: BackstageItemProps) { // eslint-disable-line deprecation/deprecation\r\n super(separatorBackstageItemDef);\r\n\r\n SeparatorBackstageItem._sSeparatorBackstageItemKey++;\r\n this._key = SeparatorBackstageItem._sSeparatorBackstageItemKey;\r\n }\r\n\r\n public override render(): React.ReactNode {\r\n return (\r\n <NZ_BackstageSeparator key={this._key} />\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/Separator.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,kEAAwF;AAGxF;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,KAAK,CAAC,aAAiC;IAIjF,YAAY,yBAA6C;QACvD,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAEjC,sBAAsB,CAAC,2BAA2B,EAAE,CAAC,CAAC,8CAA8C;QACpG,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC,2BAA2B,CAAC,CAAC,8CAA8C;IAChH,CAAC;IAEe,MAAM;QACpB,OAAO,CACL,oBAAC,uCAAqB,IAAC,GAAG,EAAE,IAAI,CAAC,IAAI,GAAI,CAC1C,CAAC;IACJ,CAAC;CACF;AAhBD,wDAgBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { BackstageSeparator as NZ_BackstageSeparator } from \"@itwin/appui-layout-react\";\r\nimport { BackstageItemProps } from \"./BackstageItemProps\";\r\n\r\n/** Separator Backstage item.\r\n * @public\r\n * @deprecated\r\n */\r\nexport class SeparatorBackstageItem extends React.PureComponent<BackstageItemProps> { // eslint-disable-line deprecation/deprecation\r\n private static _sSeparatorBackstageItemKey: number;\r\n private _key: number;\r\n\r\n constructor(separatorBackstageItemDef: BackstageItemProps) { // eslint-disable-line deprecation/deprecation\r\n super(separatorBackstageItemDef);\r\n\r\n SeparatorBackstageItem._sSeparatorBackstageItemKey++; // eslint-disable-line deprecation/deprecation\r\n this._key = SeparatorBackstageItem._sSeparatorBackstageItemKey; // eslint-disable-line deprecation/deprecation\r\n }\r\n\r\n public override render(): React.ReactNode {\r\n return (\r\n <NZ_BackstageSeparator key={this._key} />\r\n );\r\n }\r\n}\r\n"]}
@@ -18,7 +18,7 @@ export interface ChildWindowLocationProps {
18
18
  }
19
19
  /** Supports opening a child browser window from the main application window. The child window is managed by the main application
20
20
  * and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.
21
- * See also: [Child Window Manager]($docs/learning/ui/framework/ChildWindows.md)
21
+ * See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)
22
22
  * @public */
23
23
  export declare class ChildWindowManager {
24
24
  private _openChildWindows;
@@ -1 +1 @@
1
- {"version":3,"file":"ChildWindowManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/childwindow/ChildWindowManager.tsx"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,2BAA2B,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsC/B,cAAc;AACd,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,cAAc;AACd,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;aAGa;AACb,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,iBAAiB,CAA6B;IAEtD,IAAW,gBAAgB,0BAE1B;IAEM,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB,GAAG,SAAS;IAOnF,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS;IAStF,OAAO,CAAC,yBAAyB;IA+CjC,gGAAgG;IACzF,oBAAoB;IAMpB,gBAAgB,kBAAmB,MAAM,2CAc9C;IAGF,OAAO,CAAC,mBAAmB;IAuBpB,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE,wBAAwB,EAAE,mBAAmB,CAAC,EAAE,OAAO;CA8BzJ"}
1
+ {"version":3,"file":"ChildWindowManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/childwindow/ChildWindowManager.tsx"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,2BAA2B,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqC/B,cAAc;AACd,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,cAAc;AACd,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;aAGa;AACb,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,iBAAiB,CAA6B;IAEtD,IAAW,gBAAgB,0BAE1B;IAEM,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB,GAAG,SAAS;IAOnF,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS;IAStF,OAAO,CAAC,yBAAyB;IA+CjC,gGAAgG;IACzF,oBAAoB;IAMpB,gBAAgB,kBAAmB,MAAM,2CAc9C;IAGF,OAAO,CAAC,mBAAmB;IAuBpB,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE,wBAAwB,EAAE,mBAAmB,CAAC,EAAE,OAAO;CA8BzJ"}
@@ -13,9 +13,8 @@ const React = require("react");
13
13
  const ReactDOM = require("react-dom");
14
14
  const CopyStyles_1 = require("./CopyStyles");
15
15
  const react_redux_1 = require("react-redux");
16
- const UiFramework_1 = require("../UiFramework");
17
16
  const StateManager_1 = require("../redux/StateManager");
18
- const useUiSettings_1 = require("../uisettings/useUiSettings");
17
+ const useUiStateStorage_1 = require("../uistate/useUiStateStorage");
19
18
  const PopupManager_1 = require("../popup/PopupManager");
20
19
  const ModelessDialogManager_1 = require("../dialog/ModelessDialogManager");
21
20
  const ModalDialogManager_1 = require("../dialog/ModalDialogManager");
@@ -47,7 +46,7 @@ const childHtml = `<!DOCTYPE html>
47
46
  </html>`;
48
47
  /** Supports opening a child browser window from the main application window. The child window is managed by the main application
49
48
  * and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.
50
- * See also: [Child Window Manager]($docs/learning/ui/framework/ChildWindows.md)
49
+ * See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)
51
50
  * @public */
52
51
  class ChildWindowManager {
53
52
  constructor() {
@@ -97,9 +96,9 @@ class ChildWindowManager {
97
96
  (0, CopyStyles_1.copyStyles)(childWindow.document);
98
97
  setImmediate(() => {
99
98
  ReactDOM.render(React.createElement(react_redux_1.Provider, { store: StateManager_1.StateManager.store },
100
- React.createElement(useUiSettings_1.UiSettingsProvider, { settingsStorage: UiFramework_1.UiFramework.getUiSettingsStorage() },
99
+ React.createElement(useUiStateStorage_1.UiStateStorageHandler, null,
101
100
  React.createElement(ThemeManager_1.ThemeManager, null,
102
- React.createElement(useFrameworkVersion_1.FrameworkVersion, { version: "2" },
101
+ React.createElement(useFrameworkVersion_1.FrameworkVersion, null,
103
102
  React.createElement("div", { className: "uifw-child-window-container-host" },
104
103
  React.createElement(PopupManager_1.PopupRenderer, null),
105
104
  React.createElement(ModalDialogManager_1.ModalDialogRenderer, null),
@@ -1 +1 @@
1
- {"version":3,"file":"ChildWindowManager.js","sourceRoot":"","sources":["../../../../src/appui-react/childwindow/ChildWindowManager.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,qCAAmC;AACnC,+BAA+B;AAC/B,sCAAsC;AACtC,6CAA0C;AAC1C,6CAAuC;AACvC,gDAA6C;AAC7C,wDAAqD;AACrD,+DAAiE;AACjE,wDAAsD;AACtD,2EAAyE;AACzE,qEAAmE;AACnE,gEAAkE;AAClE,sEAAgE;AAChE,uEAAoE;AACpE,wDAAqD;AAErD,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;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AM,CAAC,gBAAgB,CAAC,cAAc,EAAE,GAAG,EAAE;YAC3C,MAAM,aAAa,GAAG,qCAAiB,CAAC,mBAAmB,CAAC;YAC5D,IAAI,aAAa,EAAE;gBACjB,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;aAC5C;QACH,CAAC,EAAE,KAAK,CAAC,CAAC;QAEV,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAnJD,gDAmJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module ChildWindowManager\r\n */\r\n\r\nimport \"./ChildWindowManager.scss\";\r\nimport * as React from \"react\";\r\nimport * as ReactDOM from \"react-dom\";\r\nimport { copyStyles } from \"./CopyStyles\";\r\nimport { Provider } from \"react-redux\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { StateManager } from \"../redux/StateManager\";\r\nimport { UiSettingsProvider } from \"../uisettings/useUiSettings\";\r\nimport { PopupRenderer } from \"../popup/PopupManager\";\r\nimport { ModelessDialogRenderer } from \"../dialog/ModelessDialogManager\";\r\nimport { ModalDialogRenderer } from \"../dialog/ModalDialogManager\";\r\nimport { CursorPopupMenu } from \"../cursor/cursormenu/CursorMenu\";\r\nimport { FrameworkVersion } from \"../hooks/useFrameworkVersion\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { ThemeManager } from \"../theme/ThemeManager\";\r\n\r\nconst childHtml = `<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta charset=\"utf-8\" />\r\n <style>\r\n html,\r\n body {\r\n height: 100%;\r\n width: 100%;\r\n margin: 0;\r\n overflow: hidden;\r\n }\r\n #root {\r\n height: 100%;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n <noscript>You need to enable JavaScript to run this app.</noscript>\r\n <div id=\"root\"></div>\r\n</body>\r\n</html>`;\r\n\r\n/** @public */\r\nexport interface OpenChildWindowInfo {\r\n childWindowId: string;\r\n window: Window;\r\n parentWindow: Window;\r\n}\r\n\r\n/** @public */\r\nexport interface ChildWindowLocationProps {\r\n width: number;\r\n height: number;\r\n left: number;\r\n top: number;\r\n}\r\n\r\n/** Supports opening a child browser window from the main application window. The child window is managed by the main application\r\n * and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.\r\n * See also: [Child Window Manager]($docs/learning/ui/framework/ChildWindows.md)\r\n * @public */\r\nexport class ChildWindowManager {\r\n private _openChildWindows: OpenChildWindowInfo[] = [];\r\n\r\n public get openChildWindows() {\r\n return this._openChildWindows;\r\n }\r\n\r\n public findChildWindow(childWindowId: string | undefined): OpenChildWindowInfo | undefined {\r\n if (undefined === childWindowId)\r\n return undefined;\r\n\r\n return this.openChildWindows.find((openWindow) => openWindow.childWindowId === childWindowId);\r\n }\r\n\r\n public findChildWindowId(contentWindow: Window | undefined | null): string | undefined {\r\n if (!contentWindow)\r\n return undefined;\r\n\r\n const childWindow = this.openChildWindows.find((openWindow) => openWindow.window === contentWindow);\r\n return childWindow?.childWindowId;\r\n }\r\n\r\n // istanbul ignore next\r\n private renderChildWindowContents(childWindow: Window, childWindowId: string, content: React.ReactNode) {\r\n const reactConnectionDiv = childWindow.document.getElementById(\"root\");\r\n if (reactConnectionDiv) {\r\n // set openChildWindows now so components can use it when they mount\r\n this._openChildWindows.push({\r\n childWindowId,\r\n window: childWindow,\r\n parentWindow: window,\r\n });\r\n\r\n setTimeout(() => {\r\n copyStyles(childWindow.document);\r\n setImmediate(() => {\r\n ReactDOM.render(\r\n <Provider store={StateManager.store} >\r\n <UiSettingsProvider settingsStorage={UiFramework.getUiSettingsStorage()}>\r\n <ThemeManager>\r\n <FrameworkVersion version=\"2\">\r\n <div className=\"uifw-child-window-container-host\">\r\n <PopupRenderer />\r\n <ModalDialogRenderer />\r\n <ModelessDialogRenderer />\r\n <CursorPopupMenu />\r\n <div className=\"uifw-child-window-container nz-widget-widget\">\r\n {content}\r\n </div>\r\n </div>\r\n </FrameworkVersion>\r\n </ThemeManager>\r\n </UiSettingsProvider>\r\n </Provider>,\r\n reactConnectionDiv\r\n );\r\n });\r\n });\r\n\r\n childWindow.onbeforeunload = () => {\r\n const frontStageDef = FrontstageManager.activeFrontstageDef;\r\n if (frontStageDef) {\r\n void frontStageDef.saveChildWindowSizeAndPosition(childWindowId, childWindow).then(() => {\r\n this.closeChildWindow(childWindowId, false);\r\n });\r\n }\r\n };\r\n }\r\n }\r\n\r\n /** Close all child/pop-out windows. This typically is called when the frontstage is changed. */\r\n public closeAllChildWindows() {\r\n // istanbul ignore next\r\n this.openChildWindows.forEach((openChildWindow) => openChildWindow.window.close());\r\n this._openChildWindows = [];\r\n }\r\n\r\n public closeChildWindow = (childWindowId: string, processWindowClose = true) => {\r\n const windowIndex = this.openChildWindows.findIndex((openWindow) => openWindow.childWindowId === childWindowId);\r\n if (-1 === windowIndex)\r\n return false;\r\n const childWindow = this.openChildWindows[windowIndex];\r\n this.openChildWindows.splice(windowIndex, 1);\r\n if (processWindowClose) {\r\n childWindow.window.close();\r\n } else {\r\n // call the following to convert popout to docked widget\r\n const frontStageDef = FrontstageManager.activeFrontstageDef;\r\n frontStageDef && frontStageDef.dockPopoutWidgetContainer(childWindowId);\r\n }\r\n return true;\r\n };\r\n\r\n // istanbul ignore next\r\n private adjustWidowLocation(location: ChildWindowLocationProps, center?: boolean): ChildWindowLocationProps {\r\n const outLocation = { ...location };\r\n if (0 === location.top && 0 === location.left) {\r\n center = center ?? true;\r\n const windowTop = window.top ?? window;\r\n\r\n // Prepare position of the new window to be centered against the 'parent' window.\r\n if (center) {\r\n outLocation.left =\r\n windowTop.outerWidth / 2 + windowTop.screenX - location.width / 2;\r\n outLocation.top =\r\n windowTop.outerHeight / 2 + windowTop.screenY - location.height / 2;\r\n } else {\r\n if (undefined !== window.screenLeft && undefined !== window.screenTop) {\r\n outLocation.top = window.screenTop + location.top;\r\n outLocation.left = window.screenLeft + location.left;\r\n }\r\n }\r\n }\r\n return outLocation;\r\n }\r\n\r\n // istanbul ignore next\r\n public openChildWindow(childWindowId: string, title: string, content: React.ReactNode, location: ChildWindowLocationProps, useDefaultPopoutUrl?: boolean) {\r\n // first check to see if content is already open in child window\r\n if (this.openChildWindows.findIndex((openWindow) => openWindow.childWindowId === childWindowId) >= 0) {\r\n return false;\r\n }\r\n\r\n location = this.adjustWidowLocation(location);\r\n const url = useDefaultPopoutUrl ? \"/iTwinPopup.html\" : \"\";\r\n const childWindow = window.open(url, \"\", `width=${location.width},height=${location.height},left=${location.left},top=${location.top},menubar=no,resizable=yes,scrollbars=no,status=no,location=no`);\r\n if (!childWindow)\r\n return false;\r\n if (0 === url.length) {\r\n childWindow.document.write(childHtml);\r\n this.renderChildWindowContents(childWindow, childWindowId, content);\r\n } else {\r\n childWindow.addEventListener(\"load\", () => {\r\n childWindow.document.title = title;\r\n this.renderChildWindowContents(childWindow, childWindowId, content);\r\n }, false);\r\n }\r\n\r\n window.addEventListener(\"beforeunload\", () => {\r\n const frontStageDef = FrontstageManager.activeFrontstageDef;\r\n if (frontStageDef) {\r\n this.closeChildWindow(childWindowId, true);\r\n }\r\n }, false);\r\n\r\n return true;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ChildWindowManager.js","sourceRoot":"","sources":["../../../../src/appui-react/childwindow/ChildWindowManager.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,qCAAmC;AACnC,+BAA+B;AAC/B,sCAAsC;AACtC,6CAA0C;AAC1C,6CAAuC;AACvC,wDAAqD;AACrD,oEAAqE;AACrE,wDAAsD;AACtD,2EAAyE;AACzE,qEAAmE;AACnE,gEAAkE;AAClE,sEAAgE;AAChE,uEAAoE;AACpE,wDAAqD;AAErD,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;QAqBV,CAAC;AAiBT;;;aAGa;AACb,MAA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AAI,aAAa,EAAE;gBACjB,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;aAC5C;QACH,CAAC,EAAE,KAAK,CAAC,CAAC;QAEV,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAnJD,gDAmJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module ChildWindowManager\r\n */\r\n\r\nimport \"./ChildWindowManager.scss\";\r\nimport * as React from \"react\";\r\nimport * as ReactDOM from \"react-dom\";\r\nimport { copyStyles } from \"./CopyStyles\";\r\nimport { Provider } from \"react-redux\";\r\nimport { StateManager } from \"../redux/StateManager\";\r\nimport { UiStateStorageHandler } from \"../uistate/useUiStateStorage\";\r\nimport { PopupRenderer } from \"../popup/PopupManager\";\r\nimport { ModelessDialogRenderer } from \"../dialog/ModelessDialogManager\";\r\nimport { ModalDialogRenderer } from \"../dialog/ModalDialogManager\";\r\nimport { CursorPopupMenu } from \"../cursor/cursormenu/CursorMenu\";\r\nimport { FrameworkVersion } from \"../hooks/useFrameworkVersion\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { ThemeManager } from \"../theme/ThemeManager\";\r\n\r\nconst childHtml = `<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta charset=\"utf-8\" />\r\n <style>\r\n html,\r\n body {\r\n height: 100%;\r\n width: 100%;\r\n margin: 0;\r\n overflow: hidden;\r\n }\r\n #root {\r\n height: 100%;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n <noscript>You need to enable JavaScript to run this app.</noscript>\r\n <div id=\"root\"></div>\r\n</body>\r\n</html>`;\r\n\r\n/** @public */\r\nexport interface OpenChildWindowInfo {\r\n childWindowId: string;\r\n window: Window;\r\n parentWindow: Window;\r\n}\r\n\r\n/** @public */\r\nexport interface ChildWindowLocationProps {\r\n width: number;\r\n height: number;\r\n left: number;\r\n top: number;\r\n}\r\n\r\n/** Supports opening a child browser window from the main application window. The child window is managed by the main application\r\n * and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.\r\n * See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)\r\n * @public */\r\nexport class ChildWindowManager {\r\n private _openChildWindows: OpenChildWindowInfo[] = [];\r\n\r\n public get openChildWindows() {\r\n return this._openChildWindows;\r\n }\r\n\r\n public findChildWindow(childWindowId: string | undefined): OpenChildWindowInfo | undefined {\r\n if (undefined === childWindowId)\r\n return undefined;\r\n\r\n return this.openChildWindows.find((openWindow) => openWindow.childWindowId === childWindowId);\r\n }\r\n\r\n public findChildWindowId(contentWindow: Window | undefined | null): string | undefined {\r\n if (!contentWindow)\r\n return undefined;\r\n\r\n const childWindow = this.openChildWindows.find((openWindow) => openWindow.window === contentWindow);\r\n return childWindow?.childWindowId;\r\n }\r\n\r\n // istanbul ignore next\r\n private renderChildWindowContents(childWindow: Window, childWindowId: string, content: React.ReactNode) {\r\n const reactConnectionDiv = childWindow.document.getElementById(\"root\");\r\n if (reactConnectionDiv) {\r\n // set openChildWindows now so components can use it when they mount\r\n this._openChildWindows.push({\r\n childWindowId,\r\n window: childWindow,\r\n parentWindow: window,\r\n });\r\n\r\n setTimeout(() => {\r\n copyStyles(childWindow.document);\r\n setImmediate(() => {\r\n ReactDOM.render(\r\n <Provider store={StateManager.store} >\r\n <UiStateStorageHandler>\r\n <ThemeManager>\r\n <FrameworkVersion>\r\n <div className=\"uifw-child-window-container-host\">\r\n <PopupRenderer />\r\n <ModalDialogRenderer />\r\n <ModelessDialogRenderer />\r\n <CursorPopupMenu />\r\n <div className=\"uifw-child-window-container nz-widget-widget\">\r\n {content}\r\n </div>\r\n </div>\r\n </FrameworkVersion>\r\n </ThemeManager>\r\n </UiStateStorageHandler>\r\n </Provider>,\r\n reactConnectionDiv\r\n );\r\n });\r\n });\r\n\r\n childWindow.onbeforeunload = () => {\r\n const frontStageDef = FrontstageManager.activeFrontstageDef;\r\n if (frontStageDef) {\r\n void frontStageDef.saveChildWindowSizeAndPosition(childWindowId, childWindow).then(() => {\r\n this.closeChildWindow(childWindowId, false);\r\n });\r\n }\r\n };\r\n }\r\n }\r\n\r\n /** Close all child/pop-out windows. This typically is called when the frontstage is changed. */\r\n public closeAllChildWindows() {\r\n // istanbul ignore next\r\n this.openChildWindows.forEach((openChildWindow) => openChildWindow.window.close());\r\n this._openChildWindows = [];\r\n }\r\n\r\n public closeChildWindow = (childWindowId: string, processWindowClose = true) => {\r\n const windowIndex = this.openChildWindows.findIndex((openWindow) => openWindow.childWindowId === childWindowId);\r\n if (-1 === windowIndex)\r\n return false;\r\n const childWindow = this.openChildWindows[windowIndex];\r\n this.openChildWindows.splice(windowIndex, 1);\r\n if (processWindowClose) {\r\n childWindow.window.close();\r\n } else {\r\n // call the following to convert popout to docked widget\r\n const frontStageDef = FrontstageManager.activeFrontstageDef;\r\n frontStageDef && frontStageDef.dockPopoutWidgetContainer(childWindowId);\r\n }\r\n return true;\r\n };\r\n\r\n // istanbul ignore next\r\n private adjustWidowLocation(location: ChildWindowLocationProps, center?: boolean): ChildWindowLocationProps {\r\n const outLocation = { ...location };\r\n if (0 === location.top && 0 === location.left) {\r\n center = center ?? true;\r\n const windowTop = window.top ?? window;\r\n\r\n // Prepare position of the new window to be centered against the 'parent' window.\r\n if (center) {\r\n outLocation.left =\r\n windowTop.outerWidth / 2 + windowTop.screenX - location.width / 2;\r\n outLocation.top =\r\n windowTop.outerHeight / 2 + windowTop.screenY - location.height / 2;\r\n } else {\r\n if (undefined !== window.screenLeft && undefined !== window.screenTop) {\r\n outLocation.top = window.screenTop + location.top;\r\n outLocation.left = window.screenLeft + location.left;\r\n }\r\n }\r\n }\r\n return outLocation;\r\n }\r\n\r\n // istanbul ignore next\r\n public openChildWindow(childWindowId: string, title: string, content: React.ReactNode, location: ChildWindowLocationProps, useDefaultPopoutUrl?: boolean) {\r\n // first check to see if content is already open in child window\r\n if (this.openChildWindows.findIndex((openWindow) => openWindow.childWindowId === childWindowId) >= 0) {\r\n return false;\r\n }\r\n\r\n location = this.adjustWidowLocation(location);\r\n const url = useDefaultPopoutUrl ? \"/iTwinPopup.html\" : \"\";\r\n const childWindow = window.open(url, \"\", `width=${location.width},height=${location.height},left=${location.left},top=${location.top},menubar=no,resizable=yes,scrollbars=no,status=no,location=no`);\r\n if (!childWindow)\r\n return false;\r\n if (0 === url.length) {\r\n childWindow.document.write(childHtml);\r\n this.renderChildWindowContents(childWindow, childWindowId, content);\r\n } else {\r\n childWindow.addEventListener(\"load\", () => {\r\n childWindow.document.title = title;\r\n this.renderChildWindowContents(childWindow, childWindowId, content);\r\n }, false);\r\n }\r\n\r\n window.addEventListener(\"beforeunload\", () => {\r\n const frontStageDef = FrontstageManager.activeFrontstageDef;\r\n if (frontStageDef) {\r\n this.closeChildWindow(childWindowId, true);\r\n }\r\n }, false);\r\n\r\n return true;\r\n }\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurableUiContent.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAS,MAAM,mBAAmB,CAAC;AAmBvD;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,WAAW;IAC7D,kCAAkC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE/B,gBAAgB;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,eAqCtE"}
1
+ {"version":3,"file":"ConfigurableUiContent.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAS,MAAM,mBAAmB,CAAC;AAmBvD;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,WAAW;IAC7D,kCAAkC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE/B,gBAAgB;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,eAsCtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurableUiContent.js","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,iCAA+B;AAC/B,+BAA+B;AAC/B,kDAAuD;AACvD,mEAAgE;AAChE,gEAAkE;AAClE,iFAA+E;AAC/E,qEAAmE;AACnE,2EAAyE;AACzE,+DAA4D;AAC5D,yEAAsE;AACtE,sEAAmE;AACnE,2EAA+E;AAC/E,mFAAgF;AAChF,uDAA2D;AAC3D,iDAAqD;AACrD,wDAAsD;AACtD,4DAAqE;AACrE,mEAAgE;AAiBhE;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAiC;IACrE,MAAM,OAAO,GAAG,IAAA,yCAAmB,GAAE,CAAC;IACtC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,0CAAuB,CAAC,cAAc,EAAE,CAAC;IAC3C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,6CAAqB,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC;QAC7H,OAAO,GAAG,EAAE;YACV,6CAAqB,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;QACpD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;IAE/C,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,CAAmB,EAAE,EAAE;QAChE,MAAM,KAAK,GAAG,IAAI,kBAAK,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAC1C,qCAAiB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,8BAAM,IAAI,EAAC,MAAM,EACf,EAAE,EAAC,6BAA6B,EAChC,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,WAAW,EAAE,eAAe;QAE3B,KAAK,CAAC,YAAY;QAClB,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,oBAAC,uCAAkB,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,GAAI,CAAC,CAAC,CAAC,0BAA0B,CAAC,oBAAC,mCAAsB,OAAG;QAClJ,oBAAC,8CAAsB,OAAG;QAC1B,oBAAC,wCAAmB,OAAG;QACvB,oBAAC,+BAAc,OAAG;QAClB,oBAAC,wBAAc,OAAG;QAClB,oBAAC,2CAAoB,OAAG;QACxB,oBAAC,8BAAiB,OAAG;QACrB,oBAAC,4BAAe,OAAG;QACnB,oBAAC,wCAAmB,OAAG;QACvB,oBAAC,4BAAa,OAAG,CACZ,CACR,CAAC;AACJ,CAAC;AArCD,sDAqCC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module ConfigurableUi\r\n */\r\n\r\nimport \"./configurableui.scss\";\r\nimport * as React from \"react\";\r\nimport { CommonProps, Point } from \"@itwin/core-react\";\r\nimport { CursorInformation } from \"../cursor/CursorInformation\";\r\nimport { CursorPopupMenu } from \"../cursor/cursormenu/CursorMenu\";\r\nimport { CursorPopupRenderer } from \"../cursor/cursorpopup/CursorPopupManager\";\r\nimport { ModalDialogRenderer } from \"../dialog/ModalDialogManager\";\r\nimport { ModelessDialogRenderer } from \"../dialog/ModelessDialogManager\";\r\nimport { ElementTooltip } from \"../feedback/ElementTooltip\";\r\nimport { FrontstageComposer } from \"../frontstage/FrontstageComposer\";\r\nimport { useFrameworkVersion } from \"../hooks/useFrameworkVersion\";\r\nimport { KeyboardShortcutManager } from \"../keyboardshortcut/KeyboardShortcut\";\r\nimport { KeyboardShortcutMenu } from \"../keyboardshortcut/KeyboardShortcutMenu\";\r\nimport { InputFieldMessage } from \"../messages/InputField\";\r\nimport { PointerMessage } from \"../messages/Pointer\";\r\nimport { PopupRenderer } from \"../popup/PopupManager\";\r\nimport { WidgetPanelsFrontstage } from \"../widget-panels/Frontstage\";\r\nimport { ConfigurableUiManager } from \"./ConfigurableUiManager\";\r\n\r\n// cSpell:ignore cursormenu cursorpopup\r\n\r\n/** Properties for [[ConfigurableUiContent]]\r\n * @public\r\n */\r\nexport interface ConfigurableUiContentProps extends CommonProps {\r\n /** React node of the Backstage */\r\n appBackstage?: React.ReactNode;\r\n\r\n /** @internal */\r\n idleTimeout?: number;\r\n /** @internal */\r\n intervalTimeout?: number;\r\n}\r\n\r\n/** The ConfigurableUiContent component is the component the pages specified using ConfigurableUi\r\n * @public\r\n */\r\nexport function ConfigurableUiContent(props: ConfigurableUiContentProps) {\r\n const version = useFrameworkVersion();\r\n React.useEffect(() => {\r\n KeyboardShortcutManager.setFocusToHome();\r\n }, []);\r\n React.useEffect(() => {\r\n ConfigurableUiManager.activityTracker.initialize({ idleTimeout: props.idleTimeout, intervalTimeout: props.intervalTimeout });\r\n return () => {\r\n ConfigurableUiManager.activityTracker.terminate();\r\n };\r\n }, [props.idleTimeout, props.intervalTimeout]);\r\n\r\n const handleMouseMove = React.useCallback((e: React.MouseEvent) => {\r\n const point = new Point(e.pageX, e.pageY);\r\n CursorInformation.handleMouseMove(point);\r\n }, []);\r\n\r\n return (\r\n <main role=\"main\"\r\n id=\"uifw-configurableui-wrapper\"\r\n className={props.className}\r\n style={props.style}\r\n onMouseMove={handleMouseMove}\r\n >\r\n {props.appBackstage}\r\n {version === \"1\" ? <FrontstageComposer style={{ position: \"relative\", height: \"100%\" }} /> : /* istanbul ignore next */ <WidgetPanelsFrontstage />}\r\n <ModelessDialogRenderer />\r\n <ModalDialogRenderer />\r\n <ElementTooltip />\r\n <PointerMessage />\r\n <KeyboardShortcutMenu />\r\n <InputFieldMessage />\r\n <CursorPopupMenu />\r\n <CursorPopupRenderer />\r\n <PopupRenderer />\r\n </main>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"ConfigurableUiContent.js","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,iCAA+B;AAC/B,+BAA+B;AAC/B,kDAAuD;AACvD,mEAAgE;AAChE,gEAAkE;AAClE,iFAA+E;AAC/E,qEAAmE;AACnE,2EAAyE;AACzE,+DAA4D;AAC5D,yEAAsE;AACtE,sEAAmE;AACnE,2EAA+E;AAC/E,mFAAgF;AAChF,uDAA2D;AAC3D,iDAAqD;AACrD,wDAAsD;AACtD,4DAAqE;AACrE,mEAAgE;AAiBhE;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAiC;IACrE,MAAM,OAAO,GAAG,IAAA,yCAAmB,GAAE,CAAC;IACtC,KAAK,CAAC,SAAS,CAAC,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C,8BAAiB,OAAG;QACrB,oBAAC,4BAAe,OAAG;QACnB,oBAAC,wCAAmB,OAAG;QACvB,oBAAC,4BAAa,OAAG,CACZ,CACR,CAAC;AACJ,CAAC;AAtCD,sDAsCC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module ConfigurableUi\r\n */\r\n\r\nimport \"./configurableui.scss\";\r\nimport * as React from \"react\";\r\nimport { CommonProps, Point } from \"@itwin/core-react\";\r\nimport { CursorInformation } from \"../cursor/CursorInformation\";\r\nimport { CursorPopupMenu } from \"../cursor/cursormenu/CursorMenu\";\r\nimport { CursorPopupRenderer } from \"../cursor/cursorpopup/CursorPopupManager\";\r\nimport { ModalDialogRenderer } from \"../dialog/ModalDialogManager\";\r\nimport { ModelessDialogRenderer } from \"../dialog/ModelessDialogManager\";\r\nimport { ElementTooltip } from \"../feedback/ElementTooltip\";\r\nimport { FrontstageComposer } from \"../frontstage/FrontstageComposer\";\r\nimport { useFrameworkVersion } from \"../hooks/useFrameworkVersion\";\r\nimport { KeyboardShortcutManager } from \"../keyboardshortcut/KeyboardShortcut\";\r\nimport { KeyboardShortcutMenu } from \"../keyboardshortcut/KeyboardShortcutMenu\";\r\nimport { InputFieldMessage } from \"../messages/InputField\";\r\nimport { PointerMessage } from \"../messages/Pointer\";\r\nimport { PopupRenderer } from \"../popup/PopupManager\";\r\nimport { WidgetPanelsFrontstage } from \"../widget-panels/Frontstage\";\r\nimport { ConfigurableUiManager } from \"./ConfigurableUiManager\";\r\n\r\n// cSpell:ignore cursormenu cursorpopup\r\n\r\n/** Properties for [[ConfigurableUiContent]]\r\n * @public\r\n */\r\nexport interface ConfigurableUiContentProps extends CommonProps {\r\n /** React node of the Backstage */\r\n appBackstage?: React.ReactNode;\r\n\r\n /** @internal */\r\n idleTimeout?: number;\r\n /** @internal */\r\n intervalTimeout?: number;\r\n}\r\n\r\n/** The ConfigurableUiContent component is the component the pages specified using ConfigurableUi\r\n * @public\r\n */\r\nexport function ConfigurableUiContent(props: ConfigurableUiContentProps) {\r\n const version = useFrameworkVersion();\r\n React.useEffect(() => {\r\n KeyboardShortcutManager.setFocusToHome();\r\n }, []);\r\n React.useEffect(() => {\r\n ConfigurableUiManager.activityTracker.initialize({ idleTimeout: props.idleTimeout, intervalTimeout: props.intervalTimeout });\r\n return () => {\r\n ConfigurableUiManager.activityTracker.terminate();\r\n };\r\n }, [props.idleTimeout, props.intervalTimeout]);\r\n\r\n const handleMouseMove = React.useCallback((e: React.MouseEvent) => {\r\n const point = new Point(e.pageX, e.pageY);\r\n CursorInformation.handleMouseMove(point);\r\n }, []);\r\n\r\n return (\r\n <main role=\"main\"\r\n id=\"uifw-configurableui-wrapper\"\r\n className={props.className}\r\n style={props.style}\r\n onMouseMove={handleMouseMove}\r\n >\r\n {props.appBackstage}\r\n {/* eslint-disable-next-line deprecation/deprecation */}\r\n {version === \"1\" ? <FrontstageComposer style={{ position: \"relative\", height: \"100%\" }} /> : /* istanbul ignore next */ <WidgetPanelsFrontstage />}\r\n <ModelessDialogRenderer />\r\n <ModalDialogRenderer />\r\n <ElementTooltip />\r\n <PointerMessage />\r\n <KeyboardShortcutMenu />\r\n <InputFieldMessage />\r\n <CursorPopupMenu />\r\n <CursorPopupRenderer />\r\n <PopupRenderer />\r\n </main>\r\n );\r\n}\r\n"]}