@itwin/appui-react 3.0.0-extension.1 → 3.1.0-dev.6

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 (919) hide show
  1. package/CHANGELOG.md +80 -1
  2. package/LICENSE.md +1 -1
  3. package/README.md +3 -3
  4. package/lib/cjs/appui-react/UiFramework.d.ts +30 -15
  5. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  6. package/lib/cjs/appui-react/UiFramework.js +49 -30
  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 +3 -4
  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 +7 -1
  55. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  56. package/lib/cjs/appui-react/configurableui/state.js +12 -0
  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 +1 -0
  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.js.map +1 -1
  141. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +1 -1
  142. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -1
  143. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js +6 -7
  144. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -1
  145. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +3 -3
  146. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  147. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +1 -1
  148. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  149. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts +0 -5
  150. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  151. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  152. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +1 -1
  153. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -1
  154. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +81 -68
  155. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -1
  156. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  157. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  158. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +2 -1
  159. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  160. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +1 -1
  161. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  162. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts +5 -5
  163. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -1
  164. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js +3 -2
  165. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -1
  166. package/lib/cjs/appui-react/messages/AppNotificationManager.d.ts +1 -1
  167. package/lib/cjs/appui-react/messages/AppNotificationManager.js +1 -1
  168. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  169. package/lib/cjs/appui-react/messages/MessageManager.d.ts +1 -2
  170. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  171. package/lib/cjs/appui-react/messages/MessageManager.js +15 -9
  172. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  173. package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
  174. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  175. package/lib/cjs/appui-react/messages/Pointer.js +4 -3
  176. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  177. package/lib/cjs/appui-react/messages/ToastMessage.js +2 -1
  178. package/lib/cjs/appui-react/messages/ToastMessage.js.map +1 -1
  179. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +1 -1
  180. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  181. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +2 -2
  182. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  183. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -1
  184. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  185. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +2 -1
  186. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  187. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +6 -4
  188. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  189. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +3 -0
  190. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  191. package/lib/cjs/appui-react/pickers/ListPicker.js +24 -9
  192. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  193. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +1 -1
  194. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  195. package/lib/cjs/appui-react/pickers/ViewSelector.js +9 -9
  196. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  197. package/lib/cjs/appui-react/popup/CardPopup.d.ts +7 -4
  198. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  199. package/lib/cjs/appui-react/popup/CardPopup.js +3 -2
  200. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  201. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts +3 -2
  202. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  203. package/lib/cjs/appui-react/popup/InputEditorPopup.js +1 -1
  204. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  205. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +6 -6
  206. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  207. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +3 -2
  208. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js +1 -1
  210. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  211. package/lib/cjs/appui-react/popup/PopupManager.d.ts +10 -10
  212. package/lib/cjs/appui-react/popup/PopupManager.d.ts.map +1 -1
  213. package/lib/cjs/appui-react/popup/PopupManager.js +4 -4
  214. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  215. package/lib/cjs/appui-react/popup/PositionPopup.d.ts +5 -3
  216. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  217. package/lib/cjs/appui-react/popup/PositionPopup.js +3 -2
  218. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  219. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts +3 -2
  220. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  221. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js +1 -1
  222. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  223. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts +4 -3
  224. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  225. package/lib/cjs/appui-react/popup/ToolbarPopup.js +2 -2
  226. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  227. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +1 -1
  228. package/lib/cjs/appui-react/redux/SessionState.d.ts +0 -6
  229. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  230. package/lib/cjs/appui-react/redux/SessionState.js +0 -8
  231. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  232. package/lib/cjs/appui-react/redux/StateManager.d.ts +1 -1
  233. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  234. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js +7 -7
  235. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  236. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js +1 -1
  238. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  239. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  240. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +28 -19
  241. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  242. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  243. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  244. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  245. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +2 -2
  246. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  247. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -1
  248. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  249. package/lib/cjs/appui-react/shared/ItemProps.d.ts +2 -2
  250. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  251. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +1 -1
  252. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  253. package/lib/cjs/appui-react/shared/ToolItemDef.js +2 -2
  254. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  255. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js +1 -0
  257. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -1
  258. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts +2 -2
  259. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  260. package/lib/cjs/appui-react/stagepanels/StagePanel.js +1 -0
  261. package/lib/cjs/appui-react/stagepanels/StagePanel.js.map +1 -1
  262. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +26 -2
  263. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  264. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +24 -3
  265. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  266. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts +2 -2
  267. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -1
  268. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js +2 -1
  269. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js.map +1 -1
  270. package/lib/cjs/appui-react/statusbar/StatusBar.js +2 -1
  271. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  272. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  273. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +17 -5
  274. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  275. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  276. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js +1 -1
  277. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  278. package/lib/cjs/appui-react/statusfields/Indicator.d.ts +15 -14
  279. package/lib/cjs/appui-react/statusfields/Indicator.d.ts.map +1 -1
  280. package/lib/cjs/appui-react/statusfields/Indicator.js +23 -21
  281. package/lib/cjs/appui-react/statusfields/Indicator.js.map +1 -1
  282. package/lib/cjs/appui-react/statusfields/Indicator.scss +29 -18
  283. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  284. package/lib/cjs/appui-react/statusfields/MessageCenter.js +2 -1
  285. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  286. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +1 -0
  287. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  288. package/lib/cjs/appui-react/statusfields/SelectionScope.js +6 -4
  289. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  290. package/lib/cjs/appui-react/statusfields/SelectionScope.scss +13 -3
  291. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +2 -10
  292. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  293. package/lib/cjs/appui-react/statusfields/SnapMode.js +4 -34
  294. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  295. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +0 -6
  296. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  297. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -25
  298. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  299. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +7 -7
  300. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  301. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +13 -12
  302. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  303. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +8 -3
  304. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts +2 -2
  305. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts.map +1 -1
  306. package/lib/cjs/appui-react/syncui/BooleanListener.js +2 -1
  307. package/lib/cjs/appui-react/syncui/BooleanListener.js.map +1 -1
  308. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +8 -18
  309. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  310. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +30 -103
  311. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  312. package/lib/cjs/appui-react/toolbar/ActionButtonItem.js +2 -1
  313. package/lib/cjs/appui-react/toolbar/ActionButtonItem.js.map +1 -1
  314. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  315. package/lib/cjs/appui-react/toolbar/ActionItemButton.js +2 -1
  316. package/lib/cjs/appui-react/toolbar/ActionItemButton.js.map +1 -1
  317. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js +24 -20
  318. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js.map +1 -1
  319. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  320. package/lib/cjs/appui-react/toolbar/GroupItem.js +33 -29
  321. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  322. package/lib/cjs/appui-react/toolbar/ToolButton.js +3 -2
  323. package/lib/cjs/appui-react/toolbar/ToolButton.js.map +1 -1
  324. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  325. package/lib/cjs/appui-react/toolbar/Toolbar.js +3 -2
  326. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  327. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  328. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +22 -20
  329. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  330. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -1
  331. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +4 -4
  332. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  333. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.d.ts +2 -2
  334. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js +2 -2
  335. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js.map +1 -1
  336. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +8 -10
  337. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  338. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +17 -36
  339. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  340. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +7 -9
  341. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  342. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +12 -20
  343. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  344. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +7 -9
  345. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  346. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +39 -50
  347. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  348. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.scss +4 -4
  349. package/lib/{esm/appui-react/uisettings → cjs/appui-react/uistate}/AppUiSettings.d.ts +9 -7
  350. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -0
  351. package/lib/cjs/appui-react/{uisettings → uistate}/AppUiSettings.js +12 -8
  352. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -0
  353. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
  354. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
  355. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js +59 -0
  356. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js.map +1 -0
  357. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts +20 -0
  358. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -0
  359. package/lib/cjs/appui-react/uistate/useUiStateStorage.js +38 -0
  360. package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -0
  361. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts +5 -5
  362. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  363. package/lib/cjs/appui-react/utils/UiShowHideManager.js +8 -8
  364. package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +1 -1
  365. package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
  366. package/lib/cjs/appui-react/widget-panels/Content.js +1 -4
  367. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  368. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +98 -8
  369. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  370. package/lib/cjs/appui-react/widget-panels/Frontstage.js +91 -96
  371. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  372. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +22 -0
  373. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -0
  374. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +56 -0
  375. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -0
  376. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  377. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +1 -0
  378. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  379. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  380. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +3 -1
  381. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  382. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts +9 -0
  383. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
  384. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js +10 -0
  385. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  386. package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts.map +1 -1
  387. package/lib/cjs/appui-react/widgets/NavigationWidget.js +2 -1
  388. package/lib/cjs/appui-react/widgets/NavigationWidget.js.map +1 -1
  389. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +1 -0
  390. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  391. package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  392. package/lib/cjs/appui-react/widgets/StableWidgetDef.js +1 -1
  393. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  394. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js +2 -1
  395. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  396. package/lib/cjs/appui-react/widgets/ToolWidget.js +3 -2
  397. package/lib/cjs/appui-react/widgets/ToolWidget.js.map +1 -1
  398. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts +0 -12
  399. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  400. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js +1 -36
  401. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  402. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts +1 -0
  403. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -1
  404. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js +5 -2
  405. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  406. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts +0 -1
  407. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  408. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
  409. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  410. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -3
  411. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  412. package/lib/cjs/appui-react/widgets/WidgetDef.js +18 -7
  413. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  414. package/lib/cjs/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  415. package/lib/cjs/appui-react/widgets/WidgetHost.js +1 -0
  416. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  417. package/lib/cjs/appui-react/widgets/WidgetStack.d.ts.map +1 -1
  418. package/lib/cjs/appui-react/widgets/WidgetStack.js +2 -0
  419. package/lib/cjs/appui-react/widgets/WidgetStack.js.map +1 -1
  420. package/lib/cjs/appui-react/zones/FrameworkZone.js.map +1 -1
  421. package/lib/cjs/appui-react/zones/StatusBarZone.js.map +1 -1
  422. package/lib/cjs/appui-react/zones/Zone.d.ts +1 -1
  423. package/lib/cjs/appui-react/zones/Zone.d.ts.map +1 -1
  424. package/lib/cjs/appui-react/zones/Zone.js +2 -1
  425. package/lib/cjs/appui-react/zones/Zone.js.map +1 -1
  426. package/lib/cjs/appui-react/zones/ZoneDef.d.ts +4 -4
  427. package/lib/cjs/appui-react/zones/ZoneDef.d.ts.map +1 -1
  428. package/lib/cjs/appui-react/zones/ZoneDef.js +5 -4
  429. package/lib/cjs/appui-react/zones/ZoneDef.js.map +1 -1
  430. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts +1 -2
  431. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -1
  432. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js +3 -2
  433. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -1
  434. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -1
  435. package/lib/cjs/appui-react.d.ts +15 -18
  436. package/lib/cjs/appui-react.d.ts.map +1 -1
  437. package/lib/cjs/appui-react.js +15 -18
  438. package/lib/cjs/appui-react.js.map +1 -1
  439. package/lib/esm/appui-react/UiFramework.d.ts +30 -15
  440. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  441. package/lib/esm/appui-react/UiFramework.js +48 -29
  442. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  443. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts +3 -3
  444. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  445. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +3 -3
  446. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  447. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +1 -1
  448. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  449. package/lib/esm/appui-react/accudraw/Calculator.js +1 -1
  450. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  451. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +4 -4
  452. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  453. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +6 -5
  454. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  455. package/lib/esm/appui-react/backstage/Backstage.d.ts +0 -2
  456. package/lib/esm/appui-react/backstage/Backstage.d.ts.map +1 -1
  457. package/lib/esm/appui-react/backstage/Backstage.js.map +1 -1
  458. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts +2 -0
  459. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  460. package/lib/esm/appui-react/backstage/BackstageComposer.js +27 -9
  461. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  462. package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts +2 -2
  463. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +1 -1
  464. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  465. package/lib/esm/appui-react/backstage/BackstageItemProps.d.ts +3 -3
  466. package/lib/esm/appui-react/backstage/BackstageItemProps.js +1 -1
  467. package/lib/esm/appui-react/backstage/BackstageItemProps.js.map +1 -1
  468. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +5 -5
  469. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +3 -3
  470. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  471. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts +2 -0
  472. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts.map +1 -1
  473. package/lib/esm/appui-react/backstage/CommandLaunch.js +1 -0
  474. package/lib/esm/appui-react/backstage/CommandLaunch.js.map +1 -1
  475. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts +4 -0
  476. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -1
  477. package/lib/esm/appui-react/backstage/FrontstageLaunch.js +5 -6
  478. package/lib/esm/appui-react/backstage/FrontstageLaunch.js.map +1 -1
  479. package/lib/esm/appui-react/backstage/Separator.d.ts +1 -0
  480. package/lib/esm/appui-react/backstage/Separator.d.ts.map +1 -1
  481. package/lib/esm/appui-react/backstage/Separator.js +3 -2
  482. package/lib/esm/appui-react/backstage/Separator.js.map +1 -1
  483. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts +1 -1
  484. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  485. package/lib/esm/appui-react/childwindow/ChildWindowManager.js +3 -4
  486. package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  487. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  488. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  489. package/lib/esm/appui-react/configurableui/state.d.ts +7 -1
  490. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  491. package/lib/esm/appui-react/configurableui/state.js +12 -0
  492. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  493. package/lib/esm/appui-react/content/ContentControl.d.ts +1 -1
  494. package/lib/esm/appui-react/content/ContentControl.d.ts.map +1 -1
  495. package/lib/esm/appui-react/content/ContentControl.js +1 -1
  496. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  497. package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
  498. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  499. package/lib/esm/appui-react/content/ContentLayout.js +3 -2
  500. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  501. package/lib/esm/appui-react/content/ContentViewManager.d.ts +1 -1
  502. package/lib/esm/appui-react/content/ContentViewManager.d.ts.map +1 -1
  503. package/lib/esm/appui-react/content/ContentViewManager.js +1 -1
  504. package/lib/esm/appui-react/content/ContentViewManager.js.map +1 -1
  505. package/lib/esm/appui-react/content/IModelViewport.d.ts +13 -1
  506. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  507. package/lib/esm/appui-react/content/IModelViewport.js +16 -4
  508. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  509. package/lib/esm/appui-react/content/{SavedViewLayout.d.ts → StageContentLayout.d.ts} +11 -11
  510. package/lib/esm/appui-react/content/StageContentLayout.d.ts.map +1 -0
  511. package/lib/esm/appui-react/content/{SavedViewLayout.js → StageContentLayout.js} +17 -15
  512. package/lib/esm/appui-react/content/StageContentLayout.js.map +1 -0
  513. package/lib/esm/appui-react/content/{SavedView.d.ts → ViewStateHelper.d.ts} +7 -7
  514. package/lib/esm/appui-react/content/ViewStateHelper.d.ts.map +1 -0
  515. package/lib/esm/appui-react/content/{SavedView.js → ViewStateHelper.js} +2 -2
  516. package/lib/esm/appui-react/content/ViewStateHelper.js.map +1 -0
  517. package/lib/esm/appui-react/content/split-pane/Pane.d.ts +21 -0
  518. package/lib/esm/appui-react/content/split-pane/Pane.d.ts.map +1 -0
  519. package/lib/esm/appui-react/content/split-pane/Pane.js +39 -0
  520. package/lib/esm/appui-react/content/split-pane/Pane.js.map +1 -0
  521. package/lib/esm/appui-react/content/split-pane/Resizer.d.ts +23 -0
  522. package/lib/esm/appui-react/content/split-pane/Resizer.d.ts.map +1 -0
  523. package/lib/esm/appui-react/content/split-pane/Resizer.js +35 -0
  524. package/lib/esm/appui-react/content/split-pane/Resizer.js.map +1 -0
  525. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +70 -0
  526. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -0
  527. package/lib/esm/appui-react/content/split-pane/SplitPane.js +239 -0
  528. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -0
  529. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +1 -2
  530. package/lib/esm/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  531. package/lib/esm/appui-react/cursor/CursorInformation.js +2 -2
  532. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  533. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  534. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  535. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +2 -2
  536. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  537. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js +2 -2
  538. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  539. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +1 -1
  540. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  541. package/lib/esm/appui-react/dialog/DialogManagerBase.js +1 -1
  542. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  543. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  544. package/lib/esm/appui-react/dialog/StandardMessageBox.js +3 -0
  545. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  546. package/lib/esm/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -1
  547. package/lib/esm/appui-react/dragdrop/ZoneTargets.js +8 -4
  548. package/lib/esm/appui-react/dragdrop/ZoneTargets.js.map +1 -1
  549. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +2 -2
  550. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  551. package/lib/esm/appui-react/feedback/ElementTooltip.js +4 -2
  552. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  553. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +1 -0
  554. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  555. package/lib/esm/appui-react/frontstage/Frontstage.js +32 -13
  556. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -1
  557. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  558. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  559. package/lib/esm/appui-react/frontstage/FrontstageComposer.js +15 -1
  560. package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  561. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +15 -2
  562. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  563. package/lib/esm/appui-react/frontstage/FrontstageDef.js +140 -5
  564. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  565. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  566. package/lib/esm/appui-react/frontstage/FrontstageManager.js +1 -0
  567. package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
  568. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +6 -0
  569. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  570. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  571. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  572. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  573. package/lib/esm/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  574. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  575. package/lib/esm/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  576. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +1 -1
  577. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -1
  578. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js +6 -7
  579. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -1
  580. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +3 -3
  581. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  582. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +1 -1
  583. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  584. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts +0 -5
  585. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  586. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  587. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +1 -1
  588. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -1
  589. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +83 -70
  590. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -1
  591. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  592. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  593. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +2 -1
  594. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  595. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +2 -2
  596. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  597. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts +5 -5
  598. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -1
  599. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js +3 -2
  600. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -1
  601. package/lib/esm/appui-react/messages/AppNotificationManager.d.ts +1 -1
  602. package/lib/esm/appui-react/messages/AppNotificationManager.js +1 -1
  603. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  604. package/lib/esm/appui-react/messages/MessageManager.d.ts +1 -2
  605. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  606. package/lib/esm/appui-react/messages/MessageManager.js +9 -3
  607. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  608. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  609. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  610. package/lib/esm/appui-react/messages/Pointer.js +4 -3
  611. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  612. package/lib/esm/appui-react/messages/ToastMessage.js +2 -1
  613. package/lib/esm/appui-react/messages/ToastMessage.js.map +1 -1
  614. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +1 -1
  615. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  616. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  617. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  618. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -1
  619. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  620. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +2 -1
  621. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  622. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +6 -4
  623. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  624. package/lib/esm/appui-react/pickers/ListPicker.d.ts +3 -0
  625. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  626. package/lib/esm/appui-react/pickers/ListPicker.js +23 -9
  627. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  628. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +1 -1
  629. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  630. package/lib/esm/appui-react/pickers/ViewSelector.js +7 -7
  631. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  632. package/lib/esm/appui-react/popup/CardPopup.d.ts +7 -4
  633. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  634. package/lib/esm/appui-react/popup/CardPopup.js +3 -2
  635. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  636. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts +3 -2
  637. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  638. package/lib/esm/appui-react/popup/InputEditorPopup.js +1 -1
  639. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  640. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +7 -7
  641. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  642. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +3 -2
  643. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  644. package/lib/esm/appui-react/popup/KeyinPalettePopup.js +1 -1
  645. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  646. package/lib/esm/appui-react/popup/PopupManager.d.ts +10 -10
  647. package/lib/esm/appui-react/popup/PopupManager.d.ts.map +1 -1
  648. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  649. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  650. package/lib/esm/appui-react/popup/PositionPopup.d.ts +5 -3
  651. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  652. package/lib/esm/appui-react/popup/PositionPopup.js +3 -2
  653. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  654. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts +3 -2
  655. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  656. package/lib/esm/appui-react/popup/ToolSettingsPopup.js +1 -1
  657. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  658. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts +4 -3
  659. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  660. package/lib/esm/appui-react/popup/ToolbarPopup.js +2 -2
  661. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  662. package/lib/esm/appui-react/redux/FrameworkState.d.ts +1 -1
  663. package/lib/esm/appui-react/redux/SessionState.d.ts +0 -6
  664. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  665. package/lib/esm/appui-react/redux/SessionState.js +0 -8
  666. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  667. package/lib/esm/appui-react/redux/StateManager.d.ts +1 -1
  668. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  669. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js +7 -7
  670. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  671. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  672. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js +1 -1
  673. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  674. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  675. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +28 -19
  676. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  677. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  678. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  679. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  680. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +2 -2
  681. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  682. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -1
  683. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  684. package/lib/esm/appui-react/shared/ItemProps.d.ts +2 -2
  685. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  686. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +1 -1
  687. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  688. package/lib/esm/appui-react/shared/ToolItemDef.js +2 -2
  689. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  690. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -1
  691. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js +1 -0
  692. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -1
  693. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts +2 -2
  694. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  695. package/lib/esm/appui-react/stagepanels/StagePanel.js +1 -0
  696. package/lib/esm/appui-react/stagepanels/StagePanel.js.map +1 -1
  697. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +26 -2
  698. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  699. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +24 -3
  700. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  701. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts +2 -2
  702. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -1
  703. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js +2 -1
  704. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js.map +1 -1
  705. package/lib/esm/appui-react/statusbar/StatusBar.js +2 -1
  706. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  707. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  708. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +17 -5
  709. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  710. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  711. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js +1 -1
  712. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  713. package/lib/esm/appui-react/statusfields/Indicator.d.ts +15 -14
  714. package/lib/esm/appui-react/statusfields/Indicator.d.ts.map +1 -1
  715. package/lib/esm/appui-react/statusfields/Indicator.js +23 -21
  716. package/lib/esm/appui-react/statusfields/Indicator.js.map +1 -1
  717. package/lib/esm/appui-react/statusfields/Indicator.scss +29 -18
  718. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  719. package/lib/esm/appui-react/statusfields/MessageCenter.js +2 -1
  720. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  721. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +1 -0
  722. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  723. package/lib/esm/appui-react/statusfields/SelectionScope.js +6 -4
  724. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  725. package/lib/esm/appui-react/statusfields/SelectionScope.scss +13 -3
  726. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +2 -10
  727. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  728. package/lib/esm/appui-react/statusfields/SnapMode.js +5 -35
  729. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  730. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +0 -6
  731. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  732. package/lib/esm/appui-react/statusfields/ViewAttributes.js +2 -26
  733. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  734. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +7 -7
  735. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  736. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +14 -13
  737. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  738. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +8 -3
  739. package/lib/esm/appui-react/syncui/BooleanListener.d.ts +2 -2
  740. package/lib/esm/appui-react/syncui/BooleanListener.d.ts.map +1 -1
  741. package/lib/esm/appui-react/syncui/BooleanListener.js +2 -1
  742. package/lib/esm/appui-react/syncui/BooleanListener.js.map +1 -1
  743. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +8 -18
  744. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  745. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +29 -101
  746. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  747. package/lib/esm/appui-react/toolbar/ActionButtonItem.js +2 -1
  748. package/lib/esm/appui-react/toolbar/ActionButtonItem.js.map +1 -1
  749. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  750. package/lib/esm/appui-react/toolbar/ActionItemButton.js +2 -1
  751. package/lib/esm/appui-react/toolbar/ActionItemButton.js.map +1 -1
  752. package/lib/esm/appui-react/toolbar/GroupButtonItem.js +24 -20
  753. package/lib/esm/appui-react/toolbar/GroupButtonItem.js.map +1 -1
  754. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  755. package/lib/esm/appui-react/toolbar/GroupItem.js +33 -29
  756. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  757. package/lib/esm/appui-react/toolbar/ToolButton.js +3 -2
  758. package/lib/esm/appui-react/toolbar/ToolButton.js.map +1 -1
  759. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  760. package/lib/esm/appui-react/toolbar/Toolbar.js +3 -2
  761. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  762. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  763. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +22 -20
  764. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  765. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -1
  766. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +4 -4
  767. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  768. package/lib/esm/appui-react/tools/MarkupToolDefinitions.d.ts +2 -2
  769. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js +2 -2
  770. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js.map +1 -1
  771. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +8 -10
  772. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  773. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +18 -37
  774. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  775. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +7 -9
  776. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  777. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +13 -21
  778. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  779. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +7 -9
  780. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  781. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +40 -51
  782. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  783. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.scss +4 -4
  784. package/lib/{cjs/appui-react/uisettings → esm/appui-react/uistate}/AppUiSettings.d.ts +9 -7
  785. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -0
  786. package/lib/esm/appui-react/{uisettings → uistate}/AppUiSettings.js +13 -9
  787. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -0
  788. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
  789. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
  790. package/lib/esm/appui-react/uistate/UserSettingsStorage.js +55 -0
  791. package/lib/esm/appui-react/uistate/UserSettingsStorage.js.map +1 -0
  792. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts +20 -0
  793. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -0
  794. package/lib/esm/appui-react/uistate/useUiStateStorage.js +33 -0
  795. package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -0
  796. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts +5 -5
  797. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  798. package/lib/esm/appui-react/utils/UiShowHideManager.js +9 -9
  799. package/lib/esm/appui-react/utils/UiShowHideManager.js.map +1 -1
  800. package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
  801. package/lib/esm/appui-react/widget-panels/Content.js +1 -4
  802. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  803. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +98 -8
  804. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  805. package/lib/esm/appui-react/widget-panels/Frontstage.js +91 -95
  806. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  807. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +22 -0
  808. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -0
  809. package/lib/esm/appui-react/widgets/BackstageAppButton.js +52 -0
  810. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -0
  811. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  812. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +1 -0
  813. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  814. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  815. package/lib/esm/appui-react/widgets/BasicToolWidget.js +3 -1
  816. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  817. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts +9 -0
  818. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
  819. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js +10 -0
  820. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  821. package/lib/esm/appui-react/widgets/NavigationWidget.d.ts.map +1 -1
  822. package/lib/esm/appui-react/widgets/NavigationWidget.js +2 -1
  823. package/lib/esm/appui-react/widgets/NavigationWidget.js.map +1 -1
  824. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +1 -0
  825. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  826. package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  827. package/lib/esm/appui-react/widgets/StableWidgetDef.js +1 -1
  828. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  829. package/lib/esm/appui-react/widgets/ToolSettingsContent.js +2 -1
  830. package/lib/esm/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  831. package/lib/esm/appui-react/widgets/ToolWidget.js +3 -2
  832. package/lib/esm/appui-react/widgets/ToolWidget.js.map +1 -1
  833. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts +0 -12
  834. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  835. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js +2 -36
  836. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  837. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts +1 -0
  838. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -1
  839. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js +5 -2
  840. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  841. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts +0 -1
  842. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  843. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
  844. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  845. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -3
  846. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  847. package/lib/esm/appui-react/widgets/WidgetDef.js +18 -7
  848. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  849. package/lib/esm/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  850. package/lib/esm/appui-react/widgets/WidgetHost.js +1 -0
  851. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  852. package/lib/esm/appui-react/widgets/WidgetStack.d.ts.map +1 -1
  853. package/lib/esm/appui-react/widgets/WidgetStack.js +2 -0
  854. package/lib/esm/appui-react/widgets/WidgetStack.js.map +1 -1
  855. package/lib/esm/appui-react/zones/FrameworkZone.js.map +1 -1
  856. package/lib/esm/appui-react/zones/StatusBarZone.js.map +1 -1
  857. package/lib/esm/appui-react/zones/Zone.d.ts +1 -1
  858. package/lib/esm/appui-react/zones/Zone.d.ts.map +1 -1
  859. package/lib/esm/appui-react/zones/Zone.js +2 -1
  860. package/lib/esm/appui-react/zones/Zone.js.map +1 -1
  861. package/lib/esm/appui-react/zones/ZoneDef.d.ts +4 -4
  862. package/lib/esm/appui-react/zones/ZoneDef.d.ts.map +1 -1
  863. package/lib/esm/appui-react/zones/ZoneDef.js +5 -4
  864. package/lib/esm/appui-react/zones/ZoneDef.js.map +1 -1
  865. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts +1 -2
  866. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -1
  867. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js +2 -1
  868. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -1
  869. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -1
  870. package/lib/esm/appui-react.d.ts +15 -18
  871. package/lib/esm/appui-react.d.ts.map +1 -1
  872. package/lib/esm/appui-react.js +15 -18
  873. package/lib/esm/appui-react.js.map +1 -1
  874. package/lib/public/locales/en/UiFramework.json +9 -2
  875. package/package.json +44 -51
  876. package/lib/cjs/appui-react/UserInfo.d.ts +0 -58
  877. package/lib/cjs/appui-react/UserInfo.d.ts.map +0 -1
  878. package/lib/cjs/appui-react/UserInfo.js +0 -34
  879. package/lib/cjs/appui-react/UserInfo.js.map +0 -1
  880. package/lib/cjs/appui-react/content/SavedView.d.ts.map +0 -1
  881. package/lib/cjs/appui-react/content/SavedView.js.map +0 -1
  882. package/lib/cjs/appui-react/content/SavedViewLayout.d.ts.map +0 -1
  883. package/lib/cjs/appui-react/content/SavedViewLayout.js.map +0 -1
  884. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.d.ts +0 -25
  885. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.d.ts.map +0 -1
  886. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.js +0 -34
  887. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.js.map +0 -1
  888. package/lib/cjs/appui-react/uisettings/AppUiSettings.d.ts.map +0 -1
  889. package/lib/cjs/appui-react/uisettings/AppUiSettings.js.map +0 -1
  890. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.d.ts +0 -23
  891. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.d.ts.map +0 -1
  892. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.js +0 -74
  893. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.js.map +0 -1
  894. package/lib/cjs/appui-react/uisettings/useUiSettings.d.ts +0 -21
  895. package/lib/cjs/appui-react/uisettings/useUiSettings.d.ts.map +0 -1
  896. package/lib/cjs/appui-react/uisettings/useUiSettings.js +0 -28
  897. package/lib/cjs/appui-react/uisettings/useUiSettings.js.map +0 -1
  898. package/lib/esm/appui-react/UserInfo.d.ts +0 -58
  899. package/lib/esm/appui-react/UserInfo.d.ts.map +0 -1
  900. package/lib/esm/appui-react/UserInfo.js +0 -30
  901. package/lib/esm/appui-react/UserInfo.js.map +0 -1
  902. package/lib/esm/appui-react/content/SavedView.d.ts.map +0 -1
  903. package/lib/esm/appui-react/content/SavedView.js.map +0 -1
  904. package/lib/esm/appui-react/content/SavedViewLayout.d.ts.map +0 -1
  905. package/lib/esm/appui-react/content/SavedViewLayout.js.map +0 -1
  906. package/lib/esm/appui-react/stagepanels/StagePanelEnums.d.ts +0 -25
  907. package/lib/esm/appui-react/stagepanels/StagePanelEnums.d.ts.map +0 -1
  908. package/lib/esm/appui-react/stagepanels/StagePanelEnums.js +0 -31
  909. package/lib/esm/appui-react/stagepanels/StagePanelEnums.js.map +0 -1
  910. package/lib/esm/appui-react/uisettings/AppUiSettings.d.ts.map +0 -1
  911. package/lib/esm/appui-react/uisettings/AppUiSettings.js.map +0 -1
  912. package/lib/esm/appui-react/uisettings/UserSettingsStorage.d.ts +0 -23
  913. package/lib/esm/appui-react/uisettings/UserSettingsStorage.d.ts.map +0 -1
  914. package/lib/esm/appui-react/uisettings/UserSettingsStorage.js +0 -68
  915. package/lib/esm/appui-react/uisettings/UserSettingsStorage.js.map +0 -1
  916. package/lib/esm/appui-react/uisettings/useUiSettings.d.ts +0 -21
  917. package/lib/esm/appui-react/uisettings/useUiSettings.d.ts.map +0 -1
  918. package/lib/esm/appui-react/uisettings/useUiSettings.js +0 -23
  919. package/lib/esm/appui-react/uisettings/useUiSettings.js.map +0 -1
@@ -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,7 +96,7 @@ 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
101
  React.createElement(useFrameworkVersion_1.FrameworkVersion, null,
103
102
  React.createElement("div", { className: "uifw-child-window-container-host" },
@@ -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;;;;;;;;;;;;;;;;;;;;;QAqBV,CAAC;AAiBT;;;aAGa;AACb,MAAa,kBAAkB;IAA/B;QACU,sBAAiB,GAA0B,EAAE,CAAC;QA4E/C,qBAAgB,GAAG,CAAC,aAAqB,EAAE,kBAAkB,GAAG,IAAI,EAAE,EAAE;YAC7E,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,aAAa,KAAK,aAAa,CAAC,CAAC;YAChH,IAAI,CAAC,CAAC,KAAK,WAAW;gBACpB,OAAO,KAAK,CAAC;YACf,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;YACvD,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;YAC7C,IAAI,kBAAkB,EAAE;gBACtB,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;aAC5B;iBAAM;gBACL,wDAAwD;gBACxD,MAAM,aAAa,GAAG,qCAAiB,CAAC,mBAAmB,CAAC;gBAC5D,aAAa,IAAI,aAAa,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;aACzE;YACD,O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,CAAC,WAAW;YACd,OAAO,KAAK,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,CAAC,MAAM,EAAE;YACpB,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACtC,IAAI,CAAC,yBAAyB,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;SACrE;aAAM;YACL,WAAW,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE;gBACxC,WAAW,CAAC,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;gBACnC,IAAI,CAAC,yBAAyB,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;YACtE,CAAC,EAAE,KAAK,CAAC,CAAC;SACX;QAED,MAAM,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>\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,MAAa,kBAAkB;IAA/B;QACU,sBAAiB,GAA0B,EAAE,CAAC;QA4E/C,qBAAgB,GAAG,CAAC,aAAqB,EAAE,kBAAkB,GAAG,IAAI,EAAE,EAAE;YAC7E,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,aAAa,KAAK,aAAa,CAAC,CAAC;YAChH,IAAI,CAAC,CAAC,KAAK,WAAW;gBACpB,OAAO,KAAK,CAAC;YACf,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;YACvD,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;YAC7C,IAAI,kBAAkB,EAAE;gBACtB,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;aAC5B;iBAAM;gBACL,wDAAwD;gBACxD,MAAM,aAAa,GAAG,qCAAiB,CAAC,mBAAmB,CAAC;gBAC5D,aAAa,IAAI,aAAa,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;aACzE;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IAwDJ,CAAC;IAhJC,IAAW,gBAAgB;Q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K,CAAC,SAAS,CAAC,CAAC;YACtC,IAAI,CAAC,yBAAyB,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;SACrE;aAAM;YACL,WAAW,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE;gBACxC,WAAW,CAAC,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;gBACnC,IAAI,CAAC,yBAAyB,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;YACtE,CAAC,EAAE,KAAK,CAAC,CAAC;SACX;QAED,MAAM,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 { 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,+D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AAE,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/Conf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C,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,WAAW,EAAE,eAAe;QAE3B,KAAK,CAAC,YAAY;QAElB,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;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"]}
@@ -13,7 +13,9 @@ export declare enum ConfigurableUiActionId {
13
13
  SetToolPrompt = "configurableui:set_toolprompt",
14
14
  SetWidgetOpacity = "configurableui:set_widget_opacity",
15
15
  SetDragInteraction = "configurableui:set-drag-interaction",
16
- SetFrameworkVersion = "configurableui:set-framework-version"
16
+ SetFrameworkVersion = "configurableui:set-framework-version",
17
+ SetShowWidgetIcon = "configurableui:set-show-widget-icon",
18
+ SetViewOverlayDisplay = "configurableui:set-view-overlay-display"
17
19
  }
18
20
  /** The portion of state managed by the ConfigurableUiReducer.
19
21
  * @public
@@ -25,6 +27,8 @@ export interface ConfigurableUiState {
25
27
  widgetOpacity: number;
26
28
  useDragInteraction: boolean;
27
29
  frameworkVersion: FrameworkVersionId;
30
+ showWidgetIcon: boolean;
31
+ viewOverlayDisplay: boolean;
28
32
  }
29
33
  /** An object with a function that creates each ConfigurableUiReducer that can be handled by our reducer.
30
34
  * @public
@@ -36,6 +40,8 @@ export declare const ConfigurableUiActions: {
36
40
  setWidgetOpacity: (opacity: number) => import("../redux/redux-ts").ActionWithPayload<ConfigurableUiActionId.SetWidgetOpacity, number>;
37
41
  setDragInteraction: (dragInteraction: boolean) => import("../redux/redux-ts").ActionWithPayload<ConfigurableUiActionId.SetDragInteraction, boolean>;
38
42
  setFrameworkVersion: (frameworkVersion: FrameworkVersionId) => import("../redux/redux-ts").ActionWithPayload<ConfigurableUiActionId.SetFrameworkVersion, FrameworkVersionId>;
43
+ setShowWidgetIcon: (showWidgetIcon: boolean) => import("../redux/redux-ts").ActionWithPayload<ConfigurableUiActionId.SetShowWidgetIcon, boolean>;
44
+ setViewOverlayDisplay: (displayViewOverlay: boolean) => import("../redux/redux-ts").ActionWithPayload<ConfigurableUiActionId.SetViewOverlayDisplay, boolean>;
39
45
  };
40
46
  /** Union of ConfigurableUi Redux actions
41
47
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/state.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIpD;;;GAGG;AACH,oBAAY,sBAAsB;IAChC,WAAW,gCAAgC;IAC3C,QAAQ,6BAA6B;IACrC,aAAa,kCAAkC;IAC/C,gBAAgB,sCAAsC;IACtD,kBAAkB,wCAAwC;IAC1D,mBAAmB,yCAAyC;CAC7D;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,kBAAkB,CAAC;CACtC;AAYD;;GAEG;AACH,eAAO,MAAM,qBAAqB;4BACR,MAAM;sBAGpB,MAAM;gCAGD,MAAM;gCAGT,MAAM;0CACoB,OAAO;4CACL,kBAAkB;CAC3D,CAAC;AAEF;;GAEG;AACH,oBAAY,0BAA0B,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,iCAAoC,EAAE,MAAM,EAAE,0BAA0B,GAAG,mBAAmB,CAyBxI"}
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/state.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIpD;;;GAGG;AACH,oBAAY,sBAAsB;IAChC,WAAW,gCAAgC;IAC3C,QAAQ,6BAA6B;IACrC,aAAa,kCAAkC;IAC/C,gBAAgB,sCAAsC;IACtD,kBAAkB,wCAAwC;IAC1D,mBAAmB,yCAAyC;IAC5D,iBAAiB,wCAAwC;IACzD,qBAAqB,4CAA4C;CAClE;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,kBAAkB,CAAC;IACrC,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAcD;;GAEG;AACH,eAAO,MAAM,qBAAqB;4BACR,MAAM;sBAGpB,MAAM;gCAGD,MAAM;gCAGT,MAAM;0CACoB,OAAO;4CACL,kBAAkB;wCACtB,OAAO;gDACC,OAAO;CACpD,CAAC;AAEF;;GAEG;AACH,oBAAY,0BAA0B,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,iCAAoC,EAAE,MAAM,EAAE,0BAA0B,GAAG,mBAAmB,CA+BxI"}
@@ -24,6 +24,8 @@ var ConfigurableUiActionId;
24
24
  ConfigurableUiActionId["SetWidgetOpacity"] = "configurableui:set_widget_opacity";
25
25
  ConfigurableUiActionId["SetDragInteraction"] = "configurableui:set-drag-interaction";
26
26
  ConfigurableUiActionId["SetFrameworkVersion"] = "configurableui:set-framework-version";
27
+ ConfigurableUiActionId["SetShowWidgetIcon"] = "configurableui:set-show-widget-icon";
28
+ ConfigurableUiActionId["SetViewOverlayDisplay"] = "configurableui:set-view-overlay-display";
27
29
  })(ConfigurableUiActionId = exports.ConfigurableUiActionId || (exports.ConfigurableUiActionId = {}));
28
30
  /** used on first call of ConfigurableUiReducer */
29
31
  const initialState = {
@@ -33,6 +35,8 @@ const initialState = {
33
35
  widgetOpacity: ThemeManager_1.WIDGET_OPACITY_DEFAULT,
34
36
  useDragInteraction: false,
35
37
  frameworkVersion: "2",
38
+ showWidgetIcon: true,
39
+ viewOverlayDisplay: true,
36
40
  };
37
41
  /** An object with a function that creates each ConfigurableUiReducer that can be handled by our reducer.
38
42
  * @public
@@ -50,6 +54,8 @@ exports.ConfigurableUiActions = {
50
54
  (opacity) => (0, redux_ts_1.createAction)(ConfigurableUiActionId.SetWidgetOpacity, opacity),
51
55
  setDragInteraction: (dragInteraction) => (0, redux_ts_1.createAction)(ConfigurableUiActionId.SetDragInteraction, dragInteraction),
52
56
  setFrameworkVersion: (frameworkVersion) => (0, redux_ts_1.createAction)(ConfigurableUiActionId.SetFrameworkVersion, frameworkVersion),
57
+ setShowWidgetIcon: (showWidgetIcon) => (0, redux_ts_1.createAction)(ConfigurableUiActionId.SetShowWidgetIcon, showWidgetIcon),
58
+ setViewOverlayDisplay: (displayViewOverlay) => (0, redux_ts_1.createAction)(ConfigurableUiActionId.SetViewOverlayDisplay, displayViewOverlay),
53
59
  };
54
60
  /** Handles actions to update ConfigurableUiState.
55
61
  * @public
@@ -76,6 +82,12 @@ function ConfigurableUiReducer(state = initialState, action) {
76
82
  const frameworkVersion = (action.payload);
77
83
  return { ...state, frameworkVersion };
78
84
  }
85
+ case ConfigurableUiActionId.SetShowWidgetIcon: {
86
+ return { ...state, showWidgetIcon: action.payload };
87
+ }
88
+ case ConfigurableUiActionId.SetViewOverlayDisplay: {
89
+ return { ...state, viewOverlayDisplay: action.payload };
90
+ }
79
91
  }
80
92
  return outState;
81
93
  }
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/state.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAAgD;AAChD,gDAA+D;AAC/D,wDAA6F;AAG7F,mDAAmD;AAEn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;AACH,SAAgB,qBAAqB,CAAC,QAA6B,YAAY,EAAE,MAAkC;IACjH,MAAM,QAAQ,GAAG,KAAK,CAAC;IAEvB,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,sBAAsB,CAAC,WAAW,CAAC,CAAC;YACvC,OAAO,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SAC/C;QACD,KAAK,sBAAsB,CAAC,aAAa,CAAC,CAAC;YACzC,OAAO,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACjD;QACD,KAAK,sBAAsB,CAAC,QAAQ,CAAC,CAAC;YACpC,OAAO,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SAC5C;QACD,KAAK,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;YAC5C,OAAO,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACpD;QACD,KAAK,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;YAC9C,OAAO,EAAE,GAAG,KAAK,EAAE,kBAAkB,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACzD;QACD,KAAK,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;YAC/C,MAAM,gBAAgB,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC1C,OAAO,EAAE,GAAG,KAAK,EAAE,gBAAgB,EAAE,CAAC;SACvC;KACF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAzBD,sDAyBC","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 State\r\n */\r\n\r\nimport { SnapMode } from \"@itwin/core-frontend\";\r\nimport { ActionsUnion, createAction } from \"../redux/redux-ts\";\r\nimport { SYSTEM_PREFERRED_COLOR_THEME, WIDGET_OPACITY_DEFAULT } from \"../theme/ThemeManager\";\r\nimport { FrameworkVersionId } from \"../UiFramework\";\r\n\r\n// cSpell:ignore configurableui snapmode toolprompt\r\n\r\n/** Action Ids used by Redux and to send sync UI components. Typically used to refresh visibility or enable state of control.\r\n * Since these are also used as sync ids they should be in lowercase.\r\n * @public\r\n */\r\nexport enum ConfigurableUiActionId {\r\n SetSnapMode = \"configurableui:set_snapmode\",\r\n SetTheme = \"configurableui:set_theme\",\r\n SetToolPrompt = \"configurableui:set_toolprompt\",\r\n SetWidgetOpacity = \"configurableui:set_widget_opacity\",\r\n SetDragInteraction = \"configurableui:set-drag-interaction\",\r\n SetFrameworkVersion = \"configurableui:set-framework-version\",\r\n}\r\n\r\n/** The portion of state managed by the ConfigurableUiReducer.\r\n * @public\r\n */\r\nexport interface ConfigurableUiState {\r\n snapMode: number;\r\n toolPrompt: string;\r\n theme: string;\r\n widgetOpacity: number;\r\n useDragInteraction: boolean;\r\n frameworkVersion: FrameworkVersionId;\r\n}\r\n\r\n/** used on first call of ConfigurableUiReducer */\r\nconst initialState: ConfigurableUiState = {\r\n snapMode: SnapMode.NearestKeypoint as number,\r\n toolPrompt: \"\",\r\n theme: SYSTEM_PREFERRED_COLOR_THEME,\r\n widgetOpacity: WIDGET_OPACITY_DEFAULT,\r\n useDragInteraction: false,\r\n frameworkVersion: \"2\",\r\n};\r\n\r\n/** An object with a function that creates each ConfigurableUiReducer that can be handled by our reducer.\r\n * @public\r\n */\r\nexport const ConfigurableUiActions = { // eslint-disable-line @typescript-eslint/naming-convention\r\n setSnapMode: (snapMode: number) => createAction(ConfigurableUiActionId.SetSnapMode, snapMode),\r\n setTheme:\r\n // istanbul ignore next\r\n (theme: string) => createAction(ConfigurableUiActionId.SetTheme, theme),\r\n setToolPrompt:\r\n // istanbul ignore next\r\n (toolPrompt: string) => createAction(ConfigurableUiActionId.SetToolPrompt, toolPrompt),\r\n setWidgetOpacity:\r\n // istanbul ignore next\r\n (opacity: number) => createAction(ConfigurableUiActionId.SetWidgetOpacity, opacity),\r\n setDragInteraction: (dragInteraction: boolean) => createAction(ConfigurableUiActionId.SetDragInteraction, dragInteraction),\r\n setFrameworkVersion: (frameworkVersion: FrameworkVersionId) => createAction(ConfigurableUiActionId.SetFrameworkVersion, frameworkVersion),\r\n};\r\n\r\n/** Union of ConfigurableUi Redux actions\r\n * @public\r\n */\r\nexport type ConfigurableUiActionsUnion = ActionsUnion<typeof ConfigurableUiActions>;\r\n\r\n/** Handles actions to update ConfigurableUiState.\r\n * @public\r\n */\r\nexport function ConfigurableUiReducer(state: ConfigurableUiState = initialState, action: ConfigurableUiActionsUnion): ConfigurableUiState {\r\n const outState = state;\r\n\r\n switch (action.type) {\r\n case ConfigurableUiActionId.SetSnapMode: {\r\n return { ...state, snapMode: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetToolPrompt: {\r\n return { ...state, toolPrompt: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetTheme: {\r\n return { ...state, theme: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetWidgetOpacity: {\r\n return { ...state, widgetOpacity: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetDragInteraction: {\r\n return { ...state, useDragInteraction: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetFrameworkVersion: {\r\n const frameworkVersion = (action.payload);\r\n return { ...state, frameworkVersion };\r\n }\r\n }\r\n return outState;\r\n}\r\n"]}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/state.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAAgD;AAChD,gDAA+D;AAC/D,wDAA6F;AAG7F,mDAAmD;AAEnD;;;GAGG;AACH,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,qEAA2C,CAAA;IAC3C,+DAAqC,CAAA;IACrC,yEAA+C,CAAA;IAC/C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EAAE,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACrD;QACD,KAAK,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;YACjD,OAAO,EAAE,GAAG,KAAK,EAAE,kBAAkB,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACzD;KACF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AA/BD,sDA+BC","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 State\r\n */\r\n\r\nimport { SnapMode } from \"@itwin/core-frontend\";\r\nimport { ActionsUnion, createAction } from \"../redux/redux-ts\";\r\nimport { SYSTEM_PREFERRED_COLOR_THEME, WIDGET_OPACITY_DEFAULT } from \"../theme/ThemeManager\";\r\nimport { FrameworkVersionId } from \"../UiFramework\";\r\n\r\n// cSpell:ignore configurableui snapmode toolprompt\r\n\r\n/** Action Ids used by Redux and to send sync UI components. Typically used to refresh visibility or enable state of control.\r\n * Since these are also used as sync ids they should be in lowercase.\r\n * @public\r\n */\r\nexport enum ConfigurableUiActionId {\r\n SetSnapMode = \"configurableui:set_snapmode\",\r\n SetTheme = \"configurableui:set_theme\",\r\n SetToolPrompt = \"configurableui:set_toolprompt\",\r\n SetWidgetOpacity = \"configurableui:set_widget_opacity\",\r\n SetDragInteraction = \"configurableui:set-drag-interaction\",\r\n SetFrameworkVersion = \"configurableui:set-framework-version\",\r\n SetShowWidgetIcon = \"configurableui:set-show-widget-icon\",\r\n SetViewOverlayDisplay = \"configurableui:set-view-overlay-display\",\r\n}\r\n\r\n/** The portion of state managed by the ConfigurableUiReducer.\r\n * @public\r\n */\r\nexport interface ConfigurableUiState {\r\n snapMode: number;\r\n toolPrompt: string;\r\n theme: string;\r\n widgetOpacity: number;\r\n useDragInteraction: boolean;\r\n frameworkVersion: FrameworkVersionId;\r\n showWidgetIcon: boolean;\r\n viewOverlayDisplay: boolean;\r\n}\r\n\r\n/** used on first call of ConfigurableUiReducer */\r\nconst initialState: ConfigurableUiState = {\r\n snapMode: SnapMode.NearestKeypoint as number,\r\n toolPrompt: \"\",\r\n theme: SYSTEM_PREFERRED_COLOR_THEME,\r\n widgetOpacity: WIDGET_OPACITY_DEFAULT,\r\n useDragInteraction: false,\r\n frameworkVersion: \"2\",\r\n showWidgetIcon: true,\r\n viewOverlayDisplay: true,\r\n};\r\n\r\n/** An object with a function that creates each ConfigurableUiReducer that can be handled by our reducer.\r\n * @public\r\n */\r\nexport const ConfigurableUiActions = { // eslint-disable-line @typescript-eslint/naming-convention\r\n setSnapMode: (snapMode: number) => createAction(ConfigurableUiActionId.SetSnapMode, snapMode),\r\n setTheme:\r\n // istanbul ignore next\r\n (theme: string) => createAction(ConfigurableUiActionId.SetTheme, theme),\r\n setToolPrompt:\r\n // istanbul ignore next\r\n (toolPrompt: string) => createAction(ConfigurableUiActionId.SetToolPrompt, toolPrompt),\r\n setWidgetOpacity:\r\n // istanbul ignore next\r\n (opacity: number) => createAction(ConfigurableUiActionId.SetWidgetOpacity, opacity),\r\n setDragInteraction: (dragInteraction: boolean) => createAction(ConfigurableUiActionId.SetDragInteraction, dragInteraction),\r\n setFrameworkVersion: (frameworkVersion: FrameworkVersionId) => createAction(ConfigurableUiActionId.SetFrameworkVersion, frameworkVersion),\r\n setShowWidgetIcon: (showWidgetIcon: boolean) => createAction(ConfigurableUiActionId.SetShowWidgetIcon, showWidgetIcon),\r\n setViewOverlayDisplay: (displayViewOverlay: boolean) => createAction(ConfigurableUiActionId.SetViewOverlayDisplay, displayViewOverlay),\r\n};\r\n\r\n/** Union of ConfigurableUi Redux actions\r\n * @public\r\n */\r\nexport type ConfigurableUiActionsUnion = ActionsUnion<typeof ConfigurableUiActions>;\r\n\r\n/** Handles actions to update ConfigurableUiState.\r\n * @public\r\n */\r\nexport function ConfigurableUiReducer(state: ConfigurableUiState = initialState, action: ConfigurableUiActionsUnion): ConfigurableUiState {\r\n const outState = state;\r\n\r\n switch (action.type) {\r\n case ConfigurableUiActionId.SetSnapMode: {\r\n return { ...state, snapMode: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetToolPrompt: {\r\n return { ...state, toolPrompt: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetTheme: {\r\n return { ...state, theme: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetWidgetOpacity: {\r\n return { ...state, widgetOpacity: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetDragInteraction: {\r\n return { ...state, useDragInteraction: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetFrameworkVersion: {\r\n const frameworkVersion = (action.payload);\r\n return { ...state, frameworkVersion };\r\n }\r\n case ConfigurableUiActionId.SetShowWidgetIcon: {\r\n return { ...state, showWidgetIcon: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetViewOverlayDisplay: {\r\n return { ...state, viewOverlayDisplay: action.payload };\r\n }\r\n }\r\n return outState;\r\n}\r\n"]}
@@ -4,7 +4,7 @@
4
4
  import * as React from "react";
5
5
  import { Id64String } from "@itwin/core-bentley";
6
6
  import { IModelConnection, ScreenViewport, ViewState } from "@itwin/core-frontend";
7
- import { UiEvent } from "@itwin/core-react";
7
+ import { UiEvent } from "@itwin/appui-abstract";
8
8
  import { ConfigurableCreateInfo, ConfigurableUiControl, ConfigurableUiControlType } from "../configurableui/ConfigurableUiControl";
9
9
  /** ControlControl Activated Event Args interface.
10
10
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"ContentControl.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentControl.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO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yBAAyB;IAE3C,0DAA0D;IAC1D,IAAW,UAAU,IAAI,OAAO,CAAkB;IAClD,uDAAuD;IACvD,IAAW,QAAQ,IAAI,cAAc,GAAG,SAAS,CAAsB;IAEvE,SAAS,CAAC,iBAAiB,IAAI,KAAK,CAAC,SAAS;IAa9C,SAAS,CAAC,YAAY,IAAI,KAAK,CAAC,SAAS;IAIzC,mDAAmD;IACnD,IAAW,SAAS,IAAI,KAAK,CAAC,SAAS,CAEtC;IAED,IAAW,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,EAA0B;IAEjE,uEAAuE;IACvE,IAAW,oBAAoB,IAAI,MAAM,CAExC;CAEF"}
@@ -9,12 +9,12 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.ContentControl = exports.ContentControlActivatedEvent = void 0;
11
11
  const React = require("react");
12
- const core_react_1 = require("@itwin/core-react");
12
+ const appui_abstract_1 = require("@itwin/appui-abstract");
13
13
  const ConfigurableUiControl_1 = require("../configurableui/ConfigurableUiControl");
14
14
  /** ContentControl Activated Event class.
15
15
  * @public
16
16
  */
17
- class ContentControlActivatedEvent extends core_react_1.UiEvent {
17
+ class ContentControlActivatedEvent extends appui_abstract_1.UiEvent {
18
18
  }
19
19
  exports.ContentControlActivatedEvent = ContentControlActivatedEvent;
20
20
  /** The base class for Frontstage content controls.
@@ -1 +1 @@
1
- {"version":3,"file":"ContentControl.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentControl.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAG/B,kDAA4C;AAC5C,mFAAmI;AAUnI;;GAEG;AACH,MAAa,4BAA6B,SAAQ,oBAAyC;CAAI;AAA/F,oEAA+F;AAY/F;;GAEG;AACH,MAAa,cAAe,SAAQ,6CAAqB;IAIvD;;;OAGG;IACH,YAAY,IAA4B,EAAE,OAAY;QACpD,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAPf,cAAS,GAAG,KAAK,CAAC;IAQ1B,CAAC;IAED,mDAAmD;IAC5C,WAAW;IAClB,CAAC;IAED,qDAAqD;IAC9C,aAAa;IACpB,CAAC;IAED,8EAA8E;IACvE,OAAO,KAAgC,OAAO,iDAAyB,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzF,0DAA0D;IAC1D,IAAW,UAAU,KAAc,OAAO,KAAK,CAAC,CAAC,CAAC;IAClD,uDAAuD;IACvD,IAAW,QAAQ,KAAiC,OAAO,SAAS,CAAC,CAAC,CAAC;IAE7D,iBAAiB;QACzB,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;YAC5D,uBAAuB;YACvB,IAAI,CAAE,IAAI,CAAC,UAAsC,CAAC,GAAG,EAAE;gBACrD,MAAM,eAAe,GAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACpD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;aACxE;YACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;SACvB;QAED,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAES,YAAY;QACpB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED,mDAAmD;IACnD,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;IAC7B,CAAC;IAED,IAAW,SAAS,CAAC,CAAkB,IAAI,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;IAEjE,uEAAuE;IACvE,IAAW,oBAAoB;QAC7B,OAAO,EAAE,CAAC;IACZ,CAAC;CAEF;AAzDD,wCAyDC","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 ContentView\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { IModelConnection, ScreenViewport, ViewState } from \"@itwin/core-frontend\";\r\nimport { UiEvent } from \"@itwin/core-react\";\r\nimport { ConfigurableCreateInfo, ConfigurableUiControl, ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\n\r\n/** ControlControl Activated Event Args interface.\r\n * @public\r\n */\r\nexport interface ContentControlActivatedEventArgs {\r\n activeContentControl: ContentControl;\r\n oldContentControl?: ContentControl;\r\n}\r\n\r\n/** ContentControl Activated Event class.\r\n * @public\r\n */\r\nexport class ContentControlActivatedEvent extends UiEvent<ContentControlActivatedEventArgs> { }\r\n\r\n/** Interface to be implemented when the ContentControl supports ViewSelector changes\r\n * @public\r\n */\r\nexport interface SupportsViewSelectorChange {\r\n /** Returns true if this control supports reacting to ViewSelector changes. */\r\n supportsViewSelectorChange: boolean;\r\n /** Process a ViewSelector change. */\r\n processViewSelectorChange(iModel: IModelConnection, viewDefinitionId: Id64String, viewState: ViewState, name: string): Promise<void>;\r\n}\r\n\r\n/** The base class for Frontstage content controls.\r\n * @public\r\n */\r\nexport class ContentControl extends ConfigurableUiControl {\r\n protected _reactNode: React.ReactNode;\r\n private _keyAdded = false;\r\n\r\n /** Creates an instance of ContentControl.\r\n * @param info An object that the subclass must pass to this base class.\r\n * @param options Options provided via the applicationData in a [[ContentProps]].\r\n */\r\n constructor(info: ConfigurableCreateInfo, options: any) {\r\n super(info, options);\r\n }\r\n\r\n /** Called when this ContentControl is activated */\r\n public onActivated(): void {\r\n }\r\n\r\n /** Called when this ContentControl is deactivated */\r\n public onDeactivated(): void {\r\n }\r\n\r\n /** Gets the type of ConfigurableUiControl, which is 'Content' in this case */\r\n public getType(): ConfigurableUiControlType { return ConfigurableUiControlType.Content; }\r\n\r\n /** Returns true if this control is a Viewport control. */\r\n public get isViewport(): boolean { return false; }\r\n /** Returns the ScreenViewport if isViewport is true */\r\n public get viewport(): ScreenViewport | undefined { return undefined; }\r\n\r\n protected getKeyedReactNode(): React.ReactNode {\r\n if (!this._keyAdded && React.isValidElement(this._reactNode)) {\r\n // istanbul ignore else\r\n if (!(this._reactNode as React.ReactElement<any>).key) {\r\n const additionalProps: any = { key: this.uniqueId };\r\n this._reactNode = React.cloneElement(this._reactNode, additionalProps);\r\n }\r\n this._keyAdded = true;\r\n }\r\n\r\n return this._reactNode;\r\n }\r\n\r\n protected getReactNode(): React.ReactNode {\r\n return this.getKeyedReactNode();\r\n }\r\n\r\n /** The React node associated with this control. */\r\n public get reactNode(): React.ReactNode {\r\n return this.getReactNode();\r\n }\r\n\r\n public set reactNode(r: React.ReactNode) { this._reactNode = r; }\r\n\r\n /** Get the NavigationAidControl associated with this ContentControl */\r\n public get navigationAidControl(): string {\r\n return \"\";\r\n }\r\n\r\n}\r\n"]}
1
+ {"version":3,"file":"ContentControl.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentControl.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAG/B,0DAAgD;AAChD,mFAAmI;AAUnI;;GAEG;AACH,MAAa,4BAA6B,SAAQ,wBAAyC;CAAI;AAA/F,oEAA+F;AAY/F;;GAEG;AACH,MAAa,cAAe,SAAQ,6CAAqB;IAIvD;;;OAGG;IACH,YAAY,IAA4B,EAAE,OAAY;QACpD,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAPf,cAAS,GAAG,KAAK,CAAC;IAQ1B,CAAC;IAED,mDAAmD;IAC5C,WAAW;IAClB,CAAC;IAED,qDAAqD;IAC9C,aAAa;IACpB,CAAC;IAED,8EAA8E;IACvE,OAAO,KAAgC,OAAO,iDAAyB,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzF,0DAA0D;IAC1D,IAAW,UAAU,KAAc,OAAO,KAAK,CAAC,CAAC,CAAC;IAClD,uDAAuD;IACvD,IAAW,QAAQ,KAAiC,OAAO,SAAS,CAAC,CAAC,CAAC;IAE7D,iBAAiB;QACzB,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;YAC5D,uBAAuB;YACvB,IAAI,CAAE,IAAI,CAAC,UAAsC,CAAC,GAAG,EAAE;gBACrD,MAAM,eAAe,GAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACpD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;aACxE;YACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;SACvB;QAED,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAES,YAAY;QACpB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED,mDAAmD;IACnD,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;IAC7B,CAAC;IAED,IAAW,SAAS,CAAC,CAAkB,IAAI,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;IAEjE,uEAAuE;IACvE,IAAW,oBAAoB;QAC7B,OAAO,EAAE,CAAC;IACZ,CAAC;CAEF;AAzDD,wCAyDC","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 ContentView\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { IModelConnection, ScreenViewport, ViewState } from \"@itwin/core-frontend\";\r\nimport { UiEvent } from \"@itwin/appui-abstract\";\r\nimport { ConfigurableCreateInfo, ConfigurableUiControl, ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\n\r\n/** ControlControl Activated Event Args interface.\r\n * @public\r\n */\r\nexport interface ContentControlActivatedEventArgs {\r\n activeContentControl: ContentControl;\r\n oldContentControl?: ContentControl;\r\n}\r\n\r\n/** ContentControl Activated Event class.\r\n * @public\r\n */\r\nexport class ContentControlActivatedEvent extends UiEvent<ContentControlActivatedEventArgs> { }\r\n\r\n/** Interface to be implemented when the ContentControl supports ViewSelector changes\r\n * @public\r\n */\r\nexport interface SupportsViewSelectorChange {\r\n /** Returns true if this control supports reacting to ViewSelector changes. */\r\n supportsViewSelectorChange: boolean;\r\n /** Process a ViewSelector change. */\r\n processViewSelectorChange(iModel: IModelConnection, viewDefinitionId: Id64String, viewState: ViewState, name: string): Promise<void>;\r\n}\r\n\r\n/** The base class for Frontstage content controls.\r\n * @public\r\n */\r\nexport class ContentControl extends ConfigurableUiControl {\r\n protected _reactNode: React.ReactNode;\r\n private _keyAdded = false;\r\n\r\n /** Creates an instance of ContentControl.\r\n * @param info An object that the subclass must pass to this base class.\r\n * @param options Options provided via the applicationData in a [[ContentProps]].\r\n */\r\n constructor(info: ConfigurableCreateInfo, options: any) {\r\n super(info, options);\r\n }\r\n\r\n /** Called when this ContentControl is activated */\r\n public onActivated(): void {\r\n }\r\n\r\n /** Called when this ContentControl is deactivated */\r\n public onDeactivated(): void {\r\n }\r\n\r\n /** Gets the type of ConfigurableUiControl, which is 'Content' in this case */\r\n public getType(): ConfigurableUiControlType { return ConfigurableUiControlType.Content; }\r\n\r\n /** Returns true if this control is a Viewport control. */\r\n public get isViewport(): boolean { return false; }\r\n /** Returns the ScreenViewport if isViewport is true */\r\n public get viewport(): ScreenViewport | undefined { return undefined; }\r\n\r\n protected getKeyedReactNode(): React.ReactNode {\r\n if (!this._keyAdded && React.isValidElement(this._reactNode)) {\r\n // istanbul ignore else\r\n if (!(this._reactNode as React.ReactElement<any>).key) {\r\n const additionalProps: any = { key: this.uniqueId };\r\n this._reactNode = React.cloneElement(this._reactNode, additionalProps);\r\n }\r\n this._keyAdded = true;\r\n }\r\n\r\n return this._reactNode;\r\n }\r\n\r\n protected getReactNode(): React.ReactNode {\r\n return this.getKeyedReactNode();\r\n }\r\n\r\n /** The React node associated with this control. */\r\n public get reactNode(): React.ReactNode {\r\n return this.getReactNode();\r\n }\r\n\r\n public set reactNode(r: React.ReactNode) { this._reactNode = r; }\r\n\r\n /** Get the NavigationAidControl associated with this ContentControl */\r\n public get navigationAidControl(): string {\r\n return \"\";\r\n }\r\n\r\n}\r\n"]}
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import "./ContentLayout.scss";
5
5
  import * as React from "react";
6
- import { CommonProps, UiEvent } from "@itwin/core-react";
6
+ import { CommonProps } from "@itwin/core-react";
7
7
  import { ContentGroup } from "./ContentGroup";
8
- import { ContentLayoutProps, LayoutFragmentProps } from "@itwin/appui-abstract";
8
+ import { ContentLayoutProps, LayoutFragmentProps, UiEvent } from "@itwin/appui-abstract";
9
9
  /** Common interface for HorizontalSplit and VerticalSplit
10
10
  */
11
11
  interface LayoutSplit {
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayout.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentLayout.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGtE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAA8E,MAAM,uBAAuB,CAAC;AAsK5J;GACG;AACH,UAAU,WAAW;IACnB,sBAAsB,CAAC,YAAY,EAAE,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC;IAC7F,QAAQ,EAAE,OAAO,CAAC;CACnB;AA6JD;;GAEG;AACH,qBAAa,gBA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MAAM,EAAE;IAexC,OAAO,CAAC,gCAAgC;IAuBxC,OAAO,CAAC,8BAA8B;IAuBtC,gBAAgB;WACF,WAAW,CAAC,WAAW,EAAE,mBAAmB,GAAG,WAAW,GAAG,SAAS;CAUrF;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,aAAa,EAAE,gBAAgB,CAAC;IAChC,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,OAAO,CAAC,+BAA+B,CAAC;CAAI;AAE7F;GACG;AACH,UAAU,kBAAkB;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,WAAW;IAC9D,aAAa,EAAE,gBAAgB,CAAC;IAChC,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,2BAA2B,EAAE,kBAAkB,CAAC;IAEjG,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;gBAEjD,KAAK,EAAE,2BAA2B;IAgB9B,iBAAiB;IAIjB,oBAAoB;IAIpC,OAAO,CAAC,6BAA6B,CAYnC;IAEc,MAAM,IAAI,KAAK,CAAC,SAAS;IAezC,OAAO,CAAC,YAAY,CAElB;IAEF,OAAO,CAAC,UAAU,CAEhB;CACH"}
@@ -12,10 +12,11 @@ exports.ContentLayout = exports.ContentLayoutActivatedEvent = exports.ContentLay
12
12
  require("./ContentLayout.scss");
13
13
  const classnames_1 = require("classnames");
14
14
  const React = require("react");
15
- const react_split_pane_1 = require("react-split-pane");
15
+ const SplitPane_1 = require("./split-pane/SplitPane");
16
16
  const core_react_1 = require("@itwin/core-react");
17
17
  const FrontstageManager_1 = require("../frontstage/FrontstageManager");
18
18
  const UiShowHideManager_1 = require("../utils/UiShowHideManager");
19
+ const appui_abstract_1 = require("@itwin/appui-abstract");
19
20
  const ContentViewManager_1 = require("./ContentViewManager");
20
21
  /** ContentWrapper React component.
21
22
  */
@@ -90,7 +91,7 @@ class SplitContainer extends React.Component {
90
91
  const minSizeTopLeft = this.props.minSizeTopLeft;
91
92
  const minSizeBottomRight = -(this.props.minSizeBottomRight);
92
93
  return (React.createElement("div", { ref: (e) => { this._containerDiv = e; }, className: (0, classnames_1.default)("uifw-contentlayout-full-size", this.props.className), style: this.props.style },
93
- React.createElement(react_split_pane_1.default, { split: orientation, minSize: minSizeTopLeft, maxSize: minSizeBottomRight, defaultSize: defaultSize, onChange: this._onSplitterChange, allowResize: this.props.resizable },
94
+ React.createElement(SplitPane_1.SplitPane, { split: orientation, minSize: minSizeTopLeft, maxSize: minSizeBottomRight, defaultSize: defaultSize, onChange: this._onSplitterChange, allowResize: this.props.resizable },
94
95
  this.props.contentA,
95
96
  this.props.contentB)));
96
97
  }
@@ -297,7 +298,7 @@ exports.ContentLayoutDef = ContentLayoutDef;
297
298
  /** Content Layout Activated Event class.
298
299
  * @public
299
300
  */
300
- class ContentLayoutActivatedEvent extends core_react_1.UiEvent {
301
+ class ContentLayoutActivatedEvent extends appui_abstract_1.UiEvent {
301
302
  }
302
303
  exports.ContentLayoutActivatedEvent = ContentLayoutActivatedEvent;
303
304
  /** Content Layout React component.
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayout.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentLayout.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,8BAA8B;AAE9B,gCAA8B;AAC9B,2CAAoC;AACpC,+BAA+B;AAC/B,uDAAyC;AACzC,kDAAsE;AACtE,uEAAoE;AACpE,kEAA+D;AAG/D,6DAAyF;AAazF;GACG;AACH,MAAM,cAAe,SAAQ,KAAK,CA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AEe,oBAAoB;QAClC,qCAAiB,CAAC,6BAA6B,CAAC,cAAc,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IACrG,CAAC;IAgBe,MAAM;QACpB,IAAI,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE;YAC/B,OAAO,CACL,6BAAK,EAAE,EAAC,wBAAwB,EAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvF,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,IAAI,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,EAAE,EACrE,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,EAAC,cAAc,IAE9E,IAAI,CAAC,KAAK,CAAC,gBAAgB,CACxB,CACP,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CASF;AAjED,sCAiEC","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 ContentView\r\n */\r\n\r\n// cSpell:ignore contentlayout\r\n\r\nimport \"./ContentLayout.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport SplitPane from \"react-split-pane\";\r\nimport { CommonProps, Orientation, UiEvent } from \"@itwin/core-react\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { UiShowHideManager } from \"../utils/UiShowHideManager\";\r\nimport { ContentGroup } from \"./ContentGroup\";\r\nimport { ContentLayoutProps, LayoutFragmentProps, LayoutHorizontalSplitProps, LayoutSplitPropsBase, LayoutVerticalSplitProps } from \"@itwin/appui-abstract\";\r\nimport { ActiveContentChangedEventArgs, ContentViewManager } from \"./ContentViewManager\";\r\n\r\n/** Properties for [[ContentWrapper]] */\r\ninterface ContentWrapperProps extends CommonProps {\r\n content: React.ReactNode;\r\n}\r\n\r\n/** State for [[ContentWrapper]] */\r\ninterface ContentWrapperState {\r\n content: React.ReactNode;\r\n isActive: boolean;\r\n}\r\n\r\n/** ContentWrapper React component.\r\n */\r\nclass ContentWrapper extends React.Component<ContentWrapperProps, ContentWrapperState> {\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<ContentWrapperState>;\r\n\r\n constructor(props: ContentWrapperProps) {\r\n super(props);\r\n\r\n this.state = {\r\n content: this.props.content,\r\n isActive: this.props.content === ContentViewManager.getActiveContent(),\r\n };\r\n }\r\n\r\n public override render(): React.ReactNode {\r\n const overlayClassName = classnames(\r\n \"uifw-contentlayout-overlay-div\",\r\n this.state.isActive ? \"uifw-contentlayout-overlay-active\" : \"uifw-contentlayout-overlay-inactive\",\r\n );\r\n\r\n return (\r\n <div className={classnames(\"uifw-contentlayout-wrapper\", this.props.className)} style={this.props.style}\r\n onMouseDown={this._handleMouseDown} onMouseMove={UiShowHideManager.handleContentMouseMove} role=\"presentation\"\r\n >\r\n {this.state.content}\r\n <div className={overlayClassName} />\r\n </div>\r\n );\r\n }\r\n\r\n private _handleMouseDown = (_event: React.MouseEvent<HTMLDivElement>) => {\r\n // event.preventDefault();\r\n\r\n ContentViewManager.setActiveContent(this.state.content);\r\n };\r\n\r\n public override componentDidMount() {\r\n ContentViewManager.onActiveContentChangedEvent.addListener(this._handleActiveContentChanged);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n ContentViewManager.onActiveContentChangedEvent.removeListener(this._handleActiveContentChanged);\r\n }\r\n\r\n private _handleActiveContentChanged = (args: ActiveContentChangedEventArgs) => {\r\n const isActive = this.state.content === args.activeContent;\r\n if (this.state.isActive !== isActive) {\r\n this.setState({ isActive });\r\n }\r\n };\r\n\r\n // istanbul ignore next\r\n public override componentDidUpdate(prevProps: ContentWrapperProps, _prevState: ContentWrapperState) {\r\n if (this.props.content !== prevProps.content) {\r\n this.setState((_, props) => ({ content: props.content, isActive: props.content === ContentViewManager.getActiveContent() }));\r\n }\r\n }\r\n\r\n}\r\n\r\n/** Properties for the [[SplitContainer]] component */\r\ninterface SplitContainerProps extends CommonProps {\r\n contentA: React.ReactNode;\r\n contentB: React.ReactNode;\r\n orientation: Orientation;\r\n percentage: number;\r\n resizable: boolean;\r\n minSizeTopLeft: number;\r\n minSizeBottomRight: number;\r\n splitterStateId?: string;\r\n onSplitterChange?: (size: number, percentage: number) => void;\r\n}\r\n\r\n/** Split Container class.\r\n */\r\nclass SplitContainer extends React.Component<SplitContainerProps> {\r\n private _containerDiv: HTMLDivElement | null = null;\r\n\r\n constructor(props: SplitContainerProps) {\r\n super(props);\r\n }\r\n\r\n private _onSplitterChange = (size: number): void => {\r\n let percentage = 0;\r\n\r\n // istanbul ignore else\r\n if (this._containerDiv && size > 0) {\r\n if (this.props.orientation === Orientation.Horizontal) {\r\n const height = this._containerDiv.getBoundingClientRect().height;\r\n // istanbul ignore if\r\n if (height > 0)\r\n percentage = size / height;\r\n } else {\r\n const width = this._containerDiv.getBoundingClientRect().width;\r\n // istanbul ignore if\r\n if (width > 0)\r\n percentage = size / width;\r\n }\r\n\r\n // istanbul ignore else\r\n if (this.props.onSplitterChange)\r\n this.props.onSplitterChange(size, percentage);\r\n }\r\n };\r\n\r\n public override render(): React.ReactNode {\r\n const orientation = (this.props.orientation === Orientation.Horizontal) ? \"horizontal\" : \"vertical\";\r\n const defaultSize = `${(this.props.percentage * 100).toString()}%`;\r\n const minSizeTopLeft = this.props.minSizeTopLeft;\r\n const minSizeBottomRight = -(this.props.minSizeBottomRight);\r\n\r\n return (\r\n <div ref={(e) => { this._containerDiv = e; }}\r\n className={classnames(\"uifw-contentlayout-full-size\", this.props.className)}\r\n style={this.props.style}\r\n >\r\n <SplitPane split={orientation}\r\n minSize={minSizeTopLeft} maxSize={minSizeBottomRight} defaultSize={defaultSize}\r\n onChange={this._onSplitterChange} allowResize={this.props.resizable}\r\n >\r\n {this.props.contentA}\r\n {this.props.contentB}\r\n </SplitPane>\r\n </div >\r\n );\r\n }\r\n}\r\n\r\n/** Properties for [[SingleContentContainer]] component\r\n */\r\ninterface SingleContentProps extends CommonProps {\r\n content: React.ReactNode;\r\n}\r\n\r\n/** Single Content Container class.\r\n */\r\nclass SingleContentContainer extends React.Component<SingleContentProps> {\r\n\r\n public override render(): React.ReactNode {\r\n\r\n return (\r\n <div className={classnames(\"uifw-contentlayout-full-size\", this.props.className)} style={this.props.style} data-testid=\"single-content-container\"\r\n onMouseMove={UiShowHideManager.handleContentMouseMove}\r\n >\r\n {this.props.content}\r\n </div>\r\n );\r\n }\r\n}\r\n\r\n/** Common interface for HorizontalSplit and VerticalSplit\r\n */\r\ninterface LayoutSplit {\r\n createContentContainer(contentNodes: React.ReactNode[], resizable: boolean): React.ReactNode;\r\n isLocked: boolean;\r\n}\r\n\r\n/** Minimum split size */\r\nconst MIN_SPLIT_SIZE = 6;\r\n\r\n/** Base Split class.\r\n */\r\nclass BaseSplit {\r\n public defaultPercentage: number;\r\n public stateId: string = \"\";\r\n public isLocked: boolean = false;\r\n\r\n constructor(props: LayoutSplitPropsBase) {\r\n this.defaultPercentage = props.percentage;\r\n\r\n // istanbul ignore else\r\n if (props.id)\r\n this.stateId = props.id;\r\n\r\n // istanbul ignore else\r\n if (props.lock)\r\n this.isLocked = props.lock;\r\n }\r\n}\r\n\r\n/** Horizontal Split class.\r\n */\r\nclass HorizontalSplit extends BaseSplit implements LayoutSplit {\r\n private _topIndex: number = -1;\r\n private _bottomIndex: number = -1;\r\n private _topSplit?: LayoutSplit;\r\n private _bottomSplit?: LayoutSplit;\r\n private _props: LayoutHorizontalSplitProps;\r\n private _minSizeTop: number = MIN_SPLIT_SIZE;\r\n private _minSizeBottom: number = MIN_SPLIT_SIZE;\r\n\r\n constructor(props: LayoutHorizontalSplitProps) {\r\n super(props);\r\n\r\n this._props = props;\r\n\r\n if (typeof props.top === \"number\") {\r\n this._topIndex = props.top;\r\n } else {\r\n this._topSplit = ContentLayoutDef.createSplit(props.top);\r\n }\r\n\r\n if (typeof props.bottom === \"number\") {\r\n this._bottomIndex = props.bottom;\r\n } else {\r\n this._bottomSplit = ContentLayoutDef.createSplit(props.bottom);\r\n }\r\n\r\n if (props.minSizeTop)\r\n this._minSizeTop = Math.max(props.minSizeTop, MIN_SPLIT_SIZE);\r\n\r\n if (props.minSizeBottom)\r\n this._minSizeBottom = Math.max(props.minSizeBottom, MIN_SPLIT_SIZE);\r\n }\r\n\r\n private _handleSplitterChange = (_size: number, percentage: number): void => {\r\n this._props.percentage = percentage;\r\n };\r\n\r\n public createContentContainer(contentNodes: React.ReactNode[], resizable: boolean): React.ReactNode {\r\n if (this.isLocked)\r\n resizable = false;\r\n\r\n const topContent = (!this._topSplit) ?\r\n <ContentWrapper content={contentNodes[this._topIndex]} /> :\r\n this._topSplit.createContentContainer(contentNodes, resizable);\r\n const bottomContent = (!this._bottomSplit) ?\r\n <ContentWrapper content={contentNodes[this._bottomIndex]} /> :\r\n this._bottomSplit.createContentContainer(contentNodes, resizable);\r\n\r\n return (\r\n <SplitContainer\r\n contentA={topContent}\r\n contentB={bottomContent}\r\n orientation={Orientation.Horizontal}\r\n percentage={this.defaultPercentage}\r\n resizable={resizable}\r\n minSizeTopLeft={this._minSizeTop}\r\n minSizeBottomRight={this._minSizeBottom}\r\n splitterStateId={this.stateId}\r\n onSplitterChange={this._handleSplitterChange}\r\n />\r\n );\r\n }\r\n}\r\n\r\n/** Vertical Split class.\r\n */\r\nclass VerticalSplit extends BaseSplit implements LayoutSplit {\r\n private _leftIndex: number = -1;\r\n private _rightIndex: number = -1;\r\n private _leftSplit?: LayoutSplit;\r\n private _rightSplit?: LayoutSplit;\r\n private _props: LayoutVerticalSplitProps;\r\n private _minSizeLeft: number = MIN_SPLIT_SIZE;\r\n private _minSizeRight: number = MIN_SPLIT_SIZE;\r\n\r\n constructor(props: LayoutVerticalSplitProps) {\r\n super(props);\r\n\r\n this._props = props;\r\n\r\n if (typeof props.left === \"number\") {\r\n this._leftIndex = props.left;\r\n } else {\r\n this._leftSplit = ContentLayoutDef.createSplit(props.left);\r\n }\r\n\r\n if (typeof props.right === \"number\") {\r\n this._rightIndex = props.right;\r\n } else {\r\n this._rightSplit = ContentLayoutDef.createSplit(props.right);\r\n }\r\n\r\n if (props.minSizeLeft)\r\n this._minSizeLeft = Math.max(props.minSizeLeft, MIN_SPLIT_SIZE);\r\n\r\n if (props.minSizeRight)\r\n this._minSizeRight = Math.max(props.minSizeRight, MIN_SPLIT_SIZE);\r\n }\r\n\r\n private _handleSplitterChange = (_size: number, percentage: number): void => {\r\n this._props.percentage = percentage;\r\n };\r\n\r\n public createContentContainer(contentNodes: React.ReactNode[], resizable: boolean): React.ReactNode {\r\n if (this.isLocked)\r\n resizable = false;\r\n\r\n const leftContent = (!this._leftSplit) ?\r\n <ContentWrapper content={contentNodes[this._leftIndex]} /> :\r\n this._leftSplit.createContentContainer(contentNodes, resizable);\r\n const rightContent = (!this._rightSplit) ?\r\n <ContentWrapper content={contentNodes[this._rightIndex]} /> :\r\n this._rightSplit.createContentContainer(contentNodes, resizable);\r\n\r\n return (\r\n <SplitContainer\r\n contentA={leftContent}\r\n contentB={rightContent}\r\n orientation={Orientation.Vertical}\r\n percentage={this.defaultPercentage}\r\n resizable={resizable}\r\n minSizeTopLeft={this._minSizeLeft}\r\n minSizeBottomRight={this._minSizeRight}\r\n splitterStateId={this.stateId}\r\n onSplitterChange={this._handleSplitterChange}\r\n />\r\n );\r\n }\r\n}\r\n\r\n/** Content Layout Definition class.\r\n * @public\r\n */\r\nexport class ContentLayoutDef {\r\n private _layoutProps: ContentLayoutProps;\r\n private _rootSplit?: LayoutSplit;\r\n\r\n /** ID for this Content Layout */\r\n public id: string = \"\";\r\n /** Description of the layout. */\r\n public description: string = \"\";\r\n constructor(layoutProps: ContentLayoutProps) {\r\n this._layoutProps = layoutProps;\r\n this.id = layoutProps.id;\r\n if (layoutProps.description !== undefined)\r\n this.description = layoutProps.description;\r\n }\r\n\r\n public get rootSplit(): LayoutSplit | undefined { return this._rootSplit; }\r\n\r\n /** Creates [[ContentLayoutProps]] for JSON purposes\r\n * @public\r\n */\r\n public toJSON(): ContentLayoutProps { return this._layoutProps; }\r\n\r\n /** Fill a layout container with React nodes for each content view\r\n */\r\n public fillLayoutContainer(contentNodes: React.ReactNode[], resizable: boolean): React.ReactNode | undefined {\r\n this._rootSplit = ContentLayoutDef.createSplit(this._layoutProps);\r\n\r\n if (this.rootSplit) {\r\n return this.rootSplit.createContentContainer(contentNodes, resizable);\r\n }\r\n\r\n if (contentNodes.length > 0)\r\n return <SingleContentContainer content={contentNodes[0]} />;\r\n\r\n return undefined;\r\n }\r\n\r\n /** Gets the indexes of content views used in this Content Layout\r\n */\r\n public getUsedContentIndexes(): number[] {\r\n let allContentIndexes: number[] = [];\r\n\r\n if (!this._layoutProps.horizontalSplit && !this._layoutProps.verticalSplit)\r\n allContentIndexes.push(0);\r\n else {\r\n allContentIndexes = allContentIndexes.concat(this.getHorizontalSplitContentIndexes(this._layoutProps.horizontalSplit));\r\n allContentIndexes = allContentIndexes.concat(this.getVerticalSplitContentIndexes(this._layoutProps.verticalSplit));\r\n }\r\n\r\n const uniqueContentIndexes = [...new Set(allContentIndexes)];\r\n\r\n return uniqueContentIndexes;\r\n }\r\n\r\n private getHorizontalSplitContentIndexes(splitProps?: LayoutHorizontalSplitProps): number[] {\r\n let contentIndexes: number[] = [];\r\n\r\n if (!splitProps)\r\n return contentIndexes;\r\n\r\n if (typeof splitProps.top === \"number\")\r\n contentIndexes.push(splitProps.top);\r\n else {\r\n contentIndexes = contentIndexes.concat(this.getHorizontalSplitContentIndexes(splitProps.top.horizontalSplit));\r\n contentIndexes = contentIndexes.concat(this.getVerticalSplitContentIndexes(splitProps.top.verticalSplit));\r\n }\r\n\r\n if (typeof splitProps.bottom === \"number\")\r\n contentIndexes.push(splitProps.bottom);\r\n else {\r\n contentIndexes = contentIndexes.concat(this.getHorizontalSplitContentIndexes(splitProps.bottom.horizontalSplit));\r\n contentIndexes = contentIndexes.concat(this.getVerticalSplitContentIndexes(splitProps.bottom.verticalSplit));\r\n }\r\n\r\n return contentIndexes;\r\n }\r\n\r\n private getVerticalSplitContentIndexes(splitProps?: LayoutVerticalSplitProps): number[] {\r\n let contentIndexes: number[] = [];\r\n\r\n if (!splitProps)\r\n return contentIndexes;\r\n\r\n if (typeof splitProps.left === \"number\")\r\n contentIndexes.push(splitProps.left);\r\n else {\r\n contentIndexes = contentIndexes.concat(this.getHorizontalSplitContentIndexes(splitProps.left.horizontalSplit));\r\n contentIndexes = contentIndexes.concat(this.getVerticalSplitContentIndexes(splitProps.left.verticalSplit));\r\n }\r\n\r\n if (typeof splitProps.right === \"number\")\r\n contentIndexes.push(splitProps.right);\r\n else {\r\n contentIndexes = contentIndexes.concat(this.getHorizontalSplitContentIndexes(splitProps.right.horizontalSplit));\r\n contentIndexes = contentIndexes.concat(this.getVerticalSplitContentIndexes(splitProps.right.verticalSplit));\r\n }\r\n\r\n return contentIndexes;\r\n }\r\n\r\n /** @internal */\r\n public static createSplit(fragmentDef: LayoutFragmentProps): LayoutSplit | undefined {\r\n if (fragmentDef.horizontalSplit) {\r\n return new HorizontalSplit(fragmentDef.horizontalSplit);\r\n } else if (fragmentDef.verticalSplit) {\r\n return new VerticalSplit(fragmentDef.verticalSplit);\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n}\r\n\r\n/** Content Layout Activated Event Args class.\r\n * @public\r\n */\r\nexport interface ContentLayoutActivatedEventArgs {\r\n contentLayout: ContentLayoutDef;\r\n contentGroup: ContentGroup;\r\n}\r\n\r\n/** Content Layout Activated Event class.\r\n * @public\r\n */\r\nexport class ContentLayoutActivatedEvent extends UiEvent<ContentLayoutActivatedEventArgs> { }\r\n\r\n/** State for the [[ContentLayout]].\r\n */\r\ninterface ContentLayoutState {\r\n contentLayoutDef: ContentLayoutDef;\r\n contentContainer?: React.ReactNode;\r\n contentGroupId?: string;\r\n}\r\n\r\n/** Properties for the [[ContentLayout]] React component.\r\n * @public\r\n */\r\nexport interface ContentLayoutComponentProps extends CommonProps {\r\n contentLayout: ContentLayoutDef;\r\n contentGroup: ContentGroup;\r\n isInFooterMode: boolean;\r\n}\r\n\r\n/** Content Layout React component.\r\n * @public\r\n */\r\nexport class ContentLayout extends React.Component<ContentLayoutComponentProps, ContentLayoutState> {\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<ContentLayoutState>;\r\n\r\n constructor(props: ContentLayoutComponentProps) {\r\n super(props);\r\n\r\n const contentLayoutDef = this.props.contentLayout;\r\n const contentGroup = this.props.contentGroup;\r\n\r\n const contentNodes = contentGroup.getContentNodes();\r\n const contentContainer = contentLayoutDef.fillLayoutContainer(contentNodes, true);\r\n\r\n this.state = {\r\n contentLayoutDef: this.props.contentLayout,\r\n contentContainer,\r\n contentGroupId: this.props.contentGroup.groupId,\r\n };\r\n }\r\n\r\n public override componentDidMount() {\r\n FrontstageManager.onContentLayoutActivatedEvent.addListener(this._handleContentLayoutActivated);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n FrontstageManager.onContentLayoutActivatedEvent.removeListener(this._handleContentLayoutActivated);\r\n }\r\n\r\n private _handleContentLayoutActivated = (args: ContentLayoutActivatedEventArgs) => {\r\n const contentLayoutDef = args.contentLayout;\r\n const contentGroup = args.contentGroup;\r\n\r\n const contentNodes = contentGroup.getContentNodes();\r\n const contentContainer = contentLayoutDef.fillLayoutContainer(contentNodes, true);\r\n\r\n this.setState({\r\n contentLayoutDef: args.contentLayout,\r\n contentContainer,\r\n contentGroupId: contentGroup.groupId,\r\n });\r\n };\r\n\r\n public override render(): React.ReactNode {\r\n if (this.state.contentContainer) {\r\n return (\r\n <div id=\"uifw-contentlayout-div\" className={this.props.className} style={this.props.style}\r\n key={`${this.state.contentGroupId}-${this.state.contentLayoutDef.id}`}\r\n onMouseDown={this._onMouseDown} onMouseUp={this._onMouseUp} role=\"presentation\"\r\n >\r\n {this.state.contentContainer}\r\n </div>\r\n );\r\n }\r\n\r\n return null;\r\n }\r\n\r\n private _onMouseDown = (_event: React.MouseEvent<HTMLDivElement>) => {\r\n ContentViewManager.setMouseDown(true);\r\n };\r\n\r\n private _onMouseUp = (_event: React.MouseEvent<HTMLDivElement>) => {\r\n ContentViewManager.setMouseDown(false);\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"ContentLayout.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentLayout.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,8BAA8B;AAE9B,gCAA8B;AAC9B,2CAAoC;AACpC,+BAA+B;AAC/B,sDAAmD;AACnD,kDAA6D;AAC7D,uEAAoE;AACpE,kEAA+D;AAE/D,0DAAqK;AACrK,6DAAyF;AAazF;GACG;AACH,MAAM,cAAe,SAAQ,KAAK,CAAC,SAAmD;IAKpF,YAAY,KAA0B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QAwBP,qBAAgB,GAAG,CAAC,MAAwC,EAAE,EAAE;YACtE,0BAA0B;YAE1B,uCAAkB,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC,CAAC;QAUM,gCAA2B,GAAG,CAAC,IAAmC,EAAE,EAAE;YAC5E,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,KAAK,IAAI,CAAC,aAAa,CAAC;YAC3D,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,KAAK,QAAQ,EAAE;gBACpC,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;aAC7B;QACH,CAAC,CAAC;QAzCA,IAAI,CAAC,KAAK,GAAG;YACX,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO;YAC3B,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,KAAK,uCAAkB,CAAC,gBAAgB,EAAE;SACvE,CAAC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,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;QAClD,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;QAE7C,MAAM,YAAY,GAAG,YAAY,CAAC,eAAe,EAAE,CAAC;QACpD,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QAElF,IAAI,CAAC,KAAK,GAAG;YACX,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa;YAC1C,gBAAgB;YAChB,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO;SAChD,CAAC;IACJ,CAAC;IAEe,iBAAiB;QAC/B,qCAAiB,CAAC,6BAA6B,CAAC,WAAW,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAClG,CAAC;IAEe,oBAAoB;QAClC,qCAAiB,CAAC,6BAA6B,CAAC,cAAc,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IACrG,CAAC;IAgBe,MAAM;QACpB,IAAI,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE;YAC/B,OAAO,CACL,6BAAK,EAAE,EAAC,wBAAwB,EAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvF,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,IAAI,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,EAAE,EACrE,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,EAAC,cAAc,IAE9E,IAAI,CAAC,KAAK,CAAC,gBAAgB,CACxB,CACP,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CASF;AAjED,sCAiEC","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 ContentView\r\n */\r\n\r\n// cSpell:ignore contentlayout\r\n\r\nimport \"./ContentLayout.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { SplitPane } from \"./split-pane/SplitPane\";\r\nimport { CommonProps, Orientation } from \"@itwin/core-react\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { UiShowHideManager } from \"../utils/UiShowHideManager\";\r\nimport { ContentGroup } from \"./ContentGroup\";\r\nimport { ContentLayoutProps, LayoutFragmentProps, LayoutHorizontalSplitProps, LayoutSplitPropsBase, LayoutVerticalSplitProps, UiEvent } from \"@itwin/appui-abstract\";\r\nimport { ActiveContentChangedEventArgs, ContentViewManager } from \"./ContentViewManager\";\r\n\r\n/** Properties for [[ContentWrapper]] */\r\ninterface ContentWrapperProps extends CommonProps {\r\n content: React.ReactNode;\r\n}\r\n\r\n/** State for [[ContentWrapper]] */\r\ninterface ContentWrapperState {\r\n content: React.ReactNode;\r\n isActive: boolean;\r\n}\r\n\r\n/** ContentWrapper React component.\r\n */\r\nclass ContentWrapper extends React.Component<ContentWrapperProps, ContentWrapperState> {\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<ContentWrapperState>;\r\n\r\n constructor(props: ContentWrapperProps) {\r\n super(props);\r\n\r\n this.state = {\r\n content: this.props.content,\r\n isActive: this.props.content === ContentViewManager.getActiveContent(),\r\n };\r\n }\r\n\r\n public override render(): React.ReactNode {\r\n const overlayClassName = classnames(\r\n \"uifw-contentlayout-overlay-div\",\r\n this.state.isActive ? \"uifw-contentlayout-overlay-active\" : \"uifw-contentlayout-overlay-inactive\",\r\n );\r\n\r\n return (\r\n <div className={classnames(\"uifw-contentlayout-wrapper\", this.props.className)} style={this.props.style}\r\n onMouseDown={this._handleMouseDown} onMouseMove={UiShowHideManager.handleContentMouseMove} role=\"presentation\"\r\n >\r\n {this.state.content}\r\n <div className={overlayClassName} />\r\n </div>\r\n );\r\n }\r\n\r\n private _handleMouseDown = (_event: React.MouseEvent<HTMLDivElement>) => {\r\n // event.preventDefault();\r\n\r\n ContentViewManager.setActiveContent(this.state.content);\r\n };\r\n\r\n public override componentDidMount() {\r\n ContentViewManager.onActiveContentChangedEvent.addListener(this._handleActiveContentChanged);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n ContentViewManager.onActiveContentChangedEvent.removeListener(this._handleActiveContentChanged);\r\n }\r\n\r\n private _handleActiveContentChanged = (args: ActiveContentChangedEventArgs) => {\r\n const isActive = this.state.content === args.activeContent;\r\n if (this.state.isActive !== isActive) {\r\n this.setState({ isActive });\r\n }\r\n };\r\n\r\n // istanbul ignore next\r\n public override componentDidUpdate(prevProps: ContentWrapperProps, _prevState: ContentWrapperState) {\r\n if (this.props.content !== prevProps.content) {\r\n this.setState((_, props) => ({ content: props.content, isActive: props.content === ContentViewManager.getActiveContent() }));\r\n }\r\n }\r\n}\r\n\r\n/** Properties for the [[SplitContainer]] component */\r\ninterface SplitContainerProps extends CommonProps {\r\n contentA: React.ReactNode;\r\n contentB: React.ReactNode;\r\n orientation: Orientation;\r\n percentage: number;\r\n resizable: boolean;\r\n minSizeTopLeft: number;\r\n minSizeBottomRight: number;\r\n splitterStateId?: string;\r\n onSplitterChange?: (size: number, percentage: number) => void;\r\n}\r\n\r\n/** Split Container class.\r\n */\r\nclass SplitContainer extends React.Component<SplitContainerProps> {\r\n private _containerDiv: HTMLDivElement | null = null;\r\n\r\n constructor(props: SplitContainerProps) {\r\n super(props);\r\n }\r\n\r\n private _onSplitterChange = (size: number): void => {\r\n let percentage = 0;\r\n\r\n // istanbul ignore else\r\n if (this._containerDiv && size > 0) {\r\n if (this.props.orientation === Orientation.Horizontal) {\r\n const height = this._containerDiv.getBoundingClientRect().height;\r\n // istanbul ignore if\r\n if (height > 0)\r\n percentage = size / height;\r\n } else {\r\n const width = this._containerDiv.getBoundingClientRect().width;\r\n // istanbul ignore if\r\n if (width > 0)\r\n percentage = size / width;\r\n }\r\n\r\n // istanbul ignore else\r\n if (this.props.onSplitterChange)\r\n this.props.onSplitterChange(size, percentage);\r\n }\r\n };\r\n\r\n public override render(): React.ReactNode {\r\n const orientation = (this.props.orientation === Orientation.Horizontal) ? \"horizontal\" : \"vertical\";\r\n const defaultSize = `${(this.props.percentage * 100).toString()}%`;\r\n const minSizeTopLeft = this.props.minSizeTopLeft;\r\n const minSizeBottomRight = -(this.props.minSizeBottomRight);\r\n\r\n return (\r\n <div ref={(e) => { this._containerDiv = e; }}\r\n className={classnames(\"uifw-contentlayout-full-size\", this.props.className)}\r\n style={this.props.style}\r\n >\r\n <SplitPane split={orientation}\r\n minSize={minSizeTopLeft} maxSize={minSizeBottomRight} defaultSize={defaultSize}\r\n onChange={this._onSplitterChange} allowResize={this.props.resizable}\r\n >\r\n {this.props.contentA}\r\n {this.props.contentB}\r\n </SplitPane>\r\n </div >\r\n );\r\n }\r\n}\r\n\r\n/** Properties for [[SingleContentContainer]] component\r\n */\r\ninterface SingleContentProps extends CommonProps {\r\n content: React.ReactNode;\r\n}\r\n\r\n/** Single Content Container class.\r\n */\r\nclass SingleContentContainer extends React.Component<SingleContentProps> {\r\n\r\n public override render(): React.ReactNode {\r\n\r\n return (\r\n <div className={classnames(\"uifw-contentlayout-full-size\", this.props.className)} style={this.props.style} data-testid=\"single-content-container\"\r\n onMouseMove={UiShowHideManager.handleContentMouseMove}\r\n >\r\n {this.props.content}\r\n </div>\r\n );\r\n }\r\n}\r\n\r\n/** Common interface for HorizontalSplit and VerticalSplit\r\n */\r\ninterface LayoutSplit {\r\n createContentContainer(contentNodes: React.ReactNode[], resizable: boolean): React.ReactNode;\r\n isLocked: boolean;\r\n}\r\n\r\n/** Minimum split size */\r\nconst MIN_SPLIT_SIZE = 6;\r\n\r\n/** Base Split class.\r\n */\r\nclass BaseSplit {\r\n public defaultPercentage: number;\r\n public stateId: string = \"\";\r\n public isLocked: boolean = false;\r\n\r\n constructor(props: LayoutSplitPropsBase) {\r\n this.defaultPercentage = props.percentage;\r\n\r\n // istanbul ignore else\r\n if (props.id)\r\n this.stateId = props.id;\r\n\r\n // istanbul ignore else\r\n if (props.lock)\r\n this.isLocked = props.lock;\r\n }\r\n}\r\n\r\n/** Horizontal Split class.\r\n */\r\nclass HorizontalSplit extends BaseSplit implements LayoutSplit {\r\n private _topIndex: number = -1;\r\n private _bottomIndex: number = -1;\r\n private _topSplit?: LayoutSplit;\r\n private _bottomSplit?: LayoutSplit;\r\n private _props: LayoutHorizontalSplitProps;\r\n private _minSizeTop: number = MIN_SPLIT_SIZE;\r\n private _minSizeBottom: number = MIN_SPLIT_SIZE;\r\n\r\n constructor(props: LayoutHorizontalSplitProps) {\r\n super(props);\r\n\r\n this._props = props;\r\n\r\n if (typeof props.top === \"number\") {\r\n this._topIndex = props.top;\r\n } else {\r\n this._topSplit = ContentLayoutDef.createSplit(props.top);\r\n }\r\n\r\n if (typeof props.bottom === \"number\") {\r\n this._bottomIndex = props.bottom;\r\n } else {\r\n this._bottomSplit = ContentLayoutDef.createSplit(props.bottom);\r\n }\r\n\r\n if (props.minSizeTop)\r\n this._minSizeTop = Math.max(props.minSizeTop, MIN_SPLIT_SIZE);\r\n\r\n if (props.minSizeBottom)\r\n this._minSizeBottom = Math.max(props.minSizeBottom, MIN_SPLIT_SIZE);\r\n }\r\n\r\n private _handleSplitterChange = (_size: number, percentage: number): void => {\r\n this._props.percentage = percentage;\r\n };\r\n\r\n public createContentContainer(contentNodes: React.ReactNode[], resizable: boolean): React.ReactNode {\r\n if (this.isLocked)\r\n resizable = false;\r\n\r\n const topContent = (!this._topSplit) ?\r\n <ContentWrapper content={contentNodes[this._topIndex]} /> :\r\n this._topSplit.createContentContainer(contentNodes, resizable);\r\n const bottomContent = (!this._bottomSplit) ?\r\n <ContentWrapper content={contentNodes[this._bottomIndex]} /> :\r\n this._bottomSplit.createContentContainer(contentNodes, resizable);\r\n\r\n return (\r\n <SplitContainer\r\n contentA={topContent}\r\n contentB={bottomContent}\r\n orientation={Orientation.Horizontal}\r\n percentage={this.defaultPercentage}\r\n resizable={resizable}\r\n minSizeTopLeft={this._minSizeTop}\r\n minSizeBottomRight={this._minSizeBottom}\r\n splitterStateId={this.stateId}\r\n onSplitterChange={this._handleSplitterChange}\r\n />\r\n );\r\n }\r\n}\r\n\r\n/** Vertical Split class.\r\n */\r\nclass VerticalSplit extends BaseSplit implements LayoutSplit {\r\n private _leftIndex: number = -1;\r\n private _rightIndex: number = -1;\r\n private _leftSplit?: LayoutSplit;\r\n private _rightSplit?: LayoutSplit;\r\n private _props: LayoutVerticalSplitProps;\r\n private _minSizeLeft: number = MIN_SPLIT_SIZE;\r\n private _minSizeRight: number = MIN_SPLIT_SIZE;\r\n\r\n constructor(props: LayoutVerticalSplitProps) {\r\n super(props);\r\n\r\n this._props = props;\r\n\r\n if (typeof props.left === \"number\") {\r\n this._leftIndex = props.left;\r\n } else {\r\n this._leftSplit = ContentLayoutDef.createSplit(props.left);\r\n }\r\n\r\n if (typeof props.right === \"number\") {\r\n this._rightIndex = props.right;\r\n } else {\r\n this._rightSplit = ContentLayoutDef.createSplit(props.right);\r\n }\r\n\r\n if (props.minSizeLeft)\r\n this._minSizeLeft = Math.max(props.minSizeLeft, MIN_SPLIT_SIZE);\r\n\r\n if (props.minSizeRight)\r\n this._minSizeRight = Math.max(props.minSizeRight, MIN_SPLIT_SIZE);\r\n }\r\n\r\n private _handleSplitterChange = (_size: number, percentage: number): void => {\r\n this._props.percentage = percentage;\r\n };\r\n\r\n public createContentContainer(contentNodes: React.ReactNode[], resizable: boolean): React.ReactNode {\r\n if (this.isLocked)\r\n resizable = false;\r\n\r\n const leftContent = (!this._leftSplit) ?\r\n <ContentWrapper content={contentNodes[this._leftIndex]} /> :\r\n this._leftSplit.createContentContainer(contentNodes, resizable);\r\n const rightContent = (!this._rightSplit) ?\r\n <ContentWrapper content={contentNodes[this._rightIndex]} /> :\r\n this._rightSplit.createContentContainer(contentNodes, resizable);\r\n\r\n return (\r\n <SplitContainer\r\n contentA={leftContent}\r\n contentB={rightContent}\r\n orientation={Orientation.Vertical}\r\n percentage={this.defaultPercentage}\r\n resizable={resizable}\r\n minSizeTopLeft={this._minSizeLeft}\r\n minSizeBottomRight={this._minSizeRight}\r\n splitterStateId={this.stateId}\r\n onSplitterChange={this._handleSplitterChange}\r\n />\r\n );\r\n }\r\n}\r\n\r\n/** Content Layout Definition class.\r\n * @public\r\n */\r\nexport class ContentLayoutDef {\r\n private _layoutProps: ContentLayoutProps;\r\n private _rootSplit?: LayoutSplit;\r\n\r\n /** ID for this Content Layout */\r\n public id: string = \"\";\r\n /** Description of the layout. */\r\n public description: string = \"\";\r\n constructor(layoutProps: ContentLayoutProps) {\r\n this._layoutProps = layoutProps;\r\n this.id = layoutProps.id;\r\n if (layoutProps.description !== undefined)\r\n this.description = layoutProps.description;\r\n }\r\n\r\n public get rootSplit(): LayoutSplit | undefined { return this._rootSplit; }\r\n\r\n /** Creates [[ContentLayoutProps]] for JSON purposes\r\n * @public\r\n */\r\n public toJSON(): ContentLayoutProps { return this._layoutProps; }\r\n\r\n /** Fill a layout container with React nodes for each content view\r\n */\r\n public fillLayoutContainer(contentNodes: React.ReactNode[], resizable: boolean): React.ReactNode | undefined {\r\n this._rootSplit = ContentLayoutDef.createSplit(this._layoutProps);\r\n\r\n if (this.rootSplit) {\r\n return this.rootSplit.createContentContainer(contentNodes, resizable);\r\n }\r\n\r\n if (contentNodes.length > 0)\r\n return <SingleContentContainer content={contentNodes[0]} />;\r\n\r\n return undefined;\r\n }\r\n\r\n /** Gets the indexes of content views used in this Content Layout\r\n */\r\n public getUsedContentIndexes(): number[] {\r\n let allContentIndexes: number[] = [];\r\n\r\n if (!this._layoutProps.horizontalSplit && !this._layoutProps.verticalSplit)\r\n allContentIndexes.push(0);\r\n else {\r\n allContentIndexes = allContentIndexes.concat(this.getHorizontalSplitContentIndexes(this._layoutProps.horizontalSplit));\r\n allContentIndexes = allContentIndexes.concat(this.getVerticalSplitContentIndexes(this._layoutProps.verticalSplit));\r\n }\r\n\r\n const uniqueContentIndexes = [...new Set(allContentIndexes)];\r\n\r\n return uniqueContentIndexes;\r\n }\r\n\r\n private getHorizontalSplitContentIndexes(splitProps?: LayoutHorizontalSplitProps): number[] {\r\n let contentIndexes: number[] = [];\r\n\r\n if (!splitProps)\r\n return contentIndexes;\r\n\r\n if (typeof splitProps.top === \"number\")\r\n contentIndexes.push(splitProps.top);\r\n else {\r\n contentIndexes = contentIndexes.concat(this.getHorizontalSplitContentIndexes(splitProps.top.horizontalSplit));\r\n contentIndexes = contentIndexes.concat(this.getVerticalSplitContentIndexes(splitProps.top.verticalSplit));\r\n }\r\n\r\n if (typeof splitProps.bottom === \"number\")\r\n contentIndexes.push(splitProps.bottom);\r\n else {\r\n contentIndexes = contentIndexes.concat(this.getHorizontalSplitContentIndexes(splitProps.bottom.horizontalSplit));\r\n contentIndexes = contentIndexes.concat(this.getVerticalSplitContentIndexes(splitProps.bottom.verticalSplit));\r\n }\r\n\r\n return contentIndexes;\r\n }\r\n\r\n private getVerticalSplitContentIndexes(splitProps?: LayoutVerticalSplitProps): number[] {\r\n let contentIndexes: number[] = [];\r\n\r\n if (!splitProps)\r\n return contentIndexes;\r\n\r\n if (typeof splitProps.left === \"number\")\r\n contentIndexes.push(splitProps.left);\r\n else {\r\n contentIndexes = contentIndexes.concat(this.getHorizontalSplitContentIndexes(splitProps.left.horizontalSplit));\r\n contentIndexes = contentIndexes.concat(this.getVerticalSplitContentIndexes(splitProps.left.verticalSplit));\r\n }\r\n\r\n if (typeof splitProps.right === \"number\")\r\n contentIndexes.push(splitProps.right);\r\n else {\r\n contentIndexes = contentIndexes.concat(this.getHorizontalSplitContentIndexes(splitProps.right.horizontalSplit));\r\n contentIndexes = contentIndexes.concat(this.getVerticalSplitContentIndexes(splitProps.right.verticalSplit));\r\n }\r\n\r\n return contentIndexes;\r\n }\r\n\r\n /** @internal */\r\n public static createSplit(fragmentDef: LayoutFragmentProps): LayoutSplit | undefined {\r\n if (fragmentDef.horizontalSplit) {\r\n return new HorizontalSplit(fragmentDef.horizontalSplit);\r\n } else if (fragmentDef.verticalSplit) {\r\n return new VerticalSplit(fragmentDef.verticalSplit);\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n}\r\n\r\n/** Content Layout Activated Event Args class.\r\n * @public\r\n */\r\nexport interface ContentLayoutActivatedEventArgs {\r\n contentLayout: ContentLayoutDef;\r\n contentGroup: ContentGroup;\r\n}\r\n\r\n/** Content Layout Activated Event class.\r\n * @public\r\n */\r\nexport class ContentLayoutActivatedEvent extends UiEvent<ContentLayoutActivatedEventArgs> { }\r\n\r\n/** State for the [[ContentLayout]].\r\n */\r\ninterface ContentLayoutState {\r\n contentLayoutDef: ContentLayoutDef;\r\n contentContainer?: React.ReactNode;\r\n contentGroupId?: string;\r\n}\r\n\r\n/** Properties for the [[ContentLayout]] React component.\r\n * @public\r\n */\r\nexport interface ContentLayoutComponentProps extends CommonProps {\r\n contentLayout: ContentLayoutDef;\r\n contentGroup: ContentGroup;\r\n isInFooterMode: boolean;\r\n}\r\n\r\n/** Content Layout React component.\r\n * @public\r\n */\r\nexport class ContentLayout extends React.Component<ContentLayoutComponentProps, ContentLayoutState> {\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<ContentLayoutState>;\r\n\r\n constructor(props: ContentLayoutComponentProps) {\r\n super(props);\r\n\r\n const contentLayoutDef = this.props.contentLayout;\r\n const contentGroup = this.props.contentGroup;\r\n\r\n const contentNodes = contentGroup.getContentNodes();\r\n const contentContainer = contentLayoutDef.fillLayoutContainer(contentNodes, true);\r\n\r\n this.state = {\r\n contentLayoutDef: this.props.contentLayout,\r\n contentContainer,\r\n contentGroupId: this.props.contentGroup.groupId,\r\n };\r\n }\r\n\r\n public override componentDidMount() {\r\n FrontstageManager.onContentLayoutActivatedEvent.addListener(this._handleContentLayoutActivated);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n FrontstageManager.onContentLayoutActivatedEvent.removeListener(this._handleContentLayoutActivated);\r\n }\r\n\r\n private _handleContentLayoutActivated = (args: ContentLayoutActivatedEventArgs) => {\r\n const contentLayoutDef = args.contentLayout;\r\n const contentGroup = args.contentGroup;\r\n\r\n const contentNodes = contentGroup.getContentNodes();\r\n const contentContainer = contentLayoutDef.fillLayoutContainer(contentNodes, true);\r\n\r\n this.setState({\r\n contentLayoutDef: args.contentLayout,\r\n contentContainer,\r\n contentGroupId: contentGroup.groupId,\r\n });\r\n };\r\n\r\n public override render(): React.ReactNode {\r\n if (this.state.contentContainer) {\r\n return (\r\n <div id=\"uifw-contentlayout-div\" className={this.props.className} style={this.props.style}\r\n key={`${this.state.contentGroupId}-${this.state.contentLayoutDef.id}`}\r\n onMouseDown={this._onMouseDown} onMouseUp={this._onMouseUp} role=\"presentation\"\r\n >\r\n {this.state.contentContainer}\r\n </div>\r\n );\r\n }\r\n\r\n return null;\r\n }\r\n\r\n private _onMouseDown = (_event: React.MouseEvent<HTMLDivElement>) => {\r\n ContentViewManager.setMouseDown(true);\r\n };\r\n\r\n private _onMouseUp = (_event: React.MouseEvent<HTMLDivElement>) => {\r\n ContentViewManager.setMouseDown(false);\r\n };\r\n}\r\n"]}
@@ -2,7 +2,7 @@
2
2
  * @module ContentView
3
3
  */
4
4
  import * as React from "react";
5
- import { UiEvent } from "@itwin/core-react";
5
+ import { UiEvent } from "@itwin/appui-abstract";
6
6
  import { ContentControl } from "./ContentControl";
7
7
  /** [[MouseDownChangedEvent]] Args interface.
8
8
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"ContentViewManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentViewManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB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GAAG,IAAI;IAKpD,6CAA6C;IAC7C,gBAAuB,2BAA2B,4BAAmC;IAErF,oDAAoD;WACtC,gBAAgB,IAAI,KAAK,CAAC,SAAS,GAAG,SAAS;IAI7D,wCAAwC;WAC1B,uBAAuB,IAAI,cAAc,GAAG,SAAS;IAgBnE,yCAAyC;WAC3B,gBAAgB,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,oBAAoB,UAAQ,GAAG,IAAI;IAyCnG,8CAA8C;WAChC,oBAAoB,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS;IAKjE;;;OAGG;WACW,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAM9E;;;OAGG;WACW,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAMhF;;;OAGG;WACW,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAMhF;;;OAGG;WACW,yBAAyB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAMrF;;;OAGG;WACW,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAM3E;;;OAGG;WACW,qBAAqB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;CAMlF"}
@@ -8,7 +8,7 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.ContentViewManager = exports.ActiveContentChangedEvent = exports.MouseDownChangedEvent = void 0;
11
- const core_react_1 = require("@itwin/core-react");
11
+ const appui_abstract_1 = require("@itwin/appui-abstract");
12
12
  const FrontstageManager_1 = require("../frontstage/FrontstageManager");
13
13
  const ViewUtilities_1 = require("../utils/ViewUtilities");
14
14
  const ContentLayoutManager_1 = require("./ContentLayoutManager");
@@ -16,13 +16,13 @@ const core_frontend_1 = require("@itwin/core-frontend");
16
16
  /** Mouse Down Changed Event class.
17
17
  * @public
18
18
  */
19
- class MouseDownChangedEvent extends core_react_1.UiEvent {
19
+ class MouseDownChangedEvent extends appui_abstract_1.UiEvent {
20
20
  }
21
21
  exports.MouseDownChangedEvent = MouseDownChangedEvent;
22
22
  /** Active Content Changed Event class.
23
23
  * @public
24
24
  */
25
- class ActiveContentChangedEvent extends core_react_1.UiEvent {
25
+ class ActiveContentChangedEvent extends appui_abstract_1.UiEvent {
26
26
  }
27
27
  exports.ActiveContentChangedEvent = ActiveContentChangedEvent;
28
28
  /** Content View Manager class.