@itwin/appui-react 3.5.0-dev.8 → 3.5.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 (489) hide show
  1. package/CHANGELOG.md +95 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +11 -1
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +18 -3
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +2 -2
  7. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  8. package/lib/cjs/appui-react/backstage/Backstage.d.ts +3 -0
  9. package/lib/cjs/appui-react/backstage/Backstage.d.ts.map +1 -1
  10. package/lib/cjs/appui-react/backstage/Backstage.js +3 -1
  11. package/lib/cjs/appui-react/backstage/Backstage.js.map +1 -1
  12. package/lib/cjs/appui-react/backstage/CommandLaunch.js +1 -1
  13. package/lib/cjs/appui-react/backstage/CommandLaunch.js.map +1 -1
  14. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js +1 -0
  15. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  16. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +1 -1
  17. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  18. package/lib/cjs/appui-react/configurableui/state.d.ts +4 -1
  19. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  20. package/lib/cjs/appui-react/configurableui/state.js +6 -0
  21. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  22. package/lib/cjs/appui-react/content/ContentGroup.d.ts +8 -0
  23. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  24. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  25. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
  26. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  27. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +5 -1
  28. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  29. package/lib/cjs/appui-react/frontstage/Frontstage.js +1 -0
  30. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -1
  31. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  32. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  33. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js +5 -2
  34. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  35. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +40 -0
  36. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -0
  37. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js +10 -0
  38. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -0
  39. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +8 -0
  40. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  41. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +114 -7
  42. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  43. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts +2 -4
  44. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  45. package/lib/cjs/appui-react/frontstage/FrontstageManager.js +5 -8
  46. package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +1 -1
  47. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +9 -1
  48. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  49. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js +1 -1
  50. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  51. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +14 -5
  52. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  53. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts +13 -3
  54. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -1
  55. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js +15 -7
  56. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  57. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts +1 -0
  58. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  59. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  60. package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts +2 -0
  61. package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts.map +1 -1
  62. package/lib/cjs/appui-react/messages/ActivityMessagePopup.js +1 -0
  63. package/lib/cjs/appui-react/messages/ActivityMessagePopup.js.map +1 -1
  64. package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts +1 -0
  65. package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts.map +1 -1
  66. package/lib/cjs/appui-react/messages/StatusMessageRenderer.js.map +1 -1
  67. package/lib/cjs/appui-react/messages/StickyMessage.d.ts +1 -0
  68. package/lib/cjs/appui-react/messages/StickyMessage.d.ts.map +1 -1
  69. package/lib/cjs/appui-react/messages/StickyMessage.js.map +1 -1
  70. package/lib/cjs/appui-react/messages/ToastMessage.d.ts +1 -0
  71. package/lib/cjs/appui-react/messages/ToastMessage.d.ts.map +1 -1
  72. package/lib/cjs/appui-react/messages/ToastMessage.js.map +1 -1
  73. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +1 -0
  74. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  75. package/lib/cjs/appui-react/pickers/ListPicker.js +4 -2
  76. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  77. package/lib/cjs/appui-react/pickers/ListPicker.scss +2 -1
  78. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +1 -1
  79. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts +1 -0
  80. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  81. package/lib/cjs/appui-react/safearea/SafeAreaContext.js +2 -1
  82. package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
  83. package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts +13 -0
  84. package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -0
  85. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js +16 -0
  86. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js.map +1 -0
  87. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js +2 -1
  88. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js.map +1 -1
  89. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  90. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +16 -3
  91. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  92. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  93. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +3 -2
  94. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  95. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts +3 -0
  96. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  97. package/lib/cjs/appui-react/stagepanels/StagePanel.js +1 -0
  98. package/lib/cjs/appui-react/stagepanels/StagePanel.js.map +1 -1
  99. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +39 -0
  100. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -0
  101. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js +11 -0
  102. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -0
  103. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +6 -6
  104. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  105. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +4 -7
  106. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  107. package/lib/cjs/appui-react/statusbar/Indicator.d.ts +26 -0
  108. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -0
  109. package/lib/cjs/appui-react/statusbar/Indicator.js +38 -0
  110. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -0
  111. package/lib/cjs/appui-react/statusbar/Indicator.scss +110 -0
  112. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +24 -0
  113. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts.map +1 -0
  114. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +29 -0
  115. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -0
  116. package/lib/cjs/appui-react/statusbar/LabelIndicator.scss +43 -0
  117. package/lib/cjs/appui-react/statusbar/Separator.d.ts +10 -0
  118. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -0
  119. package/lib/cjs/appui-react/statusbar/Separator.js +21 -0
  120. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -0
  121. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +2 -1
  122. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  123. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts +21 -0
  124. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -0
  125. package/lib/cjs/appui-react/statusbar/dialog/Button.js +20 -0
  126. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -0
  127. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts +30 -0
  128. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -0
  129. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js +31 -0
  130. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -0
  131. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts +19 -0
  132. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -0
  133. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js +20 -0
  134. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -0
  135. package/lib/cjs/appui-react/statusfields/Indicator.d.ts +1 -0
  136. package/lib/cjs/appui-react/statusfields/Indicator.d.ts.map +1 -1
  137. package/lib/cjs/appui-react/statusfields/Indicator.js +1 -0
  138. package/lib/cjs/appui-react/statusfields/Indicator.js.map +1 -1
  139. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  140. package/lib/cjs/appui-react/statusfields/MessageCenter.js +2 -5
  141. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  142. package/lib/cjs/appui-react/statusfields/PromptField.js +2 -1
  143. package/lib/cjs/appui-react/statusfields/PromptField.js.map +1 -1
  144. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  145. package/lib/cjs/appui-react/statusfields/SectionsField.js +4 -2
  146. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  147. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +2 -1
  148. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  149. package/lib/cjs/appui-react/statusfields/SelectionScope.js +2 -1
  150. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  151. package/lib/cjs/appui-react/statusfields/SnapMode.js +2 -1
  152. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  153. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  154. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +3 -2
  155. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  156. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +0 -1
  157. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  158. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +13 -11
  159. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  160. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +6 -1
  161. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  162. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +14 -0
  163. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  164. package/lib/cjs/appui-react/theme/ThemeManager.d.ts +7 -1
  165. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  166. package/lib/cjs/appui-react/theme/ThemeManager.js +14 -3
  167. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  168. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts +2 -0
  169. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  170. package/lib/cjs/appui-react/toolbar/ActionItemButton.js +1 -0
  171. package/lib/cjs/appui-react/toolbar/ActionItemButton.js.map +1 -1
  172. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +2 -0
  173. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  174. package/lib/cjs/appui-react/toolbar/GroupItem.js +1 -0
  175. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  176. package/lib/cjs/appui-react/toolbar/ToolButton.d.ts +2 -0
  177. package/lib/cjs/appui-react/toolbar/ToolButton.d.ts.map +1 -1
  178. package/lib/cjs/appui-react/toolbar/ToolButton.js +1 -0
  179. package/lib/cjs/appui-react/toolbar/ToolButton.js.map +1 -1
  180. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +1 -1
  181. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  182. package/lib/cjs/appui-react/tools/RestoreLayoutTool.d.ts +9 -0
  183. package/lib/cjs/appui-react/tools/RestoreLayoutTool.d.ts.map +1 -1
  184. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js +17 -1
  185. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  186. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  187. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +3 -3
  188. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  189. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -3
  190. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  191. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js +1 -1
  192. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  193. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +2 -0
  194. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  195. package/lib/cjs/appui-react/uistate/AppUiSettings.js +6 -1
  196. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  197. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  198. package/lib/cjs/appui-react/utils/UiShowHideManager.js +8 -0
  199. package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +1 -1
  200. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  201. package/lib/cjs/appui-react/widget-panels/Frontstage.js +25 -19
  202. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  203. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  204. package/lib/cjs/appui-react/widget-panels/StatusBar.js +5 -2
  205. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  206. package/lib/cjs/appui-react/widget-panels/Toolbars.d.ts.map +1 -1
  207. package/lib/cjs/appui-react/widget-panels/Toolbars.js +10 -3
  208. package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
  209. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js +1 -1
  210. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  211. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +2 -2
  212. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  213. package/lib/cjs/appui-react/widgets/NavigationWidget.js.map +1 -1
  214. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +1 -1
  215. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  216. package/lib/cjs/appui-react/widgets/ToolWidget.js.map +1 -1
  217. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  218. package/lib/cjs/appui-react/widgets/Widget.d.ts +1 -0
  219. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/widgets/Widget.js +1 -0
  221. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  222. package/lib/cjs/appui-react/widgets/WidgetConfig.d.ts +11 -0
  223. package/lib/cjs/appui-react/widgets/WidgetConfig.d.ts.map +1 -0
  224. package/lib/cjs/appui-react/widgets/WidgetConfig.js +10 -0
  225. package/lib/cjs/appui-react/widgets/WidgetConfig.js.map +1 -0
  226. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +11 -1
  227. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/widgets/WidgetDef.js +14 -11
  229. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  230. package/lib/cjs/appui-react/widgets/WidgetProps.d.ts +1 -0
  231. package/lib/cjs/appui-react/widgets/WidgetProps.d.ts.map +1 -1
  232. package/lib/cjs/appui-react/widgets/WidgetProps.js.map +1 -1
  233. package/lib/cjs/appui-react/zones/Zone.d.ts +5 -1
  234. package/lib/cjs/appui-react/zones/Zone.d.ts.map +1 -1
  235. package/lib/cjs/appui-react/zones/Zone.js +1 -0
  236. package/lib/cjs/appui-react/zones/Zone.js.map +1 -1
  237. package/lib/cjs/appui-react/zones/ZoneDef.d.ts +1 -0
  238. package/lib/cjs/appui-react/zones/ZoneDef.d.ts.map +1 -1
  239. package/lib/cjs/appui-react/zones/ZoneDef.js +2 -2
  240. package/lib/cjs/appui-react/zones/ZoneDef.js.map +1 -1
  241. package/lib/cjs/appui-react.d.ts +8 -0
  242. package/lib/cjs/appui-react.d.ts.map +1 -1
  243. package/lib/cjs/appui-react.js +8 -0
  244. package/lib/cjs/appui-react.js.map +1 -1
  245. package/lib/esm/appui-react/UiFramework.d.ts +11 -1
  246. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  247. package/lib/esm/appui-react/UiFramework.js +19 -4
  248. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  249. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +2 -2
  250. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  251. package/lib/esm/appui-react/backstage/Backstage.d.ts +3 -0
  252. package/lib/esm/appui-react/backstage/Backstage.d.ts.map +1 -1
  253. package/lib/esm/appui-react/backstage/Backstage.js +3 -1
  254. package/lib/esm/appui-react/backstage/Backstage.js.map +1 -1
  255. package/lib/esm/appui-react/backstage/CommandLaunch.js +1 -1
  256. package/lib/esm/appui-react/backstage/CommandLaunch.js.map +1 -1
  257. package/lib/esm/appui-react/childwindow/ChildWindowManager.js +1 -0
  258. package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  259. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +1 -1
  260. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  261. package/lib/esm/appui-react/configurableui/state.d.ts +4 -1
  262. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  263. package/lib/esm/appui-react/configurableui/state.js +7 -1
  264. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  265. package/lib/esm/appui-react/content/ContentGroup.d.ts +8 -0
  266. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  267. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  268. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
  269. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  270. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +5 -1
  271. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  272. package/lib/esm/appui-react/frontstage/Frontstage.js +1 -0
  273. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -1
  274. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  275. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  276. package/lib/esm/appui-react/frontstage/FrontstageComposer.js +6 -3
  277. package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  278. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +40 -0
  279. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -0
  280. package/lib/esm/appui-react/frontstage/FrontstageConfig.js +9 -0
  281. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -0
  282. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +8 -0
  283. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  284. package/lib/esm/appui-react/frontstage/FrontstageDef.js +115 -8
  285. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  286. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts +2 -4
  287. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  288. package/lib/esm/appui-react/frontstage/FrontstageManager.js +5 -8
  289. package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
  290. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +9 -1
  291. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  292. package/lib/esm/appui-react/frontstage/FrontstageProvider.js +1 -1
  293. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  294. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +14 -5
  295. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  296. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts +13 -3
  297. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -1
  298. package/lib/esm/appui-react/hooks/useFrameworkVersion.js +15 -7
  299. package/lib/esm/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  300. package/lib/esm/appui-react/messages/ActivityMessage.d.ts +1 -0
  301. package/lib/esm/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  302. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  303. package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts +2 -0
  304. package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts.map +1 -1
  305. package/lib/esm/appui-react/messages/ActivityMessagePopup.js +1 -0
  306. package/lib/esm/appui-react/messages/ActivityMessagePopup.js.map +1 -1
  307. package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts +1 -0
  308. package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts.map +1 -1
  309. package/lib/esm/appui-react/messages/StatusMessageRenderer.js.map +1 -1
  310. package/lib/esm/appui-react/messages/StickyMessage.d.ts +1 -0
  311. package/lib/esm/appui-react/messages/StickyMessage.d.ts.map +1 -1
  312. package/lib/esm/appui-react/messages/StickyMessage.js.map +1 -1
  313. package/lib/esm/appui-react/messages/ToastMessage.d.ts +1 -0
  314. package/lib/esm/appui-react/messages/ToastMessage.d.ts.map +1 -1
  315. package/lib/esm/appui-react/messages/ToastMessage.js.map +1 -1
  316. package/lib/esm/appui-react/pickers/ListPicker.d.ts +1 -0
  317. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  318. package/lib/esm/appui-react/pickers/ListPicker.js +4 -2
  319. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  320. package/lib/esm/appui-react/pickers/ListPicker.scss +2 -1
  321. package/lib/esm/appui-react/redux/FrameworkState.d.ts +1 -1
  322. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts +1 -0
  323. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  324. package/lib/esm/appui-react/safearea/SafeAreaContext.js +2 -1
  325. package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
  326. package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts +13 -0
  327. package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -0
  328. package/lib/esm/appui-react/safearea/SafeAreaInsets.js +13 -0
  329. package/lib/esm/appui-react/safearea/SafeAreaInsets.js.map +1 -0
  330. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js +2 -1
  331. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js.map +1 -1
  332. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  333. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +16 -3
  334. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  335. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  336. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +3 -2
  337. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  338. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts +3 -0
  339. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts.map +1 -1
  340. package/lib/esm/appui-react/stagepanels/StagePanel.js +1 -0
  341. package/lib/esm/appui-react/stagepanels/StagePanel.js.map +1 -1
  342. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +39 -0
  343. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -0
  344. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js +10 -0
  345. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -0
  346. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +6 -6
  347. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  348. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +4 -7
  349. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  350. package/lib/esm/appui-react/statusbar/Indicator.d.ts +26 -0
  351. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -0
  352. package/lib/esm/appui-react/statusbar/Indicator.js +34 -0
  353. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -0
  354. package/lib/esm/appui-react/statusbar/Indicator.scss +110 -0
  355. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +24 -0
  356. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts.map +1 -0
  357. package/lib/esm/appui-react/statusbar/LabelIndicator.js +25 -0
  358. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -0
  359. package/lib/esm/appui-react/statusbar/LabelIndicator.scss +43 -0
  360. package/lib/esm/appui-react/statusbar/Separator.d.ts +10 -0
  361. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -0
  362. package/lib/esm/appui-react/statusbar/Separator.js +17 -0
  363. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -0
  364. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +2 -1
  365. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  366. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts +21 -0
  367. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -0
  368. package/lib/esm/appui-react/statusbar/dialog/Button.js +16 -0
  369. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -0
  370. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts +30 -0
  371. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -0
  372. package/lib/esm/appui-react/statusbar/dialog/Dialog.js +27 -0
  373. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -0
  374. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts +19 -0
  375. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -0
  376. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js +16 -0
  377. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -0
  378. package/lib/esm/appui-react/statusfields/Indicator.d.ts +1 -0
  379. package/lib/esm/appui-react/statusfields/Indicator.d.ts.map +1 -1
  380. package/lib/esm/appui-react/statusfields/Indicator.js +1 -0
  381. package/lib/esm/appui-react/statusfields/Indicator.js.map +1 -1
  382. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  383. package/lib/esm/appui-react/statusfields/MessageCenter.js +2 -5
  384. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  385. package/lib/esm/appui-react/statusfields/PromptField.js +2 -1
  386. package/lib/esm/appui-react/statusfields/PromptField.js.map +1 -1
  387. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  388. package/lib/esm/appui-react/statusfields/SectionsField.js +5 -3
  389. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  390. package/lib/esm/appui-react/statusfields/SelectionInfo.js +2 -1
  391. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  392. package/lib/esm/appui-react/statusfields/SelectionScope.js +2 -1
  393. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  394. package/lib/esm/appui-react/statusfields/SnapMode.js +2 -1
  395. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  396. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  397. package/lib/esm/appui-react/statusfields/ViewAttributes.js +3 -2
  398. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  399. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +0 -1
  400. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  401. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +15 -13
  402. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  403. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +6 -1
  404. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  405. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +14 -0
  406. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  407. package/lib/esm/appui-react/theme/ThemeManager.d.ts +7 -1
  408. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  409. package/lib/esm/appui-react/theme/ThemeManager.js +13 -2
  410. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  411. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts +2 -0
  412. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  413. package/lib/esm/appui-react/toolbar/ActionItemButton.js +1 -0
  414. package/lib/esm/appui-react/toolbar/ActionItemButton.js.map +1 -1
  415. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +2 -0
  416. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  417. package/lib/esm/appui-react/toolbar/GroupItem.js +1 -0
  418. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  419. package/lib/esm/appui-react/toolbar/ToolButton.d.ts +2 -0
  420. package/lib/esm/appui-react/toolbar/ToolButton.d.ts.map +1 -1
  421. package/lib/esm/appui-react/toolbar/ToolButton.js +1 -0
  422. package/lib/esm/appui-react/toolbar/ToolButton.js.map +1 -1
  423. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +1 -1
  424. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  425. package/lib/esm/appui-react/tools/RestoreLayoutTool.d.ts +9 -0
  426. package/lib/esm/appui-react/tools/RestoreLayoutTool.d.ts.map +1 -1
  427. package/lib/esm/appui-react/tools/RestoreLayoutTool.js +15 -0
  428. package/lib/esm/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  429. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  430. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +3 -3
  431. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  432. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -3
  433. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  434. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js +1 -1
  435. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  436. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +2 -0
  437. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  438. package/lib/esm/appui-react/uistate/AppUiSettings.js +6 -1
  439. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  440. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  441. package/lib/esm/appui-react/utils/UiShowHideManager.js +8 -0
  442. package/lib/esm/appui-react/utils/UiShowHideManager.js.map +1 -1
  443. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  444. package/lib/esm/appui-react/widget-panels/Frontstage.js +25 -19
  445. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  446. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  447. package/lib/esm/appui-react/widget-panels/StatusBar.js +5 -2
  448. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  449. package/lib/esm/appui-react/widget-panels/Toolbars.d.ts.map +1 -1
  450. package/lib/esm/appui-react/widget-panels/Toolbars.js +10 -3
  451. package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
  452. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js +1 -1
  453. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  454. package/lib/esm/appui-react/widgets/BackstageAppButton.js +2 -2
  455. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  456. package/lib/esm/appui-react/widgets/NavigationWidget.js.map +1 -1
  457. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +1 -1
  458. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  459. package/lib/esm/appui-react/widgets/ToolWidget.js.map +1 -1
  460. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js.map +1 -1
  461. package/lib/esm/appui-react/widgets/Widget.d.ts +1 -0
  462. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  463. package/lib/esm/appui-react/widgets/Widget.js +1 -0
  464. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  465. package/lib/esm/appui-react/widgets/WidgetConfig.d.ts +11 -0
  466. package/lib/esm/appui-react/widgets/WidgetConfig.d.ts.map +1 -0
  467. package/lib/esm/appui-react/widgets/WidgetConfig.js +9 -0
  468. package/lib/esm/appui-react/widgets/WidgetConfig.js.map +1 -0
  469. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +11 -1
  470. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  471. package/lib/esm/appui-react/widgets/WidgetDef.js +14 -11
  472. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  473. package/lib/esm/appui-react/widgets/WidgetProps.d.ts +1 -0
  474. package/lib/esm/appui-react/widgets/WidgetProps.d.ts.map +1 -1
  475. package/lib/esm/appui-react/widgets/WidgetProps.js.map +1 -1
  476. package/lib/esm/appui-react/zones/Zone.d.ts +5 -1
  477. package/lib/esm/appui-react/zones/Zone.d.ts.map +1 -1
  478. package/lib/esm/appui-react/zones/Zone.js +1 -0
  479. package/lib/esm/appui-react/zones/Zone.js.map +1 -1
  480. package/lib/esm/appui-react/zones/ZoneDef.d.ts +1 -0
  481. package/lib/esm/appui-react/zones/ZoneDef.d.ts.map +1 -1
  482. package/lib/esm/appui-react/zones/ZoneDef.js +2 -2
  483. package/lib/esm/appui-react/zones/ZoneDef.js.map +1 -1
  484. package/lib/esm/appui-react.d.ts +8 -0
  485. package/lib/esm/appui-react.d.ts.map +1 -1
  486. package/lib/esm/appui-react.js +8 -0
  487. package/lib/esm/appui-react.js.map +1 -1
  488. package/lib/public/locales/en/UiFramework.json +11 -4
  489. package/package.json +34 -34
@@ -1 +1 @@
1
- {"version":3,"file":"appui-react.js","sourceRoot":"","sources":["../../src/appui-react.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;AAE/F,yIAAyI;AAEzI,4DAA0C,CAAE,+DAA+D;AAE3G,8EAA4D;AAC5D,wEAAsD;AACtD,mFAAiE;AACjE,8EAA4D;AAC5D,4EAA0D;AAC1D,wEAAsD;AACtD,oEAAkD;AAClD,0EAAwD;AACxD,yEAAuD;AACvD,2EAAyD;AACzD,oEAAkD;AAClD,yEAAuD;AAEvD,oEAAkD;AAClD,4EAA0D;AAC1D,gFAA8D;AAC9D,6EAA2D;AAC3D,iFAA+D;AAC/D,2EAAyD;AACzD,wEAAsD;AACtD,2EAAyD;AACzD,oEAAkD;AAClD,mFAAiE;AACjE,qEAAmD;AACnD,2FAAyE;AAEzE,qFAAmE;AACnE,qFAAmE;AACnE,qFAAmE;AACnE,qEAAmD;AAEnD,uEAAqD;AACrD,qEAAmD;AACnD,sEAAoD;AACpD,6EAA2D;AAC3D,2EAAyD;AACzD,gFAA8D;AAC9D,wEAAsD;AACtD,2EAAyD;AACzD,+EAA6D;AAC7D,uEAAqD;AACrD,2EAAyD;AACzD,6EAA2D;AAE3D,yEAAuD;AACvD,iFAA+D;AAC/D,+EAA6D;AAC7D,sFAAoE;AACpE,6EAA2D;AAE3D,yEAAuD;AACvD,0EAAwD;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FAA8D;AAE9D,2EAAyD;AACzD,8EAA4D;AAC5D,wEAAsD;AACtD,gFAA8D;AAC9D,yEAAuD;AACvD,iFAA+D;AAC/D,yEAAuD;AACvD,+EAA6D;AAC7D,uFAAqE;AACrE,kFAAgE;AAChE,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,2EAAyD;AACzD,+DAA6C;AAC7C,sEAAoD;AACpD,kEAAgD;AAChD,mEAAiD;AACjD,sEAAoD;AACpD,oEAAkD;AAClD,oEAAkD;AAElD,8DAA4C;AAC5C,kEAAgD;AAEhD,oEAAkD;AAClD,oEAAkD;AAClD,oFAAkE;AAClE,mFAAiE;AACjE,uFAAqE;AACrE,kFAAgE;AAChE,+FAA6E;AAC7E,2DAAyC;AACzC,8DAA4C;AAE5C;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// cSpell:ignore safearea cursormenu clientservices oidc Textbox Modeless configurableui stagepanels dragdrop uiadmin itemsarbiter Popout\r\n\r\nexport * from \"./appui-react/UiFramework\"; // Please ensure that this line comes before all other exports.\r\n\r\nexport * from \"./appui-react/accudraw/AccuDrawCommandItems\";\r\nexport * from \"./appui-react/accudraw/AccuDrawDialog\";\r\nexport * from \"./appui-react/accudraw/AccuDrawKeyboardShortcuts\";\r\nexport * from \"./appui-react/accudraw/AccuDrawPopupManager\";\r\nexport * from \"./appui-react/accudraw/AccuDrawUiSettings\";\r\nexport * from \"./appui-react/accudraw/AccuDrawWidget\";\r\nexport * from \"./appui-react/accudraw/Calculator\";\r\nexport * from \"./appui-react/accudraw/CalculatorEngine\";\r\nexport * from \"./appui-react/accudraw/CalculatorPopup\";\r\nexport * from \"./appui-react/accudraw/FrameworkAccuDraw\";\r\nexport * from \"./appui-react/accudraw/MenuButton\";\r\nexport * from \"./appui-react/accudraw/MenuButtonPopup\";\r\n\r\nexport * from \"./appui-react/backstage/Backstage\";\r\nexport * from \"./appui-react/backstage/BackstageComposer\";\r\nexport * from \"./appui-react/backstage/BackstageComposerItem\";\r\nexport * from \"./appui-react/backstage/BackstageItemProps\";\r\nexport * from \"./appui-react/backstage/BackstageItemUtilities\";\r\nexport * from \"./appui-react/backstage/BackstageManager\";\r\nexport * from \"./appui-react/backstage/CommandLaunch\";\r\nexport * from \"./appui-react/backstage/FrontstageLaunch\";\r\nexport * from \"./appui-react/backstage/Separator\";\r\nexport * from \"./appui-react/backstage/useDefaultBackstageItems\";\r\nexport * from \"./appui-react/backstage/TaskLaunch\";\r\nexport * from \"./appui-react/backstage/useUiItemsProviderBackstageItems\";\r\n\r\nexport * from \"./appui-react/configurableui/ConfigurableUiContent\";\r\nexport * from \"./appui-react/configurableui/ConfigurableUiControl\";\r\nexport * from \"./appui-react/configurableui/ConfigurableUiManager\";\r\nexport * from \"./appui-react/configurableui/state\";\r\n\r\nexport * from \"./appui-react/content/ContentControl\";\r\nexport * from \"./appui-react/content/ContentGroup\";\r\nexport * from \"./appui-react/content/ContentLayout\";\r\nexport * from \"./appui-react/content/ContentLayoutManager\";\r\nexport * from \"./appui-react/content/ContentViewManager\";\r\nexport * from \"./appui-react/content/FloatingViewportContent\";\r\nexport * from \"./appui-react/content/ViewStateHelper\";\r\nexport * from \"./appui-react/content/StageContentLayout\";\r\nexport * from \"./appui-react/content/ViewportContentControl\";\r\nexport * from \"./appui-react/content/IModelViewport\";\r\nexport * from \"./appui-react/content/DefaultViewOverlay\";\r\nexport * from \"./appui-react/content/split-pane/SplitPane\";\r\n\r\nexport * from \"./appui-react/cursor/CursorInformation\";\r\nexport * from \"./appui-react/cursor/cursorprompt/CursorPrompt\";\r\nexport * from \"./appui-react/cursor/cursorpopup/CursorPopup\";\r\nexport * from \"./appui-react/cursor/cursorpopup/CursorPopupManager\";\r\nexport * from \"./appui-react/cursor/cursormenu/CursorMenu\";\r\n\r\nexport * from \"./appui-react/dialog/DialogManagerBase\";\r\nexport * from \"./appui-react/dialog/ModalDialogManager\";\r\nexport * from \"./appui-react/dialog/ContentDialogManager\";\r\nexport * from \"./appui-react/dialog/ContentDialog\";\r\nexport * from \"./appui-react/dialog/ModelessDialog\";\r\nexport * from \"./appui-react/dialog/ModelessDialogManager\";\r\nexport * from \"./appui-react/dialog/StandardMessageBox\";\r\nexport * from \"./appui-react/dialog/UiDataProvidedDialog\";\r\n\r\nexport * from \"./appui-react/feedback/ValidationTextbox\";\r\nexport * from \"./appui-react/feedback/ElementTooltip\";\r\n\r\nexport * from \"./appui-react/frontstage/Frontstage\";\r\nexport * from \"./appui-react/frontstage/FrontstageComposer\";\r\nexport * from \"./appui-react/frontstage/FrontstageDef\";\r\nexport * from \"./appui-react/frontstage/FrontstageManager\";\r\nexport * from \"./appui-react/frontstage/FrontstageProvider\";\r\nexport * from \"./appui-react/frontstage/NestedFrontstage\";\r\nexport * from \"./appui-react/frontstage/ModalFrontstage\";\r\nexport * from \"./appui-react/frontstage/ModalSettingsStage\";\r\nexport * from \"./appui-react/frontstage/StandardFrontstageProvider\";\r\n\r\nexport * from \"./appui-react/hooks/useActiveIModelConnection\";\r\nexport * from \"./appui-react/hooks/useActiveStageId\";\r\nexport * from \"./appui-react/hooks/useActiveViewport\";\r\nexport * from \"./appui-react/hooks/useAvailableUiItemsProviders\";\r\nexport * from \"./appui-react/hooks/useAnalysisAnimationDataProvider\";\r\nexport * from \"./appui-react/hooks/useFrameworkVersion\";\r\nexport * from \"./appui-react/hooks/useScheduleAnimationDataProvider\";\r\nexport * from \"./appui-react/hooks/useSolarDataProvider\";\r\nexport * from \"./appui-react/hooks/useUiVisibility\";\r\n\r\nexport * from \"./appui-react/imodel-components/spatial-tree/SpatialContainmentTree\";\r\nexport * from \"./appui-react/imodel-components/category-tree/CategoriesTree\";\r\nexport * from \"./appui-react/imodel-components/category-tree/CategoryVisibilityHandler\";\r\nexport * from \"./appui-react/imodel-components/models-tree/ModelsTree\";\r\nexport * from \"./appui-react/imodel-components/models-tree/ModelsVisibilityHandler\";\r\nexport * from \"./appui-react/imodel-components/Common\";\r\nexport * from \"./appui-react/imodel-components/VisibilityTreeEventHandler\";\r\nexport * from \"./appui-react/imodel-components/VisibilityTreeRenderer\";\r\n\r\nexport * from \"./appui-react/keyboardshortcut/KeyboardShortcut\";\r\nexport * from \"./appui-react/keyboardshortcut/KeyboardShortcutMenu\";\r\nexport * from \"./appui-react/keyinbrowser/KeyinBrowser\";\r\n\r\nexport * from \"./appui-react/messages/ActivityMessage\";\r\nexport * from \"./appui-react/messages/ActivityMessagePopup\";\r\nexport * from \"./appui-react/messages/AppNotificationManager\";\r\nexport * from \"./appui-react/messages/InputField\";\r\nexport * from \"./appui-react/messages/MessageManager\";\r\nexport * from \"./appui-react/messages/StatusMessageRenderer\";\r\nexport * from \"./appui-react/messages/Pointer\";\r\nexport * from \"./appui-react/messages/ReactNotifyMessageDetails\";\r\nexport * from \"./appui-react/messages/StickyMessage\";\r\nexport * from \"./appui-react/messages/ToastMessage\";\r\n\r\nexport * from \"./appui-react/navigationaids/CubeNavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/DrawingNavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/NavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/SheetNavigationAid\";\r\nexport * from \"./appui-react/navigationaids/SheetsModalFrontstage\";\r\nexport * from \"./appui-react/navigationaids/StandardRotationNavigationAid\";\r\n\r\nexport * from \"./appui-react/pickers/ListPicker\";\r\nexport * from \"./appui-react/pickers/ViewSelector\";\r\n\r\nexport * from \"./appui-react/childwindow/ChildWindowManager\";\r\n\r\nexport * from \"./appui-react/popup/KeyinPalettePanel\";\r\nexport * from \"./appui-react/popup/KeyinPalettePopup\";\r\nexport * from \"./appui-react/popup/HTMLElementPopup\";\r\nexport * from \"./appui-react/popup/InputEditorPopup\";\r\nexport * from \"./appui-react/popup/PopupManager\";\r\nexport * from \"./appui-react/popup/PositionPopup\";\r\nexport * from \"./appui-react/popup/ToolbarPopup\";\r\n\r\nexport * from \"./appui-react/redux/SessionState\";\r\nexport * from \"./appui-react/redux/StateManager\";\r\nexport * from \"./appui-react/redux/FrameworkState\";\r\nexport * from \"./appui-react/redux/connectIModel\";\r\nexport * from \"./appui-react/redux/ReducerRegistry\";\r\nexport * from \"./appui-react/redux/redux-ts\";\r\n\r\nexport * from \"./appui-react/safearea/SafeAreaContext\";\r\n\r\nexport * from \"./appui-react/selection/SelectionContextItemDef\";\r\nexport * from \"./appui-react/selection/HideIsolateEmphasizeManager\";\r\nexport * from \"./appui-react/selection/ClearEmphasisStatusField\";\r\n\r\nexport * from \"./appui-react/settings/ui/UiSettingsPage\";\r\nexport * from \"./appui-react/settings/quantityformatting/QuantityFormat\";\r\nexport * from \"./appui-react/settings/quantityformatting/UnitSystemSelector\";\r\n\r\nexport * from \"./appui-react/shared/ActionButtonItemDef\";\r\nexport * from \"./appui-react/shared/AnyItemDef\";\r\nexport * from \"./appui-react/shared/AnyToolbarItemDef\";\r\nexport * from \"./appui-react/shared/CommandItemDef\";\r\nexport * from \"./appui-react/shared/CustomItemDef\";\r\nexport * from \"./appui-react/shared/CustomItemProps\";\r\nexport * from \"./appui-react/shared/GroupItemProps\";\r\nexport * from \"./appui-react/shared/ItemDefBase\";\r\nexport * from \"./appui-react/shared/ItemMap\";\r\nexport * from \"./appui-react/shared/ItemProps\";\r\nexport * from \"./appui-react/shared/MenuItem\";\r\nexport * from \"./appui-react/shared/SelectionScope\";\r\nexport * from \"./appui-react/shared/ToolItemDef\";\r\n\r\nexport * from \"./appui-react/stagepanels/FrameworkStagePanel\";\r\nexport * from \"./appui-react/stagepanels/StagePanel\";\r\nexport * from \"./appui-react/stagepanels/StagePanelDef\";\r\nexport * from \"./appui-react/stagepanels/StagePanelHeader\";\r\n\r\nexport * from \"./appui-react/statusbar/StatusBar\";\r\nexport * from \"./appui-react/statusbar/StatusBarWidgetControl\";\r\nexport * from \"./appui-react/statusbar/StatusBarComposer\";\r\nexport * from \"./appui-react/statusbar/StatusBarItem\";\r\nexport * from \"./appui-react/statusbar/StatusBarItemsManager\";\r\nexport * from \"./appui-react/statusbar/StatusBarItemUtilities\";\r\nexport * from \"./appui-react/statusbar/StatusBarComposer\";\r\nexport * from \"./appui-react/statusbar/withMessageCenterFieldProps\";\r\nexport * from \"./appui-react/statusbar/useUiItemsProviderStatusBarItems\";\r\nexport * from \"./appui-react/statusbar/useDefaultStatusBarItems\";\r\nexport * from \"./appui-react/statusbar/withStatusFieldProps\";\r\n\r\nexport * from \"./appui-react/statusfields/tileloading/TileLoadingIndicator\";\r\nexport * from \"./appui-react/statusfields/ActivityCenter\";\r\nexport * from \"./appui-react/statusfields/ConditionalField\";\r\nexport * from \"./appui-react/statusfields/FooterModeField\";\r\nexport * from \"./appui-react/statusfields/Indicator\";\r\nexport * from \"./appui-react/statusfields/MessageCenter\";\r\nexport * from \"./appui-react/statusfields/PromptField\";\r\nexport * from \"./appui-react/statusfields/SectionsField\";\r\nexport * from \"./appui-react/statusfields/SelectionInfo\";\r\nexport * from \"./appui-react/statusfields/SelectionScope\";\r\nexport * from \"./appui-react/statusfields/SnapMode\";\r\nexport * from \"./appui-react/statusfields/StatusFieldProps\";\r\nexport * from \"./appui-react/statusfields/ViewAttributes\";\r\nexport * from \"./appui-react/statusfields/toolassistance/ToolAssistanceField\";\r\n\r\nexport * from \"./appui-react/syncui/SyncUiEventDispatcher\";\r\nexport * from \"./appui-react/syncui/BooleanListener\";\r\n\r\nexport * from \"./appui-react/theme/ThemeManager\";\r\n\r\nexport * from \"./appui-react/timeline/ScheduleAnimationProvider\";\r\nexport * from \"./appui-react/timeline/AnalysisAnimationProvider\";\r\nexport * from \"./appui-react/timeline/SolarTimelineDataProvider\";\r\n\r\nexport * from \"./appui-react/toolbar/ActionButtonItem\";\r\nexport * from \"./appui-react/toolbar/ActionItemButton\";\r\nexport * from \"./appui-react/toolbar/DragInteraction\";\r\nexport * from \"./appui-react/toolbar/ToolbarComposer\";\r\nexport * from \"./appui-react/toolbar/GroupButtonItem\";\r\nexport * from \"./appui-react/toolbar/GroupItem\";\r\nexport * from \"./appui-react/toolbar/PopupButton\";\r\nexport * from \"./appui-react/toolbar/Toolbar\";\r\nexport * from \"./appui-react/toolbar/ToolbarHelper\";\r\nexport * from \"./appui-react/toolbar/ToolButton\";\r\nexport * from \"./appui-react/toolbar/useUiItemsProviderToolbarItems\";\r\nexport * from \"./appui-react/toolbar/useDefaultToolbarItems\";\r\n\r\nexport * from \"./appui-react/tools/CoreToolDefinitions\";\r\nexport * from \"./appui-react/tools/FrameworkToolAdmin\";\r\nexport * from \"./appui-react/tools/MarkupToolDefinitions\";\r\nexport * from \"./appui-react/tools/RestoreLayoutTool\";\r\nexport * from \"./appui-react/tools/ToolSettingsTools\";\r\n\r\nexport * from \"./appui-react/uiadmin/FrameworkUiAdmin\";\r\n\r\nexport * from \"./appui-react/ui-items-provider/StandardContentToolsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardNavigationToolsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardStatusbarItemsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardStatusbarUiItemsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardContentToolsUiItemsProvider\";\r\nexport * from \"./appui-react/uiprovider/DefaultDialogGridContainer\";\r\n\r\nexport * from \"./appui-react/uistate/AppUiSettings\";\r\nexport * from \"./appui-react/uistate/UserSettingsStorage\";\r\nexport * from \"./appui-react/uistate/useUiStateStorage\";\r\n\r\nexport * from \"./appui-react/utils/ViewUtilities\";\r\nexport * from \"./appui-react/utils/PropsHelper\";\r\nexport * from \"./appui-react/utils/UiShowHideManager\";\r\nexport * from \"./appui-react/utils/ToolbarButtonHelper\";\r\n\r\nexport * from \"./appui-react/widget-panels/Content\";\r\nexport * from \"./appui-react/widget-panels/Frontstage\";\r\nexport * from \"./appui-react/widget-panels/FrontstageContent\";\r\nexport * from \"./appui-react/widget-panels/ModalFrontstageComposer\";\r\nexport * from \"./appui-react/widget-panels/StatusBar\";\r\nexport * from \"./appui-react/widget-panels/Tab\";\r\nexport * from \"./appui-react/widget-panels/Toolbars\";\r\nexport * from \"./appui-react/widget-panels/ToolSettings\";\r\nexport * from \"./appui-react/widget-panels/useWidgetDirection\";\r\nexport * from \"./appui-react/widget-panels/useTransientState\";\r\n\r\nexport * from \"./appui-react/widgets/BackstageAppButton\";\r\nexport * from \"./appui-react/widgets/BasicNavigationWidget\";\r\nexport * from \"./appui-react/widgets/BasicToolWidget\";\r\nexport * from \"./appui-react/widgets/DefaultNavigationWidget\";\r\nexport * from \"./appui-react/widgets/NavigationWidget\";\r\nexport * from \"./appui-react/widgets/NavigationWidgetComposer\";\r\nexport * from \"./appui-react/widgets/ReviewToolWidget\";\r\nexport * from \"./appui-react/widgets/ViewToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/StatusBarWidgetComposerControl\";\r\nexport * from \"./appui-react/widgets/ContentToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/StableWidgetDef\";\r\nexport * from \"./appui-react/widgets/ToolbarWidgetBase\";\r\nexport * from \"./appui-react/widgets/ToolWidget\";\r\nexport * from \"./appui-react/widgets/ToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/Widget\";\r\nexport * from \"./appui-react/widgets/WidgetControl\";\r\nexport * from \"./appui-react/widgets/WidgetDef\";\r\nexport * from \"./appui-react/widgets/WidgetHost\";\r\nexport * from \"./appui-react/widgets/WidgetManager\";\r\nexport * from \"./appui-react/widgets/WidgetProps\";\r\nexport * from \"./appui-react/widgets/WidgetStack\";\r\n\r\nexport * from \"./appui-react/workflow/Task\";\r\nexport * from \"./appui-react/workflow/Workflow\";\r\n\r\nexport * from \"./appui-react/zones/FrameworkZone\";\r\nexport * from \"./appui-react/zones/StatusBarZone\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolSettingsZone\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolInformation\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolSettingsManager\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolUiProvider\";\r\nexport * from \"./appui-react/zones/toolsettings/DefaultToolSettingsProvider\";\r\nexport * from \"./appui-react/zones/Zone\";\r\nexport * from \"./appui-react/zones/ZoneDef\";\r\n\r\n/** @docs-package-description\r\n * The ui-framework package contains classes and components for specifying the application UI consisting of the\r\n * Backstage, Frontstages, Content Views, Tool Bars, Status Bars, Widgets and Panels.\r\n * For more information, see [learning about appui-react]($docs/learning/ui/appui-react/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * Classes and components providing a UI for AccuDraw, an aide for entering coordinate data.\r\n */\r\n/**\r\n * @docs-group-description Admin\r\n * APIs for various UI components, such as toolbars, buttons and menus.\r\n */\r\n/**\r\n * @docs-group-description Backstage\r\n * Classes for working with a Backstage\r\n */\r\n/**\r\n * @docs-group-description ConfigurableUi\r\n * Classes for working with the Application UI Configuration\r\n */\r\n/**\r\n * @docs-group-description ContentView\r\n * Classes for working with a Content View, Group, Layout or Control\r\n */\r\n/**\r\n * @docs-group-description Cursor\r\n * Cursor related information, components and events\r\n */\r\n/**\r\n * @docs-group-description Dialog\r\n * Classes for working with a dialog\r\n */\r\n/**\r\n * @docs-group-description Frontstage\r\n * Classes for working with a Frontstage\r\n */\r\n/**\r\n * @docs-group-description Hooks\r\n * Hook functions for use in Functional React Components.\r\n */\r\n/**\r\n * @docs-group-description IModelComponents\r\n * Classes for displaying information about an iModel\r\n */\r\n/**\r\n * @docs-group-description Item\r\n * Classes for working with an Item in a Tool Widget, Navigation Widget or Backstage\r\n */\r\n/**\r\n * @docs-group-description KeyboardShortcut\r\n * Classes for working with Keyboard Shortcuts\r\n */\r\n/**\r\n * @docs-group-description NavigationAids\r\n * Classes for working with Navigation Aids\r\n */\r\n/**\r\n * @docs-group-description Notification\r\n * Classes for working with a Notification or Message\r\n */\r\n/**\r\n * @docs-group-description ChildWindowManager\r\n * Classes for working with child windows.\r\n */\r\n/**\r\n * @docs-group-description Picker\r\n * Classes for working with various pickers\r\n */\r\n/**\r\n * @docs-group-description Popup\r\n * Classes for working with popup components\r\n */\r\n/**\r\n * @docs-group-description State\r\n * Classes for maintaining state\r\n */\r\n/**\r\n * @docs-group-description Settings\r\n * Classes and components used by settings pages displayed in the modal settings stage\r\n */\r\n/**\r\n * @docs-group-description StandardUiItemsProvider\r\n * Standard UiItemsProvider classes.\r\n */\r\n/**\r\n * @docs-group-description StatusBar\r\n * Classes for defining a StatusBar\r\n */\r\n/**\r\n * @docs-group-description SyncUi\r\n * Classes for informing UI components to sync/refresh their display\r\n */\r\n/**\r\n * @docs-group-description Timeline\r\n * Classes for working with a TimelineComponent\r\n */\r\n/**\r\n * @docs-group-description Toolbar\r\n * Classes used to construct a Toolbar\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Core Tool definitions\r\n */\r\n/**\r\n * @docs-group-description ToolSettings\r\n * Classes for working Tool Settings. See learning documentation [Tool Settings]($docs/learning/ui/appui-react/toolsettings.md).\r\n */\r\n/**\r\n * @docs-group-description UiProvider\r\n * Interfaces and classes for specifying UI items to be inserted at runtime.\r\n */\r\n/**\r\n * @docs-group-description UiStateStorage\r\n * Interfaces and classes for persisting UI settings.\r\n */\r\n/**\r\n * @docs-group-description Utilities\r\n * Various utility classes for working with a UI and Redux.\r\n */\r\n/**\r\n * @docs-group-description Widget\r\n * Classes for working with a Widget\r\n */\r\n/**\r\n * @docs-group-description Zone\r\n * Classes for working with a Zone\r\n */\r\n"]}
1
+ {"version":3,"file":"appui-react.js","sourceRoot":"","sources":["../../src/appui-react.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;AAE/F,yIAAyI;AAEzI,4DAA0C,CAAE,+DAA+D;AAE3G,8EAA4D;AAC5D,wEAAsD;AACtD,mFAAiE;AACjE,8EAA4D;AAC5D,4EAA0D;AAC1D,wEAAsD;AACtD,oEAAkD;AAClD,0EAAwD;AACxD,yEAAuD;AACvD,2EAAyD;AACzD,oEAAkD;AAClD,yEAAuD;AAEvD,oEAAkD;AAClD,4EAA0D;AAC1D,gFAA8D;AAC9D,6EAA2D;AAC3D,iFAA+D;AAC/D,2EAAyD;AACzD,wEAAsD;AACtD,2EAAyD;AACzD,oEAAkD;AAClD,mFAAiE;AACjE,qEAAmD;AACnD,2FAAyE;AAEzE,qFAAmE;AACnE,qFAAmE;AACnE,qFAAmE;AACnE,qEAAmD;AAEnD,uEAAqD;AACrD,qEAAmD;AACnD,sEAAoD;AACpD,6EAA2D;AAC3D,2EAAyD;AACzD,gFAA8D;AAC9D,wEAAsD;AACtD,2EAAyD;AACzD,+EAA6D;AAC7D,uEAAqD;AACrD,2EAAyD;AACzD,6EAA2D;AAE3D,yEAAuD;AACvD,iFAA+D;AAC/D,+EAA6D;AAC7D,sFAAoE;AACpE,6EAA2D;AAE3D,yEAAuD;AACvD,0EAAwD;AACxD,4EAA0D;AAC1D,qEAAmD;AACnD,sEAAoD;AACpD,6EAA2D;AAC3D,0EAAwD;AACxD,4EAA0D;AAE1D,2EAAyD;AACzD,wEAAsD;AAEtD,sEAAoD;AACpD,8EAA4D;AAC5D,4EAA0D;AAC1D,yEAAuD;AACvD,6EAA2D;AAC3D,8EAA4D;AAC5D,4EAA0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+EAA6D;AAC7D,uFAAqE;AACrE,kFAAgE;AAChE,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,2EAAyD;AACzD,+DAA6C;AAC7C,qEAAmD;AACnD,sEAAoD;AACpD,kEAAgD;AAChD,mEAAiD;AACjD,sEAAoD;AACpD,oEAAkD;AAClD,oEAAkD;AAElD,8DAA4C;AAC5C,kEAAgD;AAEhD,oEAAkD;AAClD,oEAAkD;AAClD,oFAAkE;AAClE,mFAAiE;AACjE,uFAAqE;AACrE,kFAAgE;AAChE,+FAA6E;AAC7E,2DAAyC;AACzC,8DAA4C;AAE5C;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// cSpell:ignore safearea cursormenu clientservices oidc Textbox Modeless configurableui stagepanels dragdrop uiadmin itemsarbiter Popout\r\n\r\nexport * from \"./appui-react/UiFramework\"; // Please ensure that this line comes before all other exports.\r\n\r\nexport * from \"./appui-react/accudraw/AccuDrawCommandItems\";\r\nexport * from \"./appui-react/accudraw/AccuDrawDialog\";\r\nexport * from \"./appui-react/accudraw/AccuDrawKeyboardShortcuts\";\r\nexport * from \"./appui-react/accudraw/AccuDrawPopupManager\";\r\nexport * from \"./appui-react/accudraw/AccuDrawUiSettings\";\r\nexport * from \"./appui-react/accudraw/AccuDrawWidget\";\r\nexport * from \"./appui-react/accudraw/Calculator\";\r\nexport * from \"./appui-react/accudraw/CalculatorEngine\";\r\nexport * from \"./appui-react/accudraw/CalculatorPopup\";\r\nexport * from \"./appui-react/accudraw/FrameworkAccuDraw\";\r\nexport * from \"./appui-react/accudraw/MenuButton\";\r\nexport * from \"./appui-react/accudraw/MenuButtonPopup\";\r\n\r\nexport * from \"./appui-react/backstage/Backstage\";\r\nexport * from \"./appui-react/backstage/BackstageComposer\";\r\nexport * from \"./appui-react/backstage/BackstageComposerItem\";\r\nexport * from \"./appui-react/backstage/BackstageItemProps\";\r\nexport * from \"./appui-react/backstage/BackstageItemUtilities\";\r\nexport * from \"./appui-react/backstage/BackstageManager\";\r\nexport * from \"./appui-react/backstage/CommandLaunch\";\r\nexport * from \"./appui-react/backstage/FrontstageLaunch\";\r\nexport * from \"./appui-react/backstage/Separator\";\r\nexport * from \"./appui-react/backstage/useDefaultBackstageItems\";\r\nexport * from \"./appui-react/backstage/TaskLaunch\";\r\nexport * from \"./appui-react/backstage/useUiItemsProviderBackstageItems\";\r\n\r\nexport * from \"./appui-react/configurableui/ConfigurableUiContent\";\r\nexport * from \"./appui-react/configurableui/ConfigurableUiControl\";\r\nexport * from \"./appui-react/configurableui/ConfigurableUiManager\";\r\nexport * from \"./appui-react/configurableui/state\";\r\n\r\nexport * from \"./appui-react/content/ContentControl\";\r\nexport * from \"./appui-react/content/ContentGroup\";\r\nexport * from \"./appui-react/content/ContentLayout\";\r\nexport * from \"./appui-react/content/ContentLayoutManager\";\r\nexport * from \"./appui-react/content/ContentViewManager\";\r\nexport * from \"./appui-react/content/FloatingViewportContent\";\r\nexport * from \"./appui-react/content/ViewStateHelper\";\r\nexport * from \"./appui-react/content/StageContentLayout\";\r\nexport * from \"./appui-react/content/ViewportContentControl\";\r\nexport * from \"./appui-react/content/IModelViewport\";\r\nexport * from \"./appui-react/content/DefaultViewOverlay\";\r\nexport * from \"./appui-react/content/split-pane/SplitPane\";\r\n\r\nexport * from \"./appui-react/cursor/CursorInformation\";\r\nexport * from \"./appui-react/cursor/cursorprompt/CursorPrompt\";\r\nexport * from \"./appui-react/cursor/cursorpopup/CursorPopup\";\r\nexport * from \"./appui-react/cursor/cursorpopup/CursorPopupManager\";\r\nexport * from \"./appui-react/cursor/cursormenu/CursorMenu\";\r\n\r\nexport * from \"./appui-react/dialog/DialogManagerBase\";\r\nexport * from \"./appui-react/dialog/ModalDialogManager\";\r\nexport * from \"./appui-react/dialog/ContentDialogManager\";\r\nexport * from \"./appui-react/dialog/ContentDialog\";\r\nexport * from \"./appui-react/dialog/ModelessDialog\";\r\nexport * from \"./appui-react/dialog/ModelessDialogManager\";\r\nexport * from \"./appui-react/dialog/StandardMessageBox\";\r\nexport * from \"./appui-react/dialog/UiDataProvidedDialog\";\r\n\r\nexport * from \"./appui-react/feedback/ValidationTextbox\";\r\nexport * from \"./appui-react/feedback/ElementTooltip\";\r\n\r\nexport * from \"./appui-react/frontstage/Frontstage\";\r\nexport * from \"./appui-react/frontstage/FrontstageComposer\";\r\nexport * from \"./appui-react/frontstage/FrontstageConfig\";\r\nexport * from \"./appui-react/frontstage/FrontstageDef\";\r\nexport * from \"./appui-react/frontstage/FrontstageManager\";\r\nexport * from \"./appui-react/frontstage/FrontstageProvider\";\r\nexport * from \"./appui-react/frontstage/NestedFrontstage\";\r\nexport * from \"./appui-react/frontstage/ModalFrontstage\";\r\nexport * from \"./appui-react/frontstage/ModalSettingsStage\";\r\nexport * from \"./appui-react/frontstage/StandardFrontstageProvider\";\r\n\r\nexport * from \"./appui-react/hooks/useActiveIModelConnection\";\r\nexport * from \"./appui-react/hooks/useActiveStageId\";\r\nexport * from \"./appui-react/hooks/useActiveViewport\";\r\nexport * from \"./appui-react/hooks/useAvailableUiItemsProviders\";\r\nexport * from \"./appui-react/hooks/useAnalysisAnimationDataProvider\";\r\nexport * from \"./appui-react/hooks/useFrameworkVersion\";\r\nexport * from \"./appui-react/hooks/useScheduleAnimationDataProvider\";\r\nexport * from \"./appui-react/hooks/useSolarDataProvider\";\r\nexport * from \"./appui-react/hooks/useUiVisibility\";\r\n\r\nexport * from \"./appui-react/imodel-components/spatial-tree/SpatialContainmentTree\";\r\nexport * from \"./appui-react/imodel-components/category-tree/CategoriesTree\";\r\nexport * from \"./appui-react/imodel-components/category-tree/CategoryVisibilityHandler\";\r\nexport * from \"./appui-react/imodel-components/models-tree/ModelsTree\";\r\nexport * from \"./appui-react/imodel-components/models-tree/ModelsVisibilityHandler\";\r\nexport * from \"./appui-react/imodel-components/Common\";\r\nexport * from \"./appui-react/imodel-components/VisibilityTreeEventHandler\";\r\nexport * from \"./appui-react/imodel-components/VisibilityTreeRenderer\";\r\n\r\nexport * from \"./appui-react/keyboardshortcut/KeyboardShortcut\";\r\nexport * from \"./appui-react/keyboardshortcut/KeyboardShortcutMenu\";\r\nexport * from \"./appui-react/keyinbrowser/KeyinBrowser\";\r\n\r\nexport * from \"./appui-react/messages/ActivityMessage\";\r\nexport * from \"./appui-react/messages/ActivityMessagePopup\";\r\nexport * from \"./appui-react/messages/AppNotificationManager\";\r\nexport * from \"./appui-react/messages/InputField\";\r\nexport * from \"./appui-react/messages/MessageManager\";\r\nexport * from \"./appui-react/messages/StatusMessageRenderer\";\r\nexport * from \"./appui-react/messages/Pointer\";\r\nexport * from \"./appui-react/messages/ReactNotifyMessageDetails\";\r\nexport * from \"./appui-react/messages/StickyMessage\";\r\nexport * from \"./appui-react/messages/ToastMessage\";\r\n\r\nexport * from \"./appui-react/navigationaids/CubeNavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/DrawingNavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/NavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/SheetNavigationAid\";\r\nexport * from \"./appui-react/navigationaids/SheetsModalFrontstage\";\r\nexport * from \"./appui-react/navigationaids/StandardRotationNavigationAid\";\r\n\r\nexport * from \"./appui-react/pickers/ListPicker\";\r\nexport * from \"./appui-react/pickers/ViewSelector\";\r\n\r\nexport * from \"./appui-react/childwindow/ChildWindowManager\";\r\n\r\nexport * from \"./appui-react/popup/KeyinPalettePanel\";\r\nexport * from \"./appui-react/popup/KeyinPalettePopup\";\r\nexport * from \"./appui-react/popup/HTMLElementPopup\";\r\nexport * from \"./appui-react/popup/InputEditorPopup\";\r\nexport * from \"./appui-react/popup/PopupManager\";\r\nexport * from \"./appui-react/popup/PositionPopup\";\r\nexport * from \"./appui-react/popup/ToolbarPopup\";\r\n\r\nexport * from \"./appui-react/redux/SessionState\";\r\nexport * from \"./appui-react/redux/StateManager\";\r\nexport * from \"./appui-react/redux/FrameworkState\";\r\nexport * from \"./appui-react/redux/connectIModel\";\r\nexport * from \"./appui-react/redux/ReducerRegistry\";\r\nexport * from \"./appui-react/redux/redux-ts\";\r\n\r\nexport * from \"./appui-react/safearea/SafeAreaContext\";\r\nexport * from \"./appui-react/safearea/SafeAreaInsets\";\r\n\r\nexport * from \"./appui-react/selection/SelectionContextItemDef\";\r\nexport * from \"./appui-react/selection/HideIsolateEmphasizeManager\";\r\nexport * from \"./appui-react/selection/ClearEmphasisStatusField\";\r\n\r\nexport * from \"./appui-react/settings/ui/UiSettingsPage\";\r\nexport * from \"./appui-react/settings/quantityformatting/QuantityFormat\";\r\nexport * from \"./appui-react/settings/quantityformatting/UnitSystemSelector\";\r\n\r\nexport * from \"./appui-react/shared/ActionButtonItemDef\";\r\nexport * from \"./appui-react/shared/AnyItemDef\";\r\nexport * from \"./appui-react/shared/AnyToolbarItemDef\";\r\nexport * from \"./appui-react/shared/CommandItemDef\";\r\nexport * from \"./appui-react/shared/CustomItemDef\";\r\nexport * from \"./appui-react/shared/CustomItemProps\";\r\nexport * from \"./appui-react/shared/GroupItemProps\";\r\nexport * from \"./appui-react/shared/ItemDefBase\";\r\nexport * from \"./appui-react/shared/ItemMap\";\r\nexport * from \"./appui-react/shared/ItemProps\";\r\nexport * from \"./appui-react/shared/MenuItem\";\r\nexport * from \"./appui-react/shared/SelectionScope\";\r\nexport * from \"./appui-react/shared/ToolItemDef\";\r\n\r\nexport * from \"./appui-react/stagepanels/FrameworkStagePanel\";\r\nexport * from \"./appui-react/stagepanels/StagePanel\";\r\nexport * from \"./appui-react/stagepanels/StagePanelConfig\";\r\nexport * from \"./appui-react/stagepanels/StagePanelDef\";\r\nexport * from \"./appui-react/stagepanels/StagePanelHeader\";\r\n\r\nexport * from \"./appui-react/statusbar/dialog/Dialog\";\r\n\r\nexport * from \"./appui-react/statusbar/Indicator\";\r\nexport * from \"./appui-react/statusbar/LabelIndicator\";\r\nexport * from \"./appui-react/statusbar/Separator\";\r\nexport * from \"./appui-react/statusbar/StatusBar\";\r\nexport * from \"./appui-react/statusbar/StatusBarWidgetControl\";\r\nexport * from \"./appui-react/statusbar/StatusBarComposer\";\r\nexport * from \"./appui-react/statusbar/StatusBarItem\";\r\nexport * from \"./appui-react/statusbar/StatusBarItemsManager\";\r\nexport * from \"./appui-react/statusbar/StatusBarItemUtilities\";\r\nexport * from \"./appui-react/statusbar/StatusBarComposer\";\r\nexport * from \"./appui-react/statusbar/withMessageCenterFieldProps\";\r\nexport * from \"./appui-react/statusbar/useUiItemsProviderStatusBarItems\";\r\nexport * from \"./appui-react/statusbar/useDefaultStatusBarItems\";\r\nexport * from \"./appui-react/statusbar/withStatusFieldProps\";\r\n\r\nexport * from \"./appui-react/statusfields/tileloading/TileLoadingIndicator\";\r\nexport * from \"./appui-react/statusfields/ActivityCenter\";\r\nexport * from \"./appui-react/statusfields/ConditionalField\";\r\nexport * from \"./appui-react/statusfields/FooterModeField\";\r\nexport * from \"./appui-react/statusfields/Indicator\";\r\nexport * from \"./appui-react/statusfields/MessageCenter\";\r\nexport * from \"./appui-react/statusfields/PromptField\";\r\nexport * from \"./appui-react/statusfields/SectionsField\";\r\nexport * from \"./appui-react/statusfields/SelectionInfo\";\r\nexport * from \"./appui-react/statusfields/SelectionScope\";\r\nexport * from \"./appui-react/statusfields/SnapMode\";\r\nexport * from \"./appui-react/statusfields/StatusFieldProps\";\r\nexport * from \"./appui-react/statusfields/ViewAttributes\";\r\nexport * from \"./appui-react/statusfields/toolassistance/ToolAssistanceField\";\r\n\r\nexport * from \"./appui-react/syncui/SyncUiEventDispatcher\";\r\nexport * from \"./appui-react/syncui/BooleanListener\";\r\n\r\nexport * from \"./appui-react/theme/ThemeManager\";\r\n\r\nexport * from \"./appui-react/timeline/ScheduleAnimationProvider\";\r\nexport * from \"./appui-react/timeline/AnalysisAnimationProvider\";\r\nexport * from \"./appui-react/timeline/SolarTimelineDataProvider\";\r\n\r\nexport * from \"./appui-react/toolbar/ActionButtonItem\";\r\nexport * from \"./appui-react/toolbar/ActionItemButton\";\r\nexport * from \"./appui-react/toolbar/DragInteraction\";\r\nexport * from \"./appui-react/toolbar/ToolbarComposer\";\r\nexport * from \"./appui-react/toolbar/GroupButtonItem\";\r\nexport * from \"./appui-react/toolbar/GroupItem\";\r\nexport * from \"./appui-react/toolbar/PopupButton\";\r\nexport * from \"./appui-react/toolbar/Toolbar\";\r\nexport * from \"./appui-react/toolbar/ToolbarHelper\";\r\nexport * from \"./appui-react/toolbar/ToolButton\";\r\nexport * from \"./appui-react/toolbar/useUiItemsProviderToolbarItems\";\r\nexport * from \"./appui-react/toolbar/useDefaultToolbarItems\";\r\n\r\nexport * from \"./appui-react/tools/CoreToolDefinitions\";\r\nexport * from \"./appui-react/tools/FrameworkToolAdmin\";\r\nexport * from \"./appui-react/tools/MarkupToolDefinitions\";\r\nexport * from \"./appui-react/tools/RestoreLayoutTool\";\r\nexport * from \"./appui-react/tools/ToolSettingsTools\";\r\n\r\nexport * from \"./appui-react/uiadmin/FrameworkUiAdmin\";\r\n\r\nexport * from \"./appui-react/ui-items-provider/StandardContentToolsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardNavigationToolsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardStatusbarItemsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardStatusbarUiItemsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardContentToolsUiItemsProvider\";\r\nexport * from \"./appui-react/uiprovider/DefaultDialogGridContainer\";\r\n\r\nexport * from \"./appui-react/uistate/AppUiSettings\";\r\nexport * from \"./appui-react/uistate/UserSettingsStorage\";\r\nexport * from \"./appui-react/uistate/useUiStateStorage\";\r\n\r\nexport * from \"./appui-react/utils/ViewUtilities\";\r\nexport * from \"./appui-react/utils/PropsHelper\";\r\nexport * from \"./appui-react/utils/UiShowHideManager\";\r\nexport * from \"./appui-react/utils/ToolbarButtonHelper\";\r\n\r\nexport * from \"./appui-react/widget-panels/Content\";\r\nexport * from \"./appui-react/widget-panels/Frontstage\";\r\nexport * from \"./appui-react/widget-panels/FrontstageContent\";\r\nexport * from \"./appui-react/widget-panels/ModalFrontstageComposer\";\r\nexport * from \"./appui-react/widget-panels/StatusBar\";\r\nexport * from \"./appui-react/widget-panels/Tab\";\r\nexport * from \"./appui-react/widget-panels/Toolbars\";\r\nexport * from \"./appui-react/widget-panels/ToolSettings\";\r\nexport * from \"./appui-react/widget-panels/useWidgetDirection\";\r\nexport * from \"./appui-react/widget-panels/useTransientState\";\r\n\r\nexport * from \"./appui-react/widgets/BackstageAppButton\";\r\nexport * from \"./appui-react/widgets/BasicNavigationWidget\";\r\nexport * from \"./appui-react/widgets/BasicToolWidget\";\r\nexport * from \"./appui-react/widgets/DefaultNavigationWidget\";\r\nexport * from \"./appui-react/widgets/NavigationWidget\";\r\nexport * from \"./appui-react/widgets/NavigationWidgetComposer\";\r\nexport * from \"./appui-react/widgets/ReviewToolWidget\";\r\nexport * from \"./appui-react/widgets/ViewToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/StatusBarWidgetComposerControl\";\r\nexport * from \"./appui-react/widgets/ContentToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/StableWidgetDef\";\r\nexport * from \"./appui-react/widgets/ToolbarWidgetBase\";\r\nexport * from \"./appui-react/widgets/ToolWidget\";\r\nexport * from \"./appui-react/widgets/ToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/Widget\";\r\nexport * from \"./appui-react/widgets/WidgetConfig\";\r\nexport * from \"./appui-react/widgets/WidgetControl\";\r\nexport * from \"./appui-react/widgets/WidgetDef\";\r\nexport * from \"./appui-react/widgets/WidgetHost\";\r\nexport * from \"./appui-react/widgets/WidgetManager\";\r\nexport * from \"./appui-react/widgets/WidgetProps\";\r\nexport * from \"./appui-react/widgets/WidgetStack\";\r\n\r\nexport * from \"./appui-react/workflow/Task\";\r\nexport * from \"./appui-react/workflow/Workflow\";\r\n\r\nexport * from \"./appui-react/zones/FrameworkZone\";\r\nexport * from \"./appui-react/zones/StatusBarZone\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolSettingsZone\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolInformation\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolSettingsManager\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolUiProvider\";\r\nexport * from \"./appui-react/zones/toolsettings/DefaultToolSettingsProvider\";\r\nexport * from \"./appui-react/zones/Zone\";\r\nexport * from \"./appui-react/zones/ZoneDef\";\r\n\r\n/** @docs-package-description\r\n * The ui-framework package contains classes and components for specifying the application UI consisting of the\r\n * Backstage, Frontstages, Content Views, Tool Bars, Status Bars, Widgets and Panels.\r\n * For more information, see [learning about appui-react]($docs/learning/ui/appui-react/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * Classes and components providing a UI for AccuDraw, an aide for entering coordinate data.\r\n */\r\n/**\r\n * @docs-group-description Admin\r\n * APIs for various UI components, such as toolbars, buttons and menus.\r\n */\r\n/**\r\n * @docs-group-description Backstage\r\n * Classes for working with a Backstage\r\n */\r\n/**\r\n * @docs-group-description ConfigurableUi\r\n * Classes for working with the Application UI Configuration\r\n */\r\n/**\r\n * @docs-group-description ContentView\r\n * Classes for working with a Content View, Group, Layout or Control\r\n */\r\n/**\r\n * @docs-group-description Cursor\r\n * Cursor related information, components and events\r\n */\r\n/**\r\n * @docs-group-description Dialog\r\n * Classes for working with a dialog\r\n */\r\n/**\r\n * @docs-group-description Frontstage\r\n * Classes for working with a Frontstage\r\n */\r\n/**\r\n * @docs-group-description Hooks\r\n * Hook functions for use in Functional React Components.\r\n */\r\n/**\r\n * @docs-group-description IModelComponents\r\n * Classes for displaying information about an iModel\r\n */\r\n/**\r\n * @docs-group-description Item\r\n * Classes for working with an Item in a Tool Widget, Navigation Widget or Backstage\r\n */\r\n/**\r\n * @docs-group-description KeyboardShortcut\r\n * Classes for working with Keyboard Shortcuts\r\n */\r\n/**\r\n * @docs-group-description NavigationAids\r\n * Classes for working with Navigation Aids\r\n */\r\n/**\r\n * @docs-group-description Notification\r\n * Classes for working with a Notification or Message\r\n */\r\n/**\r\n * @docs-group-description ChildWindowManager\r\n * Classes for working with child windows.\r\n */\r\n/**\r\n * @docs-group-description Picker\r\n * Classes for working with various pickers\r\n */\r\n/**\r\n * @docs-group-description Popup\r\n * Classes for working with popup components\r\n */\r\n/**\r\n * @docs-group-description State\r\n * Classes for maintaining state\r\n */\r\n/**\r\n * @docs-group-description Settings\r\n * Classes and components used by settings pages displayed in the modal settings stage\r\n */\r\n/**\r\n * @docs-group-description StandardUiItemsProvider\r\n * Standard UiItemsProvider classes.\r\n */\r\n/**\r\n * @docs-group-description StatusBar\r\n * Classes for defining a StatusBar\r\n */\r\n/**\r\n * @docs-group-description SyncUi\r\n * Classes for informing UI components to sync/refresh their display\r\n */\r\n/**\r\n * @docs-group-description Timeline\r\n * Classes for working with a TimelineComponent\r\n */\r\n/**\r\n * @docs-group-description Toolbar\r\n * Classes used to construct a Toolbar\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Core Tool definitions\r\n */\r\n/**\r\n * @docs-group-description ToolSettings\r\n * Classes for working Tool Settings. See learning documentation [Tool Settings]($docs/learning/ui/appui-react/toolsettings.md).\r\n */\r\n/**\r\n * @docs-group-description UiProvider\r\n * Interfaces and classes for specifying UI items to be inserted at runtime.\r\n */\r\n/**\r\n * @docs-group-description UiStateStorage\r\n * Interfaces and classes for persisting UI settings.\r\n */\r\n/**\r\n * @docs-group-description Utilities\r\n * Various utility classes for working with a UI and Redux.\r\n */\r\n/**\r\n * @docs-group-description Widget\r\n * Classes for working with a Widget\r\n */\r\n/**\r\n * @docs-group-description Zone\r\n * Classes for working with a Zone\r\n */\r\n"]}
@@ -14,6 +14,7 @@ import { CursorMenuData, PresentationSelectionScope } from "./redux/SessionState
14
14
  import { HideIsolateEmphasizeActionHandler } from "./selection/HideIsolateEmphasizeManager";
15
15
  import { WidgetManager } from "./widgets/WidgetManager";
16
16
  /** Defined that available UI Versions. It is recommended to always use the latest version available.
17
+ * @deprecated Used to toggle between UI1.0 and UI2.0.
17
18
  * @public
18
19
  */
19
20
  export declare type FrameworkVersionId = "1" | "2";
@@ -133,7 +134,7 @@ export declare class UiFramework {
133
134
  static setHideIsolateEmphasizeActionHandler(handler: HideIsolateEmphasizeActionHandler | undefined): void;
134
135
  /** @alpha */
135
136
  static get widgetManager(): WidgetManager;
136
- /** Calls localization.getLocalizedStringWithNamespace with the "UiFramework" namespace. Do NOT include the namespace in the key.
137
+ /** Calls localization.getLocalizedString with the "UiFramework" namespace. Do NOT include the namespace in the key.
137
138
  * @internal
138
139
  */
139
140
  static translate(key: string | string[]): string;
@@ -180,6 +181,15 @@ export declare class UiFramework {
180
181
  static setIsUiVisible(visible: boolean): void;
181
182
  static setColorTheme(theme: string): void;
182
183
  static getColorTheme(): string;
184
+ /** UiFramework.setToolbarOpacity() sets the non-hovered opacity to the value specified. Used by UI 2.0 and later.
185
+ * @param opacity a value between 0 and 1. The default value is 0.5. IT IS NOT ADVISED TO USE A VALUE BELOW 0.2
186
+ * @public
187
+ */
188
+ static setToolbarOpacity(opacity: number): void;
189
+ /** UiFramework.getToolbarOpacity() returns a number between 0 and 1 that is the non-hovered opacity for toolbars.
190
+ * @public
191
+ */
192
+ static getToolbarOpacity(): number;
183
193
  static setWidgetOpacity(opacity: number): void;
184
194
  static getWidgetOpacity(): number;
185
195
  static isMobile(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"UiFramework.d.ts","sourceRoot":"","sources":["../../../src/appui-react/UiFramework.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,UAAU,EAA2B,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAa,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGxF,OAAO,EAAkC,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAqB,eAAe,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAwB,MAAM,sBAAsB,CAAC;AAExG,OAAO,EAAE,iCAAiC,EAA+B,MAAM,yCAAyC,CAAC;AAQzH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAKxD;;GAEG;AACH,oBAAY,kBAAkB,GAAG,GAAG,GAAG,GAAG,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,qBAAq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B,0BAA0B,IAAI,OAAO,CAEtD;IAED;;;gBAGY;WAEE,6BAA6B,CAAC,KAAK,EAAE,OAAO;IAO1D,WAAkB,kBAAkB,IAAI,OAAO,CAE9C;WAEa,qBAAqB,CAAC,kBAAkB,EAAE,OAAO;IAI/D;;OAEG;IACH,WAAkB,kBAAkB,YAEnC;IACD;;KAEC;WACa,qBAAqB,CAAC,OAAO,EAAE,OAAO;IAKpD;;OAEG;WAEiB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,oBAAoB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB/N;;SAEK;IACL,WAAkB,iBAAiB,IAAI,OAAO,CAG7C;CACF"}
@@ -20,7 +20,7 @@ import { SessionStateActionId } from "./redux/SessionState";
20
20
  import { StateManager } from "./redux/StateManager";
21
21
  import { HideIsolateEmphasizeManager } from "./selection/HideIsolateEmphasizeManager";
22
22
  import { SyncUiEventDispatcher, SyncUiEventId } from "./syncui/SyncUiEventDispatcher";
23
- import { SYSTEM_PREFERRED_COLOR_THEME, WIDGET_OPACITY_DEFAULT } from "./theme/ThemeManager";
23
+ import { SYSTEM_PREFERRED_COLOR_THEME, TOOLBAR_OPACITY_DEFAULT, WIDGET_OPACITY_DEFAULT } from "./theme/ThemeManager";
24
24
  import * as keyinPaletteTools from "./tools/KeyinPaletteTools";
25
25
  import * as openSettingTools from "./tools/OpenSettingsTool";
26
26
  import * as restoreLayoutTools from "./tools/RestoreLayoutTool";
@@ -210,11 +210,11 @@ export class UiFramework {
210
210
  throw new UiError(UiFramework.loggerCategory(this), UiFramework._complaint);
211
211
  return UiFramework._widgetManager;
212
212
  }
213
- /** Calls localization.getLocalizedStringWithNamespace with the "UiFramework" namespace. Do NOT include the namespace in the key.
213
+ /** Calls localization.getLocalizedString with the "UiFramework" namespace. Do NOT include the namespace in the key.
214
214
  * @internal
215
215
  */
216
216
  static translate(key) {
217
- return IModelApp.localization.getLocalizedStringWithNamespace(UiFramework.localizationNamespace, key);
217
+ return IModelApp.localization.getLocalizedString(key, { ns: UiFramework.localizationNamespace });
218
218
  }
219
219
  /** @internal */
220
220
  static get packageName() {
@@ -358,6 +358,21 @@ export class UiFramework {
358
358
  static getColorTheme() {
359
359
  return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.theme : /* istanbul ignore next */ SYSTEM_PREFERRED_COLOR_THEME;
360
360
  }
361
+ /** UiFramework.setToolbarOpacity() sets the non-hovered opacity to the value specified. Used by UI 2.0 and later.
362
+ * @param opacity a value between 0 and 1. The default value is 0.5. IT IS NOT ADVISED TO USE A VALUE BELOW 0.2
363
+ * @public
364
+ */
365
+ static setToolbarOpacity(opacity) {
366
+ if (UiFramework.getToolbarOpacity() === opacity)
367
+ return;
368
+ UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetToolbarOpacity, opacity, true);
369
+ }
370
+ /** UiFramework.getToolbarOpacity() returns a number between 0 and 1 that is the non-hovered opacity for toolbars.
371
+ * @public
372
+ */
373
+ static getToolbarOpacity() {
374
+ return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.toolbarOpacity : /* istanbul ignore next */ TOOLBAR_OPACITY_DEFAULT;
375
+ }
361
376
  static setWidgetOpacity(opacity) {
362
377
  if (UiFramework.getWidgetOpacity() === opacity)
363
378
  return;
@@ -471,7 +486,7 @@ export class UiFramework {
471
486
  UiFramework._initialized = false;
472
487
  UiFramework._complaint = "UiFramework not initialized";
473
488
  UiFramework._frameworkStateKeyInStore = "frameworkState"; // default name
474
- UiFramework._uiVersion = "2";
489
+ UiFramework._uiVersion = "2"; // eslint-disable-line deprecation/deprecation
475
490
  /** this provides a default state storage handler */
476
491
  UiFramework._uiStateStorage = new LocalStateStorage();
477
492
  UiFramework._uiSettingsProviderRegistry = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"UiFramework.js","sourceRoot":"","sources":["../../../src/appui-react/UiFramework.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAKH,OAAO,EAAc,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAoB,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAkB,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAA8C,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAqC,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACzH,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC5F,OAAO,KAAK,iBAAiB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,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CAA2B,GAAsC,IAAI,GAAG,EAAgC,CAAC;AACzG,+BAAmB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAChD,+BAAmB,GAAG,KAAK,CAAC;AAoB1C;;GAEG;AACoB,iCAAqB,GAAG,IAAI,wBAAwB,EAAE,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 Utilities\r\n */\r\n\r\n// cSpell:ignore configurableui clientservices\r\n\r\nimport { Store } from \"redux\";\r\nimport { GuidString, Logger, ProcessDetector } from \"@itwin/core-bentley\";\r\nimport { Localization, RpcActivity } from \"@itwin/core-common\";\r\nimport { IModelApp, IModelConnection, SnapMode, ViewState } from \"@itwin/core-frontend\";\r\nimport { Presentation } from \"@itwin/presentation-frontend\";\r\nimport { TelemetryEvent } from \"@itwin/core-telemetry\";\r\nimport { getClassName, UiAdmin, UiError, UiEvent } from \"@itwin/appui-abstract\";\r\nimport { LocalStateStorage, SettingsManager, UiStateStorage } from \"@itwin/core-react\";\r\nimport { UiIModelComponents } from \"@itwin/imodel-components-react\";\r\nimport { BackstageManager } from \"./backstage/BackstageManager\";\r\nimport { ChildWindowManager } from \"./childwindow/ChildWindowManager\";\r\nimport { ConfigurableUiManager } from \"./configurableui/ConfigurableUiManager\";\r\nimport { ConfigurableUiActionId } from \"./configurableui/state\";\r\nimport { FrameworkState } from \"./redux/FrameworkState\";\r\nimport { CursorMenuData, PresentationSelectionScope, SessionStateActionId } from \"./redux/SessionState\";\r\nimport { StateManager } from \"./redux/StateManager\";\r\nimport { HideIsolateEmphasizeActionHandler, HideIsolateEmphasizeManager } from \"./selection/HideIsolateEmphasizeManager\";\r\nimport { SyncUiEventDispatcher, SyncUiEventId } from \"./syncui/SyncUiEventDispatcher\";\r\nimport { SYSTEM_PREFERRED_COLOR_THEME, WIDGET_OPACITY_DEFAULT } from \"./theme/ThemeManager\";\r\nimport * as keyinPaletteTools from \"./tools/KeyinPaletteTools\";\r\nimport * as openSettingTools from \"./tools/OpenSettingsTool\";\r\nimport * as restoreLayoutTools from \"./tools/RestoreLayoutTool\";\r\nimport * as toolSettingTools from \"./tools/ToolSettingsTools\";\r\nimport { UiShowHideManager, UiShowHideSettingsProvider } from \"./utils/UiShowHideManager\";\r\nimport { WidgetManager } from \"./widgets/WidgetManager\";\r\nimport { FrontstageManager } from \"./frontstage/FrontstageManager\";\r\n\r\n// cSpell:ignore Mobi\r\n\r\n/** Defined that available UI Versions. It is recommended to always use the latest version available.\r\n * @public\r\n */\r\nexport type FrameworkVersionId = \"1\" | \"2\";\r\n\r\n/** Interface to be implemented but any classes that wants to load their user settings when the UiStateEntry storage class is set.\r\n * @public\r\n */\r\nexport interface UserSettingsProvider {\r\n /** Unique provider Id */\r\n providerId: string;\r\n /** Function to load settings from settings storage */\r\n loadUserSettings(storage: UiStateStorage): Promise<void>;\r\n}\r\n\r\n/** UiVisibility Event Args interface.\r\n * @public\r\n */\r\nexport interface UiVisibilityEventArgs {\r\n visible: boolean;\r\n}\r\n\r\n/** UiVisibility Event class.\r\n * @public\r\n */\r\nexport class UiVisibilityChangedEvent extends UiEvent<UiVisibilityEventArgs> { }\r\n\r\n/** FrameworkVersion Changed Event Args interface.\r\n * @internal\r\n */\r\nexport interface FrameworkVersionChangedEventArgs {\r\n oldVersion: FrameworkVersionId;\r\n version: FrameworkVersionId;\r\n}\r\n\r\n/** FrameworkVersion Changed Event class.\r\n * @internal\r\n */\r\nexport class FrameworkVersionChangedEvent extends UiEvent<FrameworkVersionChangedEventArgs> { }\r\n\r\n/** TrackingTime time argument used by our feature tracking manager as an option argument to the TelemetryClient\r\n * @internal\r\n */\r\nexport interface TrackingTime {\r\n startTime: Date;\r\n endTime: Date;\r\n}\r\n\r\n/**\r\n * Manages the Redux store, localization service and iModel, Project and Login services for the ui-framework package.\r\n * @public\r\n */\r\nexport class UiFramework {\r\n private static _initialized = false;\r\n private static _store?: Store<any>;\r\n private static _complaint = \"UiFramework not initialized\";\r\n private static _frameworkStateKeyInStore: string = \"frameworkState\"; // default name\r\n private static _backstageManager?: BackstageManager;\r\n private static _widgetManager?: WidgetManager;\r\n private static _uiVersion: FrameworkVersionId = \"2\";\r\n private static _hideIsolateEmphasizeActionHandler?: HideIsolateEmphasizeActionHandler;\r\n /** this provides a default state storage handler */\r\n private static _uiStateStorage: UiStateStorage = new LocalStateStorage();\r\n private static _settingsManager?: SettingsManager;\r\n private static _uiSettingsProviderRegistry: Map<string, UserSettingsProvider> = new Map<string, UserSettingsProvider>();\r\n private static _PopupWindowManager = new ChildWindowManager();\r\n public static useDefaultPopoutUrl = false;\r\n\r\n /** @public */\r\n public static get childWindowManager(): ChildWindowManager {\r\n return UiFramework._PopupWindowManager;\r\n }\r\n\r\n /** Registers class that will be informed when the UserSettingsStorage location has been set or changed. This allows\r\n * classes to load any previously saved settings from the new storage location. Common storage locations are the browser's\r\n * local storage, or the iTwin Product Settings cloud storage available via the SettingsAdmin see `IModelApp.settingsAdmin`.\r\n * @beta\r\n */\r\n public static registerUserSettingsProvider(entry: UserSettingsProvider) {\r\n if (this._uiSettingsProviderRegistry.has(entry.providerId))\r\n return false;\r\n\r\n this._uiSettingsProviderRegistry.set(entry.providerId, entry);\r\n return true;\r\n }\r\n\r\n /** Get Show Ui event.\r\n * @public\r\n */\r\n public static readonly onUiVisibilityChanged = new UiVisibilityChangedEvent();\r\n\r\n /**\r\n * Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore.\r\n * @param store The single Redux store created by the host application. If this is `undefined` then it is assumed that the [[StateManager]] is being used to provide the Redux store.\r\n * @param frameworkStateKey The name of the key used by the app when adding the UiFramework state into the Redux store. If not defined \"frameworkState\" is assumed. This value is ignored if [[StateManager]] is being used. The StateManager use \"frameworkState\".\r\n * @param startInUi1Mode Used for legacy applications to start up in the deprecated UI 1 mode. This should not set by newer applications.\r\n */\r\n public static async initialize(store: Store<any> | undefined, frameworkStateKey?: string, startInUi1Mode?: boolean): Promise<void> {\r\n return this.initializeEx(store, frameworkStateKey, startInUi1Mode);\r\n }\r\n\r\n /**\r\n * Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore.\r\n * @param store The single Redux store created by the host application. If this is `undefined` then it is assumed that the [[StateManager]] is being used to provide the Redux store.\r\n * @param frameworkStateKey The name of the key used by the app when adding the UiFramework state into the Redux store. If not defined \"frameworkState\" is assumed. This value is ignored if [[StateManager]] is being used. The StateManager use \"frameworkState\".\r\n * @param startInUi1Mode Used for legacy applications to start up in the deprecated UI 1 mode. This should not set by newer applications.\r\n *\r\n * @internal\r\n */\r\n public static async initializeEx(store: Store<any> | undefined, frameworkStateKey?: string, startInUi1Mode?: boolean): Promise<void> {\r\n if (UiFramework._initialized) {\r\n Logger.logInfo(UiFramework.loggerCategory(UiFramework), `UiFramework.initialize already called`);\r\n return;\r\n }\r\n\r\n /* if store is undefined then the StateManager class should have been initialized by parent app and the apps default set of reducers registered with it.\r\n If the app has no reducers to add and does not initialize a StateManager then just initialize the StateManager with the default framework reducer now */\r\n if (undefined === store && !StateManager.isInitialized(true))\r\n new StateManager();\r\n\r\n UiFramework._store = store;\r\n // ignore setting _frameworkStateKeyInStore if not using store\r\n if (frameworkStateKey && store)\r\n UiFramework._frameworkStateKeyInStore = frameworkStateKey;\r\n\r\n if (startInUi1Mode)\r\n UiFramework.store.dispatch({ type: ConfigurableUiActionId.SetFrameworkVersion, payload: \"1\" });\r\n\r\n // set up namespace and register all tools from package\r\n const frameworkNamespace = IModelApp.localization?.registerNamespace(UiFramework.localizationNamespace);\r\n [\r\n restoreLayoutTools,\r\n keyinPaletteTools,\r\n openSettingTools,\r\n toolSettingTools,\r\n ].forEach((tool) => IModelApp.tools.registerModule(tool, this.localizationNamespace));\r\n\r\n UiFramework._backstageManager = new BackstageManager();\r\n UiFramework._hideIsolateEmphasizeActionHandler = new HideIsolateEmphasizeManager(); // this allows user to override the default HideIsolateEmphasizeManager implementation.\r\n UiFramework._widgetManager = new WidgetManager();\r\n\r\n // Initialize ui-imodel-components, ui-components, ui-core & ui-abstract\r\n await UiIModelComponents.initialize();\r\n\r\n UiFramework.settingsManager.onSettingsProvidersChanged.addListener(() => {\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(SyncUiEventId.SettingsProvidersChanged);\r\n });\r\n\r\n // Initialize the MessagePresenter interface in UiAdmin for Editor notifications\r\n UiAdmin.messagePresenter = IModelApp.notifications;\r\n\r\n UiFramework._initialized = true;\r\n\r\n // initialize any standalone settings providers that don't need to have defaults set by iModelApp\r\n UiShowHideSettingsProvider.initialize();\r\n\r\n ConfigurableUiManager.initialize();\r\n\r\n return frameworkNamespace;\r\n }\r\n\r\n /** Un-registers the UiFramework internationalization service namespace */\r\n public static terminate() {\r\n UiFramework._store = undefined;\r\n UiFramework._frameworkStateKeyInStore = \"frameworkState\";\r\n if (StateManager.isInitialized(true))\r\n StateManager.clearStore();\r\n // istanbul ignore next\r\n IModelApp.localization?.unregisterNamespace(UiFramework.localizationNamespace);\r\n UiFramework._backstageManager = undefined;\r\n UiFramework._widgetManager = undefined;\r\n UiFramework._hideIsolateEmphasizeActionHandler = undefined;\r\n UiFramework._settingsManager = undefined;\r\n\r\n UiIModelComponents.terminate();\r\n UiShowHideManager.terminate();\r\n UiFramework._initialized = false;\r\n }\r\n\r\n /** Determines if UiFramework has been initialized */\r\n public static get initialized(): boolean { return UiFramework._initialized; }\r\n\r\n /** Property that returns the SettingManager used by AppUI-based applications.\r\n * @public\r\n */\r\n public static get settingsManager() {\r\n if (undefined === UiFramework._settingsManager)\r\n UiFramework._settingsManager = new SettingsManager();\r\n return UiFramework._settingsManager;\r\n }\r\n\r\n /** @public */\r\n public static get frameworkStateKey(): string {\r\n return UiFramework._frameworkStateKeyInStore;\r\n }\r\n\r\n /** The UiFramework state maintained by Redux\r\n * @public\r\n */\r\n public static get frameworkState(): FrameworkState | undefined {\r\n try {\r\n // eslint-disable-next-line dot-notation\r\n return UiFramework.store.getState()[UiFramework.frameworkStateKey];\r\n } catch (_e) {\r\n return undefined;\r\n }\r\n }\r\n\r\n /** The Redux store */\r\n public static get store(): Store<any> {\r\n if (UiFramework._store)\r\n return UiFramework._store;\r\n\r\n // istanbul ignore else\r\n if (!StateManager.isInitialized(true))\r\n throw new UiError(UiFramework.loggerCategory(this), `Error trying to access redux store before either store or StateManager has been initialized.`);\r\n\r\n // istanbul ignore next\r\n return StateManager.store;\r\n }\r\n\r\n /** The internationalization service created by the app.\r\n * @internal\r\n */\r\n public static get localization(): Localization {\r\n // istanbul ignore next\r\n if (!IModelApp.localization)\r\n throw new UiError(UiFramework.loggerCategory(this), `IModelApp.localization has not been defined.`);\r\n return IModelApp.localization;\r\n }\r\n\r\n /** The internationalization service namespace. */\r\n public static get localizationNamespace(): string {\r\n return \"UiFramework\";\r\n }\r\n\r\n /** @public */\r\n public static get backstageManager(): BackstageManager {\r\n // istanbul ignore next\r\n if (!UiFramework._backstageManager)\r\n throw new UiError(UiFramework.loggerCategory(this), UiFramework._complaint);\r\n return UiFramework._backstageManager;\r\n }\r\n\r\n /** @alpha */\r\n public static get hideIsolateEmphasizeActionHandler(): HideIsolateEmphasizeActionHandler {\r\n // istanbul ignore next\r\n if (!UiFramework._hideIsolateEmphasizeActionHandler)\r\n throw new UiError(UiFramework.loggerCategory(this), UiFramework._complaint);\r\n return UiFramework._hideIsolateEmphasizeActionHandler;\r\n }\r\n\r\n /** @alpha */\r\n public static setHideIsolateEmphasizeActionHandler(handler: HideIsolateEmphasizeActionHandler | undefined) {\r\n // istanbul ignore else\r\n if (handler)\r\n UiFramework._hideIsolateEmphasizeActionHandler = handler;\r\n else\r\n UiFramework._hideIsolateEmphasizeActionHandler = new HideIsolateEmphasizeManager();\r\n }\r\n\r\n /** @alpha */\r\n public static get widgetManager(): WidgetManager {\r\n // istanbul ignore next\r\n if (!UiFramework._widgetManager)\r\n throw new UiError(UiFramework.loggerCategory(this), UiFramework._complaint);\r\n return UiFramework._widgetManager;\r\n }\r\n\r\n /** Calls localization.getLocalizedStringWithNamespace with the \"UiFramework\" namespace. Do NOT include the namespace in the key.\r\n * @internal\r\n */\r\n public static translate(key: string | string[]): string {\r\n return IModelApp.localization.getLocalizedStringWithNamespace(UiFramework.localizationNamespace, key);\r\n }\r\n\r\n /** @internal */\r\n public static get packageName(): string {\r\n return \"appui-react\";\r\n }\r\n\r\n /** @internal */\r\n public static loggerCategory(obj: any): string {\r\n const className = getClassName(obj);\r\n const category = UiFramework.packageName + (className ? `.${className}` : \"\");\r\n return category;\r\n }\r\n\r\n public static dispatchActionToStore(type: string, payload: any, immediateSync = false) {\r\n UiFramework.store.dispatch({ type, payload });\r\n if (immediateSync)\r\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(type);\r\n else\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(type);\r\n }\r\n\r\n public static setAccudrawSnapMode(snapMode: SnapMode) {\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetSnapMode, snapMode, true);\r\n }\r\n\r\n public static getAccudrawSnapMode(): SnapMode {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.snapMode : /* istanbul ignore next */ SnapMode.NearestKeypoint;\r\n }\r\n\r\n public static getActiveSelectionScope(): string {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.activeSelectionScope : /* istanbul ignore next */ \"element\";\r\n }\r\n\r\n public static setActiveSelectionScope(selectionScopeId: string): void {\r\n // istanbul ignore else\r\n if (UiFramework.frameworkState) {\r\n const foundIndex = UiFramework.frameworkState.sessionState.availableSelectionScopes.findIndex((selectionScope: PresentationSelectionScope) => selectionScope.id === selectionScopeId);\r\n if (-1 !== foundIndex) {\r\n const scope = UiFramework.frameworkState.sessionState.availableSelectionScopes[foundIndex];\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetSelectionScope, scope.id);\r\n Presentation.selection.scopes.activeScope = scope.id;\r\n }\r\n }\r\n }\r\n\r\n /** @public */\r\n public static openCursorMenu(menuData: CursorMenuData | undefined): void {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.UpdateCursorMenu, menuData);\r\n }\r\n\r\n /** @public */\r\n public static closeCursorMenu(): void {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.UpdateCursorMenu, undefined);\r\n }\r\n\r\n /** @public */\r\n public static getCursorMenuData(): CursorMenuData | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.cursorMenuData : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n public static getActiveIModelId(): string {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.iModelId : /* istanbul ignore next */ \"\";\r\n }\r\n\r\n public static setActiveIModelId(iModelId: string): void {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetActiveIModelId, iModelId);\r\n }\r\n\r\n public static setIModelConnection(iModelConnection: IModelConnection | undefined, immediateSync = false) {\r\n const oldConnection = UiFramework.getIModelConnection();\r\n if (oldConnection !== iModelConnection) {\r\n if (oldConnection?.iModelId)\r\n FrontstageManager.clearFrontstageDefsForIModelId(oldConnection.iModelId);\r\n oldConnection && undefined === iModelConnection && SyncUiEventDispatcher.clearConnectionEvents(oldConnection);\r\n iModelConnection && SyncUiEventDispatcher.initializeConnectionEvents(iModelConnection);\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetIModelConnection, iModelConnection, immediateSync);\r\n }\r\n UiFramework.setActiveIModelId(iModelConnection?.iModelId ?? \"\");\r\n }\r\n\r\n public static getIModelConnection(): IModelConnection | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.iModelConnection : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n /** Called by iModelApp to initialize saved UI state from registered UseSettingsProviders\r\n * @public\r\n */\r\n public static async initializeStateFromUserSettingsProviders(immediateSync = false) {\r\n // let any registered providers to load values from the new storage location\r\n const providerKeys = [...this._uiSettingsProviderRegistry.keys()];\r\n for await (const key of providerKeys) {\r\n await this._uiSettingsProviderRegistry.get(key)!.loadUserSettings(UiFramework._uiStateStorage);\r\n }\r\n\r\n // istanbul ignore next\r\n if (immediateSync)\r\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(SyncUiEventId.UiStateStorageChanged);\r\n else\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(SyncUiEventId.UiStateStorageChanged);\r\n }\r\n\r\n /** @public */\r\n public static async setUiStateStorage(storage: UiStateStorage, immediateSync = false) {\r\n if (UiFramework._uiStateStorage === storage)\r\n return;\r\n\r\n UiFramework._uiStateStorage = storage;\r\n await this.initializeStateFromUserSettingsProviders(immediateSync);\r\n }\r\n\r\n /** The UI Settings Storage is a convenient wrapper around Local Storage to assist in caching state information across user sessions.\r\n * It was previously used to conflate both the state information across session and the information driven directly from user explicit action,\r\n * which are now handled with user preferences.\r\n * @public\r\n */\r\n public static getUiStateStorage(): UiStateStorage {\r\n return UiFramework._uiStateStorage;\r\n }\r\n\r\n public static setDefaultIModelViewportControlId(iModelViewportControlId: string, immediateSync = false) {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetDefaultIModelViewportControlId, iModelViewportControlId, immediateSync);\r\n }\r\n\r\n public static getDefaultIModelViewportControlId(): string | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.defaultIModelViewportControlId : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n public static setDefaultViewId(viewId: string, immediateSync = false) {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetDefaultViewId, viewId, immediateSync);\r\n }\r\n\r\n public static getDefaultViewId(): string | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.defaultViewId : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n public static setDefaultViewState(viewState: ViewState, immediateSync = false) {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetDefaultViewState, viewState, immediateSync);\r\n }\r\n public static getDefaultViewState(): ViewState | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.defaultViewState : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n /** @public */\r\n public static getAvailableSelectionScopes(): PresentationSelectionScope[] {\r\n return UiFramework.frameworkState ?\r\n UiFramework.frameworkState.sessionState.availableSelectionScopes :\r\n /* istanbul ignore next */\r\n [{ id: \"element\", label: \"Element\" } as PresentationSelectionScope];\r\n }\r\n\r\n public static getIsUiVisible() {\r\n return UiShowHideManager.isUiVisible;\r\n }\r\n\r\n public static setIsUiVisible(visible: boolean) {\r\n if (UiShowHideManager.isUiVisible !== visible) {\r\n UiShowHideManager.isUiVisible = visible;\r\n UiFramework.onUiVisibilityChanged.emit({ visible });\r\n }\r\n }\r\n\r\n public static setColorTheme(theme: string) {\r\n if (UiFramework.getColorTheme() === theme)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetTheme, theme, true);\r\n }\r\n\r\n public static getColorTheme(): string {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.theme : /* istanbul ignore next */ SYSTEM_PREFERRED_COLOR_THEME;\r\n }\r\n\r\n public static setWidgetOpacity(opacity: number) {\r\n if (UiFramework.getWidgetOpacity() === opacity)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetWidgetOpacity, opacity, true);\r\n }\r\n\r\n public static getWidgetOpacity(): number {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.widgetOpacity : /* istanbul ignore next */ WIDGET_OPACITY_DEFAULT;\r\n }\r\n\r\n public static isMobile() { // eslint-disable-line @itwin/prefer-get\r\n return ProcessDetector.isMobileBrowser;\r\n }\r\n\r\n /** Returns the Ui Version.\r\n * @public\r\n */\r\n public static get uiVersion(): FrameworkVersionId {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.frameworkVersion : this._uiVersion;\r\n }\r\n\r\n public static setUiVersion(version: FrameworkVersionId) {\r\n if (UiFramework.uiVersion === version)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetFrameworkVersion, version === \"1\" ? \"1\" : \"2\", true);\r\n }\r\n\r\n public static get showWidgetIcon(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.showWidgetIcon : /* istanbul ignore next */ false;\r\n }\r\n\r\n public static setShowWidgetIcon(value: boolean) {\r\n if (UiFramework.showWidgetIcon === value)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetShowWidgetIcon, value, true);\r\n }\r\n /** Animate Tool Settings on appear */\r\n public static get animateToolSettings(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.animateToolSettings : /* istanbul ignore next */ false;\r\n }\r\n public static setAnimateToolSettings(value: boolean) {\r\n if (UiFramework.animateToolSettings === value)\r\n return;\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.AnimateToolSettings, value, true);\r\n }\r\n\r\n /** Use Tool Name As Tool Settings Widget Tab Label */\r\n public static get useToolAsToolSettingsLabel(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.useToolAsToolSettingsLabel : /* istanbul ignore next */ false;\r\n }\r\n public static setUseToolAsToolSettingsLabel(value: boolean) {\r\n if (UiFramework.useToolAsToolSettingsLabel === value)\r\n return;\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.UseToolAsToolSettingsLabel, value, true);\r\n }\r\n\r\n /** @alpha */\r\n public static get autoCollapseUnpinnedPanels(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.autoCollapseUnpinnedPanels : /* istanbul ignore next */ false;\r\n }\r\n\r\n /** Method used to enable the automatic closing of an unpinned widget panel as soon as the\r\n * mouse leaves the widget panel. The default behavior is to require a mouse click outside\r\n * the panel before it is closed.\r\n * @alpha */\r\n\r\n public static setAutoCollapseUnpinnedPanels(value: boolean) {\r\n if (UiFramework.autoCollapseUnpinnedPanels === value)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.AutoCollapseUnpinnedPanels, value, true);\r\n }\r\n\r\n public static get useDragInteraction(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.useDragInteraction : false;\r\n }\r\n\r\n public static setUseDragInteraction(useDragInteraction: boolean) {\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetDragInteraction, useDragInteraction, true);\r\n }\r\n\r\n /** Returns the variable controlling whether the overlay is displayed in a Viewport\r\n * @public\r\n */\r\n public static get viewOverlayDisplay() {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.viewOverlayDisplay : /* istanbul ignore next */ true;\r\n }\r\n /** Set the variable that controls display of the view overlay. Applies to all viewports in the app\r\n * @public\r\n */\r\n public static setViewOverlayDisplay(display: boolean) {\r\n if (UiFramework.viewOverlayDisplay === display)\r\n return;\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetViewOverlayDisplay, display);\r\n }\r\n /** Send logging message to the telemetry system\r\n * @internal\r\n */\r\n // istanbul ignore next\r\n public static async postTelemetry(eventName: string, eventId?: GuidString, iTwinId?: GuidString, iModeId?: GuidString, changeSetId?: string, time?: TrackingTime, additionalProperties?: { [key: string]: any }): Promise<void> {\r\n if (!IModelApp.authorizationClient)\r\n return;\r\n\r\n try {\r\n const activity: RpcActivity = {\r\n sessionId: IModelApp.sessionId,\r\n activityId: \"\",\r\n applicationId: IModelApp.applicationId,\r\n applicationVersion: IModelApp.applicationVersion,\r\n accessToken: (await IModelApp.authorizationClient.getAccessToken()) ?? \"\",\r\n };\r\n const telemetryEvent = new TelemetryEvent(eventName, eventId, iTwinId, iModeId, changeSetId, time, additionalProperties);\r\n await IModelApp.telemetry.postTelemetry(activity, telemetryEvent);\r\n } catch { }\r\n }\r\n /** Determines whether a ContextMenu is open\r\n * @alpha\r\n * */\r\n public static get isContextMenuOpen(): boolean {\r\n const contextMenu = document.querySelector(\"div.core-context-menu-opened\");\r\n return contextMenu !== null && contextMenu !== undefined;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"UiFramework.js","sourceRoot":"","sources":["../../../src/appui-react/UiFramework.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAKH,OAAO,EAAc,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAoB,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAkB,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAA8C,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAqC,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACzH,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACrH,OAAO,KAAK,iBAAiB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,kBAAkB,M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ACb,CAAC;IACD;;SAEK;IACE,MAAM,KAAK,iBAAiB;QACjC,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,8BAA8B,CAAC,CAAC;QAC3E,OAAO,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,SAAS,CAAC;IAC3D,CAAC;;AAxhBc,wBAAY,GAAG,KAAK,CAAC;AAErB,sBAAU,GAAG,6BAA6B,CAAC;AAC3C,qCAAyB,GAAW,gBAAgB,CAAC,CAAE,eAAe;AAGtE,sBAAU,GAAuB,GAAG,CAAC,CAAC,8CAA8C;AAEnG,oDAAoD;AACrC,2BAAe,GAAmB,IAAI,iBAAiB,EAAE,CAAC;AAE1D,uCAA2B,GAAsC,IAAI,GAAG,EAAgC,CAAC;AACzG,+BAAmB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAChD,+BAAmB,GAAG,KAAK,CAAC;AAoB1C;;GAEG;AACoB,iCAAqB,GAAG,IAAI,wBAAwB,EAAE,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 Utilities\r\n */\r\n\r\n// cSpell:ignore configurableui clientservices\r\n\r\nimport { Store } from \"redux\";\r\nimport { GuidString, Logger, ProcessDetector } from \"@itwin/core-bentley\";\r\nimport { Localization, RpcActivity } from \"@itwin/core-common\";\r\nimport { IModelApp, IModelConnection, SnapMode, ViewState } from \"@itwin/core-frontend\";\r\nimport { Presentation } from \"@itwin/presentation-frontend\";\r\nimport { TelemetryEvent } from \"@itwin/core-telemetry\";\r\nimport { getClassName, UiAdmin, UiError, UiEvent } from \"@itwin/appui-abstract\";\r\nimport { LocalStateStorage, SettingsManager, UiStateStorage } from \"@itwin/core-react\";\r\nimport { UiIModelComponents } from \"@itwin/imodel-components-react\";\r\nimport { BackstageManager } from \"./backstage/BackstageManager\";\r\nimport { ChildWindowManager } from \"./childwindow/ChildWindowManager\";\r\nimport { ConfigurableUiManager } from \"./configurableui/ConfigurableUiManager\";\r\nimport { ConfigurableUiActionId } from \"./configurableui/state\";\r\nimport { FrameworkState } from \"./redux/FrameworkState\";\r\nimport { CursorMenuData, PresentationSelectionScope, SessionStateActionId } from \"./redux/SessionState\";\r\nimport { StateManager } from \"./redux/StateManager\";\r\nimport { HideIsolateEmphasizeActionHandler, HideIsolateEmphasizeManager } from \"./selection/HideIsolateEmphasizeManager\";\r\nimport { SyncUiEventDispatcher, SyncUiEventId } from \"./syncui/SyncUiEventDispatcher\";\r\nimport { SYSTEM_PREFERRED_COLOR_THEME, TOOLBAR_OPACITY_DEFAULT, WIDGET_OPACITY_DEFAULT } from \"./theme/ThemeManager\";\r\nimport * as keyinPaletteTools from \"./tools/KeyinPaletteTools\";\r\nimport * as openSettingTools from \"./tools/OpenSettingsTool\";\r\nimport * as restoreLayoutTools from \"./tools/RestoreLayoutTool\";\r\nimport * as toolSettingTools from \"./tools/ToolSettingsTools\";\r\nimport { UiShowHideManager, UiShowHideSettingsProvider } from \"./utils/UiShowHideManager\";\r\nimport { WidgetManager } from \"./widgets/WidgetManager\";\r\nimport { FrontstageManager } from \"./frontstage/FrontstageManager\";\r\n\r\n// cSpell:ignore Mobi\r\n\r\n/** Defined that available UI Versions. It is recommended to always use the latest version available.\r\n * @deprecated Used to toggle between UI1.0 and UI2.0.\r\n * @public\r\n */\r\nexport type FrameworkVersionId = \"1\" | \"2\";\r\n\r\n/** Interface to be implemented but any classes that wants to load their user settings when the UiStateEntry storage class is set.\r\n * @public\r\n */\r\nexport interface UserSettingsProvider {\r\n /** Unique provider Id */\r\n providerId: string;\r\n /** Function to load settings from settings storage */\r\n loadUserSettings(storage: UiStateStorage): Promise<void>;\r\n}\r\n\r\n/** UiVisibility Event Args interface.\r\n * @public\r\n */\r\nexport interface UiVisibilityEventArgs {\r\n visible: boolean;\r\n}\r\n\r\n/** UiVisibility Event class.\r\n * @public\r\n */\r\nexport class UiVisibilityChangedEvent extends UiEvent<UiVisibilityEventArgs> { }\r\n\r\n/** FrameworkVersion Changed Event Args interface.\r\n * @internal\r\n */\r\nexport interface FrameworkVersionChangedEventArgs {\r\n oldVersion: FrameworkVersionId; // eslint-disable-line deprecation/deprecation\r\n version: FrameworkVersionId; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** FrameworkVersion Changed Event class.\r\n * @internal\r\n */\r\nexport class FrameworkVersionChangedEvent extends UiEvent<FrameworkVersionChangedEventArgs> { }\r\n\r\n/** TrackingTime time argument used by our feature tracking manager as an option argument to the TelemetryClient\r\n * @internal\r\n */\r\nexport interface TrackingTime {\r\n startTime: Date;\r\n endTime: Date;\r\n}\r\n\r\n/**\r\n * Manages the Redux store, localization service and iModel, Project and Login services for the ui-framework package.\r\n * @public\r\n */\r\nexport class UiFramework {\r\n private static _initialized = false;\r\n private static _store?: Store<any>;\r\n private static _complaint = \"UiFramework not initialized\";\r\n private static _frameworkStateKeyInStore: string = \"frameworkState\"; // default name\r\n private static _backstageManager?: BackstageManager;\r\n private static _widgetManager?: WidgetManager;\r\n private static _uiVersion: FrameworkVersionId = \"2\"; // eslint-disable-line deprecation/deprecation\r\n private static _hideIsolateEmphasizeActionHandler?: HideIsolateEmphasizeActionHandler;\r\n /** this provides a default state storage handler */\r\n private static _uiStateStorage: UiStateStorage = new LocalStateStorage();\r\n private static _settingsManager?: SettingsManager;\r\n private static _uiSettingsProviderRegistry: Map<string, UserSettingsProvider> = new Map<string, UserSettingsProvider>();\r\n private static _PopupWindowManager = new ChildWindowManager();\r\n public static useDefaultPopoutUrl = false;\r\n\r\n /** @public */\r\n public static get childWindowManager(): ChildWindowManager {\r\n return UiFramework._PopupWindowManager;\r\n }\r\n\r\n /** Registers class that will be informed when the UserSettingsStorage location has been set or changed. This allows\r\n * classes to load any previously saved settings from the new storage location. Common storage locations are the browser's\r\n * local storage, or the iTwin Product Settings cloud storage available via the SettingsAdmin see `IModelApp.settingsAdmin`.\r\n * @beta\r\n */\r\n public static registerUserSettingsProvider(entry: UserSettingsProvider) {\r\n if (this._uiSettingsProviderRegistry.has(entry.providerId))\r\n return false;\r\n\r\n this._uiSettingsProviderRegistry.set(entry.providerId, entry);\r\n return true;\r\n }\r\n\r\n /** Get Show Ui event.\r\n * @public\r\n */\r\n public static readonly onUiVisibilityChanged = new UiVisibilityChangedEvent();\r\n\r\n /**\r\n * Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore.\r\n * @param store The single Redux store created by the host application. If this is `undefined` then it is assumed that the [[StateManager]] is being used to provide the Redux store.\r\n * @param frameworkStateKey The name of the key used by the app when adding the UiFramework state into the Redux store. If not defined \"frameworkState\" is assumed. This value is ignored if [[StateManager]] is being used. The StateManager use \"frameworkState\".\r\n * @param startInUi1Mode Used for legacy applications to start up in the deprecated UI 1 mode. This should not set by newer applications.\r\n */\r\n public static async initialize(store: Store<any> | undefined, frameworkStateKey?: string, startInUi1Mode?: boolean): Promise<void> {\r\n return this.initializeEx(store, frameworkStateKey, startInUi1Mode);\r\n }\r\n\r\n /**\r\n * Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore.\r\n * @param store The single Redux store created by the host application. If this is `undefined` then it is assumed that the [[StateManager]] is being used to provide the Redux store.\r\n * @param frameworkStateKey The name of the key used by the app when adding the UiFramework state into the Redux store. If not defined \"frameworkState\" is assumed. This value is ignored if [[StateManager]] is being used. The StateManager use \"frameworkState\".\r\n * @param startInUi1Mode Used for legacy applications to start up in the deprecated UI 1 mode. This should not set by newer applications.\r\n *\r\n * @internal\r\n */\r\n public static async initializeEx(store: Store<any> | undefined, frameworkStateKey?: string, startInUi1Mode?: boolean): Promise<void> {\r\n if (UiFramework._initialized) {\r\n Logger.logInfo(UiFramework.loggerCategory(UiFramework), `UiFramework.initialize already called`);\r\n return;\r\n }\r\n\r\n /* if store is undefined then the StateManager class should have been initialized by parent app and the apps default set of reducers registered with it.\r\n If the app has no reducers to add and does not initialize a StateManager then just initialize the StateManager with the default framework reducer now */\r\n if (undefined === store && !StateManager.isInitialized(true))\r\n new StateManager();\r\n\r\n UiFramework._store = store;\r\n // ignore setting _frameworkStateKeyInStore if not using store\r\n if (frameworkStateKey && store)\r\n UiFramework._frameworkStateKeyInStore = frameworkStateKey;\r\n\r\n if (startInUi1Mode)\r\n UiFramework.store.dispatch({ type: ConfigurableUiActionId.SetFrameworkVersion, payload: \"1\" });\r\n\r\n // set up namespace and register all tools from package\r\n const frameworkNamespace = IModelApp.localization?.registerNamespace(UiFramework.localizationNamespace);\r\n [\r\n restoreLayoutTools,\r\n keyinPaletteTools,\r\n openSettingTools,\r\n toolSettingTools,\r\n ].forEach((tool) => IModelApp.tools.registerModule(tool, this.localizationNamespace));\r\n\r\n UiFramework._backstageManager = new BackstageManager();\r\n UiFramework._hideIsolateEmphasizeActionHandler = new HideIsolateEmphasizeManager(); // this allows user to override the default HideIsolateEmphasizeManager implementation.\r\n UiFramework._widgetManager = new WidgetManager();\r\n\r\n // Initialize ui-imodel-components, ui-components, ui-core & ui-abstract\r\n await UiIModelComponents.initialize();\r\n\r\n UiFramework.settingsManager.onSettingsProvidersChanged.addListener(() => {\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(SyncUiEventId.SettingsProvidersChanged);\r\n });\r\n\r\n // Initialize the MessagePresenter interface in UiAdmin for Editor notifications\r\n UiAdmin.messagePresenter = IModelApp.notifications;\r\n\r\n UiFramework._initialized = true;\r\n\r\n // initialize any standalone settings providers that don't need to have defaults set by iModelApp\r\n UiShowHideSettingsProvider.initialize();\r\n\r\n ConfigurableUiManager.initialize();\r\n\r\n return frameworkNamespace;\r\n }\r\n\r\n /** Un-registers the UiFramework internationalization service namespace */\r\n public static terminate() {\r\n UiFramework._store = undefined;\r\n UiFramework._frameworkStateKeyInStore = \"frameworkState\";\r\n if (StateManager.isInitialized(true))\r\n StateManager.clearStore();\r\n // istanbul ignore next\r\n IModelApp.localization?.unregisterNamespace(UiFramework.localizationNamespace);\r\n UiFramework._backstageManager = undefined;\r\n UiFramework._widgetManager = undefined;\r\n UiFramework._hideIsolateEmphasizeActionHandler = undefined;\r\n UiFramework._settingsManager = undefined;\r\n\r\n UiIModelComponents.terminate();\r\n UiShowHideManager.terminate();\r\n UiFramework._initialized = false;\r\n }\r\n\r\n /** Determines if UiFramework has been initialized */\r\n public static get initialized(): boolean { return UiFramework._initialized; }\r\n\r\n /** Property that returns the SettingManager used by AppUI-based applications.\r\n * @public\r\n */\r\n public static get settingsManager() {\r\n if (undefined === UiFramework._settingsManager)\r\n UiFramework._settingsManager = new SettingsManager();\r\n return UiFramework._settingsManager;\r\n }\r\n\r\n /** @public */\r\n public static get frameworkStateKey(): string {\r\n return UiFramework._frameworkStateKeyInStore;\r\n }\r\n\r\n /** The UiFramework state maintained by Redux\r\n * @public\r\n */\r\n public static get frameworkState(): FrameworkState | undefined {\r\n try {\r\n // eslint-disable-next-line dot-notation\r\n return UiFramework.store.getState()[UiFramework.frameworkStateKey];\r\n } catch (_e) {\r\n return undefined;\r\n }\r\n }\r\n\r\n /** The Redux store */\r\n public static get store(): Store<any> {\r\n if (UiFramework._store)\r\n return UiFramework._store;\r\n\r\n // istanbul ignore else\r\n if (!StateManager.isInitialized(true))\r\n throw new UiError(UiFramework.loggerCategory(this), `Error trying to access redux store before either store or StateManager has been initialized.`);\r\n\r\n // istanbul ignore next\r\n return StateManager.store;\r\n }\r\n\r\n /** The internationalization service created by the app.\r\n * @internal\r\n */\r\n public static get localization(): Localization {\r\n // istanbul ignore next\r\n if (!IModelApp.localization)\r\n throw new UiError(UiFramework.loggerCategory(this), `IModelApp.localization has not been defined.`);\r\n return IModelApp.localization;\r\n }\r\n\r\n /** The internationalization service namespace. */\r\n public static get localizationNamespace(): string {\r\n return \"UiFramework\";\r\n }\r\n\r\n /** @public */\r\n public static get backstageManager(): BackstageManager {\r\n // istanbul ignore next\r\n if (!UiFramework._backstageManager)\r\n throw new UiError(UiFramework.loggerCategory(this), UiFramework._complaint);\r\n return UiFramework._backstageManager;\r\n }\r\n\r\n /** @alpha */\r\n public static get hideIsolateEmphasizeActionHandler(): HideIsolateEmphasizeActionHandler {\r\n // istanbul ignore next\r\n if (!UiFramework._hideIsolateEmphasizeActionHandler)\r\n throw new UiError(UiFramework.loggerCategory(this), UiFramework._complaint);\r\n return UiFramework._hideIsolateEmphasizeActionHandler;\r\n }\r\n\r\n /** @alpha */\r\n public static setHideIsolateEmphasizeActionHandler(handler: HideIsolateEmphasizeActionHandler | undefined) {\r\n // istanbul ignore else\r\n if (handler)\r\n UiFramework._hideIsolateEmphasizeActionHandler = handler;\r\n else\r\n UiFramework._hideIsolateEmphasizeActionHandler = new HideIsolateEmphasizeManager();\r\n }\r\n\r\n /** @alpha */\r\n public static get widgetManager(): WidgetManager {\r\n // istanbul ignore next\r\n if (!UiFramework._widgetManager)\r\n throw new UiError(UiFramework.loggerCategory(this), UiFramework._complaint);\r\n return UiFramework._widgetManager;\r\n }\r\n\r\n /** Calls localization.getLocalizedString with the \"UiFramework\" namespace. Do NOT include the namespace in the key.\r\n * @internal\r\n */\r\n public static translate(key: string | string[]): string {\r\n return IModelApp.localization.getLocalizedString(key, { ns: UiFramework.localizationNamespace });\r\n }\r\n\r\n /** @internal */\r\n public static get packageName(): string {\r\n return \"appui-react\";\r\n }\r\n\r\n /** @internal */\r\n public static loggerCategory(obj: any): string {\r\n const className = getClassName(obj);\r\n const category = UiFramework.packageName + (className ? `.${className}` : \"\");\r\n return category;\r\n }\r\n\r\n public static dispatchActionToStore(type: string, payload: any, immediateSync = false) {\r\n UiFramework.store.dispatch({ type, payload });\r\n if (immediateSync)\r\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(type);\r\n else\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(type);\r\n }\r\n\r\n public static setAccudrawSnapMode(snapMode: SnapMode) {\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetSnapMode, snapMode, true);\r\n }\r\n\r\n public static getAccudrawSnapMode(): SnapMode {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.snapMode : /* istanbul ignore next */ SnapMode.NearestKeypoint;\r\n }\r\n\r\n public static getActiveSelectionScope(): string {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.activeSelectionScope : /* istanbul ignore next */ \"element\";\r\n }\r\n\r\n public static setActiveSelectionScope(selectionScopeId: string): void {\r\n // istanbul ignore else\r\n if (UiFramework.frameworkState) {\r\n const foundIndex = UiFramework.frameworkState.sessionState.availableSelectionScopes.findIndex((selectionScope: PresentationSelectionScope) => selectionScope.id === selectionScopeId);\r\n if (-1 !== foundIndex) {\r\n const scope = UiFramework.frameworkState.sessionState.availableSelectionScopes[foundIndex];\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetSelectionScope, scope.id);\r\n Presentation.selection.scopes.activeScope = scope.id;\r\n }\r\n }\r\n }\r\n\r\n /** @public */\r\n public static openCursorMenu(menuData: CursorMenuData | undefined): void {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.UpdateCursorMenu, menuData);\r\n }\r\n\r\n /** @public */\r\n public static closeCursorMenu(): void {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.UpdateCursorMenu, undefined);\r\n }\r\n\r\n /** @public */\r\n public static getCursorMenuData(): CursorMenuData | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.cursorMenuData : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n public static getActiveIModelId(): string {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.iModelId : /* istanbul ignore next */ \"\";\r\n }\r\n\r\n public static setActiveIModelId(iModelId: string): void {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetActiveIModelId, iModelId);\r\n }\r\n\r\n public static setIModelConnection(iModelConnection: IModelConnection | undefined, immediateSync = false) {\r\n const oldConnection = UiFramework.getIModelConnection();\r\n if (oldConnection !== iModelConnection) {\r\n if (oldConnection?.iModelId)\r\n FrontstageManager.clearFrontstageDefsForIModelId(oldConnection.iModelId);\r\n oldConnection && undefined === iModelConnection && SyncUiEventDispatcher.clearConnectionEvents(oldConnection);\r\n iModelConnection && SyncUiEventDispatcher.initializeConnectionEvents(iModelConnection);\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetIModelConnection, iModelConnection, immediateSync);\r\n }\r\n UiFramework.setActiveIModelId(iModelConnection?.iModelId ?? \"\");\r\n }\r\n\r\n public static getIModelConnection(): IModelConnection | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.iModelConnection : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n /** Called by iModelApp to initialize saved UI state from registered UseSettingsProviders\r\n * @public\r\n */\r\n public static async initializeStateFromUserSettingsProviders(immediateSync = false) {\r\n // let any registered providers to load values from the new storage location\r\n const providerKeys = [...this._uiSettingsProviderRegistry.keys()];\r\n for await (const key of providerKeys) {\r\n await this._uiSettingsProviderRegistry.get(key)!.loadUserSettings(UiFramework._uiStateStorage);\r\n }\r\n\r\n // istanbul ignore next\r\n if (immediateSync)\r\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(SyncUiEventId.UiStateStorageChanged);\r\n else\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(SyncUiEventId.UiStateStorageChanged);\r\n }\r\n\r\n /** @public */\r\n public static async setUiStateStorage(storage: UiStateStorage, immediateSync = false) {\r\n if (UiFramework._uiStateStorage === storage)\r\n return;\r\n\r\n UiFramework._uiStateStorage = storage;\r\n await this.initializeStateFromUserSettingsProviders(immediateSync);\r\n }\r\n\r\n /** The UI Settings Storage is a convenient wrapper around Local Storage to assist in caching state information across user sessions.\r\n * It was previously used to conflate both the state information across session and the information driven directly from user explicit action,\r\n * which are now handled with user preferences.\r\n * @public\r\n */\r\n public static getUiStateStorage(): UiStateStorage {\r\n return UiFramework._uiStateStorage;\r\n }\r\n\r\n public static setDefaultIModelViewportControlId(iModelViewportControlId: string, immediateSync = false) {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetDefaultIModelViewportControlId, iModelViewportControlId, immediateSync);\r\n }\r\n\r\n public static getDefaultIModelViewportControlId(): string | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.defaultIModelViewportControlId : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n public static setDefaultViewId(viewId: string, immediateSync = false) {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetDefaultViewId, viewId, immediateSync);\r\n }\r\n\r\n public static getDefaultViewId(): string | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.defaultViewId : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n public static setDefaultViewState(viewState: ViewState, immediateSync = false) {\r\n UiFramework.dispatchActionToStore(SessionStateActionId.SetDefaultViewState, viewState, immediateSync);\r\n }\r\n public static getDefaultViewState(): ViewState | undefined {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.sessionState.defaultViewState : /* istanbul ignore next */ undefined;\r\n }\r\n\r\n /** @public */\r\n public static getAvailableSelectionScopes(): PresentationSelectionScope[] {\r\n return UiFramework.frameworkState ?\r\n UiFramework.frameworkState.sessionState.availableSelectionScopes :\r\n /* istanbul ignore next */\r\n [{ id: \"element\", label: \"Element\" } as PresentationSelectionScope];\r\n }\r\n\r\n public static getIsUiVisible() {\r\n return UiShowHideManager.isUiVisible;\r\n }\r\n\r\n public static setIsUiVisible(visible: boolean) {\r\n if (UiShowHideManager.isUiVisible !== visible) {\r\n UiShowHideManager.isUiVisible = visible;\r\n UiFramework.onUiVisibilityChanged.emit({ visible });\r\n }\r\n }\r\n\r\n public static setColorTheme(theme: string) {\r\n if (UiFramework.getColorTheme() === theme)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetTheme, theme, true);\r\n }\r\n\r\n public static getColorTheme(): string {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.theme : /* istanbul ignore next */ SYSTEM_PREFERRED_COLOR_THEME;\r\n }\r\n\r\n /** UiFramework.setToolbarOpacity() sets the non-hovered opacity to the value specified. Used by UI 2.0 and later.\r\n * @param opacity a value between 0 and 1. The default value is 0.5. IT IS NOT ADVISED TO USE A VALUE BELOW 0.2\r\n * @public\r\n */\r\n public static setToolbarOpacity(opacity: number) {\r\n if (UiFramework.getToolbarOpacity() === opacity)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetToolbarOpacity, opacity, true);\r\n }\r\n\r\n /** UiFramework.getToolbarOpacity() returns a number between 0 and 1 that is the non-hovered opacity for toolbars.\r\n * @public\r\n */\r\n public static getToolbarOpacity(): number {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.toolbarOpacity : /* istanbul ignore next */ TOOLBAR_OPACITY_DEFAULT;\r\n }\r\n\r\n public static setWidgetOpacity(opacity: number) {\r\n if (UiFramework.getWidgetOpacity() === opacity)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetWidgetOpacity, opacity, true);\r\n }\r\n\r\n public static getWidgetOpacity(): number {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.widgetOpacity : /* istanbul ignore next */ WIDGET_OPACITY_DEFAULT;\r\n }\r\n\r\n public static isMobile() { // eslint-disable-line @itwin/prefer-get\r\n return ProcessDetector.isMobileBrowser;\r\n }\r\n\r\n /** Returns the Ui Version.\r\n * @public\r\n */\r\n public static get uiVersion(): FrameworkVersionId { // eslint-disable-line deprecation/deprecation\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.frameworkVersion : this._uiVersion;\r\n }\r\n\r\n public static setUiVersion(version: FrameworkVersionId) { // eslint-disable-line deprecation/deprecation\r\n if (UiFramework.uiVersion === version)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetFrameworkVersion, version === \"1\" ? \"1\" : \"2\", true);\r\n }\r\n\r\n public static get showWidgetIcon(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.showWidgetIcon : /* istanbul ignore next */ false;\r\n }\r\n\r\n public static setShowWidgetIcon(value: boolean) {\r\n if (UiFramework.showWidgetIcon === value)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetShowWidgetIcon, value, true);\r\n }\r\n /** Animate Tool Settings on appear */\r\n public static get animateToolSettings(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.animateToolSettings : /* istanbul ignore next */ false;\r\n }\r\n public static setAnimateToolSettings(value: boolean) {\r\n if (UiFramework.animateToolSettings === value)\r\n return;\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.AnimateToolSettings, value, true);\r\n }\r\n\r\n /** Use Tool Name As Tool Settings Widget Tab Label */\r\n public static get useToolAsToolSettingsLabel(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.useToolAsToolSettingsLabel : /* istanbul ignore next */ false;\r\n }\r\n public static setUseToolAsToolSettingsLabel(value: boolean) {\r\n if (UiFramework.useToolAsToolSettingsLabel === value)\r\n return;\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.UseToolAsToolSettingsLabel, value, true);\r\n }\r\n\r\n /** @alpha */\r\n public static get autoCollapseUnpinnedPanels(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.autoCollapseUnpinnedPanels : /* istanbul ignore next */ false;\r\n }\r\n\r\n /** Method used to enable the automatic closing of an unpinned widget panel as soon as the\r\n * mouse leaves the widget panel. The default behavior is to require a mouse click outside\r\n * the panel before it is closed.\r\n * @alpha */\r\n\r\n public static setAutoCollapseUnpinnedPanels(value: boolean) {\r\n if (UiFramework.autoCollapseUnpinnedPanels === value)\r\n return;\r\n\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.AutoCollapseUnpinnedPanels, value, true);\r\n }\r\n\r\n public static get useDragInteraction(): boolean {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.useDragInteraction : false;\r\n }\r\n\r\n public static setUseDragInteraction(useDragInteraction: boolean) {\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetDragInteraction, useDragInteraction, true);\r\n }\r\n\r\n /** Returns the variable controlling whether the overlay is displayed in a Viewport\r\n * @public\r\n */\r\n public static get viewOverlayDisplay() {\r\n return UiFramework.frameworkState ? UiFramework.frameworkState.configurableUiState.viewOverlayDisplay : /* istanbul ignore next */ true;\r\n }\r\n /** Set the variable that controls display of the view overlay. Applies to all viewports in the app\r\n * @public\r\n */\r\n public static setViewOverlayDisplay(display: boolean) {\r\n if (UiFramework.viewOverlayDisplay === display)\r\n return;\r\n UiFramework.dispatchActionToStore(ConfigurableUiActionId.SetViewOverlayDisplay, display);\r\n }\r\n /** Send logging message to the telemetry system\r\n * @internal\r\n */\r\n // istanbul ignore next\r\n public static async postTelemetry(eventName: string, eventId?: GuidString, iTwinId?: GuidString, iModeId?: GuidString, changeSetId?: string, time?: TrackingTime, additionalProperties?: { [key: string]: any }): Promise<void> {\r\n if (!IModelApp.authorizationClient)\r\n return;\r\n\r\n try {\r\n const activity: RpcActivity = {\r\n sessionId: IModelApp.sessionId,\r\n activityId: \"\",\r\n applicationId: IModelApp.applicationId,\r\n applicationVersion: IModelApp.applicationVersion,\r\n accessToken: (await IModelApp.authorizationClient.getAccessToken()) ?? \"\",\r\n };\r\n const telemetryEvent = new TelemetryEvent(eventName, eventId, iTwinId, iModeId, changeSetId, time, additionalProperties);\r\n await IModelApp.telemetry.postTelemetry(activity, telemetryEvent);\r\n } catch { }\r\n }\r\n /** Determines whether a ContextMenu is open\r\n * @alpha\r\n * */\r\n public static get isContextMenuOpen(): boolean {\r\n const contextMenu = document.querySelector(\"div.core-context-menu-opened\");\r\n return contextMenu !== null && contextMenu !== undefined;\r\n }\r\n}\r\n"]}
@@ -169,7 +169,7 @@ export class FrameworkAccuDraw extends AccuDraw {
169
169
  if (modeKey === undefined)
170
170
  modeKey = "polar";
171
171
  const modeString = UiFramework.translate(`accuDraw.compassMode.${modeKey}`);
172
- const modeMessage = UiFramework.localization.getLocalizedStringWithNamespace(UiFramework.localizationNamespace, "accuDraw.compassModeSet", { modeString });
172
+ const modeMessage = UiFramework.localization.getLocalizedString("accuDraw.compassModeSet", { modeString, ns: UiFramework.localizationNamespace });
173
173
  this.outputInfoMessage(modeMessage);
174
174
  }
175
175
  }
@@ -180,7 +180,7 @@ export class FrameworkAccuDraw extends AccuDraw {
180
180
  if (rotationKey === undefined)
181
181
  rotationKey = "top";
182
182
  const rotationString = UiFramework.translate(`accuDraw.rotation.${rotationKey}`);
183
- const rotationMessage = UiFramework.localization.getLocalizedStringWithNamespace(UiFramework.localizationNamespace, "accuDraw.rotationSet", { rotationString });
183
+ const rotationMessage = UiFramework.localization.getLocalizedString("accuDraw.rotationSet", { rotationString, ns: UiFramework.localizationNamespace });
184
184
  this.outputInfoMessage(rotationMessage);
185
185
  }
186
186
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FrameworkAccuDraw.js","sourceRoot":"","sources":["../../../../src/appui-react/accudraw/FrameworkAccuDraw.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EACL,QAAQ,EAAiB,WAAW,EAAE,SAAS,EAAE,SAAS,EAC1D,oBAAoB,EAAE,qBAAqB,EAAE,YAAY,EAAE,YAAY,GACxE,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAkB,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAwB,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGvF,qBAAqB;AAErB,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAsB;IACvD,CAAC,WAAW,CAAC,KAAK,EAAE,OAA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AE,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC,CAAC;AACnL,mEAAmE;AAC5C,8CAA4B,GAAG,IAAI,uBAAuB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,YAAY,KAAK,YAAY,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAC3L,+DAA+D;AACxC,wCAAsB,GAAG,IAAI,uBAAuB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,KAAK,WAAW,CAAC,KAAK,EAAE,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC,CAAC;AACpL,qEAAqE;AAC9C,8CAA4B,GAAG,IAAI,uBAAuB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,KAAK,WAAW,CAAC,WAAW,EAAE,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAEhM,uCAAuC;AAChB,kDAAgC,GAAG,IAAI,8BAA8B,EAAE,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 AccuDraw\r\n */\r\n\r\nimport { BeUiEvent } from \"@itwin/core-bentley\";\r\nimport {\r\n AccuDraw, BeButtonEvent, CompassMode, IModelApp, ItemField,\r\n NotifyMessageDetails, OutputMessagePriority, QuantityType, RotationMode,\r\n} from \"@itwin/core-frontend\";\r\nimport { ConditionalBooleanValue } from \"@itwin/appui-abstract\";\r\nimport { UiStateStorage, UiStateStorageStatus } from \"@itwin/core-react\";\r\nimport { UiFramework, UserSettingsProvider } from \"../UiFramework\";\r\nimport { SyncUiEventDispatcher, SyncUiEventId } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { AccuDrawUiSettings } from \"./AccuDrawUiSettings\";\r\n\r\n// cspell:ignore dont\r\n\r\nconst compassModeToKeyMap = new Map<CompassMode, string>([\r\n [CompassMode.Polar, \"polar\"],\r\n [CompassMode.Rectangular, \"rectangular\"],\r\n]);\r\n\r\nconst rotationModeToKeyMap = new Map<RotationMode, string>([\r\n [RotationMode.Top, \"top\"],\r\n [RotationMode.Front, \"front\"],\r\n [RotationMode.Side, \"side\"],\r\n [RotationMode.View, \"view\"],\r\n [RotationMode.ACS, \"ACS\"],\r\n [RotationMode.Context, \"context\"],\r\n]);\r\n\r\n/** Arguments for [[AccuDrawSetFieldFocusEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetFieldFocusEventArgs {\r\n field: ItemField;\r\n}\r\n\r\n/** AccuDraw Set Field Focus event\r\n * @beta */\r\nexport class AccuDrawSetFieldFocusEvent extends BeUiEvent<AccuDrawSetFieldFocusEventArgs> { }\r\n\r\n/** Arguments for [[AccuDrawSetFieldValueToUiEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetFieldValueToUiEventArgs {\r\n field: ItemField;\r\n value: number;\r\n formattedValue: string;\r\n}\r\n\r\n/** AccuDraw Set Field Value to Ui event\r\n * @beta */\r\nexport class AccuDrawSetFieldValueToUiEvent extends BeUiEvent<AccuDrawSetFieldValueToUiEventArgs> { }\r\n\r\n/** Arguments for [[AccuDrawSetFieldValueFromUiEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetFieldValueFromUiEventArgs {\r\n field: ItemField;\r\n stringValue: string;\r\n}\r\n\r\n/** AccuDraw Set Field Value from Ui event\r\n * @beta */\r\nexport class AccuDrawSetFieldValueFromUiEvent extends BeUiEvent<AccuDrawSetFieldValueFromUiEventArgs> { }\r\n\r\n/** Arguments for [[AccuDrawSetFieldLockEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetFieldLockEventArgs {\r\n field: ItemField;\r\n lock: boolean;\r\n}\r\n\r\n/** AccuDraw Set Field Lock event\r\n * @beta */\r\nexport class AccuDrawSetFieldLockEvent extends BeUiEvent<AccuDrawSetFieldLockEventArgs> { }\r\n\r\n/** Arguments for [[AccuDrawSetCompassModeEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetCompassModeEventArgs {\r\n mode: CompassMode;\r\n}\r\n\r\n/** AccuDraw Set Compass Mode event\r\n * @beta */\r\nexport class AccuDrawSetCompassModeEvent extends BeUiEvent<AccuDrawSetCompassModeEventArgs> { }\r\n\r\n/** AccuDraw Grab Input Focus event\r\n * @beta */\r\nexport class AccuDrawGrabInputFocusEvent extends BeUiEvent<{}> { }\r\n\r\n/** AccuDraw Ui Settings Changed event\r\n * @beta */\r\nexport class AccuDrawUiSettingsChangedEvent extends BeUiEvent<{}> { }\r\n\r\n/** Implementation of AccuDraw that sends events for UI and status changes\r\n * @beta\r\n */\r\nexport class FrameworkAccuDraw extends AccuDraw implements UserSettingsProvider {\r\n private static _displayNotifications = false;\r\n private static _uiSettings: AccuDrawUiSettings | undefined;\r\n private static _settingsNamespace = \"AppUiSettings\";\r\n private static _notificationsKey = \"AccuDrawNotifications\";\r\n public readonly providerId = \"FrameworkAccuDraw\";\r\n\r\n /** AccuDraw Set Field Focus event. */\r\n public static readonly onAccuDrawSetFieldFocusEvent = new AccuDrawSetFieldFocusEvent();\r\n /** AccuDraw Set Field Value to Ui event. */\r\n public static readonly onAccuDrawSetFieldValueToUiEvent = new AccuDrawSetFieldValueToUiEvent();\r\n /** AccuDraw Set Field Value from Ui event. */\r\n public static readonly onAccuDrawSetFieldValueFromUiEvent = new AccuDrawSetFieldValueFromUiEvent();\r\n /** AccuDraw Set Field Lock event. */\r\n public static readonly onAccuDrawSetFieldLockEvent = new AccuDrawSetFieldLockEvent();\r\n /** AccuDraw Set Mode event. */\r\n public static readonly onAccuDrawSetCompassModeEvent = new AccuDrawSetCompassModeEvent();\r\n /** AccuDraw Grab Input Focus event. */\r\n public static readonly onAccuDrawGrabInputFocusEvent = new AccuDrawGrabInputFocusEvent();\r\n\r\n /** Determines if AccuDraw.rotationMode === RotationMode.Top */\r\n public static readonly isTopRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.Top, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.Front */\r\n public static readonly isFrontRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.Front, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.Side */\r\n public static readonly isSideRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.Side, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.View */\r\n public static readonly isViewRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.View, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.ACS */\r\n public static readonly isACSRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.ACS, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.Context */\r\n public static readonly isContextRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.Context, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.compassMode === CompassMode.Polar */\r\n public static readonly isPolarModeConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.compassMode === CompassMode.Polar, [SyncUiEventId.AccuDrawCompassModeChanged]);\r\n /** Determines if AccuDraw.compassMode === CompassMode.Rectangular */\r\n public static readonly isRectangularModeConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.compassMode === CompassMode.Rectangular, [SyncUiEventId.AccuDrawCompassModeChanged]);\r\n\r\n /** AccuDraw Grab Input Focus event. */\r\n public static readonly onAccuDrawUiSettingsChangedEvent = new AccuDrawUiSettingsChangedEvent();\r\n\r\n /** Determines if notifications should be displayed for AccuDraw changes */\r\n public static get displayNotifications(): boolean { return FrameworkAccuDraw._displayNotifications; }\r\n public static set displayNotifications(v: boolean) {\r\n FrameworkAccuDraw._displayNotifications = v;\r\n UiFramework.getUiStateStorage().saveSetting(this._settingsNamespace, this._notificationsKey, v); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n }\r\n\r\n /* @internal */\r\n public async loadUserSettings(storage: UiStateStorage): Promise<void> {\r\n const result = await storage.getSetting(FrameworkAccuDraw._settingsNamespace, FrameworkAccuDraw._notificationsKey);\r\n if (result.status === UiStateStorageStatus.Success)\r\n FrameworkAccuDraw._displayNotifications = result.setting;\r\n }\r\n\r\n /** AccuDraw User Interface settings */\r\n public static get uiStateStorage(): AccuDrawUiSettings | undefined { return FrameworkAccuDraw._uiSettings; }\r\n public static set uiStateStorage(v: AccuDrawUiSettings | undefined) {\r\n FrameworkAccuDraw._uiSettings = v;\r\n FrameworkAccuDraw.onAccuDrawUiSettingsChangedEvent.emit({});\r\n }\r\n\r\n constructor() {\r\n super();\r\n FrameworkAccuDraw.onAccuDrawSetFieldValueFromUiEvent.addListener(this.handleSetFieldValueFromUiEvent);\r\n UiFramework.registerUserSettingsProvider(this);\r\n }\r\n\r\n private handleSetFieldValueFromUiEvent = async (args: AccuDrawSetFieldValueFromUiEventArgs) => {\r\n return this.processFieldInput(args.field, args.stringValue, false);\r\n };\r\n\r\n /** @internal */\r\n public override onCompassModeChange(): void {\r\n FrameworkAccuDraw.onAccuDrawSetCompassModeEvent.emit({ mode: this.compassMode });\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(SyncUiEventId.AccuDrawCompassModeChanged);\r\n\r\n this.outputCompassModeMessage();\r\n }\r\n\r\n /** @internal */\r\n public override onRotationModeChange(): void {\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(SyncUiEventId.AccuDrawRotationChanged);\r\n\r\n this.outputRotationMessage();\r\n }\r\n\r\n /** @internal */\r\n public override onFieldLockChange(index: ItemField): void {\r\n FrameworkAccuDraw.onAccuDrawSetFieldLockEvent.emit({ field: index, lock: this.getFieldLock(index) });\r\n }\r\n\r\n /** @internal */\r\n public override onFieldValueChange(index: ItemField): void {\r\n const value = this.getValueByIndex(index);\r\n const formattedValue = FrameworkAccuDraw.getFieldDisplayValue(index);\r\n FrameworkAccuDraw.onAccuDrawSetFieldValueToUiEvent.emit({ field: index, value, formattedValue });\r\n }\r\n\r\n private fieldValuesChanged(): void {\r\n this.onFieldValueChange(ItemField.X_Item);\r\n this.onFieldValueChange(ItemField.Y_Item);\r\n this.onFieldValueChange(ItemField.Z_Item);\r\n this.onFieldValueChange(ItemField.ANGLE_Item);\r\n this.onFieldValueChange(ItemField.DIST_Item);\r\n }\r\n\r\n /** @internal */\r\n public override setFocusItem(index: ItemField): void {\r\n FrameworkAccuDraw.onAccuDrawSetFieldFocusEvent.emit({ field: index });\r\n }\r\n\r\n /** Implemented by sub-classes to update ui fields to show current deltas or coordinates when inactive.\r\n * Should also choose active x or y input field in rectangular mode based on cursor position when\r\n * axis isn't locked to support \"smart lock\".\r\n * @internal\r\n */\r\n public override onMotion(_ev: BeButtonEvent): void {\r\n if (!this.isEnabled || this.isDeactivated || UiFramework.isContextMenuOpen)\r\n return;\r\n\r\n this.fieldValuesChanged();\r\n\r\n if (!this.dontMoveFocus)\r\n this.setFocusItem(this.newFocus);\r\n }\r\n\r\n /** Determine if the AccuDraw UI has focus\r\n * @internal\r\n */\r\n public override get hasInputFocus(): boolean {\r\n let hasFocus = false;\r\n const el = document.querySelector(\"div.uifw-accudraw-field-container\");\r\n if (el)\r\n hasFocus = el.contains(document.activeElement);\r\n return hasFocus;\r\n }\r\n\r\n /** Implement this method to set focus to the AccuDraw UI.\r\n * @internal\r\n */\r\n public override grabInputFocus(): void {\r\n FrameworkAccuDraw.onAccuDrawGrabInputFocusEvent.emit({});\r\n }\r\n\r\n /** Gets the display value for an AccuDraw field */\r\n public static getFieldDisplayValue(index: ItemField): string {\r\n const value = IModelApp.accuDraw.getValueByIndex(index);\r\n let formattedValue = value.toString();\r\n\r\n const formatterSpec = IModelApp.quantityFormatter.findFormatterSpecByQuantityType(ItemField.ANGLE_Item === index ? QuantityType.Angle : QuantityType.Length);\r\n // istanbul ignore else\r\n if (formatterSpec)\r\n formattedValue = IModelApp.quantityFormatter.formatQuantity(value, formatterSpec);\r\n\r\n return formattedValue;\r\n }\r\n\r\n /** AccuDraw Set Field Value from Ui. */\r\n public static setFieldValueFromUi(field: ItemField, stringValue: string): void {\r\n FrameworkAccuDraw.onAccuDrawSetFieldValueFromUiEvent.emit({ field, stringValue });\r\n }\r\n\r\n private outputInfoMessage(message: string): void {\r\n // istanbul ignore else\r\n if (FrameworkAccuDraw.displayNotifications)\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, message));\r\n }\r\n\r\n private outputCompassModeMessage(): void {\r\n if (FrameworkAccuDraw.displayNotifications) {\r\n let modeKey = compassModeToKeyMap.get(this.compassMode);\r\n // istanbul ignore if\r\n if (modeKey === undefined)\r\n modeKey = \"polar\";\r\n const modeString = UiFramework.translate(`accuDraw.compassMode.${modeKey}`);\r\n const modeMessage = UiFramework.localization.getLocalizedStringWithNamespace(UiFramework.localizationNamespace, \"accuDraw.compassModeSet\", { modeString });\r\n this.outputInfoMessage(modeMessage);\r\n }\r\n }\r\n\r\n private outputRotationMessage(): void {\r\n if (FrameworkAccuDraw.displayNotifications) {\r\n let rotationKey = rotationModeToKeyMap.get(this.rotationMode);\r\n // istanbul ignore if\r\n if (rotationKey === undefined)\r\n rotationKey = \"top\";\r\n const rotationString = UiFramework.translate(`accuDraw.rotation.${rotationKey}`);\r\n const rotationMessage = UiFramework.localization.getLocalizedStringWithNamespace(UiFramework.localizationNamespace, \"accuDraw.rotationSet\", { rotationString });\r\n this.outputInfoMessage(rotationMessage);\r\n }\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"FrameworkAccuDraw.js","sourceRoot":"","sources":["../../../../src/appui-react/accudraw/FrameworkAccuDraw.ts"],"names":[],"mappings":"AAAA;;;+FAG+F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------------------------------------------------------\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 AccuDraw\r\n */\r\n\r\nimport { BeUiEvent } from \"@itwin/core-bentley\";\r\nimport {\r\n AccuDraw, BeButtonEvent, CompassMode, IModelApp, ItemField,\r\n NotifyMessageDetails, OutputMessagePriority, QuantityType, RotationMode,\r\n} from \"@itwin/core-frontend\";\r\nimport { ConditionalBooleanValue } from \"@itwin/appui-abstract\";\r\nimport { UiStateStorage, UiStateStorageStatus } from \"@itwin/core-react\";\r\nimport { UiFramework, UserSettingsProvider } from \"../UiFramework\";\r\nimport { SyncUiEventDispatcher, SyncUiEventId } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { AccuDrawUiSettings } from \"./AccuDrawUiSettings\";\r\n\r\n// cspell:ignore dont\r\n\r\nconst compassModeToKeyMap = new Map<CompassMode, string>([\r\n [CompassMode.Polar, \"polar\"],\r\n [CompassMode.Rectangular, \"rectangular\"],\r\n]);\r\n\r\nconst rotationModeToKeyMap = new Map<RotationMode, string>([\r\n [RotationMode.Top, \"top\"],\r\n [RotationMode.Front, \"front\"],\r\n [RotationMode.Side, \"side\"],\r\n [RotationMode.View, \"view\"],\r\n [RotationMode.ACS, \"ACS\"],\r\n [RotationMode.Context, \"context\"],\r\n]);\r\n\r\n/** Arguments for [[AccuDrawSetFieldFocusEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetFieldFocusEventArgs {\r\n field: ItemField;\r\n}\r\n\r\n/** AccuDraw Set Field Focus event\r\n * @beta */\r\nexport class AccuDrawSetFieldFocusEvent extends BeUiEvent<AccuDrawSetFieldFocusEventArgs> { }\r\n\r\n/** Arguments for [[AccuDrawSetFieldValueToUiEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetFieldValueToUiEventArgs {\r\n field: ItemField;\r\n value: number;\r\n formattedValue: string;\r\n}\r\n\r\n/** AccuDraw Set Field Value to Ui event\r\n * @beta */\r\nexport class AccuDrawSetFieldValueToUiEvent extends BeUiEvent<AccuDrawSetFieldValueToUiEventArgs> { }\r\n\r\n/** Arguments for [[AccuDrawSetFieldValueFromUiEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetFieldValueFromUiEventArgs {\r\n field: ItemField;\r\n stringValue: string;\r\n}\r\n\r\n/** AccuDraw Set Field Value from Ui event\r\n * @beta */\r\nexport class AccuDrawSetFieldValueFromUiEvent extends BeUiEvent<AccuDrawSetFieldValueFromUiEventArgs> { }\r\n\r\n/** Arguments for [[AccuDrawSetFieldLockEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetFieldLockEventArgs {\r\n field: ItemField;\r\n lock: boolean;\r\n}\r\n\r\n/** AccuDraw Set Field Lock event\r\n * @beta */\r\nexport class AccuDrawSetFieldLockEvent extends BeUiEvent<AccuDrawSetFieldLockEventArgs> { }\r\n\r\n/** Arguments for [[AccuDrawSetCompassModeEvent]]\r\n * @beta */\r\nexport interface AccuDrawSetCompassModeEventArgs {\r\n mode: CompassMode;\r\n}\r\n\r\n/** AccuDraw Set Compass Mode event\r\n * @beta */\r\nexport class AccuDrawSetCompassModeEvent extends BeUiEvent<AccuDrawSetCompassModeEventArgs> { }\r\n\r\n/** AccuDraw Grab Input Focus event\r\n * @beta */\r\nexport class AccuDrawGrabInputFocusEvent extends BeUiEvent<{}> { }\r\n\r\n/** AccuDraw Ui Settings Changed event\r\n * @beta */\r\nexport class AccuDrawUiSettingsChangedEvent extends BeUiEvent<{}> { }\r\n\r\n/** Implementation of AccuDraw that sends events for UI and status changes\r\n * @beta\r\n */\r\nexport class FrameworkAccuDraw extends AccuDraw implements UserSettingsProvider {\r\n private static _displayNotifications = false;\r\n private static _uiSettings: AccuDrawUiSettings | undefined;\r\n private static _settingsNamespace = \"AppUiSettings\";\r\n private static _notificationsKey = \"AccuDrawNotifications\";\r\n public readonly providerId = \"FrameworkAccuDraw\";\r\n\r\n /** AccuDraw Set Field Focus event. */\r\n public static readonly onAccuDrawSetFieldFocusEvent = new AccuDrawSetFieldFocusEvent();\r\n /** AccuDraw Set Field Value to Ui event. */\r\n public static readonly onAccuDrawSetFieldValueToUiEvent = new AccuDrawSetFieldValueToUiEvent();\r\n /** AccuDraw Set Field Value from Ui event. */\r\n public static readonly onAccuDrawSetFieldValueFromUiEvent = new AccuDrawSetFieldValueFromUiEvent();\r\n /** AccuDraw Set Field Lock event. */\r\n public static readonly onAccuDrawSetFieldLockEvent = new AccuDrawSetFieldLockEvent();\r\n /** AccuDraw Set Mode event. */\r\n public static readonly onAccuDrawSetCompassModeEvent = new AccuDrawSetCompassModeEvent();\r\n /** AccuDraw Grab Input Focus event. */\r\n public static readonly onAccuDrawGrabInputFocusEvent = new AccuDrawGrabInputFocusEvent();\r\n\r\n /** Determines if AccuDraw.rotationMode === RotationMode.Top */\r\n public static readonly isTopRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.Top, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.Front */\r\n public static readonly isFrontRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.Front, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.Side */\r\n public static readonly isSideRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.Side, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.View */\r\n public static readonly isViewRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.View, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.ACS */\r\n public static readonly isACSRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.ACS, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.rotationMode === RotationMode.Context */\r\n public static readonly isContextRotationConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.rotationMode === RotationMode.Context, [SyncUiEventId.AccuDrawRotationChanged]);\r\n /** Determines if AccuDraw.compassMode === CompassMode.Polar */\r\n public static readonly isPolarModeConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.compassMode === CompassMode.Polar, [SyncUiEventId.AccuDrawCompassModeChanged]);\r\n /** Determines if AccuDraw.compassMode === CompassMode.Rectangular */\r\n public static readonly isRectangularModeConditional = new ConditionalBooleanValue(() => IModelApp.accuDraw.compassMode === CompassMode.Rectangular, [SyncUiEventId.AccuDrawCompassModeChanged]);\r\n\r\n /** AccuDraw Grab Input Focus event. */\r\n public static readonly onAccuDrawUiSettingsChangedEvent = new AccuDrawUiSettingsChangedEvent();\r\n\r\n /** Determines if notifications should be displayed for AccuDraw changes */\r\n public static get displayNotifications(): boolean { return FrameworkAccuDraw._displayNotifications; }\r\n public static set displayNotifications(v: boolean) {\r\n FrameworkAccuDraw._displayNotifications = v;\r\n UiFramework.getUiStateStorage().saveSetting(this._settingsNamespace, this._notificationsKey, v); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n }\r\n\r\n /* @internal */\r\n public async loadUserSettings(storage: UiStateStorage): Promise<void> {\r\n const result = await storage.getSetting(FrameworkAccuDraw._settingsNamespace, FrameworkAccuDraw._notificationsKey);\r\n if (result.status === UiStateStorageStatus.Success)\r\n FrameworkAccuDraw._displayNotifications = result.setting;\r\n }\r\n\r\n /** AccuDraw User Interface settings */\r\n public static get uiStateStorage(): AccuDrawUiSettings | undefined { return FrameworkAccuDraw._uiSettings; }\r\n public static set uiStateStorage(v: AccuDrawUiSettings | undefined) {\r\n FrameworkAccuDraw._uiSettings = v;\r\n FrameworkAccuDraw.onAccuDrawUiSettingsChangedEvent.emit({});\r\n }\r\n\r\n constructor() {\r\n super();\r\n FrameworkAccuDraw.onAccuDrawSetFieldValueFromUiEvent.addListener(this.handleSetFieldValueFromUiEvent);\r\n UiFramework.registerUserSettingsProvider(this);\r\n }\r\n\r\n private handleSetFieldValueFromUiEvent = async (args: AccuDrawSetFieldValueFromUiEventArgs) => {\r\n return this.processFieldInput(args.field, args.stringValue, false);\r\n };\r\n\r\n /** @internal */\r\n public override onCompassModeChange(): void {\r\n FrameworkAccuDraw.onAccuDrawSetCompassModeEvent.emit({ mode: this.compassMode });\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(SyncUiEventId.AccuDrawCompassModeChanged);\r\n\r\n this.outputCompassModeMessage();\r\n }\r\n\r\n /** @internal */\r\n public override onRotationModeChange(): void {\r\n SyncUiEventDispatcher.dispatchSyncUiEvent(SyncUiEventId.AccuDrawRotationChanged);\r\n\r\n this.outputRotationMessage();\r\n }\r\n\r\n /** @internal */\r\n public override onFieldLockChange(index: ItemField): void {\r\n FrameworkAccuDraw.onAccuDrawSetFieldLockEvent.emit({ field: index, lock: this.getFieldLock(index) });\r\n }\r\n\r\n /** @internal */\r\n public override onFieldValueChange(index: ItemField): void {\r\n const value = this.getValueByIndex(index);\r\n const formattedValue = FrameworkAccuDraw.getFieldDisplayValue(index);\r\n FrameworkAccuDraw.onAccuDrawSetFieldValueToUiEvent.emit({ field: index, value, formattedValue });\r\n }\r\n\r\n private fieldValuesChanged(): void {\r\n this.onFieldValueChange(ItemField.X_Item);\r\n this.onFieldValueChange(ItemField.Y_Item);\r\n this.onFieldValueChange(ItemField.Z_Item);\r\n this.onFieldValueChange(ItemField.ANGLE_Item);\r\n this.onFieldValueChange(ItemField.DIST_Item);\r\n }\r\n\r\n /** @internal */\r\n public override setFocusItem(index: ItemField): void {\r\n FrameworkAccuDraw.onAccuDrawSetFieldFocusEvent.emit({ field: index });\r\n }\r\n\r\n /** Implemented by sub-classes to update ui fields to show current deltas or coordinates when inactive.\r\n * Should also choose active x or y input field in rectangular mode based on cursor position when\r\n * axis isn't locked to support \"smart lock\".\r\n * @internal\r\n */\r\n public override onMotion(_ev: BeButtonEvent): void {\r\n if (!this.isEnabled || this.isDeactivated || UiFramework.isContextMenuOpen)\r\n return;\r\n\r\n this.fieldValuesChanged();\r\n\r\n if (!this.dontMoveFocus)\r\n this.setFocusItem(this.newFocus);\r\n }\r\n\r\n /** Determine if the AccuDraw UI has focus\r\n * @internal\r\n */\r\n public override get hasInputFocus(): boolean {\r\n let hasFocus = false;\r\n const el = document.querySelector(\"div.uifw-accudraw-field-container\");\r\n if (el)\r\n hasFocus = el.contains(document.activeElement);\r\n return hasFocus;\r\n }\r\n\r\n /** Implement this method to set focus to the AccuDraw UI.\r\n * @internal\r\n */\r\n public override grabInputFocus(): void {\r\n FrameworkAccuDraw.onAccuDrawGrabInputFocusEvent.emit({});\r\n }\r\n\r\n /** Gets the display value for an AccuDraw field */\r\n public static getFieldDisplayValue(index: ItemField): string {\r\n const value = IModelApp.accuDraw.getValueByIndex(index);\r\n let formattedValue = value.toString();\r\n\r\n const formatterSpec = IModelApp.quantityFormatter.findFormatterSpecByQuantityType(ItemField.ANGLE_Item === index ? QuantityType.Angle : QuantityType.Length);\r\n // istanbul ignore else\r\n if (formatterSpec)\r\n formattedValue = IModelApp.quantityFormatter.formatQuantity(value, formatterSpec);\r\n\r\n return formattedValue;\r\n }\r\n\r\n /** AccuDraw Set Field Value from Ui. */\r\n public static setFieldValueFromUi(field: ItemField, stringValue: string): void {\r\n FrameworkAccuDraw.onAccuDrawSetFieldValueFromUiEvent.emit({ field, stringValue });\r\n }\r\n\r\n private outputInfoMessage(message: string): void {\r\n // istanbul ignore else\r\n if (FrameworkAccuDraw.displayNotifications)\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, message));\r\n }\r\n\r\n private outputCompassModeMessage(): void {\r\n if (FrameworkAccuDraw.displayNotifications) {\r\n let modeKey = compassModeToKeyMap.get(this.compassMode);\r\n // istanbul ignore if\r\n if (modeKey === undefined)\r\n modeKey = \"polar\";\r\n const modeString = UiFramework.translate(`accuDraw.compassMode.${modeKey}`);\r\n const modeMessage = UiFramework.localization.getLocalizedString(\"accuDraw.compassModeSet\", { modeString, ns: UiFramework.localizationNamespace });\r\n this.outputInfoMessage(modeMessage);\r\n }\r\n }\r\n\r\n private outputRotationMessage(): void {\r\n if (FrameworkAccuDraw.displayNotifications) {\r\n let rotationKey = rotationModeToKeyMap.get(this.rotationMode);\r\n // istanbul ignore if\r\n if (rotationKey === undefined)\r\n rotationKey = \"top\";\r\n const rotationString = UiFramework.translate(`accuDraw.rotation.${rotationKey}`);\r\n const rotationMessage = UiFramework.localization.getLocalizedString(\"accuDraw.rotationSet\", { rotationString, ns: UiFramework.localizationNamespace });\r\n this.outputInfoMessage(rotationMessage);\r\n }\r\n }\r\n}\r\n"]}