@itwin/appui-react 3.0.0-extension.0 → 3.1.0-dev.11

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 (975) 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 +37 -22
  5. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  6. package/lib/cjs/appui-react/UiFramework.js +53 -38
  7. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  8. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts +3 -3
  9. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  10. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js +3 -3
  11. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  12. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  14. package/lib/cjs/appui-react/accudraw/Calculator.js +1 -1
  15. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  16. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +4 -4
  17. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  18. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +5 -4
  19. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  20. package/lib/cjs/appui-react/backstage/Backstage.d.ts +0 -4
  21. package/lib/cjs/appui-react/backstage/Backstage.d.ts.map +1 -1
  22. package/lib/cjs/appui-react/backstage/Backstage.js +0 -1
  23. package/lib/cjs/appui-react/backstage/Backstage.js.map +1 -1
  24. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts +2 -0
  25. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  26. package/lib/cjs/appui-react/backstage/BackstageComposer.js +26 -8
  27. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  28. package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts +2 -2
  29. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +1 -1
  30. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  31. package/lib/cjs/appui-react/backstage/BackstageItemProps.d.ts +3 -3
  32. package/lib/cjs/appui-react/backstage/BackstageItemProps.js +1 -1
  33. package/lib/cjs/appui-react/backstage/BackstageItemProps.js.map +1 -1
  34. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts +5 -5
  35. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +3 -3
  36. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  37. package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts +2 -0
  38. package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts.map +1 -1
  39. package/lib/cjs/appui-react/backstage/CommandLaunch.js +1 -0
  40. package/lib/cjs/appui-react/backstage/CommandLaunch.js.map +1 -1
  41. package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts +4 -0
  42. package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -1
  43. package/lib/cjs/appui-react/backstage/FrontstageLaunch.js +5 -6
  44. package/lib/cjs/appui-react/backstage/FrontstageLaunch.js.map +1 -1
  45. package/lib/cjs/appui-react/backstage/Separator.d.ts +1 -0
  46. package/lib/cjs/appui-react/backstage/Separator.d.ts.map +1 -1
  47. package/lib/cjs/appui-react/backstage/Separator.js +3 -2
  48. package/lib/cjs/appui-react/backstage/Separator.js.map +1 -1
  49. package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts +1 -1
  50. package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  51. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js +4 -5
  52. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  53. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  54. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +2 -0
  55. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  56. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
  57. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js +6 -1
  58. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
  59. package/lib/cjs/appui-react/configurableui/state.d.ts +10 -3
  60. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  61. package/lib/cjs/appui-react/configurableui/state.js +15 -2
  62. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  63. package/lib/cjs/appui-react/content/ContentControl.d.ts +7 -1
  64. package/lib/cjs/appui-react/content/ContentControl.d.ts.map +1 -1
  65. package/lib/cjs/appui-react/content/ContentControl.js +13 -3
  66. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  67. package/lib/cjs/appui-react/content/ContentLayout.d.ts +10 -2
  68. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  69. package/lib/cjs/appui-react/content/ContentLayout.js +47 -39
  70. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  71. package/lib/cjs/appui-react/content/ContentLayout.scss +27 -27
  72. package/lib/cjs/appui-react/content/ContentViewManager.d.ts +8 -1
  73. package/lib/cjs/appui-react/content/ContentViewManager.d.ts.map +1 -1
  74. package/lib/cjs/appui-react/content/ContentViewManager.js +49 -25
  75. package/lib/cjs/appui-react/content/ContentViewManager.js.map +1 -1
  76. package/lib/cjs/appui-react/content/FloatingViewportContent.css +9 -0
  77. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts +25 -0
  78. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -0
  79. package/lib/cjs/appui-react/content/FloatingViewportContent.js +73 -0
  80. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -0
  81. package/lib/cjs/appui-react/content/IModelViewport.d.ts +13 -1
  82. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  83. package/lib/cjs/appui-react/content/IModelViewport.js +18 -5
  84. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  85. package/lib/cjs/appui-react/content/{SavedViewLayout.d.ts → StageContentLayout.d.ts} +11 -11
  86. package/lib/cjs/appui-react/content/StageContentLayout.d.ts.map +1 -0
  87. package/lib/cjs/appui-react/content/{SavedViewLayout.js → StageContentLayout.js} +19 -17
  88. package/lib/cjs/appui-react/content/StageContentLayout.js.map +1 -0
  89. package/lib/cjs/appui-react/content/{SavedView.d.ts → ViewStateHelper.d.ts} +7 -7
  90. package/lib/cjs/appui-react/content/ViewStateHelper.d.ts.map +1 -0
  91. package/lib/cjs/appui-react/content/{SavedView.js → ViewStateHelper.js} +4 -4
  92. package/lib/cjs/appui-react/content/ViewStateHelper.js.map +1 -0
  93. package/lib/cjs/appui-react/content/ViewportContentControl.d.ts +9 -0
  94. package/lib/cjs/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  95. package/lib/cjs/appui-react/content/ViewportContentControl.js +24 -1
  96. package/lib/cjs/appui-react/content/ViewportContentControl.js.map +1 -1
  97. package/lib/cjs/appui-react/content/split-pane/Pane.d.ts +21 -0
  98. package/lib/cjs/appui-react/content/split-pane/Pane.d.ts.map +1 -0
  99. package/lib/cjs/appui-react/content/split-pane/Pane.js +43 -0
  100. package/lib/cjs/appui-react/content/split-pane/Pane.js.map +1 -0
  101. package/lib/cjs/appui-react/content/split-pane/Resizer.d.ts +23 -0
  102. package/lib/cjs/appui-react/content/split-pane/Resizer.d.ts.map +1 -0
  103. package/lib/cjs/appui-react/content/split-pane/Resizer.js +39 -0
  104. package/lib/cjs/appui-react/content/split-pane/Resizer.js.map +1 -0
  105. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +70 -0
  106. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -0
  107. package/lib/cjs/appui-react/content/split-pane/SplitPane.js +243 -0
  108. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -0
  109. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +1 -2
  110. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  111. package/lib/cjs/appui-react/cursor/CursorInformation.js +1 -1
  112. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  113. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  114. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  115. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +2 -2
  116. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  117. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js +3 -3
  118. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  119. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +24 -0
  120. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -0
  121. package/lib/cjs/appui-react/dialog/ContentDialog.js +72 -0
  122. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -0
  123. package/lib/cjs/appui-react/dialog/ContentDialog.scss +25 -0
  124. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts +65 -0
  125. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -0
  126. package/lib/cjs/appui-react/dialog/ContentDialogManager.js +148 -0
  127. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -0
  128. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +1 -1
  129. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  130. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -2
  131. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  132. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  133. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +3 -0
  134. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  135. package/lib/cjs/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -1
  136. package/lib/cjs/appui-react/dragdrop/ZoneTargets.js +8 -4
  137. package/lib/cjs/appui-react/dragdrop/ZoneTargets.js.map +1 -1
  138. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +2 -2
  139. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  140. package/lib/cjs/appui-react/feedback/ElementTooltip.js +4 -2
  141. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  142. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +1 -0
  143. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  144. package/lib/cjs/appui-react/frontstage/Frontstage.js +32 -13
  145. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -1
  146. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  147. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  148. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js +15 -1
  149. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  150. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +19 -2
  151. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  152. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +168 -6
  153. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  154. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  155. package/lib/cjs/appui-react/frontstage/FrontstageManager.js +2 -1
  156. package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +1 -1
  157. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +6 -0
  158. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  159. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  160. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  161. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  162. package/lib/cjs/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  163. package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
  164. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts +12 -9
  165. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -1
  166. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js +19 -21
  167. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  168. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +1 -1
  169. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -1
  170. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js +6 -7
  171. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -1
  172. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +3 -3
  173. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  174. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +1 -1
  175. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  176. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts +0 -5
  177. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  178. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  179. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +1 -1
  180. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -1
  181. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +81 -68
  182. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -1
  183. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  184. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  185. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +2 -1
  186. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  187. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +1 -1
  188. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  189. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts +5 -5
  190. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -1
  191. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js +3 -2
  192. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -1
  193. package/lib/cjs/appui-react/messages/AppNotificationManager.d.ts +1 -1
  194. package/lib/cjs/appui-react/messages/AppNotificationManager.js +1 -1
  195. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  196. package/lib/cjs/appui-react/messages/MessageManager.d.ts +1 -2
  197. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  198. package/lib/cjs/appui-react/messages/MessageManager.js +15 -9
  199. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  200. package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
  201. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  202. package/lib/cjs/appui-react/messages/Pointer.js +4 -3
  203. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  204. package/lib/cjs/appui-react/messages/ToastMessage.js +2 -1
  205. package/lib/cjs/appui-react/messages/ToastMessage.js.map +1 -1
  206. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +1 -1
  207. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  208. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +2 -2
  209. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  210. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -1
  211. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  212. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +2 -1
  213. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  214. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +6 -4
  215. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  216. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +3 -0
  217. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  218. package/lib/cjs/appui-react/pickers/ListPicker.js +24 -9
  219. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  220. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +1 -1
  221. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/pickers/ViewSelector.js +9 -9
  223. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  224. package/lib/cjs/appui-react/popup/CardPopup.d.ts +7 -4
  225. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  226. package/lib/cjs/appui-react/popup/CardPopup.js +3 -2
  227. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  228. package/lib/cjs/appui-react/popup/CardPopup.scss +3 -1
  229. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts +3 -2
  230. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  231. package/lib/cjs/appui-react/popup/InputEditorPopup.js +1 -1
  232. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  233. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +6 -6
  234. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  235. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +3 -2
  236. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js +1 -1
  238. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  239. package/lib/cjs/appui-react/popup/PopupManager.d.ts +10 -10
  240. package/lib/cjs/appui-react/popup/PopupManager.d.ts.map +1 -1
  241. package/lib/cjs/appui-react/popup/PopupManager.js +4 -4
  242. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  243. package/lib/cjs/appui-react/popup/PositionPopup.d.ts +5 -3
  244. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  245. package/lib/cjs/appui-react/popup/PositionPopup.js +3 -2
  246. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  247. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts +3 -2
  248. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  249. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js +1 -1
  250. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  251. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts +4 -3
  252. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  253. package/lib/cjs/appui-react/popup/ToolbarPopup.js +2 -2
  254. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  255. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +1 -1
  256. package/lib/cjs/appui-react/redux/SessionState.d.ts +0 -6
  257. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  258. package/lib/cjs/appui-react/redux/SessionState.js +0 -8
  259. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  260. package/lib/cjs/appui-react/redux/StateManager.d.ts +1 -1
  261. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  262. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js +7 -7
  263. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  264. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  265. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js +1 -1
  266. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  267. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  268. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +28 -19
  269. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  270. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  271. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  272. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  273. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +2 -2
  274. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  275. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -1
  276. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  277. package/lib/cjs/appui-react/shared/ItemProps.d.ts +2 -2
  278. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  279. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +1 -1
  280. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  281. package/lib/cjs/appui-react/shared/ToolItemDef.js +2 -2
  282. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  283. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -1
  284. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js +1 -0
  285. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -1
  286. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts +2 -2
  287. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  288. package/lib/cjs/appui-react/stagepanels/StagePanel.js +1 -0
  289. package/lib/cjs/appui-react/stagepanels/StagePanel.js.map +1 -1
  290. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +26 -2
  291. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  292. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +24 -3
  293. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  294. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts +2 -2
  295. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -1
  296. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js +2 -1
  297. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js.map +1 -1
  298. package/lib/cjs/appui-react/statusbar/StatusBar.js +2 -1
  299. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  300. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  301. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +17 -5
  302. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  303. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  304. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js +1 -1
  305. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  306. package/lib/cjs/appui-react/statusfields/Indicator.d.ts +15 -14
  307. package/lib/cjs/appui-react/statusfields/Indicator.d.ts.map +1 -1
  308. package/lib/cjs/appui-react/statusfields/Indicator.js +23 -21
  309. package/lib/cjs/appui-react/statusfields/Indicator.js.map +1 -1
  310. package/lib/cjs/appui-react/statusfields/Indicator.scss +29 -18
  311. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  312. package/lib/cjs/appui-react/statusfields/MessageCenter.js +2 -1
  313. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  314. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +1 -0
  315. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  316. package/lib/cjs/appui-react/statusfields/SelectionScope.js +6 -4
  317. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  318. package/lib/cjs/appui-react/statusfields/SelectionScope.scss +13 -3
  319. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +2 -10
  320. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  321. package/lib/cjs/appui-react/statusfields/SnapMode.js +4 -34
  322. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  323. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +0 -6
  324. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  325. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -25
  326. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  327. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +7 -7
  328. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  329. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +13 -12
  330. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  331. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +8 -3
  332. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts +2 -2
  333. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts.map +1 -1
  334. package/lib/cjs/appui-react/syncui/BooleanListener.js +2 -1
  335. package/lib/cjs/appui-react/syncui/BooleanListener.js.map +1 -1
  336. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +8 -18
  337. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  338. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +30 -103
  339. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  340. package/lib/cjs/appui-react/toolbar/ActionButtonItem.js +2 -1
  341. package/lib/cjs/appui-react/toolbar/ActionButtonItem.js.map +1 -1
  342. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  343. package/lib/cjs/appui-react/toolbar/ActionItemButton.js +2 -1
  344. package/lib/cjs/appui-react/toolbar/ActionItemButton.js.map +1 -1
  345. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js +24 -20
  346. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js.map +1 -1
  347. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  348. package/lib/cjs/appui-react/toolbar/GroupItem.js +33 -29
  349. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  350. package/lib/cjs/appui-react/toolbar/ToolButton.js +3 -2
  351. package/lib/cjs/appui-react/toolbar/ToolButton.js.map +1 -1
  352. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  353. package/lib/cjs/appui-react/toolbar/Toolbar.js +3 -2
  354. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  355. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  356. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +22 -20
  357. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  358. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -1
  359. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +4 -4
  360. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  361. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.d.ts +2 -2
  362. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js +2 -2
  363. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js.map +1 -1
  364. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +8 -10
  365. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  366. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +17 -36
  367. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  368. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +7 -9
  369. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  370. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +12 -20
  371. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  372. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +7 -9
  373. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  374. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +39 -50
  375. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  376. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.scss +4 -4
  377. package/lib/{esm/appui-react/uisettings → cjs/appui-react/uistate}/AppUiSettings.d.ts +11 -9
  378. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -0
  379. package/lib/cjs/appui-react/{uisettings → uistate}/AppUiSettings.js +12 -8
  380. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -0
  381. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
  382. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
  383. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js +59 -0
  384. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js.map +1 -0
  385. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts +20 -0
  386. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -0
  387. package/lib/cjs/appui-react/uistate/useUiStateStorage.js +38 -0
  388. package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -0
  389. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts +5 -5
  390. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  391. package/lib/cjs/appui-react/utils/UiShowHideManager.js +8 -8
  392. package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +1 -1
  393. package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
  394. package/lib/cjs/appui-react/widget-panels/Content.js +1 -4
  395. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  396. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +98 -8
  397. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  398. package/lib/cjs/appui-react/widget-panels/Frontstage.js +92 -97
  399. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  400. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +22 -0
  401. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -0
  402. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +56 -0
  403. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -0
  404. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  405. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +1 -0
  406. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  407. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  408. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +3 -1
  409. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  410. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts +9 -0
  411. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
  412. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js +10 -0
  413. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  414. package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts.map +1 -1
  415. package/lib/cjs/appui-react/widgets/NavigationWidget.js +2 -1
  416. package/lib/cjs/appui-react/widgets/NavigationWidget.js.map +1 -1
  417. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +1 -0
  418. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  419. package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  420. package/lib/cjs/appui-react/widgets/StableWidgetDef.js +1 -1
  421. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  422. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js +2 -1
  423. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  424. package/lib/cjs/appui-react/widgets/ToolWidget.js +3 -2
  425. package/lib/cjs/appui-react/widgets/ToolWidget.js.map +1 -1
  426. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts +0 -12
  427. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  428. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js +1 -36
  429. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  430. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts +1 -0
  431. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -1
  432. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js +5 -2
  433. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  434. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts +0 -1
  435. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  436. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
  437. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  438. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -3
  439. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  440. package/lib/cjs/appui-react/widgets/WidgetDef.js +18 -7
  441. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  442. package/lib/cjs/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  443. package/lib/cjs/appui-react/widgets/WidgetHost.js +1 -0
  444. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  445. package/lib/cjs/appui-react/widgets/WidgetStack.d.ts.map +1 -1
  446. package/lib/cjs/appui-react/widgets/WidgetStack.js +2 -0
  447. package/lib/cjs/appui-react/widgets/WidgetStack.js.map +1 -1
  448. package/lib/cjs/appui-react/zones/FrameworkZone.js.map +1 -1
  449. package/lib/cjs/appui-react/zones/StatusBarZone.js.map +1 -1
  450. package/lib/cjs/appui-react/zones/Zone.d.ts +1 -1
  451. package/lib/cjs/appui-react/zones/Zone.d.ts.map +1 -1
  452. package/lib/cjs/appui-react/zones/Zone.js +2 -1
  453. package/lib/cjs/appui-react/zones/Zone.js.map +1 -1
  454. package/lib/cjs/appui-react/zones/ZoneDef.d.ts +4 -4
  455. package/lib/cjs/appui-react/zones/ZoneDef.d.ts.map +1 -1
  456. package/lib/cjs/appui-react/zones/ZoneDef.js +5 -4
  457. package/lib/cjs/appui-react/zones/ZoneDef.js.map +1 -1
  458. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts +1 -2
  459. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -1
  460. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js +3 -2
  461. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -1
  462. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -1
  463. package/lib/cjs/appui-react.d.ts +18 -18
  464. package/lib/cjs/appui-react.d.ts.map +1 -1
  465. package/lib/cjs/appui-react.js +18 -18
  466. package/lib/cjs/appui-react.js.map +1 -1
  467. package/lib/esm/appui-react/UiFramework.d.ts +37 -22
  468. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  469. package/lib/esm/appui-react/UiFramework.js +52 -37
  470. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  471. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts +3 -3
  472. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  473. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +3 -3
  474. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  475. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +1 -1
  476. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  477. package/lib/esm/appui-react/accudraw/Calculator.js +1 -1
  478. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  479. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +4 -4
  480. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  481. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +6 -5
  482. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  483. package/lib/esm/appui-react/backstage/Backstage.d.ts +0 -4
  484. package/lib/esm/appui-react/backstage/Backstage.d.ts.map +1 -1
  485. package/lib/esm/appui-react/backstage/Backstage.js +0 -1
  486. package/lib/esm/appui-react/backstage/Backstage.js.map +1 -1
  487. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts +2 -0
  488. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  489. package/lib/esm/appui-react/backstage/BackstageComposer.js +27 -9
  490. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  491. package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts +2 -2
  492. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +1 -1
  493. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  494. package/lib/esm/appui-react/backstage/BackstageItemProps.d.ts +3 -3
  495. package/lib/esm/appui-react/backstage/BackstageItemProps.js +1 -1
  496. package/lib/esm/appui-react/backstage/BackstageItemProps.js.map +1 -1
  497. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +5 -5
  498. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +3 -3
  499. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  500. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts +2 -0
  501. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts.map +1 -1
  502. package/lib/esm/appui-react/backstage/CommandLaunch.js +1 -0
  503. package/lib/esm/appui-react/backstage/CommandLaunch.js.map +1 -1
  504. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts +4 -0
  505. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -1
  506. package/lib/esm/appui-react/backstage/FrontstageLaunch.js +5 -6
  507. package/lib/esm/appui-react/backstage/FrontstageLaunch.js.map +1 -1
  508. package/lib/esm/appui-react/backstage/Separator.d.ts +1 -0
  509. package/lib/esm/appui-react/backstage/Separator.d.ts.map +1 -1
  510. package/lib/esm/appui-react/backstage/Separator.js +3 -2
  511. package/lib/esm/appui-react/backstage/Separator.js.map +1 -1
  512. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts +1 -1
  513. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  514. package/lib/esm/appui-react/childwindow/ChildWindowManager.js +4 -5
  515. package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  516. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  517. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +2 -0
  518. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  519. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
  520. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js +6 -1
  521. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
  522. package/lib/esm/appui-react/configurableui/state.d.ts +10 -3
  523. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  524. package/lib/esm/appui-react/configurableui/state.js +15 -2
  525. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  526. package/lib/esm/appui-react/content/ContentControl.d.ts +7 -1
  527. package/lib/esm/appui-react/content/ContentControl.d.ts.map +1 -1
  528. package/lib/esm/appui-react/content/ContentControl.js +11 -2
  529. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  530. package/lib/esm/appui-react/content/ContentLayout.d.ts +10 -2
  531. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  532. package/lib/esm/appui-react/content/ContentLayout.js +44 -37
  533. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  534. package/lib/esm/appui-react/content/ContentLayout.scss +27 -27
  535. package/lib/esm/appui-react/content/ContentViewManager.d.ts +8 -1
  536. package/lib/esm/appui-react/content/ContentViewManager.d.ts.map +1 -1
  537. package/lib/esm/appui-react/content/ContentViewManager.js +47 -23
  538. package/lib/esm/appui-react/content/ContentViewManager.js.map +1 -1
  539. package/lib/esm/appui-react/content/FloatingViewportContent.css +9 -0
  540. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts +25 -0
  541. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -0
  542. package/lib/esm/appui-react/content/FloatingViewportContent.js +69 -0
  543. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -0
  544. package/lib/esm/appui-react/content/IModelViewport.d.ts +13 -1
  545. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  546. package/lib/esm/appui-react/content/IModelViewport.js +16 -4
  547. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  548. package/lib/esm/appui-react/content/{SavedViewLayout.d.ts → StageContentLayout.d.ts} +11 -11
  549. package/lib/esm/appui-react/content/StageContentLayout.d.ts.map +1 -0
  550. package/lib/esm/appui-react/content/{SavedViewLayout.js → StageContentLayout.js} +17 -15
  551. package/lib/esm/appui-react/content/StageContentLayout.js.map +1 -0
  552. package/lib/esm/appui-react/content/{SavedView.d.ts → ViewStateHelper.d.ts} +7 -7
  553. package/lib/esm/appui-react/content/ViewStateHelper.d.ts.map +1 -0
  554. package/lib/esm/appui-react/content/{SavedView.js → ViewStateHelper.js} +2 -2
  555. package/lib/esm/appui-react/content/ViewStateHelper.js.map +1 -0
  556. package/lib/esm/appui-react/content/ViewportContentControl.d.ts +9 -0
  557. package/lib/esm/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  558. package/lib/esm/appui-react/content/ViewportContentControl.js +23 -1
  559. package/lib/esm/appui-react/content/ViewportContentControl.js.map +1 -1
  560. package/lib/esm/appui-react/content/split-pane/Pane.d.ts +21 -0
  561. package/lib/esm/appui-react/content/split-pane/Pane.d.ts.map +1 -0
  562. package/lib/esm/appui-react/content/split-pane/Pane.js +39 -0
  563. package/lib/esm/appui-react/content/split-pane/Pane.js.map +1 -0
  564. package/lib/esm/appui-react/content/split-pane/Resizer.d.ts +23 -0
  565. package/lib/esm/appui-react/content/split-pane/Resizer.d.ts.map +1 -0
  566. package/lib/esm/appui-react/content/split-pane/Resizer.js +35 -0
  567. package/lib/esm/appui-react/content/split-pane/Resizer.js.map +1 -0
  568. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +70 -0
  569. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -0
  570. package/lib/esm/appui-react/content/split-pane/SplitPane.js +239 -0
  571. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -0
  572. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +1 -2
  573. package/lib/esm/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  574. package/lib/esm/appui-react/cursor/CursorInformation.js +2 -2
  575. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  576. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  577. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  578. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +2 -2
  579. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  580. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js +2 -2
  581. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  582. package/lib/esm/appui-react/dialog/ContentDialog.d.ts +24 -0
  583. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -0
  584. package/lib/esm/appui-react/dialog/ContentDialog.js +67 -0
  585. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -0
  586. package/lib/esm/appui-react/dialog/ContentDialog.scss +25 -0
  587. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts +65 -0
  588. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -0
  589. package/lib/esm/appui-react/dialog/ContentDialogManager.js +142 -0
  590. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -0
  591. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +1 -1
  592. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  593. package/lib/esm/appui-react/dialog/DialogManagerBase.js +1 -1
  594. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  595. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  596. package/lib/esm/appui-react/dialog/StandardMessageBox.js +3 -0
  597. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  598. package/lib/esm/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -1
  599. package/lib/esm/appui-react/dragdrop/ZoneTargets.js +8 -4
  600. package/lib/esm/appui-react/dragdrop/ZoneTargets.js.map +1 -1
  601. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +2 -2
  602. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  603. package/lib/esm/appui-react/feedback/ElementTooltip.js +4 -2
  604. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  605. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +1 -0
  606. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  607. package/lib/esm/appui-react/frontstage/Frontstage.js +32 -13
  608. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -1
  609. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  610. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  611. package/lib/esm/appui-react/frontstage/FrontstageComposer.js +15 -1
  612. package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  613. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +19 -2
  614. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  615. package/lib/esm/appui-react/frontstage/FrontstageDef.js +170 -8
  616. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  617. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  618. package/lib/esm/appui-react/frontstage/FrontstageManager.js +2 -1
  619. package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
  620. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +6 -0
  621. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  622. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  623. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  624. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  625. package/lib/esm/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  626. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  627. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts +12 -9
  628. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -1
  629. package/lib/esm/appui-react/hooks/useFrameworkVersion.js +19 -21
  630. package/lib/esm/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  631. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +1 -1
  632. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -1
  633. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js +6 -7
  634. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -1
  635. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +3 -3
  636. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  637. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +1 -1
  638. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  639. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts +0 -5
  640. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  641. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  642. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +1 -1
  643. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -1
  644. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +83 -70
  645. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -1
  646. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  647. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  648. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +2 -1
  649. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  650. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +2 -2
  651. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  652. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts +5 -5
  653. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -1
  654. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js +3 -2
  655. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -1
  656. package/lib/esm/appui-react/messages/AppNotificationManager.d.ts +1 -1
  657. package/lib/esm/appui-react/messages/AppNotificationManager.js +1 -1
  658. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  659. package/lib/esm/appui-react/messages/MessageManager.d.ts +1 -2
  660. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  661. package/lib/esm/appui-react/messages/MessageManager.js +9 -3
  662. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  663. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  664. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  665. package/lib/esm/appui-react/messages/Pointer.js +4 -3
  666. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  667. package/lib/esm/appui-react/messages/ToastMessage.js +2 -1
  668. package/lib/esm/appui-react/messages/ToastMessage.js.map +1 -1
  669. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +1 -1
  670. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  671. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  672. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  673. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -1
  674. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  675. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +2 -1
  676. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  677. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +6 -4
  678. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  679. package/lib/esm/appui-react/pickers/ListPicker.d.ts +3 -0
  680. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  681. package/lib/esm/appui-react/pickers/ListPicker.js +23 -9
  682. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  683. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +1 -1
  684. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  685. package/lib/esm/appui-react/pickers/ViewSelector.js +7 -7
  686. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  687. package/lib/esm/appui-react/popup/CardPopup.d.ts +7 -4
  688. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  689. package/lib/esm/appui-react/popup/CardPopup.js +3 -2
  690. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  691. package/lib/esm/appui-react/popup/CardPopup.scss +3 -1
  692. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts +3 -2
  693. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  694. package/lib/esm/appui-react/popup/InputEditorPopup.js +1 -1
  695. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  696. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +7 -7
  697. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  698. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +3 -2
  699. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  700. package/lib/esm/appui-react/popup/KeyinPalettePopup.js +1 -1
  701. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  702. package/lib/esm/appui-react/popup/PopupManager.d.ts +10 -10
  703. package/lib/esm/appui-react/popup/PopupManager.d.ts.map +1 -1
  704. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  705. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  706. package/lib/esm/appui-react/popup/PositionPopup.d.ts +5 -3
  707. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  708. package/lib/esm/appui-react/popup/PositionPopup.js +3 -2
  709. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  710. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts +3 -2
  711. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  712. package/lib/esm/appui-react/popup/ToolSettingsPopup.js +1 -1
  713. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  714. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts +4 -3
  715. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  716. package/lib/esm/appui-react/popup/ToolbarPopup.js +2 -2
  717. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  718. package/lib/esm/appui-react/redux/FrameworkState.d.ts +1 -1
  719. package/lib/esm/appui-react/redux/SessionState.d.ts +0 -6
  720. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  721. package/lib/esm/appui-react/redux/SessionState.js +0 -8
  722. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  723. package/lib/esm/appui-react/redux/StateManager.d.ts +1 -1
  724. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  725. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js +7 -7
  726. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  727. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  728. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js +1 -1
  729. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  730. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  731. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +28 -19
  732. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  733. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  734. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  735. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  736. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +2 -2
  737. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  738. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -1
  739. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  740. package/lib/esm/appui-react/shared/ItemProps.d.ts +2 -2
  741. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  742. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +1 -1
  743. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  744. package/lib/esm/appui-react/shared/ToolItemDef.js +2 -2
  745. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  746. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -1
  747. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js +1 -0
  748. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -1
  749. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts +2 -2
  750. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  751. package/lib/esm/appui-react/stagepanels/StagePanel.js +1 -0
  752. package/lib/esm/appui-react/stagepanels/StagePanel.js.map +1 -1
  753. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +26 -2
  754. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  755. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +24 -3
  756. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  757. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts +2 -2
  758. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -1
  759. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js +2 -1
  760. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js.map +1 -1
  761. package/lib/esm/appui-react/statusbar/StatusBar.js +2 -1
  762. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  763. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  764. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +17 -5
  765. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  766. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  767. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js +1 -1
  768. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  769. package/lib/esm/appui-react/statusfields/Indicator.d.ts +15 -14
  770. package/lib/esm/appui-react/statusfields/Indicator.d.ts.map +1 -1
  771. package/lib/esm/appui-react/statusfields/Indicator.js +23 -21
  772. package/lib/esm/appui-react/statusfields/Indicator.js.map +1 -1
  773. package/lib/esm/appui-react/statusfields/Indicator.scss +29 -18
  774. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  775. package/lib/esm/appui-react/statusfields/MessageCenter.js +2 -1
  776. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  777. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +1 -0
  778. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  779. package/lib/esm/appui-react/statusfields/SelectionScope.js +6 -4
  780. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  781. package/lib/esm/appui-react/statusfields/SelectionScope.scss +13 -3
  782. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +2 -10
  783. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  784. package/lib/esm/appui-react/statusfields/SnapMode.js +5 -35
  785. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  786. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +0 -6
  787. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  788. package/lib/esm/appui-react/statusfields/ViewAttributes.js +2 -26
  789. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  790. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +7 -7
  791. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  792. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +14 -13
  793. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  794. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +8 -3
  795. package/lib/esm/appui-react/syncui/BooleanListener.d.ts +2 -2
  796. package/lib/esm/appui-react/syncui/BooleanListener.d.ts.map +1 -1
  797. package/lib/esm/appui-react/syncui/BooleanListener.js +2 -1
  798. package/lib/esm/appui-react/syncui/BooleanListener.js.map +1 -1
  799. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +8 -18
  800. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  801. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +29 -101
  802. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  803. package/lib/esm/appui-react/toolbar/ActionButtonItem.js +2 -1
  804. package/lib/esm/appui-react/toolbar/ActionButtonItem.js.map +1 -1
  805. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  806. package/lib/esm/appui-react/toolbar/ActionItemButton.js +2 -1
  807. package/lib/esm/appui-react/toolbar/ActionItemButton.js.map +1 -1
  808. package/lib/esm/appui-react/toolbar/GroupButtonItem.js +24 -20
  809. package/lib/esm/appui-react/toolbar/GroupButtonItem.js.map +1 -1
  810. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  811. package/lib/esm/appui-react/toolbar/GroupItem.js +33 -29
  812. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  813. package/lib/esm/appui-react/toolbar/ToolButton.js +3 -2
  814. package/lib/esm/appui-react/toolbar/ToolButton.js.map +1 -1
  815. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  816. package/lib/esm/appui-react/toolbar/Toolbar.js +3 -2
  817. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  818. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  819. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +22 -20
  820. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  821. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -1
  822. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +4 -4
  823. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  824. package/lib/esm/appui-react/tools/MarkupToolDefinitions.d.ts +2 -2
  825. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js +2 -2
  826. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js.map +1 -1
  827. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +8 -10
  828. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  829. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +18 -37
  830. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  831. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +7 -9
  832. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  833. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +13 -21
  834. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  835. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +7 -9
  836. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  837. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +40 -51
  838. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  839. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.scss +4 -4
  840. package/lib/{cjs/appui-react/uisettings → esm/appui-react/uistate}/AppUiSettings.d.ts +11 -9
  841. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -0
  842. package/lib/esm/appui-react/{uisettings → uistate}/AppUiSettings.js +13 -9
  843. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -0
  844. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
  845. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
  846. package/lib/esm/appui-react/uistate/UserSettingsStorage.js +55 -0
  847. package/lib/esm/appui-react/uistate/UserSettingsStorage.js.map +1 -0
  848. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts +20 -0
  849. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -0
  850. package/lib/esm/appui-react/uistate/useUiStateStorage.js +33 -0
  851. package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -0
  852. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts +5 -5
  853. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  854. package/lib/esm/appui-react/utils/UiShowHideManager.js +9 -9
  855. package/lib/esm/appui-react/utils/UiShowHideManager.js.map +1 -1
  856. package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
  857. package/lib/esm/appui-react/widget-panels/Content.js +1 -4
  858. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  859. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +98 -8
  860. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  861. package/lib/esm/appui-react/widget-panels/Frontstage.js +92 -96
  862. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  863. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +22 -0
  864. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -0
  865. package/lib/esm/appui-react/widgets/BackstageAppButton.js +52 -0
  866. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -0
  867. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  868. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +1 -0
  869. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  870. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  871. package/lib/esm/appui-react/widgets/BasicToolWidget.js +3 -1
  872. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  873. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts +9 -0
  874. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
  875. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js +10 -0
  876. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  877. package/lib/esm/appui-react/widgets/NavigationWidget.d.ts.map +1 -1
  878. package/lib/esm/appui-react/widgets/NavigationWidget.js +2 -1
  879. package/lib/esm/appui-react/widgets/NavigationWidget.js.map +1 -1
  880. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +1 -0
  881. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  882. package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  883. package/lib/esm/appui-react/widgets/StableWidgetDef.js +1 -1
  884. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  885. package/lib/esm/appui-react/widgets/ToolSettingsContent.js +2 -1
  886. package/lib/esm/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  887. package/lib/esm/appui-react/widgets/ToolWidget.js +3 -2
  888. package/lib/esm/appui-react/widgets/ToolWidget.js.map +1 -1
  889. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts +0 -12
  890. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  891. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js +2 -36
  892. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  893. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts +1 -0
  894. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -1
  895. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js +5 -2
  896. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  897. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts +0 -1
  898. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  899. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
  900. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  901. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -3
  902. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  903. package/lib/esm/appui-react/widgets/WidgetDef.js +18 -7
  904. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  905. package/lib/esm/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  906. package/lib/esm/appui-react/widgets/WidgetHost.js +1 -0
  907. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  908. package/lib/esm/appui-react/widgets/WidgetStack.d.ts.map +1 -1
  909. package/lib/esm/appui-react/widgets/WidgetStack.js +2 -0
  910. package/lib/esm/appui-react/widgets/WidgetStack.js.map +1 -1
  911. package/lib/esm/appui-react/zones/FrameworkZone.js.map +1 -1
  912. package/lib/esm/appui-react/zones/StatusBarZone.js.map +1 -1
  913. package/lib/esm/appui-react/zones/Zone.d.ts +1 -1
  914. package/lib/esm/appui-react/zones/Zone.d.ts.map +1 -1
  915. package/lib/esm/appui-react/zones/Zone.js +2 -1
  916. package/lib/esm/appui-react/zones/Zone.js.map +1 -1
  917. package/lib/esm/appui-react/zones/ZoneDef.d.ts +4 -4
  918. package/lib/esm/appui-react/zones/ZoneDef.d.ts.map +1 -1
  919. package/lib/esm/appui-react/zones/ZoneDef.js +5 -4
  920. package/lib/esm/appui-react/zones/ZoneDef.js.map +1 -1
  921. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts +1 -2
  922. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -1
  923. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js +2 -1
  924. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -1
  925. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -1
  926. package/lib/esm/appui-react.d.ts +18 -18
  927. package/lib/esm/appui-react.d.ts.map +1 -1
  928. package/lib/esm/appui-react.js +18 -18
  929. package/lib/esm/appui-react.js.map +1 -1
  930. package/lib/public/locales/en/UiFramework.json +9 -2
  931. package/package.json +46 -53
  932. package/lib/cjs/appui-react/UserInfo.d.ts +0 -58
  933. package/lib/cjs/appui-react/UserInfo.d.ts.map +0 -1
  934. package/lib/cjs/appui-react/UserInfo.js +0 -34
  935. package/lib/cjs/appui-react/UserInfo.js.map +0 -1
  936. package/lib/cjs/appui-react/content/SavedView.d.ts.map +0 -1
  937. package/lib/cjs/appui-react/content/SavedView.js.map +0 -1
  938. package/lib/cjs/appui-react/content/SavedViewLayout.d.ts.map +0 -1
  939. package/lib/cjs/appui-react/content/SavedViewLayout.js.map +0 -1
  940. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.d.ts +0 -25
  941. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.d.ts.map +0 -1
  942. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.js +0 -34
  943. package/lib/cjs/appui-react/stagepanels/StagePanelEnums.js.map +0 -1
  944. package/lib/cjs/appui-react/uisettings/AppUiSettings.d.ts.map +0 -1
  945. package/lib/cjs/appui-react/uisettings/AppUiSettings.js.map +0 -1
  946. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.d.ts +0 -23
  947. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.d.ts.map +0 -1
  948. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.js +0 -74
  949. package/lib/cjs/appui-react/uisettings/UserSettingsStorage.js.map +0 -1
  950. package/lib/cjs/appui-react/uisettings/useUiSettings.d.ts +0 -21
  951. package/lib/cjs/appui-react/uisettings/useUiSettings.d.ts.map +0 -1
  952. package/lib/cjs/appui-react/uisettings/useUiSettings.js +0 -28
  953. package/lib/cjs/appui-react/uisettings/useUiSettings.js.map +0 -1
  954. package/lib/esm/appui-react/UserInfo.d.ts +0 -58
  955. package/lib/esm/appui-react/UserInfo.d.ts.map +0 -1
  956. package/lib/esm/appui-react/UserInfo.js +0 -30
  957. package/lib/esm/appui-react/UserInfo.js.map +0 -1
  958. package/lib/esm/appui-react/content/SavedView.d.ts.map +0 -1
  959. package/lib/esm/appui-react/content/SavedView.js.map +0 -1
  960. package/lib/esm/appui-react/content/SavedViewLayout.d.ts.map +0 -1
  961. package/lib/esm/appui-react/content/SavedViewLayout.js.map +0 -1
  962. package/lib/esm/appui-react/stagepanels/StagePanelEnums.d.ts +0 -25
  963. package/lib/esm/appui-react/stagepanels/StagePanelEnums.d.ts.map +0 -1
  964. package/lib/esm/appui-react/stagepanels/StagePanelEnums.js +0 -31
  965. package/lib/esm/appui-react/stagepanels/StagePanelEnums.js.map +0 -1
  966. package/lib/esm/appui-react/uisettings/AppUiSettings.d.ts.map +0 -1
  967. package/lib/esm/appui-react/uisettings/AppUiSettings.js.map +0 -1
  968. package/lib/esm/appui-react/uisettings/UserSettingsStorage.d.ts +0 -23
  969. package/lib/esm/appui-react/uisettings/UserSettingsStorage.d.ts.map +0 -1
  970. package/lib/esm/appui-react/uisettings/UserSettingsStorage.js +0 -68
  971. package/lib/esm/appui-react/uisettings/UserSettingsStorage.js.map +0 -1
  972. package/lib/esm/appui-react/uisettings/useUiSettings.d.ts +0 -21
  973. package/lib/esm/appui-react/uisettings/useUiSettings.d.ts.map +0 -1
  974. package/lib/esm/appui-react/uisettings/useUiSettings.js +0 -23
  975. package/lib/esm/appui-react/uisettings/useUiSettings.js.map +0 -1
@@ -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;AAE7F,mDAAmD;AAEnD;;;GAGG;AACH,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,qEAA2C,CAAA;IAC3C,+DAAqC,CAAA;IACrC,yEAA+C,CAAA;IAC/C,gFAAsD,CAAA;IACtD,oFAA0D,CAAA;IAC1D,sFAA4D,CAAA;AAC9D,CAAC,EAPW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAOjC;AAcD,kDAAkD;AAClD,MAAM,YAAY,GAAwB;IACxC,QAAQ,EAAE,wBAAQ,CAAC,eAAyB;IAC5C,UAAU,EAAE,EAAE;IACd,KAAK,EAAE,2CAA4B;IACnC,aAAa,EAAE,qCAAsB;IACrC,kBAAkB,EAAE,KAAK;IACzB,gBAAgB,EAAE,GAAG;CACtB,CAAC;AAEF;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACnC,WAAW,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAA,uBAAY,EAAC,sBAAsB,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC7F,QAAQ;IACN,uBAAuB;IACvB,CAAC,KAAa,EAAE,EAAE,CAAC,IAAA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kB,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,OAAO,EAAE,GAAG,KAAK,EAAE,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACvD;KACF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAxBD,sDAwBC","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\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: string;\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: \"1\",\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: string) => 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 return { ...state, frameworkVersion: action.payload };\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,gFAAsD,CAAA;IACtD,oFAA0D,CAAA;IAC1D,sFAA4D,CAAA;IAC5D,mFAAyD,CAAA;IACzD,2FAAiE,CAAA;AACnE,CAAC,EATW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QASjC;AAgBD,kDAAkD;AAClD,MAAM,YAAY,GAAwB;IACxC,QAAQ,EAAE,wBAAQ,CAAC,eAAyB;IAC5C,UAAU,EAAE,EAAE;IACd,KAAK,EAAE,2CAA4B;IACnC,aAAa,EAAE,qCAAsB;IACrC,kBAAkB,EAAE,KAAK;IACzB,gBAAgB,EAAE,GAAG;IACrB,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAEF;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACnC,WAAW,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAA,uBAAY,EAAC,sBAAsB,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC7F,QAAQ;IACN,uBAAuB;IACvB,CAAC,KAAa,EAAE,EAAE,CAAC,IAAA,uBAAY,EAAC,sBAAsB,CAAC,QAAQ,EAAE,KAAK,CAAC;IACzE,aAAa;IACX,uBAAuB;IACvB,CAAC,UAAkB,EAAE,EAAE,CAAC,IAAA,uBAAY,EAAC,s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AAK,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;QACD,KAAK,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;YAC7C,OAAO,EAAE,GAAG,KAAK,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
@@ -56,4 +56,10 @@ export declare class ContentControl extends ConfigurableUiControl {
56
56
  /** Get the NavigationAidControl associated with this ContentControl */
57
57
  get navigationAidControl(): string;
58
58
  }
59
+ /**
60
+ * @beta
61
+ */
62
+ export declare class FloatingContentControl extends ContentControl {
63
+ constructor(uniqueId: string, name: string, node: React.ReactNode);
64
+ }
59
65
  //# sourceMappingURL=ContentControl.d.ts.map
@@ -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,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEnI;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,oBAAoB,EAAE,cAAc,CAAC;IACrC,iBAAiB,CAAC,EAAE,cAAc,CAAC;CACpC;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,OAAO,CAAC,gCAAgC,CAAC;CAAI;AAE/F;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8EAA8E;IAC9E,0BAA0B,EAAE,OAAO,CAAC;IACpC,qCAAqC;IACrC,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO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SAAS;CAIlE"}
@@ -7,14 +7,14 @@
7
7
  * @module ContentView
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ContentControl = exports.ContentControlActivatedEvent = void 0;
10
+ exports.FloatingContentControl = 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.
@@ -66,4 +66,14 @@ class ContentControl extends ConfigurableUiControl_1.ConfigurableUiControl {
66
66
  }
67
67
  }
68
68
  exports.ContentControl = ContentControl;
69
+ /**
70
+ * @beta
71
+ */
72
+ class FloatingContentControl extends ContentControl {
73
+ constructor(uniqueId, name, node) {
74
+ super(new ConfigurableUiControl_1.ConfigurableCreateInfo(name, uniqueId, name), undefined);
75
+ this._reactNode = node;
76
+ }
77
+ }
78
+ exports.FloatingContentControl = FloatingContentControl;
69
79
  //# sourceMappingURL=ContentControl.js.map
@@ -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;AAED;;GAEG;AACH,MAAa,sBAAuB,SAAQ,cAAc;IACxD,YAAY,QAAgB,EAAE,IAAY,EAAE,IAAqB;QAC/D,KAAK,CAAC,IAAI,8CAAsB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;QACnE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACzB,CAAC;CACF;AALD,wDAKC","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\r\n/**\r\n * @beta\r\n */\r\nexport class FloatingContentControl extends ContentControl {\r\n constructor(uniqueId: string, name: string, node: React.ReactNode) {\r\n super(new ConfigurableCreateInfo(name, uniqueId, name), undefined);\r\n this._reactNode = node;\r\n }\r\n}\r\n"]}
@@ -3,9 +3,17 @@
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
+ /** Properties for [[ContentWrapper]] */
10
+ interface ContentWrapperProps extends CommonProps {
11
+ content: React.ReactNode;
12
+ }
13
+ /** ContentWrapper React component.
14
+ * @internal
15
+ */
16
+ export declare function ContentWrapper(props: ContentWrapperProps): JSX.Element;
9
17
  /** Common interface for HorizontalSplit and VerticalSplit
10
18
  */
11
19
  interface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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"}
@@ -7,55 +7,62 @@
7
7
  * @module ContentView
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ContentLayout = exports.ContentLayoutActivatedEvent = exports.ContentLayoutDef = void 0;
10
+ exports.ContentLayout = exports.ContentLayoutActivatedEvent = exports.ContentLayoutDef = exports.ContentWrapper = void 0;
11
11
  // cSpell:ignore contentlayout
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");
21
+ const Frontstage_1 = require("../frontstage/Frontstage");
20
22
  /** ContentWrapper React component.
23
+ * @internal
21
24
  */
22
- class ContentWrapper extends React.Component {
23
- constructor(props) {
24
- super(props);
25
- this._handleMouseDown = (_event) => {
26
- // event.preventDefault();
27
- ContentViewManager_1.ContentViewManager.setActiveContent(this.state.content);
28
- };
29
- this._handleActiveContentChanged = (args) => {
30
- const isActive = this.state.content === args.activeContent;
31
- if (this.state.isActive !== isActive) {
32
- this.setState({ isActive });
33
- }
25
+ function ContentWrapper(props) {
26
+ const { content } = props;
27
+ const [isActive, setIsActive] = React.useState(content === ContentViewManager_1.ContentViewManager.getActiveContent());
28
+ const activeFrontstageDef = (0, Frontstage_1.useActiveFrontstageDef)();
29
+ // istanbul ignore next
30
+ const [hasMultipleContents, setHasMultipleContents] = React.useState(() => {
31
+ var _a, _b, _c;
32
+ return (activeFrontstageDef && (!!((_a = activeFrontstageDef.floatingContentControls) === null || _a === void 0 ? void 0 : _a.length)) ||
33
+ ((_c = (_b = activeFrontstageDef === null || activeFrontstageDef === void 0 ? void 0 : activeFrontstageDef.contentGroup) === null || _b === void 0 ? void 0 : _b.getContentControls().length) !== null && _c !== void 0 ? _c : 0) > 1);
34
+ });
35
+ React.useEffect(() => {
36
+ setIsActive(content === ContentViewManager_1.ContentViewManager.getActiveContent());
37
+ }, [content]);
38
+ React.useEffect(() => {
39
+ const handleActiveContentChanged = (args) => {
40
+ var _a, _b, _c;
41
+ setIsActive(content === args.activeContent);
42
+ // istanbul ignore next
43
+ setHasMultipleContents((activeFrontstageDef && (!!((_a = activeFrontstageDef.floatingContentControls) === null || _a === void 0 ? void 0 : _a.length)) ||
44
+ ((_c = (_b = activeFrontstageDef === null || activeFrontstageDef === void 0 ? void 0 : activeFrontstageDef.contentGroup) === null || _b === void 0 ? void 0 : _b.getContentControls().length) !== null && _c !== void 0 ? _c : 0) > 1));
34
45
  };
35
- this.state = {
36
- content: this.props.content,
37
- isActive: this.props.content === ContentViewManager_1.ContentViewManager.getActiveContent(),
46
+ return ContentViewManager_1.ContentViewManager.onActiveContentChangedEvent.addListener(handleActiveContentChanged);
47
+ }, [activeFrontstageDef, content]);
48
+ const handleMouseDown = React.useCallback(() => {
49
+ ContentViewManager_1.ContentViewManager.setActiveContent(content);
50
+ }, [content]);
51
+ React.useEffect(() => {
52
+ const onAvailableContentChanged = () => {
53
+ var _a, _b, _c;
54
+ // istanbul ignore next
55
+ setHasMultipleContents((activeFrontstageDef && (!!((_a = activeFrontstageDef.floatingContentControls) === null || _a === void 0 ? void 0 : _a.length)) ||
56
+ ((_c = (_b = activeFrontstageDef === null || activeFrontstageDef === void 0 ? void 0 : activeFrontstageDef.contentGroup) === null || _b === void 0 ? void 0 : _b.getContentControls().length) !== null && _c !== void 0 ? _c : 0) > 1));
38
57
  };
39
- }
40
- render() {
41
- const overlayClassName = (0, classnames_1.default)("uifw-contentlayout-overlay-div", this.state.isActive ? "uifw-contentlayout-overlay-active" : "uifw-contentlayout-overlay-inactive");
42
- return (React.createElement("div", { className: (0, classnames_1.default)("uifw-contentlayout-wrapper", this.props.className), style: this.props.style, onMouseDown: this._handleMouseDown, onMouseMove: UiShowHideManager_1.UiShowHideManager.handleContentMouseMove, role: "presentation" },
43
- this.state.content,
44
- React.createElement("div", { className: overlayClassName })));
45
- }
46
- componentDidMount() {
47
- ContentViewManager_1.ContentViewManager.onActiveContentChangedEvent.addListener(this._handleActiveContentChanged);
48
- }
49
- componentWillUnmount() {
50
- ContentViewManager_1.ContentViewManager.onActiveContentChangedEvent.removeListener(this._handleActiveContentChanged);
51
- }
52
- // istanbul ignore next
53
- componentDidUpdate(prevProps, _prevState) {
54
- if (this.props.content !== prevProps.content) {
55
- this.setState((_, props) => ({ content: props.content, isActive: props.content === ContentViewManager_1.ContentViewManager.getActiveContent() }));
56
- }
57
- }
58
+ return ContentViewManager_1.ContentViewManager.onAvailableContentChangedEvent.addListener(onAvailableContentChanged);
59
+ }, [activeFrontstageDef]);
60
+ const overlayClassName = (0, classnames_1.default)("uifw-contentlayout-overlay-div", isActive && hasMultipleContents ? "uifw-contentlayout-overlay-active" : "uifw-contentlayout-overlay-inactive");
61
+ return (React.createElement("div", { className: (0, classnames_1.default)("uifw-contentlayout-wrapper", props.className), style: props.style, onMouseDown: handleMouseDown, onMouseMove: UiShowHideManager_1.UiShowHideManager.handleContentMouseMove, role: "presentation" },
62
+ content,
63
+ React.createElement("div", { className: overlayClassName })));
58
64
  }
65
+ exports.ContentWrapper = ContentWrapper;
59
66
  /** Split Container class.
60
67
  */
61
68
  class SplitContainer extends React.Component {
@@ -90,7 +97,7 @@ class SplitContainer extends React.Component {
90
97
  const minSizeTopLeft = this.props.minSizeTopLeft;
91
98
  const minSizeBottomRight = -(this.props.minSizeBottomRight);
92
99
  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 },
100
+ React.createElement(SplitPane_1.SplitPane, { split: orientation, minSize: minSizeTopLeft, maxSize: minSizeBottomRight, defaultSize: defaultSize, onChange: this._onSplitterChange, allowResize: this.props.resizable },
94
101
  this.props.contentA,
95
102
  this.props.contentB)));
96
103
  }
@@ -99,7 +106,8 @@ class SplitContainer extends React.Component {
99
106
  */
100
107
  class SingleContentContainer extends React.Component {
101
108
  render() {
102
- return (React.createElement("div", { className: (0, classnames_1.default)("uifw-contentlayout-full-size", this.props.className), style: this.props.style, "data-testid": "single-content-container", onMouseMove: UiShowHideManager_1.UiShowHideManager.handleContentMouseMove }, this.props.content));
109
+ return (React.createElement("div", { className: (0, classnames_1.default)("uifw-contentlayout-full-size", this.props.className), style: this.props.style, "data-testid": "single-content-container", onMouseMove: UiShowHideManager_1.UiShowHideManager.handleContentMouseMove },
110
+ React.createElement(ContentWrapper, { content: this.props.content, style: { height: "100%", position: "relative" } })));
103
111
  }
104
112
  }
105
113
  /** Minimum split size */
@@ -297,7 +305,7 @@ exports.ContentLayoutDef = ContentLayoutDef;
297
305
  /** Content Layout Activated Event class.
298
306
  * @public
299
307
  */
300
- class ContentLayoutActivatedEvent extends core_react_1.UiEvent {
308
+ class ContentLayoutActivatedEvent extends appui_abstract_1.UiEvent {
301
309
  }
302
310
  exports.ContentLayoutActivatedEvent = ContentLayoutActivatedEvent;
303
311
  /** 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,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;IACJ,CAAC;IAEe,MAAM;QACpB,MAAM,gBAAgB,GAAG,IAAA,oBAAU,EACjC,gCAAgC,EAChC,IA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,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 \"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;AACzF,yDAAkE;AAOlE;;GAEG;AACH,SAAgB,cAAc,CAAC,KAA0B;IACvD,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,KAAK,uCAAkB,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAClG,MAAM,mBAAmB,GAAG,IAAA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AjED,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\nimport { useActiveFrontstageDef } from \"../frontstage/Frontstage\";\r\n\r\n/** Properties for [[ContentWrapper]] */\r\ninterface ContentWrapperProps extends CommonProps {\r\n content: React.ReactNode;\r\n}\r\n\r\n/** ContentWrapper React component.\r\n * @internal\r\n */\r\nexport function ContentWrapper(props: ContentWrapperProps) {\r\n const { content } = props;\r\n const [isActive, setIsActive] = React.useState(content === ContentViewManager.getActiveContent());\r\n const activeFrontstageDef = useActiveFrontstageDef();\r\n\r\n // istanbul ignore next\r\n const [hasMultipleContents, setHasMultipleContents] = React.useState(() =>\r\n (activeFrontstageDef && (!!activeFrontstageDef.floatingContentControls?.length) ||\r\n (activeFrontstageDef?.contentGroup?.getContentControls().length ?? 0) > 1)\r\n );\r\n\r\n React.useEffect(() => {\r\n setIsActive(content === ContentViewManager.getActiveContent());\r\n }, [content]);\r\n\r\n React.useEffect(() => {\r\n const handleActiveContentChanged = (args: ActiveContentChangedEventArgs) => {\r\n setIsActive(content === args.activeContent);\r\n // istanbul ignore next\r\n setHasMultipleContents((activeFrontstageDef && (!!activeFrontstageDef.floatingContentControls?.length) ||\r\n (activeFrontstageDef?.contentGroup?.getContentControls().length ?? 0) > 1));\r\n };\r\n return ContentViewManager.onActiveContentChangedEvent.addListener(handleActiveContentChanged);\r\n }, [activeFrontstageDef, content]);\r\n\r\n const handleMouseDown = React.useCallback(() => {\r\n ContentViewManager.setActiveContent(content);\r\n }, [content]);\r\n\r\n React.useEffect(() => {\r\n const onAvailableContentChanged = () => {\r\n // istanbul ignore next\r\n setHasMultipleContents((activeFrontstageDef && (!!activeFrontstageDef.floatingContentControls?.length) ||\r\n (activeFrontstageDef?.contentGroup?.getContentControls().length ?? 0) > 1));\r\n };\r\n return ContentViewManager.onAvailableContentChangedEvent.addListener(onAvailableContentChanged);\r\n }, [activeFrontstageDef]);\r\n\r\n const overlayClassName = classnames(\r\n \"uifw-contentlayout-overlay-div\",\r\n isActive && hasMultipleContents ? \"uifw-contentlayout-overlay-active\" : \"uifw-contentlayout-overlay-inactive\",\r\n );\r\n\r\n return (\r\n <div className={classnames(\"uifw-contentlayout-wrapper\", props.className)} style={props.style}\r\n onMouseDown={handleMouseDown} onMouseMove={UiShowHideManager.handleContentMouseMove} role=\"presentation\"\r\n >\r\n {content}\r\n <div className={overlayClassName} />\r\n </div>\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 <ContentWrapper content={this.props.content} style={{ height: \"100%\", position: \"relative\" }} />\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"]}
@@ -63,32 +63,6 @@ $resizer-size-large: 14px;
63
63
  }
64
64
  }
65
65
 
66
- .uifw-contentlayout-wrapper {
67
- position: relative;
68
- width: 100%;
69
- height: 100%;
70
-
71
- .uifw-contentlayout-overlay-div {
72
- position: absolute;
73
- top: 0;
74
- left: 0;
75
- width: 100%;
76
- height: 100%;
77
- border-style: solid;
78
- border-width: 2px 0 0 0;
79
- box-sizing: border-box;
80
- pointer-events: none;
81
-
82
- &.uifw-contentlayout-overlay-active {
83
- border-color: $uicore-orange;
84
- }
85
-
86
- &.uifw-contentlayout-overlay-inactive {
87
- border-color: transparent;
88
- }
89
- }
90
- }
91
-
92
66
  .uifw-contentlayout-full-size {
93
67
  @include uicore-full-size;
94
68
  }
@@ -96,4 +70,30 @@ $resizer-size-large: 14px;
96
70
 
97
71
  div.uifw-contentlayout-full-size div.SplitPane div.Pane {
98
72
  overflow: hidden;
99
- }
73
+ }
74
+
75
+ .uifw-contentlayout-wrapper {
76
+ position: relative;
77
+ width: 100%;
78
+ height: 100%;
79
+
80
+ .uifw-contentlayout-overlay-div {
81
+ position: absolute;
82
+ top: 0;
83
+ left: 0;
84
+ width: 100%;
85
+ height: 100%;
86
+ border-style: solid;
87
+ border-width: 4px 0 0 0;
88
+ box-sizing: border-box;
89
+ pointer-events: none;
90
+
91
+ &.uifw-contentlayout-overlay-active {
92
+ border-color: $uicore-orange;
93
+ }
94
+
95
+ &.uifw-contentlayout-overlay-inactive {
96
+ border-color: transparent;
97
+ }
98
+ }
99
+ }
@@ -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
@@ -44,10 +44,17 @@ export declare class ContentViewManager {
44
44
  static setMouseDown(mouseDown: boolean): void;
45
45
  /** Gets the [[ActiveContentChangedEvent]] */
46
46
  static readonly onActiveContentChangedEvent: ActiveContentChangedEvent;
47
+ /** Fires when floating contents are added or removed */
48
+ static readonly onAvailableContentChangedEvent: UiEvent<{
49
+ contentId: string;
50
+ }>;
47
51
  /** Gets the active content as a React.ReactNode. */
48
52
  static getActiveContent(): React.ReactNode | undefined;
53
+ private static getControlFromElement;
49
54
  /** Return the active ContentControl. */
50
55
  static getActiveContentControl(): ContentControl | undefined;
56
+ static addFloatingContentControl(contentControl?: ContentControl): void;
57
+ static dropFloatingContentControl(contentControl?: ContentControl): void;
51
58
  /** Sets the active [[ContentControl]] */
52
59
  static setActiveContent(activeContent?: React.ReactNode, forceEventProcessing?: boolean): void;
53
60
  /** Refreshes the active [[ContentControl]] */
@@ -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,CAAC;AAIlD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,0CAA0C;IAC1C,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,yBAAyB,CAAC;CAAI;AAEjF;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,oCAAoC;IACpC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,6CAA6C;IAC7C,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,OAAO,CAAC,6BAA6B,CAAC;CAAI;AAEzF;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAkB;IAC3C,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAAkB;IAEhD,yCAAyC;IACzC,gBAAuB,uBAAuB,wBAA+B;IAE7E,wDAAwD;IACxD,WAAkB,WAAW,IAAI,OAAO,CAEvC;IAED,oDAAoD;WACtC,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAKpD,6CAA6C;IAC7C,gBAAuB,2BAA2B,4BAAmC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