@itwin/appui-react 4.6.3 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +29 -14
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +28 -15
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  7. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js +4 -7
  8. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  9. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  10. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +3 -3
  11. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  12. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +8 -0
  13. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  14. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +8 -0
  15. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  16. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +3 -4
  18. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/Calculator.d.ts.map +1 -1
  20. package/lib/cjs/appui-react/accudraw/Calculator.js +11 -12
  21. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  22. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +9 -1
  23. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  24. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +9 -1
  25. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  26. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts +2 -2
  27. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  28. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +16 -11
  29. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  30. package/lib/cjs/appui-react/childwindow/PopoutWidget.d.ts +2 -4
  31. package/lib/cjs/appui-react/childwindow/PopoutWidget.d.ts.map +1 -1
  32. package/lib/cjs/appui-react/childwindow/PopoutWidget.js +6 -3
  33. package/lib/cjs/appui-react/childwindow/PopoutWidget.js.map +1 -1
  34. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  35. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +3 -1
  36. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  37. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  38. package/lib/cjs/appui-react/configurableui/state.js +5 -2
  39. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  40. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  41. package/lib/cjs/appui-react/content/FloatingViewportContent.js +1 -2
  42. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  43. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  44. package/lib/cjs/appui-react/content/IModelViewport.js +2 -0
  45. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  46. package/lib/cjs/appui-react/feedback/ValidationTextbox.js +3 -3
  47. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  48. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +2 -2
  49. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  50. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  51. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +6 -8
  52. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  53. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +26 -16
  54. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  55. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  56. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +1 -1
  57. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  58. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  59. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +1 -2
  60. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  61. package/lib/cjs/appui-react/hooks/useEscapeSetFocusToHome.js +2 -2
  62. package/lib/cjs/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  63. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  64. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +42 -2
  65. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  66. package/lib/cjs/appui-react/messages/AppNotificationManager.d.ts +9 -3
  67. package/lib/cjs/appui-react/messages/AppNotificationManager.d.ts.map +1 -1
  68. package/lib/cjs/appui-react/messages/AppNotificationManager.js +9 -3
  69. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  70. package/lib/cjs/appui-react/messages/MessageManager.d.ts +10 -0
  71. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  72. package/lib/cjs/appui-react/messages/MessageManager.js +51 -6
  73. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  74. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  75. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js +1 -3
  76. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  77. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.scss +0 -15
  78. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  79. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +8 -8
  80. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  81. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +1 -1
  82. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  83. package/lib/cjs/appui-react/pickers/ViewSelector.js +2 -3
  84. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  85. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  86. package/lib/cjs/appui-react/popup/CardPopup.js +2 -2
  87. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  88. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  89. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +7 -6
  90. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  91. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  92. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js +2 -2
  93. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  94. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  95. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js +2 -2
  96. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  97. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  98. package/lib/cjs/appui-react/popup/ToolbarPopup.js +2 -2
  99. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  100. package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts +47 -0
  101. package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts.map +1 -0
  102. package/lib/cjs/appui-react/preview/PreviewFeatures.js +95 -0
  103. package/lib/cjs/appui-react/preview/PreviewFeatures.js.map +1 -0
  104. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts +9 -2
  105. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  106. package/lib/cjs/appui-react/safearea/SafeAreaContext.js +9 -2
  107. package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
  108. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  109. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +10 -10
  110. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  111. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +2 -3
  112. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  113. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +9 -6
  114. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  115. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +1 -28
  116. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  117. package/lib/cjs/appui-react/statusbar/StatusBar.js +1 -69
  118. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  119. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  120. package/lib/cjs/appui-react/statusfields/MessageCenter.js +1 -3
  121. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  122. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  123. package/lib/cjs/appui-react/statusfields/SectionsField.js +1 -3
  124. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  125. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +4 -7
  126. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  127. package/lib/cjs/appui-react/statusfields/SelectionScope.js +2 -7
  128. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  129. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  130. package/lib/cjs/appui-react/statusfields/SnapMode.js +8 -10
  131. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  132. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  133. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +8 -4
  134. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  135. package/lib/cjs/appui-react/theme/ThemeManager.d.ts +38 -7
  136. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  137. package/lib/cjs/appui-react/theme/ThemeManager.js +52 -11
  138. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  139. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  140. package/lib/cjs/appui-react/toolbar/Toolbar.js +12 -1
  141. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  142. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +21 -0
  143. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  144. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  145. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  146. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +7 -7
  147. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  148. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.d.ts +10 -1
  149. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.d.ts.map +1 -1
  150. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js +12 -4
  151. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  152. package/lib/cjs/appui-react/tools/KeyinPaletteTools.d.ts.map +1 -1
  153. package/lib/cjs/appui-react/tools/KeyinPaletteTools.js +1 -2
  154. package/lib/cjs/appui-react/tools/KeyinPaletteTools.js.map +1 -1
  155. package/lib/cjs/appui-react/tools/OpenSettingsTool.d.ts.map +1 -1
  156. package/lib/cjs/appui-react/tools/OpenSettingsTool.js +1 -2
  157. package/lib/cjs/appui-react/tools/OpenSettingsTool.js.map +1 -1
  158. package/lib/cjs/appui-react/tools/RestoreLayoutTool.d.ts.map +1 -1
  159. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js +2 -3
  160. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  161. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +15 -0
  162. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  163. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +133 -105
  164. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  165. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +10 -4
  166. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
  167. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +80 -65
  168. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  169. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +30 -4
  170. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  171. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  172. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +11 -2
  173. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  174. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +9 -1
  175. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  176. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +5 -4
  177. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  178. package/lib/cjs/appui-react/uistate/AppUiSettings.js +2 -2
  179. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  180. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts +10 -1
  181. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
  182. package/lib/cjs/appui-react/uistate/useUiStateStorage.js +10 -1
  183. package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -1
  184. package/lib/cjs/appui-react/utils/matchesWords.d.ts +22 -0
  185. package/lib/cjs/appui-react/utils/matchesWords.d.ts.map +1 -0
  186. package/lib/cjs/appui-react/utils/matchesWords.js +103 -0
  187. package/lib/cjs/appui-react/utils/matchesWords.js.map +1 -0
  188. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  189. package/lib/cjs/appui-react/widget-panels/Frontstage.js +42 -9
  190. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  191. package/lib/cjs/appui-react/widget-panels/Frontstage.scss +19 -0
  192. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts +4 -1
  193. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  194. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +34 -12
  195. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  196. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  197. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +2 -7
  198. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  199. package/lib/cjs/appui-react/widgets/Widget.d.ts +23 -1
  200. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  201. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  202. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  203. package/lib/cjs/appui-react/widgets/WidgetDef.js +1 -0
  204. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  205. package/lib/cjs/appui-react.d.ts +1 -0
  206. package/lib/cjs/appui-react.d.ts.map +1 -1
  207. package/lib/cjs/appui-react.js +3 -0
  208. package/lib/cjs/appui-react.js.map +1 -1
  209. package/lib/esm/appui-react/UiFramework.d.ts +29 -14
  210. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  211. package/lib/esm/appui-react/UiFramework.js +29 -16
  212. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  213. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  214. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +4 -7
  215. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  216. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  217. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +3 -3
  218. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  219. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +8 -0
  220. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  221. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +8 -0
  222. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  223. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  224. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +3 -4
  225. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  226. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  227. package/lib/esm/appui-react/accudraw/Calculator.js +11 -12
  228. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  229. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +9 -1
  230. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  231. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +9 -1
  232. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  233. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts +2 -2
  234. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  235. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +16 -11
  236. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  237. package/lib/esm/appui-react/childwindow/PopoutWidget.d.ts +2 -4
  238. package/lib/esm/appui-react/childwindow/PopoutWidget.d.ts.map +1 -1
  239. package/lib/esm/appui-react/childwindow/PopoutWidget.js +6 -3
  240. package/lib/esm/appui-react/childwindow/PopoutWidget.js.map +1 -1
  241. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  242. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +3 -1
  243. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  244. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  245. package/lib/esm/appui-react/configurableui/state.js +5 -2
  246. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  247. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  248. package/lib/esm/appui-react/content/FloatingViewportContent.js +1 -2
  249. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  250. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  251. package/lib/esm/appui-react/content/IModelViewport.js +2 -0
  252. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  253. package/lib/esm/appui-react/feedback/ValidationTextbox.js +3 -3
  254. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  255. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +2 -2
  256. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  257. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  258. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +6 -8
  259. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  260. package/lib/esm/appui-react/frontstage/FrontstageDef.js +27 -17
  261. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  262. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  263. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +2 -2
  264. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  265. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  266. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +1 -2
  267. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  268. package/lib/esm/appui-react/hooks/useEscapeSetFocusToHome.js +2 -2
  269. package/lib/esm/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  270. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  271. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +41 -1
  272. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  273. package/lib/esm/appui-react/messages/AppNotificationManager.d.ts +9 -3
  274. package/lib/esm/appui-react/messages/AppNotificationManager.d.ts.map +1 -1
  275. package/lib/esm/appui-react/messages/AppNotificationManager.js +9 -3
  276. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  277. package/lib/esm/appui-react/messages/MessageManager.d.ts +10 -0
  278. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  279. package/lib/esm/appui-react/messages/MessageManager.js +52 -7
  280. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  281. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  282. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js +1 -3
  283. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  284. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.scss +0 -15
  285. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  286. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +9 -9
  287. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  288. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +1 -1
  289. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  290. package/lib/esm/appui-react/pickers/ViewSelector.js +2 -3
  291. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  292. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  293. package/lib/esm/appui-react/popup/CardPopup.js +2 -2
  294. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  295. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  296. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +6 -5
  297. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  298. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  299. package/lib/esm/appui-react/popup/KeyinPalettePopup.js +2 -2
  300. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  301. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  302. package/lib/esm/appui-react/popup/ToolSettingsPopup.js +2 -2
  303. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  304. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  305. package/lib/esm/appui-react/popup/ToolbarPopup.js +2 -2
  306. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  307. package/lib/esm/appui-react/preview/PreviewFeatures.d.ts +47 -0
  308. package/lib/esm/appui-react/preview/PreviewFeatures.d.ts.map +1 -0
  309. package/lib/esm/appui-react/preview/PreviewFeatures.js +90 -0
  310. package/lib/esm/appui-react/preview/PreviewFeatures.js.map +1 -0
  311. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts +9 -2
  312. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  313. package/lib/esm/appui-react/safearea/SafeAreaContext.js +9 -2
  314. package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
  315. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  316. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +11 -11
  317. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  318. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +2 -3
  319. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  320. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +9 -6
  321. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  322. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +1 -28
  323. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  324. package/lib/esm/appui-react/statusbar/StatusBar.js +1 -69
  325. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  326. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  327. package/lib/esm/appui-react/statusfields/MessageCenter.js +2 -4
  328. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  329. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  330. package/lib/esm/appui-react/statusfields/SectionsField.js +1 -3
  331. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  332. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +4 -7
  333. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  334. package/lib/esm/appui-react/statusfields/SelectionScope.js +2 -7
  335. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  336. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  337. package/lib/esm/appui-react/statusfields/SnapMode.js +8 -10
  338. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  339. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  340. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +8 -4
  341. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  342. package/lib/esm/appui-react/theme/ThemeManager.d.ts +38 -7
  343. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  344. package/lib/esm/appui-react/theme/ThemeManager.js +51 -10
  345. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  346. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  347. package/lib/esm/appui-react/toolbar/Toolbar.js +11 -0
  348. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  349. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +21 -0
  350. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  351. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  352. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  353. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +8 -8
  354. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  355. package/lib/esm/appui-react/tools/FrameworkToolAdmin.d.ts +10 -1
  356. package/lib/esm/appui-react/tools/FrameworkToolAdmin.d.ts.map +1 -1
  357. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js +12 -4
  358. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  359. package/lib/esm/appui-react/tools/KeyinPaletteTools.d.ts.map +1 -1
  360. package/lib/esm/appui-react/tools/KeyinPaletteTools.js +1 -2
  361. package/lib/esm/appui-react/tools/KeyinPaletteTools.js.map +1 -1
  362. package/lib/esm/appui-react/tools/OpenSettingsTool.d.ts.map +1 -1
  363. package/lib/esm/appui-react/tools/OpenSettingsTool.js +1 -2
  364. package/lib/esm/appui-react/tools/OpenSettingsTool.js.map +1 -1
  365. package/lib/esm/appui-react/tools/RestoreLayoutTool.d.ts.map +1 -1
  366. package/lib/esm/appui-react/tools/RestoreLayoutTool.js +2 -3
  367. package/lib/esm/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  368. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +15 -0
  369. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  370. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +131 -104
  371. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  372. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +10 -4
  373. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
  374. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +81 -66
  375. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  376. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +30 -4
  377. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  378. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  379. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +11 -2
  380. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  381. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +9 -1
  382. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  383. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +5 -4
  384. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  385. package/lib/esm/appui-react/uistate/AppUiSettings.js +2 -2
  386. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  387. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts +10 -1
  388. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
  389. package/lib/esm/appui-react/uistate/useUiStateStorage.js +10 -1
  390. package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -1
  391. package/lib/esm/appui-react/utils/matchesWords.d.ts +22 -0
  392. package/lib/esm/appui-react/utils/matchesWords.d.ts.map +1 -0
  393. package/lib/esm/appui-react/utils/matchesWords.js +99 -0
  394. package/lib/esm/appui-react/utils/matchesWords.js.map +1 -0
  395. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  396. package/lib/esm/appui-react/widget-panels/Frontstage.js +44 -11
  397. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  398. package/lib/esm/appui-react/widget-panels/Frontstage.scss +19 -0
  399. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts +4 -1
  400. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  401. package/lib/esm/appui-react/widget-panels/ToolSettings.js +32 -11
  402. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  403. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  404. package/lib/esm/appui-react/widgets/BackstageAppButton.js +2 -7
  405. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  406. package/lib/esm/appui-react/widgets/Widget.d.ts +23 -1
  407. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  408. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  409. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  410. package/lib/esm/appui-react/widgets/WidgetDef.js +1 -0
  411. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  412. package/lib/esm/appui-react.d.ts +1 -0
  413. package/lib/esm/appui-react.d.ts.map +1 -1
  414. package/lib/esm/appui-react.js +1 -0
  415. package/lib/esm/appui-react.js.map +1 -1
  416. package/lib/public/locales/en/UiFramework.json +6 -4
  417. package/package.json +13 -11
@@ -12,10 +12,22 @@ const React = require("react");
12
12
  const components_react_1 = require("@itwin/components-react");
13
13
  const toUIAToolbarItem_1 = require("./toUIAToolbarItem");
14
14
  const SyncUiEventDispatcher_1 = require("../syncui/SyncUiEventDispatcher");
15
+ const PreviewFeatures_1 = require("../preview/PreviewFeatures");
15
16
  /** Component that displays toolbar items.
16
17
  * @beta
17
18
  */
18
19
  function Toolbar(props) {
20
+ const previewFeatures = (0, PreviewFeatures_1.usePreviewFeatures)();
21
+ if (previewFeatures.newToolbars) {
22
+ return React.createElement(NewToolbar, { ...props });
23
+ }
24
+ return React.createElement(OriginalToolbar, { ...props });
25
+ }
26
+ exports.Toolbar = Toolbar;
27
+ function NewToolbar(_props) {
28
+ return React.createElement(React.Fragment, null, "WIP");
29
+ }
30
+ function OriginalToolbar(props) {
19
31
  const { items, ...other } = props;
20
32
  const uiaItems = React.useMemo(() => {
21
33
  return items.map((item) => (0, toUIAToolbarItem_1.toUIAToolbarItem)(item));
@@ -23,5 +35,4 @@ function Toolbar(props) {
23
35
  return (React.createElement(components_react_1.InternalToolbarComponent // eslint-disable-line deprecation/deprecation
24
36
  , { items: uiaItems, syncUiEvent: SyncUiEventDispatcher_1.SyncUiEventDispatcher.onSyncUiEvent, ...other }));
25
37
  }
26
- exports.Toolbar = Toolbar;
27
38
  //# sourceMappingURL=Toolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/Toolbar.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAQ/B,8DAAiF;AAEjF,yDAAsD;AACtD,2EAAwE;AAiCxE;;GAEG;AACH,SAAgB,OAAO,CAAC,KAAmB;IACzC,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAClC,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAClC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,mCAAgB,EAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACZ,OAAO,CACL,oBAAC,2CAAU,CAAC,8CAA8C;QACxD,KAAK,EAAE,QAAQ,EACf,WAAW,EAAE,6CAAqB,CAAC,aAAa,KAC5C,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAZD,0BAYC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Toolbar\n */\n\nimport * as React from \"react\";\nimport type { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport type { CommonProps, NoChildrenProps } from \"@itwin/core-react\";\nimport type {\n Direction,\n ToolbarOpacitySetting,\n ToolbarPanelAlignment,\n} from \"@itwin/components-react\";\nimport { InternalToolbarComponent as CR_Toolbar } from \"@itwin/components-react\";\nimport type { ToolbarItem } from \"./ToolbarItem\";\nimport { toUIAToolbarItem } from \"./toUIAToolbarItem\";\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\n\n/**\n * Properties of [[Toolbar.enableOverflow]] component.\n * @beta\n */\nexport interface OverflowToolbarOptions {\n /** Describes to which direction the overflow popup panels are expanded if overflow is enabled. Defaults to: [[Direction.Right]] */\n overflowExpandsTo?: Direction;\n}\n\n/** Properties of [[Toolbar]] component.\n * @beta\n */\nexport interface ToolbarProps extends CommonProps, NoChildrenProps {\n /** Describes to which direction the popup panels are expanded, also defines the orientation of the toolbar (Top/Bottom will create an horizontal toolbar, Left/Right will create a vertical toolbar). Defaults to: [[Direction.Bottom]] */\n expandsTo?: Direction;\n /** Describes if items that do not fit available space should move to an expandable panel. Defaults to: false */\n enableOverflow?: boolean | OverflowToolbarOptions;\n /** Definitions for items of the toolbar. Items are expected to be already sorted by group and item. */\n items: ToolbarItem[];\n /** Describes how expanded panels are aligned. Defaults to: [[ToolbarPanelAlignment.Start]] */\n panelAlignment?: ToolbarPanelAlignment;\n /** Use Drag Interaction to open popups with nest action buttons */\n useDragInteraction?: boolean;\n /** Determines whether to use mouse proximity to alter the opacity of the toolbar */\n toolbarOpacitySetting?: ToolbarOpacitySetting;\n /** Optional function to call on any item execution */\n onItemExecuted?: OnItemExecutedFunc;\n /** Optional function to call on any KeyDown events processed by toolbar */\n onKeyDown?: (e: React.KeyboardEvent) => void;\n}\n\n/** Component that displays toolbar items.\n * @beta\n */\nexport function Toolbar(props: ToolbarProps) {\n const { items, ...other } = props;\n const uiaItems = React.useMemo(() => {\n return items.map((item) => toUIAToolbarItem(item));\n }, [items]);\n return (\n <CR_Toolbar // eslint-disable-line deprecation/deprecation\n items={uiaItems}\n syncUiEvent={SyncUiEventDispatcher.onSyncUiEvent}\n {...other}\n />\n );\n}\n"]}
1
+ {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/Toolbar.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAQ/B,8DAAiF;AAEjF,yDAAsD;AACtD,2EAAwE;AACxE,gEAAgE;AAiChE;;GAEG;AACH,SAAgB,OAAO,CAAC,KAAmB;IACzC,MAAM,eAAe,GAAG,IAAA,oCAAkB,GAAE,CAAC;IAC7C,IAAI,eAAe,CAAC,WAAW,EAAE;QAC/B,OAAO,oBAAC,UAAU,OAAK,KAAK,GAAI,CAAC;KAClC;IACD,OAAO,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAC;AACxC,CAAC;AAND,0BAMC;AAED,SAAS,UAAU,CAAC,MAAoB;IACtC,OAAO,gDAAQ,CAAC;AAClB,CAAC;AAED,SAAS,eAAe,CAAC,KAAmB;IAC1C,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAClC,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAClC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,mCAAgB,EAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACZ,OAAO,CACL,oBAAC,2CAAU,CAAC,8CAA8C;QACxD,KAAK,EAAE,QAAQ,EACf,WAAW,EAAE,6CAAqB,CAAC,aAAa,KAC5C,KAAK,GACT,CACH,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Toolbar\n */\n\nimport * as React from \"react\";\nimport type { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport type { CommonProps, NoChildrenProps } from \"@itwin/core-react\";\nimport type {\n Direction,\n ToolbarOpacitySetting,\n ToolbarPanelAlignment,\n} from \"@itwin/components-react\";\nimport { InternalToolbarComponent as CR_Toolbar } from \"@itwin/components-react\";\nimport type { ToolbarItem } from \"./ToolbarItem\";\nimport { toUIAToolbarItem } from \"./toUIAToolbarItem\";\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\nimport { usePreviewFeatures } from \"../preview/PreviewFeatures\";\n\n/**\n * Properties of [[Toolbar.enableOverflow]] component.\n * @beta\n */\nexport interface OverflowToolbarOptions {\n /** Describes to which direction the overflow popup panels are expanded if overflow is enabled. Defaults to: [[Direction.Right]] */\n overflowExpandsTo?: Direction;\n}\n\n/** Properties of [[Toolbar]] component.\n * @beta\n */\nexport interface ToolbarProps extends CommonProps, NoChildrenProps {\n /** Describes to which direction the popup panels are expanded, also defines the orientation of the toolbar (Top/Bottom will create an horizontal toolbar, Left/Right will create a vertical toolbar). Defaults to: [[Direction.Bottom]] */\n expandsTo?: Direction;\n /** Describes if items that do not fit available space should move to an expandable panel. Defaults to: false */\n enableOverflow?: boolean | OverflowToolbarOptions;\n /** Definitions for items of the toolbar. Items are expected to be already sorted by group and item. */\n items: ToolbarItem[];\n /** Describes how expanded panels are aligned. Defaults to: [[ToolbarPanelAlignment.Start]] */\n panelAlignment?: ToolbarPanelAlignment;\n /** Use Drag Interaction to open popups with nest action buttons */\n useDragInteraction?: boolean;\n /** Determines whether to use mouse proximity to alter the opacity of the toolbar */\n toolbarOpacitySetting?: ToolbarOpacitySetting;\n /** Optional function to call on any item execution */\n onItemExecuted?: OnItemExecutedFunc;\n /** Optional function to call on any KeyDown events processed by toolbar */\n onKeyDown?: (e: React.KeyboardEvent) => void;\n}\n\n/** Component that displays toolbar items.\n * @beta\n */\nexport function Toolbar(props: ToolbarProps) {\n const previewFeatures = usePreviewFeatures();\n if (previewFeatures.newToolbars) {\n return <NewToolbar {...props} />;\n }\n return <OriginalToolbar {...props} />;\n}\n\nfunction NewToolbar(_props: ToolbarProps) {\n return <>WIP</>;\n}\n\nfunction OriginalToolbar(props: ToolbarProps) {\n const { items, ...other } = props;\n const uiaItems = React.useMemo(() => {\n return items.map((item) => toUIAToolbarItem(item));\n }, [items]);\n return (\n <CR_Toolbar // eslint-disable-line deprecation/deprecation\n items={uiaItems}\n syncUiEvent={SyncUiEventDispatcher.onSyncUiEvent}\n {...other}\n />\n );\n}\n"]}
@@ -45,6 +45,11 @@ export interface CommonToolbarItem {
45
45
  readonly groupPriority?: number;
46
46
  /** Priority within a toolbar or group. */
47
47
  readonly itemPriority: number;
48
+ /** Describes layout specific configuration of a toolbar item.
49
+ * @note Only used by `get*` methods of [[UiItemsProvider]].
50
+ * @alpha
51
+ */
52
+ readonly layouts?: ToolbarItemLayouts;
48
53
  }
49
54
  /** Describes the data needed to insert an action button into a toolbar.
50
55
  * @public
@@ -101,4 +106,20 @@ export declare function isToolbarGroupItem(item: ToolbarItem): item is ToolbarGr
101
106
  * @public
102
107
  */
103
108
  export declare function isToolbarCustomItem(item: ToolbarItem): item is ToolbarCustomItem;
109
+ /** Describes toolbar item configuration specific for each layout.
110
+ * @alpha
111
+ */
112
+ export interface ToolbarItemLayouts {
113
+ /** Toolbar item configuration in a standard layout. */
114
+ readonly standard?: StandardLayoutToolbarItem;
115
+ }
116
+ /** Describes toolbar item configuration specific to a standard layout.
117
+ * @alpha
118
+ */
119
+ export interface StandardLayoutToolbarItem {
120
+ /** Describes toolbar usage. */
121
+ readonly usage: ToolbarUsage;
122
+ /** Describes toolbar orientation. */
123
+ readonly orientation: ToolbarOrientation;
124
+ }
104
125
  //# sourceMappingURL=ToolbarItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarItem.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarItem.ts"],"names":[],"mappings":"AAIA;;GAEG;;AAEH,OAAO,KAAK,EACV,SAAS,EACT,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,oBAAY,YAAY;IACtB,yGAAyG;IACzG,mBAAmB,IAAI;IACvB,8EAA8E;IAC9E,cAAc,IAAI;CACnB;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,UAAU,IAAI;IACd,wBAAwB;IACxB,QAAQ,IAAI;CACb;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,iIAAiI;IACjI,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,2BAA2B;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;IACvD,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,6FA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C,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;IACjD,oDAAoD;IACpD,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,iBAAiB,GACjB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,GAChB,IAAI,IAAI,iBAAiB,CAE3B;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,GAChB,IAAI,IAAI,gBAAgB,CAE1B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,GAChB,IAAI,IAAI,iBAAiB,CAE3B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,+BAA+B;IAC/B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,qCAAqC;IACrC,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC;CAC1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarItem.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarItem.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AASH;;GAEG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,yGAAyG;IACzG,6EAAuB,CAAA;IACvB,8EAA8E;IAC9E,mEAAkB,CAAA;AACpB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED;;GAEG;AACH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,uEAAc,CAAA;IACd,wBAAwB;IACxB,mEAAY,CAAA;AACd,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AA6ED;;GAEG;AACH,SAAgB,mBAAmB,CACjC,IAAiB;IAEjB,OAAO,SAAS,IAAI,IAAI,CAAC;AAC3B,CAAC;AAJD,kDAIC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAChC,IAAiB;IAEjB,OAAO,OAAO,IAAI,IAAI,CAAC;AACzB,CAAC;AAJD,gDAIC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CACjC,IAAiB;IAEjB,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAJD,kDAIC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Toolbar\n */\n\nimport type {\n BadgeType,\n ConditionalBooleanValue,\n ConditionalStringValue,\n} from \"@itwin/appui-abstract\";\nimport type { IconSpec } from \"@itwin/core-react\";\n\n/** Used to specify the usage of the toolbar which determine the toolbar position.\n * @public\n */\nexport enum ToolbarUsage {\n /** Contains tools to Create Update and Delete content - in AppUI this is in top left of content area. */\n ContentManipulation = 0,\n /** Manipulate view/camera - in AppUI this is in top right of content area. */\n ViewNavigation = 1,\n}\n\n/** Used to specify the orientation of the toolbar.\n * @public\n */\nexport enum ToolbarOrientation {\n /** Horizontal toolbar. */\n Horizontal = 0,\n /** Vertical toolbar. */\n Vertical = 1,\n}\n\n/** Describes the data needed to insert a UI items into an existing set of UI items.\n * @public\n */\nexport interface CommonToolbarItem {\n /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */\n readonly id: string;\n /** Describes badge. Renders no badge if not specified. */\n readonly badge?: BadgeType;\n /** Optional description */\n readonly description?: string | ConditionalStringValue;\n /** Defines if the item is active (shown with an active stripe/bar). */\n readonly isActive?: boolean;\n /** Describes if the item is visible or hidden. The default is for the item to be visible. */\n readonly isHidden?: boolean | ConditionalBooleanValue;\n /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */\n readonly isDisabled?: boolean | ConditionalBooleanValue;\n /** Specifies the item's grouping value. Items are sorted by group and then item priority. When\n * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This\n * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.\n */\n readonly groupPriority?: number;\n /** Priority within a toolbar or group. */\n readonly itemPriority: number;\n}\n\n/** Describes the data needed to insert an action button into a toolbar.\n * @public\n */\nexport interface ToolbarActionItem extends CommonToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: IconSpec;\n /** label, shown as tool tip on a button or an item label in a group. */\n readonly label: string | ConditionalStringValue;\n /** function to run when the button is pressed. */\n readonly execute: () => void;\n /** Optional parent tool group to add the tool to. */\n readonly parentGroupItemId?: string;\n}\n\n/** Describes the data needed to insert a group button into a toolbar.\n * @public\n */\nexport interface ToolbarGroupItem extends CommonToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: IconSpec;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label: string | ConditionalStringValue;\n /** label shown as the title in at top of group panel. */\n readonly panelLabel?: string | ConditionalStringValue;\n /** children of the group */\n readonly items: ReadonlyArray<ToolbarActionItem | ToolbarGroupItem>;\n /** Optional parent tool group to add the tool to. */\n readonly parentGroupItemId?: string;\n}\n\n/** Describes the data needed to insert a custom button into a toolbar.\n * @public\n */\nexport interface ToolbarCustomItem extends CommonToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon?: IconSpec;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label?: string | ConditionalStringValue;\n /** defines the content to display in popup panel */\n readonly panelContent?: React.ReactNode;\n}\n\n/** Any Button Type that can be inserted into a toolbar.\n * @public\n */\nexport type ToolbarItem =\n | ToolbarActionItem\n | ToolbarGroupItem\n | ToolbarCustomItem;\n\n/** ToolbarActionItem type guard.\n * @public\n */\nexport function isToolbarActionItem(\n item: ToolbarItem\n): item is ToolbarActionItem {\n return \"execute\" in item;\n}\n\n/** ToolbarGroupItem type guard.\n * @public\n */\nexport function isToolbarGroupItem(\n item: ToolbarItem\n): item is ToolbarGroupItem {\n return \"items\" in item;\n}\n\n/** ToolbarCustomItem type guard.\n * @public\n */\nexport function isToolbarCustomItem(\n item: ToolbarItem\n): item is ToolbarCustomItem {\n return !isToolbarActionItem(item) && !isToolbarGroupItem(item);\n}\n"]}
1
+ {"version":3,"file":"ToolbarItem.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarItem.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AASH;;GAEG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,yGAAyG;IACzG,6EAAuB,CAAA;IACvB,8EAA8E;IAC9E,mEAAkB,CAAA;AACpB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED;;GAEG;AACH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,uEAAc,CAAA;IACd,wBAAwB;IACxB,mEAAY,CAAA;AACd,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAkFD;;GAEG;AACH,SAAgB,mBAAmB,CACjC,IAAiB;IAEjB,OAAO,SAAS,IAAI,IAAI,CAAC;AAC3B,CAAC;AAJD,kDAIC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAChC,IAAiB;IAEjB,OAAO,OAAO,IAAI,IAAI,CAAC;AACzB,CAAC;AAJD,gDAIC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CACjC,IAAiB;IAEjB,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAJD,kDAIC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Toolbar\n */\n\nimport type {\n BadgeType,\n ConditionalBooleanValue,\n ConditionalStringValue,\n} from \"@itwin/appui-abstract\";\nimport type { IconSpec } from \"@itwin/core-react\";\n\n/** Used to specify the usage of the toolbar which determine the toolbar position.\n * @public\n */\nexport enum ToolbarUsage {\n /** Contains tools to Create Update and Delete content - in AppUI this is in top left of content area. */\n ContentManipulation = 0,\n /** Manipulate view/camera - in AppUI this is in top right of content area. */\n ViewNavigation = 1,\n}\n\n/** Used to specify the orientation of the toolbar.\n * @public\n */\nexport enum ToolbarOrientation {\n /** Horizontal toolbar. */\n Horizontal = 0,\n /** Vertical toolbar. */\n Vertical = 1,\n}\n\n/** Describes the data needed to insert a UI items into an existing set of UI items.\n * @public\n */\nexport interface CommonToolbarItem {\n /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */\n readonly id: string;\n /** Describes badge. Renders no badge if not specified. */\n readonly badge?: BadgeType;\n /** Optional description */\n readonly description?: string | ConditionalStringValue;\n /** Defines if the item is active (shown with an active stripe/bar). */\n readonly isActive?: boolean;\n /** Describes if the item is visible or hidden. The default is for the item to be visible. */\n readonly isHidden?: boolean | ConditionalBooleanValue;\n /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */\n readonly isDisabled?: boolean | ConditionalBooleanValue;\n /** Specifies the item's grouping value. Items are sorted by group and then item priority. When\n * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This\n * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.\n */\n readonly groupPriority?: number;\n /** Priority within a toolbar or group. */\n readonly itemPriority: number;\n /** Describes layout specific configuration of a toolbar item.\n * @note Only used by `get*` methods of [[UiItemsProvider]].\n * @alpha\n */\n readonly layouts?: ToolbarItemLayouts;\n}\n\n/** Describes the data needed to insert an action button into a toolbar.\n * @public\n */\nexport interface ToolbarActionItem extends CommonToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: IconSpec;\n /** label, shown as tool tip on a button or an item label in a group. */\n readonly label: string | ConditionalStringValue;\n /** function to run when the button is pressed. */\n readonly execute: () => void;\n /** Optional parent tool group to add the tool to. */\n readonly parentGroupItemId?: string;\n}\n\n/** Describes the data needed to insert a group button into a toolbar.\n * @public\n */\nexport interface ToolbarGroupItem extends CommonToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: IconSpec;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label: string | ConditionalStringValue;\n /** label shown as the title in at top of group panel. */\n readonly panelLabel?: string | ConditionalStringValue;\n /** children of the group */\n readonly items: ReadonlyArray<ToolbarActionItem | ToolbarGroupItem>;\n /** Optional parent tool group to add the tool to. */\n readonly parentGroupItemId?: string;\n}\n\n/** Describes the data needed to insert a custom button into a toolbar.\n * @public\n */\nexport interface ToolbarCustomItem extends CommonToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon?: IconSpec;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label?: string | ConditionalStringValue;\n /** defines the content to display in popup panel */\n readonly panelContent?: React.ReactNode;\n}\n\n/** Any Button Type that can be inserted into a toolbar.\n * @public\n */\nexport type ToolbarItem =\n | ToolbarActionItem\n | ToolbarGroupItem\n | ToolbarCustomItem;\n\n/** ToolbarActionItem type guard.\n * @public\n */\nexport function isToolbarActionItem(\n item: ToolbarItem\n): item is ToolbarActionItem {\n return \"execute\" in item;\n}\n\n/** ToolbarGroupItem type guard.\n * @public\n */\nexport function isToolbarGroupItem(\n item: ToolbarItem\n): item is ToolbarGroupItem {\n return \"items\" in item;\n}\n\n/** ToolbarCustomItem type guard.\n * @public\n */\nexport function isToolbarCustomItem(\n item: ToolbarItem\n): item is ToolbarCustomItem {\n return !isToolbarActionItem(item) && !isToolbarGroupItem(item);\n}\n\n/** Describes toolbar item configuration specific for each layout.\n * @alpha\n */\nexport interface ToolbarItemLayouts {\n /** Toolbar item configuration in a standard layout. */\n readonly standard?: StandardLayoutToolbarItem;\n}\n\n/** Describes toolbar item configuration specific to a standard layout.\n * @alpha\n */\nexport interface StandardLayoutToolbarItem {\n /** Describes toolbar usage. */\n readonly usage: ToolbarUsage;\n /** Describes toolbar orientation. */\n readonly orientation: ToolbarOrientation;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CoreToolDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/CoreToolDefinitions.tsx"],"names":[],"mappings":"AAIA;;GAEG;AA+BH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAWpD;;GAEG;AAEH,qBAAa,SAAS;IACpB,WAAkB,yBAAyB,gBAS1C;IAED,WAAkB,cAAc,gBAa/B;IAED,WAAkB,iBAAiB,gBAYlC;IAED,WAAkB,eAAe,gBAYhC;IAED,WAAkB,cAAc,gBAY/B;IAED,WAAkB,iBAAiB,gBAsBlC;IAED,WAAkB,eAAe,gBAqBhC;IAED,WAAkB,oBAAoB,gBAQrC;IAED,WAAkB,mBAAmB,gBAQpC;IAED,WAAkB,uBAAuB,gBA0DxC;IAED,WAAkB,cAAc,gBAY/B;IAID,WAAkB,eAAe,gBAuBhC;IAED,WAAkB,eAAe,gBAuBhC;IAED,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAS/B,WAAkB,4BAA4B,gBAc7C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AAkB,0BAA0B,gBAU3C;IAED,WAAkB,gBAAgB,iBAWjC;IAED,WAAkB,qBAAqB,mBAgBtC;IAED,WAAkB,qCAAqC,gBAUtD;CACF"}
@@ -82,8 +82,8 @@ class CoreTools {
82
82
  iconSpec: new appui_abstract_1.ConditionalStringValue(() => {
83
83
  const activeContentControl = UiFramework_1.UiFramework.content.getActiveContentControl();
84
84
  if (activeContentControl?.viewport?.view.is2d())
85
- return appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(rotate_left_svg_1.default);
86
- return appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(gyroscope_svg_1.default);
85
+ return rotate_left_svg_1.default;
86
+ return gyroscope_svg_1.default;
87
87
  }, [
88
88
  SyncUiEventDispatcher_1.SyncUiEventId.ActiveContentChanged,
89
89
  SyncUiEventDispatcher_1.SyncUiEventId.ActiveViewportChanged,
@@ -136,9 +136,9 @@ class CoreTools {
136
136
  const activeContentControl = UiFramework_1.UiFramework.content.getActiveContentControl();
137
137
  if (activeContentControl?.viewport?.view.is3d() &&
138
138
  activeContentControl?.viewport?.isCameraOn) {
139
- return appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(camera_animation_svg_1.default);
139
+ return camera_animation_svg_1.default;
140
140
  }
141
- return appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(camera_animation_disabled_svg_1.default);
141
+ return camera_animation_disabled_svg_1.default;
142
142
  }, [
143
143
  SyncUiEventDispatcher_1.SyncUiEventId.ActiveContentChanged,
144
144
  SyncUiEventDispatcher_1.SyncUiEventId.ActiveViewportChanged,
@@ -285,7 +285,7 @@ class CoreTools {
285
285
  return new GroupItem_1.GroupItemDef({
286
286
  groupId: "sectionTools-group",
287
287
  labelKey: "UiFramework:tools.sectionTools",
288
- iconSpec: appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(section_tool_svg_1.default),
288
+ iconSpec: section_tool_svg_1.default,
289
289
  isHidden: new appui_abstract_1.ConditionalBooleanValue(() => {
290
290
  const activeContentControl = UiFramework_1.UiFramework.content.getActiveContentControl();
291
291
  return !!activeContentControl?.viewport?.view.is2d();
@@ -312,7 +312,7 @@ class CoreTools {
312
312
  groupId: "sectionTools-group-with-panel",
313
313
  labelKey: "UiFramework:tools.sectionTools",
314
314
  panelLabelKey: "UiFramework:tools.sectionPanelLabel",
315
- iconSpec: appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(section_tool_svg_1.default),
315
+ iconSpec: section_tool_svg_1.default,
316
316
  isHidden: new appui_abstract_1.ConditionalBooleanValue(() => {
317
317
  const activeContentControl = UiFramework_1.UiFramework.content.getActiveContentControl();
318
318
  return !!activeContentControl?.viewport?.view.is2d();
@@ -380,7 +380,7 @@ class CoreTools {
380
380
  static get clearSelectionItemDef() {
381
381
  return new CommandItemDef_1.CommandItemDef({
382
382
  commandId: "UiFramework.ClearSelection",
383
- iconSpec: appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(selection_clear_svg_1.default),
383
+ iconSpec: selection_clear_svg_1.default,
384
384
  labelKey: "UiFramework:buttons.clearSelection",
385
385
  isHidden: (0, SelectionContextItemDef_1.getIsHiddenIfSelectionNotActive)(),
386
386
  execute: async () => {
@@ -1 +1 @@
1
- {"version":3,"file":"CoreToolDefinitions.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/CoreToolDefinitions.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B,CAAC,6BAA6B;AAC7D,wDAqB8B;AAC9B,0DAI+B;AAC/B,kFAAuF;AACvF,6DAA0D;AAC1D,uDAAoD;AACpD,2EAAgE;AAChE,oDAAoD;AACpD,2DAAkE;AAClE,gDAA6C;AAC7C,0FAAkF;AAClF,4GAAmG;AACnG,8EAAsE;AACtE,kFAAyE;AACzE,oFAA2E;AAC3E,0FAAiF;AACjF,oEAAoE;AAEpE;;GAEG;AACH,uBAAuB;AACvB,MAAa,SAAS;IACb,MAAM,KAAK,yBAAyB;QACzC,OAAO,IAAI,yB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C1C,QAAQ,EAAE,+CAA2B,CAAC,QAAQ;YAC9C,KAAK,EAAE,+CAA2B,CAAC,OAAO;YAC1C,WAAW,EAAE,+CAA2B,CAAC,WAAW;YACpD,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,OAAO,yBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,+CAA2B,CAAC,MAAM,CAAC,CAAC;YACjE,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF;AA7dD,8BA6dC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\n\nimport * as React from \"react\"; // cSpell:ignore keyinbrowser\nimport {\n FitViewTool,\n FlyViewTool,\n IModelApp,\n MeasureDistanceTool,\n MeasureLocationTool,\n PanViewTool,\n RotateViewTool,\n SelectionTool,\n SetupWalkCameraTool,\n ViewClipByElementTool,\n ViewClipByPlaneTool,\n ViewClipByRangeTool,\n ViewClipByShapeTool,\n ViewClipDecorationProvider,\n ViewRedoTool,\n ViewToggleCameraTool,\n ViewUndoTool,\n WalkViewTool,\n WindowAreaTool,\n ZoomViewTool,\n} from \"@itwin/core-frontend\";\nimport {\n ConditionalBooleanValue,\n ConditionalStringValue,\n IconSpecUtilities,\n} from \"@itwin/appui-abstract\";\nimport { getIsHiddenIfSelectionNotActive } from \"../selection/SelectionContextItemDef\";\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\nimport { ToolItemDef } from \"../shared/ToolItemDef\";\nimport { SyncUiEventId } from \"../syncui/SyncUiEventDispatcher\";\nimport { GroupItemDef } from \"../toolbar/GroupItem\";\nimport { RestoreFrontstageLayoutTool } from \"./RestoreLayoutTool\";\nimport { UiFramework } from \"../UiFramework\";\nimport cameraAnimationIcon from \"@itwin/itwinui-icons/icons/camera-animation.svg\";\nimport cameraAnimationDisabledIcon from \"@itwin/itwinui-icons/icons/camera-animation-disabled.svg\";\nimport svgGyroscope from \"@bentley/icons-generic/icons/gyroscope.svg\";\nimport svgRotateLeft from \"@bentley/icons-generic/icons/rotate-left.svg\";\nimport svgSectionTool from \"@bentley/icons-generic/icons/section-tool.svg\";\nimport svgSelectionClear from \"@bentley/icons-generic/icons/selection-clear.svg\";\nimport { SvgMeasure, SvgProcess } from \"@itwin/itwinui-icons-react\";\n\n/** Utility Class that provides definitions of tools provided by the ($core-frontend) core. These definitions can be used to populate the UI.\n * @public\n */\n// istanbul ignore next\nexport class CoreTools {\n public static get keyinPaletteButtonItemDef() {\n return new ToolItemDef({\n toolId: \"uif:keyinpalette\",\n iconSpec: <SvgProcess />,\n labelKey: \"UiFramework:keyinbrowser.label\",\n execute: () => {\n IModelApp.uiAdmin.showKeyinPalette();\n },\n });\n }\n\n public static get fitViewCommand() {\n return new ToolItemDef({\n toolId: FitViewTool.toolId,\n iconSpec: FitViewTool.iconSpec,\n label: FitViewTool.flyover,\n description: FitViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n FitViewTool.toolId,\n IModelApp.viewManager.selectedView,\n true\n ),\n });\n }\n\n public static get windowAreaCommand() {\n return new ToolItemDef({\n toolId: WindowAreaTool.toolId,\n iconSpec: WindowAreaTool.iconSpec,\n label: WindowAreaTool.flyover,\n description: WindowAreaTool.description,\n execute: async () =>\n IModelApp.tools.run(\n WindowAreaTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get zoomViewCommand() {\n return new ToolItemDef({\n toolId: ZoomViewTool.toolId,\n iconSpec: ZoomViewTool.iconSpec,\n label: ZoomViewTool.flyover,\n description: ZoomViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n ZoomViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get panViewCommand() {\n return new ToolItemDef({\n toolId: PanViewTool.toolId,\n iconSpec: PanViewTool.iconSpec,\n label: PanViewTool.flyover,\n description: PanViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n PanViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get rotateViewCommand() {\n return new ToolItemDef({\n toolId: RotateViewTool.toolId,\n iconSpec: new ConditionalStringValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (activeContentControl?.viewport?.view.is2d())\n return IconSpecUtilities.createWebComponentIconSpec(svgRotateLeft);\n return IconSpecUtilities.createWebComponentIconSpec(svgGyroscope);\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n label: RotateViewTool.flyover,\n description: RotateViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n RotateViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get walkViewCommand() {\n return new ToolItemDef({\n toolId: WalkViewTool.toolId,\n iconSpec: WalkViewTool.iconSpec,\n label: WalkViewTool.flyover,\n description: WalkViewTool.description,\n isHidden: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n return !!activeContentControl?.viewport?.view.is2d();\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n execute: async () =>\n IModelApp.tools.run(\n WalkViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get selectElementCommand() {\n return new ToolItemDef({\n toolId: SelectionTool.toolId,\n iconSpec: SelectionTool.iconSpec,\n label: SelectionTool.flyover,\n description: SelectionTool.description,\n execute: async () => IModelApp.tools.run(SelectionTool.toolId),\n });\n }\n\n public static get setupCameraWalkTool() {\n return new ToolItemDef({\n toolId: SetupWalkCameraTool.toolId,\n iconSpec: SetupWalkCameraTool.iconSpec,\n label: SetupWalkCameraTool.flyover,\n description: SetupWalkCameraTool.description,\n execute: async () => IModelApp.tools.run(SetupWalkCameraTool.toolId),\n });\n }\n\n public static get toggleCameraViewCommand() {\n return new ToolItemDef({\n toolId: ViewToggleCameraTool.toolId,\n iconSpec: new ConditionalStringValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (\n activeContentControl?.viewport?.view.is3d() &&\n activeContentControl?.viewport?.isCameraOn\n ) {\n return IconSpecUtilities.createWebComponentIconSpec(\n cameraAnimationIcon\n );\n }\n return IconSpecUtilities.createWebComponentIconSpec(\n cameraAnimationDisabledIcon\n );\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n label: new ConditionalStringValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (\n activeContentControl?.viewport?.view.is3d() &&\n activeContentControl?.viewport?.isCameraOn\n ) {\n return UiFramework.translate(\n \"tools.View.ToggleCamera.turnOffFlyover\"\n );\n }\n return UiFramework.translate(\"tools.View.ToggleCamera.turnOnFlyover\");\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n description: ViewToggleCameraTool.description,\n isHidden: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n return !(\n activeContentControl?.viewport?.view.is3d() &&\n activeContentControl?.viewport?.view.supportsCamera()\n );\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n execute: async () =>\n IModelApp.tools.run(\n ViewToggleCameraTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get flyViewCommand() {\n return new ToolItemDef({\n toolId: FlyViewTool.toolId,\n iconSpec: FlyViewTool.iconSpec,\n label: FlyViewTool.flyover,\n description: FlyViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n FlyViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n // TODO - Need to provide a sync message that is fired when the Undo/Redo button needs to be refreshed in the\n // active view.\n public static get viewUndoCommand() {\n return new ToolItemDef({\n toolId: ViewUndoTool.toolId,\n isDisabled: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (activeContentControl && activeContentControl.viewport)\n return !activeContentControl.viewport.isUndoPossible;\n return false;\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n iconSpec: ViewUndoTool.iconSpec,\n label: ViewUndoTool.flyover,\n description: ViewUndoTool.description,\n execute: async () =>\n IModelApp.tools.run(\n ViewUndoTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get viewRedoCommand() {\n return new ToolItemDef({\n toolId: ViewRedoTool.toolId,\n iconSpec: ViewRedoTool.iconSpec,\n label: ViewRedoTool.flyover,\n description: ViewRedoTool.description,\n execute: async () =>\n IModelApp.tools.run(\n ViewRedoTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n isDisabled: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (activeContentControl && activeContentControl.viewport)\n return !activeContentControl.viewport.isRedoPossible;\n return false;\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n });\n }\n\n private static turnOnClipVolume() {\n const vp = IModelApp.viewManager.selectedView;\n if (!vp || !vp.view.is3d()) return;\n\n // Turn on clip volume flag for section tools\n vp.viewFlags = vp.viewFlags.with(\"clipVolume\", true);\n }\n\n // note current ViewClipByPlaneTool is not automatically registered so the app must call ViewClipByPlaneTool.register();\n public static get sectionByPlaneCommandItemDef() {\n return new ToolItemDef({\n toolId: ViewClipByPlaneTool.toolId,\n iconSpec: ViewClipByPlaneTool.iconSpec,\n label: ViewClipByPlaneTool.flyover,\n description: ViewClipByPlaneTool.description,\n execute: async () => {\n this.turnOnClipVolume();\n return IModelApp.tools.run(\n ViewClipByPlaneTool.toolId,\n ViewClipDecorationProvider.create()\n );\n },\n });\n }\n\n // note current ViewClipByElementTool is not automatically registered so the app must call ViewClipByElementTool.register();\n public static get sectionByElementCommandItemDef() {\n return new ToolItemDef({\n toolId: ViewClipByElementTool.toolId,\n iconSpec: ViewClipByElementTool.iconSpec,\n label: ViewClipByElementTool.flyover,\n description: ViewClipByElementTool.description,\n execute: async () => {\n this.turnOnClipVolume();\n return IModelApp.tools.run(\n ViewClipByElementTool.toolId,\n ViewClipDecorationProvider.create()\n );\n },\n });\n }\n\n // note current ViewClipByRangeTool is not automatically registered so the app must call ViewClipByRangeTool.register();\n public static get sectionByRangeCommandItemDef() {\n return new ToolItemDef({\n toolId: ViewClipByRangeTool.toolId,\n iconSpec: ViewClipByRangeTool.iconSpec,\n label: ViewClipByRangeTool.flyover,\n description: ViewClipByRangeTool.description,\n execute: async () => {\n this.turnOnClipVolume();\n return IModelApp.tools.run(\n ViewClipByRangeTool.toolId,\n ViewClipDecorationProvider.create()\n );\n },\n });\n }\n\n // note current ViewClipByShapeTool is not automatically registered so the app must call ViewClipByShapeTool.register();\n public static get sectionByShapeCommandItemDef() {\n return new ToolItemDef({\n toolId: ViewClipByShapeTool.toolId,\n iconSpec: ViewClipByShapeTool.iconSpec,\n label: ViewClipByShapeTool.flyover,\n description: ViewClipByShapeTool.description,\n execute: async () => {\n this.turnOnClipVolume();\n return IModelApp.tools.run(\n ViewClipByShapeTool.toolId,\n ViewClipDecorationProvider.create()\n );\n },\n });\n }\n\n public static get sectionToolGroup() {\n ViewClipByElementTool.register();\n ViewClipByPlaneTool.register();\n ViewClipByRangeTool.register();\n ViewClipByShapeTool.register();\n\n return new GroupItemDef({\n groupId: \"sectionTools-group\",\n labelKey: \"UiFramework:tools.sectionTools\",\n iconSpec: IconSpecUtilities.createWebComponentIconSpec(svgSectionTool),\n isHidden: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n return !!activeContentControl?.viewport?.view.is2d();\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n items: [\n this.sectionByPlaneCommandItemDef,\n this.sectionByElementCommandItemDef,\n this.sectionByRangeCommandItemDef,\n this.sectionByShapeCommandItemDef,\n ],\n itemsInColumn: 4,\n });\n }\n\n public static get sectionToolGroupWithPanel() {\n ViewClipByElementTool.register();\n ViewClipByPlaneTool.register();\n ViewClipByRangeTool.register();\n ViewClipByShapeTool.register();\n\n return new GroupItemDef({\n groupId: \"sectionTools-group-with-panel\",\n labelKey: \"UiFramework:tools.sectionTools\",\n panelLabelKey: \"UiFramework:tools.sectionPanelLabel\",\n iconSpec: IconSpecUtilities.createWebComponentIconSpec(svgSectionTool),\n isHidden: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n return !!activeContentControl?.viewport?.view.is2d();\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n items: [\n new ToolItemDef({\n ...this.sectionByPlaneCommandItemDef,\n labelKey: \"UiFramework:tools.sectionByPlane\",\n }),\n new ToolItemDef({\n ...this.sectionByElementCommandItemDef,\n labelKey: \"UiFramework:tools.sectionByElement\",\n }),\n new ToolItemDef({\n ...this.sectionByRangeCommandItemDef,\n labelKey: \"UiFramework:tools.sectionByRange\",\n }),\n new ToolItemDef({\n ...this.sectionByShapeCommandItemDef,\n labelKey: \"UiFramework:tools.sectionByShape\",\n }),\n ],\n itemsInColumn: 4,\n });\n }\n\n // note current MeasureDistanceTool is not automatically registered so the app must call MeasureDistanceTool.register();\n public static get measureDistanceToolItemDef() {\n return new ToolItemDef({\n toolId: MeasureDistanceTool.toolId,\n iconSpec: MeasureDistanceTool.iconSpec,\n label: MeasureDistanceTool.flyover,\n description: MeasureDistanceTool.description,\n execute: async () => {\n return IModelApp.tools.run(MeasureDistanceTool.toolId);\n },\n });\n }\n\n // note current MeasureLocationTool is not automatically registered so the app must call MeasureLocationTool.register();\n public static get measureLocationToolItemDef() {\n return new ToolItemDef({\n toolId: MeasureLocationTool.toolId,\n iconSpec: MeasureLocationTool.iconSpec,\n label: MeasureLocationTool.flyover,\n description: MeasureLocationTool.description,\n execute: async () => {\n return IModelApp.tools.run(MeasureLocationTool.toolId);\n },\n });\n }\n\n public static get measureToolGroup() {\n MeasureDistanceTool.register();\n MeasureLocationTool.register();\n\n return new GroupItemDef({\n groupId: \"measureTools-group\",\n labelKey: \"UiFramework:tools.measureTools\",\n iconSpec: <SvgMeasure />,\n items: [this.measureDistanceToolItemDef, this.measureLocationToolItemDef],\n itemsInColumn: 2,\n });\n }\n\n public static get clearSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.ClearSelection\",\n iconSpec: IconSpecUtilities.createWebComponentIconSpec(svgSelectionClear),\n labelKey: \"UiFramework:buttons.clearSelection\",\n isHidden: getIsHiddenIfSelectionNotActive(),\n execute: async () => {\n const iModelConnection = UiFramework.getIModelConnection();\n if (iModelConnection) {\n iModelConnection.selectionSet.emptyAll();\n }\n const tool = IModelApp.toolAdmin.primitiveTool;\n if (tool) await tool.onRestartTool();\n else await IModelApp.toolAdmin.startDefaultTool();\n },\n });\n }\n\n public static get restoreFrontstageLayoutCommandItemDef() {\n return new ToolItemDef({\n toolId: RestoreFrontstageLayoutTool.toolId,\n iconSpec: RestoreFrontstageLayoutTool.iconSpec,\n label: RestoreFrontstageLayoutTool.flyover,\n description: RestoreFrontstageLayoutTool.description,\n execute: async () => {\n return IModelApp.tools.run(RestoreFrontstageLayoutTool.toolId);\n },\n });\n }\n}\n"]}
1
+ {"version":3,"file":"CoreToolDefinitions.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/CoreToolDefinitions.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B,CAAC,6BAA6B;AAC7D,wDAqB8B;AAC9B,0DAG+B;AAC/B,kFAAuF;AACvF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MAAM,EAAE,+CAA2B,CAAC,MAAM;YAC1C,QAAQ,EAAE,+CAA2B,CAAC,QAAQ;YAC9C,KAAK,EAAE,+CAA2B,CAAC,OAAO;YAC1C,WAAW,EAAE,+CAA2B,CAAC,WAAW;YACpD,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,OAAO,yBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,+CAA2B,CAAC,MAAM,CAAC,CAAC;YACjE,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAxdD,8BAwdC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\n\nimport * as React from \"react\"; // cSpell:ignore keyinbrowser\nimport {\n FitViewTool,\n FlyViewTool,\n IModelApp,\n MeasureDistanceTool,\n MeasureLocationTool,\n PanViewTool,\n RotateViewTool,\n SelectionTool,\n SetupWalkCameraTool,\n ViewClipByElementTool,\n ViewClipByPlaneTool,\n ViewClipByRangeTool,\n ViewClipByShapeTool,\n ViewClipDecorationProvider,\n ViewRedoTool,\n ViewToggleCameraTool,\n ViewUndoTool,\n WalkViewTool,\n WindowAreaTool,\n ZoomViewTool,\n} from \"@itwin/core-frontend\";\nimport {\n ConditionalBooleanValue,\n ConditionalStringValue,\n} from \"@itwin/appui-abstract\";\nimport { getIsHiddenIfSelectionNotActive } from \"../selection/SelectionContextItemDef\";\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\nimport { ToolItemDef } from \"../shared/ToolItemDef\";\nimport { SyncUiEventId } from \"../syncui/SyncUiEventDispatcher\";\nimport { GroupItemDef } from \"../toolbar/GroupItem\";\nimport { RestoreFrontstageLayoutTool } from \"./RestoreLayoutTool\";\nimport { UiFramework } from \"../UiFramework\";\nimport cameraAnimationIcon from \"@itwin/itwinui-icons/icons/camera-animation.svg\";\nimport cameraAnimationDisabledIcon from \"@itwin/itwinui-icons/icons/camera-animation-disabled.svg\";\nimport svgGyroscope from \"@bentley/icons-generic/icons/gyroscope.svg\";\nimport svgRotateLeft from \"@bentley/icons-generic/icons/rotate-left.svg\";\nimport svgSectionTool from \"@bentley/icons-generic/icons/section-tool.svg\";\nimport svgSelectionClear from \"@bentley/icons-generic/icons/selection-clear.svg\";\nimport { SvgMeasure, SvgProcess } from \"@itwin/itwinui-icons-react\";\n\n/** Utility Class that provides definitions of tools provided by the ($core-frontend) core. These definitions can be used to populate the UI.\n * @public\n */\n// istanbul ignore next\nexport class CoreTools {\n public static get keyinPaletteButtonItemDef() {\n return new ToolItemDef({\n toolId: \"uif:keyinpalette\",\n iconSpec: <SvgProcess />,\n labelKey: \"UiFramework:keyinbrowser.label\",\n execute: () => {\n IModelApp.uiAdmin.showKeyinPalette();\n },\n });\n }\n\n public static get fitViewCommand() {\n return new ToolItemDef({\n toolId: FitViewTool.toolId,\n iconSpec: FitViewTool.iconSpec,\n label: FitViewTool.flyover,\n description: FitViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n FitViewTool.toolId,\n IModelApp.viewManager.selectedView,\n true\n ),\n });\n }\n\n public static get windowAreaCommand() {\n return new ToolItemDef({\n toolId: WindowAreaTool.toolId,\n iconSpec: WindowAreaTool.iconSpec,\n label: WindowAreaTool.flyover,\n description: WindowAreaTool.description,\n execute: async () =>\n IModelApp.tools.run(\n WindowAreaTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get zoomViewCommand() {\n return new ToolItemDef({\n toolId: ZoomViewTool.toolId,\n iconSpec: ZoomViewTool.iconSpec,\n label: ZoomViewTool.flyover,\n description: ZoomViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n ZoomViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get panViewCommand() {\n return new ToolItemDef({\n toolId: PanViewTool.toolId,\n iconSpec: PanViewTool.iconSpec,\n label: PanViewTool.flyover,\n description: PanViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n PanViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get rotateViewCommand() {\n return new ToolItemDef({\n toolId: RotateViewTool.toolId,\n iconSpec: new ConditionalStringValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (activeContentControl?.viewport?.view.is2d()) return svgRotateLeft;\n return svgGyroscope;\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n label: RotateViewTool.flyover,\n description: RotateViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n RotateViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get walkViewCommand() {\n return new ToolItemDef({\n toolId: WalkViewTool.toolId,\n iconSpec: WalkViewTool.iconSpec,\n label: WalkViewTool.flyover,\n description: WalkViewTool.description,\n isHidden: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n return !!activeContentControl?.viewport?.view.is2d();\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n execute: async () =>\n IModelApp.tools.run(\n WalkViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get selectElementCommand() {\n return new ToolItemDef({\n toolId: SelectionTool.toolId,\n iconSpec: SelectionTool.iconSpec,\n label: SelectionTool.flyover,\n description: SelectionTool.description,\n execute: async () => IModelApp.tools.run(SelectionTool.toolId),\n });\n }\n\n public static get setupCameraWalkTool() {\n return new ToolItemDef({\n toolId: SetupWalkCameraTool.toolId,\n iconSpec: SetupWalkCameraTool.iconSpec,\n label: SetupWalkCameraTool.flyover,\n description: SetupWalkCameraTool.description,\n execute: async () => IModelApp.tools.run(SetupWalkCameraTool.toolId),\n });\n }\n\n public static get toggleCameraViewCommand() {\n return new ToolItemDef({\n toolId: ViewToggleCameraTool.toolId,\n iconSpec: new ConditionalStringValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (\n activeContentControl?.viewport?.view.is3d() &&\n activeContentControl?.viewport?.isCameraOn\n ) {\n return cameraAnimationIcon;\n }\n return cameraAnimationDisabledIcon;\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n label: new ConditionalStringValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (\n activeContentControl?.viewport?.view.is3d() &&\n activeContentControl?.viewport?.isCameraOn\n ) {\n return UiFramework.translate(\n \"tools.View.ToggleCamera.turnOffFlyover\"\n );\n }\n return UiFramework.translate(\"tools.View.ToggleCamera.turnOnFlyover\");\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n description: ViewToggleCameraTool.description,\n isHidden: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n return !(\n activeContentControl?.viewport?.view.is3d() &&\n activeContentControl?.viewport?.view.supportsCamera()\n );\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n execute: async () =>\n IModelApp.tools.run(\n ViewToggleCameraTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get flyViewCommand() {\n return new ToolItemDef({\n toolId: FlyViewTool.toolId,\n iconSpec: FlyViewTool.iconSpec,\n label: FlyViewTool.flyover,\n description: FlyViewTool.description,\n execute: async () =>\n IModelApp.tools.run(\n FlyViewTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n // TODO - Need to provide a sync message that is fired when the Undo/Redo button needs to be refreshed in the\n // active view.\n public static get viewUndoCommand() {\n return new ToolItemDef({\n toolId: ViewUndoTool.toolId,\n isDisabled: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (activeContentControl && activeContentControl.viewport)\n return !activeContentControl.viewport.isUndoPossible;\n return false;\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n iconSpec: ViewUndoTool.iconSpec,\n label: ViewUndoTool.flyover,\n description: ViewUndoTool.description,\n execute: async () =>\n IModelApp.tools.run(\n ViewUndoTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n });\n }\n\n public static get viewRedoCommand() {\n return new ToolItemDef({\n toolId: ViewRedoTool.toolId,\n iconSpec: ViewRedoTool.iconSpec,\n label: ViewRedoTool.flyover,\n description: ViewRedoTool.description,\n execute: async () =>\n IModelApp.tools.run(\n ViewRedoTool.toolId,\n IModelApp.viewManager.selectedView\n ),\n isDisabled: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n if (activeContentControl && activeContentControl.viewport)\n return !activeContentControl.viewport.isRedoPossible;\n return false;\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n });\n }\n\n private static turnOnClipVolume() {\n const vp = IModelApp.viewManager.selectedView;\n if (!vp || !vp.view.is3d()) return;\n\n // Turn on clip volume flag for section tools\n vp.viewFlags = vp.viewFlags.with(\"clipVolume\", true);\n }\n\n // note current ViewClipByPlaneTool is not automatically registered so the app must call ViewClipByPlaneTool.register();\n public static get sectionByPlaneCommandItemDef() {\n return new ToolItemDef({\n toolId: ViewClipByPlaneTool.toolId,\n iconSpec: ViewClipByPlaneTool.iconSpec,\n label: ViewClipByPlaneTool.flyover,\n description: ViewClipByPlaneTool.description,\n execute: async () => {\n this.turnOnClipVolume();\n return IModelApp.tools.run(\n ViewClipByPlaneTool.toolId,\n ViewClipDecorationProvider.create()\n );\n },\n });\n }\n\n // note current ViewClipByElementTool is not automatically registered so the app must call ViewClipByElementTool.register();\n public static get sectionByElementCommandItemDef() {\n return new ToolItemDef({\n toolId: ViewClipByElementTool.toolId,\n iconSpec: ViewClipByElementTool.iconSpec,\n label: ViewClipByElementTool.flyover,\n description: ViewClipByElementTool.description,\n execute: async () => {\n this.turnOnClipVolume();\n return IModelApp.tools.run(\n ViewClipByElementTool.toolId,\n ViewClipDecorationProvider.create()\n );\n },\n });\n }\n\n // note current ViewClipByRangeTool is not automatically registered so the app must call ViewClipByRangeTool.register();\n public static get sectionByRangeCommandItemDef() {\n return new ToolItemDef({\n toolId: ViewClipByRangeTool.toolId,\n iconSpec: ViewClipByRangeTool.iconSpec,\n label: ViewClipByRangeTool.flyover,\n description: ViewClipByRangeTool.description,\n execute: async () => {\n this.turnOnClipVolume();\n return IModelApp.tools.run(\n ViewClipByRangeTool.toolId,\n ViewClipDecorationProvider.create()\n );\n },\n });\n }\n\n // note current ViewClipByShapeTool is not automatically registered so the app must call ViewClipByShapeTool.register();\n public static get sectionByShapeCommandItemDef() {\n return new ToolItemDef({\n toolId: ViewClipByShapeTool.toolId,\n iconSpec: ViewClipByShapeTool.iconSpec,\n label: ViewClipByShapeTool.flyover,\n description: ViewClipByShapeTool.description,\n execute: async () => {\n this.turnOnClipVolume();\n return IModelApp.tools.run(\n ViewClipByShapeTool.toolId,\n ViewClipDecorationProvider.create()\n );\n },\n });\n }\n\n public static get sectionToolGroup() {\n ViewClipByElementTool.register();\n ViewClipByPlaneTool.register();\n ViewClipByRangeTool.register();\n ViewClipByShapeTool.register();\n\n return new GroupItemDef({\n groupId: \"sectionTools-group\",\n labelKey: \"UiFramework:tools.sectionTools\",\n iconSpec: svgSectionTool,\n isHidden: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n return !!activeContentControl?.viewport?.view.is2d();\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n items: [\n this.sectionByPlaneCommandItemDef,\n this.sectionByElementCommandItemDef,\n this.sectionByRangeCommandItemDef,\n this.sectionByShapeCommandItemDef,\n ],\n itemsInColumn: 4,\n });\n }\n\n public static get sectionToolGroupWithPanel() {\n ViewClipByElementTool.register();\n ViewClipByPlaneTool.register();\n ViewClipByRangeTool.register();\n ViewClipByShapeTool.register();\n\n return new GroupItemDef({\n groupId: \"sectionTools-group-with-panel\",\n labelKey: \"UiFramework:tools.sectionTools\",\n panelLabelKey: \"UiFramework:tools.sectionPanelLabel\",\n iconSpec: svgSectionTool,\n isHidden: new ConditionalBooleanValue(() => {\n const activeContentControl =\n UiFramework.content.getActiveContentControl();\n return !!activeContentControl?.viewport?.view.is2d();\n }, [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.ViewStateChanged,\n ]),\n items: [\n new ToolItemDef({\n ...this.sectionByPlaneCommandItemDef,\n labelKey: \"UiFramework:tools.sectionByPlane\",\n }),\n new ToolItemDef({\n ...this.sectionByElementCommandItemDef,\n labelKey: \"UiFramework:tools.sectionByElement\",\n }),\n new ToolItemDef({\n ...this.sectionByRangeCommandItemDef,\n labelKey: \"UiFramework:tools.sectionByRange\",\n }),\n new ToolItemDef({\n ...this.sectionByShapeCommandItemDef,\n labelKey: \"UiFramework:tools.sectionByShape\",\n }),\n ],\n itemsInColumn: 4,\n });\n }\n\n // note current MeasureDistanceTool is not automatically registered so the app must call MeasureDistanceTool.register();\n public static get measureDistanceToolItemDef() {\n return new ToolItemDef({\n toolId: MeasureDistanceTool.toolId,\n iconSpec: MeasureDistanceTool.iconSpec,\n label: MeasureDistanceTool.flyover,\n description: MeasureDistanceTool.description,\n execute: async () => {\n return IModelApp.tools.run(MeasureDistanceTool.toolId);\n },\n });\n }\n\n // note current MeasureLocationTool is not automatically registered so the app must call MeasureLocationTool.register();\n public static get measureLocationToolItemDef() {\n return new ToolItemDef({\n toolId: MeasureLocationTool.toolId,\n iconSpec: MeasureLocationTool.iconSpec,\n label: MeasureLocationTool.flyover,\n description: MeasureLocationTool.description,\n execute: async () => {\n return IModelApp.tools.run(MeasureLocationTool.toolId);\n },\n });\n }\n\n public static get measureToolGroup() {\n MeasureDistanceTool.register();\n MeasureLocationTool.register();\n\n return new GroupItemDef({\n groupId: \"measureTools-group\",\n labelKey: \"UiFramework:tools.measureTools\",\n iconSpec: <SvgMeasure />,\n items: [this.measureDistanceToolItemDef, this.measureLocationToolItemDef],\n itemsInColumn: 2,\n });\n }\n\n public static get clearSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.ClearSelection\",\n iconSpec: svgSelectionClear,\n labelKey: \"UiFramework:buttons.clearSelection\",\n isHidden: getIsHiddenIfSelectionNotActive(),\n execute: async () => {\n const iModelConnection = UiFramework.getIModelConnection();\n if (iModelConnection) {\n iModelConnection.selectionSet.emptyAll();\n }\n const tool = IModelApp.toolAdmin.primitiveTool;\n if (tool) await tool.onRestartTool();\n else await IModelApp.toolAdmin.startDefaultTool();\n },\n });\n }\n\n public static get restoreFrontstageLayoutCommandItemDef() {\n return new ToolItemDef({\n toolId: RestoreFrontstageLayoutTool.toolId,\n iconSpec: RestoreFrontstageLayoutTool.iconSpec,\n label: RestoreFrontstageLayoutTool.flyover,\n description: RestoreFrontstageLayoutTool.description,\n execute: async () => {\n return IModelApp.tools.run(RestoreFrontstageLayoutTool.toolId);\n },\n });\n }\n}\n"]}
@@ -2,7 +2,16 @@
2
2
  * @module Tools
3
3
  */
4
4
  import { ToolAdmin } from "@itwin/core-frontend";
5
- /** UiFramework implementation of ToolAdmin
5
+ /** Subclass of `ToolAdmin` in `@itwin/core-frontend` to be used to initialize `IModelApp`.
6
+ *
7
+ * Enable processing of shortcut keys registered to
8
+ * [[UiFramework.keyboardShortcuts]] when focus is set to Home.
9
+ *
10
+ * ```ts
11
+ * await IModelApp.startup({
12
+ * toolAdmin: new FrameworkToolAdmin()
13
+ * });
14
+ * ```
6
15
  * @alpha
7
16
  */
8
17
  export declare class FrameworkToolAdmin extends ToolAdmin {
@@ -1 +1 @@
1
- {"version":3,"file":"FrameworkToolAdmin.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/FrameworkToolAdmin.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,kCAAkC;IACZ,kBAAkB,CACtC,CAAC,EAAE,aAAa,EAChB,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,OAAO,CAAC;CAoBpB"}
1
+ {"version":3,"file":"FrameworkToolAdmin.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/FrameworkToolAdmin.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD;;;;;;;;;;;GAWG;AACH,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,kCAAkC;IACZ,kBAAkB,CACtC,CAAC,EAAE,aAAa,EAChB,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,OAAO,CAAC;CAiBpB"}
@@ -8,10 +8,19 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.FrameworkToolAdmin = void 0;
11
+ const ts_key_enum_1 = require("ts-key-enum");
11
12
  const core_frontend_1 = require("@itwin/core-frontend");
12
- const appui_abstract_1 = require("@itwin/appui-abstract");
13
13
  const UiFramework_1 = require("../UiFramework");
14
- /** UiFramework implementation of ToolAdmin
14
+ /** Subclass of `ToolAdmin` in `@itwin/core-frontend` to be used to initialize `IModelApp`.
15
+ *
16
+ * Enable processing of shortcut keys registered to
17
+ * [[UiFramework.keyboardShortcuts]] when focus is set to Home.
18
+ *
19
+ * ```ts
20
+ * await IModelApp.startup({
21
+ * toolAdmin: new FrameworkToolAdmin()
22
+ * });
23
+ * ```
15
24
  * @alpha
16
25
  */
17
26
  class FrameworkToolAdmin extends core_frontend_1.ToolAdmin {
@@ -19,8 +28,7 @@ class FrameworkToolAdmin extends core_frontend_1.ToolAdmin {
19
28
  async processShortcutKey(e, wentDown) {
20
29
  let handled = false;
21
30
  if (wentDown && !UiFramework_1.UiFramework.isContextMenuOpen) {
22
- if (UiFramework_1.UiFramework.keyboardShortcuts.isFocusOnHome &&
23
- e.key !== appui_abstract_1.SpecialKey.Escape) {
31
+ if (UiFramework_1.UiFramework.keyboardShortcuts.isFocusOnHome && e.key !== ts_key_enum_1.Key.Escape) {
24
32
  UiFramework_1.UiFramework.keyboardShortcuts.processKey(e.key, e.altKey, e.ctrlKey, e.shiftKey);
25
33
  handled = true;
26
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FrameworkToolAdmin.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/FrameworkToolAdmin.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,wDAAiD;AACjD,0DAAmD;AACnD,gDAA6C;AAE7C;;GAEG;AACH,MAAa,kBAAmB,SAAQ,yBAAS;IAC/C,kCAAkC;IAClB,KAAK,CAAC,kBAAkB,CACtC,CAAgB,EAChB,QAAiB;QAEjB,IAAI,OAAO,GAAG,KAAK,CAAC;QAEpB,IAAI,QAAQ,IAAI,CAAC,yBAAW,CAAC,iBAAiB,EAAE;YAC9C,IACE,yBAAW,CAAC,iBAAiB,CAAC,aAAa;gBAC3C,CAAC,CAAC,GAAG,KAAK,2BAAU,CAAC,MAAM,EAC3B;gBACA,yBAAW,CAAC,iBAAiB,CAAC,UAAU,CACtC,CAAC,CAAC,GAAG,EACL,CAAC,CAAC,MAAM,EACR,CAAC,CAAC,OAAO,EACT,CAAC,CAAC,QAAQ,CACX,CAAC;gBACF,OAAO,GAAG,IAAI,CAAC;aAChB;SACF;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAzBD,gDAyBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\n\nimport { ToolAdmin } from \"@itwin/core-frontend\";\nimport { SpecialKey } from \"@itwin/appui-abstract\";\nimport { UiFramework } from \"../UiFramework\";\n\n/** UiFramework implementation of ToolAdmin\n * @alpha\n */\nexport class FrameworkToolAdmin extends ToolAdmin {\n /** Process shortcut key events */\n public override async processShortcutKey(\n e: KeyboardEvent,\n wentDown: boolean\n ): Promise<boolean> {\n let handled = false;\n\n if (wentDown && !UiFramework.isContextMenuOpen) {\n if (\n UiFramework.keyboardShortcuts.isFocusOnHome &&\n e.key !== SpecialKey.Escape\n ) {\n UiFramework.keyboardShortcuts.processKey(\n e.key,\n e.altKey,\n e.ctrlKey,\n e.shiftKey\n );\n handled = true;\n }\n }\n\n return handled;\n }\n}\n"]}
1
+ {"version":3,"file":"FrameworkToolAdmin.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/FrameworkToolAdmin.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,6CAAkC;AAClC,wDAAiD;AACjD,gDAA6C;AAE7C;;;;;;;;;;;GAWG;AACH,MAAa,kBAAmB,SAAQ,yBAAS;IAC/C,kCAAkC;IAClB,KAAK,CAAC,kBAAkB,CACtC,CAAgB,EAChB,QAAiB;QAEjB,IAAI,OAAO,GAAG,KAAK,CAAC;QAEpB,IAAI,QAAQ,IAAI,CAAC,yBAAW,CAAC,iBAAiB,EAAE;YAC9C,IAAI,yBAAW,CAAC,iBAAiB,CAAC,aAAa,IAAI,CAAC,CAAC,GAAG,KAAK,iBAAG,CAAC,MAAM,EAAE;gBACvE,yBAAW,CAAC,iBAAiB,CAAC,UAAU,CACtC,CAAC,CAAC,GAAG,EACL,CAAC,CAAC,MAAM,EACR,CAAC,CAAC,OAAO,EACT,CAAC,CAAC,QAAQ,CACX,CAAC;gBACF,OAAO,GAAG,IAAI,CAAC;aAChB;SACF;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAtBD,gDAsBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\n\nimport { Key } from \"ts-key-enum\";\nimport { ToolAdmin } from \"@itwin/core-frontend\";\nimport { UiFramework } from \"../UiFramework\";\n\n/** Subclass of `ToolAdmin` in `@itwin/core-frontend` to be used to initialize `IModelApp`.\n *\n * Enable processing of shortcut keys registered to\n * [[UiFramework.keyboardShortcuts]] when focus is set to Home.\n *\n * ```ts\n * await IModelApp.startup({\n * toolAdmin: new FrameworkToolAdmin()\n * });\n * ```\n * @alpha\n */\nexport class FrameworkToolAdmin extends ToolAdmin {\n /** Process shortcut key events */\n public override async processShortcutKey(\n e: KeyboardEvent,\n wentDown: boolean\n ): Promise<boolean> {\n let handled = false;\n\n if (wentDown && !UiFramework.isContextMenuOpen) {\n if (UiFramework.keyboardShortcuts.isFocusOnHome && e.key !== Key.Escape) {\n UiFramework.keyboardShortcuts.processKey(\n e.key,\n e.altKey,\n e.ctrlKey,\n e.shiftKey\n );\n handled = true;\n }\n }\n\n return handled;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"KeyinPaletteTools.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/KeyinPaletteTools.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAI5C;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,IAAI;IACpD,OAAuB,MAAM,SAA8B;IAC3D,OAAuB,QAAQ,SAC2B;IAG1D,WAA2B,OAAO,WAEjC;IAED,WAA2B,OAAO,WAEjC;IAEqB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;CAI9C"}
1
+ {"version":3,"file":"KeyinPaletteTools.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/KeyinPaletteTools.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAG5C;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,IAAI;IACpD,OAAuB,MAAM,SAA8B;IAC3D,OAAuB,QAAQ,SAAa;IAG5C,WAA2B,OAAO,WAEjC;IAED,WAA2B,OAAO,WAEjC;IAEqB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;CAI9C"}
@@ -11,7 +11,6 @@ exports.ClearKeyinPaletteHistoryTool = void 0;
11
11
  const KeyinPalettePanel_1 = require("../popup/KeyinPalettePanel");
12
12
  const core_frontend_1 = require("@itwin/core-frontend");
13
13
  const remove_svg_1 = require("@bentley/icons-generic/icons/remove.svg");
14
- const appui_abstract_1 = require("@itwin/appui-abstract");
15
14
  /**
16
15
  * Immediate tool that will clear the recent history of command/tool keyins shown in
17
16
  * the command palette.
@@ -32,6 +31,6 @@ class ClearKeyinPaletteHistoryTool extends core_frontend_1.Tool {
32
31
  }
33
32
  }
34
33
  ClearKeyinPaletteHistoryTool.toolId = "ClearKeyinPaletteHistory";
35
- ClearKeyinPaletteHistoryTool.iconSpec = appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(remove_svg_1.default);
34
+ ClearKeyinPaletteHistoryTool.iconSpec = remove_svg_1.default;
36
35
  exports.ClearKeyinPaletteHistoryTool = ClearKeyinPaletteHistoryTool;
37
36
  //# sourceMappingURL=KeyinPaletteTools.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyinPaletteTools.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/KeyinPaletteTools.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,kEAAsE;AACtE,wDAA4C;AAC5C,wEAAgE;AAChE,0DAA0D;AAE1D;;;;GAIG;AACH,MAAa,4BAA6B,SAAQ,oBAAI;IAKpD,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IACD,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IAEe,KAAK,CAAC,GAAG;QACvB,IAAA,4CAAwB,GAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;;AAhBsB,mCAAM,GAAG,0BAA0B,CAAC;AACpC,qCAAQ,GAC7B,kCAAiB,CAAC,0BAA0B,CAAC,oBAAS,CAAC,CAAC;AAH/C,oEAA4B","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\n\nimport { clearKeyinPaletteHistory } from \"../popup/KeyinPalettePanel\";\nimport { Tool } from \"@itwin/core-frontend\";\nimport svgRemove from \"@bentley/icons-generic/icons/remove.svg\";\nimport { IconSpecUtilities } from \"@itwin/appui-abstract\";\n\n/**\n * Immediate tool that will clear the recent history of command/tool keyins shown in\n * the command palette.\n * @alpha\n */\nexport class ClearKeyinPaletteHistoryTool extends Tool {\n public static override toolId = \"ClearKeyinPaletteHistory\";\n public static override iconSpec =\n IconSpecUtilities.createWebComponentIconSpec(svgRemove);\n\n // istanbul ignore next\n public static override get minArgs() {\n return 0;\n }\n // istanbul ignore next\n public static override get maxArgs() {\n return 0;\n }\n\n public override async run(): Promise<boolean> {\n clearKeyinPaletteHistory();\n return true;\n }\n}\n"]}
1
+ {"version":3,"file":"KeyinPaletteTools.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/KeyinPaletteTools.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,kEAAsE;AACtE,wDAA4C;AAC5C,wEAAgE;AAEhE;;;;GAIG;AACH,MAAa,4BAA6B,SAAQ,oBAAI;IAIpD,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IACD,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IAEe,KAAK,CAAC,GAAG;QACvB,IAAA,4CAAwB,GAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;;AAfsB,mCAAM,GAAG,0BAA0B,CAAC;AACpC,qCAAQ,GAAG,oBAAS,CAAC;AAFjC,oEAA4B","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\n\nimport { clearKeyinPaletteHistory } from \"../popup/KeyinPalettePanel\";\nimport { Tool } from \"@itwin/core-frontend\";\nimport svgRemove from \"@bentley/icons-generic/icons/remove.svg\";\n\n/**\n * Immediate tool that will clear the recent history of command/tool keyins shown in\n * the command palette.\n * @alpha\n */\nexport class ClearKeyinPaletteHistoryTool extends Tool {\n public static override toolId = \"ClearKeyinPaletteHistory\";\n public static override iconSpec = svgRemove;\n\n // istanbul ignore next\n public static override get minArgs() {\n return 0;\n }\n // istanbul ignore next\n public static override get maxArgs() {\n return 0;\n }\n\n public override async run(): Promise<boolean> {\n clearKeyinPaletteHistory();\n return true;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenSettingsTool.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/OpenSettingsTool.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAK5C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,IAAI;IACxC,OAAuB,MAAM,SAAkB;IAC/C,OAAuB,QAAQ,SAC6B;IAG5D,WAA2B,OAAO,WAEjC;IAED,WAA2B,OAAO,WAEjC;IAEqB,GAAG,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK/C,WAAW,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGvE"}
1
+ {"version":3,"file":"OpenSettingsTool.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/OpenSettingsTool.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAI5C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,IAAI;IACxC,OAAuB,MAAM,SAAkB;IAC/C,OAAuB,QAAQ,SAAe;IAG9C,WAA2B,OAAO,WAEjC;IAED,WAA2B,OAAO,WAEjC;IAEqB,GAAG,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK/C,WAAW,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGvE"}
@@ -11,7 +11,6 @@ exports.OpenSettingsTool = void 0;
11
11
  const core_frontend_1 = require("@itwin/core-frontend");
12
12
  const ModalSettingsStage_1 = require("../frontstage/ModalSettingsStage");
13
13
  const settings_svg_1 = require("@bentley/icons-generic/icons/settings.svg");
14
- const appui_abstract_1 = require("@itwin/appui-abstract");
15
14
  /**
16
15
  * Immediate tool that will open the Settings modal stage.
17
16
  * @alpha
@@ -34,6 +33,6 @@ class OpenSettingsTool extends core_frontend_1.Tool {
34
33
  }
35
34
  }
36
35
  OpenSettingsTool.toolId = "OpenSettings";
37
- OpenSettingsTool.iconSpec = appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(settings_svg_1.default);
36
+ OpenSettingsTool.iconSpec = settings_svg_1.default;
38
37
  exports.OpenSettingsTool = OpenSettingsTool;
39
38
  //# sourceMappingURL=OpenSettingsTool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenSettingsTool.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/OpenSettingsTool.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;GAEG;AACH,wDAA4C;AAC5C,yEAA2E;AAC3E,4EAAoE;AACpE,0DAA0D;AAE1D;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,oBAAI;IAKxC,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IACD,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IAEe,KAAK,CAAC,GAAG,CAAC,eAAwB;QAChD,4CAAuB,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;QAC3D,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;;AApBsB,uBAAM,GAAG,cAAc,CAAC;AACxB,yBAAQ,GAC7B,kCAAiB,CAAC,0BAA0B,CAAC,sBAAW,CAAC,CAAC;AAHjD,4CAAgB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\nimport { Tool } from \"@itwin/core-frontend\";\nimport { SettingsModalFrontstage } from \"../frontstage/ModalSettingsStage\";\nimport svgSettings from \"@bentley/icons-generic/icons/settings.svg\";\nimport { IconSpecUtilities } from \"@itwin/appui-abstract\";\n\n/**\n * Immediate tool that will open the Settings modal stage.\n * @alpha\n */\nexport class OpenSettingsTool extends Tool {\n public static override toolId = \"OpenSettings\";\n public static override iconSpec =\n IconSpecUtilities.createWebComponentIconSpec(svgSettings);\n\n // istanbul ignore next\n public static override get minArgs() {\n return 0;\n }\n // istanbul ignore next\n public static override get maxArgs() {\n return 1;\n }\n\n public override async run(settingCategory?: string): Promise<boolean> {\n SettingsModalFrontstage.showSettingsStage(settingCategory);\n return true;\n }\n\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(args[0]);\n }\n}\n"]}
1
+ {"version":3,"file":"OpenSettingsTool.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/OpenSettingsTool.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;GAEG;AACH,wDAA4C;AAC5C,yEAA2E;AAC3E,4EAAoE;AAEpE;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,oBAAI;IAIxC,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IACD,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IAEe,KAAK,CAAC,GAAG,CAAC,eAAwB;QAChD,4CAAuB,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;QAC3D,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;;AAnBsB,uBAAM,GAAG,cAAc,CAAC;AACxB,yBAAQ,GAAG,sBAAW,CAAC;AAFnC,4CAAgB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\nimport { Tool } from \"@itwin/core-frontend\";\nimport { SettingsModalFrontstage } from \"../frontstage/ModalSettingsStage\";\nimport svgSettings from \"@bentley/icons-generic/icons/settings.svg\";\n\n/**\n * Immediate tool that will open the Settings modal stage.\n * @alpha\n */\nexport class OpenSettingsTool extends Tool {\n public static override toolId = \"OpenSettings\";\n public static override iconSpec = svgSettings;\n\n // istanbul ignore next\n public static override get minArgs() {\n return 0;\n }\n // istanbul ignore next\n public static override get maxArgs() {\n return 1;\n }\n\n public override async run(settingCategory?: string): Promise<boolean> {\n SettingsModalFrontstage.showSettingsStage(settingCategory);\n return true;\n }\n\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(args[0]);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"RestoreLayoutTool.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/RestoreLayoutTool.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAIL,IAAI,EACL,MAAM,sBAAsB,CAAC;AAO9B;;;;GAIG;AACH,qBAAa,2BAA4B,SAAQ,IAAI;IACnD,OAAuB,MAAM,SAA6B;IAC1D,OAAuB,QAAQ,SACgC;IAG/D,WAA2B,OAAO,WAEjC;IAED,WAA2B,OAAO,WAEjC;IAEqB,GAAG,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAsB5C,WAAW,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGvE;AAED;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,IAAI;IACjD,OAAuB,MAAM,SAA2B;IACxD,OAAuB,QAAQ,SACgC;IAEzC,GAAG;CAO1B"}
1
+ {"version":3,"file":"RestoreLayoutTool.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/tools/RestoreLayoutTool.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAIL,IAAI,EACL,MAAM,sBAAsB,CAAC;AAM9B;;;;GAIG;AACH,qBAAa,2BAA4B,SAAQ,IAAI;IACnD,OAAuB,MAAM,SAA6B;IAC1D,OAAuB,QAAQ,SAAkB;IAGjD,WAA2B,OAAO,WAEjC;IAED,WAA2B,OAAO,WAEjC;IAEqB,GAAG,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAsB5C,WAAW,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGvE;AAED;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,IAAI;IACjD,OAAuB,MAAM,SAA2B;IACxD,OAAuB,QAAQ,SAAkB;IAE3B,GAAG;CAO1B"}
@@ -12,7 +12,6 @@ const core_frontend_1 = require("@itwin/core-frontend");
12
12
  const InternalFrontstageManager_1 = require("../frontstage/InternalFrontstageManager");
13
13
  const UiFramework_1 = require("../UiFramework");
14
14
  const view_layouts_svg_1 = require("@bentley/icons-generic/icons/view-layouts.svg");
15
- const appui_abstract_1 = require("@itwin/appui-abstract");
16
15
  /**
17
16
  * Immediate tool that will reset the layout to that specified in the stage definition. A stage Id
18
17
  * may be passed in, if not the active stage is used. The stage Id is case sensitive.
@@ -46,7 +45,7 @@ class RestoreFrontstageLayoutTool extends core_frontend_1.Tool {
46
45
  }
47
46
  }
48
47
  RestoreFrontstageLayoutTool.toolId = "RestoreFrontstageLayout";
49
- RestoreFrontstageLayoutTool.iconSpec = appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(view_layouts_svg_1.default);
48
+ RestoreFrontstageLayoutTool.iconSpec = view_layouts_svg_1.default;
50
49
  exports.RestoreFrontstageLayoutTool = RestoreFrontstageLayoutTool;
51
50
  /**
52
51
  * Immediate tool that will reset the layout of all frontstages to that specified in the stage definition.
@@ -62,6 +61,6 @@ class RestoreAllFrontstagesTool extends core_frontend_1.Tool {
62
61
  }
63
62
  }
64
63
  RestoreAllFrontstagesTool.toolId = "RestoreAllFrontstages";
65
- RestoreAllFrontstagesTool.iconSpec = appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(view_layouts_svg_1.default);
64
+ RestoreAllFrontstagesTool.iconSpec = view_layouts_svg_1.default;
66
65
  exports.RestoreAllFrontstagesTool = RestoreAllFrontstagesTool;
67
66
  //# sourceMappingURL=RestoreLayoutTool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RestoreLayoutTool.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/RestoreLayoutTool.ts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W,EAAE;YACxC,UAAU,CAAC,aAAa,EAAE,CAAC;SAC5B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;;AAVsB,gCAAM,GAAG,uBAAuB,CAAC;AACjC,kCAAQ,GAC7B,kCAAiB,CAAC,0BAA0B,CAAC,0BAAc,CAAC,CAAC;AAHpD,8DAAyB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\nimport {\n IModelApp,\n NotifyMessageDetails,\n OutputMessagePriority,\n Tool,\n} from \"@itwin/core-frontend\";\nimport type { FrontstageDef } from \"../frontstage/FrontstageDef\";\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\nimport { UiFramework } from \"../UiFramework\";\nimport svgViewLayouts from \"@bentley/icons-generic/icons/view-layouts.svg\";\nimport { IconSpecUtilities } from \"@itwin/appui-abstract\";\n\n/**\n * Immediate tool that will reset the layout to that specified in the stage definition. A stage Id\n * may be passed in, if not the active stage is used. The stage Id is case sensitive.\n * @public\n */\nexport class RestoreFrontstageLayoutTool extends Tool {\n public static override toolId = \"RestoreFrontstageLayout\";\n public static override iconSpec =\n IconSpecUtilities.createWebComponentIconSpec(svgViewLayouts);\n\n // istanbul ignore next\n public static override get minArgs() {\n return 0;\n }\n // istanbul ignore next\n public static override get maxArgs() {\n return 1;\n }\n\n public override async run(frontstageId?: string): Promise<boolean> {\n let frontstageDef: FrontstageDef | undefined;\n\n if (frontstageId) {\n frontstageDef = await UiFramework.frontstages.getFrontstageDef(\n frontstageId\n );\n } else {\n frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n }\n\n if (frontstageDef) frontstageDef.restoreLayout();\n else\n IModelApp.notifications.outputMessage(\n new NotifyMessageDetails(\n OutputMessagePriority.Info,\n UiFramework.translate(\"tools.RestoreFrontstageLayout.noStageFound\")\n )\n );\n return true;\n }\n\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(args[0]);\n }\n}\n\n/**\n * Immediate tool that will reset the layout of all frontstages to that specified in the stage definition.\n * @public\n */\nexport class RestoreAllFrontstagesTool extends Tool {\n public static override toolId = \"RestoreAllFrontstages\";\n public static override iconSpec =\n IconSpecUtilities.createWebComponentIconSpec(svgViewLayouts);\n\n public override async run() {\n const frontstages = InternalFrontstageManager.frontstageDefs;\n for (const [, frontstage] of frontstages) {\n frontstage.restoreLayout();\n }\n return true;\n }\n}\n"]}
1
+ {"version":3,"file":"RestoreLayoutTool.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/RestoreLayoutTool.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;GAEG;AACH,wDAK8B;AAE9B,uFAAoF;AACpF,gDAA6C;AAC7C,oFAA2E;AAE3E;;;;GAIG;AACH,MAAa,2BAA4B,SAAQ,oBAAI;IAInD,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IACD,uBAAuB;IAChB,MAAM,KAAc,OAAO;QAChC,OAAO,CAAC,CAAC;IACX,CAAC;IAEe,KAAK,CAAC,GAAG,CAAC,YAAqB;QAC7C,IAAI,aAAwC,CAAC;QAE7C,IAAI,YAAY,EAAE;YAChB,aAAa,GAAG,MAAM,yBAAW,CAAC,WAAW,CAAC,gBAAgB,CAC5D,YAAY,CACb,CAAC;SACH;aAAM;YACL,aAAa,GAAG,yBAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC;SAC7D;QAED,IAAI,aAAa;YAAE,aAAa,CAAC,aAAa,EAAE,CAAC;;YAE/C,yBAAS,CAAC,aAAa,CAAC,aAAa,CACnC,IAAI,oCAAoB,CACtB,qCAAqB,CAAC,IAAI,EAC1B,yBAAW,CAAC,SAAS,CAAC,4CAA4C,CAAC,CACpE,CACF,CAAC;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;;AApCsB,kCAAM,GAAG,yBAAyB,CAAC;AACnC,oCAAQ,GAAG,0BAAc,CAAC;AAFtC,kEAA2B;AAwCxC;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,oBAAI;IAIjC,KAAK,CAAC,GAAG;QACvB,MAAM,WAAW,GAAG,qDAAyB,CAAC,cAAc,CAAC;QAC7D,KAAK,MAAM,CAAC,EAAE,UAAU,CAAC,IAAI,WAAW,EAAE;YACxC,UAAU,CAAC,aAAa,EAAE,CAAC;SAC5B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;;AATsB,gCAAM,GAAG,uBAAuB,CAAC;AACjC,kCAAQ,GAAG,0BAAc,CAAC;AAFtC,8DAAyB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\nimport {\n IModelApp,\n NotifyMessageDetails,\n OutputMessagePriority,\n Tool,\n} from \"@itwin/core-frontend\";\nimport type { FrontstageDef } from \"../frontstage/FrontstageDef\";\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\nimport { UiFramework } from \"../UiFramework\";\nimport svgViewLayouts from \"@bentley/icons-generic/icons/view-layouts.svg\";\n\n/**\n * Immediate tool that will reset the layout to that specified in the stage definition. A stage Id\n * may be passed in, if not the active stage is used. The stage Id is case sensitive.\n * @public\n */\nexport class RestoreFrontstageLayoutTool extends Tool {\n public static override toolId = \"RestoreFrontstageLayout\";\n public static override iconSpec = svgViewLayouts;\n\n // istanbul ignore next\n public static override get minArgs() {\n return 0;\n }\n // istanbul ignore next\n public static override get maxArgs() {\n return 1;\n }\n\n public override async run(frontstageId?: string): Promise<boolean> {\n let frontstageDef: FrontstageDef | undefined;\n\n if (frontstageId) {\n frontstageDef = await UiFramework.frontstages.getFrontstageDef(\n frontstageId\n );\n } else {\n frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n }\n\n if (frontstageDef) frontstageDef.restoreLayout();\n else\n IModelApp.notifications.outputMessage(\n new NotifyMessageDetails(\n OutputMessagePriority.Info,\n UiFramework.translate(\"tools.RestoreFrontstageLayout.noStageFound\")\n )\n );\n return true;\n }\n\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(args[0]);\n }\n}\n\n/**\n * Immediate tool that will reset the layout of all frontstages to that specified in the stage definition.\n * @public\n */\nexport class RestoreAllFrontstagesTool extends Tool {\n public static override toolId = \"RestoreAllFrontstages\";\n public static override iconSpec = svgViewLayouts;\n\n public override async run() {\n const frontstages = InternalFrontstageManager.frontstageDefs;\n for (const [, frontstage] of frontstages) {\n frontstage.restoreLayout();\n }\n return true;\n }\n}\n"]}
@@ -30,5 +30,20 @@ declare class AbstractUiItemsManagerAdapter implements Target {
30
30
  getToolbarButtonItems(stageId: string, stageUsage: string, usage: ToolbarUsage, orientation: ToolbarOrientation): readonly ProviderItem<ToolbarItem>[];
31
31
  getWidgets(stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection | undefined): readonly ProviderItem<Widget>[];
32
32
  }
33
+ /** Maps items of existing `get` properties to `provide` properties, otherwise uses `provide` properties.
34
+ * @internal
35
+ */
36
+ export declare function createGetPropertyAdapter(provider: UiItemsProvider): {
37
+ provideBackstageItems: () => readonly BackstageItem[];
38
+ provideStatusBarItems: (stageId: string, stageUsage: string) => readonly StatusBarItem[];
39
+ provideToolbarItems: (stageId: string, stageUsage: string, usage: ToolbarUsage, orientation: ToolbarOrientation) => readonly ToolbarItem[];
40
+ provideWidgets: (stageId: string, stageUsage: string, location: StagePanelLocation, section: StagePanelSection | undefined) => readonly Widget[];
41
+ id: string;
42
+ getToolbarItems?: (() => readonly ToolbarItem[]) | undefined;
43
+ getStatusBarItems?: (() => readonly StatusBarItem[]) | undefined;
44
+ getBackstageItems?: (() => readonly BackstageItem[]) | undefined;
45
+ getWidgets?: (() => readonly Widget[]) | undefined;
46
+ onUnregister?: (() => void) | undefined;
47
+ };
33
48
  export {};
34
49
  //# sourceMappingURL=AbstractUiItemsManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractUiItemsManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/AbstractUiItemsManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,KAAK,EAWV,cAAc,IAAI,0BAA0B,EAK7C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,kCAAkC,EACnC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,YAAY,EACb,MAAM,wBAAwB,CAAC;AAKhC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAuBhE,gBAAgB;AAChB,wBAAgB,mCAAmC,8CAGlD;AAED,KAAK,MAAM,GAAG,IAAI,CAChB,OAAO,cAAc,EACnB,YAAY,GACZ,uBAAuB,GACvB,mBAAmB,GACnB,mBAAmB,GACnB,UAAU,GACV,oBAAoB,GACpB,uBAAuB,GACvB,wBAAwB,GACxB,YAAY,GACZ,6BAA6B,GA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