@itwin/appui-react 4.5.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -1
- package/lib/cjs/appui-react/UiFramework.js +7 -4
- package/lib/cjs/appui-react/UiFramework.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/MenuButton.d.ts +2 -2
- package/lib/cjs/appui-react/accudraw/MenuButton.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/MenuButton.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +2 -1
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/cjs/appui-react/childwindow/CopyStyles.d.ts.map +1 -1
- package/lib/cjs/appui-react/childwindow/CopyStyles.js +3 -1
- package/lib/cjs/appui-react/childwindow/CopyStyles.js.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +3 -2
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
- package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/TimeTracker.js +2 -1
- package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.js +12 -9
- package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/cjs/appui-react/content/DefaultViewOverlay.js +4 -3
- package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
- package/lib/cjs/appui-react/content/FloatingViewportContent.js +2 -1
- package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.js +6 -3
- package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +2 -1
- package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
- package/lib/cjs/appui-react/content/InternalContentViewManager.js +1 -1
- package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
- package/lib/cjs/appui-react/content/split-pane/SplitPane.js +12 -10
- package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +6 -6
- package/lib/cjs/appui-react/cursor/CursorInformation.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +3 -2
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +4 -4
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +5 -5
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts +2 -2
- package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialog.js +6 -3
- package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
- package/lib/cjs/appui-react/dialog/DialogManagerBase.js +3 -2
- package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
- package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +1 -2
- package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
- package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +22 -26
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js +177 -216
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +3 -7
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +2 -6
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +3 -2
- package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +2 -1
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
- package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
- package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
- package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
- package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +13 -8
- package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
- package/lib/cjs/appui-react/messages/ActivityMessage.js +7 -5
- package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
- package/lib/cjs/appui-react/messages/MessageManager.d.ts +0 -1
- package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/MessageManager.js +1 -2
- package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/cjs/appui-react/messages/Pointer.d.ts +1 -2
- package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/Pointer.js +1 -1
- package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
- package/lib/cjs/appui-react/pickers/ViewSelector.js +6 -5
- package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +2 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
- package/lib/cjs/appui-react/popup/PopupManager.js +2 -1
- package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
- package/lib/cjs/appui-react/popup/PositionPopup.d.ts +2 -2
- package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +2 -2
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +1 -2
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +16 -20
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +86 -116
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Indicator.js +2 -1
- package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBar.js +5 -3
- package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/MessageCenter.js +1 -2
- package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/cjs/appui-react/syncui/InternalSyncUiEventDispatcher.d.ts +36 -0
- package/lib/cjs/appui-react/syncui/InternalSyncUiEventDispatcher.d.ts.map +1 -0
- package/lib/cjs/appui-react/syncui/InternalSyncUiEventDispatcher.js +134 -0
- package/lib/cjs/appui-react/syncui/InternalSyncUiEventDispatcher.js.map +1 -0
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +1 -1
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +2 -2
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/cjs/appui-react/syncui/UiSyncEvent.d.ts +16 -0
- package/lib/cjs/appui-react/syncui/UiSyncEvent.d.ts.map +1 -0
- package/lib/cjs/appui-react/syncui/UiSyncEvent.js +18 -0
- package/lib/cjs/appui-react/syncui/UiSyncEvent.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +4 -6
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js +4 -3
- package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +17 -10
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +2 -3
- package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +14 -12
- package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +10 -9
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +2 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +14 -8
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
- package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
- package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +1 -1
- package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
- package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
- package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
- package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
- package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -1
- package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +3 -3
- package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Content.js +9 -8
- package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +7 -29
- package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.js +128 -463
- package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -1
- package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Tab.js +1 -1
- package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/ToolSettings.js +34 -15
- package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Toolbars.js +3 -2
- package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +2 -2
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/Widget.d.ts +10 -4
- package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +9 -29
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.js +90 -46
- package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetHost.js +3 -2
- package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
- package/lib/cjs/appui-react.d.ts +1 -0
- package/lib/cjs/appui-react.d.ts.map +1 -1
- package/lib/cjs/appui-react.js +1 -0
- package/lib/cjs/appui-react.js.map +1 -1
- package/lib/esm/appui-react/UiFramework.js +7 -4
- package/lib/esm/appui-react/UiFramework.js.map +1 -1
- package/lib/esm/appui-react/accudraw/MenuButton.d.ts +2 -2
- package/lib/esm/appui-react/accudraw/MenuButton.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/MenuButton.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposerItem.js +2 -1
- package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/esm/appui-react/childwindow/CopyStyles.d.ts.map +1 -1
- package/lib/esm/appui-react/childwindow/CopyStyles.js +3 -1
- package/lib/esm/appui-react/childwindow/CopyStyles.js.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +3 -2
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
- package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
- package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
- package/lib/esm/appui-react/configurableui/TimeTracker.js +2 -1
- package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.js +12 -9
- package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/esm/appui-react/content/DefaultViewOverlay.js +4 -3
- package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
- package/lib/esm/appui-react/content/FloatingViewportContent.js +2 -1
- package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
- package/lib/esm/appui-react/content/IModelViewport.js +6 -3
- package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/esm/appui-react/content/InternalContentLayoutManager.js +2 -1
- package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
- package/lib/esm/appui-react/content/InternalContentViewManager.js +1 -1
- package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
- package/lib/esm/appui-react/content/split-pane/SplitPane.js +12 -10
- package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/esm/appui-react/cursor/CursorInformation.d.ts +6 -6
- package/lib/esm/appui-react/cursor/CursorInformation.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +3 -2
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +4 -4
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +5 -5
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts +2 -2
- package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialog.js +6 -3
- package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
- package/lib/esm/appui-react/dialog/DialogManagerBase.js +3 -2
- package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
- package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +1 -2
- package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
- package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +22 -26
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.js +181 -220
- package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +3 -7
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +2 -6
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +3 -2
- package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +2 -1
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
- package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
- package/lib/esm/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
- package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
- package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
- package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
- package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
- package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
- package/lib/esm/appui-react/hooks/useSolarDataProvider.js +13 -8
- package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
- package/lib/esm/appui-react/messages/ActivityMessage.js +7 -5
- package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
- package/lib/esm/appui-react/messages/MessageManager.d.ts +0 -1
- package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/MessageManager.js +1 -2
- package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/esm/appui-react/messages/Pointer.d.ts +1 -2
- package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/Pointer.js +1 -1
- package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
- package/lib/esm/appui-react/pickers/ViewSelector.js +6 -5
- package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/esm/appui-react/popup/KeyinPalettePanel.js +2 -1
- package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
- package/lib/esm/appui-react/popup/PopupManager.js +2 -1
- package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
- package/lib/esm/appui-react/popup/PositionPopup.d.ts +2 -2
- package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
- package/lib/esm/appui-react/selection/SelectionContextItemDef.js +2 -2
- package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +1 -2
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +16 -20
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js +84 -115
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Indicator.js +2 -1
- package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBar.js +5 -3
- package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
- package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/MessageCenter.js +1 -2
- package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/esm/appui-react/syncui/InternalSyncUiEventDispatcher.d.ts +36 -0
- package/lib/esm/appui-react/syncui/InternalSyncUiEventDispatcher.d.ts.map +1 -0
- package/lib/esm/appui-react/syncui/InternalSyncUiEventDispatcher.js +130 -0
- package/lib/esm/appui-react/syncui/InternalSyncUiEventDispatcher.js.map +1 -0
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +1 -1
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +2 -2
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts +16 -0
- package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts.map +1 -0
- package/lib/esm/appui-react/syncui/UiSyncEvent.js +14 -0
- package/lib/esm/appui-react/syncui/UiSyncEvent.js.map +1 -0
- package/lib/esm/appui-react/toolbar/ToolbarHelper.js +4 -6
- package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js +4 -3
- package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
- package/lib/esm/appui-react/tools/CoreToolDefinitions.js +17 -10
- package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +2 -3
- package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +14 -12
- package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +10 -9
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +2 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +14 -8
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
- package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
- package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +1 -1
- package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
- package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
- package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
- package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
- package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -1
- package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +3 -3
- package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Content.js +9 -8
- package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +7 -29
- package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.js +131 -462
- package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -1
- package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Tab.js +1 -1
- package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/ToolSettings.js +34 -15
- package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Toolbars.js +3 -2
- package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +2 -2
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/Widget.d.ts +10 -4
- package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts +9 -29
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.js +90 -46
- package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetHost.js +3 -2
- package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
- package/lib/esm/appui-react.d.ts +1 -0
- package/lib/esm/appui-react.d.ts.map +1 -1
- package/lib/esm/appui-react.js +1 -0
- package/lib/esm/appui-react.js.map +1 -1
- package/package.json +10 -10
|
@@ -20,7 +20,6 @@ const UiFramework_1 = require("../UiFramework");
|
|
|
20
20
|
const WidgetDef_1 = require("../widgets/WidgetDef");
|
|
21
21
|
const TimeTracker_1 = require("../configurableui/TimeTracker");
|
|
22
22
|
const PopoutWidget_1 = require("../childwindow/PopoutWidget");
|
|
23
|
-
const Frontstage_1 = require("../widget-panels/Frontstage");
|
|
24
23
|
const core_bentley_1 = require("@itwin/core-bentley");
|
|
25
24
|
const StageUsage_1 = require("./StageUsage");
|
|
26
25
|
const StagePanelLocation_1 = require("../stagepanels/StagePanelLocation");
|
|
@@ -151,54 +150,59 @@ class FrontstageDef {
|
|
|
151
150
|
}
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
if (!
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
const panel = state.panels[panelSide];
|
|
189
|
-
const location = this.toStagePanelLocation(panelSide);
|
|
190
|
-
const panelDef = this.getStagePanelDef(location);
|
|
191
|
-
if (panelDef) {
|
|
192
|
-
panelDef.size = panel.size;
|
|
193
|
-
panelDef.pinned = panel.pinned;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
153
|
+
triggerStateChangeEvents(oldState) {
|
|
154
|
+
const newState = this.nineZoneState;
|
|
155
|
+
if (!newState)
|
|
156
|
+
return;
|
|
157
|
+
if (this._isStageClosing || this._isApplicationClosing)
|
|
158
|
+
return;
|
|
159
|
+
const originalPanelStateMap = new Map();
|
|
160
|
+
const originalWidgetStateMap = new Map();
|
|
161
|
+
const newPanelStateMap = new Map();
|
|
162
|
+
const newWidgetStateMap = new Map();
|
|
163
|
+
this.populateStateMaps(oldState, originalPanelStateMap, originalWidgetStateMap);
|
|
164
|
+
this.populateStateMaps(newState, newPanelStateMap, newWidgetStateMap);
|
|
165
|
+
// Now walk and trigger set state events
|
|
166
|
+
newWidgetStateMap.forEach((newWidgetState, widgetDef) => {
|
|
167
|
+
const originalState = originalWidgetStateMap.get(widgetDef);
|
|
168
|
+
if (originalState === newWidgetState)
|
|
169
|
+
return;
|
|
170
|
+
widgetDef.handleWidgetStateChanged(newWidgetState);
|
|
171
|
+
});
|
|
172
|
+
newPanelStateMap.forEach((newPanelState, panelDef) => {
|
|
173
|
+
const originalState = originalPanelStateMap.get(panelDef);
|
|
174
|
+
if (originalState === newPanelState)
|
|
175
|
+
return;
|
|
176
|
+
panelDef.handlePanelStateChanged(newPanelState);
|
|
177
|
+
});
|
|
178
|
+
for (const panelSide of appui_layout_react_1.panelSides) {
|
|
179
|
+
const panel = newState.panels[panelSide];
|
|
180
|
+
const oldPanel = oldState.panels[panelSide];
|
|
181
|
+
const location = this.toStagePanelLocation(panelSide);
|
|
182
|
+
const panelDef = this.getStagePanelDef(location);
|
|
183
|
+
if (!panelDef)
|
|
184
|
+
continue;
|
|
185
|
+
if (panel.size !== oldPanel.size) {
|
|
186
|
+
panelDef.handleSizeChanged(panel.size);
|
|
196
187
|
}
|
|
197
|
-
|
|
198
|
-
|
|
188
|
+
if (panel.pinned !== oldPanel.pinned) {
|
|
189
|
+
panelDef.handlePinnedChanged(panel.pinned);
|
|
199
190
|
}
|
|
200
191
|
}
|
|
201
192
|
}
|
|
193
|
+
handlePopouts(oldState) {
|
|
194
|
+
const newState = this.nineZoneState;
|
|
195
|
+
const oldPopouts = (oldState === null || oldState === void 0 ? void 0 : oldState.popoutWidgets.allIds) || [];
|
|
196
|
+
const newPopouts = (newState === null || newState === void 0 ? void 0 : newState.popoutWidgets.allIds) || [];
|
|
197
|
+
const popoutsToClose = oldPopouts.filter((p) => !newPopouts.includes(p));
|
|
198
|
+
const popoutsToOpen = newPopouts.filter((p) => !oldPopouts.includes(p));
|
|
199
|
+
for (const popoutId of popoutsToClose) {
|
|
200
|
+
UiFramework_1.UiFramework.childWindows.close(popoutId, true);
|
|
201
|
+
}
|
|
202
|
+
for (const popoutId of popoutsToOpen) {
|
|
203
|
+
this.openPopoutWidgetContainer(popoutId);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
202
206
|
/** @internal */
|
|
203
207
|
get nineZoneState() {
|
|
204
208
|
return this._nineZoneState;
|
|
@@ -206,26 +210,32 @@ class FrontstageDef {
|
|
|
206
210
|
set nineZoneState(state) {
|
|
207
211
|
if (this._nineZoneState === state)
|
|
208
212
|
return;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
this.
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
if (
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
213
|
+
const oldState = this._nineZoneState;
|
|
214
|
+
this._nineZoneState = state;
|
|
215
|
+
this.handlePopouts(oldState);
|
|
216
|
+
if (oldState) {
|
|
217
|
+
this.triggerStateChangeEvents(oldState);
|
|
218
|
+
}
|
|
219
|
+
const isClosing = this._isStageClosing || this._isApplicationClosing;
|
|
220
|
+
if (isClosing && !this.isReady)
|
|
221
|
+
return;
|
|
222
|
+
InternalFrontstageManager_1.InternalFrontstageManager.onFrontstageNineZoneStateChangedEvent.emit({
|
|
223
|
+
frontstageDef: this,
|
|
224
|
+
state,
|
|
225
|
+
});
|
|
222
226
|
}
|
|
223
227
|
/** @internal */
|
|
224
|
-
get
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
get dispatch() {
|
|
229
|
+
var _a;
|
|
230
|
+
return ((_a = this._dispatch) !== null && _a !== void 0 ? _a : (this._dispatch = (action) => {
|
|
231
|
+
if (action.type === "RESIZE") {
|
|
232
|
+
InternalFrontstageManager_1.InternalFrontstageManager.nineZoneSize = core_react_1.Size.create(action.size);
|
|
233
|
+
}
|
|
234
|
+
const state = this.nineZoneState;
|
|
235
|
+
if (!state)
|
|
236
|
+
return;
|
|
237
|
+
this.nineZoneState = (0, appui_layout_react_1.NineZoneStateReducer)(state, action);
|
|
238
|
+
}));
|
|
229
239
|
}
|
|
230
240
|
/** @internal */
|
|
231
241
|
get timeTracker() {
|
|
@@ -511,8 +521,13 @@ class FrontstageDef {
|
|
|
511
521
|
this.panelDefs.forEach((stagePanelDef) => {
|
|
512
522
|
stagePanelDef.updateDynamicWidgetDefs(this.id, this.usage, stagePanelDef.location, undefined, allStageWidgetDefs);
|
|
513
523
|
});
|
|
524
|
+
InternalFrontstageManager_1.InternalFrontstageManager.onFrontstageWidgetsChangedEvent.emit({
|
|
525
|
+
frontstageDef: this,
|
|
526
|
+
});
|
|
514
527
|
}
|
|
515
|
-
/**
|
|
528
|
+
/** Restores frontstage layout to initial configuration.
|
|
529
|
+
* @beta
|
|
530
|
+
*/
|
|
516
531
|
restoreLayout() {
|
|
517
532
|
for (const panelDef of this.panelDefs) {
|
|
518
533
|
panelDef.size = panelDef.defaultSize;
|
|
@@ -529,12 +544,13 @@ class FrontstageDef {
|
|
|
529
544
|
* @internal
|
|
530
545
|
*/
|
|
531
546
|
getWidgetCurrentState(widgetDef) {
|
|
547
|
+
var _a, _b;
|
|
532
548
|
const state = this.nineZoneState;
|
|
533
549
|
// istanbul ignore else
|
|
534
550
|
if (state) {
|
|
535
|
-
const toolSettingsTabId = state.toolSettings
|
|
551
|
+
const toolSettingsTabId = (_a = state.toolSettings) === null || _a === void 0 ? void 0 : _a.tabId;
|
|
536
552
|
if (toolSettingsTabId === widgetDef.id &&
|
|
537
|
-
state.toolSettings
|
|
553
|
+
((_b = state.toolSettings) === null || _b === void 0 ? void 0 : _b.type) === "docked") {
|
|
538
554
|
return WidgetState_1.WidgetState.Open;
|
|
539
555
|
}
|
|
540
556
|
const location = (0, appui_layout_react_1.getTabLocation)(state, widgetDef.id);
|
|
@@ -542,11 +558,7 @@ class FrontstageDef {
|
|
|
542
558
|
if (!location)
|
|
543
559
|
return WidgetState_1.WidgetState.Hidden;
|
|
544
560
|
if ((0, appui_layout_react_1.isFloatingTabLocation)(location)) {
|
|
545
|
-
|
|
546
|
-
if (floatingWidget && floatingWidget.hidden)
|
|
547
|
-
return WidgetState_1.WidgetState.Hidden;
|
|
548
|
-
else
|
|
549
|
-
return WidgetState_1.WidgetState.Floating;
|
|
561
|
+
return WidgetState_1.WidgetState.Floating;
|
|
550
562
|
}
|
|
551
563
|
let collapsedPanel = false;
|
|
552
564
|
// istanbul ignore else
|
|
@@ -563,24 +575,6 @@ class FrontstageDef {
|
|
|
563
575
|
}
|
|
564
576
|
return widgetDef.defaultState;
|
|
565
577
|
}
|
|
566
|
-
/** Used only in UI 2.0 to determine StagePanelState and size from NinezoneState
|
|
567
|
-
* @internal
|
|
568
|
-
*/
|
|
569
|
-
getPanelCurrentState(panelDef) {
|
|
570
|
-
// istanbul ignore next
|
|
571
|
-
if (this.nineZoneState) {
|
|
572
|
-
const side = (0, StagePanelDef_1.toPanelSide)(panelDef.location);
|
|
573
|
-
const panel = this.nineZoneState.panels[side];
|
|
574
|
-
if (panel)
|
|
575
|
-
return [
|
|
576
|
-
panel.collapsed ? StagePanelDef_1.StagePanelState.Minimized : StagePanelDef_1.StagePanelState.Open,
|
|
577
|
-
panel.size ?? 0,
|
|
578
|
-
panel.pinned,
|
|
579
|
-
];
|
|
580
|
-
return [StagePanelDef_1.StagePanelState.Off, 0, false];
|
|
581
|
-
}
|
|
582
|
-
return [panelDef.defaultState, panelDef.defaultSize ?? 0, true];
|
|
583
|
-
}
|
|
584
578
|
isPopoutWidget(widgetId) {
|
|
585
579
|
// istanbul ignore else
|
|
586
580
|
if (this.nineZoneState) {
|
|
@@ -604,89 +598,65 @@ class FrontstageDef {
|
|
|
604
598
|
/** Create a new floating panel that contains the widget specified by its Id. Supported only when in
|
|
605
599
|
* UI 2.0 or higher.
|
|
606
600
|
* @param widgetId case sensitive Widget Id
|
|
607
|
-
* @param
|
|
601
|
+
* @param position Position of top left corner of floating panel in pixels. If undefined {x:50, y:100} is used.
|
|
608
602
|
* @param size defines the width and height of the floating panel. If undefined and widget has been floated before
|
|
609
603
|
* the previous size is used, else {height:400, width:400} is used.
|
|
610
604
|
* @beta
|
|
611
605
|
*/
|
|
612
|
-
floatWidget(widgetId,
|
|
613
|
-
|
|
614
|
-
if (
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
setTimeout(() => {
|
|
626
|
-
popoutWidgetContainerId &&
|
|
627
|
-
UiFramework_1.UiFramework.childWindows.close(popoutWidgetContainerId, true);
|
|
628
|
-
}, 600);
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
}
|
|
606
|
+
floatWidget(widgetId, position, size) {
|
|
607
|
+
const state = this.nineZoneState;
|
|
608
|
+
if (!state)
|
|
609
|
+
return;
|
|
610
|
+
const widgetDef = this.findWidgetDef(widgetId);
|
|
611
|
+
if (!widgetDef)
|
|
612
|
+
return;
|
|
613
|
+
this.dispatch({
|
|
614
|
+
type: "WIDGET_TAB_FLOAT",
|
|
615
|
+
id: widgetId,
|
|
616
|
+
position,
|
|
617
|
+
size,
|
|
618
|
+
});
|
|
632
619
|
}
|
|
633
620
|
/** Check widget and panel state to determine whether the widget is currently displayed
|
|
634
621
|
* @param widgetId case-sensitive Widget Id
|
|
635
622
|
* @public
|
|
636
623
|
*/
|
|
637
624
|
isWidgetDisplayed(widgetId) {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
widgetIsVisible = true;
|
|
649
|
-
}
|
|
650
|
-
else if ((0, appui_layout_react_1.isPopoutTabLocation)(tabLocation)) {
|
|
651
|
-
widgetIsVisible = true;
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
// istanbul ignore else
|
|
655
|
-
if ((0, appui_layout_react_1.isPanelTabLocation)(tabLocation)) {
|
|
656
|
-
const panel = this.nineZoneState.panels[tabLocation.side];
|
|
657
|
-
const widgetDef = this.findWidgetDef(widgetId);
|
|
658
|
-
if (widgetDef &&
|
|
659
|
-
widgetDef.state === WidgetState_1.WidgetState.Open &&
|
|
660
|
-
!panel.collapsed)
|
|
661
|
-
widgetIsVisible = true;
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
}
|
|
625
|
+
if (!this.nineZoneState)
|
|
626
|
+
return false;
|
|
627
|
+
const tabLocation = (0, appui_layout_react_1.getTabLocation)(this.nineZoneState, widgetId);
|
|
628
|
+
if (!tabLocation)
|
|
629
|
+
return false;
|
|
630
|
+
if ((0, appui_layout_react_1.isPanelTabLocation)(tabLocation)) {
|
|
631
|
+
const panel = this.nineZoneState.panels[tabLocation.side];
|
|
632
|
+
const widgetDef = this.findWidgetDef(widgetId);
|
|
633
|
+
const isVisible = !!widgetDef && widgetDef.state === WidgetState_1.WidgetState.Open && !panel.collapsed;
|
|
634
|
+
return isVisible;
|
|
665
635
|
}
|
|
666
|
-
return
|
|
636
|
+
return true;
|
|
667
637
|
}
|
|
668
638
|
/** Opens window for specified PopoutWidget container. Used to reopen popout when running in Electron.
|
|
669
|
-
* @internal
|
|
670
|
-
|
|
639
|
+
* @internal
|
|
640
|
+
*/
|
|
641
|
+
openPopoutWidgetContainer(widgetContainerId) {
|
|
642
|
+
const state = this.nineZoneState;
|
|
643
|
+
if (!state)
|
|
644
|
+
return;
|
|
671
645
|
const location = (0, appui_layout_react_1.getWidgetLocation)(state, widgetContainerId);
|
|
672
|
-
// istanbul ignore next
|
|
673
646
|
if (!location)
|
|
674
647
|
return;
|
|
675
|
-
// istanbul ignore next
|
|
676
648
|
if (!(0, appui_layout_react_1.isPopoutWidgetLocation)(location))
|
|
677
649
|
return;
|
|
678
650
|
const widget = state.widgets[widgetContainerId];
|
|
679
|
-
const popoutWidget = state.popoutWidgets.byId[location.popoutWidgetId];
|
|
680
651
|
// Popout widget should only contain a single tab.
|
|
681
|
-
// istanbul ignore next
|
|
682
652
|
if (widget.tabs.length !== 1)
|
|
683
653
|
return;
|
|
684
654
|
const tabId = widget.tabs[0];
|
|
685
655
|
const widgetDef = this.findWidgetDef(tabId);
|
|
686
|
-
// istanbul ignore next
|
|
687
656
|
if (!widgetDef)
|
|
688
657
|
return;
|
|
689
658
|
const popoutContent = (React.createElement(PopoutWidget_1.PopoutWidget, { widgetContainerId: widgetContainerId, widgetDef: widgetDef }));
|
|
659
|
+
const popoutWidget = state.popoutWidgets.byId[location.popoutWidgetId];
|
|
690
660
|
const bounds = core_react_1.Rectangle.create(popoutWidget.bounds);
|
|
691
661
|
const position = {
|
|
692
662
|
width: bounds.getWidth(),
|
|
@@ -699,48 +669,23 @@ class FrontstageDef {
|
|
|
699
669
|
/** Create a new popout/child window that contains the widget specified by its Id. Supported only when in
|
|
700
670
|
* UI 2.0 or higher.
|
|
701
671
|
* @param widgetId case sensitive Widget Id
|
|
702
|
-
* @param
|
|
672
|
+
* @param position Position of top left corner of floating panel in pixels. If undefined {x:0, y:0} is used.
|
|
703
673
|
* @param size defines the width and height of the floating panel. If undefined and widget has been floated before
|
|
704
674
|
* the previous size is used, else {height:800, width:600} is used.
|
|
705
675
|
* @beta
|
|
706
676
|
*/
|
|
707
|
-
popoutWidget(widgetId,
|
|
708
|
-
|
|
709
|
-
if (!
|
|
710
|
-
return;
|
|
711
|
-
let location = (0, appui_layout_react_1.getTabLocation)(this.nineZoneState, widgetId);
|
|
712
|
-
if (!location || (0, appui_layout_react_1.isPopoutTabLocation)(location))
|
|
677
|
+
popoutWidget(widgetId, position, size) {
|
|
678
|
+
const state = this.nineZoneState;
|
|
679
|
+
if (!state)
|
|
713
680
|
return;
|
|
714
681
|
const widgetDef = this.findWidgetDef(widgetId);
|
|
715
|
-
// istanbul ignore next
|
|
716
682
|
if (!widgetDef)
|
|
717
683
|
return;
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
if (size)
|
|
724
|
-
preferredBounds = preferredBounds.setSize(size);
|
|
725
|
-
if (point)
|
|
726
|
-
preferredBounds = preferredBounds.setPosition(point);
|
|
727
|
-
const state = (0, appui_layout_react_1.popoutWidgetToChildWindow)(this.nineZoneState, widgetId, preferredBounds);
|
|
728
|
-
this.nineZoneState = state;
|
|
729
|
-
// now that the state is updated get the id of the container that houses the widgetTab/widgetId
|
|
730
|
-
location = (0, appui_layout_react_1.getTabLocation)(state, widgetId);
|
|
731
|
-
(0, core_bentley_1.assert)(!!location && (0, appui_layout_react_1.isPopoutTabLocation)(location));
|
|
732
|
-
const widgetContainerId = location.widgetId;
|
|
733
|
-
const popoutWidget = state.popoutWidgets.byId[widgetContainerId];
|
|
734
|
-
const bounds = core_react_1.Rectangle.create(popoutWidget.bounds);
|
|
735
|
-
setTimeout(() => {
|
|
736
|
-
const popoutContent = (React.createElement(PopoutWidget_1.PopoutWidget, { widgetContainerId: widgetContainerId, widgetDef: widgetDef }));
|
|
737
|
-
const position = {
|
|
738
|
-
width: bounds.getWidth(),
|
|
739
|
-
height: bounds.getHeight(),
|
|
740
|
-
left: bounds.left,
|
|
741
|
-
top: bounds.top,
|
|
742
|
-
};
|
|
743
|
-
UiFramework_1.UiFramework.childWindows.open(widgetContainerId, widgetDef.label, popoutContent, position, UiFramework_1.UiFramework.useDefaultPopoutUrl);
|
|
684
|
+
this.dispatch({
|
|
685
|
+
type: "WIDGET_TAB_POPOUT",
|
|
686
|
+
id: widgetId,
|
|
687
|
+
position,
|
|
688
|
+
size,
|
|
744
689
|
});
|
|
745
690
|
}
|
|
746
691
|
get isStageClosing() {
|
|
@@ -754,12 +699,13 @@ class FrontstageDef {
|
|
|
754
699
|
}
|
|
755
700
|
/** @internal */
|
|
756
701
|
saveChildWindowSizeAndPosition(childWindowId, childWindow) {
|
|
757
|
-
|
|
702
|
+
const state = this.nineZoneState;
|
|
703
|
+
if (!state)
|
|
758
704
|
return;
|
|
759
|
-
const location = (0, appui_layout_react_1.getWidgetLocation)(
|
|
705
|
+
const location = (0, appui_layout_react_1.getWidgetLocation)(state, childWindowId);
|
|
760
706
|
if (!location || !(0, appui_layout_react_1.isPopoutWidgetLocation)(location))
|
|
761
707
|
return;
|
|
762
|
-
const widget =
|
|
708
|
+
const widget = state.widgets[location.popoutWidgetId];
|
|
763
709
|
const tabId = widget.tabs[0];
|
|
764
710
|
const widgetDef = this.findWidgetDef(tabId);
|
|
765
711
|
if (!widgetDef)
|
|
@@ -772,23 +718,34 @@ class FrontstageDef {
|
|
|
772
718
|
x: childWindow.screenX,
|
|
773
719
|
y: childWindow.screenY,
|
|
774
720
|
});
|
|
775
|
-
|
|
721
|
+
this.dispatch({
|
|
722
|
+
type: "WIDGET_TAB_SET_POPOUT_BOUNDS",
|
|
723
|
+
id: tabId,
|
|
724
|
+
bounds,
|
|
725
|
+
});
|
|
776
726
|
}
|
|
777
|
-
/**
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
dockPopoutWidgetContainer(widgetContainerId) {
|
|
782
|
-
if (!this.nineZoneState)
|
|
727
|
+
/** @internal */
|
|
728
|
+
dockWidgetContainerByContainerId(widgetContainerId) {
|
|
729
|
+
const state = this.nineZoneState;
|
|
730
|
+
if (!state)
|
|
783
731
|
return;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
732
|
+
const location = (0, appui_layout_react_1.getWidgetLocation)(state, widgetContainerId);
|
|
733
|
+
if (!location)
|
|
734
|
+
return;
|
|
735
|
+
if ((0, appui_layout_react_1.isFloatingWidgetLocation)(location)) {
|
|
736
|
+
this.dispatch({
|
|
737
|
+
type: "FLOATING_WIDGET_SEND_BACK",
|
|
738
|
+
id: location.floatingWidgetId,
|
|
739
|
+
});
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
if ((0, appui_layout_react_1.isPopoutWidgetLocation)(location)) {
|
|
743
|
+
this.dispatch({
|
|
744
|
+
type: "POPOUT_WIDGET_SEND_BACK",
|
|
745
|
+
id: location.popoutWidgetId,
|
|
746
|
+
});
|
|
789
747
|
return;
|
|
790
|
-
|
|
791
|
-
this.nineZoneState = state;
|
|
748
|
+
}
|
|
792
749
|
}
|
|
793
750
|
/** Finds the container with the specified widget and re-docks all widgets
|
|
794
751
|
* back to the panel zone location that was used when the floating container
|
|
@@ -797,34 +754,28 @@ class FrontstageDef {
|
|
|
797
754
|
* @beta
|
|
798
755
|
*/
|
|
799
756
|
dockWidgetContainer(widgetId) {
|
|
800
|
-
|
|
801
|
-
if (
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
if ((0, appui_layout_react_1.isPopoutTabLocation)(location)) {
|
|
808
|
-
UiFramework_1.UiFramework.childWindows.close(location.widgetId, true);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
}
|
|
757
|
+
const state = this.nineZoneState;
|
|
758
|
+
if (!state)
|
|
759
|
+
return;
|
|
760
|
+
const location = (0, appui_layout_react_1.getTabLocation)(state, widgetId);
|
|
761
|
+
if (!location)
|
|
762
|
+
return;
|
|
763
|
+
this.dockWidgetContainerByContainerId(location.widgetId);
|
|
812
764
|
}
|
|
813
765
|
setFloatingWidgetContainerBounds(floatingWidgetId, bounds) {
|
|
814
766
|
if (!this.nineZoneState ||
|
|
815
767
|
!(floatingWidgetId in this.nineZoneState.floatingWidgets.byId))
|
|
816
768
|
return false;
|
|
817
|
-
|
|
769
|
+
this.dispatch({
|
|
818
770
|
type: "FLOATING_WIDGET_SET_BOUNDS",
|
|
819
771
|
id: floatingWidgetId,
|
|
820
772
|
bounds,
|
|
821
|
-
}
|
|
822
|
-
|
|
773
|
+
});
|
|
774
|
+
this.dispatch({
|
|
823
775
|
type: "FLOATING_WIDGET_SET_USER_SIZED",
|
|
824
776
|
id: floatingWidgetId,
|
|
825
777
|
userSized: true,
|
|
826
|
-
}
|
|
827
|
-
this.nineZoneState = state;
|
|
778
|
+
});
|
|
828
779
|
return true;
|
|
829
780
|
}
|
|
830
781
|
getFloatingWidgetContainerIds() {
|
|
@@ -922,8 +873,9 @@ const useActiveFrontstageId = () => {
|
|
|
922
873
|
return id;
|
|
923
874
|
};
|
|
924
875
|
exports.useActiveFrontstageId = useActiveFrontstageId;
|
|
925
|
-
/** Hook to return the active Frontstage def
|
|
926
|
-
|
|
876
|
+
/** Hook to return the active Frontstage def.
|
|
877
|
+
* @public
|
|
878
|
+
*/
|
|
927
879
|
function useActiveFrontstageDef() {
|
|
928
880
|
const [def, setDef] = React.useState(UiFramework_1.UiFramework.frontstages.activeFrontstageDef);
|
|
929
881
|
React.useEffect(() => {
|
|
@@ -939,7 +891,16 @@ exports.useActiveFrontstageDef = useActiveFrontstageDef;
|
|
|
939
891
|
*/
|
|
940
892
|
function useSpecificWidgetDef(widgetId) {
|
|
941
893
|
const frontstageDef = useActiveFrontstageDef();
|
|
942
|
-
|
|
894
|
+
const [widgetDef, setWidgetDef] = React.useState(() => frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.findWidgetDef(widgetId));
|
|
895
|
+
React.useEffect(() => {
|
|
896
|
+
setWidgetDef(frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.findWidgetDef(widgetId));
|
|
897
|
+
return InternalFrontstageManager_1.InternalFrontstageManager.onFrontstageWidgetsChangedEvent.addListener((args) => {
|
|
898
|
+
if (args.frontstageDef !== frontstageDef)
|
|
899
|
+
return;
|
|
900
|
+
setWidgetDef(frontstageDef.findWidgetDef(widgetId));
|
|
901
|
+
});
|
|
902
|
+
}, [frontstageDef, widgetId]);
|
|
903
|
+
return widgetDef;
|
|
943
904
|
}
|
|
944
905
|
exports.useSpecificWidgetDef = useSpecificWidgetDef;
|
|
945
906
|
//# sourceMappingURL=FrontstageDef.js.map
|