@itwin/appui-react 3.6.0-dev.8 → 3.7.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1231) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/LICENSE.md +1 -1
  3. package/lib/cjs/appui-react/UiFramework.d.ts +65 -8
  4. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  5. package/lib/cjs/appui-react/UiFramework.js +97 -22
  6. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  7. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  8. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +1 -2
  9. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  10. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js +2 -2
  11. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  12. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +2 -2
  13. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  14. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  16. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  17. package/lib/cjs/appui-react/backstage/Backstage.d.ts +4 -4
  18. package/lib/cjs/appui-react/backstage/Backstage.js +7 -7
  19. package/lib/cjs/appui-react/backstage/Backstage.js.map +1 -1
  20. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  21. package/lib/cjs/appui-react/backstage/BackstageComposer.js +1 -0
  22. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  23. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +4 -4
  24. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  25. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts +43 -0
  26. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts.map +1 -0
  27. package/lib/cjs/appui-react/backstage/BackstageItem.js +37 -0
  28. package/lib/cjs/appui-react/backstage/BackstageItem.js.map +1 -0
  29. package/lib/cjs/appui-react/backstage/BackstageItemProps.d.ts +3 -3
  30. package/lib/cjs/appui-react/backstage/BackstageItemProps.js +1 -1
  31. package/lib/cjs/appui-react/backstage/BackstageItemProps.js.map +1 -1
  32. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts +7 -35
  33. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
  34. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +10 -24
  35. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  36. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts +9 -15
  37. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  38. package/lib/cjs/appui-react/backstage/BackstageManager.js +15 -29
  39. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  40. package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts +2 -2
  41. package/lib/cjs/appui-react/backstage/CommandLaunch.js +1 -1
  42. package/lib/cjs/appui-react/backstage/CommandLaunch.js.map +1 -1
  43. package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts +2 -2
  44. package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -1
  45. package/lib/cjs/appui-react/backstage/FrontstageLaunch.js +6 -7
  46. package/lib/cjs/appui-react/backstage/FrontstageLaunch.js.map +1 -1
  47. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts +23 -0
  48. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -0
  49. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js +58 -0
  50. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -0
  51. package/lib/cjs/appui-react/backstage/Separator.d.ts +1 -1
  52. package/lib/cjs/appui-react/backstage/Separator.js +1 -1
  53. package/lib/cjs/appui-react/backstage/Separator.js.map +1 -1
  54. package/lib/cjs/appui-react/backstage/TaskLaunch.d.ts +2 -2
  55. package/lib/cjs/appui-react/backstage/TaskLaunch.js +1 -1
  56. package/lib/cjs/appui-react/backstage/TaskLaunch.js.map +1 -1
  57. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  58. package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts +57 -19
  59. package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  60. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js +74 -150
  61. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  62. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts +49 -0
  63. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -0
  64. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +206 -0
  65. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -0
  66. package/lib/cjs/appui-react/childwindow/{ChildWindowManager.scss → InternalChildWindowManager.scss} +0 -0
  67. package/lib/cjs/appui-react/configurableui/ActivityTracker.d.ts.map +1 -1
  68. package/lib/cjs/appui-react/configurableui/ActivityTracker.js +4 -3
  69. package/lib/cjs/appui-react/configurableui/ActivityTracker.js.map +1 -1
  70. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +5 -5
  71. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  72. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts +13 -37
  73. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
  74. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js +24 -96
  75. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
  76. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts +82 -0
  77. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -0
  78. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +155 -0
  79. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -0
  80. package/lib/cjs/appui-react/configurableui/TimeTracker.js +5 -5
  81. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  82. package/lib/cjs/appui-react/configurableui/state.d.ts +3 -3
  83. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  84. package/lib/cjs/appui-react/configurableui/state.js +2 -2
  85. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  86. package/lib/cjs/appui-react/content/ContentGroup.d.ts +1 -1
  87. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  88. package/lib/cjs/appui-react/content/ContentGroup.js +4 -4
  89. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  90. package/lib/cjs/appui-react/content/ContentLayout.d.ts +1 -1
  91. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  92. package/lib/cjs/appui-react/content/ContentLayout.js +30 -15
  93. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  94. package/lib/cjs/appui-react/content/ContentLayoutManager.d.ts +1 -1
  95. package/lib/cjs/appui-react/content/ContentLayoutManager.d.ts.map +1 -1
  96. package/lib/cjs/appui-react/content/ContentLayoutManager.js +11 -37
  97. package/lib/cjs/appui-react/content/ContentLayoutManager.js.map +1 -1
  98. package/lib/cjs/appui-react/content/ContentViewManager.d.ts +4 -34
  99. package/lib/cjs/appui-react/content/ContentViewManager.d.ts.map +1 -1
  100. package/lib/cjs/appui-react/content/ContentViewManager.js +22 -115
  101. package/lib/cjs/appui-react/content/ContentViewManager.js.map +1 -1
  102. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts +6 -3
  103. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  104. package/lib/cjs/appui-react/content/FloatingViewportContent.js +24 -14
  105. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  106. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  107. package/lib/cjs/appui-react/content/IModelViewport.js +5 -7
  108. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  109. package/lib/cjs/appui-react/content/InternalContentLayoutManager.d.ts +48 -0
  110. package/lib/cjs/appui-react/content/InternalContentLayoutManager.d.ts.map +1 -0
  111. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +96 -0
  112. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -0
  113. package/lib/cjs/appui-react/content/InternalContentViewManager.d.ts +80 -0
  114. package/lib/cjs/appui-react/content/InternalContentViewManager.d.ts.map +1 -0
  115. package/lib/cjs/appui-react/content/InternalContentViewManager.js +210 -0
  116. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -0
  117. package/lib/cjs/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  118. package/lib/cjs/appui-react/content/ViewportContentControl.js +3 -4
  119. package/lib/cjs/appui-react/content/ViewportContentControl.js.map +1 -1
  120. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +1 -1
  121. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  122. package/lib/cjs/appui-react/dialog/ContentDialog.js +10 -11
  123. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  124. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts +9 -22
  125. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  126. package/lib/cjs/appui-react/dialog/ContentDialogManager.js +23 -85
  127. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  128. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts +48 -0
  129. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -0
  130. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +132 -0
  131. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -0
  132. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.d.ts +36 -0
  133. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.d.ts.map +1 -0
  134. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.js +55 -0
  135. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.js.map +1 -0
  136. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.d.ts +46 -0
  137. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.d.ts.map +1 -0
  138. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.js +120 -0
  139. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.js.map +1 -0
  140. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts +7 -12
  141. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  142. package/lib/cjs/appui-react/dialog/ModalDialogManager.js +23 -27
  143. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  144. package/lib/cjs/appui-react/dialog/ModelessDialog.js +2 -2
  145. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  146. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts +17 -28
  147. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  148. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +36 -86
  149. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  150. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +2 -2
  151. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  152. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  153. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +3 -4
  154. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  155. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts +44 -0
  156. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts.map +1 -0
  157. package/lib/cjs/appui-react/framework/FrameworkBackstage.js +10 -0
  158. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -0
  159. package/lib/cjs/appui-react/framework/FrameworkChildWindows.d.ts +59 -0
  160. package/lib/cjs/appui-react/framework/FrameworkChildWindows.d.ts.map +1 -0
  161. package/lib/cjs/appui-react/framework/FrameworkChildWindows.js +10 -0
  162. package/lib/cjs/appui-react/framework/FrameworkChildWindows.js.map +1 -0
  163. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +155 -0
  164. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -0
  165. package/lib/cjs/appui-react/framework/FrameworkContent.js +31 -0
  166. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -0
  167. package/lib/cjs/appui-react/framework/FrameworkControls.d.ts +43 -0
  168. package/lib/cjs/appui-react/framework/FrameworkControls.d.ts.map +1 -0
  169. package/lib/cjs/appui-react/framework/FrameworkControls.js +3 -0
  170. package/lib/cjs/appui-react/framework/FrameworkControls.js.map +1 -0
  171. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +79 -0
  172. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts.map +1 -0
  173. package/lib/cjs/appui-react/framework/FrameworkDialogs.js +24 -0
  174. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -0
  175. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +286 -0
  176. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -0
  177. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js +64 -0
  178. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -0
  179. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +100 -0
  180. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -0
  181. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js +3 -0
  182. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -0
  183. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +52 -0
  184. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts.map +1 -0
  185. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js +18 -0
  186. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -0
  187. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +37 -0
  188. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts.map +1 -0
  189. package/lib/cjs/appui-react/framework/FrameworkVisibility.js +3 -0
  190. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -0
  191. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +14 -14
  192. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  193. package/lib/cjs/appui-react/frontstage/Frontstage.js +16 -17
  194. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -1
  195. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts +6 -6
  196. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  197. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js +51 -51
  198. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  199. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +17 -17
  200. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  201. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +36 -38
  202. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  203. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts +98 -254
  204. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  205. package/lib/cjs/appui-react/frontstage/FrontstageManager.js +156 -472
  206. package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +1 -1
  207. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +1 -1
  208. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  209. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +240 -0
  210. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -0
  211. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +538 -0
  212. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -0
  213. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts +1 -1
  214. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  215. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +8 -7
  216. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  217. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +2 -2
  218. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  219. package/lib/cjs/appui-react/frontstage/StageUsage.d.ts +15 -0
  220. package/lib/cjs/appui-react/frontstage/StageUsage.d.ts.map +1 -0
  221. package/lib/cjs/appui-react/frontstage/StageUsage.js +17 -0
  222. package/lib/cjs/appui-react/frontstage/StageUsage.js.map +1 -0
  223. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  224. package/lib/cjs/appui-react/hooks/useActiveStageId.d.ts.map +1 -1
  225. package/lib/cjs/appui-react/hooks/useActiveStageId.js +4 -4
  226. package/lib/cjs/appui-react/hooks/useActiveStageId.js.map +1 -1
  227. package/lib/cjs/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/hooks/useActiveViewport.js +5 -5
  229. package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
  230. package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js +4 -4
  231. package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
  232. package/lib/cjs/appui-react/hooks/useEscapeSetFocusToHome.js +2 -2
  233. package/lib/cjs/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  234. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts +4 -4
  235. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js +3 -3
  236. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  237. package/lib/cjs/appui-react/imodel-components/Common.d.ts +2 -0
  238. package/lib/cjs/appui-react/imodel-components/Common.d.ts.map +1 -1
  239. package/lib/cjs/appui-react/imodel-components/Common.js +1 -0
  240. package/lib/cjs/appui-react/imodel-components/Common.js.map +1 -1
  241. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +6 -0
  242. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -1
  243. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js +2 -0
  244. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -1
  245. package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.d.ts +6 -0
  246. package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.d.ts.map +1 -1
  247. package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.js +6 -0
  248. package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.js.map +1 -1
  249. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.d.ts +5 -1
  250. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.d.ts.map +1 -1
  251. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.js +4 -0
  252. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.js.map +1 -1
  253. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +9 -2
  254. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  255. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +5 -1
  256. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  257. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts +2 -0
  258. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  259. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js +2 -0
  260. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  261. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +3 -0
  262. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -1
  263. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +2 -0
  264. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -1
  265. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts +2 -0
  266. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts.map +1 -1
  267. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js +2 -0
  268. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js.map +1 -1
  269. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +40 -0
  270. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -0
  271. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +112 -0
  272. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -0
  273. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +5 -25
  274. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  275. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +19 -61
  276. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  277. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts +5 -5
  278. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -1
  279. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js +1 -1
  280. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -1
  281. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts +2 -2
  282. package/lib/cjs/appui-react/messages/ActivityMessage.js +1 -1
  283. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  284. package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts +2 -2
  285. package/lib/cjs/appui-react/messages/ActivityMessagePopup.js +1 -1
  286. package/lib/cjs/appui-react/messages/ActivityMessagePopup.js.map +1 -1
  287. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  288. package/lib/cjs/appui-react/messages/MessageManager.js +5 -4
  289. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  290. package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts +2 -2
  291. package/lib/cjs/appui-react/messages/StatusMessageRenderer.js +1 -1
  292. package/lib/cjs/appui-react/messages/StatusMessageRenderer.js.map +1 -1
  293. package/lib/cjs/appui-react/messages/StatusMessagesContainer.d.ts +1 -1
  294. package/lib/cjs/appui-react/messages/StatusMessagesContainer.js +1 -1
  295. package/lib/cjs/appui-react/messages/StatusMessagesContainer.js.map +1 -1
  296. package/lib/cjs/appui-react/messages/StickyMessage.d.ts +2 -2
  297. package/lib/cjs/appui-react/messages/StickyMessage.js +1 -1
  298. package/lib/cjs/appui-react/messages/StickyMessage.js.map +1 -1
  299. package/lib/cjs/appui-react/messages/ToastMessage.d.ts +2 -2
  300. package/lib/cjs/appui-react/messages/ToastMessage.js +1 -1
  301. package/lib/cjs/appui-react/messages/ToastMessage.js.map +1 -1
  302. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js +1 -2
  303. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  304. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +1 -1
  305. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  306. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +2 -3
  307. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  308. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +1 -1
  309. package/lib/cjs/appui-react/pickers/ListPicker.js +5 -5
  310. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  311. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  312. package/lib/cjs/appui-react/pickers/ViewSelector.js +1 -2
  313. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  314. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts +1 -1
  315. package/lib/cjs/appui-react/safearea/SafeAreaContext.js +1 -1
  316. package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
  317. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.d.ts +1 -1
  318. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js +1 -1
  319. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js.map +1 -1
  320. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  321. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +4 -5
  322. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  323. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  324. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +3 -4
  325. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  326. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +2 -2
  327. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  328. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +16 -17
  329. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  330. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  331. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +1 -1
  332. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  333. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  334. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +4 -4
  335. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  336. package/lib/cjs/appui-react/shared/ItemDefBase.js +3 -3
  337. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  338. package/lib/cjs/appui-react/shared/ItemProps.d.ts +4 -4
  339. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  340. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -1
  341. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js +2 -2
  342. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -1
  343. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts +5 -5
  344. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  345. package/lib/cjs/appui-react/stagepanels/StagePanel.js +6 -6
  346. package/lib/cjs/appui-react/stagepanels/StagePanel.js.map +1 -1
  347. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  348. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +9 -9
  349. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  350. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts +2 -2
  351. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js +3 -3
  352. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js.map +1 -1
  353. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.d.ts +13 -0
  354. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.d.ts.map +1 -0
  355. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js +16 -0
  356. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js.map +1 -0
  357. package/lib/cjs/appui-react/stagepanels/StagePanelSection.d.ts +13 -0
  358. package/lib/cjs/appui-react/stagepanels/StagePanelSection.d.ts.map +1 -0
  359. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js +16 -0
  360. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js.map +1 -0
  361. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +2 -1
  362. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  363. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +1 -1
  364. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  365. package/lib/cjs/appui-react/statusbar/StatusBar.js +2 -2
  366. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  367. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  368. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +1 -0
  369. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  370. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts +52 -2
  371. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  372. package/lib/cjs/appui-react/statusbar/StatusBarItem.js +33 -2
  373. package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
  374. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts +23 -4
  375. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  376. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js +31 -1
  377. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  378. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  379. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js +1 -1
  380. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  381. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts +3 -3
  382. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  383. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  384. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +2 -2
  385. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  386. package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.d.ts +1 -1
  387. package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.js +1 -1
  388. package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.js.map +1 -1
  389. package/lib/cjs/appui-react/statusbar/withStatusFieldProps.d.ts +1 -1
  390. package/lib/cjs/appui-react/statusbar/withStatusFieldProps.js +1 -1
  391. package/lib/cjs/appui-react/statusbar/withStatusFieldProps.js.map +1 -1
  392. package/lib/cjs/appui-react/statusfields/ConditionalField.d.ts +1 -1
  393. package/lib/cjs/appui-react/statusfields/ConditionalField.js +1 -1
  394. package/lib/cjs/appui-react/statusfields/ConditionalField.js.map +1 -1
  395. package/lib/cjs/appui-react/statusfields/FooterModeField.d.ts +1 -1
  396. package/lib/cjs/appui-react/statusfields/FooterModeField.js +1 -1
  397. package/lib/cjs/appui-react/statusfields/FooterModeField.js.map +1 -1
  398. package/lib/cjs/appui-react/statusfields/Indicator.d.ts +4 -4
  399. package/lib/cjs/appui-react/statusfields/Indicator.d.ts.map +1 -1
  400. package/lib/cjs/appui-react/statusfields/Indicator.js +3 -2
  401. package/lib/cjs/appui-react/statusfields/Indicator.js.map +1 -1
  402. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts +1 -1
  403. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  404. package/lib/cjs/appui-react/statusfields/PromptField.d.ts +1 -1
  405. package/lib/cjs/appui-react/statusfields/PromptField.js +1 -1
  406. package/lib/cjs/appui-react/statusfields/PromptField.js.map +1 -1
  407. package/lib/cjs/appui-react/statusfields/StatusFieldProps.d.ts +3 -3
  408. package/lib/cjs/appui-react/statusfields/StatusFieldProps.js.map +1 -1
  409. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +2 -3
  410. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  411. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts +2 -2
  412. package/lib/cjs/appui-react/syncui/BooleanListener.js +1 -1
  413. package/lib/cjs/appui-react/syncui/BooleanListener.js.map +1 -1
  414. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +5 -5
  415. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  416. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +12 -14
  417. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  418. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts +2 -2
  419. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/toolbar/ActionItemButton.js +3 -3
  421. package/lib/cjs/appui-react/toolbar/ActionItemButton.js.map +1 -1
  422. package/lib/cjs/appui-react/toolbar/GroupButtonItem.d.ts +1 -1
  423. package/lib/cjs/appui-react/toolbar/GroupButtonItem.d.ts.map +1 -1
  424. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js +11 -11
  425. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js.map +1 -1
  426. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +5 -5
  427. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  428. package/lib/cjs/appui-react/toolbar/GroupItem.js +11 -12
  429. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  430. package/lib/cjs/appui-react/toolbar/PopupButton.d.ts +4 -4
  431. package/lib/cjs/appui-react/toolbar/PopupButton.d.ts.map +1 -1
  432. package/lib/cjs/appui-react/toolbar/PopupButton.js +6 -7
  433. package/lib/cjs/appui-react/toolbar/PopupButton.js.map +1 -1
  434. package/lib/cjs/appui-react/toolbar/ToolButton.d.ts +2 -2
  435. package/lib/cjs/appui-react/toolbar/ToolButton.d.ts.map +1 -1
  436. package/lib/cjs/appui-react/toolbar/ToolButton.js +2 -3
  437. package/lib/cjs/appui-react/toolbar/ToolButton.js.map +1 -1
  438. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  439. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +5 -7
  440. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  441. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +53 -0
  442. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -0
  443. package/lib/cjs/appui-react/toolbar/ToolbarItem.js +41 -0
  444. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -0
  445. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +14 -0
  446. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -0
  447. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +28 -0
  448. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -0
  449. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js +2 -2
  450. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  451. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -1
  452. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  453. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +12 -13
  454. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  455. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.d.ts.map +1 -1
  456. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js +2 -3
  457. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  458. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.d.ts +1 -1
  459. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js +1 -1
  460. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js.map +1 -1
  461. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js +4 -4
  462. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  463. package/lib/cjs/appui-react/tools/ToolSettingsTools.js +2 -2
  464. package/lib/cjs/appui-react/tools/ToolSettingsTools.js.map +1 -1
  465. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +11 -0
  466. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -0
  467. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js +20 -0
  468. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -0
  469. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.d.ts +9 -0
  470. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.d.ts.map +1 -0
  471. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.js +10 -0
  472. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.js.map +1 -0
  473. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  474. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  475. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  476. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  477. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  478. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  479. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  480. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +2 -2
  481. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  482. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  483. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  484. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  485. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  486. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  487. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +24 -0
  488. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -0
  489. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +19 -0
  490. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -0
  491. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +9 -0
  492. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -0
  493. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js +10 -0
  494. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -0
  495. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  496. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +11 -15
  497. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  498. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +2 -2
  499. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  500. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  501. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts +1 -1
  502. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js +1 -1
  503. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js.map +1 -1
  504. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.d.ts +84 -0
  505. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.d.ts.map +1 -0
  506. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +198 -0
  507. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -0
  508. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  509. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts +3 -33
  510. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  511. package/lib/cjs/appui-react/utils/UiShowHideManager.js +27 -117
  512. package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +1 -1
  513. package/lib/cjs/appui-react/widget-panels/Content.js +3 -3
  514. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  515. package/lib/cjs/appui-react/widget-panels/FloatingWidget.js +2 -2
  516. package/lib/cjs/appui-react/widget-panels/FloatingWidget.js.map +1 -1
  517. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  518. package/lib/cjs/appui-react/widget-panels/Frontstage.js +29 -29
  519. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  520. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts +1 -1
  521. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  522. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.js +6 -6
  523. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  524. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  525. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +18 -17
  526. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  527. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  528. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +1 -2
  529. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  530. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  531. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  532. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  533. package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.d.ts +3 -3
  534. package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.js +2 -2
  535. package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.js.map +1 -1
  536. package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts +3 -3
  537. package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts.map +1 -1
  538. package/lib/cjs/appui-react/widgets/NavigationWidget.js +14 -18
  539. package/lib/cjs/appui-react/widgets/NavigationWidget.js.map +1 -1
  540. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  541. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +8 -12
  542. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  543. package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  544. package/lib/cjs/appui-react/widgets/StableWidgetDef.js +1 -1
  545. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  546. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.d.ts.map +1 -1
  547. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js +2 -2
  548. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  549. package/lib/cjs/appui-react/widgets/ToolWidget.d.ts +3 -3
  550. package/lib/cjs/appui-react/widgets/ToolWidget.d.ts.map +1 -1
  551. package/lib/cjs/appui-react/widgets/ToolWidget.js +4 -6
  552. package/lib/cjs/appui-react/widgets/ToolWidget.js.map +1 -1
  553. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js +3 -3
  554. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  555. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts +1 -1
  556. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js +1 -1
  557. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  558. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  559. package/lib/cjs/appui-react/widgets/Widget.d.ts +1 -1
  560. package/lib/cjs/appui-react/widgets/Widget.js +1 -1
  561. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  562. package/lib/cjs/appui-react/widgets/WidgetControl.js.map +1 -1
  563. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +14 -14
  564. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  565. package/lib/cjs/appui-react/widgets/WidgetDef.js +18 -18
  566. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  567. package/lib/cjs/appui-react/widgets/WidgetProps.d.ts +8 -1
  568. package/lib/cjs/appui-react/widgets/WidgetProps.d.ts.map +1 -1
  569. package/lib/cjs/appui-react/widgets/WidgetProps.js.map +1 -1
  570. package/lib/cjs/appui-react/widgets/WidgetStack.js +2 -2
  571. package/lib/cjs/appui-react/widgets/WidgetStack.js.map +1 -1
  572. package/lib/cjs/appui-react/widgets/WidgetState.d.ts +13 -0
  573. package/lib/cjs/appui-react/widgets/WidgetState.d.ts.map +1 -0
  574. package/lib/cjs/appui-react/widgets/WidgetState.js +16 -0
  575. package/lib/cjs/appui-react/widgets/WidgetState.js.map +1 -0
  576. package/lib/cjs/appui-react/workflow/Task.d.ts +4 -4
  577. package/lib/cjs/appui-react/workflow/Task.d.ts.map +1 -1
  578. package/lib/cjs/appui-react/workflow/Task.js +5 -5
  579. package/lib/cjs/appui-react/workflow/Task.js.map +1 -1
  580. package/lib/cjs/appui-react/workflow/Workflow.d.ts +8 -8
  581. package/lib/cjs/appui-react/workflow/Workflow.js +4 -4
  582. package/lib/cjs/appui-react/workflow/Workflow.js.map +1 -1
  583. package/lib/cjs/appui-react/zones/Zone.d.ts +3 -3
  584. package/lib/cjs/appui-react/zones/Zone.d.ts.map +1 -1
  585. package/lib/cjs/appui-react/zones/Zone.js +5 -5
  586. package/lib/cjs/appui-react/zones/Zone.js.map +1 -1
  587. package/lib/cjs/appui-react/zones/ZoneDef.d.ts +5 -5
  588. package/lib/cjs/appui-react/zones/ZoneDef.d.ts.map +1 -1
  589. package/lib/cjs/appui-react/zones/ZoneDef.js +5 -5
  590. package/lib/cjs/appui-react/zones/ZoneDef.js.map +1 -1
  591. package/lib/cjs/appui-react/zones/toolsettings/DefaultToolSettingsProvider.d.ts +1 -1
  592. package/lib/cjs/appui-react/zones/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  593. package/lib/cjs/appui-react/zones/toolsettings/DefaultToolSettingsProvider.js +6 -8
  594. package/lib/cjs/appui-react/zones/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  595. package/lib/cjs/appui-react/zones/toolsettings/InternalToolSettingsManager.d.ts +50 -0
  596. package/lib/cjs/appui-react/zones/toolsettings/InternalToolSettingsManager.d.ts.map +1 -0
  597. package/lib/cjs/appui-react/zones/toolsettings/InternalToolSettingsManager.js +124 -0
  598. package/lib/cjs/appui-react/zones/toolsettings/InternalToolSettingsManager.js.map +1 -0
  599. package/lib/cjs/appui-react/zones/toolsettings/ToolInformation.d.ts.map +1 -1
  600. package/lib/cjs/appui-react/zones/toolsettings/ToolInformation.js +4 -6
  601. package/lib/cjs/appui-react/zones/toolsettings/ToolInformation.js.map +1 -1
  602. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts +8 -23
  603. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -1
  604. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js +21 -87
  605. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -1
  606. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.d.ts.map +1 -1
  607. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js +6 -9
  608. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -1
  609. package/lib/cjs/appui-react/zones/toolsettings/ToolUiProvider.d.ts +2 -2
  610. package/lib/cjs/appui-react/zones/toolsettings/ToolUiProvider.d.ts.map +1 -1
  611. package/lib/cjs/appui-react/zones/toolsettings/ToolUiProvider.js +1 -1
  612. package/lib/cjs/appui-react/zones/toolsettings/ToolUiProvider.js.map +1 -1
  613. package/lib/cjs/appui-react.d.ts +25 -5
  614. package/lib/cjs/appui-react.d.ts.map +1 -1
  615. package/lib/cjs/appui-react.js +25 -5
  616. package/lib/cjs/appui-react.js.map +1 -1
  617. package/lib/esm/appui-react/UiFramework.d.ts +65 -8
  618. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  619. package/lib/esm/appui-react/UiFramework.js +96 -21
  620. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  621. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  622. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +1 -2
  623. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  624. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +2 -2
  625. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  626. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +2 -2
  627. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  628. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  629. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  630. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  631. package/lib/esm/appui-react/backstage/Backstage.d.ts +4 -4
  632. package/lib/esm/appui-react/backstage/Backstage.js +7 -7
  633. package/lib/esm/appui-react/backstage/Backstage.js.map +1 -1
  634. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  635. package/lib/esm/appui-react/backstage/BackstageComposer.js +1 -0
  636. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  637. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +4 -4
  638. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  639. package/lib/esm/appui-react/backstage/BackstageItem.d.ts +43 -0
  640. package/lib/esm/appui-react/backstage/BackstageItem.d.ts.map +1 -0
  641. package/lib/esm/appui-react/backstage/BackstageItem.js +32 -0
  642. package/lib/esm/appui-react/backstage/BackstageItem.js.map +1 -0
  643. package/lib/esm/appui-react/backstage/BackstageItemProps.d.ts +3 -3
  644. package/lib/esm/appui-react/backstage/BackstageItemProps.js +1 -1
  645. package/lib/esm/appui-react/backstage/BackstageItemProps.js.map +1 -1
  646. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +7 -35
  647. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
  648. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +7 -21
  649. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  650. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +9 -15
  651. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  652. package/lib/esm/appui-react/backstage/BackstageManager.js +15 -29
  653. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  654. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts +2 -2
  655. package/lib/esm/appui-react/backstage/CommandLaunch.js +1 -1
  656. package/lib/esm/appui-react/backstage/CommandLaunch.js.map +1 -1
  657. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts +2 -2
  658. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -1
  659. package/lib/esm/appui-react/backstage/FrontstageLaunch.js +6 -7
  660. package/lib/esm/appui-react/backstage/FrontstageLaunch.js.map +1 -1
  661. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts +23 -0
  662. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -0
  663. package/lib/esm/appui-react/backstage/InternalBackstageManager.js +54 -0
  664. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -0
  665. package/lib/esm/appui-react/backstage/Separator.d.ts +1 -1
  666. package/lib/esm/appui-react/backstage/Separator.js +1 -1
  667. package/lib/esm/appui-react/backstage/Separator.js.map +1 -1
  668. package/lib/esm/appui-react/backstage/TaskLaunch.d.ts +2 -2
  669. package/lib/esm/appui-react/backstage/TaskLaunch.js +1 -1
  670. package/lib/esm/appui-react/backstage/TaskLaunch.js.map +1 -1
  671. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  672. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts +57 -19
  673. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  674. package/lib/esm/appui-react/childwindow/ChildWindowManager.js +74 -150
  675. package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  676. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts +49 -0
  677. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -0
  678. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +202 -0
  679. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -0
  680. package/lib/esm/appui-react/childwindow/{ChildWindowManager.scss → InternalChildWindowManager.scss} +0 -0
  681. package/lib/esm/appui-react/configurableui/ActivityTracker.d.ts.map +1 -1
  682. package/lib/esm/appui-react/configurableui/ActivityTracker.js +4 -3
  683. package/lib/esm/appui-react/configurableui/ActivityTracker.js.map +1 -1
  684. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +5 -5
  685. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  686. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts +13 -37
  687. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
  688. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js +23 -93
  689. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
  690. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts +82 -0
  691. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -0
  692. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +149 -0
  693. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -0
  694. package/lib/esm/appui-react/configurableui/TimeTracker.js +5 -5
  695. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  696. package/lib/esm/appui-react/configurableui/state.d.ts +3 -3
  697. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  698. package/lib/esm/appui-react/configurableui/state.js +2 -2
  699. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  700. package/lib/esm/appui-react/content/ContentGroup.d.ts +1 -1
  701. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  702. package/lib/esm/appui-react/content/ContentGroup.js +4 -4
  703. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  704. package/lib/esm/appui-react/content/ContentLayout.d.ts +1 -1
  705. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  706. package/lib/esm/appui-react/content/ContentLayout.js +30 -15
  707. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  708. package/lib/esm/appui-react/content/ContentLayoutManager.d.ts +1 -1
  709. package/lib/esm/appui-react/content/ContentLayoutManager.d.ts.map +1 -1
  710. package/lib/esm/appui-react/content/ContentLayoutManager.js +11 -37
  711. package/lib/esm/appui-react/content/ContentLayoutManager.js.map +1 -1
  712. package/lib/esm/appui-react/content/ContentViewManager.d.ts +4 -34
  713. package/lib/esm/appui-react/content/ContentViewManager.d.ts.map +1 -1
  714. package/lib/esm/appui-react/content/ContentViewManager.js +21 -112
  715. package/lib/esm/appui-react/content/ContentViewManager.js.map +1 -1
  716. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts +6 -3
  717. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  718. package/lib/esm/appui-react/content/FloatingViewportContent.js +24 -14
  719. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  720. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  721. package/lib/esm/appui-react/content/IModelViewport.js +5 -7
  722. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  723. package/lib/esm/appui-react/content/InternalContentLayoutManager.d.ts +48 -0
  724. package/lib/esm/appui-react/content/InternalContentLayoutManager.d.ts.map +1 -0
  725. package/lib/esm/appui-react/content/InternalContentLayoutManager.js +92 -0
  726. package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -0
  727. package/lib/esm/appui-react/content/InternalContentViewManager.d.ts +80 -0
  728. package/lib/esm/appui-react/content/InternalContentViewManager.d.ts.map +1 -0
  729. package/lib/esm/appui-react/content/InternalContentViewManager.js +206 -0
  730. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -0
  731. package/lib/esm/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  732. package/lib/esm/appui-react/content/ViewportContentControl.js +3 -4
  733. package/lib/esm/appui-react/content/ViewportContentControl.js.map +1 -1
  734. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +1 -1
  735. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  736. package/lib/esm/appui-react/dialog/ContentDialog.js +10 -11
  737. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  738. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts +9 -22
  739. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  740. package/lib/esm/appui-react/dialog/ContentDialogManager.js +23 -84
  741. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  742. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts +48 -0
  743. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -0
  744. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +128 -0
  745. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -0
  746. package/lib/esm/appui-react/dialog/InternalModalDialogManager.d.ts +36 -0
  747. package/lib/esm/appui-react/dialog/InternalModalDialogManager.d.ts.map +1 -0
  748. package/lib/esm/appui-react/dialog/InternalModalDialogManager.js +51 -0
  749. package/lib/esm/appui-react/dialog/InternalModalDialogManager.js.map +1 -0
  750. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.d.ts +46 -0
  751. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.d.ts.map +1 -0
  752. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.js +116 -0
  753. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.js.map +1 -0
  754. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts +7 -12
  755. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  756. package/lib/esm/appui-react/dialog/ModalDialogManager.js +22 -25
  757. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  758. package/lib/esm/appui-react/dialog/ModelessDialog.js +2 -2
  759. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  760. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts +17 -28
  761. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  762. package/lib/esm/appui-react/dialog/ModelessDialogManager.js +35 -84
  763. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  764. package/lib/esm/appui-react/dialog/StandardMessageBox.js +2 -2
  765. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  766. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  767. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +3 -4
  768. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  769. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts +44 -0
  770. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -0
  771. package/lib/esm/appui-react/framework/FrameworkBackstage.js +9 -0
  772. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -0
  773. package/lib/esm/appui-react/framework/FrameworkChildWindows.d.ts +59 -0
  774. package/lib/esm/appui-react/framework/FrameworkChildWindows.d.ts.map +1 -0
  775. package/lib/esm/appui-react/framework/FrameworkChildWindows.js +9 -0
  776. package/lib/esm/appui-react/framework/FrameworkChildWindows.js.map +1 -0
  777. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +155 -0
  778. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -0
  779. package/lib/esm/appui-react/framework/FrameworkContent.js +25 -0
  780. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -0
  781. package/lib/esm/appui-react/framework/FrameworkControls.d.ts +43 -0
  782. package/lib/esm/appui-react/framework/FrameworkControls.d.ts.map +1 -0
  783. package/lib/esm/appui-react/framework/FrameworkControls.js +2 -0
  784. package/lib/esm/appui-react/framework/FrameworkControls.js.map +1 -0
  785. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +79 -0
  786. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts.map +1 -0
  787. package/lib/esm/appui-react/framework/FrameworkDialogs.js +19 -0
  788. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -0
  789. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +286 -0
  790. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -0
  791. package/lib/esm/appui-react/framework/FrameworkFrontstages.js +53 -0
  792. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -0
  793. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +100 -0
  794. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -0
  795. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js +2 -0
  796. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -0
  797. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +52 -0
  798. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts.map +1 -0
  799. package/lib/esm/appui-react/framework/FrameworkToolSettings.js +14 -0
  800. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -0
  801. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +37 -0
  802. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts.map +1 -0
  803. package/lib/esm/appui-react/framework/FrameworkVisibility.js +2 -0
  804. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -0
  805. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +14 -14
  806. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  807. package/lib/esm/appui-react/frontstage/Frontstage.js +16 -17
  808. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -1
  809. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts +6 -6
  810. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  811. package/lib/esm/appui-react/frontstage/FrontstageComposer.js +51 -51
  812. package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  813. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +17 -17
  814. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  815. package/lib/esm/appui-react/frontstage/FrontstageDef.js +36 -38
  816. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  817. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts +98 -254
  818. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  819. package/lib/esm/appui-react/frontstage/FrontstageManager.js +155 -463
  820. package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
  821. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +1 -1
  822. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  823. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +240 -0
  824. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -0
  825. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +534 -0
  826. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -0
  827. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts +1 -1
  828. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  829. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +9 -8
  830. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  831. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +2 -2
  832. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  833. package/lib/esm/appui-react/frontstage/StageUsage.d.ts +15 -0
  834. package/lib/esm/appui-react/frontstage/StageUsage.d.ts.map +1 -0
  835. package/lib/esm/appui-react/frontstage/StageUsage.js +14 -0
  836. package/lib/esm/appui-react/frontstage/StageUsage.js.map +1 -0
  837. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  838. package/lib/esm/appui-react/hooks/useActiveStageId.d.ts.map +1 -1
  839. package/lib/esm/appui-react/hooks/useActiveStageId.js +4 -4
  840. package/lib/esm/appui-react/hooks/useActiveStageId.js.map +1 -1
  841. package/lib/esm/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  842. package/lib/esm/appui-react/hooks/useActiveViewport.js +5 -5
  843. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  844. package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js +4 -4
  845. package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
  846. package/lib/esm/appui-react/hooks/useEscapeSetFocusToHome.js +2 -2
  847. package/lib/esm/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  848. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts +4 -4
  849. package/lib/esm/appui-react/hooks/useFrameworkVersion.js +3 -3
  850. package/lib/esm/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  851. package/lib/esm/appui-react/imodel-components/Common.d.ts +2 -0
  852. package/lib/esm/appui-react/imodel-components/Common.d.ts.map +1 -1
  853. package/lib/esm/appui-react/imodel-components/Common.js +1 -0
  854. package/lib/esm/appui-react/imodel-components/Common.js.map +1 -1
  855. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +6 -0
  856. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -1
  857. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js +2 -0
  858. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -1
  859. package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.d.ts +6 -0
  860. package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.d.ts.map +1 -1
  861. package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.js +6 -0
  862. package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.js.map +1 -1
  863. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.d.ts +5 -1
  864. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.d.ts.map +1 -1
  865. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.js +4 -0
  866. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.js.map +1 -1
  867. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +9 -2
  868. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  869. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +5 -1
  870. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  871. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts +2 -0
  872. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  873. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js +2 -0
  874. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  875. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +3 -0
  876. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -1
  877. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +2 -0
  878. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -1
  879. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts +2 -0
  880. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts.map +1 -1
  881. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js +2 -0
  882. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js.map +1 -1
  883. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +40 -0
  884. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -0
  885. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +108 -0
  886. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -0
  887. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +5 -25
  888. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  889. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +20 -62
  890. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  891. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts +5 -5
  892. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -1
  893. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js +1 -1
  894. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -1
  895. package/lib/esm/appui-react/messages/ActivityMessage.d.ts +2 -2
  896. package/lib/esm/appui-react/messages/ActivityMessage.js +1 -1
  897. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  898. package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts +2 -2
  899. package/lib/esm/appui-react/messages/ActivityMessagePopup.js +1 -1
  900. package/lib/esm/appui-react/messages/ActivityMessagePopup.js.map +1 -1
  901. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  902. package/lib/esm/appui-react/messages/MessageManager.js +5 -4
  903. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  904. package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts +2 -2
  905. package/lib/esm/appui-react/messages/StatusMessageRenderer.js +1 -1
  906. package/lib/esm/appui-react/messages/StatusMessageRenderer.js.map +1 -1
  907. package/lib/esm/appui-react/messages/StatusMessagesContainer.d.ts +1 -1
  908. package/lib/esm/appui-react/messages/StatusMessagesContainer.js +1 -1
  909. package/lib/esm/appui-react/messages/StatusMessagesContainer.js.map +1 -1
  910. package/lib/esm/appui-react/messages/StickyMessage.d.ts +2 -2
  911. package/lib/esm/appui-react/messages/StickyMessage.js +1 -1
  912. package/lib/esm/appui-react/messages/StickyMessage.js.map +1 -1
  913. package/lib/esm/appui-react/messages/ToastMessage.d.ts +2 -2
  914. package/lib/esm/appui-react/messages/ToastMessage.js +1 -1
  915. package/lib/esm/appui-react/messages/ToastMessage.js.map +1 -1
  916. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js +1 -2
  917. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  918. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +1 -1
  919. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  920. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +2 -3
  921. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  922. package/lib/esm/appui-react/pickers/ListPicker.d.ts +1 -1
  923. package/lib/esm/appui-react/pickers/ListPicker.js +5 -5
  924. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  925. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  926. package/lib/esm/appui-react/pickers/ViewSelector.js +1 -2
  927. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  928. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts +1 -1
  929. package/lib/esm/appui-react/safearea/SafeAreaContext.js +1 -1
  930. package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
  931. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.d.ts +1 -1
  932. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js +1 -1
  933. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js.map +1 -1
  934. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  935. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +4 -5
  936. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  937. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  938. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +3 -4
  939. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  940. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +2 -2
  941. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  942. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +16 -17
  943. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  944. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  945. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +1 -1
  946. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  947. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  948. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +4 -4
  949. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  950. package/lib/esm/appui-react/shared/ItemDefBase.js +3 -3
  951. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  952. package/lib/esm/appui-react/shared/ItemProps.d.ts +4 -4
  953. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  954. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -1
  955. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js +2 -2
  956. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -1
  957. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts +5 -5
  958. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  959. package/lib/esm/appui-react/stagepanels/StagePanel.js +6 -6
  960. package/lib/esm/appui-react/stagepanels/StagePanel.js.map +1 -1
  961. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  962. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +9 -9
  963. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  964. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts +2 -2
  965. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js +3 -3
  966. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js.map +1 -1
  967. package/lib/esm/appui-react/stagepanels/StagePanelLocation.d.ts +13 -0
  968. package/lib/esm/appui-react/stagepanels/StagePanelLocation.d.ts.map +1 -0
  969. package/lib/esm/appui-react/stagepanels/StagePanelLocation.js +13 -0
  970. package/lib/esm/appui-react/stagepanels/StagePanelLocation.js.map +1 -0
  971. package/lib/esm/appui-react/stagepanels/StagePanelSection.d.ts +13 -0
  972. package/lib/esm/appui-react/stagepanels/StagePanelSection.d.ts.map +1 -0
  973. package/lib/esm/appui-react/stagepanels/StagePanelSection.js +13 -0
  974. package/lib/esm/appui-react/stagepanels/StagePanelSection.js.map +1 -0
  975. package/lib/esm/appui-react/statusbar/LabelIndicator.js +2 -1
  976. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  977. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +1 -1
  978. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  979. package/lib/esm/appui-react/statusbar/StatusBar.js +2 -2
  980. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  981. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  982. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +1 -0
  983. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  984. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts +52 -2
  985. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  986. package/lib/esm/appui-react/statusbar/StatusBarItem.js +29 -1
  987. package/lib/esm/appui-react/statusbar/StatusBarItem.js.map +1 -1
  988. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts +23 -4
  989. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  990. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js +31 -1
  991. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  992. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  993. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js +1 -1
  994. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  995. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts +3 -3
  996. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  997. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  998. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +2 -2
  999. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  1000. package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.d.ts +1 -1
  1001. package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.js +1 -1
  1002. package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.js.map +1 -1
  1003. package/lib/esm/appui-react/statusbar/withStatusFieldProps.d.ts +1 -1
  1004. package/lib/esm/appui-react/statusbar/withStatusFieldProps.js +1 -1
  1005. package/lib/esm/appui-react/statusbar/withStatusFieldProps.js.map +1 -1
  1006. package/lib/esm/appui-react/statusfields/ConditionalField.d.ts +1 -1
  1007. package/lib/esm/appui-react/statusfields/ConditionalField.js +1 -1
  1008. package/lib/esm/appui-react/statusfields/ConditionalField.js.map +1 -1
  1009. package/lib/esm/appui-react/statusfields/FooterModeField.d.ts +1 -1
  1010. package/lib/esm/appui-react/statusfields/FooterModeField.js +1 -1
  1011. package/lib/esm/appui-react/statusfields/FooterModeField.js.map +1 -1
  1012. package/lib/esm/appui-react/statusfields/Indicator.d.ts +4 -4
  1013. package/lib/esm/appui-react/statusfields/Indicator.d.ts.map +1 -1
  1014. package/lib/esm/appui-react/statusfields/Indicator.js +3 -2
  1015. package/lib/esm/appui-react/statusfields/Indicator.js.map +1 -1
  1016. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts +1 -1
  1017. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  1018. package/lib/esm/appui-react/statusfields/PromptField.d.ts +1 -1
  1019. package/lib/esm/appui-react/statusfields/PromptField.js +1 -1
  1020. package/lib/esm/appui-react/statusfields/PromptField.js.map +1 -1
  1021. package/lib/esm/appui-react/statusfields/StatusFieldProps.d.ts +3 -3
  1022. package/lib/esm/appui-react/statusfields/StatusFieldProps.js.map +1 -1
  1023. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +2 -3
  1024. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1025. package/lib/esm/appui-react/syncui/BooleanListener.d.ts +2 -2
  1026. package/lib/esm/appui-react/syncui/BooleanListener.js +1 -1
  1027. package/lib/esm/appui-react/syncui/BooleanListener.js.map +1 -1
  1028. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +5 -5
  1029. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1030. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +12 -14
  1031. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1032. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts +2 -2
  1033. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  1034. package/lib/esm/appui-react/toolbar/ActionItemButton.js +3 -3
  1035. package/lib/esm/appui-react/toolbar/ActionItemButton.js.map +1 -1
  1036. package/lib/esm/appui-react/toolbar/GroupButtonItem.d.ts +1 -1
  1037. package/lib/esm/appui-react/toolbar/GroupButtonItem.d.ts.map +1 -1
  1038. package/lib/esm/appui-react/toolbar/GroupButtonItem.js +9 -9
  1039. package/lib/esm/appui-react/toolbar/GroupButtonItem.js.map +1 -1
  1040. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +5 -5
  1041. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1042. package/lib/esm/appui-react/toolbar/GroupItem.js +11 -12
  1043. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1044. package/lib/esm/appui-react/toolbar/PopupButton.d.ts +4 -4
  1045. package/lib/esm/appui-react/toolbar/PopupButton.d.ts.map +1 -1
  1046. package/lib/esm/appui-react/toolbar/PopupButton.js +6 -7
  1047. package/lib/esm/appui-react/toolbar/PopupButton.js.map +1 -1
  1048. package/lib/esm/appui-react/toolbar/ToolButton.d.ts +2 -2
  1049. package/lib/esm/appui-react/toolbar/ToolButton.d.ts.map +1 -1
  1050. package/lib/esm/appui-react/toolbar/ToolButton.js +2 -3
  1051. package/lib/esm/appui-react/toolbar/ToolButton.js.map +1 -1
  1052. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  1053. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +5 -7
  1054. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  1055. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +53 -0
  1056. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -0
  1057. package/lib/esm/appui-react/toolbar/ToolbarItem.js +35 -0
  1058. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -0
  1059. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +14 -0
  1060. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -0
  1061. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +25 -0
  1062. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -0
  1063. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js +2 -2
  1064. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  1065. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -1
  1066. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  1067. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +12 -13
  1068. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1069. package/lib/esm/appui-react/tools/FrameworkToolAdmin.d.ts.map +1 -1
  1070. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js +2 -3
  1071. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  1072. package/lib/esm/appui-react/tools/MarkupToolDefinitions.d.ts +1 -1
  1073. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js +1 -1
  1074. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js.map +1 -1
  1075. package/lib/esm/appui-react/tools/RestoreLayoutTool.js +4 -4
  1076. package/lib/esm/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  1077. package/lib/esm/appui-react/tools/ToolSettingsTools.js +2 -2
  1078. package/lib/esm/appui-react/tools/ToolSettingsTools.js.map +1 -1
  1079. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +11 -0
  1080. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -0
  1081. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js +16 -0
  1082. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -0
  1083. package/lib/esm/appui-react/ui-items-provider/ProviderItem.d.ts +9 -0
  1084. package/lib/esm/appui-react/ui-items-provider/ProviderItem.d.ts.map +1 -0
  1085. package/lib/esm/appui-react/ui-items-provider/ProviderItem.js +9 -0
  1086. package/lib/esm/appui-react/ui-items-provider/ProviderItem.js.map +1 -0
  1087. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1088. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1089. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1090. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1091. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1092. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  1093. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1094. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +2 -2
  1095. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1096. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1097. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  1098. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1099. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1100. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1101. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +24 -0
  1102. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -0
  1103. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +15 -0
  1104. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -0
  1105. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +9 -0
  1106. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -0
  1107. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js +9 -0
  1108. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -0
  1109. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  1110. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +11 -15
  1111. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1112. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +2 -2
  1113. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1114. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1115. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts +1 -1
  1116. package/lib/esm/appui-react/uistate/UserSettingsStorage.js +1 -1
  1117. package/lib/esm/appui-react/uistate/UserSettingsStorage.js.map +1 -1
  1118. package/lib/esm/appui-react/utils/InternalUiShowHideManager.d.ts +84 -0
  1119. package/lib/esm/appui-react/utils/InternalUiShowHideManager.d.ts.map +1 -0
  1120. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +193 -0
  1121. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -0
  1122. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1123. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts +3 -33
  1124. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  1125. package/lib/esm/appui-react/utils/UiShowHideManager.js +27 -115
  1126. package/lib/esm/appui-react/utils/UiShowHideManager.js.map +1 -1
  1127. package/lib/esm/appui-react/widget-panels/Content.js +3 -3
  1128. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  1129. package/lib/esm/appui-react/widget-panels/FloatingWidget.js +2 -2
  1130. package/lib/esm/appui-react/widget-panels/FloatingWidget.js.map +1 -1
  1131. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1132. package/lib/esm/appui-react/widget-panels/Frontstage.js +29 -29
  1133. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1134. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts +1 -1
  1135. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  1136. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.js +6 -6
  1137. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  1138. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  1139. package/lib/esm/appui-react/widget-panels/ToolSettings.js +18 -17
  1140. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  1141. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1142. package/lib/esm/appui-react/widgets/BackstageAppButton.js +1 -2
  1143. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1144. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1145. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1146. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  1147. package/lib/esm/appui-react/widgets/DefaultNavigationWidget.d.ts +3 -3
  1148. package/lib/esm/appui-react/widgets/DefaultNavigationWidget.js +2 -2
  1149. package/lib/esm/appui-react/widgets/DefaultNavigationWidget.js.map +1 -1
  1150. package/lib/esm/appui-react/widgets/NavigationWidget.d.ts +3 -3
  1151. package/lib/esm/appui-react/widgets/NavigationWidget.d.ts.map +1 -1
  1152. package/lib/esm/appui-react/widgets/NavigationWidget.js +14 -18
  1153. package/lib/esm/appui-react/widgets/NavigationWidget.js.map +1 -1
  1154. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1155. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +8 -12
  1156. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1157. package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  1158. package/lib/esm/appui-react/widgets/StableWidgetDef.js +1 -1
  1159. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  1160. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.d.ts.map +1 -1
  1161. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js +2 -2
  1162. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  1163. package/lib/esm/appui-react/widgets/ToolWidget.d.ts +3 -3
  1164. package/lib/esm/appui-react/widgets/ToolWidget.d.ts.map +1 -1
  1165. package/lib/esm/appui-react/widgets/ToolWidget.js +4 -6
  1166. package/lib/esm/appui-react/widgets/ToolWidget.js.map +1 -1
  1167. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js +3 -3
  1168. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  1169. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts +1 -1
  1170. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js +1 -1
  1171. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  1172. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  1173. package/lib/esm/appui-react/widgets/Widget.d.ts +1 -1
  1174. package/lib/esm/appui-react/widgets/Widget.js +1 -1
  1175. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1176. package/lib/esm/appui-react/widgets/WidgetControl.js.map +1 -1
  1177. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +14 -14
  1178. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1179. package/lib/esm/appui-react/widgets/WidgetDef.js +18 -18
  1180. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1181. package/lib/esm/appui-react/widgets/WidgetProps.d.ts +8 -1
  1182. package/lib/esm/appui-react/widgets/WidgetProps.d.ts.map +1 -1
  1183. package/lib/esm/appui-react/widgets/WidgetProps.js.map +1 -1
  1184. package/lib/esm/appui-react/widgets/WidgetStack.js +2 -2
  1185. package/lib/esm/appui-react/widgets/WidgetStack.js.map +1 -1
  1186. package/lib/esm/appui-react/widgets/WidgetState.d.ts +13 -0
  1187. package/lib/esm/appui-react/widgets/WidgetState.d.ts.map +1 -0
  1188. package/lib/esm/appui-react/widgets/WidgetState.js +13 -0
  1189. package/lib/esm/appui-react/widgets/WidgetState.js.map +1 -0
  1190. package/lib/esm/appui-react/workflow/Task.d.ts +4 -4
  1191. package/lib/esm/appui-react/workflow/Task.d.ts.map +1 -1
  1192. package/lib/esm/appui-react/workflow/Task.js +5 -5
  1193. package/lib/esm/appui-react/workflow/Task.js.map +1 -1
  1194. package/lib/esm/appui-react/workflow/Workflow.d.ts +8 -8
  1195. package/lib/esm/appui-react/workflow/Workflow.js +4 -4
  1196. package/lib/esm/appui-react/workflow/Workflow.js.map +1 -1
  1197. package/lib/esm/appui-react/zones/Zone.d.ts +3 -3
  1198. package/lib/esm/appui-react/zones/Zone.d.ts.map +1 -1
  1199. package/lib/esm/appui-react/zones/Zone.js +5 -5
  1200. package/lib/esm/appui-react/zones/Zone.js.map +1 -1
  1201. package/lib/esm/appui-react/zones/ZoneDef.d.ts +5 -5
  1202. package/lib/esm/appui-react/zones/ZoneDef.d.ts.map +1 -1
  1203. package/lib/esm/appui-react/zones/ZoneDef.js +5 -5
  1204. package/lib/esm/appui-react/zones/ZoneDef.js.map +1 -1
  1205. package/lib/esm/appui-react/zones/toolsettings/DefaultToolSettingsProvider.d.ts +1 -1
  1206. package/lib/esm/appui-react/zones/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  1207. package/lib/esm/appui-react/zones/toolsettings/DefaultToolSettingsProvider.js +6 -8
  1208. package/lib/esm/appui-react/zones/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  1209. package/lib/esm/appui-react/zones/toolsettings/InternalToolSettingsManager.d.ts +50 -0
  1210. package/lib/esm/appui-react/zones/toolsettings/InternalToolSettingsManager.d.ts.map +1 -0
  1211. package/lib/esm/appui-react/zones/toolsettings/InternalToolSettingsManager.js +120 -0
  1212. package/lib/esm/appui-react/zones/toolsettings/InternalToolSettingsManager.js.map +1 -0
  1213. package/lib/esm/appui-react/zones/toolsettings/ToolInformation.d.ts.map +1 -1
  1214. package/lib/esm/appui-react/zones/toolsettings/ToolInformation.js +4 -6
  1215. package/lib/esm/appui-react/zones/toolsettings/ToolInformation.js.map +1 -1
  1216. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts +8 -23
  1217. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -1
  1218. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js +20 -85
  1219. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -1
  1220. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.d.ts.map +1 -1
  1221. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js +6 -9
  1222. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -1
  1223. package/lib/esm/appui-react/zones/toolsettings/ToolUiProvider.d.ts +2 -2
  1224. package/lib/esm/appui-react/zones/toolsettings/ToolUiProvider.d.ts.map +1 -1
  1225. package/lib/esm/appui-react/zones/toolsettings/ToolUiProvider.js +1 -1
  1226. package/lib/esm/appui-react/zones/toolsettings/ToolUiProvider.js.map +1 -1
  1227. package/lib/esm/appui-react.d.ts +25 -5
  1228. package/lib/esm/appui-react.d.ts.map +1 -1
  1229. package/lib/esm/appui-react.js +25 -5
  1230. package/lib/esm/appui-react.js.map +1 -1
  1231. package/package.json +45 -35
@@ -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,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAGtH,mDAAmD;AAEnD;;;GAGG;AACH,MAAM,CAAN,IAAY,sBAcX;AAdD,WAAY,sBAAsB;IAChC,qEAA2C,CAAA;IAC3C,+DAAqC,CAAA;IACrC,yEAA+C,CAAA;IAC/C,gFAAsD,CAAA;IACtD,oFAA0D,CAAA;IAC1D,uCAAuC;IACvC,sFAA4D,CAAA;IAC5D,mFAAyD,CAAA;IACzD,yGAA+E,CAAA;IAC/E,2FAAiE,CAAA;IACjE,0FAAgE,CAAA;IAChE,2GAAiF,CAAA;IACjF,kFAAwD,CAAA;AAC1D,CAAC,EAdW,sBAAsB,KAAtB,sBAAsB,QAcjC;AAqBD,kDAAkD;AAClD,MAAM,YAAY,GAAwB;IACxC,QAAQ,EAAE,QAAQ,CAAC,eAAyB;IAC5C,UAAU,EAAE,EAAE;IACd,KAAK,EAAE,4BAA4B;IACnC,aAAa,EAAE,sBAAsB;IACrC,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,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,0BAA0B,CAAC,CAAC;YACtD,OAAO,EAAE,GAAG,KAAK,EAAE,0BAA0B,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACjE;QACD,KAAK,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;YACjD,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,mBAAmB,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SAC1D;QACD,KAAK,sBAAsB,CAAC,0BAA0B,CAAC,CAAC;YACtD,OAAO,EAAE,GAAG,KAAK,EAAE,0BAA0B,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACjE;QACD,KAAK,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;YAC7C,OAAO,EAAE,GAAG,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACrD;KACF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module 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, TOOLBAR_OPACITY_DEFAULT, 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 /** @deprecated UI1.0 is deprecated. */\r\n SetFrameworkVersion = \"configurableui:set-framework-version\",\r\n SetShowWidgetIcon = \"configurableui:set-show-widget-icon\",\r\n AutoCollapseUnpinnedPanels = \"configurableui:set-auto-collapse-unpinned-panels\",\r\n SetViewOverlayDisplay = \"configurableui:set-view-overlay-display\",\r\n AnimateToolSettings = \"configurableui:set-animate-tool-settings\",\r\n UseToolAsToolSettingsLabel = \"configurableui:set-use-tool-as-tool-settings-label\",\r\n SetToolbarOpacity = \"configurableui:set-toolbar-opacity\",\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 /** @deprecated UI1.0 is deprecated. */\r\n frameworkVersion: FrameworkVersionId; // eslint-disable-line deprecation/deprecation\r\n showWidgetIcon: boolean;\r\n autoCollapseUnpinnedPanels: boolean;\r\n viewOverlayDisplay: boolean;\r\n animateToolSettings: boolean;\r\n useToolAsToolSettingsLabel: boolean;\r\n toolbarOpacity: number;\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 autoCollapseUnpinnedPanels: false,\r\n viewOverlayDisplay: true,\r\n animateToolSettings: false,\r\n useToolAsToolSettingsLabel: false,\r\n toolbarOpacity: TOOLBAR_OPACITY_DEFAULT,\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 /** @deprecated UI1.0 is deprecated. */\r\n setFrameworkVersion: (frameworkVersion: FrameworkVersionId) => createAction(ConfigurableUiActionId.SetFrameworkVersion, frameworkVersion), // eslint-disable-line deprecation/deprecation\r\n setShowWidgetIcon: (showWidgetIcon: boolean) => createAction(ConfigurableUiActionId.SetShowWidgetIcon, showWidgetIcon),\r\n setAutoCollapseUnpinnedPanels: (autoCollapse: boolean) => createAction(ConfigurableUiActionId.AutoCollapseUnpinnedPanels, autoCollapse),\r\n setViewOverlayDisplay: (displayViewOverlay: boolean) => createAction(ConfigurableUiActionId.SetViewOverlayDisplay, displayViewOverlay),\r\n setAnimateToolSettings: (animateToolSettings: boolean) => createAction(ConfigurableUiActionId.AnimateToolSettings, animateToolSettings),\r\n setUseToolAsToolSettingsLabel: (useToolAsToolSettingsLabel: boolean) => createAction(ConfigurableUiActionId.UseToolAsToolSettingsLabel, useToolAsToolSettingsLabel),\r\n setToolbarOpacity: (opacity: number) => createAction(ConfigurableUiActionId.SetToolbarOpacity, opacity),\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: { // eslint-disable-line deprecation/deprecation\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.AutoCollapseUnpinnedPanels: {\r\n return { ...state, autoCollapseUnpinnedPanels: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetViewOverlayDisplay: {\r\n return { ...state, viewOverlayDisplay: action.payload };\r\n }\r\n case ConfigurableUiActionId.AnimateToolSettings: {\r\n return { ...state, animateToolSettings: action.payload };\r\n }\r\n case ConfigurableUiActionId.UseToolAsToolSettingsLabel: {\r\n return { ...state, useToolAsToolSettingsLabel: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetToolbarOpacity: {\r\n return { ...state, toolbarOpacity: 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,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAGtH,mDAAmD;AAEnD;;;GAGG;AACH,MAAM,CAAN,IAAY,sBAcX;AAdD,WAAY,sBAAsB;IAChC,qEAA2C,CAAA;IAC3C,+DAAqC,CAAA;IACrC,yEAA+C,CAAA;IAC/C,gFAAsD,CAAA;IACtD,oFAA0D,CAAA;IAC1D,+CAA+C;IAC/C,sFAA4D,CAAA;IAC5D,mFAAyD,CAAA;IACzD,yGAA+E,CAAA;IAC/E,2FAAiE,CAAA;IACjE,0FAAgE,CAAA;IAChE,2GAAiF,CAAA;IACjF,kFAAwD,CAAA;AAC1D,CAAC,EAdW,sBAAsB,KAAtB,sBAAsB,QAcjC;AAqBD,kDAAkD;AAClD,MAAM,YAAY,GAAwB;IACxC,QAAQ,EAAE,QAAQ,CAAC,eAAyB;IAC5C,UAAU,EAAE,EAAE;IACd,KAAK,EAAE,4BAA4B;IACnC,aAAa,EAAE,sBAAsB;IACrC,kBAAkB,EAAE,KAAK;IACzB,gBAAgB,EAAE,GAAG;IACrB,cAAc,EAAE,IAAI;IACpB,0BAA0B,EAAE,KAAK;IACjC,kBAAkB,EAAE,IAAI;IACxB,mBAAmB,EAAE,KAAK;IAC1B,0BAA0B,EAAE,KAAK;IACjC,cAAc,EAAE,uBAAuB;CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,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0BAA0B,CAAC,CAAC;YACtD,OAAO,EAAE,GAAG,KAAK,EAAE,0BAA0B,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACjE;QACD,KAAK,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;YACjD,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,mBAAmB,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SAC1D;QACD,KAAK,sBAAsB,CAAC,0BAA0B,CAAC,CAAC;YACtD,OAAO,EAAE,GAAG,KAAK,EAAE,0BAA0B,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACjE;QACD,KAAK,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;YAC7C,OAAO,EAAE,GAAG,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACrD;KACF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module 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, TOOLBAR_OPACITY_DEFAULT, 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 /** @deprecated in 3.6. UI1.0 is deprecated. */\r\n SetFrameworkVersion = \"configurableui:set-framework-version\",\r\n SetShowWidgetIcon = \"configurableui:set-show-widget-icon\",\r\n AutoCollapseUnpinnedPanels = \"configurableui:set-auto-collapse-unpinned-panels\",\r\n SetViewOverlayDisplay = \"configurableui:set-view-overlay-display\",\r\n AnimateToolSettings = \"configurableui:set-animate-tool-settings\",\r\n UseToolAsToolSettingsLabel = \"configurableui:set-use-tool-as-tool-settings-label\",\r\n SetToolbarOpacity = \"configurableui:set-toolbar-opacity\",\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 /** @deprecated in 3.6. UI1.0 is deprecated. */\r\n frameworkVersion: FrameworkVersionId; // eslint-disable-line deprecation/deprecation\r\n showWidgetIcon: boolean;\r\n autoCollapseUnpinnedPanels: boolean;\r\n viewOverlayDisplay: boolean;\r\n animateToolSettings: boolean;\r\n useToolAsToolSettingsLabel: boolean;\r\n toolbarOpacity: number;\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 autoCollapseUnpinnedPanels: false,\r\n viewOverlayDisplay: true,\r\n animateToolSettings: false,\r\n useToolAsToolSettingsLabel: false,\r\n toolbarOpacity: TOOLBAR_OPACITY_DEFAULT,\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 /** @deprecated in 3.6. UI1.0 is deprecated. */\r\n setFrameworkVersion: (frameworkVersion: FrameworkVersionId) => createAction(ConfigurableUiActionId.SetFrameworkVersion, frameworkVersion), // eslint-disable-line deprecation/deprecation\r\n setShowWidgetIcon: (showWidgetIcon: boolean) => createAction(ConfigurableUiActionId.SetShowWidgetIcon, showWidgetIcon),\r\n setAutoCollapseUnpinnedPanels: (autoCollapse: boolean) => createAction(ConfigurableUiActionId.AutoCollapseUnpinnedPanels, autoCollapse),\r\n setViewOverlayDisplay: (displayViewOverlay: boolean) => createAction(ConfigurableUiActionId.SetViewOverlayDisplay, displayViewOverlay),\r\n setAnimateToolSettings: (animateToolSettings: boolean) => createAction(ConfigurableUiActionId.AnimateToolSettings, animateToolSettings),\r\n setUseToolAsToolSettingsLabel: (useToolAsToolSettingsLabel: boolean) => createAction(ConfigurableUiActionId.UseToolAsToolSettingsLabel, useToolAsToolSettingsLabel),\r\n setToolbarOpacity: (opacity: number) => createAction(ConfigurableUiActionId.SetToolbarOpacity, opacity),\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: { // eslint-disable-line deprecation/deprecation\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.AutoCollapseUnpinnedPanels: {\r\n return { ...state, autoCollapseUnpinnedPanels: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetViewOverlayDisplay: {\r\n return { ...state, viewOverlayDisplay: action.payload };\r\n }\r\n case ConfigurableUiActionId.AnimateToolSettings: {\r\n return { ...state, animateToolSettings: action.payload };\r\n }\r\n case ConfigurableUiActionId.UseToolAsToolSettingsLabel: {\r\n return { ...state, useToolAsToolSettingsLabel: action.payload };\r\n }\r\n case ConfigurableUiActionId.SetToolbarOpacity: {\r\n return { ...state, toolbarOpacity: action.payload };\r\n }\r\n }\r\n return outState;\r\n}\r\n"]}
@@ -36,7 +36,7 @@ export interface ContentGroupProps {
36
36
  */
37
37
  export declare abstract class ContentGroupProvider {
38
38
  /** Return the contentGroup based on the `FrontstageProps`.
39
- * @deprecated Implement using `contentGroup` instead.
39
+ * @deprecated in 3.5. Implement using `contentGroup` instead.
40
40
  */
41
41
  abstract provideContentGroup(props: FrontstageProps): Promise<ContentGroup>;
42
42
  /** Return the contentGroup based on the `FrontstageConfig`.
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGroup.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentGroup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAW,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAA0B,gCAAgC,EAA6B,MAAM,yCAAyC,CAAC;AAG9I,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,oFAAoF;IACpF,OAAO,EAAE,MAAM,GAAG,gCAAgC,CAAC;IACnD,gEAAgE;IAChE,eAAe,CAAC,EAAE,GAAG,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,mKAAmK;IACnK,EAAE,EAAE,MAAM,CAAC;IACX,mEAAmE;IACnE,MAAM,EAAE,kBAAkB,CAAC;IAC3B,kEAAkE;IAClE,QAAQ,EAAE,YAAY,EAAE,CAAC;CAC1B;AAED;;;GAGG;AACH,8BAAsB,oBAAoB;IACxC;;OAEG;IACH,QAAQ,CAAC,mBAAmB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC;IAE3E;;OAEG;IACI,YAAY,CAAC,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;IAErE;;OAEG;IACI,kBAAkB,CAAC,iBAAiB,E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AAY,KAAK,IAAI,CAAC;AAE9D;;GAEG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAK;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACxC,OAAO,CAAC,gBAAgB,CAAqC;IAC7D,OAAO,CAAC,cAAc,CAAqC;IAE3D,IAAW,EAAE,WAEZ;gBAEW,iBAAiB,EAAE,iBAAiB;IAQhD,sFAAsF;IAC/E,iBAAiB,CAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IA+BhG,wEAAwE;IACjE,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAIpE,iFAAiF;IAC1E,eAAe,IAAI,KAAK,CAAC,SAAS,EAAE;IAgB3C,kGAAkG;IAC3F,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,cAAc,GAAG,SAAS;IAc/E,uFAAuF;IAChF,mBAAmB;IAI1B,4EAA4E;IACrE,kBAAkB,IAAI,cAAc,EAAE;IAa7C,6CAA6C;IACtC,uBAAuB,IAAI,IAAI;IAItC,uCAAuC;IAChC,iBAAiB,IAAI,IAAI;IAEhC,0CAA0C;IACnC,oBAAoB,IAAI,IAAI;IAInC;;OAEG;IACI,MAAM,CAAC,eAAe,CAAC,EAAE,eAAe,GAAG,iBAAiB;IAuBnE;;OAEG;IACI,YAAY,IAAI,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;CAczD"}
@@ -7,8 +7,8 @@
7
7
  */
8
8
  import { UiError } from "@itwin/appui-abstract";
9
9
  import { ConfigurableCreateInfo, ConfigurableUiControlType } from "../configurableui/ConfigurableUiControl";
10
- import { ConfigurableUiManager } from "../configurableui/ConfigurableUiManager";
11
10
  import { UiFramework } from "../UiFramework";
11
+ import { InternalConfigurableUiManager } from "../configurableui/InternalConfigurableUiManager";
12
12
  /** Abstract class that can be implemented and specified by frontstage to dynamically construct
13
13
  * content group just prior to activating the frontstage.
14
14
  * @public
@@ -53,8 +53,8 @@ export class ContentGroup {
53
53
  if (!this._contentControls.get(contentProps.id)) {
54
54
  let usedClassId = "";
55
55
  if (typeof contentProps.classId === "string") {
56
- if (!this._contentControls.get(contentProps.id) && ConfigurableUiManager.isControlRegistered(contentProps.classId)) {
57
- contentControl = ConfigurableUiManager.createControl(contentProps.classId, id, contentProps.applicationData, contentProps.id);
56
+ if (!this._contentControls.get(contentProps.id) && UiFramework.controls.isRegistered(contentProps.classId)) {
57
+ contentControl = UiFramework.controls.create(contentProps.classId, id, contentProps.applicationData, contentProps.id);
58
58
  usedClassId = contentProps.classId;
59
59
  }
60
60
  }
@@ -138,7 +138,7 @@ export class ContentGroup {
138
138
  };
139
139
  contentGroupProps.contents.forEach((content, index) => {
140
140
  if (typeof content.classId !== "string") {
141
- const classId = ConfigurableUiManager.getConstructorClassId(content.classId);
141
+ const classId = InternalConfigurableUiManager.getConstructorClassId(content.classId);
142
142
  if (classId !== undefined)
143
143
  content.classId = classId;
144
144
  else
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGroup.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentGroup.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH,OAAO,EAAsB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAoC,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC9I,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA6B7C;;;GAGG;AACH,MAAM,OAAgB,oBAAoB;IAWxC;;OAEG;IACI,kBAAkB,CAAC,iBAAoC;QAC5D,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED;;OA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CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;aAClC;iBAAM;gBACL,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC3B;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;;AAnKc,iBAAI,GAAG,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module ContentView\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { ScreenViewport } from \"@itwin/core-frontend\";\r\nimport { ContentLayoutProps, UiError } from \"@itwin/appui-abstract\";\r\nimport { ConfigurableCreateInfo, ConfigurableUiControlConstructor, ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\nimport { ConfigurableUiManager } from \"../configurableui/ConfigurableUiManager\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { ContentControl } from \"./ContentControl\";\r\nimport { FrontstageProps } from \"../frontstage/Frontstage\";\r\nimport { FrontstageConfig } from \"../frontstage/FrontstageConfig\";\r\n\r\n/** Properties for content displayed in a content view\r\n * @public\r\n */\r\nexport interface ContentProps {\r\n /** A unique id for the Content View within the group */\r\n id: string;\r\n /** The class name or [[ConfigurableUiControlConstructor]] of the content control */\r\n classId: string | ConfigurableUiControlConstructor;\r\n /** Optional application data passed down to the Content View */\r\n applicationData?: any;\r\n}\r\n\r\n/** Properties for a [[ContentGroup]]\r\n * @public\r\n */\r\nexport interface ContentGroupProps {\r\n /** An id for the [[ContentGroup]]. This id is used to locate a ContentGroup and it also can be used by an ContentGroupProvider to save/restore content settings */\r\n id: string;\r\n /** Content Layout Id or complete set of [[ContentLayoutProps]] */\r\n layout: ContentLayoutProps;\r\n /** A collection of [[ContentProps]], one for each content view */\r\n contents: ContentProps[];\r\n}\r\n\r\n/** Abstract class that can be implemented and specified by frontstage to dynamically construct\r\n * content group just prior to activating the frontstage.\r\n * @public\r\n */\r\nexport abstract class ContentGroupProvider {\r\n /** Return the contentGroup based on the `FrontstageProps`.\r\n * @deprecated Implement using `contentGroup` instead.\r\n */\r\n abstract provideContentGroup(props: FrontstageProps): Promise<ContentGroup>; // eslint-disable-line deprecation/deprecation\r\n\r\n /** Return the contentGroup based on the `FrontstageConfig`.\r\n * @beta This method will be required in upcoming version, this method will be prioritized if it exists over `provideContentGroup`.\r\n */\r\n public contentGroup?(config: FrontstageConfig): Promise<ContentGroup>;\r\n\r\n /** Allow provider to update any data stored in ContentGroupProps. Typically this may\r\n * be to remove applicationData entries.\r\n */\r\n public prepareToSaveProps(contentGroupProps: ContentGroupProps) {\r\n return contentGroupProps;\r\n }\r\n\r\n /** Allow provider to update any stored ContentGroupProps be it is to be used to create ContentGroup and layouts.\r\n * Typically this may be to add applicationData to content entries.\r\n */\r\n public applyUpdatesToSavedProps(contentGroupProps: ContentGroupProps) {\r\n return contentGroupProps;\r\n }\r\n\r\n /** Allow provider to save any content group data before the stage deactivated. */\r\n public async onFrontstageDeactivated() { }\r\n}\r\n\r\n/** Callback to process content properties during toJSON method\r\n * @public\r\n */\r\nexport type ContentCallback = (content: ContentProps) => void;\r\n\r\n/** ContentGroup class. Content Groups define content displayed in content views that are laid out using a [[ContentLayout]].\r\n * @public\r\n */\r\nexport class ContentGroup {\r\n private static _sId = 0;\r\n public groupId: string;\r\n public propsId: string;\r\n public layout: ContentLayoutProps;\r\n public contentPropsList: ContentProps[];\r\n private _contentControls = new Map<string, ContentControl>();\r\n private _contentSetMap = new Map<string, ContentControl>();\r\n\r\n public get id() {\r\n return this.groupId;\r\n }\r\n\r\n constructor(contentGroupProps: ContentGroupProps) {\r\n this.layout = { ...contentGroupProps.layout };\r\n this.propsId = contentGroupProps.id;\r\n // ensure we have a unique groupId for each instance of a content group - this will be used to generate a key in the React controls\r\n this.groupId = `[${contentGroupProps.id}-${ContentGroup._sId++}]`;\r\n this.contentPropsList = contentGroupProps.contents;\r\n }\r\n\r\n /** Gets a [[ContentControl]] from the Content Group based on its [[ContentProps]]. */\r\n public getContentControl(contentProps: ContentProps, _index: number): ContentControl | undefined {\r\n // ensure we have a unique control Id for each instance of a content control - this will be used as a key for the React control - see `ContentControl.getKeyedReactNode`\r\n const id = `${contentProps.id}::${this.groupId}`;\r\n let contentControl: ContentControl | undefined;\r\n\r\n if (!this._contentControls.get(contentProps.id)) {\r\n let usedClassId: string = \"\";\r\n\r\n if (typeof contentProps.classId === \"string\") {\r\n if (!this._contentControls.get(contentProps.id) && ConfigurableUiManager.isControlRegistered(contentProps.classId)) {\r\n contentControl = ConfigurableUiManager.createControl(contentProps.classId, id, contentProps.applicationData, contentProps.id) as ContentControl;\r\n usedClassId = contentProps.classId;\r\n }\r\n } else {\r\n const info = new ConfigurableCreateInfo(contentProps.classId.name, id, contentProps.id);\r\n contentControl = new contentProps.classId(info, contentProps.applicationData) as ContentControl;\r\n usedClassId = contentProps.classId.name;\r\n }\r\n\r\n if (contentControl) {\r\n if (contentControl.getType() !== ConfigurableUiControlType.Content && contentControl.getType() !== ConfigurableUiControlType.Viewport) {\r\n throw new UiError(UiFramework.loggerCategory(this), `getContentControl error: '${usedClassId}' is NOT a ContentControl or ViewportContentControl`);\r\n }\r\n contentControl.initialize();\r\n this._contentControls.set(contentProps.id, contentControl);\r\n }\r\n }\r\n\r\n return this._contentControls.get(contentProps.id);\r\n }\r\n\r\n /** Gets a [[ContentControl]] from the Content Group with a given ID. */\r\n public getContentControlById(id: string): ContentControl | undefined {\r\n return this._contentControls.get(id);\r\n }\r\n\r\n /** Gets the React nodes representing the Content Views in this Content Group. */\r\n public getContentNodes(): React.ReactNode[] {\r\n const contentNodes: React.ReactNode[] = new Array<React.ReactNode>();\r\n\r\n this._contentSetMap.clear();\r\n\r\n this.contentPropsList.forEach((contentProps: ContentProps, index: number) => {\r\n const control = this.getContentControl(contentProps, index);\r\n if (control) {\r\n contentNodes.push(control.reactNode);\r\n this._contentSetMap.set(control.controlId, control);\r\n }\r\n });\r\n\r\n return contentNodes;\r\n }\r\n\r\n /** Gets the [[ContentControl]] associated with a given React node representing a Content View. */\r\n public getControlFromElement(node: React.ReactNode): ContentControl | undefined {\r\n if (this._contentSetMap.size === 0)\r\n this.getContentNodes();\r\n\r\n if (node && (node as React.ReactElement<any>).key) {\r\n const key = ((node as React.ReactElement<any>).key as string);\r\n // key has format `${contentProps.id}::${this.groupId}` which is stored as unique id\r\n const controlId = key.split(\"::\", 1)[0];\r\n return this._contentSetMap.get(controlId);\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /** Refreshes the React nodes representing the Content Views in this Content Group.. */\r\n public refreshContentNodes() {\r\n this._contentSetMap.clear();\r\n }\r\n\r\n /** Gets an array of the content controls representing the Content Views. */\r\n public getContentControls(): ContentControl[] {\r\n const contentControls: ContentControl[] = new Array<ContentControl>();\r\n\r\n this.contentPropsList.forEach((contentProps: ContentProps, index: number) => {\r\n const control = this.getContentControl(contentProps, index);\r\n if (control) {\r\n contentControls.push(control);\r\n }\r\n });\r\n\r\n return contentControls;\r\n }\r\n\r\n /** Called when Frontstage is deactivated. */\r\n public onFrontstageDeactivated(): void {\r\n this.clearContentControls();\r\n }\r\n\r\n /** Called when Frontstage is ready. */\r\n public onFrontstageReady(): void { }\r\n\r\n /** Clears the map of content controls. */\r\n public clearContentControls(): void {\r\n this._contentControls.clear();\r\n }\r\n\r\n /** Creates [[ContentGroupProps]] for JSON purposes\r\n * @public\r\n */\r\n public toJSON(contentCallback?: ContentCallback): ContentGroupProps {\r\n const contentGroupProps: ContentGroupProps = {\r\n id: this.propsId,\r\n layout: this.layout,\r\n contents: this.contentPropsList,\r\n };\r\n\r\n contentGroupProps.contents.forEach((content: ContentProps, index: number) => {\r\n if (typeof content.classId !== \"string\") {\r\n const classId = ConfigurableUiManager.getConstructorClassId(content.classId);\r\n if (classId !== undefined)\r\n content.classId = classId;\r\n else\r\n throw new UiError(UiFramework.loggerCategory(this), `toJSON: ContentControl at index ${index} is NOT registered with a string id`);\r\n\r\n if (contentCallback)\r\n contentCallback(content);\r\n }\r\n });\r\n\r\n return contentGroupProps;\r\n }\r\n\r\n /** Gets Viewports from Viewport Content Controls\r\n * @internal\r\n */\r\n public getViewports(): Array<ScreenViewport | undefined> {\r\n const contentControls = this.getContentControls();\r\n const viewports = new Array<ScreenViewport | undefined>();\r\n\r\n contentControls.forEach((control: ContentControl) => {\r\n if (control.isViewport && control.viewport) {\r\n viewports.push(control.viewport);\r\n } else {\r\n viewports.push(undefined);\r\n }\r\n });\r\n\r\n return viewports;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ContentGroup.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentGroup.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH,OAAO,EAAsB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAoC,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC9I,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AA0BhG;;;GAGG;AACH,MAAM,OAAgB,oBAAoB;IAWxC;;OAEG;IACI,kBAAkB,CAAC,iBAAoC;QAC5D,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED;;OAEG;IACI,wBAAwB,CAAC,iBAAoC;QAClE,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,kFAAkF;IAC3E,KAAK,CAAC,uBAAuB,KAAK,CAAC;CAC3C;AAOD;;GAEG;AACH,MAAM,OAAO,YAAY;IAavB,YAAY,iBAAoC;QAPxC,qBAAgB,GAAG,IAAI,GAAG,EAA0B,CAAC;QACrD,mBAAc,GAAG,IAAI,GAAG,EAA0B,CAAC;QAOzD,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,iBAAiB,CAAC,MAAM,EAAE,CAAC;QAC9C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AAM,EAAE,IAAI,CAAC,MAAM;YACnB,QAAQ,EAAE,IAAI,CAAC,gBAAgB;SAChC,CAAC;QAEF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAqB,EAAE,KAAa,EAAE,EAAE;YAC1E,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE;gBACvC,MAAM,OAAO,GAAG,6BAA6B,CAAC,qBAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACrF,IAAI,OAAO,KAAK,SAAS;oBACvB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;;oBAE1B,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mCAAmC,KAAK,qCAAqC,CAAC,CAAC;gBAErI,IAAI,eAAe;oBACjB,eAAe,CAAC,OAAO,CAAC,CAAC;aAC5B;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED;;OAEG;IACI,YAAY;QACjB,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAClD,MAAM,SAAS,GAAG,IAAI,KAAK,EAA8B,CAAC;QAE1D,eAAe,CAAC,OAAO,CAAC,CAAC,OAAuB,EAAE,EAAE;YAClD,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,QAAQ,EAAE;gBAC1C,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;aAClC;iBAAM;gBACL,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC3B;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;;AAnKc,iBAAI,GAAG,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module ContentView\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { ScreenViewport } from \"@itwin/core-frontend\";\r\nimport { ContentLayoutProps, UiError } from \"@itwin/appui-abstract\";\r\nimport { ConfigurableCreateInfo, ConfigurableUiControlConstructor, ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { ContentControl } from \"./ContentControl\";\r\nimport { FrontstageProps } from \"../frontstage/Frontstage\";\r\nimport { FrontstageConfig } from \"../frontstage/FrontstageConfig\";\r\nimport { InternalConfigurableUiManager } from \"../configurableui/InternalConfigurableUiManager\";\r\n\r\n/** Properties for content displayed in a content view\r\n * @public\r\n */\r\nexport interface ContentProps {\r\n /** A unique id for the Content View within the group */\r\n id: string;\r\n /** The class name or [[ConfigurableUiControlConstructor]] of the content control */\r\n classId: string | ConfigurableUiControlConstructor;\r\n /** Optional application data passed down to the Content View */\r\n applicationData?: any;\r\n}\r\n\r\n/** Properties for a [[ContentGroup]]\r\n * @public\r\n */\r\nexport interface ContentGroupProps {\r\n /** An id for the [[ContentGroup]]. This id is used to locate a ContentGroup and it also can be used by an ContentGroupProvider to save/restore content settings */\r\n id: string;\r\n /** Content Layout Id or complete set of [[ContentLayoutProps]] */\r\n layout: ContentLayoutProps;\r\n /** A collection of [[ContentProps]], one for each content view */\r\n contents: ContentProps[];\r\n}\r\n\r\n/** Abstract class that can be implemented and specified by frontstage to dynamically construct\r\n * content group just prior to activating the frontstage.\r\n * @public\r\n */\r\nexport abstract class ContentGroupProvider {\r\n /** Return the contentGroup based on the `FrontstageProps`.\r\n * @deprecated in 3.5. Implement using `contentGroup` instead.\r\n */\r\n abstract provideContentGroup(props: FrontstageProps): Promise<ContentGroup>; // eslint-disable-line deprecation/deprecation\r\n\r\n /** Return the contentGroup based on the `FrontstageConfig`.\r\n * @beta This method will be required in upcoming version, this method will be prioritized if it exists over `provideContentGroup`.\r\n */\r\n public contentGroup?(config: FrontstageConfig): Promise<ContentGroup>;\r\n\r\n /** Allow provider to update any data stored in ContentGroupProps. Typically this may\r\n * be to remove applicationData entries.\r\n */\r\n public prepareToSaveProps(contentGroupProps: ContentGroupProps) {\r\n return contentGroupProps;\r\n }\r\n\r\n /** Allow provider to update any stored ContentGroupProps be it is to be used to create ContentGroup and layouts.\r\n * Typically this may be to add applicationData to content entries.\r\n */\r\n public applyUpdatesToSavedProps(contentGroupProps: ContentGroupProps) {\r\n return contentGroupProps;\r\n }\r\n\r\n /** Allow provider to save any content group data before the stage deactivated. */\r\n public async onFrontstageDeactivated() { }\r\n}\r\n\r\n/** Callback to process content properties during toJSON method\r\n * @public\r\n */\r\nexport type ContentCallback = (content: ContentProps) => void;\r\n\r\n/** ContentGroup class. Content Groups define content displayed in content views that are laid out using a [[ContentLayout]].\r\n * @public\r\n */\r\nexport class ContentGroup {\r\n private static _sId = 0;\r\n public groupId: string;\r\n public propsId: string;\r\n public layout: ContentLayoutProps;\r\n public contentPropsList: ContentProps[];\r\n private _contentControls = new Map<string, ContentControl>();\r\n private _contentSetMap = new Map<string, ContentControl>();\r\n\r\n public get id() {\r\n return this.groupId;\r\n }\r\n\r\n constructor(contentGroupProps: ContentGroupProps) {\r\n this.layout = { ...contentGroupProps.layout };\r\n this.propsId = contentGroupProps.id;\r\n // ensure we have a unique groupId for each instance of a content group - this will be used to generate a key in the React controls\r\n this.groupId = `[${contentGroupProps.id}-${ContentGroup._sId++}]`;\r\n this.contentPropsList = contentGroupProps.contents;\r\n }\r\n\r\n /** Gets a [[ContentControl]] from the Content Group based on its [[ContentProps]]. */\r\n public getContentControl(contentProps: ContentProps, _index: number): ContentControl | undefined {\r\n // ensure we have a unique control Id for each instance of a content control - this will be used as a key for the React control - see `ContentControl.getKeyedReactNode`\r\n const id = `${contentProps.id}::${this.groupId}`;\r\n let contentControl: ContentControl | undefined;\r\n\r\n if (!this._contentControls.get(contentProps.id)) {\r\n let usedClassId: string = \"\";\r\n\r\n if (typeof contentProps.classId === \"string\") {\r\n if (!this._contentControls.get(contentProps.id) && UiFramework.controls.isRegistered(contentProps.classId)) {\r\n contentControl = UiFramework.controls.create(contentProps.classId, id, contentProps.applicationData, contentProps.id) as ContentControl;\r\n usedClassId = contentProps.classId;\r\n }\r\n } else {\r\n const info = new ConfigurableCreateInfo(contentProps.classId.name, id, contentProps.id);\r\n contentControl = new contentProps.classId(info, contentProps.applicationData) as ContentControl;\r\n usedClassId = contentProps.classId.name;\r\n }\r\n\r\n if (contentControl) {\r\n if (contentControl.getType() !== ConfigurableUiControlType.Content && contentControl.getType() !== ConfigurableUiControlType.Viewport) {\r\n throw new UiError(UiFramework.loggerCategory(this), `getContentControl error: '${usedClassId}' is NOT a ContentControl or ViewportContentControl`);\r\n }\r\n contentControl.initialize();\r\n this._contentControls.set(contentProps.id, contentControl);\r\n }\r\n }\r\n\r\n return this._contentControls.get(contentProps.id);\r\n }\r\n\r\n /** Gets a [[ContentControl]] from the Content Group with a given ID. */\r\n public getContentControlById(id: string): ContentControl | undefined {\r\n return this._contentControls.get(id);\r\n }\r\n\r\n /** Gets the React nodes representing the Content Views in this Content Group. */\r\n public getContentNodes(): React.ReactNode[] {\r\n const contentNodes: React.ReactNode[] = new Array<React.ReactNode>();\r\n\r\n this._contentSetMap.clear();\r\n\r\n this.contentPropsList.forEach((contentProps: ContentProps, index: number) => {\r\n const control = this.getContentControl(contentProps, index);\r\n if (control) {\r\n contentNodes.push(control.reactNode);\r\n this._contentSetMap.set(control.controlId, control);\r\n }\r\n });\r\n\r\n return contentNodes;\r\n }\r\n\r\n /** Gets the [[ContentControl]] associated with a given React node representing a Content View. */\r\n public getControlFromElement(node: React.ReactNode): ContentControl | undefined {\r\n if (this._contentSetMap.size === 0)\r\n this.getContentNodes();\r\n\r\n if (node && (node as React.ReactElement<any>).key) {\r\n const key = ((node as React.ReactElement<any>).key as string);\r\n // key has format `${contentProps.id}::${this.groupId}` which is stored as unique id\r\n const controlId = key.split(\"::\", 1)[0];\r\n return this._contentSetMap.get(controlId);\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /** Refreshes the React nodes representing the Content Views in this Content Group.. */\r\n public refreshContentNodes() {\r\n this._contentSetMap.clear();\r\n }\r\n\r\n /** Gets an array of the content controls representing the Content Views. */\r\n public getContentControls(): ContentControl[] {\r\n const contentControls: ContentControl[] = new Array<ContentControl>();\r\n\r\n this.contentPropsList.forEach((contentProps: ContentProps, index: number) => {\r\n const control = this.getContentControl(contentProps, index);\r\n if (control) {\r\n contentControls.push(control);\r\n }\r\n });\r\n\r\n return contentControls;\r\n }\r\n\r\n /** Called when Frontstage is deactivated. */\r\n public onFrontstageDeactivated(): void {\r\n this.clearContentControls();\r\n }\r\n\r\n /** Called when Frontstage is ready. */\r\n public onFrontstageReady(): void { }\r\n\r\n /** Clears the map of content controls. */\r\n public clearContentControls(): void {\r\n this._contentControls.clear();\r\n }\r\n\r\n /** Creates [[ContentGroupProps]] for JSON purposes\r\n * @public\r\n */\r\n public toJSON(contentCallback?: ContentCallback): ContentGroupProps {\r\n const contentGroupProps: ContentGroupProps = {\r\n id: this.propsId,\r\n layout: this.layout,\r\n contents: this.contentPropsList,\r\n };\r\n\r\n contentGroupProps.contents.forEach((content: ContentProps, index: number) => {\r\n if (typeof content.classId !== \"string\") {\r\n const classId = InternalConfigurableUiManager.getConstructorClassId(content.classId);\r\n if (classId !== undefined)\r\n content.classId = classId;\r\n else\r\n throw new UiError(UiFramework.loggerCategory(this), `toJSON: ContentControl at index ${index} is NOT registered with a string id`);\r\n\r\n if (contentCallback)\r\n contentCallback(content);\r\n }\r\n });\r\n\r\n return contentGroupProps;\r\n }\r\n\r\n /** Gets Viewports from Viewport Content Controls\r\n * @internal\r\n */\r\n public getViewports(): Array<ScreenViewport | undefined> {\r\n const contentControls = this.getContentControls();\r\n const viewports = new Array<ScreenViewport | undefined>();\r\n\r\n contentControls.forEach((control: ContentControl) => {\r\n if (control.isViewport && control.viewport) {\r\n viewports.push(control.viewport);\r\n } else {\r\n viewports.push(undefined);\r\n }\r\n });\r\n\r\n return viewports;\r\n }\r\n}\r\n"]}
@@ -73,7 +73,7 @@ export interface ContentLayoutComponentProps extends CommonProps {
73
73
  contentLayout: ContentLayoutDef;
74
74
  contentGroup: ContentGroup;
75
75
  /**
76
- * @deprecated In upcoming version, widget mode will be removed and footer mode will always be true.
76
+ * @deprecated in 3.3. In upcoming version, widget mode will be removed and footer mode will always be true.
77
77
  */
78
78
  isInFooterMode?: boolean;
79
79
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayout.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentLayout.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAG7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAA8E,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIrK,wCAAwC;AACxC,UAAU,mBAAoB,SAAQ,WAAW;IAC/C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAmDxD;AA4FD;GACG;AACH,UAAU,WAAW;IACnB,sBAAsB,CAAC,YAAY,EAAE,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC;IAC7F,QAAQ,EAAE,OAAO,CAAC;CACnB;AA6JD;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,UAAU,CAAC,CAAc;IAEjC,iCAAiC;IAC1B,EAAE,EAAE,MAAM,CAAM;IACvB,iCAAiC;IAC1B,WAAW,EAAE,MAAM,CAAM;gBACpB,WAAW,EAAE,kBAAkB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E;IAexC,OAAO,CAAC,gCAAgC;IAuBxC,OAAO,CAAC,8BAA8B;IAuBtC,gBAAgB;WACF,WAAW,CAAC,WAAW,EAAE,mBAAmB,GAAG,WAAW,GAAG,SAAS;CAUrF;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,aAAa,EAAE,gBAAgB,CAAC;IAChC,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,OAAO,CAAC,+BAA+B,CAAC;CAAI;AAE7F;GACG;AACH,UAAU,kBAAkB;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,WAAW;IAC9D,aAAa,EAAE,gBAAgB,CAAC;IAChC,YAAY,EAAE,YAAY,CAAC;IAC3B;;MAEE;IACF,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;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"}
@@ -11,18 +11,25 @@ import classnames from "classnames";
11
11
  import * as React from "react";
12
12
  import { SplitPane } from "./split-pane/SplitPane";
13
13
  import { Orientation } from "@itwin/core-react";
14
- import { FrontstageManager } from "../frontstage/FrontstageManager";
15
- import { UiShowHideManager } from "../utils/UiShowHideManager";
16
14
  import { UiEvent } from "@itwin/appui-abstract";
17
- import { ContentViewManager } from "./ContentViewManager";
18
15
  import { useActiveFrontstageDef } from "../frontstage/Frontstage";
16
+ import { UiFramework } from "../UiFramework";
19
17
  /** ContentWrapper React component.
20
18
  * @internal
21
19
  */
22
20
  export function ContentWrapper(props) {
23
21
  const { content } = props;
24
- const [isActive, setIsActive] = React.useState(content === ContentViewManager.getActiveContent());
22
+ const [isActive, setIsActive] = React.useState(content === UiFramework.content.getActive());
25
23
  const activeFrontstageDef = useActiveFrontstageDef();
24
+ const contentControlKey = (contentControl) => {
25
+ let controlId;
26
+ if (contentControl && contentControl.key) {
27
+ const key = contentControl.key;
28
+ // key has format `${contentProps.id}::${this.groupId}` which is stored as unique id
29
+ controlId = key.split("::", 1)[0];
30
+ }
31
+ return controlId;
32
+ };
26
33
  // istanbul ignore next
27
34
  const [hasMultipleContents, setHasMultipleContents] = React.useState(() => {
28
35
  var _a, _b, _c;
@@ -30,20 +37,28 @@ export function ContentWrapper(props) {
30
37
  ((_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);
31
38
  });
32
39
  React.useEffect(() => {
33
- setIsActive(content === ContentViewManager.getActiveContent());
40
+ setIsActive(content === UiFramework.content.getActive());
34
41
  }, [content]);
35
42
  React.useEffect(() => {
36
43
  const handleActiveContentChanged = (args) => {
37
44
  var _a, _b, _c;
38
- setIsActive(content === args.activeContent);
45
+ const contentIsIdentical = content === args.activeContent;
46
+ if (contentIsIdentical)
47
+ setIsActive(contentIsIdentical);
48
+ else {
49
+ const contentId = contentControlKey(content);
50
+ const activeContentId = contentControlKey(args.activeContent);
51
+ setIsActive(contentId === activeContentId);
52
+ }
39
53
  // istanbul ignore next
40
54
  setHasMultipleContents((activeFrontstageDef && (!!((_a = activeFrontstageDef.floatingContentControls) === null || _a === void 0 ? void 0 : _a.length)) ||
41
55
  ((_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));
42
56
  };
43
- return ContentViewManager.onActiveContentChangedEvent.addListener(handleActiveContentChanged);
57
+ return UiFramework.content.onActiveContentChangedEvent.addListener(handleActiveContentChanged);
44
58
  }, [activeFrontstageDef, content]);
45
59
  const handleMouseDown = React.useCallback(() => {
46
- ContentViewManager.setActiveContent(content);
60
+ UiFramework.content.setActive(content);
61
+ setIsActive(true);
47
62
  }, [content]);
48
63
  React.useEffect(() => {
49
64
  const onAvailableContentChanged = () => {
@@ -52,10 +67,10 @@ export function ContentWrapper(props) {
52
67
  setHasMultipleContents((activeFrontstageDef && (!!((_a = activeFrontstageDef.floatingContentControls) === null || _a === void 0 ? void 0 : _a.length)) ||
53
68
  ((_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));
54
69
  };
55
- return ContentViewManager.onAvailableContentChangedEvent.addListener(onAvailableContentChanged);
70
+ return UiFramework.content.onAvailableContentChangedEvent.addListener(onAvailableContentChanged);
56
71
  }, [activeFrontstageDef]);
57
72
  const overlayClassName = classnames("uifw-contentlayout-overlay-div", isActive && hasMultipleContents ? "uifw-contentlayout-overlay-active" : "uifw-contentlayout-overlay-inactive");
58
- return (React.createElement("div", { className: classnames("uifw-contentlayout-wrapper", props.className), style: props.style, onMouseDown: handleMouseDown, onMouseMove: UiShowHideManager.handleContentMouseMove, role: "presentation" },
73
+ return (React.createElement("div", { className: classnames("uifw-contentlayout-wrapper", props.className), style: props.style, onMouseDown: handleMouseDown, onMouseMove: UiFramework.visibility.handleContentMouseMove, role: "presentation" },
59
74
  content,
60
75
  React.createElement("div", { className: overlayClassName })));
61
76
  }
@@ -102,7 +117,7 @@ class SplitContainer extends React.Component {
102
117
  */
103
118
  class SingleContentContainer extends React.Component {
104
119
  render() {
105
- return (React.createElement("div", { className: classnames("uifw-contentlayout-full-size", this.props.className), style: this.props.style, "data-testid": "single-content-container", onMouseMove: UiShowHideManager.handleContentMouseMove },
120
+ return (React.createElement("div", { className: classnames("uifw-contentlayout-full-size", this.props.className), style: this.props.style, "data-testid": "single-content-container", onMouseMove: UiFramework.visibility.handleContentMouseMove },
106
121
  React.createElement(ContentWrapper, { content: this.props.content, style: { height: "100%", position: "relative" } })));
107
122
  }
108
123
  }
@@ -320,10 +335,10 @@ export class ContentLayout extends React.Component {
320
335
  });
321
336
  };
322
337
  this._onMouseDown = (_event) => {
323
- ContentViewManager.setMouseDown(true);
338
+ UiFramework.content.setMouseDown(true);
324
339
  };
325
340
  this._onMouseUp = (_event) => {
326
- ContentViewManager.setMouseDown(false);
341
+ UiFramework.content.setMouseDown(false);
327
342
  };
328
343
  const contentLayoutDef = this.props.contentLayout;
329
344
  const contentGroup = this.props.contentGroup;
@@ -336,10 +351,10 @@ export class ContentLayout extends React.Component {
336
351
  };
337
352
  }
338
353
  componentDidMount() {
339
- FrontstageManager.onContentLayoutActivatedEvent.addListener(this._handleContentLayoutActivated);
354
+ UiFramework.frontstages.onContentLayoutActivatedEvent.addListener(this._handleContentLayoutActivated);
340
355
  }
341
356
  componentWillUnmount() {
342
- FrontstageManager.onContentLayoutActivatedEvent.removeListener(this._handleContentLayoutActivated);
357
+ UiFramework.frontstages.onContentLayoutActivatedEvent.removeListener(this._handleContentLayoutActivated);
343
358
  }
344
359
  render() {
345
360
  if (this.state.contentContainer) {
@@ -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,OAAO,sBAAsB,CAAC;AAC9B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CA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C,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","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 /**\r\n * @deprecated In upcoming version, widget mode will be removed and footer mode will always be true.\r\n */\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,OAAO,sBAAsB,CAAC;AAC9B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAe,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAuH,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErK,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C;;GAEG;AACH,MAAM,UAAU,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,WAAW,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IAC5F,MAAM,mBAAmB,GAAG,sBAAsB,EAAE,CAAC;IAErD,MAAM,iBAAiB,GAAG,CAAC,cAA+B,EAAsB,EAAE;QAChF,IAAI,SAA6B,C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,CAAC,6BAA6B,CAAC,CAAC;IAC3G,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","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 { ContentGroup } from \"./ContentGroup\";\r\nimport { ContentLayoutProps, LayoutFragmentProps, LayoutHorizontalSplitProps, LayoutSplitPropsBase, LayoutVerticalSplitProps, UiEvent } from \"@itwin/appui-abstract\";\r\nimport { ActiveContentChangedEventArgs } from \"../framework/FrameworkContent\";\r\nimport { useActiveFrontstageDef } from \"../frontstage/Frontstage\";\r\nimport { UiFramework } from \"../UiFramework\";\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 === UiFramework.content.getActive());\r\n const activeFrontstageDef = useActiveFrontstageDef();\r\n\r\n const contentControlKey = (contentControl: React.ReactNode): string | undefined => {\r\n let controlId: string | undefined;\r\n if (contentControl && (contentControl as React.ReactElement<any>).key) {\r\n const key = ((contentControl as React.ReactElement<any>).key as string);\r\n // key has format `${contentProps.id}::${this.groupId}` which is stored as unique id\r\n controlId = key.split(\"::\", 1)[0];\r\n }\r\n return controlId;\r\n };\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 === UiFramework.content.getActive());\r\n }, [content]);\r\n\r\n React.useEffect(() => {\r\n const handleActiveContentChanged = (args: ActiveContentChangedEventArgs) => {\r\n const contentIsIdentical = content === args.activeContent;\r\n if (contentIsIdentical)\r\n setIsActive(contentIsIdentical);\r\n else {\r\n const contentId = contentControlKey(content);\r\n const activeContentId = contentControlKey(args.activeContent);\r\n setIsActive(contentId === activeContentId);\r\n }\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 UiFramework.content.onActiveContentChangedEvent.addListener(handleActiveContentChanged);\r\n }, [activeFrontstageDef, content]);\r\n\r\n const handleMouseDown = React.useCallback(() => {\r\n UiFramework.content.setActive(content);\r\n setIsActive(true);\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 UiFramework.content.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={UiFramework.visibility.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={UiFramework.visibility.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 /**\r\n * @deprecated in 3.3. In upcoming version, widget mode will be removed and footer mode will always be true.\r\n */\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 UiFramework.frontstages.onContentLayoutActivatedEvent.addListener(this._handleContentLayoutActivated);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n UiFramework.frontstages.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 UiFramework.content.setMouseDown(true);\r\n };\r\n\r\n private _onMouseUp = (_event: React.MouseEvent<HTMLDivElement>) => {\r\n UiFramework.content.setMouseDown(false);\r\n };\r\n}\r\n"]}
@@ -6,9 +6,9 @@ import { ContentGroup, ContentGroupProps } from "./ContentGroup";
6
6
  import { ContentLayoutDef } from "./ContentLayout";
7
7
  /** ContentLayout Manager class.
8
8
  * @public
9
+ * @deprecated in 3.7. Use `UiFramework.content.layouts` property.
9
10
  */
10
11
  export declare class ContentLayoutManager {
11
- private static _layoutDefs;
12
12
  /** build a layout key that is unique for group layout combination */
13
13
  static getLayoutKey(props: {
14
14
  contentGroupId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentLayoutManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,E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AAqE;WACvD,YAAY,CAAC,KAAK,EAAE;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAIvF;;OAEG;WACW,iBAAiB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,YAAY,EAAE,qBAAqB,CAAC,EAAE,kBAAkB,GAAG,gBAAgB;IAIlJ;;;OAGG;WACW,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAIzE;;;OAGG;WACW,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAI5E,qCAAqC;IACrC,WAAkB,YAAY,IAAI,gBAAgB,GAAG,SAAS,CAE7D;IAED,oCAAoC;IACpC,WAAkB,kBAAkB,IAAI,YAAY,GAAG,SAAS,CAE/D;IAED;;;OAGG;WACiB,eAAe,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlH;;OAEG;WACiB,qBAAqB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpF;OACG;WACW,mBAAmB,IAAI,IAAI;CAG1C"}
@@ -5,87 +5,61 @@
5
5
  /** @packageDocumentation
6
6
  * @module ContentView
7
7
  */
8
- import { FrontstageManager } from "../frontstage/FrontstageManager";
9
- import { ContentLayoutDef } from "./ContentLayout";
8
+ import { InternalContentLayoutManager as internal } from "./InternalContentLayoutManager";
10
9
  /** ContentLayout Manager class.
11
10
  * @public
11
+ * @deprecated in 3.7. Use `UiFramework.content.layouts` property.
12
12
  */
13
13
  export class ContentLayoutManager {
14
14
  /** build a layout key that is unique for group layout combination */
15
15
  static getLayoutKey(props) {
16
- return `${props.contentGroupId}-${props.layoutId}`;
16
+ return internal.getKey(props);
17
17
  }
18
18
  /** Return a LayoutDef that is specific to a content group.
19
19
  * @returns the [[ContentLayoutDef]] if found, or undefined otherwise
20
20
  */
21
21
  static getLayoutForGroup(contentGroupProps, overrideContentLayout) {
22
- var _a;
23
- const layoutId = (_a = overrideContentLayout === null || overrideContentLayout === void 0 ? void 0 : overrideContentLayout.id) !== null && _a !== void 0 ? _a : contentGroupProps.layout.id;
24
- const layoutKey = this.getLayoutKey({ contentGroupId: contentGroupProps.id, layoutId });
25
- if (!overrideContentLayout && ContentLayoutManager._layoutDefs.has(layoutKey)) {
26
- return ContentLayoutManager._layoutDefs.get(layoutKey);
27
- }
28
- const newContentLayoutProps = { ...contentGroupProps.layout, ...overrideContentLayout };
29
- const newLayoutDef = new ContentLayoutDef(newContentLayoutProps);
30
- this.addLayout(layoutKey, newLayoutDef);
31
- return newLayoutDef;
22
+ return internal.getForGroup(contentGroupProps, overrideContentLayout);
32
23
  }
33
24
  /** Finds a Content Layout with a given id.
34
25
  * @param layoutKey group specific layout id, see `getLayoutKey`
35
26
  * @returns the [[ContentLayoutDef]] if found, or undefined otherwise
36
27
  */
37
28
  static findLayout(layoutKey) {
38
- return ContentLayoutManager._layoutDefs.get(layoutKey);
29
+ return internal.find(layoutKey);
39
30
  }
40
31
  /** Adds a Content Layout.
41
32
  * @param layoutId the id of the Content Layout to add
42
33
  * @param layoutDef the Content Layout definition to add
43
34
  */
44
35
  static addLayout(layoutId, layoutDef) {
45
- ContentLayoutManager._layoutDefs.set(layoutId, layoutDef);
36
+ return internal.add(layoutId, layoutDef);
46
37
  }
47
38
  /** Gets the active Content Layout */
48
39
  static get activeLayout() {
49
- let layoutDef;
50
- const activeFrontstageDef = FrontstageManager.activeFrontstageDef;
51
- if (activeFrontstageDef)
52
- layoutDef = activeFrontstageDef.contentLayoutDef;
53
- return layoutDef;
40
+ return internal.activeLayout;
54
41
  }
55
42
  /** Gets the active Content Group */
56
43
  static get activeContentGroup() {
57
- let contentGroup;
58
- const activeFrontstageDef = FrontstageManager.activeFrontstageDef;
59
- if (activeFrontstageDef)
60
- contentGroup = activeFrontstageDef.contentGroup;
61
- return contentGroup;
44
+ return internal.activeContentGroup;
62
45
  }
63
46
  /** Sets the active Content Layout, Content Group and Content Control.
64
47
  * @param contentLayoutDef Content layout to make active
65
48
  * @param contentGroup Content Group to make active
66
49
  */
67
50
  static async setActiveLayout(contentLayoutDef, contentGroup) {
68
- await FrontstageManager.setActiveLayout(contentLayoutDef, contentGroup);
51
+ return internal.setActive(contentLayoutDef, contentGroup);
69
52
  }
70
53
  /** Sets the active Content Group.
71
54
  * @param contentGroup Content Group to make active
72
55
  */
73
56
  static async setActiveContentGroup(contentGroup) {
74
- await FrontstageManager.setActiveContentGroup(contentGroup);
57
+ return internal.setActiveContentGroup(contentGroup);
75
58
  }
76
59
  /** Refreshes the active layout and content group.
77
60
  */
78
61
  static refreshActiveLayout() {
79
- // istanbul ignore else
80
- const activeFrontstageDef = FrontstageManager.activeFrontstageDef;
81
- if (activeFrontstageDef && activeFrontstageDef.contentLayoutDef && activeFrontstageDef.contentGroup) {
82
- FrontstageManager.onContentLayoutActivatedEvent.emit({
83
- contentLayout: activeFrontstageDef.contentLayoutDef,
84
- contentGroup: activeFrontstageDef.contentGroup,
85
- });
86
- activeFrontstageDef.contentGroup.refreshContentNodes();
87
- }
62
+ return internal.refreshActive();
88
63
  }
89
64
  }
90
- ContentLayoutManager._layoutDefs = new Map();
91
65
  //# sourceMappingURL=ContentLayoutManager.js.map