@itwin/appui-react 4.10.0 → 4.12.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 (933) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +181 -10
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +301 -21
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/UiFramework.json +345 -0
  7. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  8. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +3 -2
  9. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  10. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  11. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js +50 -33
  12. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts +1 -1
  14. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +5 -7
  16. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts +7 -6
  18. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +9 -0
  20. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  21. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  22. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +10 -10
  23. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  24. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +4 -3
  25. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  26. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts +2 -2
  27. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts.map +1 -1
  28. package/lib/cjs/appui-react/backstage/BackstageItem.js.map +1 -1
  29. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +1 -1
  30. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  31. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +5 -0
  32. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  33. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +24 -17
  34. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  35. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.scss +12 -10
  36. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts +2 -0
  37. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  38. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +7 -1
  39. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  40. package/lib/cjs/appui-react/configurableui/TimeTracker.js +2 -1
  41. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  42. package/lib/cjs/appui-react/content/ContentLayout.js +12 -9
  43. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  44. package/lib/cjs/appui-react/content/DefaultViewOverlay.js +4 -3
  45. package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
  46. package/lib/cjs/appui-react/content/DefaultViewOverlay.scss +14 -19
  47. package/lib/cjs/appui-react/content/FloatingViewportContent.js +2 -1
  48. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  49. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  50. package/lib/cjs/appui-react/content/IModelViewport.js +8 -9
  51. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  52. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +2 -1
  53. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  54. package/lib/cjs/appui-react/content/InternalContentViewManager.js +2 -2
  55. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
  56. package/lib/cjs/appui-react/content/split-pane/SplitPane.js +12 -10
  57. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  58. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -2
  59. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  60. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +3 -2
  61. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  62. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +8 -4
  63. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  64. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +102 -50
  65. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  66. package/lib/cjs/appui-react/dialog/ContentDialog.js +6 -3
  67. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  68. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +3 -2
  69. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  70. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +4 -2
  71. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts.map +1 -1
  72. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
  73. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +0 -5
  74. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  75. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +23 -78
  76. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  77. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  78. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +1 -3
  79. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  80. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +0 -1
  81. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  82. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js +1 -2
  83. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  84. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  85. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +7 -6
  86. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  87. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +4 -4
  88. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  89. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +5 -4
  90. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  91. package/lib/cjs/appui-react/hooks/useActiveToolId.d.ts +6 -0
  92. package/lib/cjs/appui-react/hooks/useActiveToolId.d.ts.map +1 -0
  93. package/lib/cjs/appui-react/hooks/useActiveToolId.js +24 -0
  94. package/lib/cjs/appui-react/hooks/useActiveToolId.js.map +1 -0
  95. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
  96. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  97. package/lib/cjs/appui-react/hooks/useConditionalValue.d.ts +15 -0
  98. package/lib/cjs/appui-react/hooks/useConditionalValue.d.ts.map +1 -0
  99. package/lib/cjs/appui-react/hooks/useConditionalValue.js +43 -0
  100. package/lib/cjs/appui-react/hooks/useConditionalValue.js.map +1 -0
  101. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
  102. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  103. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +13 -8
  104. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  105. package/lib/cjs/appui-react/hooks/useTranslation.d.ts +7 -0
  106. package/lib/cjs/appui-react/hooks/useTranslation.d.ts.map +1 -0
  107. package/lib/cjs/appui-react/hooks/useTranslation.js +29 -0
  108. package/lib/cjs/appui-react/hooks/useTranslation.js.map +1 -0
  109. package/lib/cjs/appui-react/keyins/Keyins.d.ts +35 -0
  110. package/lib/cjs/appui-react/keyins/Keyins.d.ts.map +1 -0
  111. package/lib/cjs/appui-react/keyins/Keyins.js +54 -0
  112. package/lib/cjs/appui-react/keyins/Keyins.js.map +1 -0
  113. package/lib/cjs/appui-react/layers.scss +1 -1
  114. package/lib/cjs/appui-react/layout/StandardLayout.d.ts.map +1 -1
  115. package/lib/cjs/appui-react/layout/StandardLayout.js +10 -10
  116. package/lib/cjs/appui-react/layout/StandardLayout.js.map +1 -1
  117. package/lib/cjs/appui-react/layout/StandardLayout.scss +1 -1
  118. package/lib/cjs/appui-react/layout/_widgetopacity.scss +3 -1
  119. package/lib/cjs/appui-react/layout/base/DragManager.js +2 -1
  120. package/lib/cjs/appui-react/layout/base/DragManager.js.map +1 -1
  121. package/lib/cjs/appui-react/layout/base/NineZone.js +1 -1
  122. package/lib/cjs/appui-react/layout/base/NineZone.js.map +1 -1
  123. package/lib/cjs/appui-react/layout/base/usePointerCaptor.d.ts.map +1 -1
  124. package/lib/cjs/appui-react/layout/base/usePointerCaptor.js +3 -0
  125. package/lib/cjs/appui-react/layout/base/usePointerCaptor.js.map +1 -1
  126. package/lib/cjs/appui-react/layout/outline/TabOutline.js +1 -1
  127. package/lib/cjs/appui-react/layout/outline/TabOutline.js.map +1 -1
  128. package/lib/cjs/appui-react/layout/outline/WidgetOutline.js +1 -1
  129. package/lib/cjs/appui-react/layout/outline/WidgetOutline.js.map +1 -1
  130. package/lib/cjs/appui-react/layout/state/NineZoneAction.d.ts +3 -2
  131. package/lib/cjs/appui-react/layout/state/NineZoneAction.d.ts.map +1 -1
  132. package/lib/cjs/appui-react/layout/state/NineZoneAction.js.map +1 -1
  133. package/lib/cjs/appui-react/layout/state/NineZoneStateReducer.d.ts.map +1 -1
  134. package/lib/cjs/appui-react/layout/state/NineZoneStateReducer.js +16 -13
  135. package/lib/cjs/appui-react/layout/state/NineZoneStateReducer.js.map +1 -1
  136. package/lib/cjs/appui-react/layout/state/PanelState.d.ts +2 -5
  137. package/lib/cjs/appui-react/layout/state/PanelState.d.ts.map +1 -1
  138. package/lib/cjs/appui-react/layout/state/PanelState.js.map +1 -1
  139. package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.js +2 -1
  140. package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.js.map +1 -1
  141. package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.d.ts +4 -3
  142. package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.d.ts.map +1 -1
  143. package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.js +12 -10
  144. package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -1
  145. package/lib/cjs/appui-react/layout/state/internal/TabStateHelpers.js +3 -2
  146. package/lib/cjs/appui-react/layout/state/internal/TabStateHelpers.js.map +1 -1
  147. package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.js +4 -4
  148. package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -1
  149. package/lib/cjs/appui-react/layout/target/TitleBarTarget.js +1 -1
  150. package/lib/cjs/appui-react/layout/target/TitleBarTarget.js.map +1 -1
  151. package/lib/cjs/appui-react/layout/widget/Content.d.ts.map +1 -1
  152. package/lib/cjs/appui-react/layout/widget/Content.js +5 -5
  153. package/lib/cjs/appui-react/layout/widget/Content.js.map +1 -1
  154. package/lib/cjs/appui-react/layout/widget/ContentRenderer.js +2 -2
  155. package/lib/cjs/appui-react/layout/widget/ContentRenderer.js.map +1 -1
  156. package/lib/cjs/appui-react/layout/widget/FloatingTab.js +6 -5
  157. package/lib/cjs/appui-react/layout/widget/FloatingTab.js.map +1 -1
  158. package/lib/cjs/appui-react/layout/widget/FloatingWidget.js +4 -2
  159. package/lib/cjs/appui-react/layout/widget/FloatingWidget.js.map +1 -1
  160. package/lib/cjs/appui-react/layout/widget/NavigationArea.scss +4 -1
  161. package/lib/cjs/appui-react/layout/widget/PanelWidget.js +1 -1
  162. package/lib/cjs/appui-react/layout/widget/PanelWidget.js.map +1 -1
  163. package/lib/cjs/appui-react/layout/widget/Tab.js +4 -4
  164. package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
  165. package/lib/cjs/appui-react/layout/widget/ToolsArea.scss +2 -0
  166. package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -1
  167. package/lib/cjs/appui-react/layout/widget/Widget.js +2 -2
  168. package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
  169. package/lib/cjs/appui-react/layout/widget/useIsToolSettingsTab.js +1 -1
  170. package/lib/cjs/appui-react/layout/widget/useIsToolSettingsTab.js.map +1 -1
  171. package/lib/cjs/appui-react/layout/widget-panels/PanelSections.js +8 -5
  172. package/lib/cjs/appui-react/layout/widget-panels/PanelSections.js.map +1 -1
  173. package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.d.ts +1 -1
  174. package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.js +2 -1
  175. package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.js.map +1 -1
  176. package/lib/cjs/appui-react/messages/AppNotificationManager.js +1 -1
  177. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  178. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  179. package/lib/cjs/appui-react/messages/MessageManager.js +6 -6
  180. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  181. package/lib/cjs/appui-react/messages/MessageRenderer.js +16 -10
  182. package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
  183. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  184. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js +2 -6
  185. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  186. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  187. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  188. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  189. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +0 -1
  190. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  191. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +1 -2
  192. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  193. package/lib/cjs/appui-react/pickers/ViewSelector.js +6 -5
  194. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  195. package/lib/cjs/appui-react/popup/CardPopup.d.ts +21 -9
  196. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  197. package/lib/cjs/appui-react/popup/CardPopup.js +12 -5
  198. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  199. package/lib/cjs/appui-react/popup/ComponentPopup.d.ts +18 -0
  200. package/lib/cjs/appui-react/popup/ComponentPopup.d.ts.map +1 -0
  201. package/lib/cjs/appui-react/popup/ComponentPopup.js +35 -0
  202. package/lib/cjs/appui-react/popup/ComponentPopup.js.map +1 -0
  203. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +4 -1
  204. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  205. package/lib/cjs/appui-react/popup/HTMLElementPopup.js +1 -0
  206. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  207. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts +4 -4
  208. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  210. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts +1 -1
  211. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  212. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +19 -12
  213. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  214. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +4 -2
  215. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  216. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js +9 -3
  217. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  218. package/lib/cjs/appui-react/popup/PopupManager.d.ts +45 -9
  219. package/lib/cjs/appui-react/popup/PopupManager.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/popup/PopupManager.js +85 -13
  221. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  222. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts +16 -6
  223. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  224. package/lib/cjs/appui-react/popup/ToolbarPopup.js +7 -2
  225. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  226. package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts +3 -1
  227. package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/preview/PreviewFeatures.js +8 -7
  229. package/lib/cjs/appui-react/preview/PreviewFeatures.js.map +1 -1
  230. package/lib/cjs/appui-react/preview/activate-dropped-tab/activateDroppedTab.d.ts +6 -0
  231. package/lib/cjs/appui-react/preview/activate-dropped-tab/activateDroppedTab.d.ts.map +1 -0
  232. package/lib/cjs/appui-react/{layout/state → preview/activate-dropped-tab}/activateDroppedTab.js +5 -4
  233. package/lib/cjs/appui-react/preview/activate-dropped-tab/activateDroppedTab.js.map +1 -0
  234. package/lib/cjs/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.d.ts +6 -0
  235. package/lib/cjs/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.d.ts.map +1 -0
  236. package/lib/cjs/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.js +18 -0
  237. package/lib/cjs/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.js.map +1 -0
  238. package/lib/cjs/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.scss +10 -0
  239. package/lib/cjs/appui-react/preview/enable-maximized-widget/useMaximizedWidget.d.ts +7 -7
  240. package/lib/cjs/appui-react/preview/enable-maximized-widget/useMaximizedWidget.d.ts.map +1 -1
  241. package/lib/cjs/appui-react/preview/enable-maximized-widget/useMaximizedWidget.js +7 -7
  242. package/lib/cjs/appui-react/preview/enable-maximized-widget/useMaximizedWidget.js.map +1 -1
  243. package/lib/cjs/appui-react/preview/enable-maximized-widget/useMaximizedWidget.scss +6 -6
  244. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +1 -1
  245. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  246. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/useHorizontalPanelAlignment.js +1 -1
  247. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/useHorizontalPanelAlignment.js.map +1 -1
  248. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/useHorizontalPanelAlignment.scss +4 -4
  249. package/lib/cjs/appui-react/preview/new-toolbars/ActionItem.d.ts +12 -0
  250. package/lib/cjs/appui-react/preview/new-toolbars/ActionItem.d.ts.map +1 -0
  251. package/lib/cjs/appui-react/preview/new-toolbars/ActionItem.js +25 -0
  252. package/lib/cjs/appui-react/preview/new-toolbars/ActionItem.js.map +1 -0
  253. package/lib/cjs/appui-react/preview/new-toolbars/Badge.d.ts +9 -0
  254. package/lib/cjs/appui-react/preview/new-toolbars/Badge.d.ts.map +1 -0
  255. package/lib/cjs/appui-react/{statusbar/Popup.js → preview/new-toolbars/Badge.js} +10 -10
  256. package/lib/cjs/appui-react/preview/new-toolbars/Badge.js.map +1 -0
  257. package/lib/cjs/appui-react/preview/new-toolbars/Badge.scss +13 -0
  258. package/lib/cjs/appui-react/preview/new-toolbars/CustomItem.d.ts +12 -0
  259. package/lib/cjs/appui-react/preview/new-toolbars/CustomItem.d.ts.map +1 -0
  260. package/lib/cjs/appui-react/preview/new-toolbars/CustomItem.js +36 -0
  261. package/lib/cjs/appui-react/preview/new-toolbars/CustomItem.js.map +1 -0
  262. package/lib/cjs/appui-react/preview/new-toolbars/ExpandIndicator.d.ts +5 -0
  263. package/lib/cjs/appui-react/preview/new-toolbars/ExpandIndicator.d.ts.map +1 -0
  264. package/lib/cjs/appui-react/preview/new-toolbars/ExpandIndicator.js +15 -0
  265. package/lib/cjs/appui-react/preview/new-toolbars/ExpandIndicator.js.map +1 -0
  266. package/lib/cjs/appui-react/preview/new-toolbars/ExpandIndicator.scss +17 -0
  267. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts +22 -0
  268. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts.map +1 -0
  269. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.js +79 -0
  270. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.js.map +1 -0
  271. package/lib/cjs/appui-react/preview/new-toolbars/Item.d.ts +21 -0
  272. package/lib/cjs/appui-react/preview/new-toolbars/Item.d.ts.map +1 -0
  273. package/lib/cjs/appui-react/preview/new-toolbars/Item.js +54 -0
  274. package/lib/cjs/appui-react/preview/new-toolbars/Item.js.map +1 -0
  275. package/lib/cjs/appui-react/preview/new-toolbars/OverflowButton.d.ts +17 -0
  276. package/lib/cjs/appui-react/preview/new-toolbars/OverflowButton.d.ts.map +1 -0
  277. package/lib/cjs/appui-react/preview/new-toolbars/OverflowButton.js +37 -0
  278. package/lib/cjs/appui-react/preview/new-toolbars/OverflowButton.js.map +1 -0
  279. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.d.ts +18 -0
  280. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -0
  281. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js +85 -0
  282. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -0
  283. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.scss +43 -0
  284. package/lib/cjs/appui-react/preview/new-toolbars/Toolbar.d.ts +23 -0
  285. package/lib/cjs/appui-react/preview/new-toolbars/Toolbar.d.ts.map +1 -0
  286. package/lib/cjs/appui-react/preview/new-toolbars/Toolbar.js +40 -0
  287. package/lib/cjs/appui-react/preview/new-toolbars/Toolbar.js.map +1 -0
  288. package/lib/cjs/appui-react/preview/new-toolbars/useOverflow.d.ts +9 -0
  289. package/lib/cjs/appui-react/preview/new-toolbars/useOverflow.d.ts.map +1 -0
  290. package/lib/cjs/appui-react/preview/new-toolbars/useOverflow.js +93 -0
  291. package/lib/cjs/appui-react/preview/new-toolbars/useOverflow.js.map +1 -0
  292. package/lib/cjs/appui-react/preview/widget-action-dropdown/MoreButton.js +2 -1
  293. package/lib/cjs/appui-react/preview/widget-action-dropdown/MoreButton.js.map +1 -1
  294. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +1 -1
  295. package/lib/cjs/appui-react/redux/SessionState.d.ts +15 -3
  296. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  297. package/lib/cjs/appui-react/redux/SessionState.js +8 -1
  298. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  299. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +2 -2
  300. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  301. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  302. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +6 -8
  303. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  304. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  305. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js +7 -7
  306. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  307. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  308. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +40 -46
  309. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  310. package/lib/cjs/appui-react/shared/ConditionalValue.d.ts +17 -0
  311. package/lib/cjs/appui-react/shared/ConditionalValue.d.ts.map +1 -0
  312. package/lib/cjs/appui-react/shared/ConditionalValue.js +16 -0
  313. package/lib/cjs/appui-react/shared/ConditionalValue.js.map +1 -0
  314. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +2 -2
  315. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  316. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  317. package/lib/cjs/appui-react/shared/ItemProps.d.ts +13 -2
  318. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  319. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  320. package/lib/cjs/appui-react/shared/MenuItem.d.ts +21 -2
  321. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  322. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  323. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +23 -3
  324. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -1
  325. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  326. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +7 -4
  327. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  328. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +42 -16
  329. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  330. package/lib/cjs/appui-react/statusbar/Indicator.js +2 -1
  331. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  332. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  333. package/lib/cjs/appui-react/statusbar/Overflow.js +3 -3
  334. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  335. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +1 -1
  336. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  337. package/lib/cjs/appui-react/statusbar/StatusBar.js +6 -4
  338. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  339. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts +2 -2
  340. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  341. package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
  342. package/lib/cjs/appui-react/statusbar/{Popup.d.ts → popup/Popup.d.ts} +2 -1
  343. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts.map +1 -0
  344. package/lib/cjs/appui-react/{layout/footer → statusbar/popup}/Popup.js +10 -11
  345. package/lib/cjs/appui-react/statusbar/popup/Popup.js.map +1 -0
  346. package/lib/cjs/appui-react/{layout/footer → statusbar/popup}/Popup.scss +1 -7
  347. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  348. package/lib/cjs/appui-react/statusfields/ActivityCenter.js +4 -4
  349. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  350. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts +0 -1
  351. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  352. package/lib/cjs/appui-react/statusfields/MessageCenter.js +4 -4
  353. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  354. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  355. package/lib/cjs/appui-react/statusfields/SectionsField.js +7 -10
  356. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  357. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  358. package/lib/cjs/appui-react/statusfields/SelectionScope.js +4 -4
  359. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  360. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  361. package/lib/cjs/appui-react/statusfields/SnapMode.js +14 -12
  362. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  363. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +0 -2
  364. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  365. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +12 -20
  366. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  367. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  368. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +2 -2
  369. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  370. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  371. package/lib/cjs/appui-react/theme/ThemeManager.js +3 -2
  372. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  373. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.d.ts.map +1 -1
  374. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.js +2 -3
  375. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  376. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +4 -3
  377. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  378. package/lib/cjs/appui-react/toolbar/Toolbar.js +28 -4
  379. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  380. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts +4 -2
  381. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  382. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +15 -12
  383. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  384. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  385. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +5 -6
  386. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  387. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +2 -2
  388. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  389. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  390. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js +4 -3
  391. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  392. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  393. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +18 -11
  394. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  395. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +2 -3
  396. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  397. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +22 -20
  398. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  399. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +10 -9
  400. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  401. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +2 -1
  402. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  403. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +14 -8
  404. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  405. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +47 -38
  406. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  407. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +102 -143
  408. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  409. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +1 -1
  410. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  411. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +3 -3
  412. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  413. package/lib/cjs/appui-react/utils/Placement.d.ts +35 -0
  414. package/lib/cjs/appui-react/utils/Placement.d.ts.map +1 -0
  415. package/lib/cjs/appui-react/utils/Placement.js +62 -0
  416. package/lib/cjs/appui-react/utils/Placement.js.map +1 -0
  417. package/lib/cjs/appui-react/utils/PropsHelper.js +4 -4
  418. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  419. package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/widget-panels/Content.js +12 -11
  421. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  422. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  423. package/lib/cjs/appui-react/widget-panels/Frontstage.js +32 -24
  424. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  425. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -1
  426. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  427. package/lib/cjs/appui-react/widget-panels/Tab.d.ts +1 -1
  428. package/lib/cjs/appui-react/widget-panels/Tab.d.ts.map +1 -1
  429. package/lib/cjs/appui-react/widget-panels/Tab.js +4 -6
  430. package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
  431. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts +1 -1
  432. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  433. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +55 -68
  434. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  435. package/lib/cjs/appui-react/widget-panels/Toolbars.js +3 -2
  436. package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
  437. package/lib/cjs/appui-react/widget-panels/Toolbars.scss +3 -1
  438. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  439. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +3 -1
  440. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  441. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  442. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +5 -3
  443. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  444. package/lib/cjs/appui-react/widgets/Widget.d.ts +2 -2
  445. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  446. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  447. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +8 -3
  448. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  449. package/lib/cjs/appui-react/widgets/WidgetDef.js +61 -18
  450. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  451. package/lib/cjs/appui-react/widgets/WidgetHost.js +3 -2
  452. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  453. package/lib/cjs/appui-react/widgets/useWidget.js +1 -1
  454. package/lib/cjs/appui-react/widgets/useWidget.js.map +1 -1
  455. package/lib/cjs/appui-react.d.ts +3 -1
  456. package/lib/cjs/appui-react.d.ts.map +1 -1
  457. package/lib/cjs/appui-react.js +3 -3
  458. package/lib/cjs/appui-react.js.map +1 -1
  459. package/lib/esm/appui-react/UiFramework.d.ts +181 -10
  460. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  461. package/lib/esm/appui-react/UiFramework.js +301 -21
  462. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  463. package/lib/esm/appui-react/UiFramework.json +345 -0
  464. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  465. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +3 -2
  466. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  467. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  468. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +50 -33
  469. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  470. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts +1 -1
  471. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  472. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +5 -7
  473. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  474. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts +7 -6
  475. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  476. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +9 -0
  477. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  478. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  479. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +10 -10
  480. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  481. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +5 -4
  482. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  483. package/lib/esm/appui-react/backstage/BackstageItem.d.ts +2 -2
  484. package/lib/esm/appui-react/backstage/BackstageItem.d.ts.map +1 -1
  485. package/lib/esm/appui-react/backstage/BackstageItem.js.map +1 -1
  486. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +1 -1
  487. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  488. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +5 -0
  489. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  490. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +23 -16
  491. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  492. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.scss +12 -10
  493. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts +2 -0
  494. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  495. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +7 -1
  496. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  497. package/lib/esm/appui-react/configurableui/TimeTracker.js +2 -1
  498. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  499. package/lib/esm/appui-react/content/ContentLayout.js +12 -9
  500. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  501. package/lib/esm/appui-react/content/DefaultViewOverlay.js +4 -3
  502. package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
  503. package/lib/esm/appui-react/content/DefaultViewOverlay.scss +14 -19
  504. package/lib/esm/appui-react/content/FloatingViewportContent.js +2 -1
  505. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  506. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  507. package/lib/esm/appui-react/content/IModelViewport.js +8 -9
  508. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  509. package/lib/esm/appui-react/content/InternalContentLayoutManager.js +2 -1
  510. package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  511. package/lib/esm/appui-react/content/InternalContentViewManager.js +2 -2
  512. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
  513. package/lib/esm/appui-react/content/split-pane/SplitPane.js +12 -10
  514. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  515. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -2
  516. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  517. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +3 -2
  518. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  519. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +8 -4
  520. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  521. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +102 -50
  522. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  523. package/lib/esm/appui-react/dialog/ContentDialog.js +6 -3
  524. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  525. package/lib/esm/appui-react/dialog/DialogManagerBase.js +3 -2
  526. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  527. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +4 -2
  528. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts.map +1 -1
  529. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  530. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +0 -5
  531. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  532. package/lib/esm/appui-react/frontstage/FrontstageDef.js +24 -79
  533. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  534. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  535. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +1 -3
  536. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  537. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +0 -1
  538. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  539. package/lib/esm/appui-react/frontstage/ModalFrontstage.js +1 -2
  540. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  541. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  542. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +7 -6
  543. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  544. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +4 -4
  545. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  546. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +5 -4
  547. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  548. package/lib/esm/appui-react/hooks/useActiveToolId.d.ts +6 -0
  549. package/lib/esm/appui-react/hooks/useActiveToolId.d.ts.map +1 -0
  550. package/lib/esm/appui-react/hooks/useActiveToolId.js +20 -0
  551. package/lib/esm/appui-react/hooks/useActiveToolId.js.map +1 -0
  552. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
  553. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  554. package/lib/esm/appui-react/hooks/useConditionalValue.d.ts +15 -0
  555. package/lib/esm/appui-react/hooks/useConditionalValue.d.ts.map +1 -0
  556. package/lib/esm/appui-react/hooks/useConditionalValue.js +39 -0
  557. package/lib/esm/appui-react/hooks/useConditionalValue.js.map +1 -0
  558. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
  559. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  560. package/lib/esm/appui-react/hooks/useSolarDataProvider.js +13 -8
  561. package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  562. package/lib/esm/appui-react/hooks/useTranslation.d.ts +7 -0
  563. package/lib/esm/appui-react/hooks/useTranslation.d.ts.map +1 -0
  564. package/lib/esm/appui-react/hooks/useTranslation.js +25 -0
  565. package/lib/esm/appui-react/hooks/useTranslation.js.map +1 -0
  566. package/lib/esm/appui-react/keyins/Keyins.d.ts +35 -0
  567. package/lib/esm/appui-react/keyins/Keyins.d.ts.map +1 -0
  568. package/lib/esm/appui-react/keyins/Keyins.js +50 -0
  569. package/lib/esm/appui-react/keyins/Keyins.js.map +1 -0
  570. package/lib/esm/appui-react/layers.scss +1 -1
  571. package/lib/esm/appui-react/layout/StandardLayout.d.ts.map +1 -1
  572. package/lib/esm/appui-react/layout/StandardLayout.js +10 -10
  573. package/lib/esm/appui-react/layout/StandardLayout.js.map +1 -1
  574. package/lib/esm/appui-react/layout/StandardLayout.scss +1 -1
  575. package/lib/esm/appui-react/layout/_widgetopacity.scss +3 -1
  576. package/lib/esm/appui-react/layout/base/DragManager.js +2 -1
  577. package/lib/esm/appui-react/layout/base/DragManager.js.map +1 -1
  578. package/lib/esm/appui-react/layout/base/NineZone.js +1 -1
  579. package/lib/esm/appui-react/layout/base/NineZone.js.map +1 -1
  580. package/lib/esm/appui-react/layout/base/usePointerCaptor.d.ts.map +1 -1
  581. package/lib/esm/appui-react/layout/base/usePointerCaptor.js +3 -0
  582. package/lib/esm/appui-react/layout/base/usePointerCaptor.js.map +1 -1
  583. package/lib/esm/appui-react/layout/outline/TabOutline.js +1 -1
  584. package/lib/esm/appui-react/layout/outline/TabOutline.js.map +1 -1
  585. package/lib/esm/appui-react/layout/outline/WidgetOutline.js +1 -1
  586. package/lib/esm/appui-react/layout/outline/WidgetOutline.js.map +1 -1
  587. package/lib/esm/appui-react/layout/state/NineZoneAction.d.ts +3 -2
  588. package/lib/esm/appui-react/layout/state/NineZoneAction.d.ts.map +1 -1
  589. package/lib/esm/appui-react/layout/state/NineZoneAction.js.map +1 -1
  590. package/lib/esm/appui-react/layout/state/NineZoneStateReducer.d.ts.map +1 -1
  591. package/lib/esm/appui-react/layout/state/NineZoneStateReducer.js +17 -14
  592. package/lib/esm/appui-react/layout/state/NineZoneStateReducer.js.map +1 -1
  593. package/lib/esm/appui-react/layout/state/PanelState.d.ts +2 -5
  594. package/lib/esm/appui-react/layout/state/PanelState.d.ts.map +1 -1
  595. package/lib/esm/appui-react/layout/state/PanelState.js.map +1 -1
  596. package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.js +2 -1
  597. package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.js.map +1 -1
  598. package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.d.ts +4 -3
  599. package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.d.ts.map +1 -1
  600. package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.js +10 -8
  601. package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -1
  602. package/lib/esm/appui-react/layout/state/internal/TabStateHelpers.js +3 -2
  603. package/lib/esm/appui-react/layout/state/internal/TabStateHelpers.js.map +1 -1
  604. package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.js +4 -4
  605. package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -1
  606. package/lib/esm/appui-react/layout/target/TitleBarTarget.js +1 -1
  607. package/lib/esm/appui-react/layout/target/TitleBarTarget.js.map +1 -1
  608. package/lib/esm/appui-react/layout/widget/Content.d.ts.map +1 -1
  609. package/lib/esm/appui-react/layout/widget/Content.js +5 -5
  610. package/lib/esm/appui-react/layout/widget/Content.js.map +1 -1
  611. package/lib/esm/appui-react/layout/widget/ContentRenderer.js +2 -2
  612. package/lib/esm/appui-react/layout/widget/ContentRenderer.js.map +1 -1
  613. package/lib/esm/appui-react/layout/widget/FloatingTab.js +6 -5
  614. package/lib/esm/appui-react/layout/widget/FloatingTab.js.map +1 -1
  615. package/lib/esm/appui-react/layout/widget/FloatingWidget.js +4 -2
  616. package/lib/esm/appui-react/layout/widget/FloatingWidget.js.map +1 -1
  617. package/lib/esm/appui-react/layout/widget/NavigationArea.scss +4 -1
  618. package/lib/esm/appui-react/layout/widget/PanelWidget.js +1 -1
  619. package/lib/esm/appui-react/layout/widget/PanelWidget.js.map +1 -1
  620. package/lib/esm/appui-react/layout/widget/Tab.js +4 -4
  621. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  622. package/lib/esm/appui-react/layout/widget/ToolsArea.scss +2 -0
  623. package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
  624. package/lib/esm/appui-react/layout/widget/Widget.js +2 -2
  625. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  626. package/lib/esm/appui-react/layout/widget/useIsToolSettingsTab.js +1 -1
  627. package/lib/esm/appui-react/layout/widget/useIsToolSettingsTab.js.map +1 -1
  628. package/lib/esm/appui-react/layout/widget-panels/PanelSections.js +8 -5
  629. package/lib/esm/appui-react/layout/widget-panels/PanelSections.js.map +1 -1
  630. package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.d.ts +1 -1
  631. package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.js +2 -1
  632. package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.js.map +1 -1
  633. package/lib/esm/appui-react/messages/AppNotificationManager.js +1 -1
  634. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  635. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  636. package/lib/esm/appui-react/messages/MessageManager.js +6 -6
  637. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  638. package/lib/esm/appui-react/messages/MessageRenderer.js +17 -11
  639. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  640. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  641. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js +2 -6
  642. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  643. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  644. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +2 -2
  645. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  646. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +0 -1
  647. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  648. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +1 -2
  649. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  650. package/lib/esm/appui-react/pickers/ViewSelector.js +6 -5
  651. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  652. package/lib/esm/appui-react/popup/CardPopup.d.ts +21 -9
  653. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  654. package/lib/esm/appui-react/popup/CardPopup.js +15 -7
  655. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  656. package/lib/esm/appui-react/popup/ComponentPopup.d.ts +18 -0
  657. package/lib/esm/appui-react/popup/ComponentPopup.d.ts.map +1 -0
  658. package/lib/esm/appui-react/popup/ComponentPopup.js +31 -0
  659. package/lib/esm/appui-react/popup/ComponentPopup.js.map +1 -0
  660. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +4 -1
  661. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  662. package/lib/esm/appui-react/popup/HTMLElementPopup.js +1 -0
  663. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  664. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts +4 -4
  665. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  666. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  667. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts +1 -1
  668. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  669. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +19 -12
  670. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  671. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +4 -2
  672. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  673. package/lib/esm/appui-react/popup/KeyinPalettePopup.js +9 -3
  674. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  675. package/lib/esm/appui-react/popup/PopupManager.d.ts +45 -9
  676. package/lib/esm/appui-react/popup/PopupManager.d.ts.map +1 -1
  677. package/lib/esm/appui-react/popup/PopupManager.js +87 -14
  678. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  679. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts +16 -6
  680. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  681. package/lib/esm/appui-react/popup/ToolbarPopup.js +9 -3
  682. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  683. package/lib/esm/appui-react/preview/PreviewFeatures.d.ts +3 -1
  684. package/lib/esm/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
  685. package/lib/esm/appui-react/preview/PreviewFeatures.js +8 -7
  686. package/lib/esm/appui-react/preview/PreviewFeatures.js.map +1 -1
  687. package/lib/esm/appui-react/preview/activate-dropped-tab/activateDroppedTab.d.ts +6 -0
  688. package/lib/esm/appui-react/preview/activate-dropped-tab/activateDroppedTab.d.ts.map +1 -0
  689. package/lib/esm/appui-react/{layout/state → preview/activate-dropped-tab}/activateDroppedTab.js +5 -4
  690. package/lib/esm/appui-react/preview/activate-dropped-tab/activateDroppedTab.js.map +1 -0
  691. package/lib/esm/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.d.ts +6 -0
  692. package/lib/esm/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.d.ts.map +1 -0
  693. package/lib/esm/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.js +14 -0
  694. package/lib/esm/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.js.map +1 -0
  695. package/lib/esm/appui-react/preview/content-always-max-size/useContentAlwaysMaxSize.scss +10 -0
  696. package/lib/esm/appui-react/preview/enable-maximized-widget/useMaximizedWidget.d.ts +7 -7
  697. package/lib/esm/appui-react/preview/enable-maximized-widget/useMaximizedWidget.d.ts.map +1 -1
  698. package/lib/esm/appui-react/preview/enable-maximized-widget/useMaximizedWidget.js +7 -7
  699. package/lib/esm/appui-react/preview/enable-maximized-widget/useMaximizedWidget.js.map +1 -1
  700. package/lib/esm/appui-react/preview/enable-maximized-widget/useMaximizedWidget.scss +6 -6
  701. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +1 -1
  702. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  703. package/lib/esm/appui-react/preview/horizontal-panel-alignment/useHorizontalPanelAlignment.js +1 -1
  704. package/lib/esm/appui-react/preview/horizontal-panel-alignment/useHorizontalPanelAlignment.js.map +1 -1
  705. package/lib/esm/appui-react/preview/horizontal-panel-alignment/useHorizontalPanelAlignment.scss +4 -4
  706. package/lib/esm/appui-react/preview/new-toolbars/ActionItem.d.ts +12 -0
  707. package/lib/esm/appui-react/preview/new-toolbars/ActionItem.d.ts.map +1 -0
  708. package/lib/esm/appui-react/preview/new-toolbars/ActionItem.js +22 -0
  709. package/lib/esm/appui-react/preview/new-toolbars/ActionItem.js.map +1 -0
  710. package/lib/esm/appui-react/preview/new-toolbars/Badge.d.ts +9 -0
  711. package/lib/esm/appui-react/preview/new-toolbars/Badge.d.ts.map +1 -0
  712. package/lib/esm/appui-react/{statusbar/Popup.js → preview/new-toolbars/Badge.js} +8 -8
  713. package/lib/esm/appui-react/preview/new-toolbars/Badge.js.map +1 -0
  714. package/lib/esm/appui-react/preview/new-toolbars/Badge.scss +13 -0
  715. package/lib/esm/appui-react/preview/new-toolbars/CustomItem.d.ts +12 -0
  716. package/lib/esm/appui-react/preview/new-toolbars/CustomItem.d.ts.map +1 -0
  717. package/lib/esm/appui-react/preview/new-toolbars/CustomItem.js +33 -0
  718. package/lib/esm/appui-react/preview/new-toolbars/CustomItem.js.map +1 -0
  719. package/lib/esm/appui-react/preview/new-toolbars/ExpandIndicator.d.ts +5 -0
  720. package/lib/esm/appui-react/preview/new-toolbars/ExpandIndicator.d.ts.map +1 -0
  721. package/lib/esm/appui-react/preview/new-toolbars/ExpandIndicator.js +11 -0
  722. package/lib/esm/appui-react/preview/new-toolbars/ExpandIndicator.js.map +1 -0
  723. package/lib/esm/appui-react/preview/new-toolbars/ExpandIndicator.scss +17 -0
  724. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts +22 -0
  725. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts.map +1 -0
  726. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.js +74 -0
  727. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.js.map +1 -0
  728. package/lib/esm/appui-react/preview/new-toolbars/Item.d.ts +21 -0
  729. package/lib/esm/appui-react/preview/new-toolbars/Item.d.ts.map +1 -0
  730. package/lib/esm/appui-react/preview/new-toolbars/Item.js +49 -0
  731. package/lib/esm/appui-react/preview/new-toolbars/Item.js.map +1 -0
  732. package/lib/esm/appui-react/preview/new-toolbars/OverflowButton.d.ts +17 -0
  733. package/lib/esm/appui-react/preview/new-toolbars/OverflowButton.d.ts.map +1 -0
  734. package/lib/esm/appui-react/preview/new-toolbars/OverflowButton.js +34 -0
  735. package/lib/esm/appui-react/preview/new-toolbars/OverflowButton.js.map +1 -0
  736. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts +18 -0
  737. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -0
  738. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js +81 -0
  739. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -0
  740. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.scss +43 -0
  741. package/lib/esm/appui-react/preview/new-toolbars/Toolbar.d.ts +23 -0
  742. package/lib/esm/appui-react/preview/new-toolbars/Toolbar.d.ts.map +1 -0
  743. package/lib/esm/appui-react/preview/new-toolbars/Toolbar.js +36 -0
  744. package/lib/esm/appui-react/preview/new-toolbars/Toolbar.js.map +1 -0
  745. package/lib/esm/appui-react/preview/new-toolbars/useOverflow.d.ts +9 -0
  746. package/lib/esm/appui-react/preview/new-toolbars/useOverflow.d.ts.map +1 -0
  747. package/lib/esm/appui-react/preview/new-toolbars/useOverflow.js +89 -0
  748. package/lib/esm/appui-react/preview/new-toolbars/useOverflow.js.map +1 -0
  749. package/lib/esm/appui-react/preview/widget-action-dropdown/MoreButton.js +2 -1
  750. package/lib/esm/appui-react/preview/widget-action-dropdown/MoreButton.js.map +1 -1
  751. package/lib/esm/appui-react/redux/FrameworkState.d.ts +1 -1
  752. package/lib/esm/appui-react/redux/SessionState.d.ts +15 -3
  753. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  754. package/lib/esm/appui-react/redux/SessionState.js +8 -1
  755. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  756. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +2 -2
  757. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  758. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  759. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +6 -8
  760. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  761. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  762. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js +7 -7
  763. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  764. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  765. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +40 -46
  766. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  767. package/lib/esm/appui-react/shared/ConditionalValue.d.ts +17 -0
  768. package/lib/esm/appui-react/shared/ConditionalValue.d.ts.map +1 -0
  769. package/lib/esm/appui-react/shared/ConditionalValue.js +13 -0
  770. package/lib/esm/appui-react/shared/ConditionalValue.js.map +1 -0
  771. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +2 -2
  772. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  773. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  774. package/lib/esm/appui-react/shared/ItemProps.d.ts +13 -2
  775. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  776. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  777. package/lib/esm/appui-react/shared/MenuItem.d.ts +21 -2
  778. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  779. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  780. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +23 -3
  781. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -1
  782. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  783. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +7 -4
  784. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  785. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +42 -16
  786. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  787. package/lib/esm/appui-react/statusbar/Indicator.js +2 -1
  788. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  789. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  790. package/lib/esm/appui-react/statusbar/Overflow.js +3 -3
  791. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  792. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +1 -1
  793. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  794. package/lib/esm/appui-react/statusbar/StatusBar.js +6 -4
  795. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  796. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts +2 -2
  797. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  798. package/lib/esm/appui-react/statusbar/StatusBarItem.js.map +1 -1
  799. package/lib/esm/appui-react/statusbar/{Popup.d.ts → popup/Popup.d.ts} +2 -1
  800. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts.map +1 -0
  801. package/lib/esm/appui-react/{layout/footer → statusbar/popup}/Popup.js +8 -9
  802. package/lib/esm/appui-react/statusbar/popup/Popup.js.map +1 -0
  803. package/lib/esm/appui-react/{layout/footer → statusbar/popup}/Popup.scss +1 -7
  804. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  805. package/lib/esm/appui-react/statusfields/ActivityCenter.js +4 -4
  806. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  807. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts +0 -1
  808. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  809. package/lib/esm/appui-react/statusfields/MessageCenter.js +4 -4
  810. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  811. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  812. package/lib/esm/appui-react/statusfields/SectionsField.js +7 -10
  813. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  814. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  815. package/lib/esm/appui-react/statusfields/SelectionScope.js +4 -4
  816. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  817. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  818. package/lib/esm/appui-react/statusfields/SnapMode.js +14 -12
  819. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  820. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +0 -2
  821. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  822. package/lib/esm/appui-react/statusfields/ViewAttributes.js +12 -20
  823. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  824. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  825. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +3 -3
  826. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  827. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  828. package/lib/esm/appui-react/theme/ThemeManager.js +3 -2
  829. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  830. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.d.ts.map +1 -1
  831. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.js +2 -3
  832. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  833. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +4 -3
  834. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  835. package/lib/esm/appui-react/toolbar/Toolbar.js +29 -5
  836. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  837. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts +4 -2
  838. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  839. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +15 -12
  840. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  841. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  842. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +5 -6
  843. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  844. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +2 -2
  845. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  846. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  847. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js +4 -3
  848. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  849. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  850. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +18 -11
  851. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  852. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +2 -3
  853. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  854. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +22 -20
  855. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  856. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +10 -9
  857. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  858. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +2 -1
  859. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  860. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +14 -8
  861. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  862. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +47 -38
  863. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  864. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +100 -141
  865. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  866. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +1 -1
  867. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  868. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +3 -3
  869. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  870. package/lib/esm/appui-react/utils/Placement.d.ts +35 -0
  871. package/lib/esm/appui-react/utils/Placement.d.ts.map +1 -0
  872. package/lib/esm/appui-react/utils/Placement.js +57 -0
  873. package/lib/esm/appui-react/utils/Placement.js.map +1 -0
  874. package/lib/esm/appui-react/utils/PropsHelper.js +4 -4
  875. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  876. package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
  877. package/lib/esm/appui-react/widget-panels/Content.js +12 -11
  878. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  879. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  880. package/lib/esm/appui-react/widget-panels/Frontstage.js +32 -24
  881. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  882. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -1
  883. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  884. package/lib/esm/appui-react/widget-panels/Tab.d.ts +1 -1
  885. package/lib/esm/appui-react/widget-panels/Tab.d.ts.map +1 -1
  886. package/lib/esm/appui-react/widget-panels/Tab.js +3 -5
  887. package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
  888. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts +1 -1
  889. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  890. package/lib/esm/appui-react/widget-panels/ToolSettings.js +53 -66
  891. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  892. package/lib/esm/appui-react/widget-panels/Toolbars.js +3 -2
  893. package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
  894. package/lib/esm/appui-react/widget-panels/Toolbars.scss +3 -1
  895. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  896. package/lib/esm/appui-react/widgets/BackstageAppButton.js +3 -1
  897. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  898. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  899. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +5 -3
  900. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  901. package/lib/esm/appui-react/widgets/Widget.d.ts +2 -2
  902. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  903. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  904. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +8 -3
  905. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  906. package/lib/esm/appui-react/widgets/WidgetDef.js +59 -17
  907. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  908. package/lib/esm/appui-react/widgets/WidgetHost.js +3 -2
  909. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  910. package/lib/esm/appui-react/widgets/useWidget.js +1 -1
  911. package/lib/esm/appui-react/widgets/useWidget.js.map +1 -1
  912. package/lib/esm/appui-react.d.ts +3 -1
  913. package/lib/esm/appui-react.d.ts.map +1 -1
  914. package/lib/esm/appui-react.js +3 -1
  915. package/lib/esm/appui-react.js.map +1 -1
  916. package/lib/public/locales/en/UiFramework.json +7 -1
  917. package/package.json +11 -10
  918. package/lib/cjs/appui-react/layout/footer/Popup.d.ts +0 -12
  919. package/lib/cjs/appui-react/layout/footer/Popup.d.ts.map +0 -1
  920. package/lib/cjs/appui-react/layout/footer/Popup.js.map +0 -1
  921. package/lib/cjs/appui-react/layout/state/activateDroppedTab.d.ts +0 -5
  922. package/lib/cjs/appui-react/layout/state/activateDroppedTab.d.ts.map +0 -1
  923. package/lib/cjs/appui-react/layout/state/activateDroppedTab.js.map +0 -1
  924. package/lib/cjs/appui-react/statusbar/Popup.d.ts.map +0 -1
  925. package/lib/cjs/appui-react/statusbar/Popup.js.map +0 -1
  926. package/lib/esm/appui-react/layout/footer/Popup.d.ts +0 -12
  927. package/lib/esm/appui-react/layout/footer/Popup.d.ts.map +0 -1
  928. package/lib/esm/appui-react/layout/footer/Popup.js.map +0 -1
  929. package/lib/esm/appui-react/layout/state/activateDroppedTab.d.ts +0 -5
  930. package/lib/esm/appui-react/layout/state/activateDroppedTab.d.ts.map +0 -1
  931. package/lib/esm/appui-react/layout/state/activateDroppedTab.js.map +0 -1
  932. package/lib/esm/appui-react/statusbar/Popup.d.ts.map +0 -1
  933. package/lib/esm/appui-react/statusbar/Popup.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ItemDefBase.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemDefBase.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AASH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAcnD;;GAEG;AACH,MAAM,OAAgB,WAAW;IAO/B,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IACD,IAAW,QAAQ,CAAC,CAAU;QAC5B,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACrB,CAAC;IAWM,MAAM,CAAC,aAAa,CAAC,EAAe,EAAE,SAAoB;QAC/D,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACjC,EAAE,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;QAErC,EAAE,CAAC,SAAS;YACV,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;QAClE,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;QAE5E,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QAEnC,IAAI,SAAS,CAAC,eAAe,KAAK,SAAS;YACzC,EAAE,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC;QACjD,IAAI,SAAS,CAAC,QAAQ;YAAE,EA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,CAAC,QAAQ,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,iCAAiC;IACjC,IAAW,WAAW;QACpB,OAAO,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACI,cAAc,CAAC,CAAiD;QACrE,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;IACxB,CAAC;CACF","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 Item\n */\n\nimport type * as React from \"react\";\nimport type {\n BadgeType,\n ConditionalBooleanValue,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport { PropsHelper } from \"../utils/PropsHelper\";\nimport type { ItemProps } from \"./ItemProps\";\nimport type { IconSpec } from \"@itwin/core-react\";\n\n/** Base state for any 'stateful' React component\n * @public\n */\nexport interface BaseItemState {\n isVisible?: boolean; // Default - true\n isEnabled?: boolean; // Default - true\n isActive?: boolean; // Default - false\n isPressed?: boolean; // Default - false\n}\n\n/** The base class for Items.\n * @public\n */\nexport abstract class ItemDefBase {\n private _label: string | StringGetter | ConditionalStringValue = \"\";\n private _tooltip: string | StringGetter | ConditionalStringValue = \"\";\n private _description: string | StringGetter | ConditionalStringValue = \"\";\n\n public isPressed: boolean = false;\n private _isActive: boolean = false;\n public get isActive(): boolean {\n return this._isActive;\n }\n public set isActive(v: boolean) {\n this._isActive = v;\n }\n public applicationData?: any;\n\n public isHidden?: boolean | ConditionalBooleanValue;\n public isDisabled?: boolean | ConditionalBooleanValue;\n\n public badgeType?: BadgeType;\n\n public iconSpec?: IconSpec;\n public iconElement?: React.ReactNode;\n\n public static initializeDef(me: ItemDefBase, itemProps: ItemProps): void {\n me.isHidden = itemProps.isHidden;\n me.isDisabled = itemProps.isDisabled;\n\n me.isPressed =\n itemProps.isPressed !== undefined ? itemProps.isPressed : false;\n me.isActive = itemProps.isActive !== undefined ? itemProps.isActive : false;\n\n me.badgeType = itemProps.badgeType;\n\n if (itemProps.applicationData !== undefined)\n me.applicationData = itemProps.applicationData;\n if (itemProps.iconSpec) me.iconSpec = itemProps.iconSpec;\n if (itemProps.icon) me.iconSpec = itemProps.icon;\n\n me._label = PropsHelper.getStringSpec(itemProps.label, itemProps.labelKey);\n me._tooltip = PropsHelper.getStringSpec(\n itemProps.tooltip,\n itemProps.tooltipKey\n );\n me._description = PropsHelper.getStringSpec(\n itemProps.description,\n itemProps.descriptionKey\n );\n }\n\n constructor(itemProps: ItemProps) {\n ItemDefBase.initializeDef(this, itemProps);\n }\n\n public get trayId() {\n return undefined;\n }\n public abstract get id(): string;\n\n /** Get the label string */\n public get rawLabel(): string | StringGetter | ConditionalStringValue {\n return this._label;\n }\n\n /** Get the label string */\n public get label(): string {\n return PropsHelper.getStringFromSpec(this._label);\n }\n\n /** Set the label.\n * @param v A string or a function to get the string.\n */\n public setLabel(v: string | StringGetter | ConditionalStringValue) {\n this._label = v;\n }\n\n /** Get the tooltip string */\n public get tooltip(): string {\n return PropsHelper.getStringFromSpec(this._tooltip);\n }\n\n /** Set the tooltip.\n * @param v A string or a function to get the string.\n */\n public setTooltip(v: string | StringGetter | ConditionalStringValue) {\n this._tooltip = v;\n }\n\n /** Get the description string */\n public get description(): string {\n return PropsHelper.getStringFromSpec(this._description);\n }\n\n /** Set the description.\n * @param v A string or a function to get the string.\n */\n public setDescription(v: string | StringGetter | ConditionalStringValue) {\n this._description = v;\n }\n}\n"]}
1
+ {"version":3,"file":"ItemDefBase.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemDefBase.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAQH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAcnD;;GAEG;AACH,MAAM,OAAgB,WAAW;IAO/B,IAAW,QAAQ;QACjB,OAAO,IA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M,GAAmD,EAAE,CAAC;QAC5D,aAAQ,GAAmD,EAAE,CAAC;QAC9D,iBAAY,GAAmD,EAAE,CAAC;QAEnE,cAAS,GAAY,KAAK,CAAC;QAC1B,cAAS,GAAY,KAAK,CAAC;QA4CjC,WAAW,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC;IAED,IAAW,MAAM;QACf,OAAO,SAAS,CAAC;IACnB,CAAC;IAGD,2BAA2B;IAC3B,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,2BAA2B;IAC3B,IAAW,KAAK;QACd,OAAO,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,CAAiD;QAC/D,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IAClB,CAAC;IAED,6BAA6B;IAC7B,IAAW,OAAO;QAChB,OAAO,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,UAAU,CAAC,CAAiD;QACjE,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,iCAAiC;IACjC,IAAW,WAAW;QACpB,OAAO,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACI,cAAc,CAAC,CAAiD;QACrE,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;IACxB,CAAC;CACF","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 Item\n */\n\nimport type * as React from \"react\";\nimport type {\n ConditionalBooleanValue,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport { PropsHelper } from \"../utils/PropsHelper\";\nimport type { ItemProps } from \"./ItemProps\";\nimport type { BadgeType, IconSpec } from \"@itwin/core-react\";\n\n/** Base state for any 'stateful' React component\n * @public\n */\nexport interface BaseItemState {\n isVisible?: boolean; // Default - true\n isEnabled?: boolean; // Default - true\n isActive?: boolean; // Default - false\n isPressed?: boolean; // Default - false\n}\n\n/** The base class for Items.\n * @public\n */\nexport abstract class ItemDefBase {\n private _label: string | StringGetter | ConditionalStringValue = \"\";\n private _tooltip: string | StringGetter | ConditionalStringValue = \"\";\n private _description: string | StringGetter | ConditionalStringValue = \"\";\n\n public isPressed: boolean = false;\n private _isActive: boolean = false;\n public get isActive(): boolean {\n return this._isActive;\n }\n public set isActive(v: boolean) {\n this._isActive = v;\n }\n public applicationData?: any;\n\n public isHidden?: boolean | ConditionalBooleanValue;\n public isDisabled?: boolean | ConditionalBooleanValue;\n\n public badgeType?: BadgeType;\n\n public iconSpec?: IconSpec;\n public iconElement?: React.ReactNode;\n\n public static initializeDef(me: ItemDefBase, itemProps: ItemProps): void {\n me.isHidden = itemProps.isHidden;\n me.isDisabled = itemProps.isDisabled;\n\n me.isPressed =\n itemProps.isPressed !== undefined ? itemProps.isPressed : false;\n me.isActive = itemProps.isActive !== undefined ? itemProps.isActive : false;\n\n me.badgeType = itemProps.badgeType;\n\n if (itemProps.applicationData !== undefined)\n me.applicationData = itemProps.applicationData;\n if (itemProps.iconSpec) me.iconSpec = itemProps.iconSpec;\n if (itemProps.icon) me.iconSpec = itemProps.icon;\n\n me._label = PropsHelper.getStringSpec(itemProps.label, itemProps.labelKey);\n me._tooltip = PropsHelper.getStringSpec(\n itemProps.tooltip,\n itemProps.tooltipKey\n );\n me._description = PropsHelper.getStringSpec(\n itemProps.description,\n itemProps.descriptionKey\n );\n }\n\n constructor(itemProps: ItemProps) {\n ItemDefBase.initializeDef(this, itemProps);\n }\n\n public get trayId() {\n return undefined;\n }\n public abstract get id(): string;\n\n /** Get the label string */\n public get rawLabel(): string | StringGetter | ConditionalStringValue {\n return this._label;\n }\n\n /** Get the label string */\n public get label(): string {\n return PropsHelper.getStringFromSpec(this._label);\n }\n\n /** Set the label.\n * @param v A string or a function to get the string.\n */\n public setLabel(v: string | StringGetter | ConditionalStringValue) {\n this._label = v;\n }\n\n /** Get the tooltip string */\n public get tooltip(): string {\n return PropsHelper.getStringFromSpec(this._tooltip);\n }\n\n /** Set the tooltip.\n * @param v A string or a function to get the string.\n */\n public setTooltip(v: string | StringGetter | ConditionalStringValue) {\n this._tooltip = v;\n }\n\n /** Get the description string */\n public get description(): string {\n return PropsHelper.getStringFromSpec(this._description);\n }\n\n /** Set the description.\n * @param v A string or a function to get the string.\n */\n public setDescription(v: string | StringGetter | ConditionalStringValue) {\n this._description = v;\n }\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  /** @packageDocumentation
2
2
  * @module Item
3
3
  */
4
- import type { BadgeType, CommandHandler, ConditionalBooleanValue, ConditionalStringValue, StringGetter } from "@itwin/appui-abstract";
5
- import type { IconProps, IconSpec } from "@itwin/core-react";
4
+ import type { ConditionalBooleanValue, ConditionalStringValue, StringGetter } from "@itwin/appui-abstract";
5
+ import type { BadgeType, IconProps, IconSpec } from "@itwin/core-react";
6
6
  /** Definition that specifies properties shared between many ConfigurableUi components.
7
7
  * @public
8
8
  */
@@ -46,4 +46,15 @@ export interface ToolItemProps extends ItemProps, CommandHandler {
46
46
  export interface CommandItemProps extends ItemProps, CommandHandler {
47
47
  commandId?: string;
48
48
  }
49
+ /** Definition for a command handler.
50
+ * @public
51
+ */
52
+ export interface CommandHandler {
53
+ /** Function to execute */
54
+ execute?: (args?: any) => any;
55
+ /** Parameters passed to the function */
56
+ parameters?: any;
57
+ /** Function to get the parameters passed to the function */
58
+ getCommandArgs?: () => any[];
59
+ }
49
60
  //# sourceMappingURL=ItemProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemProps.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemProps.ts"],"names":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;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,SAAS,EAAE,cAAc;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,0BAA0B;IAC1B,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,wCAAwC;IACxC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,MAAM,GAAG,EAAE,CAAC;CAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"ItemProps.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemProps.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","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 Item\n */\n\nimport type {\n BadgeType,\n CommandHandler,\n ConditionalBooleanValue,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport type { IconProps, IconSpec } from \"@itwin/core-react\";\n\n/** Definition that specifies properties shared between many ConfigurableUi components.\n * @public\n */\nexport interface ItemProps extends IconProps {\n /** if true component will be hidden - defaults to false */\n isHidden?: boolean | ConditionalBooleanValue;\n /** if true component will be disabled - defaults to false */\n isDisabled?: boolean | ConditionalBooleanValue;\n /** if set, component will be considered \"active\" an will display an \"active stripe\" - defaults to false */\n isActive?: boolean;\n /** if set, component will be considered selected but will NOT display an \"active stripe\" - defaults to false. Typically used by buttons that toggle between two states. */\n isPressed?: boolean;\n /** can be used by application to store miscellaneous data. */\n applicationData?: any;\n /** Badge to be overlaid on the item. */\n badgeType?: BadgeType;\n /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */\n icon?: IconSpec;\n\n /** if set, it is used to explicitly set the label shown by a component. */\n label?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n labelKey?: string;\n\n /** if set, it is used to explicitly set the description shown by a component. */\n description?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */\n descriptionKey?: string;\n /** used to explicitly set the tooltip shown by a component. */\n tooltip?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n tooltipKey?: string;\n}\n\n/** Properties for a Tool item with a tool id.\n * @public\n */\nexport interface ToolItemProps extends ItemProps, CommandHandler {\n toolId: string;\n}\n\n/** Properties for a Command item.\n * @public\n */\nexport interface CommandItemProps extends ItemProps, CommandHandler {\n commandId?: string;\n}\n"]}
1
+ {"version":3,"file":"ItemProps.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemProps.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","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 Item\n */\n\nimport type {\n ConditionalBooleanValue,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport type { BadgeType, IconProps, IconSpec } from \"@itwin/core-react\";\n/** Definition that specifies properties shared between many ConfigurableUi components.\n * @public\n */\nexport interface ItemProps extends IconProps {\n /** if true component will be hidden - defaults to false */\n isHidden?: boolean | ConditionalBooleanValue;\n /** if true component will be disabled - defaults to false */\n isDisabled?: boolean | ConditionalBooleanValue;\n /** if set, component will be considered \"active\" an will display an \"active stripe\" - defaults to false */\n isActive?: boolean;\n /** if set, component will be considered selected but will NOT display an \"active stripe\" - defaults to false. Typically used by buttons that toggle between two states. */\n isPressed?: boolean;\n /** can be used by application to store miscellaneous data. */\n applicationData?: any;\n /** Badge to be overlaid on the item. */\n badgeType?: BadgeType;\n /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */\n icon?: IconSpec;\n\n /** if set, it is used to explicitly set the label shown by a component. */\n label?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n labelKey?: string;\n\n /** if set, it is used to explicitly set the description shown by a component. */\n description?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */\n descriptionKey?: string;\n /** used to explicitly set the tooltip shown by a component. */\n tooltip?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n tooltipKey?: string;\n}\n\n/** Properties for a Tool item with a tool id.\n * @public\n */\nexport interface ToolItemProps extends ItemProps, CommandHandler {\n toolId: string;\n}\n\n/** Properties for a Command item.\n * @public\n */\nexport interface CommandItemProps extends ItemProps, CommandHandler {\n commandId?: string;\n}\n\n/** Definition for a command handler.\n * @public\n */\nexport interface CommandHandler {\n /** Function to execute */\n execute?: (args?: any) => any;\n /** Parameters passed to the function */\n parameters?: any;\n /** Function to get the parameters passed to the function */\n getCommandArgs?: () => any[];\n}\n"]}
@@ -6,10 +6,29 @@ import type { AbstractMenuItemProps } from "@itwin/appui-abstract";
6
6
  import type { IconSpec } from "@itwin/core-react";
7
7
  import type { ActionButtonItemDef } from "./ActionButtonItemDef";
8
8
  import { ItemDefBase } from "./ItemDefBase";
9
+ import type { CommandItemProps, ItemProps } from "./ItemProps";
10
+ import type { ConditionalStringValue } from "./ConditionalValue";
9
11
  /** Menu Item Properties
10
12
  * @public
13
+ * @deprecated in 4.11.x. Please use {@link CursorMenuItemProps}.
11
14
  */
12
15
  export type MenuItemProps = AbstractMenuItemProps;
16
+ /**
17
+ * Properties for context menu items.
18
+ * @public
19
+ */
20
+ export interface CursorMenuItemProps extends ItemProps {
21
+ /** The id for the menu item. */
22
+ id: string;
23
+ /** The item to execute when this item is invoked. Either 'item' or 'submenu' must be specified. */
24
+ item?: CommandItemProps;
25
+ /** Nested array of item props. Either 'item' or 'submenu' must be specified. */
26
+ submenu?: CursorMenuItemProps[];
27
+ /** Icon to display on right side of the menu item.
28
+ * Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id.
29
+ */
30
+ iconRight?: string | ConditionalStringValue;
31
+ }
13
32
  /** Menu Item
14
33
  * @alpha
15
34
  */
@@ -19,7 +38,7 @@ export declare class MenuItem extends ItemDefBase {
19
38
  private _submenu;
20
39
  private _onSelection?;
21
40
  /** onSelection is an optional parameter typically supplied to allow menu parent to close context menu when a menu item is selected. */
22
- constructor(props: MenuItemProps, onSelection?: () => void);
41
+ constructor(props: CursorMenuItemProps, onSelection?: () => void);
23
42
  get id(): string;
24
43
  get submenu(): MenuItem[];
25
44
  get actionItem(): ActionButtonItemDef | undefined;
@@ -30,7 +49,7 @@ export declare class MenuItem extends ItemDefBase {
30
49
  * @alpha
31
50
  */
32
51
  export declare class MenuItemHelpers {
33
- static createMenuItems(itemPropsList: MenuItemProps[], onSelection?: () => void): MenuItem[];
52
+ static createMenuItems(itemPropsList: CursorMenuItemProps[], onSelection?: () => void): MenuItem[];
34
53
  static createMenuItemNodes(itemList: MenuItem[]): React.ReactNode[];
35
54
  private static createMenuItemNode;
36
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/MenuItem.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5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C,CAAC;gBAErD,IAAI,GAAG,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,IAEnB,KAAK,CACS,CAClB,CAAC;aACH;SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF","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 Item\n */\n\nimport * as React from \"react\";\nimport type { AbstractMenuItemProps } from \"@itwin/appui-abstract\";\nimport { ConditionalBooleanValue, UiError } from \"@itwin/appui-abstract\";\nimport type { IconSpec } from \"@itwin/core-react\";\nimport { ContextMenuItem, ContextSubMenu } from \"@itwin/core-react\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport { CommandItemDef } from \"./CommandItemDef\";\nimport { ItemDefBase } from \"./ItemDefBase\";\n\n/** Menu Item Properties\n * @public\n */\nexport type MenuItemProps = AbstractMenuItemProps;\n\n/** Menu Item\n * @alpha\n */\nexport class MenuItem extends ItemDefBase {\n private _id = \"\";\n private _actionItem?: ActionButtonItemDef;\n private _submenu: MenuItem[];\n private _onSelection?: () => void;\n\n /** onSelection is an optional parameter typically supplied to allow menu parent to close context menu when a menu item is selected. */\n constructor(props: MenuItemProps, onSelection?: () => void) {\n super(props);\n\n this._id = props.id;\n this._submenu = new Array<MenuItem>();\n this._onSelection = onSelection;\n\n if (props.item) {\n this._actionItem = new CommandItemDef(props.item);\n\n // Copy over icon, label & badgeType from the item\n if (!this.iconSpec) this.iconSpec = this._actionItem.iconSpec;\n if (!this.label) this.setLabel(this._actionItem.label);\n if (!this.badgeType) this.badgeType = this._actionItem.badgeType;\n if (!this.isDisabled) this.isDisabled = this._actionItem.isDisabled;\n } else if (props.submenu) {\n props.submenu.forEach((childProps: MenuItemProps) => {\n const childItem = new MenuItem(childProps, onSelection);\n this._submenu.push(childItem);\n });\n } else {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Either 'item' or 'submenu' must be specified for '${props.id}'.`\n );\n }\n\n this.iconRightSpec = props.iconRight;\n }\n\n public get id(): string {\n return this._id;\n }\n\n public get submenu(): MenuItem[] {\n return this._submenu;\n }\n\n public get actionItem(): ActionButtonItemDef | undefined {\n return this._actionItem;\n }\n\n public iconRightSpec?: IconSpec;\n\n public itemPicked(): void {\n setTimeout(() => {\n // istanbul ignore else\n if (this._actionItem) this._actionItem.execute();\n });\n\n // istanbul ignore else\n if (this._onSelection) this._onSelection();\n }\n}\n\n/** Menu Item helper methods\n * @alpha\n */\nexport class MenuItemHelpers {\n public static createMenuItems(\n itemPropsList: MenuItemProps[],\n onSelection?: () => void\n ): MenuItem[] {\n const menuItems = new Array<MenuItem>();\n itemPropsList.forEach((itemProps: MenuItemProps) => {\n menuItems.push(new MenuItem(itemProps, onSelection));\n });\n return menuItems;\n }\n\n public static createMenuItemNodes(itemList: MenuItem[]): React.ReactNode[] {\n const itemNodes: React.ReactNode[] = [];\n\n itemList.forEach((item: MenuItem, index: number) => {\n const reactItem = this.createMenuItemNode(item, index);\n // istanbul ignore else\n if (reactItem) itemNodes.push(reactItem);\n });\n\n return itemNodes;\n }\n\n private static createMenuItemNode(\n item: MenuItem,\n index: number\n ): React.ReactNode {\n let node: React.ReactNode = null;\n const label = item.label;\n const iconSpec = item.iconSpec;\n const iconRightSpec = item.iconRightSpec;\n const badgeType = item.badgeType;\n const isDisabled: boolean = ConditionalBooleanValue.getValue(\n item.isDisabled\n );\n\n if (item.actionItem) {\n const sel = () => item.itemPicked();\n node = (\n <ContextMenuItem\n key={index}\n onSelect={sel}\n icon={iconSpec}\n iconRight={iconRightSpec}\n badgeType={badgeType}\n disabled={isDisabled}\n >\n {label}\n </ContextMenuItem>\n );\n } else {\n // istanbul ignore else\n if (item.submenu && item.submenu.length > 0) {\n const items = this.createMenuItemNodes(item.submenu);\n\n node = (\n <ContextSubMenu\n key={index}\n icon={iconSpec}\n label={label}\n badgeType={badgeType}\n disabled={isDisabled}\n >\n {items}\n </ContextSubMenu>\n );\n }\n }\n\n return node;\n }\n}\n"]}
1
+ {"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/MenuItem.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA2B5C;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IAMvC,uIAAuI;IACvI,YAAY,KAA0B,EAAE,WAAwB;QAC9D,KAAK,CAAC,KAAK,CAAC,CAAC;QAPP,QAAG,GAAG,EAAE,CAAC;QASf,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,EAAE,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,KAAK,EAAY,CAAC;QACtC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAEhC,IAAI,KAAK,CAAC,IAAI,EAAE;YACd,IAAI,CAAC,WAAW,GAAG,IAAI,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAElD,kDAAkD;YAClD,IAAI,CAAC,IAAI,CAAC,QAAQ;gBAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9D,IAAI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,EAAE,KAAK,EACV,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,aAAa,EACxB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,IAEnB,KAAK,CACU,CACnB,CAAC;SACH;aAAM;YACL,uBAAuB;YACvB,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC3C,MAAM,KAAK,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAErD,IAAI,GAAG,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,IAEnB,KAAK,CACS,CAClB,CAAC;aACH;SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF","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 Item\n */\n\nimport * as React from \"react\";\nimport type { AbstractMenuItemProps } from \"@itwin/appui-abstract\";\nimport { ConditionalBooleanValue, UiError } from \"@itwin/appui-abstract\";\nimport type { IconSpec } from \"@itwin/core-react\";\nimport { ContextMenuItem, ContextSubMenu } from \"@itwin/core-react\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport { CommandItemDef } from \"./CommandItemDef\";\nimport { ItemDefBase } from \"./ItemDefBase\";\nimport type { CommandItemProps, ItemProps } from \"./ItemProps\";\nimport type { ConditionalStringValue } from \"./ConditionalValue\";\n\n/** Menu Item Properties\n * @public\n * @deprecated in 4.11.x. Please use {@link CursorMenuItemProps}.\n */\nexport type MenuItemProps = AbstractMenuItemProps;\n\n/**\n * Properties for context menu items.\n * @public\n */\nexport interface CursorMenuItemProps extends ItemProps {\n /** The id for the menu item. */\n id: string;\n /** The item to execute when this item is invoked. Either 'item' or 'submenu' must be specified. */\n item?: CommandItemProps;\n /** Nested array of item props. Either 'item' or 'submenu' must be specified. */\n submenu?: CursorMenuItemProps[];\n /** Icon to display on right side of the menu item.\n * Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id.\n */\n iconRight?: string | ConditionalStringValue;\n}\n\n/** Menu Item\n * @alpha\n */\nexport class MenuItem extends ItemDefBase {\n private _id = \"\";\n private _actionItem?: ActionButtonItemDef;\n private _submenu: MenuItem[];\n private _onSelection?: () => void;\n\n /** onSelection is an optional parameter typically supplied to allow menu parent to close context menu when a menu item is selected. */\n constructor(props: CursorMenuItemProps, onSelection?: () => void) {\n super(props);\n\n this._id = props.id;\n this._submenu = new Array<MenuItem>();\n this._onSelection = onSelection;\n\n if (props.item) {\n this._actionItem = new CommandItemDef(props.item);\n\n // Copy over icon, label & badgeType from the item\n if (!this.iconSpec) this.iconSpec = this._actionItem.iconSpec;\n if (!this.label) this.setLabel(this._actionItem.label);\n if (!this.badgeType) this.badgeType = this._actionItem.badgeType;\n if (!this.isDisabled) this.isDisabled = this._actionItem.isDisabled;\n } else if (props.submenu) {\n props.submenu.forEach((childProps: CursorMenuItemProps) => {\n const childItem = new MenuItem(childProps, onSelection);\n this._submenu.push(childItem);\n });\n } else {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Either 'item' or 'submenu' must be specified for '${props.id}'.`\n );\n }\n\n this.iconRightSpec = props.iconRight;\n }\n\n public get id(): string {\n return this._id;\n }\n\n public get submenu(): MenuItem[] {\n return this._submenu;\n }\n\n public get actionItem(): ActionButtonItemDef | undefined {\n return this._actionItem;\n }\n\n public iconRightSpec?: IconSpec;\n\n public itemPicked(): void {\n setTimeout(() => {\n // istanbul ignore else\n if (this._actionItem) this._actionItem.execute();\n });\n\n // istanbul ignore else\n if (this._onSelection) this._onSelection();\n }\n}\n\n/** Menu Item helper methods\n * @alpha\n */\nexport class MenuItemHelpers {\n public static createMenuItems(\n itemPropsList: CursorMenuItemProps[],\n onSelection?: () => void\n ): MenuItem[] {\n const menuItems = new Array<MenuItem>();\n itemPropsList.forEach((itemProps: CursorMenuItemProps) => {\n menuItems.push(new MenuItem(itemProps, onSelection));\n });\n return menuItems;\n }\n\n public static createMenuItemNodes(itemList: MenuItem[]): React.ReactNode[] {\n const itemNodes: React.ReactNode[] = [];\n\n itemList.forEach((item: MenuItem, index: number) => {\n const reactItem = this.createMenuItemNode(item, index);\n // istanbul ignore else\n if (reactItem) itemNodes.push(reactItem);\n });\n\n return itemNodes;\n }\n\n private static createMenuItemNode(\n item: MenuItem,\n index: number\n ): React.ReactNode {\n let node: React.ReactNode = null;\n const label = item.label;\n const iconSpec = item.iconSpec;\n const iconRightSpec = item.iconRightSpec;\n const badgeType = item.badgeType;\n const isDisabled: boolean = ConditionalBooleanValue.getValue(\n item.isDisabled\n );\n\n if (item.actionItem) {\n const sel = () => item.itemPicked();\n node = (\n <ContextMenuItem\n key={index}\n onSelect={sel}\n icon={iconSpec}\n iconRight={iconRightSpec}\n badgeType={badgeType}\n disabled={isDisabled}\n >\n {label}\n </ContextMenuItem>\n );\n } else {\n // istanbul ignore else\n if (item.submenu && item.submenu.length > 0) {\n const items = this.createMenuItemNodes(item.submenu);\n\n node = (\n <ContextSubMenu\n key={index}\n icon={iconSpec}\n label={label}\n badgeType={badgeType}\n disabled={isDisabled}\n >\n {items}\n </ContextSubMenu>\n );\n }\n }\n\n return node;\n }\n}\n"]}
@@ -9,16 +9,28 @@ import type { StagePanelState } from "./StagePanelState";
9
9
  export interface StagePanelConfig {
10
10
  /** Default Panel state. Controls how the panel is initially displayed. Defaults to StagePanelState.Open. */
11
11
  readonly defaultState?: StagePanelState;
12
- /** Maximum size of the panel. */
12
+ /** Maximum size of the panel.
13
+ * @deprecated in 4.12.x. Please use {@link StagePanelConfig.maxSizeSpec}.
14
+ */
13
15
  readonly maxSize?: StagePanelMaxSizeSpec;
14
- /** Minimum size of the panel. */
16
+ /** Maximum size of the panel. */
17
+ readonly maxSizeSpec?: StagePanelSizeSpec;
18
+ /** Minimum size of the panel.
19
+ * @deprecated in 4.12.x. Please use {@link StagePanelConfig.minSizeSpec}.
20
+ */
15
21
  readonly minSize?: number;
22
+ /** Minimum size of the panel. */
23
+ readonly minSizeSpec?: StagePanelSizeSpec;
16
24
  /** Indicates whether the panel is pinned. Defaults to true. */
17
25
  readonly pinned?: boolean;
18
26
  /** Indicates whether the panel is resizable. Defaults to true. */
19
27
  readonly resizable?: boolean;
20
- /** Default size of the panel. */
28
+ /** Default size of the panel.
29
+ * @deprecated in 4.12.x. Please use {@link StagePanelConfig.sizeSpec}.
30
+ */
21
31
  readonly size?: number;
32
+ /** Default size of the panel. */
33
+ readonly sizeSpec?: StagePanelSizeSpec;
22
34
  /** Configuration of the panel sections. */
23
35
  readonly sections?: StagePanelSectionsConfig;
24
36
  }
@@ -38,8 +50,16 @@ export interface StagePanelSectionsConfig {
38
50
  /** Available units of panel max size. Pixels or percentage of App size.
39
51
  * @note Percentage of App `height` is used for top/bottom panel and percentage of App `width` is used for left/right panel.
40
52
  * @public
53
+ * @deprecated in 4.12.x. Please use {@link StagePanelSizeSpec}.
41
54
  */
42
55
  export type StagePanelMaxSizeSpec = number | {
43
56
  percentage: number;
44
57
  };
58
+ /** Available units of panel size - pixels or percentage of app size.
59
+ * @note Percentage of App `height` is used for top/bottom panel and percentage of app `width` is used for left/right panel.
60
+ * @public
61
+ */
62
+ export type StagePanelSizeSpec = number | {
63
+ percentage: number;
64
+ };
45
65
  //# sourceMappingURL=StagePanelConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelConfig.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelConfig.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,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ChG;;GAEG","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 Frontstage\n */\n\nimport type { WidgetConfig } from \"../widgets/WidgetConfig\";\nimport type { StagePanelState } from \"./StagePanelState\";\n\n/** Configuration from which a stage panel is created.\n * @public\n */\nexport interface StagePanelConfig {\n /** Default Panel state. Controls how the panel is initially displayed. Defaults to StagePanelState.Open. */\n readonly defaultState?: StagePanelState;\n /** Maximum size of the panel. */\n readonly maxSize?: StagePanelMaxSizeSpec;\n /** Minimum size of the panel. */\n readonly minSize?: number;\n /** Indicates whether the panel is pinned. Defaults to true. */\n readonly pinned?: boolean;\n /** Indicates whether the panel is resizable. Defaults to true. */\n readonly resizable?: boolean;\n /** Default size of the panel. */\n readonly size?: number;\n /** Configuration of the panel sections. */\n readonly sections?: StagePanelSectionsConfig;\n}\n\n/** Configuration from which a stage panel section is created.\n * @public\n */\nexport type StagePanelSectionConfig = ReadonlyArray<WidgetConfig>;\n\n/** Configuration from which stage panel sections are created.\n * @public\n */\nexport interface StagePanelSectionsConfig {\n /** Configuration of the `start` section. */\n readonly start?: StagePanelSectionConfig;\n /** Configuration of the `end` section. */\n readonly end?: StagePanelSectionConfig;\n}\n\n/** Available units of panel max size. Pixels or percentage of App size.\n * @note Percentage of App `height` is used for top/bottom panel and percentage of App `width` is used for left/right panel.\n * @public\n */\nexport type StagePanelMaxSizeSpec = number | { percentage: number };\n"]}
1
+ {"version":3,"file":"StagePanelConfig.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelConfig.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","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 Frontstage\n */\n\nimport type { WidgetConfig } from \"../widgets/WidgetConfig\";\nimport type { StagePanelState } from \"./StagePanelState\";\n\n/** Configuration from which a stage panel is created.\n * @public\n */\nexport interface StagePanelConfig {\n /** Default Panel state. Controls how the panel is initially displayed. Defaults to StagePanelState.Open. */\n readonly defaultState?: StagePanelState;\n /** Maximum size of the panel.\n * @deprecated in 4.12.x. Please use {@link StagePanelConfig.maxSizeSpec}.\n */\n readonly maxSize?: StagePanelMaxSizeSpec; // eslint-disable-line deprecation/deprecation\n /** Maximum size of the panel. */\n readonly maxSizeSpec?: StagePanelSizeSpec;\n /** Minimum size of the panel.\n * @deprecated in 4.12.x. Please use {@link StagePanelConfig.minSizeSpec}.\n */\n readonly minSize?: number;\n /** Minimum size of the panel. */\n readonly minSizeSpec?: StagePanelSizeSpec;\n /** Indicates whether the panel is pinned. Defaults to true. */\n readonly pinned?: boolean;\n /** Indicates whether the panel is resizable. Defaults to true. */\n readonly resizable?: boolean;\n /** Default size of the panel.\n * @deprecated in 4.12.x. Please use {@link StagePanelConfig.sizeSpec}.\n */\n readonly size?: number;\n /** Default size of the panel. */\n readonly sizeSpec?: StagePanelSizeSpec;\n /** Configuration of the panel sections. */\n readonly sections?: StagePanelSectionsConfig;\n}\n\n/** Configuration from which a stage panel section is created.\n * @public\n */\nexport type StagePanelSectionConfig = ReadonlyArray<WidgetConfig>;\n\n/** Configuration from which stage panel sections are created.\n * @public\n */\nexport interface StagePanelSectionsConfig {\n /** Configuration of the `start` section. */\n readonly start?: StagePanelSectionConfig;\n /** Configuration of the `end` section. */\n readonly end?: StagePanelSectionConfig;\n}\n\n/** Available units of panel max size. Pixels or percentage of App size.\n * @note Percentage of App `height` is used for top/bottom panel and percentage of App `width` is used for left/right panel.\n * @public\n * @deprecated in 4.12.x. Please use {@link StagePanelSizeSpec}.\n */\nexport type StagePanelMaxSizeSpec = number | { percentage: number };\n\n/** Available units of panel size - pixels or percentage of app size.\n * @note Percentage of App `height` is used for top/bottom panel and percentage of app `width` is used for left/right panel.\n * @public\n */\nexport type StagePanelSizeSpec = number | { percentage: number };\n"]}
@@ -6,7 +6,7 @@ import type { NineZoneState } from "../layout/state/NineZoneState";
6
6
  import type { PanelSide } from "../layout/widget-panels/PanelTypes";
7
7
  import { WidgetDef } from "../widgets/WidgetDef";
8
8
  import { WidgetHost } from "../widgets/WidgetHost";
9
- import type { StagePanelConfig, StagePanelSectionConfig } from "./StagePanelConfig";
9
+ import type { StagePanelConfig, StagePanelSectionConfig, StagePanelSizeSpec } from "./StagePanelConfig";
10
10
  import { StagePanelLocation } from "./StagePanelLocation";
11
11
  import { StagePanelSection } from "./StagePanelSection";
12
12
  import { StagePanelState } from "./StagePanelState";
@@ -54,9 +54,14 @@ export declare class StagePanelDef extends WidgetHost {
54
54
  initializeFromConfig(config: StagePanelConfig | undefined, location: StagePanelLocation): void;
55
55
  /** @internal */
56
56
  get initialConfig(): StagePanelConfig | undefined;
57
- /** Current size of the panel */
57
+ /** Current size of the panel.
58
+ * @deprecated in 4.12.x. Use {@link StagePanelDef.sizeSpec} instead.
59
+ */
58
60
  get size(): number | undefined;
59
61
  set size(size: number | undefined);
62
+ /** Current size of the panel */
63
+ get sizeSpec(): StagePanelSizeSpec | undefined;
64
+ set sizeSpec(size: StagePanelSizeSpec | undefined);
60
65
  /** @internal */
61
66
  handleSizeChanged(size: number | undefined): void;
62
67
  /** Indicates whether the panel is resizable. */
@@ -76,8 +81,6 @@ export declare class StagePanelDef extends WidgetHost {
76
81
  /** @internal */
77
82
  get defaultState(): StagePanelState;
78
83
  /** @internal */
79
- get defaultSize(): number | undefined;
80
- /** @internal */
81
84
  get defaultPinned(): boolean;
82
85
  /** @internal */
83
86
  get defaultResizable(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,E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B,IAAW,QAAQ,IAAI,kBAAkB,CAExC;IAED,gDAAgD;IAChD,IAAW,UAAU,IAAI,eAAe,CAMvC;IAED,IAAW,UAAU,CAAC,UAAU,EAAE,eAAe,EAWhD;IAED,gBAAgB;IACT,uBAAuB,CAAC,UAAU,EAAE,eAAe;IAO1D,gBAAgB;IAChB,IAAW,YAAY,oBAGtB;IAED,gBAAgB;IAChB,IAAW,aAAa,YAEvB;IAED,gBAAgB;IAChB,IAAW,gBAAgB,YAE1B;IAED,gCAAgC;IAChC,IAAoB,UAAU,IAAI,aAAa,CAAC,SAAS,CAAC,CAMzD;IAED,gBAAgB;IACA,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,kBAAkB,EAC5B,QAAQ,EAAE,iBAAiB,GAAG,SAAS,EACvC,kBAAkB,EAAE,SAAS,EAAE;IAkBjC,gBAAgB;IACT,kBAAkB,CAAC,OAAO,EAAE,iBAAiB;CAUrD;AAED,gBAAgB;AAChB,qBAAa,oBAAqB,SAAQ,UAAU;IAClD,gBAAgB;IACT,oBAAoB,CAAC,MAAM,EAAE,uBAAuB,GAAG,SAAS;CAMxE;AAED,gBAAgB;AAChB,wBAAgB,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAWnE;AAED,gBAAgB;AAChB,eAAO,MAAM,cAAc,EAAE,CAC3B,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,OAAO,KACZ,aAKJ,CAAC;AAEF,gBAAgB;AAChB,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,oDAGlE"}
@@ -44,21 +44,26 @@ export class StagePanelDef extends WidgetHost {
44
44
  }
45
45
  /** @internal */
46
46
  initializeFromConfig(config, location) {
47
+ var _a, _b;
47
48
  this._location = location;
48
49
  this._initialConfig = config;
49
- this._start.initializeFromConfig(config?.sections?.start);
50
- this._end.initializeFromConfig(config?.sections?.end);
50
+ this._start.initializeFromConfig((_a = config === null || config === void 0 ? void 0 : config.sections) === null || _a === void 0 ? void 0 : _a.start);
51
+ this._end.initializeFromConfig((_b = config === null || config === void 0 ? void 0 : config.sections) === null || _b === void 0 ? void 0 : _b.end);
51
52
  }
52
53
  /** @internal */
53
54
  get initialConfig() {
54
55
  return this._initialConfig;
55
56
  }
56
- /** Current size of the panel */
57
+ /** Current size of the panel.
58
+ * @deprecated in 4.12.x. Use {@link StagePanelDef.sizeSpec} instead.
59
+ */
57
60
  get size() {
61
+ var _a;
58
62
  const frontstageDef = UiFramework.frontstages.activeFrontstageDef;
59
- const state = frontstageDef?.nineZoneState;
63
+ const state = frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.nineZoneState;
64
+ // eslint-disable-next-line deprecation/deprecation
60
65
  if (!state)
61
- return this.defaultSize;
66
+ return (_a = this.initialConfig) === null || _a === void 0 ? void 0 : _a.size;
62
67
  const side = toPanelSide(this.location);
63
68
  const panel = state.panels[side];
64
69
  return panel.size;
@@ -74,6 +79,28 @@ export class StagePanelDef extends WidgetHost {
74
79
  size,
75
80
  });
76
81
  }
82
+ /** Current size of the panel */
83
+ get sizeSpec() {
84
+ var _a;
85
+ const frontstageDef = UiFramework.frontstages.activeFrontstageDef;
86
+ const state = frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.nineZoneState;
87
+ if (!state)
88
+ return (_a = this.initialConfig) === null || _a === void 0 ? void 0 : _a.sizeSpec;
89
+ const side = toPanelSide(this.location);
90
+ const panel = state.panels[side];
91
+ return panel.size;
92
+ }
93
+ set sizeSpec(size) {
94
+ const frontstageDef = UiFramework.frontstages.activeFrontstageDef;
95
+ if (!frontstageDef)
96
+ return;
97
+ const side = toPanelSide(this.location);
98
+ frontstageDef.dispatch({
99
+ type: "PANEL_SET_SIZE",
100
+ side,
101
+ size,
102
+ });
103
+ }
77
104
  /** @internal */
78
105
  handleSizeChanged(size) {
79
106
  InternalFrontstageManager.onPanelSizeChangedEvent.emit({
@@ -88,7 +115,7 @@ export class StagePanelDef extends WidgetHost {
88
115
  /** Indicates whether the panel is pinned. */
89
116
  get pinned() {
90
117
  const frontstageDef = UiFramework.frontstages.activeFrontstageDef;
91
- const state = frontstageDef?.nineZoneState;
118
+ const state = frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.nineZoneState;
92
119
  if (!state)
93
120
  return this.defaultPinned;
94
121
  const side = toPanelSide(this.location);
@@ -120,7 +147,7 @@ export class StagePanelDef extends WidgetHost {
120
147
  /** Panel state. Defaults to PanelState.Open. */
121
148
  get panelState() {
122
149
  const frontstageDef = UiFramework.frontstages.activeFrontstageDef;
123
- const state = frontstageDef?.nineZoneState;
150
+ const state = frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.nineZoneState;
124
151
  if (!state)
125
152
  return this.defaultState;
126
153
  const side = toPanelSide(this.location);
@@ -147,20 +174,19 @@ export class StagePanelDef extends WidgetHost {
147
174
  }
148
175
  /** @internal */
149
176
  get defaultState() {
150
- const defaultState = this._initialConfig?.defaultState;
151
- return defaultState ?? StagePanelState.Open;
152
- }
153
- /** @internal */
154
- get defaultSize() {
155
- return this._initialConfig?.size;
177
+ var _a;
178
+ const defaultState = (_a = this._initialConfig) === null || _a === void 0 ? void 0 : _a.defaultState;
179
+ return defaultState !== null && defaultState !== void 0 ? defaultState : StagePanelState.Open;
156
180
  }
157
181
  /** @internal */
158
182
  get defaultPinned() {
159
- return this._initialConfig?.pinned ?? true;
183
+ var _a, _b;
184
+ return (_b = (_a = this._initialConfig) === null || _a === void 0 ? void 0 : _a.pinned) !== null && _b !== void 0 ? _b : true;
160
185
  }
161
186
  /** @internal */
162
187
  get defaultResizable() {
163
- return this._initialConfig?.resizable ?? true;
188
+ var _a, _b;
189
+ return (_b = (_a = this._initialConfig) === null || _a === void 0 ? void 0 : _a.resizable) !== null && _b !== void 0 ? _b : true;
164
190
  }
165
191
  /** Gets the list of Widgets. */
166
192
  get widgetDefs() {
@@ -191,7 +217,7 @@ export class StagePanelDef extends WidgetHost {
191
217
  export class StagePanelSectionDef extends WidgetHost {
192
218
  /** @internal */
193
219
  initializeFromConfig(config) {
194
- config?.forEach((widgetConfig) => {
220
+ config === null || config === void 0 ? void 0 : config.forEach((widgetConfig) => {
195
221
  const widgetDef = WidgetDef.create(widgetConfig);
196
222
  this.addWidgetDef(widgetDef);
197
223
  });
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelDef.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelDef.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAGpF,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUpD;;GAEG;AACH,mDAAmD;AACnD,MAAM,OAAO,sBAAuB,SAAQ,OAAmC;CAAG;AAQlF,gBAAgB;AAChB,mDAAmD;AACnD,MAAM,OAAO,qBAAsB,SAAQ,OAAkC;CAAG;AAUhF;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,UAAU;IAM3C,gCAAgC;IAChC;QACE,KAAK,EAAE,CAAC;QANF,cAAS,GAAuB,kBAAkB,CAAC,IAAI,CAAC;QACxD,WAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;QACpC,SAAI,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAK1C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AC,CAAC,CAAC;IACL,CAAC;CACF;AAED,gBAAgB;AAChB,MAAM,UAAU,WAAW,CAAC,QAA4B;IACtD,QAAQ,QAAQ,EAAE;QAChB,KAAK,kBAAkB,CAAC,MAAM;YAC5B,OAAO,QAAQ,CAAC;QAClB,KAAK,kBAAkB,CAAC,IAAI;YAC1B,OAAO,MAAM,CAAC;QAChB,KAAK,kBAAkB,CAAC,KAAK;YAC3B,OAAO,OAAO,CAAC;QACjB,KAAK,kBAAkB,CAAC,GAAG;YACzB,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAIN,OAAO,CAC1B,CAAC,QAA8B,EAAE,IAAe,EAAE,MAAe,EAAE,EAAE;IACnE,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,CAAC,CACF,CAAC;AAEF,gBAAgB;AAChB,MAAM,UAAU,aAAa,CAAC,KAAoB,EAAE,IAAe;IACjE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC;AAC5E,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 Frontstage\n */\n\nimport { UiEvent } from \"@itwin/appui-abstract\";\nimport type { Draft } from \"immer\";\nimport produce from \"immer\";\nimport { UiFramework } from \"../UiFramework\";\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\nimport type { NineZoneState } from \"../layout/state/NineZoneState\";\nimport type { PanelSide } from \"../layout/widget-panels/PanelTypes\";\nimport { WidgetDef } from \"../widgets/WidgetDef\";\nimport { WidgetHost } from \"../widgets/WidgetHost\";\nimport type {\n StagePanelConfig,\n StagePanelSectionConfig,\n} from \"./StagePanelConfig\";\nimport { StagePanelLocation } from \"./StagePanelLocation\";\nimport { StagePanelSection } from \"./StagePanelSection\";\nimport { StagePanelState } from \"./StagePanelState\";\n\n/** Panel state changed event args interface.\n * @public\n */\nexport interface PanelStateChangedEventArgs {\n panelDef: StagePanelDef;\n panelState: StagePanelState;\n}\n\n/** Panel state changed event class.\n * @beta\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> {}\n\n/** @internal */\nexport interface PanelSizeChangedEventArgs {\n panelDef: StagePanelDef;\n size: number | undefined;\n}\n\n/** @internal */\n// eslint-disable-next-line deprecation/deprecation\nexport class PanelSizeChangedEvent extends UiEvent<PanelSizeChangedEventArgs> {}\n\n/** Panel pinned changed event args interface.\n * @public\n */\nexport interface PanelPinnedChangedEventArgs {\n panelDef: StagePanelDef;\n pinned: boolean;\n}\n\n/**\n * A StagePanelDef represents each Stage Panel within a Frontstage.\n * @public\n */\nexport class StagePanelDef extends WidgetHost {\n private _initialConfig?: StagePanelConfig;\n private _location: StagePanelLocation = StagePanelLocation.Left;\n private _start = new StagePanelSectionDef();\n private _end = new StagePanelSectionDef();\n\n /** Constructor for PanelDef. */\n constructor() {\n super();\n }\n\n /** @internal */\n public static create(config: StagePanelConfig, location: StagePanelLocation) {\n const def = new StagePanelDef();\n def.initializeFromConfig(config, location);\n return def;\n }\n\n /** @internal */\n public initializeFromConfig(\n config: StagePanelConfig | undefined,\n location: StagePanelLocation\n ) {\n this._location = location;\n\n this._initialConfig = config;\n this._start.initializeFromConfig(config?.sections?.start);\n this._end.initializeFromConfig(config?.sections?.end);\n }\n\n /** @internal */\n public get initialConfig() {\n return this._initialConfig;\n }\n\n /** Current size of the panel */\n public get size(): number | undefined {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultSize;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.size;\n }\n\n public set size(size) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_SIZE\",\n side,\n size,\n });\n }\n\n /** @internal */\n public handleSizeChanged(size: number | undefined) {\n InternalFrontstageManager.onPanelSizeChangedEvent.emit({\n panelDef: this,\n size,\n });\n }\n\n /** Indicates whether the panel is resizable. */\n public get resizable(): boolean {\n return this.defaultResizable;\n }\n\n /** Indicates whether the panel is pinned. */\n public get pinned(): boolean {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultPinned;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.pinned;\n }\n\n public set pinned(pinned: boolean) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_PINNED\",\n side,\n pinned,\n });\n }\n\n /** @internal */\n public handlePinnedChanged(pinned: boolean) {\n UiFramework.frontstages.onPanelPinnedChangedEvent.emit({\n panelDef: this,\n pinned,\n });\n }\n\n /** Location of panel. */\n public get location(): StagePanelLocation {\n return this._location;\n }\n\n /** Panel state. Defaults to PanelState.Open. */\n public get panelState(): StagePanelState {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultState;\n const side = toPanelSide(this.location);\n return getPanelState(state, side);\n }\n\n public set panelState(panelState: StagePanelState) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n const collapsed = panelState === StagePanelState.Open ? false : true;\n frontstageDef.dispatch({\n type: \"PANEL_SET_COLLAPSED\",\n collapsed,\n side,\n });\n }\n\n /** @internal */\n public handlePanelStateChanged(panelState: StagePanelState) {\n UiFramework.frontstages.onPanelStateChangedEvent.emit({\n panelDef: this,\n panelState,\n });\n }\n\n /** @internal */\n public get defaultState() {\n const defaultState = this._initialConfig?.defaultState;\n return defaultState ?? StagePanelState.Open;\n }\n\n /** @internal */\n public get defaultSize() {\n return this._initialConfig?.size;\n }\n\n /** @internal */\n public get defaultPinned() {\n return this._initialConfig?.pinned ?? true;\n }\n\n /** @internal */\n public get defaultResizable() {\n return this._initialConfig?.resizable ?? true;\n }\n\n /** Gets the list of Widgets. */\n public override get widgetDefs(): ReadonlyArray<WidgetDef> {\n return [\n ...super.widgetDefs,\n ...this._start.widgetDefs,\n ...this._end.widgetDefs,\n ];\n }\n\n /** @internal */\n public override updateDynamicWidgetDefs(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n _section: StagePanelSection | undefined,\n allStageWidgetDefs: WidgetDef[]\n ) {\n this._start.updateDynamicWidgetDefs(\n stageId,\n stageUsage,\n location,\n StagePanelSection.Start,\n allStageWidgetDefs\n );\n this._end.updateDynamicWidgetDefs(\n stageId,\n stageUsage,\n location,\n StagePanelSection.End,\n allStageWidgetDefs\n );\n }\n\n /** @internal */\n public getPanelSectionDef(section: StagePanelSection) {\n switch (section) {\n case StagePanelSection.Start: {\n return this._start;\n }\n case StagePanelSection.End: {\n return this._end;\n }\n }\n }\n}\n\n/** @internal */\nexport class StagePanelSectionDef extends WidgetHost {\n /** @internal */\n public initializeFromConfig(config: StagePanelSectionConfig | undefined) {\n config?.forEach((widgetConfig) => {\n const widgetDef = WidgetDef.create(widgetConfig);\n this.addWidgetDef(widgetDef);\n });\n }\n}\n\n/** @internal */\nexport function toPanelSide(location: StagePanelLocation): PanelSide {\n switch (location) {\n case StagePanelLocation.Bottom:\n return \"bottom\";\n case StagePanelLocation.Left:\n return \"left\";\n case StagePanelLocation.Right:\n return \"right\";\n case StagePanelLocation.Top:\n return \"top\";\n }\n}\n\n/** @internal */\nexport const setPanelPinned: (\n nineZone: NineZoneState,\n side: PanelSide,\n pinned: boolean\n) => NineZoneState = produce(\n (nineZone: Draft<NineZoneState>, side: PanelSide, pinned: boolean) => {\n const panel = nineZone.panels[side];\n panel.pinned = pinned;\n }\n);\n\n/** @internal */\nexport function getPanelState(state: NineZoneState, side: PanelSide) {\n const panel = state.panels[side];\n return panel.collapsed ? StagePanelState.Minimized : StagePanelState.Open;\n}\n"]}
1
+ {"version":3,"file":"StagePanelDef.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelDef.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAGpF,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUpD;;GAEG;AACH,mDAAmD;AACnD,MAAM,OAAO,sBAAuB,SAAQ,OAAmC;CAAG;AAQlF,gBAAgB;AAChB,mDAAmD;AACnD,MAAM,OAAO,qBAAsB,SAAQ,OAAkC;CAAG;AAUhF;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,UAAU;IAM3C,gCAAgC;IAChC;QACE,KAAK,EAAE,CAAC;QANF,cAAS,GAAuB,kBAAkB,CAAC,IAAI,CAAC;QACxD,WAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;QACpC,SAAI,GAAG,IAAI,oBAAo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BAAkB,CAAC,GAAG;YACzB,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAIN,OAAO,CAC1B,CAAC,QAA8B,EAAE,IAAe,EAAE,MAAe,EAAE,EAAE;IACnE,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,CAAC,CACF,CAAC;AAEF,gBAAgB;AAChB,MAAM,UAAU,aAAa,CAAC,KAAoB,EAAE,IAAe;IACjE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC;AAC5E,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 Frontstage\n */\n\nimport { UiEvent } from \"@itwin/appui-abstract\";\nimport type { Draft } from \"immer\";\nimport produce from \"immer\";\nimport { UiFramework } from \"../UiFramework\";\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\nimport type { NineZoneState } from \"../layout/state/NineZoneState\";\nimport type { PanelSide } from \"../layout/widget-panels/PanelTypes\";\nimport { WidgetDef } from \"../widgets/WidgetDef\";\nimport { WidgetHost } from \"../widgets/WidgetHost\";\nimport type {\n StagePanelConfig,\n StagePanelSectionConfig,\n StagePanelSizeSpec,\n} from \"./StagePanelConfig\";\nimport { StagePanelLocation } from \"./StagePanelLocation\";\nimport { StagePanelSection } from \"./StagePanelSection\";\nimport { StagePanelState } from \"./StagePanelState\";\n\n/** Panel state changed event args interface.\n * @public\n */\nexport interface PanelStateChangedEventArgs {\n panelDef: StagePanelDef;\n panelState: StagePanelState;\n}\n\n/** Panel state changed event class.\n * @beta\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> {}\n\n/** @internal */\nexport interface PanelSizeChangedEventArgs {\n panelDef: StagePanelDef;\n size: number | undefined;\n}\n\n/** @internal */\n// eslint-disable-next-line deprecation/deprecation\nexport class PanelSizeChangedEvent extends UiEvent<PanelSizeChangedEventArgs> {}\n\n/** Panel pinned changed event args interface.\n * @public\n */\nexport interface PanelPinnedChangedEventArgs {\n panelDef: StagePanelDef;\n pinned: boolean;\n}\n\n/**\n * A StagePanelDef represents each Stage Panel within a Frontstage.\n * @public\n */\nexport class StagePanelDef extends WidgetHost {\n private _initialConfig?: StagePanelConfig;\n private _location: StagePanelLocation = StagePanelLocation.Left;\n private _start = new StagePanelSectionDef();\n private _end = new StagePanelSectionDef();\n\n /** Constructor for PanelDef. */\n constructor() {\n super();\n }\n\n /** @internal */\n public static create(config: StagePanelConfig, location: StagePanelLocation) {\n const def = new StagePanelDef();\n def.initializeFromConfig(config, location);\n return def;\n }\n\n /** @internal */\n public initializeFromConfig(\n config: StagePanelConfig | undefined,\n location: StagePanelLocation\n ) {\n this._location = location;\n this._initialConfig = config;\n this._start.initializeFromConfig(config?.sections?.start);\n this._end.initializeFromConfig(config?.sections?.end);\n }\n\n /** @internal */\n public get initialConfig() {\n return this._initialConfig;\n }\n\n /** Current size of the panel.\n * @deprecated in 4.12.x. Use {@link StagePanelDef.sizeSpec} instead.\n */\n public get size(): number | undefined {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n // eslint-disable-next-line deprecation/deprecation\n if (!state) return this.initialConfig?.size;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.size;\n }\n\n public set size(size) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_SIZE\",\n side,\n size,\n });\n }\n\n /** Current size of the panel */\n public get sizeSpec(): StagePanelSizeSpec | undefined {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.initialConfig?.sizeSpec;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.size;\n }\n\n public set sizeSpec(size) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_SIZE\",\n side,\n size,\n });\n }\n\n /** @internal */\n public handleSizeChanged(size: number | undefined) {\n InternalFrontstageManager.onPanelSizeChangedEvent.emit({\n panelDef: this,\n size,\n });\n }\n\n /** Indicates whether the panel is resizable. */\n public get resizable(): boolean {\n return this.defaultResizable;\n }\n\n /** Indicates whether the panel is pinned. */\n public get pinned(): boolean {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultPinned;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.pinned;\n }\n\n public set pinned(pinned: boolean) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_PINNED\",\n side,\n pinned,\n });\n }\n\n /** @internal */\n public handlePinnedChanged(pinned: boolean) {\n UiFramework.frontstages.onPanelPinnedChangedEvent.emit({\n panelDef: this,\n pinned,\n });\n }\n\n /** Location of panel. */\n public get location(): StagePanelLocation {\n return this._location;\n }\n\n /** Panel state. Defaults to PanelState.Open. */\n public get panelState(): StagePanelState {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultState;\n const side = toPanelSide(this.location);\n return getPanelState(state, side);\n }\n\n public set panelState(panelState: StagePanelState) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n const collapsed = panelState === StagePanelState.Open ? false : true;\n frontstageDef.dispatch({\n type: \"PANEL_SET_COLLAPSED\",\n collapsed,\n side,\n });\n }\n\n /** @internal */\n public handlePanelStateChanged(panelState: StagePanelState) {\n UiFramework.frontstages.onPanelStateChangedEvent.emit({\n panelDef: this,\n panelState,\n });\n }\n\n /** @internal */\n public get defaultState() {\n const defaultState = this._initialConfig?.defaultState;\n return defaultState ?? StagePanelState.Open;\n }\n\n /** @internal */\n public get defaultPinned() {\n return this._initialConfig?.pinned ?? true;\n }\n\n /** @internal */\n public get defaultResizable() {\n return this._initialConfig?.resizable ?? true;\n }\n\n /** Gets the list of Widgets. */\n public override get widgetDefs(): ReadonlyArray<WidgetDef> {\n return [\n ...super.widgetDefs,\n ...this._start.widgetDefs,\n ...this._end.widgetDefs,\n ];\n }\n\n /** @internal */\n public override updateDynamicWidgetDefs(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n _section: StagePanelSection | undefined,\n allStageWidgetDefs: WidgetDef[]\n ) {\n this._start.updateDynamicWidgetDefs(\n stageId,\n stageUsage,\n location,\n StagePanelSection.Start,\n allStageWidgetDefs\n );\n this._end.updateDynamicWidgetDefs(\n stageId,\n stageUsage,\n location,\n StagePanelSection.End,\n allStageWidgetDefs\n );\n }\n\n /** @internal */\n public getPanelSectionDef(section: StagePanelSection) {\n switch (section) {\n case StagePanelSection.Start: {\n return this._start;\n }\n case StagePanelSection.End: {\n return this._end;\n }\n }\n }\n}\n\n/** @internal */\nexport class StagePanelSectionDef extends WidgetHost {\n /** @internal */\n public initializeFromConfig(config: StagePanelSectionConfig | undefined) {\n config?.forEach((widgetConfig) => {\n const widgetDef = WidgetDef.create(widgetConfig);\n this.addWidgetDef(widgetDef);\n });\n }\n}\n\n/** @internal */\nexport function toPanelSide(location: StagePanelLocation): PanelSide {\n switch (location) {\n case StagePanelLocation.Bottom:\n return \"bottom\";\n case StagePanelLocation.Left:\n return \"left\";\n case StagePanelLocation.Right:\n return \"right\";\n case StagePanelLocation.Top:\n return \"top\";\n }\n}\n\n/** @internal */\nexport const setPanelPinned: (\n nineZone: NineZoneState,\n side: PanelSide,\n pinned: boolean\n) => NineZoneState = produce(\n (nineZone: Draft<NineZoneState>, side: PanelSide, pinned: boolean) => {\n const panel = nineZone.panels[side];\n panel.pinned = pinned;\n }\n);\n\n/** @internal */\nexport function getPanelState(state: NineZoneState, side: PanelSide) {\n const panel = state.panels[side];\n return panel.collapsed ? StagePanelState.Minimized : StagePanelState.Open;\n}\n"]}
@@ -14,8 +14,9 @@ export function StatusBarIndicator(props) {
14
14
  const hasClickAction = !!props.onClick || !!props.popup;
15
15
  const [isOpen, setIsOpen] = React.useState(!!props.defaultIsOpen);
16
16
  const handleOnIndicatorClick = () => {
17
+ var _a;
17
18
  setIsOpen(!isOpen);
18
- props.onClick?.();
19
+ (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
19
20
  };
20
21
  const target = React.useRef(null);
21
22
  return (React.createElement(React.Fragment, null,
@@ -1 +1 @@
1
- {"version":3,"file":"Indicator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Indicator.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAkBxC;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAA8B;IAC/D,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAClE,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAClC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;QACnB,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;IACpB,CAAC,CAAC;IACF,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IAClD,OAAO,CACL;QACE,oBAAC,SAAS,CAAC,KAAK,IACd,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,IAE3D,KAAK,CAAC,QAAQ,CACC;QACjB,KAAK,CAAC,KAAK,IAAI,CACd,oBAAC,SAAS,CAAC,KAAK,IACd,MAAM,EAAE,MAAM,CAAC,OAAO,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAC/B,MAAM,EAAE,MAAM,IAEb,KAAK,CAAC,KAAK,CACI,CACnB,CACA,CACJ,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 StatusBar\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { StatusBar } from \"./StatusBar\";\n\n/** Properties of [[StatusBarIndicator]] component.\n * @beta\n */\nexport interface StatusBarIndicatorProps extends CommonProps {\n /** Indicator content. */\n children?: React.ReactNode;\n /** Content to display in a popup when indicator is clicked. */\n popup?: React.ReactNode;\n /** Function called when indicator is clicked. */\n onClick?: () => void;\n /** Default state of an indicator popup. */\n defaultIsOpen?: boolean;\n /** Title of an indicator. */\n title?: string;\n}\n\n/** General-purpose [[StatusBar]] indicator.\n * @beta\n */\nexport function StatusBarIndicator(props: StatusBarIndicatorProps) {\n const hasClickAction = !!props.onClick || !!props.popup;\n const [isOpen, setIsOpen] = React.useState(!!props.defaultIsOpen);\n const handleOnIndicatorClick = () => {\n setIsOpen(!isOpen);\n props.onClick?.();\n };\n const target = React.useRef<HTMLDivElement>(null);\n return (\n <>\n <StatusBar.Field\n ref={target}\n className={props.className}\n title={props.title}\n style={props.style}\n onClick={hasClickAction ? handleOnIndicatorClick : undefined}\n >\n {props.children}\n </StatusBar.Field>\n {props.popup && (\n <StatusBar.Popup\n target={target.current}\n onClose={() => setIsOpen(false)}\n isOpen={isOpen}\n >\n {props.popup}\n </StatusBar.Popup>\n )}\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"Indicator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Indicator.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAkBxC;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAA8B;IAC/D,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAClE,MAAM,sBAAsB,GAAG,GAAG,EAAE;;QAClC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;QACnB,MAAA,KAAK,CAAC,OAAO,qDAAI,CAAC;IACpB,CAAC,CAAC;IACF,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IAClD,OAAO,CACL;QACE,oBAAC,SAAS,CAAC,KAAK,IACd,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,IAE3D,KAAK,CAAC,QAAQ,CACC;QACjB,KAAK,CAAC,KAAK,IAAI,CACd,oBAAC,SAAS,CAAC,KAAK,IACd,MAAM,EAAE,MAAM,CAAC,OAAO,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAC/B,MAAM,EAAE,MAAM,IAEb,KAAK,CAAC,KAAK,CACI,CACnB,CACA,CACJ,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 StatusBar\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { StatusBar } from \"./StatusBar\";\n\n/** Properties of [[StatusBarIndicator]] component.\n * @beta\n */\nexport interface StatusBarIndicatorProps extends CommonProps {\n /** Indicator content. */\n children?: React.ReactNode;\n /** Content to display in a popup when indicator is clicked. */\n popup?: React.ReactNode;\n /** Function called when indicator is clicked. */\n onClick?: () => void;\n /** Default state of an indicator popup. */\n defaultIsOpen?: boolean;\n /** Title of an indicator. */\n title?: string;\n}\n\n/** General-purpose [[StatusBar]] indicator.\n * @beta\n */\nexport function StatusBarIndicator(props: StatusBarIndicatorProps) {\n const hasClickAction = !!props.onClick || !!props.popup;\n const [isOpen, setIsOpen] = React.useState(!!props.defaultIsOpen);\n const handleOnIndicatorClick = () => {\n setIsOpen(!isOpen);\n props.onClick?.();\n };\n const target = React.useRef<HTMLDivElement>(null);\n return (\n <>\n <StatusBar.Field\n ref={target}\n className={props.className}\n title={props.title}\n style={props.style}\n onClick={hasClickAction ? handleOnIndicatorClick : undefined}\n >\n {props.children}\n </StatusBar.Field>\n {props.popup && (\n <StatusBar.Popup\n target={target.current}\n onClose={() => setIsOpen(false)}\n isOpen={isOpen}\n >\n {props.popup}\n </StatusBar.Popup>\n )}\n </>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Overflow.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Overflow.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,+FAuB5B,CAAC"}
1
+ {"version":3,"file":"Overflow.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Overflow.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,iBAAiB,CAAC;AAGzB;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,+FAwB5B,CAAC"}
@@ -8,20 +8,20 @@
8
8
  import { useRefs, useResizeObserver } from "@itwin/core-react";
9
9
  import classnames from "classnames";
10
10
  import * as React from "react";
11
- import { UiFramework } from "../UiFramework";
12
11
  import { Ellipsis } from "../layout/base/Ellipsis";
13
12
  import "./Overflow.scss";
13
+ import { useTranslation } from "../hooks/useTranslation";
14
14
  /** Entry point to overflow status bar items of [[StatusBarComposer]] component.
15
15
  * @internal
16
16
  */
17
17
  export const StatusBarOverflow = React.forwardRef(function StatusBarOverflow(props, ref) {
18
+ const { translate } = useTranslation();
18
19
  const roRef = useResizeObserver(props.onResize);
19
20
  const refs = useRefs(roRef, ref);
20
21
  const className = classnames("uifw-statusbar-overflow", props.className);
21
- const title = React.useRef(UiFramework.translate("statusBar.overflow"));
22
22
  return (
23
23
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
24
- React.createElement("div", { className: className, onClick: props.onClick, ref: refs, style: props.style, role: "button", tabIndex: -1, title: title.current },
24
+ React.createElement("div", { className: className, onClick: props.onClick, ref: refs, style: props.style, role: "button", tabIndex: -1, title: translate("statusBar.overflow") },
25
25
  React.createElement(Ellipsis, null)));
26
26
  });
27
27
  //# sourceMappingURL=Overflow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Overflow.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Overflow.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,iBAAiB,CAAC;AAYzB;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAG/C,SAAS,iBAAiB,CAAC,KAAK,EAAE,GAAG;IACrC,MAAM,KAAK,GAAG,iBAAiB,CAAiB,KAAK,CAAC,QAAQ,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,SAAS,GAAG,UAAU,CAAC,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACzE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAExE,OAAO;IACL,iEAAiE;IACjE,6BACE,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,KAAK,CAAC,OAAO;QAEpB,oBAAC,QAAQ,OAAG,CACR,CACP,CAAC;AACJ,CAAC,CAAC,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 StatusBar\n */\n\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { useRefs, useResizeObserver } from \"@itwin/core-react\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { UiFramework } from \"../UiFramework\";\nimport { Ellipsis } from \"../layout/base/Ellipsis\";\nimport \"./Overflow.scss\";\n\n/** Properties of [[StatusBarOverflow]] component.\n * @internal\n */\nexport interface StatusBarOverflowProps extends CommonProps {\n /** Function called when button is clicked. */\n onClick?: () => void;\n /** Function called when button is resized. */\n onResize?: (w: number) => void;\n}\n\n/** Entry point to overflow status bar items of [[StatusBarComposer]] component.\n * @internal\n */\nexport const StatusBarOverflow = React.forwardRef<\n HTMLDivElement,\n StatusBarOverflowProps\n>(function StatusBarOverflow(props, ref) {\n const roRef = useResizeObserver<HTMLDivElement>(props.onResize);\n const refs = useRefs(roRef, ref);\n const className = classnames(\"uifw-statusbar-overflow\", props.className);\n const title = React.useRef(UiFramework.translate(\"statusBar.overflow\"));\n\n return (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <div\n className={className}\n onClick={props.onClick}\n ref={refs}\n style={props.style}\n role=\"button\"\n tabIndex={-1}\n title={title.current}\n >\n <Ellipsis />\n </div>\n );\n});\n"]}
1
+ {"version":3,"file":"Overflow.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Overflow.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAYzD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAG/C,SAAS,iBAAiB,CAAC,KAAK,EAAE,GAAG;IACrC,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IAEvC,MAAM,KAAK,GAAG,iBAAiB,CAAiB,KAAK,CAAC,QAAQ,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,SAAS,GAAG,UAAU,CAAC,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAEzE,OAAO;IACL,iEAAiE;IACjE,6BACE,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAC;QAEtC,oBAAC,QAAQ,OAAG,CACR,CACP,CAAC;AACJ,CAAC,CAAC,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 StatusBar\n */\n\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { useRefs, useResizeObserver } from \"@itwin/core-react\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Ellipsis } from \"../layout/base/Ellipsis\";\nimport \"./Overflow.scss\";\nimport { useTranslation } from \"../hooks/useTranslation\";\n\n/** Properties of [[StatusBarOverflow]] component.\n * @internal\n */\nexport interface StatusBarOverflowProps extends CommonProps {\n /** Function called when button is clicked. */\n onClick?: () => void;\n /** Function called when button is resized. */\n onResize?: (w: number) => void;\n}\n\n/** Entry point to overflow status bar items of [[StatusBarComposer]] component.\n * @internal\n */\nexport const StatusBarOverflow = React.forwardRef<\n HTMLDivElement,\n StatusBarOverflowProps\n>(function StatusBarOverflow(props, ref) {\n const { translate } = useTranslation();\n\n const roRef = useResizeObserver<HTMLDivElement>(props.onResize);\n const refs = useRefs(roRef, ref);\n const className = classnames(\"uifw-statusbar-overflow\", props.className);\n\n return (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <div\n className={className}\n onClick={props.onClick}\n ref={refs}\n style={props.style}\n role=\"button\"\n tabIndex={-1}\n title={translate(\"statusBar.overflow\")}\n >\n <Ellipsis />\n </div>\n );\n});\n"]}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import type { CommonDivProps, CommonProps } from "@itwin/core-react";
5
5
  import * as React from "react";
6
- import { StatusBarPopup } from "./Popup";
6
+ import { StatusBarPopup } from "./popup/Popup";
7
7
  import "./StatusBar.scss";
8
8
  import type { StatusBarWidgetControl } from "./StatusBarWidgetControl";
9
9
  /** Properties for the [[StatusBar]] React component