@itwin/appui-react 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (731) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/lib/cjs/appui-react/UiFramework.js +5 -9
  3. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  4. package/lib/cjs/appui-react/_variables.scss +11 -11
  5. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  6. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  7. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.scss +14 -14
  8. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  9. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.scss +27 -27
  10. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  11. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +4 -1
  12. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.scss +55 -55
  14. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  16. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  18. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/Calculator.scss +84 -84
  20. package/lib/cjs/appui-react/accudraw/CalculatorEngine.js.map +1 -1
  21. package/lib/cjs/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  22. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  23. package/lib/cjs/appui-react/accudraw/MenuButton.js.map +1 -1
  24. package/lib/cjs/appui-react/accudraw/MenuButton.scss +18 -18
  25. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.js.map +1 -1
  26. package/lib/cjs/appui-react/accudraw/SquareButton.js.map +1 -1
  27. package/lib/cjs/appui-react/accudraw/SquareButton.scss +29 -29
  28. package/lib/cjs/appui-react/accudraw/backspace.svg +9 -9
  29. package/lib/cjs/appui-react/accudraw/constraint-2d.svg +11 -11
  30. package/lib/cjs/appui-react/accudraw/height-2.svg +10 -10
  31. package/lib/cjs/appui-react/accudraw/height.svg +11 -11
  32. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  33. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +1 -2
  34. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  35. package/lib/cjs/appui-react/backstage/BackstageItem.js.map +1 -1
  36. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  37. package/lib/cjs/appui-react/backstage/BackstageItemsManager.js.map +1 -1
  38. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  39. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  40. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  41. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  42. package/lib/cjs/appui-react/childwindow/CopyStyles.js.map +1 -1
  43. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +24 -25
  44. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  45. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.scss +14 -14
  46. package/lib/cjs/appui-react/childwindow/PopoutWidget.js.map +1 -1
  47. package/lib/cjs/appui-react/childwindow/PopoutWidget.scss +10 -10
  48. package/lib/cjs/appui-react/configurableui/ActivityTracker.js.map +1 -1
  49. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  50. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
  51. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  52. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  53. package/lib/cjs/appui-react/configurableui/TimeTracker.js +1 -2
  54. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  55. package/lib/cjs/appui-react/configurableui/configurableui.scss +74 -74
  56. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  57. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  58. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  59. package/lib/cjs/appui-react/content/ContentLayout.js +6 -11
  60. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  61. package/lib/cjs/appui-react/content/ContentLayout.scss +99 -99
  62. package/lib/cjs/appui-react/content/DefaultViewOverlay.js +3 -4
  63. package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
  64. package/lib/cjs/appui-react/content/DefaultViewOverlay.scss +46 -46
  65. package/lib/cjs/appui-react/content/FloatingViewportContent.js +1 -2
  66. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  67. package/lib/cjs/appui-react/content/IModelViewport.js +3 -6
  68. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  69. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +1 -2
  70. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  71. package/lib/cjs/appui-react/content/InternalContentViewManager.js +1 -1
  72. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
  73. package/lib/cjs/appui-react/content/StageContentLayout.js.map +1 -1
  74. package/lib/cjs/appui-react/content/ViewStateHelper.js.map +1 -1
  75. package/lib/cjs/appui-react/content/ViewportContentControl.js.map +1 -1
  76. package/lib/cjs/appui-react/content/split-pane/Pane.js.map +1 -1
  77. package/lib/cjs/appui-react/content/split-pane/Resizer.js.map +1 -1
  78. package/lib/cjs/appui-react/content/split-pane/SplitPane.js +8 -12
  79. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  80. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  81. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +2 -3
  82. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  83. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  84. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.scss +34 -34
  85. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  86. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  87. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.scss +30 -30
  88. package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -6
  89. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  90. package/lib/cjs/appui-react/dialog/ContentDialog.scss +25 -25
  91. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  92. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -3
  93. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  94. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  95. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  96. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  97. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  98. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  99. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  100. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  101. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  102. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  103. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  104. package/lib/cjs/appui-react/feedback/ValidationTextbox.scss +50 -50
  105. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
  106. package/lib/cjs/appui-react/framework/FrameworkChildWindows.js.map +1 -1
  107. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  108. package/lib/cjs/appui-react/framework/FrameworkControls.js.map +1 -1
  109. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  110. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  111. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  112. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  113. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
  114. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  115. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +3 -4
  116. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  117. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  118. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  119. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  120. package/lib/cjs/appui-react/frontstage/ModalFrontstage.scss +80 -80
  121. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +2 -3
  122. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  123. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.scss +11 -11
  124. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  125. package/lib/cjs/appui-react/frontstage/StageUsage.js.map +1 -1
  126. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +1 -2
  127. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  128. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  129. package/lib/cjs/appui-react/hooks/useActiveStageId.js.map +1 -1
  130. package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
  131. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +7 -11
  132. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  133. package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
  134. package/lib/cjs/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  135. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +7 -11
  136. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  137. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +8 -13
  138. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  139. package/lib/cjs/appui-react/hooks/useUiVisibility.js.map +1 -1
  140. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  141. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  142. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  143. package/lib/cjs/appui-react/messages/ActivityMessage.js +5 -7
  144. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  145. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  146. package/lib/cjs/appui-react/messages/HollowIcon.js.map +1 -1
  147. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  148. package/lib/cjs/appui-react/messages/InputField.scss +82 -82
  149. package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
  150. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  151. package/lib/cjs/appui-react/messages/MessageSpan.js.map +1 -1
  152. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  153. package/lib/cjs/appui-react/messages/Pointer.scss +42 -42
  154. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  155. package/lib/cjs/appui-react/messages/StatusMessageManager.js.map +1 -1
  156. package/lib/cjs/appui-react/messages/getToastCategory.js.map +1 -1
  157. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  158. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  159. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  160. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  161. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.scss +67 -67
  162. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  163. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.scss +72 -72
  164. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  165. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.scss +13 -13
  166. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  167. package/lib/cjs/appui-react/pickers/ListPicker.scss +305 -305
  168. package/lib/cjs/appui-react/pickers/ViewSelector.js +4 -4
  169. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  170. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  171. package/lib/cjs/appui-react/popup/CardPopup.scss +25 -25
  172. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  173. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  174. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +1 -2
  175. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  176. package/lib/cjs/appui-react/popup/KeyinPalettePanel.scss +30 -30
  177. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  178. package/lib/cjs/appui-react/popup/PopupManager.js +1 -2
  179. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  180. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  181. package/lib/cjs/appui-react/popup/PositionPopup.scss +28 -28
  182. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  183. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  184. package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
  185. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  186. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  187. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  188. package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
  189. package/lib/cjs/appui-react/redux/redux-ts.js.map +1 -1
  190. package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
  191. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.js.map +1 -1
  192. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js.map +1 -1
  193. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  194. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  195. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +1 -1
  196. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  197. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +119 -119
  198. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  199. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  200. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.scss +65 -65
  201. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  202. package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
  203. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  204. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  205. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  206. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  207. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  208. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  209. package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
  210. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  211. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  212. package/lib/cjs/appui-react/shared/SelectionScope.js.map +1 -1
  213. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  214. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  215. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +5 -7
  216. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  217. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js.map +1 -1
  218. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js.map +1 -1
  219. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  220. package/lib/cjs/appui-react/statusbar/Field.scss +109 -109
  221. package/lib/cjs/appui-react/statusbar/Indicator.js +1 -2
  222. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  223. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  224. package/lib/cjs/appui-react/statusbar/LabelIndicator.scss +43 -43
  225. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  226. package/lib/cjs/appui-react/statusbar/Overflow.scss +27 -27
  227. package/lib/cjs/appui-react/statusbar/OverflowPanel.js.map +1 -1
  228. package/lib/cjs/appui-react/statusbar/OverflowPanel.scss +22 -22
  229. package/lib/cjs/appui-react/statusbar/Popup.js.map +1 -1
  230. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  231. package/lib/cjs/appui-react/statusbar/Separator.scss +12 -12
  232. package/lib/cjs/appui-react/statusbar/StatusBar.js +3 -5
  233. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  234. package/lib/cjs/appui-react/statusbar/StatusBar.scss +41 -41
  235. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  236. package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
  237. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  238. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  239. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  240. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  241. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  242. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  243. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  244. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  245. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  246. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  247. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  248. package/lib/cjs/appui-react/statusfields/SectionsField.scss +35 -35
  249. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  250. package/lib/cjs/appui-react/statusfields/SelectionInfo.scss +14 -14
  251. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  252. package/lib/cjs/appui-react/statusfields/SelectionScope.scss +46 -46
  253. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  254. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  255. package/lib/cjs/appui-react/statusfields/ViewAttributes.scss +10 -10
  256. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  257. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +45 -45
  258. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  259. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  260. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +194 -194
  261. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  262. package/lib/cjs/appui-react/theme/ThemeManager.js +1 -2
  263. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  264. package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
  265. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.js.map +1 -1
  266. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  267. package/lib/cjs/appui-react/toolbar/DragInteraction.js.map +1 -1
  268. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  269. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  270. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  271. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  272. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  273. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  274. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  275. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  276. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  277. package/lib/cjs/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  278. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  279. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +7 -14
  280. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  281. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  282. package/lib/cjs/appui-react/tools/KeyinPaletteTools.js.map +1 -1
  283. package/lib/cjs/appui-react/tools/OpenSettingsTool.js.map +1 -1
  284. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  285. package/lib/cjs/appui-react/tools/ToolSettingsTools.js.map +1 -1
  286. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +1 -2
  287. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  288. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  289. package/lib/cjs/appui-react/toolsettings/ToolInformation.js.map +1 -1
  290. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  291. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  292. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +25 -18
  293. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  294. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
  295. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.js.map +1 -1
  296. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  297. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +8 -10
  298. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  299. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  300. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  301. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  302. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +1 -2
  303. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  304. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +8 -14
  305. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  306. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  307. package/lib/cjs/appui-react/ui-items-provider/isProviderItem.js.map +1 -1
  308. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
  309. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  310. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +1 -1
  311. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  312. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  313. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.scss +212 -212
  314. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  315. package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -1
  316. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +3 -3
  317. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  318. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  319. package/lib/cjs/appui-react/utils/PropsHelper.js +2 -1
  320. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  321. package/lib/cjs/appui-react/utils/ToolbarButtonHelper.js.map +1 -1
  322. package/lib/cjs/appui-react/utils/ViewUtilities.js.map +1 -1
  323. package/lib/cjs/appui-react/widget-panels/Content.js +7 -8
  324. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  325. package/lib/cjs/appui-react/widget-panels/FloatingWidget.js.map +1 -1
  326. package/lib/cjs/appui-react/widget-panels/Frontstage.js +30 -39
  327. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  328. package/lib/cjs/appui-react/widget-panels/Frontstage.scss +19 -19
  329. package/lib/cjs/appui-react/widget-panels/FrontstageContent.js.map +1 -1
  330. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  331. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -1
  332. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  333. package/lib/cjs/appui-react/widget-panels/StatusBar.scss +10 -10
  334. package/lib/cjs/appui-react/widget-panels/Tab.js +1 -1
  335. package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
  336. package/lib/cjs/appui-react/widget-panels/Tab.scss +14 -14
  337. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +9 -17
  338. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  339. package/lib/cjs/appui-react/widget-panels/ToolSettings.scss +41 -41
  340. package/lib/cjs/appui-react/widget-panels/Toolbars.js +2 -3
  341. package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
  342. package/lib/cjs/appui-react/widget-panels/Toolbars.scss +20 -20
  343. package/lib/cjs/appui-react/widget-panels/useTransientState.js.map +1 -1
  344. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  345. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  346. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  347. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  348. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  349. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +2 -2
  350. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  351. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  352. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  353. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  354. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  355. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  356. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  357. package/lib/cjs/appui-react/widgets/WidgetConfig.js.map +1 -1
  358. package/lib/cjs/appui-react/widgets/WidgetControl.js.map +1 -1
  359. package/lib/cjs/appui-react/widgets/WidgetDef.js +1 -1
  360. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  361. package/lib/cjs/appui-react/widgets/WidgetHost.js +2 -3
  362. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  363. package/lib/cjs/appui-react/widgets/WidgetManager.js.map +1 -1
  364. package/lib/cjs/appui-react/widgets/WidgetState.js.map +1 -1
  365. package/lib/cjs/appui-react.js.map +1 -1
  366. package/lib/esm/appui-react/UiFramework.js +5 -9
  367. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  368. package/lib/esm/appui-react/_variables.scss +11 -11
  369. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  370. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  371. package/lib/esm/appui-react/accudraw/AccuDrawDialog.scss +14 -14
  372. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  373. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.scss +27 -27
  374. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  375. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +4 -1
  376. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  377. package/lib/esm/appui-react/accudraw/AccuDrawInputField.scss +55 -55
  378. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  379. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  380. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  381. package/lib/esm/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  382. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  383. package/lib/esm/appui-react/accudraw/Calculator.scss +84 -84
  384. package/lib/esm/appui-react/accudraw/CalculatorEngine.js.map +1 -1
  385. package/lib/esm/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  386. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  387. package/lib/esm/appui-react/accudraw/MenuButton.js.map +1 -1
  388. package/lib/esm/appui-react/accudraw/MenuButton.scss +18 -18
  389. package/lib/esm/appui-react/accudraw/MenuButtonPopup.js.map +1 -1
  390. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  391. package/lib/esm/appui-react/accudraw/SquareButton.scss +29 -29
  392. package/lib/esm/appui-react/accudraw/backspace.svg +9 -9
  393. package/lib/esm/appui-react/accudraw/constraint-2d.svg +11 -11
  394. package/lib/esm/appui-react/accudraw/height-2.svg +10 -10
  395. package/lib/esm/appui-react/accudraw/height.svg +11 -11
  396. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  397. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +1 -2
  398. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  399. package/lib/esm/appui-react/backstage/BackstageItem.js.map +1 -1
  400. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  401. package/lib/esm/appui-react/backstage/BackstageItemsManager.js.map +1 -1
  402. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  403. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  404. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  405. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  406. package/lib/esm/appui-react/childwindow/CopyStyles.js.map +1 -1
  407. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +24 -25
  408. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  409. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +14 -14
  410. package/lib/esm/appui-react/childwindow/PopoutWidget.js.map +1 -1
  411. package/lib/esm/appui-react/childwindow/PopoutWidget.scss +10 -10
  412. package/lib/esm/appui-react/configurableui/ActivityTracker.js.map +1 -1
  413. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  414. package/lib/esm/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
  415. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  416. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  417. package/lib/esm/appui-react/configurableui/TimeTracker.js +1 -2
  418. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  419. package/lib/esm/appui-react/configurableui/configurableui.scss +74 -74
  420. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  421. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  422. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  423. package/lib/esm/appui-react/content/ContentLayout.js +6 -11
  424. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  425. package/lib/esm/appui-react/content/ContentLayout.scss +99 -99
  426. package/lib/esm/appui-react/content/DefaultViewOverlay.js +3 -4
  427. package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
  428. package/lib/esm/appui-react/content/DefaultViewOverlay.scss +46 -46
  429. package/lib/esm/appui-react/content/FloatingViewportContent.js +1 -2
  430. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  431. package/lib/esm/appui-react/content/IModelViewport.js +3 -6
  432. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  433. package/lib/esm/appui-react/content/InternalContentLayoutManager.js +1 -2
  434. package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  435. package/lib/esm/appui-react/content/InternalContentViewManager.js +1 -1
  436. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
  437. package/lib/esm/appui-react/content/StageContentLayout.js.map +1 -1
  438. package/lib/esm/appui-react/content/ViewStateHelper.js.map +1 -1
  439. package/lib/esm/appui-react/content/ViewportContentControl.js.map +1 -1
  440. package/lib/esm/appui-react/content/split-pane/Pane.js.map +1 -1
  441. package/lib/esm/appui-react/content/split-pane/Resizer.js.map +1 -1
  442. package/lib/esm/appui-react/content/split-pane/SplitPane.js +8 -12
  443. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  444. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  445. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +2 -3
  446. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  447. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  448. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.scss +34 -34
  449. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  450. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  451. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.scss +30 -30
  452. package/lib/esm/appui-react/dialog/ContentDialog.js +3 -6
  453. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  454. package/lib/esm/appui-react/dialog/ContentDialog.scss +25 -25
  455. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  456. package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -3
  457. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  458. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  459. package/lib/esm/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  460. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  461. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  462. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  463. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  464. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  465. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  466. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  467. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  468. package/lib/esm/appui-react/feedback/ValidationTextbox.scss +50 -50
  469. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  470. package/lib/esm/appui-react/framework/FrameworkChildWindows.js.map +1 -1
  471. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  472. package/lib/esm/appui-react/framework/FrameworkControls.js.map +1 -1
  473. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  474. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  475. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  476. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  477. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  478. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  479. package/lib/esm/appui-react/frontstage/FrontstageDef.js +3 -4
  480. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  481. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  482. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  483. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  484. package/lib/esm/appui-react/frontstage/ModalFrontstage.scss +80 -80
  485. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +2 -3
  486. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  487. package/lib/esm/appui-react/frontstage/ModalSettingsStage.scss +11 -11
  488. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  489. package/lib/esm/appui-react/frontstage/StageUsage.js.map +1 -1
  490. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +1 -2
  491. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  492. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  493. package/lib/esm/appui-react/hooks/useActiveStageId.js.map +1 -1
  494. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  495. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +7 -11
  496. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  497. package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
  498. package/lib/esm/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  499. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +7 -11
  500. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  501. package/lib/esm/appui-react/hooks/useSolarDataProvider.js +8 -13
  502. package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  503. package/lib/esm/appui-react/hooks/useUiVisibility.js.map +1 -1
  504. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  505. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  506. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  507. package/lib/esm/appui-react/messages/ActivityMessage.js +5 -7
  508. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  509. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  510. package/lib/esm/appui-react/messages/HollowIcon.js.map +1 -1
  511. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  512. package/lib/esm/appui-react/messages/InputField.scss +82 -82
  513. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  514. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  515. package/lib/esm/appui-react/messages/MessageSpan.js.map +1 -1
  516. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  517. package/lib/esm/appui-react/messages/Pointer.scss +42 -42
  518. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  519. package/lib/esm/appui-react/messages/StatusMessageManager.js.map +1 -1
  520. package/lib/esm/appui-react/messages/getToastCategory.js.map +1 -1
  521. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  522. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  523. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  524. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  525. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.scss +67 -67
  526. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  527. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.scss +72 -72
  528. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  529. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.scss +13 -13
  530. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  531. package/lib/esm/appui-react/pickers/ListPicker.scss +305 -305
  532. package/lib/esm/appui-react/pickers/ViewSelector.js +4 -4
  533. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  534. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  535. package/lib/esm/appui-react/popup/CardPopup.scss +25 -25
  536. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  537. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  538. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +1 -2
  539. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  540. package/lib/esm/appui-react/popup/KeyinPalettePanel.scss +30 -30
  541. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  542. package/lib/esm/appui-react/popup/PopupManager.js +1 -2
  543. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  544. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  545. package/lib/esm/appui-react/popup/PositionPopup.scss +28 -28
  546. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  547. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  548. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  549. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  550. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  551. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  552. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  553. package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
  554. package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
  555. package/lib/esm/appui-react/safearea/SafeAreaHelpers.js.map +1 -1
  556. package/lib/esm/appui-react/safearea/SafeAreaInsets.js.map +1 -1
  557. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  558. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  559. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +1 -1
  560. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  561. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +119 -119
  562. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  563. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  564. package/lib/esm/appui-react/settings/ui/UiSettingsPage.scss +65 -65
  565. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  566. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  567. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  568. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  569. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  570. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  571. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  572. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  573. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  574. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  575. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  576. package/lib/esm/appui-react/shared/SelectionScope.js.map +1 -1
  577. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  578. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  579. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +5 -7
  580. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  581. package/lib/esm/appui-react/stagepanels/StagePanelLocation.js.map +1 -1
  582. package/lib/esm/appui-react/stagepanels/StagePanelSection.js.map +1 -1
  583. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  584. package/lib/esm/appui-react/statusbar/Field.scss +109 -109
  585. package/lib/esm/appui-react/statusbar/Indicator.js +1 -2
  586. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  587. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  588. package/lib/esm/appui-react/statusbar/LabelIndicator.scss +43 -43
  589. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  590. package/lib/esm/appui-react/statusbar/Overflow.scss +27 -27
  591. package/lib/esm/appui-react/statusbar/OverflowPanel.js.map +1 -1
  592. package/lib/esm/appui-react/statusbar/OverflowPanel.scss +22 -22
  593. package/lib/esm/appui-react/statusbar/Popup.js.map +1 -1
  594. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  595. package/lib/esm/appui-react/statusbar/Separator.scss +12 -12
  596. package/lib/esm/appui-react/statusbar/StatusBar.js +3 -5
  597. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  598. package/lib/esm/appui-react/statusbar/StatusBar.scss +41 -41
  599. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  600. package/lib/esm/appui-react/statusbar/StatusBarItem.js.map +1 -1
  601. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  602. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  603. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  604. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  605. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  606. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  607. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  608. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  609. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  610. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  611. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  612. package/lib/esm/appui-react/statusfields/SectionsField.scss +35 -35
  613. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  614. package/lib/esm/appui-react/statusfields/SelectionInfo.scss +14 -14
  615. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  616. package/lib/esm/appui-react/statusfields/SelectionScope.scss +46 -46
  617. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  618. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  619. package/lib/esm/appui-react/statusfields/ViewAttributes.scss +10 -10
  620. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  621. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +45 -45
  622. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  623. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  624. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +194 -194
  625. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  626. package/lib/esm/appui-react/theme/ThemeManager.js +1 -2
  627. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  628. package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
  629. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.js.map +1 -1
  630. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  631. package/lib/esm/appui-react/toolbar/DragInteraction.js.map +1 -1
  632. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  633. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  634. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  635. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  636. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  637. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  638. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  639. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  640. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  641. package/lib/esm/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  642. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  643. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +7 -14
  644. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  645. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  646. package/lib/esm/appui-react/tools/KeyinPaletteTools.js.map +1 -1
  647. package/lib/esm/appui-react/tools/OpenSettingsTool.js.map +1 -1
  648. package/lib/esm/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  649. package/lib/esm/appui-react/tools/ToolSettingsTools.js.map +1 -1
  650. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +1 -2
  651. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  652. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  653. package/lib/esm/appui-react/toolsettings/ToolInformation.js.map +1 -1
  654. package/lib/esm/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  655. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  656. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +25 -18
  657. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  658. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
  659. package/lib/esm/appui-react/ui-items-provider/ProviderItem.js.map +1 -1
  660. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  661. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +8 -10
  662. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  663. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  664. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  665. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  666. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +1 -2
  667. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  668. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +8 -14
  669. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  670. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  671. package/lib/esm/appui-react/ui-items-provider/isProviderItem.js.map +1 -1
  672. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
  673. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  674. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +1 -1
  675. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  676. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  677. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.scss +212 -212
  678. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  679. package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -1
  680. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +3 -3
  681. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  682. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  683. package/lib/esm/appui-react/utils/PropsHelper.js +2 -1
  684. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  685. package/lib/esm/appui-react/utils/ToolbarButtonHelper.js.map +1 -1
  686. package/lib/esm/appui-react/utils/ViewUtilities.js.map +1 -1
  687. package/lib/esm/appui-react/widget-panels/Content.js +7 -8
  688. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  689. package/lib/esm/appui-react/widget-panels/FloatingWidget.js.map +1 -1
  690. package/lib/esm/appui-react/widget-panels/Frontstage.js +30 -39
  691. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  692. package/lib/esm/appui-react/widget-panels/Frontstage.scss +19 -19
  693. package/lib/esm/appui-react/widget-panels/FrontstageContent.js.map +1 -1
  694. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  695. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -1
  696. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  697. package/lib/esm/appui-react/widget-panels/StatusBar.scss +10 -10
  698. package/lib/esm/appui-react/widget-panels/Tab.js +1 -1
  699. package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
  700. package/lib/esm/appui-react/widget-panels/Tab.scss +14 -14
  701. package/lib/esm/appui-react/widget-panels/ToolSettings.js +9 -17
  702. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  703. package/lib/esm/appui-react/widget-panels/ToolSettings.scss +41 -41
  704. package/lib/esm/appui-react/widget-panels/Toolbars.js +2 -3
  705. package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
  706. package/lib/esm/appui-react/widget-panels/Toolbars.scss +20 -20
  707. package/lib/esm/appui-react/widget-panels/useTransientState.js.map +1 -1
  708. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  709. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  710. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  711. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  712. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  713. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +2 -2
  714. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  715. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  716. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  717. package/lib/esm/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  718. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  719. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  720. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  721. package/lib/esm/appui-react/widgets/WidgetConfig.js.map +1 -1
  722. package/lib/esm/appui-react/widgets/WidgetControl.js.map +1 -1
  723. package/lib/esm/appui-react/widgets/WidgetDef.js +1 -1
  724. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  725. package/lib/esm/appui-react/widgets/WidgetHost.js +2 -3
  726. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  727. package/lib/esm/appui-react/widgets/WidgetManager.js.map +1 -1
  728. package/lib/esm/appui-react/widgets/WidgetState.js.map +1 -1
  729. package/lib/esm/appui-react.js.map +1 -1
  730. package/lib/public/locales/en/UiFramework.json +331 -331
  731. package/package.json +16 -16
@@ -1 +1 @@
1
- {"version":3,"file":"ItemDefBase.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemDefBase.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAcnD;;GAEG;AACH,MAAM,OAAgB,WAAW;IAO/B,IAAW,QAAQ,KAAc,OAAO,IA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AED,YAAY,SAAoB;QAvCxB,WAAM,GAAmD,EAAE,CAAC;QAC5D,aAAQ,GAAmD,EAAE,CAAC;QAC9D,iBAAY,GAAmD,EAAE,CAAC;QAEnE,cAAS,GAAY,KAAK,CAAC;QAC1B,cAAS,GAAY,KAAK,CAAC;QAmCjC,WAAW,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC;IAED,IAAW,MAAM,KAAK,OAAO,SAAS,CAAC,CAAC,CAAC;IAGzC,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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Item\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { BadgeType, ConditionalBooleanValue, ConditionalStringValue, StringGetter } from \"@itwin/appui-abstract\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { ItemProps } from \"./ItemProps\";\r\nimport { IconSpec } from \"@itwin/core-react\";\r\n\r\n/** Base state for any 'stateful' React component\r\n * @public\r\n */\r\nexport interface BaseItemState {\r\n isVisible?: boolean; // Default - true\r\n isEnabled?: boolean; // Default - true\r\n isActive?: boolean; // Default - false\r\n isPressed?: boolean; // Default - false\r\n}\r\n\r\n/** The base class for Items.\r\n * @public\r\n */\r\nexport abstract class ItemDefBase {\r\n private _label: string | StringGetter | ConditionalStringValue = \"\";\r\n private _tooltip: string | StringGetter | ConditionalStringValue = \"\";\r\n private _description: string | StringGetter | ConditionalStringValue = \"\";\r\n\r\n public isPressed: boolean = false;\r\n private _isActive: boolean = false;\r\n public get isActive(): boolean { return this._isActive; }\r\n public set isActive(v: boolean) { this._isActive = v; }\r\n public applicationData?: any;\r\n\r\n public isHidden?: boolean | ConditionalBooleanValue;\r\n public isDisabled?: boolean | ConditionalBooleanValue;\r\n\r\n public badgeType?: BadgeType;\r\n\r\n public iconSpec?: IconSpec;\r\n public iconElement?: React.ReactNode;\r\n\r\n public static initializeDef(me: ItemDefBase, itemProps: ItemProps): void {\r\n me.isHidden = itemProps.isHidden;\r\n me.isDisabled = itemProps.isDisabled;\r\n\r\n me.isPressed = (itemProps.isPressed !== undefined) ? itemProps.isPressed : false;\r\n me.isActive = (itemProps.isActive !== undefined) ? itemProps.isActive : false;\r\n\r\n me.badgeType = itemProps.badgeType;\r\n\r\n if (itemProps.applicationData !== undefined)\r\n me.applicationData = itemProps.applicationData;\r\n if (itemProps.iconSpec)\r\n me.iconSpec = itemProps.iconSpec;\r\n if (itemProps.icon)\r\n me.iconSpec = itemProps.icon;\r\n\r\n me._label = PropsHelper.getStringSpec(itemProps.label, itemProps.labelKey);\r\n me._tooltip = PropsHelper.getStringSpec(itemProps.tooltip, itemProps.tooltipKey);\r\n me._description = PropsHelper.getStringSpec(itemProps.description, itemProps.descriptionKey);\r\n }\r\n\r\n constructor(itemProps: ItemProps) {\r\n ItemDefBase.initializeDef(this, itemProps);\r\n }\r\n\r\n public get trayId() { return undefined; }\r\n public abstract get id(): string;\r\n\r\n /** Get the label string */\r\n public get rawLabel(): string | StringGetter | ConditionalStringValue {\r\n return this._label;\r\n }\r\n\r\n /** Get the label string */\r\n public get label(): string {\r\n return PropsHelper.getStringFromSpec(this._label);\r\n }\r\n\r\n /** Set the label.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setLabel(v: string | StringGetter | ConditionalStringValue) {\r\n this._label = v;\r\n }\r\n\r\n /** Get the tooltip string */\r\n public get tooltip(): string {\r\n return PropsHelper.getStringFromSpec(this._tooltip);\r\n }\r\n\r\n /** Set the tooltip.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setTooltip(v: string | StringGetter | ConditionalStringValue) {\r\n this._tooltip = v;\r\n }\r\n\r\n /** Get the description string */\r\n public get description(): string {\r\n return PropsHelper.getStringFromSpec(this._description);\r\n }\r\n\r\n /** Set the description.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setDescription(v: string | StringGetter | ConditionalStringValue) {\r\n this._description = v;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ItemDefBase.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemDefBase.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAcnD;;GAEG;AACH,MAAM,OAAgB,WAAW;IAO/B,IAAW,QAAQ,KAAc,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,IAAW,QAAQ,CAAC,CAAU,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC;IAWhD,MAAM,CAAC,aAAa,CAAC,EAAe,EAAE,SAAoB;QAC/D,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACjC,E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C,CAAC;IAC7C,CAAC;IAED,IAAW,MAAM,KAAK,OAAO,SAAS,CAAC,CAAC,CAAC;IAGzC,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 * as React from \"react\";\nimport { BadgeType, ConditionalBooleanValue, ConditionalStringValue, StringGetter } from \"@itwin/appui-abstract\";\nimport { PropsHelper } from \"../utils/PropsHelper\";\nimport { ItemProps } from \"./ItemProps\";\nimport { 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 { return this._isActive; }\n public set isActive(v: boolean) { this._isActive = v; }\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 = (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)\n me.iconSpec = itemProps.iconSpec;\n if (itemProps.icon)\n me.iconSpec = itemProps.icon;\n\n me._label = PropsHelper.getStringSpec(itemProps.label, itemProps.labelKey);\n me._tooltip = PropsHelper.getStringSpec(itemProps.tooltip, itemProps.tooltipKey);\n me._description = PropsHelper.getStringSpec(itemProps.description, itemProps.descriptionKey);\n }\n\n constructor(itemProps: ItemProps) {\n ItemDefBase.initializeDef(this, itemProps);\n }\n\n public get trayId() { return undefined; }\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 +1 @@
1
- {"version":3,"file":"ItemMap.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemMap.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,GAAwB;IAEnD,YAAY,KAAqB;QAC/B,KAAK,EAAE,CAAC;QAER,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAEM,OAAO,CAAC,IAAiB;QAC9B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEM,QAAQ,CAAC,KAAoB;QAClC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAiB,EAAE,EAAE;YAClC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,KAAkB;IAE9C,YAAY,KAAqB;QAC/B,KAAK,EAAE,CAAC;QAER,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAEM,OAAO,CAAC,IAAiB;QAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,QAAQ,CAAC,KAAoB;QAClC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAiB,EAAE,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Item\r\n */\r\n\r\nimport { ItemDefBase } from \"./ItemDefBase\";\r\n\r\n/** Contains a map of Items.\r\n * @public\r\n */\r\nexport class ItemMap extends Map<string, ItemDefBase> {\r\n\r\n constructor(items?: ItemDefBase[]) {\r\n super();\r\n\r\n if (items && typeof items === \"object\")\r\n this.addItems(items);\r\n }\r\n\r\n public addItem(item: ItemDefBase) {\r\n this.set(item.id, item);\r\n }\r\n\r\n public addItems(items: ItemDefBase[]) {\r\n items.forEach((item: ItemDefBase) => {\r\n this.set(item.id, item);\r\n });\r\n }\r\n}\r\n\r\n/** Contains a list of Items.\r\n * @public\r\n */\r\nexport class ItemList extends Array<ItemDefBase> {\r\n\r\n constructor(items?: ItemDefBase[]) {\r\n super();\r\n\r\n if (items && typeof items === \"object\")\r\n this.addItems(items);\r\n }\r\n\r\n public addItem(item: ItemDefBase) {\r\n this.push(item);\r\n }\r\n\r\n public addItems(items: ItemDefBase[]) {\r\n items.forEach((item: ItemDefBase) => {\r\n this.push(item);\r\n });\r\n }\r\n\r\n public get items(): ItemDefBase[] {\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ItemMap.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemMap.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,GAAwB;IAEnD,YAAY,KAAqB;QAC/B,KAAK,EAAE,CAAC;QAER,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAEM,OAAO,CAAC,IAAiB;QAC9B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEM,QAAQ,CAAC,KAAoB;QAClC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAiB,EAAE,EAAE;YAClC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,KAAkB;IAE9C,YAAY,KAAqB;QAC/B,KAAK,EAAE,CAAC;QAER,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAEM,OAAO,CAAC,IAAiB;QAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,QAAQ,CAAC,KAAoB;QAClC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAiB,EAAE,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAW,KAAK;QACd,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 { ItemDefBase } from \"./ItemDefBase\";\n\n/** Contains a map of Items.\n * @public\n */\nexport class ItemMap extends Map<string, ItemDefBase> {\n\n constructor(items?: ItemDefBase[]) {\n super();\n\n if (items && typeof items === \"object\")\n this.addItems(items);\n }\n\n public addItem(item: ItemDefBase) {\n this.set(item.id, item);\n }\n\n public addItems(items: ItemDefBase[]) {\n items.forEach((item: ItemDefBase) => {\n this.set(item.id, item);\n });\n }\n}\n\n/** Contains a list of Items.\n * @public\n */\nexport class ItemList extends Array<ItemDefBase> {\n\n constructor(items?: ItemDefBase[]) {\n super();\n\n if (items && typeof items === \"object\")\n this.addItems(items);\n }\n\n public addItem(item: ItemDefBase) {\n this.push(item);\n }\n\n public addItems(items: ItemDefBase[]) {\n items.forEach((item: ItemDefBase) => {\n this.push(item);\n });\n }\n\n public get items(): ItemDefBase[] {\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ItemProps.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Item\r\n */\r\n\r\nimport { BadgeType, CommandHandler, ConditionalBooleanValue, ConditionalStringValue, StringGetter } from \"@itwin/appui-abstract\";\r\nimport { IconProps, IconSpec } from \"@itwin/core-react\";\r\n\r\n/** Definition that specifies properties shared between many ConfigurableUi components.\r\n * @public\r\n */\r\nexport interface ItemProps extends IconProps {\r\n /** if true component will be hidden - defaults to false */\r\n isHidden?: boolean | ConditionalBooleanValue;\r\n /** if true component will be disabled - defaults to false */\r\n isDisabled?: boolean | ConditionalBooleanValue;\r\n /** if set, component will be considered \"active\" an will display an \"active stripe\" - defaults to false */\r\n isActive?: boolean;\r\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. */\r\n isPressed?: boolean;\r\n /** can be used by application to store miscellaneous data. */\r\n applicationData?: any;\r\n /** Badge to be overlaid on the item. */\r\n badgeType?: BadgeType;\r\n /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */\r\n icon?: IconSpec;\r\n\r\n /** if set, it is used to explicitly set the label shown by a component. */\r\n label?: string | StringGetter | ConditionalStringValue;\r\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. */\r\n labelKey?: string;\r\n\r\n /** if set, it is used to explicitly set the description shown by a component. */\r\n description?: string | StringGetter | ConditionalStringValue;\r\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. */\r\n descriptionKey?: string;\r\n /** used to explicitly set the tooltip shown by a component. */\r\n tooltip?: string | StringGetter | ConditionalStringValue;\r\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. */\r\n tooltipKey?: string;\r\n}\r\n\r\n/** Properties for a Tool item with a tool id.\r\n * @public\r\n */\r\nexport interface ToolItemProps extends ItemProps, CommandHandler {\r\n toolId: string;\r\n}\r\n\r\n/** Properties for a Command item.\r\n * @public\r\n */\r\nexport interface CommandItemProps extends ItemProps, CommandHandler {\r\n commandId?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"ItemProps.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;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 { BadgeType, CommandHandler, ConditionalBooleanValue, ConditionalStringValue, StringGetter } from \"@itwin/appui-abstract\";\nimport { 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 +1 @@
1
- {"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/MenuItem.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyB,uBAAuB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,cAAc,EAAY,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe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AAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;IAEO,MAAM,CAAC,kBAAkB,CAAC,IAAc,EAAE,KAAa;QAC7D,IAAI,IAAI,GAAoB,IAAI,CAAC;QACjC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/B,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACzC,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,MAAM,UAAU,GAAY,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAE9E,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,MAAM,GAAG,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACpC,IAAI,GAAG,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,IAC7H,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,IAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,IACjG,KAAK,CACS,CAClB,CAAC;aACH;SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Item\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { AbstractMenuItemProps, ConditionalBooleanValue, UiError } from \"@itwin/appui-abstract\";\r\nimport { ContextMenuItem, ContextSubMenu, IconSpec } from \"@itwin/core-react\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\r\nimport { CommandItemDef } from \"./CommandItemDef\";\r\nimport { ItemDefBase } from \"./ItemDefBase\";\r\n\r\n/** Menu Item Properties\r\n * @public\r\n */\r\nexport type MenuItemProps = AbstractMenuItemProps;\r\n\r\n/** Menu Item\r\n * @alpha\r\n */\r\nexport class MenuItem extends ItemDefBase {\r\n\r\n private _id = \"\";\r\n private _actionItem?: ActionButtonItemDef;\r\n private _submenu: MenuItem[];\r\n private _onSelection?: () => void;\r\n\r\n /** onSelection is an optional parameter typically supplied to allow menu parent to close context menu when a menu item is selected. */\r\n constructor(props: MenuItemProps, onSelection?: () => void) {\r\n super(props);\r\n\r\n this._id = props.id;\r\n this._submenu = new Array<MenuItem>();\r\n this._onSelection = onSelection;\r\n\r\n if (props.item) {\r\n this._actionItem = new CommandItemDef(props.item);\r\n\r\n // Copy over icon, label & badgeType from the item\r\n if (!this.iconSpec)\r\n this.iconSpec = this._actionItem.iconSpec;\r\n if (!this.label)\r\n this.setLabel(this._actionItem.label);\r\n if (!this.badgeType)\r\n this.badgeType = this._actionItem.badgeType;\r\n if (!this.isDisabled)\r\n this.isDisabled = this._actionItem.isDisabled;\r\n } else if (props.submenu) {\r\n props.submenu.forEach((childProps: MenuItemProps) => {\r\n const childItem = new MenuItem(childProps, onSelection);\r\n this._submenu.push(childItem);\r\n });\r\n } else {\r\n throw new UiError(UiFramework.loggerCategory(this), `Either 'item' or 'submenu' must be specified for '${props.id}'.`);\r\n }\r\n\r\n this.iconRightSpec = props.iconRight;\r\n }\r\n\r\n public get id(): string { return this._id; }\r\n\r\n public get submenu(): MenuItem[] {\r\n return this._submenu;\r\n }\r\n\r\n public get actionItem(): ActionButtonItemDef | undefined {\r\n return this._actionItem;\r\n }\r\n\r\n public iconRightSpec?: IconSpec;\r\n\r\n public itemPicked(): void {\r\n setTimeout(() => {\r\n // istanbul ignore else\r\n if (this._actionItem)\r\n this._actionItem.execute();\r\n });\r\n\r\n // istanbul ignore else\r\n if (this._onSelection)\r\n this._onSelection();\r\n }\r\n\r\n}\r\n\r\n/** Menu Item helper methods\r\n * @alpha\r\n */\r\nexport class MenuItemHelpers {\r\n\r\n public static createMenuItems(itemPropsList: MenuItemProps[], onSelection?: () => void): MenuItem[] {\r\n const menuItems = new Array<MenuItem>();\r\n itemPropsList.forEach((itemProps: MenuItemProps) => {\r\n menuItems.push(new MenuItem(itemProps, onSelection));\r\n });\r\n return menuItems;\r\n }\r\n\r\n public static createMenuItemNodes(itemList: MenuItem[]): React.ReactNode[] {\r\n const itemNodes: React.ReactNode[] = [];\r\n\r\n itemList.forEach((item: MenuItem, index: number) => {\r\n const reactItem = this.createMenuItemNode(item, index);\r\n // istanbul ignore else\r\n if (reactItem)\r\n itemNodes.push(reactItem);\r\n });\r\n\r\n return itemNodes;\r\n }\r\n\r\n private static createMenuItemNode(item: MenuItem, index: number): React.ReactNode {\r\n let node: React.ReactNode = null;\r\n const label = item.label;\r\n const iconSpec = item.iconSpec;\r\n const iconRightSpec = item.iconRightSpec;\r\n const badgeType = item.badgeType;\r\n const isDisabled: boolean = ConditionalBooleanValue.getValue(item.isDisabled);\r\n\r\n if (item.actionItem) {\r\n const sel = () => item.itemPicked();\r\n node = (\r\n <ContextMenuItem key={index} onSelect={sel} icon={iconSpec} iconRight={iconRightSpec} badgeType={badgeType} disabled={isDisabled}>\r\n {label}\r\n </ContextMenuItem>\r\n );\r\n } else {\r\n // istanbul ignore else\r\n if (item.submenu && item.submenu.length > 0) {\r\n const items = this.createMenuItemNodes(item.submenu);\r\n\r\n node = (\r\n <ContextSubMenu key={index} icon={iconSpec} label={label} badgeType={badgeType} disabled={isDisabled}>\r\n {items}\r\n </ContextSubMenu>\r\n );\r\n }\r\n }\r\n\r\n return node;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/MenuItem.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyB,uBAAuB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,cAAc,EAAY,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IAOvC,uIAAuI;IACvI,YAAY,KAAoB,EAAE,WAAwB;QACxD,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;gBAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC5C,IAAI,CAAC,IAAI,CAAC,KAAK;gBACb,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,K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EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,IAC7H,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,IAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,IACjG,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 { AbstractMenuItemProps, ConditionalBooleanValue, UiError } from \"@itwin/appui-abstract\";\nimport { ContextMenuItem, ContextSubMenu, IconSpec } from \"@itwin/core-react\";\nimport { UiFramework } from \"../UiFramework\";\nimport { 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\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)\n this.iconSpec = this._actionItem.iconSpec;\n if (!this.label)\n this.setLabel(this._actionItem.label);\n if (!this.badgeType)\n this.badgeType = this._actionItem.badgeType;\n if (!this.isDisabled)\n 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 throw new UiError(UiFramework.loggerCategory(this), `Either 'item' or 'submenu' must be specified for '${props.id}'.`);\n }\n\n this.iconRightSpec = props.iconRight;\n }\n\n public get id(): string { return this._id; }\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)\n this._actionItem.execute();\n });\n\n // istanbul ignore else\n if (this._onSelection)\n this._onSelection();\n }\n\n}\n\n/** Menu Item helper methods\n * @alpha\n */\nexport class MenuItemHelpers {\n\n public static createMenuItems(itemPropsList: MenuItemProps[], onSelection?: () => void): 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)\n itemNodes.push(reactItem);\n });\n\n return itemNodes;\n }\n\n private static createMenuItemNode(item: MenuItem, index: number): 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(item.isDisabled);\n\n if (item.actionItem) {\n const sel = () => item.itemPicked();\n node = (\n <ContextMenuItem key={index} onSelect={sel} icon={iconSpec} iconRight={iconRightSpec} badgeType={badgeType} disabled={isDisabled}>\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 key={index} icon={iconSpec} label={label} badgeType={badgeType} disabled={isDisabled}>\n {items}\n </ContextSubMenu>\n );\n }\n }\n\n return node;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/SelectionScope.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yDAAO,CAAA;IACP,2DAAQ,CAAA;IACR,iEAAW,CAAA;IACX,2DAAQ,CAAA;IACR,qDAAK,CAAA;AACP,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Frontstage\r\n */\r\n\r\n/** Selection Scope enum.\r\n * @public\r\n */\r\nexport enum SelectionScope {\r\n Element,\r\n Assembly,\r\n TopAssembly,\r\n Category,\r\n Model,\r\n}\r\n"]}
1
+ {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/SelectionScope.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yDAAO,CAAA;IACP,2DAAQ,CAAA;IACR,iEAAW,CAAA;IACX,2DAAQ,CAAA;IACR,qDAAK,CAAA;AACP,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB","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\n/** Selection Scope enum.\n * @public\n */\nexport enum SelectionScope {\n Element,\n Assembly,\n TopAssembly,\n Category,\n Model,\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ToolItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ToolItemDef.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAQ,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,mBAAmB;IAGlD,YAAY,aAA4B,EAAE,cAAmC;QAC3E,KAAK,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;QAHhC,WAAM,GAAW,EAAE,CAAC;QAKzB,IAAI,aAAa,CAAC,OAAO,EAAE;YACzB,IAAI,CAAC,eAAe,GAAG,EAAE,OAAO,EAAE,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC,cAAc,EAAE,CAAC;SAC/I;QAED,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;IACrC,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,4DAA4D;IACrD,MAAM,CAAC,iBAAiB,CAAC,IAAiB,EAAE,IAAa,EAAE,GAAG,IAAW;QAC9E,OAAO,IAAI,WAAW,CAAC;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;YAC3F,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO;YACzB,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW;YACnC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;SAC/D,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Item\r\n */\r\n\r\nimport { IModelApp, Tool } from \"@itwin/core-frontend\";\r\nimport { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\r\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\r\nimport { ToolItemProps } from \"./ItemProps\";\r\n\r\n/** An Item that starts the execution of a Tool.\r\n * @public\r\n */\r\nexport class ToolItemDef extends ActionButtonItemDef {\r\n public toolId: string = \"\";\r\n\r\n constructor(toolItemProps: ToolItemProps, onItemExecuted?: OnItemExecutedFunc) {\r\n super(toolItemProps, onItemExecuted);\r\n\r\n if (toolItemProps.execute) {\r\n this._commandHandler = { execute: toolItemProps.execute, parameters: toolItemProps.parameters, getCommandArgs: toolItemProps.getCommandArgs };\r\n }\r\n\r\n this.toolId = toolItemProps.toolId;\r\n }\r\n\r\n public get id(): string {\r\n return this.toolId;\r\n }\r\n\r\n /** Create a ToolItemDef that will run a registered tool. */\r\n public static getItemDefForTool(tool: typeof Tool, icon?: string, ...args: any[]): ToolItemDef {\r\n return new ToolItemDef({\r\n toolId: tool.toolId,\r\n icon: icon ? icon : (tool.iconSpec && tool.iconSpec.length > 0) ? tool.iconSpec : undefined,\r\n label: () => tool.flyover,\r\n description: () => tool.description,\r\n execute: async () => IModelApp.tools.run(tool.toolId, ...args),\r\n });\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ToolItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ToolItemDef.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAQ,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,mBAAmB;IAGlD,YAAY,aAA4B,EAAE,cAAmC;QAC3E,KAAK,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;QAHhC,WAAM,GAAW,EAAE,CAAC;QAKzB,IAAI,aAAa,CAAC,OAAO,EAAE;YACzB,IAAI,CAAC,eAAe,GAAG,EAAE,OAAO,EAAE,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC,cAAc,EAAE,CAAC;SAC/I;QAED,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;IACrC,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,4DAA4D;IACrD,MAAM,CAAC,iBAAiB,CAAC,IAAiB,EAAE,IAAa,EAAE,GAAG,IAAW;QAC9E,OAAO,IAAI,WAAW,CAAC;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;YAC3F,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO;YACzB,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW;YACnC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;SAC/D,CAAC,CAAC;IACL,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 { IModelApp, Tool } from \"@itwin/core-frontend\";\nimport { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport { ToolItemProps } from \"./ItemProps\";\n\n/** An Item that starts the execution of a Tool.\n * @public\n */\nexport class ToolItemDef extends ActionButtonItemDef {\n public toolId: string = \"\";\n\n constructor(toolItemProps: ToolItemProps, onItemExecuted?: OnItemExecutedFunc) {\n super(toolItemProps, onItemExecuted);\n\n if (toolItemProps.execute) {\n this._commandHandler = { execute: toolItemProps.execute, parameters: toolItemProps.parameters, getCommandArgs: toolItemProps.getCommandArgs };\n }\n\n this.toolId = toolItemProps.toolId;\n }\n\n public get id(): string {\n return this.toolId;\n }\n\n /** Create a ToolItemDef that will run a registered tool. */\n public static getItemDefForTool(tool: typeof Tool, icon?: string, ...args: any[]): ToolItemDef {\n return new ToolItemDef({\n toolId: tool.toolId,\n icon: icon ? icon : (tool.iconSpec && tool.iconSpec.length > 0) ? tool.iconSpec : undefined,\n label: () => tool.flyover,\n description: () => tool.description,\n execute: async () => IModelApp.tools.run(tool.toolId, ...args),\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelConfig.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelConfig.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Frontstage\r\n */\r\n\r\nimport { WidgetConfig } from \"../widgets/WidgetConfig\";\r\nimport { StagePanelState as StagePanelState } from \"./StagePanelDef\";\r\n\r\n/** Configuration from which a stage panel is created.\r\n * @public\r\n */\r\nexport interface StagePanelConfig {\r\n /** Default Panel state. Controls how the panel is initially displayed. Defaults to StagePanelState.Open. */\r\n readonly defaultState?: StagePanelState;\r\n /** Maximum size of the panel. */\r\n readonly maxSize?: StagePanelMaxSizeSpec;\r\n /** Minimum size of the panel. */\r\n readonly minSize?: number;\r\n /** Indicates whether the panel is pinned. Defaults to true. */\r\n readonly pinned?: boolean;\r\n /** Indicates whether the panel is resizable. Defaults to true. */\r\n readonly resizable?: boolean;\r\n /** Default size of the panel. */\r\n readonly size?: number;\r\n /** Configuration of the panel sections. */\r\n readonly sections?: StagePanelSectionsConfig;\r\n}\r\n\r\n/** Configuration from which a stage panel section is created.\r\n * @public\r\n */\r\nexport type StagePanelSectionConfig = ReadonlyArray<WidgetConfig>;\r\n\r\n/** Configuration from which stage panel sections are created.\r\n * @public\r\n */\r\nexport interface StagePanelSectionsConfig {\r\n /** Configuration of the `start` section. */\r\n readonly start?: StagePanelSectionConfig;\r\n /** Configuration of the `end` section. */\r\n readonly end?: StagePanelSectionConfig;\r\n}\r\n\r\n/** Available units of panel max size. Pixels or percentage of App size.\r\n * @note Percentage of App `height` is used for top/bottom panel and percentage of App `width` is used for left/right panel.\r\n * @public\r\n */\r\nexport type StagePanelMaxSizeSpec = number | { percentage: number };\r\n"]}
1
+ {"version":3,"file":"StagePanelConfig.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelConfig.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;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 { WidgetConfig } from \"../widgets/WidgetConfig\";\nimport { StagePanelState as StagePanelState } from \"./StagePanelDef\";\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"]}
@@ -114,10 +114,9 @@ export class StagePanelDef extends WidgetHost {
114
114
  get location() { return this._location; }
115
115
  /** Panel state. Defaults to PanelState.Open. */
116
116
  get panelState() {
117
- var _a;
118
117
  // istanbul ignore else
119
118
  if (UiFramework.frontstages.activeFrontstageDef) {
120
- const [state] = (_a = UiFramework.frontstages.activeFrontstageDef) === null || _a === void 0 ? void 0 : _a.getPanelCurrentState(this);
119
+ const [state] = UiFramework.frontstages.activeFrontstageDef?.getPanelCurrentState(this);
121
120
  return state;
122
121
  }
123
122
  // istanbul ignore next
@@ -165,7 +164,6 @@ export class StagePanelDef extends WidgetHost {
165
164
  }
166
165
  /** @internal */
167
166
  initializeFromConfig(config, location) {
168
- var _a;
169
167
  this._location = location;
170
168
  if (!config)
171
169
  return;
@@ -177,12 +175,12 @@ export class StagePanelDef extends WidgetHost {
177
175
  this._defaultState = config.defaultState;
178
176
  this._panelState = config.defaultState;
179
177
  }
180
- this._resizable = (_a = config.resizable) !== null && _a !== void 0 ? _a : true;
178
+ this._resizable = config.resizable ?? true;
181
179
  if (config.pinned !== undefined)
182
180
  this._pinned = config.pinned;
183
181
  const sections = config.sections;
184
- this._start.initializeFromConfig(sections === null || sections === void 0 ? void 0 : sections.start);
185
- this._end.initializeFromConfig(sections === null || sections === void 0 ? void 0 : sections.end);
182
+ this._start.initializeFromConfig(sections?.start);
183
+ this._end.initializeFromConfig(sections?.end);
186
184
  }
187
185
  /** Gets the list of Widgets. */
188
186
  get widgetDefs() {
@@ -209,7 +207,7 @@ export class StagePanelDef extends WidgetHost {
209
207
  export class StagePanelSectionDef extends WidgetHost {
210
208
  /** @internal */
211
209
  initializeFromConfig(config) {
212
- config === null || config === void 0 ? void 0 : config.forEach((widgetConfig) => {
210
+ config?.forEach((widgetConfig) => {
213
211
  const widgetDef = WidgetDef.create(widgetConfig);
214
212
  this.addWidgetDef(widgetDef);
215
213
  });
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelDef.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelDef.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,OAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,sBA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AAI,CAAC,CAAC;IACpC,KAAK,CAAC,IAAI,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;AAClG,CAAC,CAAC,CAAC;AAEH,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAiF,OAAO,CAAC,CAClH,QAA8B,EAC9B,IAAe,EACf,MAAe,EACf,EAAE;IACF,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Frontstage\r\n */\r\n\r\nimport produce, { Draft } from \"immer\";\r\nimport { UiEvent } from \"@itwin/appui-abstract\";\r\nimport { NineZoneState, PanelSide } from \"@itwin/appui-layout-react\";\r\nimport { WidgetDef } from \"../widgets/WidgetDef\";\r\nimport { WidgetHost } from \"../widgets/WidgetHost\";\r\nimport { StagePanelConfig, StagePanelMaxSizeSpec, StagePanelSectionConfig } from \"./StagePanelConfig\";\r\nimport { StagePanelLocation } from \"./StagePanelLocation\";\r\nimport { StagePanelSection } from \"./StagePanelSection\";\r\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\r\nimport { UiFramework } from \"../UiFramework\";\r\n\r\n/** Enum for StagePanel state.\r\n * @public\r\n */\r\nexport enum StagePanelState {\r\n Off,\r\n Minimized,\r\n Open,\r\n Popup,\r\n}\r\n\r\n/** Panel state changed event args interface.\r\n * @public\r\n */\r\nexport interface PanelStateChangedEventArgs {\r\n panelDef: StagePanelDef;\r\n panelState: StagePanelState;\r\n}\r\n\r\n/** Panel state changed event class.\r\n * @beta\r\n */\r\nexport class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> { }\r\n\r\n/** @internal */\r\nexport interface PanelSizeChangedEventArgs {\r\n panelDef: StagePanelDef;\r\n size: number | undefined;\r\n}\r\n\r\n/** @internal */\r\nexport class PanelSizeChangedEvent extends UiEvent<PanelSizeChangedEventArgs> { }\r\n\r\n/** Panel pinned changed event args interface.\r\n * @public\r\n */\r\nexport interface PanelPinnedChangedEventArgs {\r\n panelDef: StagePanelDef;\r\n pinned: boolean;\r\n}\r\n\r\n/**\r\n * A StagePanelDef represents each Stage Panel within a Frontstage.\r\n * @public\r\n */\r\nexport class StagePanelDef extends WidgetHost {\r\n private _panelState = StagePanelState.Open;\r\n private _defaultState = StagePanelState.Open;\r\n private _maxSizeSpec: StagePanelMaxSizeSpec | undefined;\r\n private _minSize: number | undefined;\r\n private _size: number | undefined;\r\n private _defaultSize: number | undefined;\r\n private _resizable = true;\r\n private _pinned = true;\r\n private _location: StagePanelLocation = StagePanelLocation.Left;\r\n private _start = new StagePanelSectionDef();\r\n private _end = new StagePanelSectionDef();\r\n\r\n /** Constructor for PanelDef.\r\n */\r\n constructor() {\r\n super();\r\n }\r\n\r\n /** @internal */\r\n public get maxSizeSpec() { return this._maxSizeSpec; }\r\n\r\n /** @internal */\r\n public get minSize() { return this._minSize; }\r\n\r\n /** Default size of the panel */\r\n public get size() {\r\n // istanbul ignore else\r\n if (UiFramework.frontstages.activeFrontstageDef) {\r\n const [_, size] = UiFramework.frontstages.activeFrontstageDef.getPanelCurrentState(this);\r\n return size;\r\n }\r\n // istanbul ignore next\r\n return this._defaultSize;\r\n }\r\n\r\n public set size(size) {\r\n if (this._size === size)\r\n return;\r\n\r\n // istanbul ignore else\r\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\r\n // istanbul ignore else\r\n if (frontstageDef && frontstageDef.nineZoneState) {\r\n const side = toPanelSide(this.location);\r\n frontstageDef.nineZoneState = setPanelSize(frontstageDef.nineZoneState, side, size);\r\n const panel = frontstageDef.nineZoneState.panels[side];\r\n if (panel.size === this._size)\r\n return;\r\n size = panel.size;\r\n }\r\n this._size = size;\r\n InternalFrontstageManager.onPanelSizeChangedEvent.emit({\r\n panelDef: this,\r\n size,\r\n });\r\n }\r\n\r\n /** Indicates whether the panel is resizable. */\r\n // istanbul ignore next\r\n public get resizable(): boolean { return this._resizable; }\r\n\r\n /** Indicates whether the panel is pinned. */\r\n public get pinned(): boolean {\r\n if (UiFramework.frontstages.activeFrontstageDef) {\r\n const state = UiFramework.frontstages.activeFrontstageDef.getPanelCurrentState(this);\r\n return state[2];\r\n }\r\n // istanbul ignore next\r\n return false;\r\n }\r\n\r\n public set pinned(pinned: boolean) {\r\n if (this._pinned === pinned)\r\n return;\r\n\r\n // istanbul ignore else\r\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\r\n // istanbul ignore else\r\n if (frontstageDef && frontstageDef.nineZoneState) {\r\n const side = toPanelSide(this.location);\r\n frontstageDef.nineZoneState = setPanelPinned(frontstageDef.nineZoneState, side, pinned);\r\n }\r\n this._pinned = pinned;\r\n UiFramework.frontstages.onPanelPinnedChangedEvent.emit({\r\n panelDef: this,\r\n pinned,\r\n });\r\n }\r\n\r\n /** Location of panel. */\r\n public get location(): StagePanelLocation { return this._location; }\r\n\r\n /** Panel state. Defaults to PanelState.Open. */\r\n public get panelState() {\r\n // istanbul ignore else\r\n if (UiFramework.frontstages.activeFrontstageDef) {\r\n const [state] = UiFramework.frontstages.activeFrontstageDef?.getPanelCurrentState(this);\r\n return state;\r\n }\r\n // istanbul ignore next\r\n return this.defaultState;\r\n }\r\n\r\n public set panelState(panelState: StagePanelState) {\r\n if (panelState === this._panelState)\r\n return;\r\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\r\n if (frontstageDef && frontstageDef.nineZoneState) {\r\n const side = toPanelSide(this.location);\r\n frontstageDef.nineZoneState = produce(frontstageDef.nineZoneState, (nineZone) => {\r\n const panel = nineZone.panels[side];\r\n switch (panelState) {\r\n case StagePanelState.Minimized: {\r\n panel.collapsed = true;\r\n break;\r\n }\r\n case StagePanelState.Open: {\r\n panel.collapsed = false;\r\n break;\r\n }\r\n case StagePanelState.Off: {\r\n panel.collapsed = true;\r\n break;\r\n }\r\n }\r\n });\r\n }\r\n this._panelState = panelState;\r\n UiFramework.frontstages.onPanelStateChangedEvent.emit({\r\n panelDef: this,\r\n panelState,\r\n });\r\n }\r\n\r\n /** @internal */\r\n public get defaultState() { return this._defaultState; }\r\n\r\n /** @internal */\r\n public get defaultSize() { return this._defaultSize; }\r\n\r\n /** @internal */\r\n public static create(config: StagePanelConfig, location: StagePanelLocation) {\r\n const def = new StagePanelDef();\r\n def.initializeFromConfig(config, location);\r\n return def;\r\n }\r\n\r\n /** @internal */\r\n public initializeFromConfig(config: StagePanelConfig | undefined, location: StagePanelLocation): void {\r\n this._location = location;\r\n\r\n if (!config)\r\n return;\r\n this._size = config.size;\r\n this._defaultSize = config.size;\r\n this._maxSizeSpec = config.maxSize;\r\n this._minSize = config.minSize;\r\n if (config.defaultState !== undefined) {\r\n this._defaultState = config.defaultState;\r\n this._panelState = config.defaultState;\r\n }\r\n this._resizable = config.resizable ?? true;\r\n if (config.pinned !== undefined)\r\n this._pinned = config.pinned;\r\n\r\n const sections = config.sections;\r\n this._start.initializeFromConfig(sections?.start);\r\n this._end.initializeFromConfig(sections?.end);\r\n }\r\n\r\n /** Gets the list of Widgets. */\r\n public override get widgetDefs(): ReadonlyArray<WidgetDef> {\r\n return [...super.widgetDefs, ...this._start.widgetDefs, ...this._end.widgetDefs];\r\n }\r\n\r\n /** @internal */\r\n public override updateDynamicWidgetDefs(stageId: string, stageUsage: string, location: StagePanelLocation, _section: StagePanelSection | undefined,\r\n allStageWidgetDefs: WidgetDef[]) {\r\n this._start.updateDynamicWidgetDefs(stageId, stageUsage, location, StagePanelSection.Start, allStageWidgetDefs);\r\n this._end.updateDynamicWidgetDefs(stageId, stageUsage, location, StagePanelSection.End, allStageWidgetDefs);\r\n }\r\n\r\n /** @internal */\r\n public getPanelSectionDef(section: StagePanelSection) {\r\n switch (section) {\r\n case StagePanelSection.Start: {\r\n return this._start;\r\n }\r\n case StagePanelSection.End: {\r\n return this._end;\r\n }\r\n }\r\n }\r\n}\r\n\r\n/** @internal */\r\nexport class StagePanelSectionDef extends WidgetHost {\r\n /** @internal */\r\n public initializeFromConfig(config: StagePanelSectionConfig | undefined) {\r\n config?.forEach((widgetConfig) => {\r\n const widgetDef = WidgetDef.create(widgetConfig);\r\n this.addWidgetDef(widgetDef);\r\n });\r\n }\r\n}\r\n\r\n/** @internal */\r\nexport function toPanelSide(location: StagePanelLocation): PanelSide {\r\n switch (location) {\r\n case StagePanelLocation.Bottom:\r\n return \"bottom\";\r\n case StagePanelLocation.Left:\r\n return \"left\";\r\n case StagePanelLocation.Right:\r\n return \"right\";\r\n case StagePanelLocation.Top:\r\n return \"top\";\r\n }\r\n}\r\n\r\n/** @internal */\r\nexport const setPanelSize: (nineZone: NineZoneState, side: PanelSide, size: number | undefined) => NineZoneState = produce((\r\n nineZone: Draft<NineZoneState>,\r\n side: PanelSide,\r\n size: number | undefined,\r\n) => {\r\n const panel = nineZone.panels[side];\r\n panel.size = size === undefined ? size : Math.min(Math.max(size, panel.minSize), panel.maxSize);\r\n});\r\n\r\n/** @internal */\r\nexport const setPanelPinned: (nineZone: NineZoneState, side: PanelSide, pinned: boolean) => NineZoneState = produce((\r\n nineZone: Draft<NineZoneState>,\r\n side: PanelSide,\r\n pinned: boolean,\r\n) => {\r\n const panel = nineZone.panels[side];\r\n panel.pinned = pinned;\r\n});\r\n"]}
1
+ {"version":3,"file":"StagePanelDef.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelDef.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,OAAkB,MAAM,OAAO,CAAC;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AAC,CAAC;IACpC,KAAK,CAAC,IAAI,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;AAClG,CAAC,CAAC,CAAC;AAEH,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAiF,OAAO,CAAC,CAClH,QAA8B,EAC9B,IAAe,EACf,MAAe,EACf,EAAE;IACF,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,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 Frontstage\n */\n\nimport produce, { Draft } from \"immer\";\nimport { UiEvent } from \"@itwin/appui-abstract\";\nimport { NineZoneState, PanelSide } from \"@itwin/appui-layout-react\";\nimport { WidgetDef } from \"../widgets/WidgetDef\";\nimport { WidgetHost } from \"../widgets/WidgetHost\";\nimport { StagePanelConfig, StagePanelMaxSizeSpec, StagePanelSectionConfig } from \"./StagePanelConfig\";\nimport { StagePanelLocation } from \"./StagePanelLocation\";\nimport { StagePanelSection } from \"./StagePanelSection\";\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\nimport { UiFramework } from \"../UiFramework\";\n\n/** Enum for StagePanel state.\n * @public\n */\nexport enum StagePanelState {\n Off,\n Minimized,\n Open,\n Popup,\n}\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 */\nexport class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> { }\n\n/** @internal */\nexport interface PanelSizeChangedEventArgs {\n panelDef: StagePanelDef;\n size: number | undefined;\n}\n\n/** @internal */\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 _panelState = StagePanelState.Open;\n private _defaultState = StagePanelState.Open;\n private _maxSizeSpec: StagePanelMaxSizeSpec | undefined;\n private _minSize: number | undefined;\n private _size: number | undefined;\n private _defaultSize: number | undefined;\n private _resizable = true;\n private _pinned = true;\n private _location: StagePanelLocation = StagePanelLocation.Left;\n private _start = new StagePanelSectionDef();\n private _end = new StagePanelSectionDef();\n\n /** Constructor for PanelDef.\n */\n constructor() {\n super();\n }\n\n /** @internal */\n public get maxSizeSpec() { return this._maxSizeSpec; }\n\n /** @internal */\n public get minSize() { return this._minSize; }\n\n /** Default size of the panel */\n public get size() {\n // istanbul ignore else\n if (UiFramework.frontstages.activeFrontstageDef) {\n const [_, size] = UiFramework.frontstages.activeFrontstageDef.getPanelCurrentState(this);\n return size;\n }\n // istanbul ignore next\n return this._defaultSize;\n }\n\n public set size(size) {\n if (this._size === size)\n return;\n\n // istanbul ignore else\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n // istanbul ignore else\n if (frontstageDef && frontstageDef.nineZoneState) {\n const side = toPanelSide(this.location);\n frontstageDef.nineZoneState = setPanelSize(frontstageDef.nineZoneState, side, size);\n const panel = frontstageDef.nineZoneState.panels[side];\n if (panel.size === this._size)\n return;\n size = panel.size;\n }\n this._size = size;\n InternalFrontstageManager.onPanelSizeChangedEvent.emit({\n panelDef: this,\n size,\n });\n }\n\n /** Indicates whether the panel is resizable. */\n // istanbul ignore next\n public get resizable(): boolean { return this._resizable; }\n\n /** Indicates whether the panel is pinned. */\n public get pinned(): boolean {\n if (UiFramework.frontstages.activeFrontstageDef) {\n const state = UiFramework.frontstages.activeFrontstageDef.getPanelCurrentState(this);\n return state[2];\n }\n // istanbul ignore next\n return false;\n }\n\n public set pinned(pinned: boolean) {\n if (this._pinned === pinned)\n return;\n\n // istanbul ignore else\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n // istanbul ignore else\n if (frontstageDef && frontstageDef.nineZoneState) {\n const side = toPanelSide(this.location);\n frontstageDef.nineZoneState = setPanelPinned(frontstageDef.nineZoneState, side, pinned);\n }\n this._pinned = pinned;\n UiFramework.frontstages.onPanelPinnedChangedEvent.emit({\n panelDef: this,\n pinned,\n });\n }\n\n /** Location of panel. */\n public get location(): StagePanelLocation { return this._location; }\n\n /** Panel state. Defaults to PanelState.Open. */\n public get panelState() {\n // istanbul ignore else\n if (UiFramework.frontstages.activeFrontstageDef) {\n const [state] = UiFramework.frontstages.activeFrontstageDef?.getPanelCurrentState(this);\n return state;\n }\n // istanbul ignore next\n return this.defaultState;\n }\n\n public set panelState(panelState: StagePanelState) {\n if (panelState === this._panelState)\n return;\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (frontstageDef && frontstageDef.nineZoneState) {\n const side = toPanelSide(this.location);\n frontstageDef.nineZoneState = produce(frontstageDef.nineZoneState, (nineZone) => {\n const panel = nineZone.panels[side];\n switch (panelState) {\n case StagePanelState.Minimized: {\n panel.collapsed = true;\n break;\n }\n case StagePanelState.Open: {\n panel.collapsed = false;\n break;\n }\n case StagePanelState.Off: {\n panel.collapsed = true;\n break;\n }\n }\n });\n }\n this._panelState = panelState;\n UiFramework.frontstages.onPanelStateChangedEvent.emit({\n panelDef: this,\n panelState,\n });\n }\n\n /** @internal */\n public get defaultState() { return this._defaultState; }\n\n /** @internal */\n public get defaultSize() { return this._defaultSize; }\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(config: StagePanelConfig | undefined, location: StagePanelLocation): void {\n this._location = location;\n\n if (!config)\n return;\n this._size = config.size;\n this._defaultSize = config.size;\n this._maxSizeSpec = config.maxSize;\n this._minSize = config.minSize;\n if (config.defaultState !== undefined) {\n this._defaultState = config.defaultState;\n this._panelState = config.defaultState;\n }\n this._resizable = config.resizable ?? true;\n if (config.pinned !== undefined)\n this._pinned = config.pinned;\n\n const sections = config.sections;\n this._start.initializeFromConfig(sections?.start);\n this._end.initializeFromConfig(sections?.end);\n }\n\n /** Gets the list of Widgets. */\n public override get widgetDefs(): ReadonlyArray<WidgetDef> {\n return [...super.widgetDefs, ...this._start.widgetDefs, ...this._end.widgetDefs];\n }\n\n /** @internal */\n public override updateDynamicWidgetDefs(stageId: string, stageUsage: string, location: StagePanelLocation, _section: StagePanelSection | undefined,\n allStageWidgetDefs: WidgetDef[]) {\n this._start.updateDynamicWidgetDefs(stageId, stageUsage, location, StagePanelSection.Start, allStageWidgetDefs);\n this._end.updateDynamicWidgetDefs(stageId, stageUsage, location, StagePanelSection.End, allStageWidgetDefs);\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 setPanelSize: (nineZone: NineZoneState, side: PanelSide, size: number | undefined) => NineZoneState = produce((\n nineZone: Draft<NineZoneState>,\n side: PanelSide,\n size: number | undefined,\n) => {\n const panel = nineZone.panels[side];\n panel.size = size === undefined ? size : Math.min(Math.max(size, panel.minSize), panel.maxSize);\n});\n\n/** @internal */\nexport const setPanelPinned: (nineZone: NineZoneState, side: PanelSide, pinned: boolean) => NineZoneState = produce((\n nineZone: Draft<NineZoneState>,\n side: PanelSide,\n pinned: boolean,\n) => {\n const panel = nineZone.panels[side];\n panel.pinned = pinned;\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelLocation.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelLocation.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,2DAAS,CAAA;IACT,6DAAI,CAAA;IACJ,+DAAK,CAAA;IACL,iEAAM,CAAA;AACR,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Frontstage\r\n */\r\n\r\n/** Available Stage Panel locations.\r\n * @public\r\n */\r\nexport enum StagePanelLocation {\r\n Top = 101,\r\n Left,\r\n Right,\r\n Bottom,\r\n}\r\n"]}
1
+ {"version":3,"file":"StagePanelLocation.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelLocation.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,2DAAS,CAAA;IACT,6DAAI,CAAA;IACJ,+DAAK,CAAA;IACL,iEAAM,CAAA;AACR,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B","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\n/** Available Stage Panel locations.\n * @public\n */\nexport enum StagePanelLocation {\n Top = 101,\n Left,\n Right,\n Bottom,\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelSection.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelSection.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,2DAAK,CAAA;IACL,uDAAG,CAAA;AACL,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Frontstage\r\n */\r\n\r\n/** Enum for Stage Panel Sections\r\n * @public\r\n */\r\nexport enum StagePanelSection {\r\n Start,\r\n End,\r\n}\r\n"]}
1
+ {"version":3,"file":"StagePanelSection.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelSection.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,2DAAK,CAAA;IACL,uDAAG,CAAA;AACL,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B","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\n/** Enum for Stage Panel Sections\n * @public\n */\nexport enum StagePanelSection {\n Start,\n End,\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Field.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,cAAc,CAAC;AACtB,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAc5D;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAAsC,SAAS,cAAc,CAAC,KAAK,EAAE,GAAG;IACpH,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;IACvC,MAAM,UAAU,GAAG,UAAU,CAC3B,sBAAsB,EACtB,cAAc,IAAI,aAAa,EAC/B,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO,CACL,oBAAC,eAAe,IACd,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,KAAK,CAAC,OAAO,KAClB;YACF,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,CAAC;SACb,IAEA,KAAK,CAAC,QAAQ,CACC,CACnB,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module StatusBar\r\n */\r\n\r\nimport \"./Field.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"@itwin/core-react\";\r\nimport { FooterIndicator } from \"@itwin/appui-layout-react\";\r\n\r\n/** Properties of [[StatusBarField]] component.\r\n * @beta\r\n */\r\nexport interface StatusBarFieldProps extends CommonProps {\r\n /** Field content. */\r\n children?: React.ReactNode;\r\n /** Function called when field is clicked. */\r\n onClick?: () => void;\r\n /** Title of a field. */\r\n title?: string;\r\n}\r\n\r\n/** Field component used in [[StatusBar]] component.\r\n * @beta\r\n */\r\nexport const StatusBarField = React.forwardRef<HTMLDivElement, StatusBarFieldProps>(function StatusBarField(props, ref) {\r\n const hasClickAction = !!props.onClick;\r\n const classNames = classnames(\r\n \"uifw-statusbar-field\",\r\n hasClickAction && \"uifw-action\",\r\n props.className,\r\n );\r\n return (\r\n <FooterIndicator\r\n ref={ref}\r\n className={classNames}\r\n title={props.title}\r\n style={props.style}\r\n onClick={props.onClick}\r\n {...{\r\n role: \"button\",\r\n tabIndex: -1,\r\n }}\r\n >\r\n {props.children}\r\n </FooterIndicator>\r\n );\r\n});\r\n"]}
1
+ {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Field.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,cAAc,CAAC;AACtB,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAc5D;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAAsC,SAAS,cAAc,CAAC,KAAK,EAAE,GAAG;IACpH,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;IACvC,MAAM,UAAU,GAAG,UAAU,CAC3B,sBAAsB,EACtB,cAAc,IAAI,aAAa,EAC/B,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO,CACL,oBAAC,eAAe,IACd,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,KAAK,CAAC,OAAO,KAClB;YACF,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,CAAC;SACb,IAEA,KAAK,CAAC,QAAQ,CACC,CACnB,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 \"./Field.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { CommonProps } from \"@itwin/core-react\";\nimport { FooterIndicator } from \"@itwin/appui-layout-react\";\n\n/** Properties of [[StatusBarField]] component.\n * @beta\n */\nexport interface StatusBarFieldProps extends CommonProps {\n /** Field content. */\n children?: React.ReactNode;\n /** Function called when field is clicked. */\n onClick?: () => void;\n /** Title of a field. */\n title?: string;\n}\n\n/** Field component used in [[StatusBar]] component.\n * @beta\n */\nexport const StatusBarField = React.forwardRef<HTMLDivElement, StatusBarFieldProps>(function StatusBarField(props, ref) {\n const hasClickAction = !!props.onClick;\n const classNames = classnames(\n \"uifw-statusbar-field\",\n hasClickAction && \"uifw-action\",\n props.className,\n );\n return (\n <FooterIndicator\n ref={ref}\n className={classNames}\n title={props.title}\n style={props.style}\n onClick={props.onClick}\n {...{\n role: \"button\",\n tabIndex: -1,\n }}\n >\n {props.children}\n </FooterIndicator>\n );\n});\n"]}
@@ -1,109 +1,109 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/appui-layout-react/lib/cjs/appui-layout-react/footer/variables";
6
- @import "~@itwin/core-react/lib/cjs/core-react/style/colors";
7
-
8
- @keyframes uifw-field-fadeIn {
9
- 0% {
10
- opacity: 0;
11
- -webkit-transform: scale(0.5);
12
- transform: scale(0.5);
13
- }
14
-
15
- 50% {
16
- -webkit-transform: scale(1.5);
17
- transform: scale(1.5);
18
- }
19
-
20
- 100% {
21
- -webkit-transform: scale(1);
22
- transform: scale(1);
23
- opacity: 1;
24
- }
25
- }
26
-
27
- @keyframes uifw-field-fadeOut {
28
- 0% {
29
- opacity: 1;
30
- }
31
-
32
- 100% {
33
- opacity: 0;
34
- }
35
- }
36
-
37
- .uifw-statusbar-field {
38
- visibility: visible;
39
- gap: var(--iui-size-xs);
40
-
41
- &.uifw-action {
42
- cursor: pointer;
43
-
44
- &:hover {
45
- color: var(--iui-color-text-accent-hover);
46
- }
47
- }
48
-
49
- &.uifw-field-fade-in {
50
- animation: uifw-field-fadeIn 1s linear;
51
- opacity: 1;
52
- pointer-events: auto;
53
- }
54
-
55
- &.uifw-field-fade-out {
56
- animation: uifw-field-fadeOut 500ms linear;
57
- opacity: 0;
58
- pointer-events: none;
59
- }
60
-
61
- >.nz-balloon-container {
62
- height: 100%;
63
- position: relative;
64
- display: grid;
65
- align-content: center;
66
-
67
- >.nz-balloon {
68
- background-color: var(--iui-color-text);
69
- text-align: center;
70
- cursor: pointer;
71
- min-width: $min-balloon-width;
72
- min-height: $min-balloon-height;
73
- border-radius: 50%;
74
- padding: $balloon-padding;
75
- filter: $icon-shadow;
76
- position: relative;
77
- align-self: center;
78
-
79
- >.nz-arrow {
80
- position: absolute;
81
- width: 0;
82
- bottom: -3px;
83
- left: 0;
84
- display: block;
85
- border-width: 0;
86
- border-bottom-width: $balloon-arrow-height;
87
- border-left-width: $balloon-arrow-width;
88
- border-style: solid;
89
- border-color: transparent var(--iui-color-icon);
90
- transform: rotate(25deg);
91
- }
92
-
93
- >.nz-content {
94
- position: relative;
95
- color: #fff;
96
- line-height: $min-balloon-height;
97
- font-size: 11px;
98
- }
99
- }
100
-
101
- >.nz-dialog {
102
- height: 100%;
103
- width: 100%;
104
- position: absolute;
105
- top: 0;
106
- left: 50%;
107
- }
108
- }
109
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "~@itwin/appui-layout-react/lib/cjs/appui-layout-react/footer/variables";
6
+ @import "~@itwin/core-react/lib/cjs/core-react/style/colors";
7
+
8
+ @keyframes uifw-field-fadeIn {
9
+ 0% {
10
+ opacity: 0;
11
+ -webkit-transform: scale(0.5);
12
+ transform: scale(0.5);
13
+ }
14
+
15
+ 50% {
16
+ -webkit-transform: scale(1.5);
17
+ transform: scale(1.5);
18
+ }
19
+
20
+ 100% {
21
+ -webkit-transform: scale(1);
22
+ transform: scale(1);
23
+ opacity: 1;
24
+ }
25
+ }
26
+
27
+ @keyframes uifw-field-fadeOut {
28
+ 0% {
29
+ opacity: 1;
30
+ }
31
+
32
+ 100% {
33
+ opacity: 0;
34
+ }
35
+ }
36
+
37
+ .uifw-statusbar-field {
38
+ visibility: visible;
39
+ gap: var(--iui-size-xs);
40
+
41
+ &.uifw-action {
42
+ cursor: pointer;
43
+
44
+ &:hover {
45
+ color: var(--iui-color-text-accent-hover);
46
+ }
47
+ }
48
+
49
+ &.uifw-field-fade-in {
50
+ animation: uifw-field-fadeIn 1s linear;
51
+ opacity: 1;
52
+ pointer-events: auto;
53
+ }
54
+
55
+ &.uifw-field-fade-out {
56
+ animation: uifw-field-fadeOut 500ms linear;
57
+ opacity: 0;
58
+ pointer-events: none;
59
+ }
60
+
61
+ >.nz-balloon-container {
62
+ height: 100%;
63
+ position: relative;
64
+ display: grid;
65
+ align-content: center;
66
+
67
+ >.nz-balloon {
68
+ background-color: var(--iui-color-text);
69
+ text-align: center;
70
+ cursor: pointer;
71
+ min-width: $min-balloon-width;
72
+ min-height: $min-balloon-height;
73
+ border-radius: 50%;
74
+ padding: $balloon-padding;
75
+ filter: $icon-shadow;
76
+ position: relative;
77
+ align-self: center;
78
+
79
+ >.nz-arrow {
80
+ position: absolute;
81
+ width: 0;
82
+ bottom: -3px;
83
+ left: 0;
84
+ display: block;
85
+ border-width: 0;
86
+ border-bottom-width: $balloon-arrow-height;
87
+ border-left-width: $balloon-arrow-width;
88
+ border-style: solid;
89
+ border-color: transparent var(--iui-color-icon);
90
+ transform: rotate(25deg);
91
+ }
92
+
93
+ >.nz-content {
94
+ position: relative;
95
+ color: #fff;
96
+ line-height: $min-balloon-height;
97
+ font-size: 11px;
98
+ }
99
+ }
100
+
101
+ >.nz-dialog {
102
+ height: 100%;
103
+ width: 100%;
104
+ position: absolute;
105
+ top: 0;
106
+ left: 50%;
107
+ }
108
+ }
109
+ }
@@ -14,9 +14,8 @@ 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;
18
17
  setIsOpen(!isOpen);
19
- (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
18
+ props.onClick?.();
20
19
  };
21
20
  const target = React.useRef(null);
22
21
  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;;;+FAG+F;AAC/F;;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,oBAAC,SAAS,CAAC,KAAK,IAC9B,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,CACjB,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module StatusBar\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"@itwin/core-react\";\r\nimport { StatusBar } from \"./StatusBar\";\r\n\r\n/** Properties of [[StatusBarIndicator]] component.\r\n * @beta\r\n */\r\nexport interface StatusBarIndicatorProps extends CommonProps {\r\n /** Indicator content. */\r\n children?: React.ReactNode;\r\n /** Content to display in a popup when indicator is clicked. */\r\n popup?: React.ReactNode;\r\n /** Function called when indicator is clicked. */\r\n onClick?: () => void;\r\n /** Default state of an indicator popup. */\r\n defaultIsOpen?: boolean;\r\n /** Title of an indicator. */\r\n title?: string;\r\n}\r\n\r\n/** General-purpose [[StatusBar]] indicator.\r\n * @beta\r\n */\r\nexport function StatusBarIndicator(props: StatusBarIndicatorProps) {\r\n const hasClickAction = !!props.onClick || !!props.popup;\r\n const [isOpen, setIsOpen] = React.useState(!!props.defaultIsOpen);\r\n const handleOnIndicatorClick = () => {\r\n setIsOpen(!isOpen);\r\n props.onClick?.();\r\n };\r\n const target = React.useRef<HTMLDivElement>(null);\r\n return (\r\n <>\r\n <StatusBar.Field\r\n ref={target}\r\n className={props.className}\r\n title={props.title}\r\n style={props.style}\r\n onClick={hasClickAction ? handleOnIndicatorClick : undefined}\r\n >\r\n {props.children}\r\n </StatusBar.Field>\r\n {props.popup && <StatusBar.Popup\r\n target={target.current}\r\n onClose={() => setIsOpen(false)}\r\n isOpen={isOpen}\r\n >\r\n {props.popup}\r\n </StatusBar.Popup>}\r\n </>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"Indicator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Indicator.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;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,oBAAC,SAAS,CAAC,KAAK,IAC9B,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,CACjB,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 { 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 && <StatusBar.Popup\n target={target.current}\n onClose={() => setIsOpen(false)}\n isOpen={isOpen}\n >\n {props.popup}\n </StatusBar.Popup>}\n </>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LabelIndicator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/LabelIndicator.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAA2B,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAY,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAcrD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAmC;IACzE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAClE,MAAM,UAAU,GAAG,UAAU,CAC3B,+BAA+B,EAC/B,SAAS,KAAK,kBAAkB,CAAC,KAAK,IAAI,eAAe,EACzD,SAAS,CACV,CAAC;IACF,OAAO,CACL,oBAAC,kBAAkB,IACjB,SAAS,EAAE,UAAU,KACjB,KAAK;QAER,KAAK,IAAI,8BAAM,SAAS,EAAC,YAAY,IAAE,KAAK,CAAQ;QACpD,QAAQ,IAAI,6BAAK,SAAS,EAAC,WAAW;YAAC,oBAAC,IAAI,IAAC,QAAQ,EAAE,QAAQ,GAAI,CAAM,CACvD,CACtB,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module StatusBar\r\n */\r\n\r\nimport \"./LabelIndicator.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { StatusBarIndicator, StatusBarIndicatorProps } from \"./Indicator\";\r\nimport { Icon, IconSpec } from \"@itwin/core-react\";\r\nimport { StatusBarLabelSide } from \"./StatusBarItem\";\r\n\r\n/** Properties of [[StatusBarLabelIndicator]] component.\r\n * @beta\r\n */\r\nexport interface StatusBarLabelIndicatorProps extends Omit<StatusBarIndicatorProps, \"children\"> {\r\n /** Specification of an icon. */\r\n iconSpec?: IconSpec;\r\n /** Indicator label. */\r\n label?: string;\r\n /** Side to display label. */\r\n labelSide?: StatusBarLabelSide;\r\n}\r\n\r\n/** [[StatusBar]] indicator that shows a label with an icon.\r\n * @beta\r\n */\r\nexport function StatusBarLabelIndicator(props: StatusBarLabelIndicatorProps) {\r\n const { className, iconSpec, label, labelSide, ...other } = props;\r\n const classNames = classnames(\r\n \"uifw-statusbar-labelIndicator\",\r\n labelSide === StatusBarLabelSide.Right && \"uifw-reversed\",\r\n className,\r\n );\r\n return (\r\n <StatusBarIndicator\r\n className={classNames}\r\n {...other}\r\n >\r\n {label && <span className=\"uifw-label\">{label}</span>}\r\n {iconSpec && <div className=\"uifw-icon\"><Icon iconSpec={iconSpec} /></div>}\r\n </StatusBarIndicator>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"LabelIndicator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/LabelIndicator.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAA2B,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAY,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAcrD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAmC;IACzE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAClE,MAAM,UAAU,GAAG,UAAU,CAC3B,+BAA+B,EAC/B,SAAS,KAAK,kBAAkB,CAAC,KAAK,IAAI,eAAe,EACzD,SAAS,CACV,CAAC;IACF,OAAO,CACL,oBAAC,kBAAkB,IACjB,SAAS,EAAE,UAAU,KACjB,KAAK;QAER,KAAK,IAAI,8BAAM,SAAS,EAAC,YAAY,IAAE,KAAK,CAAQ;QACpD,QAAQ,IAAI,6BAAK,SAAS,EAAC,WAAW;YAAC,oBAAC,IAAI,IAAC,QAAQ,EAAE,QAAQ,GAAI,CAAM,CACvD,CACtB,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 \"./LabelIndicator.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { StatusBarIndicator, StatusBarIndicatorProps } from \"./Indicator\";\nimport { Icon, IconSpec } from \"@itwin/core-react\";\nimport { StatusBarLabelSide } from \"./StatusBarItem\";\n\n/** Properties of [[StatusBarLabelIndicator]] component.\n * @beta\n */\nexport interface StatusBarLabelIndicatorProps extends Omit<StatusBarIndicatorProps, \"children\"> {\n /** Specification of an icon. */\n iconSpec?: IconSpec;\n /** Indicator label. */\n label?: string;\n /** Side to display label. */\n labelSide?: StatusBarLabelSide;\n}\n\n/** [[StatusBar]] indicator that shows a label with an icon.\n * @beta\n */\nexport function StatusBarLabelIndicator(props: StatusBarLabelIndicatorProps) {\n const { className, iconSpec, label, labelSide, ...other } = props;\n const classNames = classnames(\n \"uifw-statusbar-labelIndicator\",\n labelSide === StatusBarLabelSide.Right && \"uifw-reversed\",\n className,\n );\n return (\n <StatusBarIndicator\n className={classNames}\n {...other}\n >\n {label && <span className=\"uifw-label\">{label}</span>}\n {iconSpec && <div className=\"uifw-icon\"><Icon iconSpec={iconSpec} /></div>}\n </StatusBarIndicator>\n );\n}\n"]}