@itwin/appui-react 5.0.5 → 5.2.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 +57 -38
- package/lib/appui-react/UiFramework.d.ts +1 -1
- package/lib/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/appui-react/UiFramework.js +48 -46
- package/lib/appui-react/UiFramework.js.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawCommandItems.js +1 -1
- package/lib/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawDialog.js +1 -1
- package/lib/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawFieldContainer.d.ts +2 -0
- package/lib/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawFieldContainer.js +38 -26
- package/lib/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawInputField.d.ts +4 -2
- package/lib/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawInputField.js +45 -38
- package/lib/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawInputField.scss +0 -15
- package/lib/appui-react/accudraw/AccuDrawPopupManager.js +3 -3
- package/lib/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
- package/lib/appui-react/accudraw/AccuDrawWidget.js +2 -2
- package/lib/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
- package/lib/appui-react/accudraw/Calculator.js +1 -1
- package/lib/appui-react/accudraw/Calculator.js.map +1 -1
- package/lib/appui-react/accudraw/CalculatorPopup.js +1 -1
- package/lib/appui-react/accudraw/CalculatorPopup.js.map +1 -1
- package/lib/appui-react/accudraw/FrameworkAccuDraw.d.ts +2 -2
- package/lib/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
- package/lib/appui-react/accudraw/FrameworkAccuDraw.js +18 -15
- package/lib/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
- package/lib/appui-react/accudraw/MenuButton.js +1 -1
- package/lib/appui-react/accudraw/MenuButton.js.map +1 -1
- package/lib/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/appui-react/backstage/BackstageComposer.js +2 -3
- package/lib/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/appui-react/backstage/BackstageComposerItem.js +6 -6
- package/lib/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/appui-react/backstage/BackstageItem.js.map +1 -1
- package/lib/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
- package/lib/appui-react/backstage/BackstageManager.js +3 -3
- package/lib/appui-react/backstage/BackstageManager.js.map +1 -1
- package/lib/appui-react/backstage/InternalBackstageManager.js +2 -2
- package/lib/appui-react/backstage/InternalBackstageManager.js.map +1 -1
- package/lib/appui-react/configurableui/ActivityTracker.d.ts.map +1 -1
- package/lib/appui-react/configurableui/ActivityTracker.js +0 -1
- package/lib/appui-react/configurableui/ActivityTracker.js.map +1 -1
- package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts +3 -1
- package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/appui-react/configurableui/ConfigurableUiContent.js +20 -12
- package/lib/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
- package/lib/appui-react/configurableui/InternalConfigurableUiManager.d.ts +1 -1
- package/lib/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
- package/lib/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
- package/lib/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
- package/lib/appui-react/content/ContentControl.js +1 -1
- package/lib/appui-react/content/ContentControl.js.map +1 -1
- package/lib/appui-react/content/ContentGroup.js +7 -7
- package/lib/appui-react/content/ContentGroup.js.map +1 -1
- package/lib/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/appui-react/content/ContentLayout.js +16 -17
- package/lib/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/appui-react/content/DefaultViewOverlay.js +1 -1
- package/lib/appui-react/content/DefaultViewOverlay.js.map +1 -1
- package/lib/appui-react/content/FloatingViewportContent.js +4 -4
- package/lib/appui-react/content/FloatingViewportContent.js.map +1 -1
- package/lib/appui-react/content/IModelViewport.d.ts +1 -1
- package/lib/appui-react/content/IModelViewport.d.ts.map +1 -1
- package/lib/appui-react/content/IModelViewport.js +1 -1
- package/lib/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/appui-react/content/InternalContentViewManager.js +26 -26
- package/lib/appui-react/content/InternalContentViewManager.js.map +1 -1
- package/lib/appui-react/content/ViewportContentControl.js +1 -1
- package/lib/appui-react/content/ViewportContentControl.js.map +1 -1
- package/lib/appui-react/content/split-pane/SplitPane.js +2 -2
- package/lib/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/appui-react/cursor/CursorInformation.d.ts +7 -0
- package/lib/appui-react/cursor/CursorInformation.d.ts.map +1 -1
- package/lib/appui-react/cursor/CursorInformation.js +15 -2
- package/lib/appui-react/cursor/CursorInformation.js.map +1 -1
- package/lib/appui-react/cursor/cursormenu/CursorMenu.d.ts +1 -1
- package/lib/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
- package/lib/appui-react/cursor/cursormenu/CursorMenu.js +3 -3
- package/lib/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
- package/lib/appui-react/cursor/cursorpopup/CursorPopup.d.ts +1 -1
- package/lib/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
- package/lib/appui-react/cursor/cursorpopup/CursorPopup.js +4 -4
- package/lib/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +4 -1
- package/lib/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
- package/lib/appui-react/cursor/cursorpopup/CursorPopupManager.js +45 -30
- package/lib/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
- package/lib/appui-react/cursor/cursorprompt/CursorPrompt.d.ts +12 -15
- package/lib/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
- package/lib/appui-react/cursor/cursorprompt/CursorPrompt.js +47 -38
- package/lib/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
- package/lib/appui-react/dialog/ContentDialog.js.map +1 -1
- package/lib/appui-react/dialog/ContentDialogManager.js +2 -2
- package/lib/appui-react/dialog/ContentDialogManager.js.map +1 -1
- package/lib/appui-react/dialog/DialogManagerBase.js +4 -4
- package/lib/appui-react/dialog/DialogManagerBase.js.map +1 -1
- package/lib/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
- package/lib/appui-react/dialog/InternalContentDialogManager.js +2 -3
- package/lib/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
- package/lib/appui-react/dialog/InternalModalDialogManager.js +1 -1
- package/lib/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
- package/lib/appui-react/dialog/InternalModelessDialogManager.d.ts.map +1 -1
- package/lib/appui-react/dialog/InternalModelessDialogManager.js +1 -2
- package/lib/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
- package/lib/appui-react/dialog/ModalDialogManager.js +2 -2
- package/lib/appui-react/dialog/ModalDialogManager.js.map +1 -1
- package/lib/appui-react/dialog/ModelessDialog.js +1 -1
- package/lib/appui-react/dialog/ModelessDialog.js.map +1 -1
- package/lib/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
- package/lib/appui-react/dialog/ModelessDialogManager.js +2 -3
- package/lib/appui-react/dialog/ModelessDialogManager.js.map +1 -1
- package/lib/appui-react/dialog/StandardMessageBox.js +1 -1
- package/lib/appui-react/dialog/StandardMessageBox.js.map +1 -1
- package/lib/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
- package/lib/appui-react/feedback/ElementTooltip.d.ts +1 -1
- package/lib/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
- package/lib/appui-react/feedback/ElementTooltip.js.map +1 -1
- package/lib/appui-react/feedback/ValidationTextbox.js.map +1 -1
- package/lib/appui-react/framework/FrameworkBackstage.js.map +1 -1
- package/lib/appui-react/framework/FrameworkContent.js +3 -3
- package/lib/appui-react/framework/FrameworkContent.js.map +1 -1
- package/lib/appui-react/framework/FrameworkControls.js.map +1 -1
- package/lib/appui-react/framework/FrameworkDialogs.js +2 -2
- package/lib/appui-react/framework/FrameworkDialogs.js.map +1 -1
- package/lib/appui-react/framework/FrameworkFrontstages.js +8 -8
- package/lib/appui-react/framework/FrameworkFrontstages.js.map +1 -1
- package/lib/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
- package/lib/appui-react/framework/FrameworkToolSettings.js +1 -1
- package/lib/appui-react/framework/FrameworkToolSettings.js.map +1 -1
- package/lib/appui-react/frontstage/Frontstage.js.map +1 -1
- package/lib/appui-react/frontstage/FrontstageConfig.d.ts +5 -2
- package/lib/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
- package/lib/appui-react/frontstage/FrontstageConfig.js.map +1 -1
- package/lib/appui-react/frontstage/FrontstageDef.d.ts +5 -1
- package/lib/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/appui-react/frontstage/FrontstageDef.js +22 -17
- package/lib/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/appui-react/frontstage/InternalFrontstageManager.js +29 -29
- package/lib/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
- package/lib/appui-react/frontstage/ModalFrontstage.js.map +1 -1
- package/lib/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
- package/lib/appui-react/frontstage/ModalSettingsStage.js +2 -2
- package/lib/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
- package/lib/appui-react/frontstage/NestedFrontstage.js +1 -1
- package/lib/appui-react/frontstage/NestedFrontstage.js.map +1 -1
- package/lib/appui-react/frontstage/StandardFrontstageProvider.js +1 -1
- package/lib/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/appui-react/hooks/useActiveIModelConnection.js +1 -1
- package/lib/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
- package/lib/appui-react/hooks/useUiVisibility.js +1 -1
- package/lib/appui-react/hooks/useUiVisibility.js.map +1 -1
- package/lib/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
- package/lib/appui-react/keyboardshortcut/KeyboardShortcut.js +1 -1
- package/lib/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
- package/lib/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
- package/lib/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -1
- package/lib/appui-react/layout/StandardLayout.d.ts.map +1 -1
- package/lib/appui-react/layout/StandardLayout.js +5 -1
- package/lib/appui-react/layout/StandardLayout.js.map +1 -1
- package/lib/appui-react/layout/backstage/Backstage.js.map +1 -1
- package/lib/appui-react/layout/backstage/Item.js.map +1 -1
- package/lib/appui-react/layout/backstage/Separator.js +1 -1
- package/lib/appui-react/layout/backstage/Separator.js.map +1 -1
- package/lib/appui-react/layout/base/usePointerCaptor.d.ts +1 -1
- package/lib/appui-react/layout/base/usePointerCaptor.d.ts.map +1 -1
- package/lib/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
- package/lib/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
- package/lib/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
- package/lib/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
- package/lib/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
- package/lib/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
- package/lib/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
- package/lib/appui-react/layout/footer/tool-assistance/NewDot.js +1 -1
- package/lib/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
- package/lib/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
- package/lib/appui-react/layout/outline/SectionOutline.js.map +1 -1
- package/lib/appui-react/layout/popup/Tooltip.js.map +1 -1
- package/lib/appui-react/layout/state/internal/PanelStateHelpers.js +1 -1
- package/lib/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -1
- package/lib/appui-react/layout/state/internal/TabStateHelpers.js +6 -6
- package/lib/appui-react/layout/state/internal/TabStateHelpers.js.map +1 -1
- package/lib/appui-react/layout/state/internal/ToolSettingsStateHelpers.js +6 -6
- package/lib/appui-react/layout/state/internal/ToolSettingsStateHelpers.js.map +1 -1
- package/lib/appui-react/layout/state/internal/WidgetStateHelpers.js +13 -13
- package/lib/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -1
- package/lib/appui-react/layout/target/TargetContainer.js.map +1 -1
- package/lib/appui-react/layout/target/useAllowedSideTarget.js +1 -1
- package/lib/appui-react/layout/target/useAllowedSideTarget.js.map +1 -1
- package/lib/appui-react/layout/tool-settings/Docked.js +1 -1
- package/lib/appui-react/layout/tool-settings/Docked.js.map +1 -1
- package/lib/appui-react/layout/tool-settings/Handle.js.map +1 -1
- package/lib/appui-react/layout/tool-settings/Overflow.js.map +1 -1
- package/lib/appui-react/layout/tool-settings/Panel.js +1 -1
- package/lib/appui-react/layout/tool-settings/Panel.js.map +1 -1
- package/lib/appui-react/layout/tool-settings/Setting.js.map +1 -1
- package/lib/appui-react/layout/widget/Menu.js +1 -1
- package/lib/appui-react/layout/widget/Menu.js.map +1 -1
- package/lib/appui-react/layout/widget/MenuTab.js.map +1 -1
- package/lib/appui-react/layout/widget/NavigationArea.js.map +1 -1
- package/lib/appui-react/layout/widget/Tab.js +1 -1
- package/lib/appui-react/layout/widget/Tab.js.map +1 -1
- package/lib/appui-react/layout/widget/TabBar.js +1 -1
- package/lib/appui-react/layout/widget/TabBar.js.map +1 -1
- package/lib/appui-react/layout/widget/ToolsArea.js.map +1 -1
- package/lib/appui-react/layout/widget/Widget.js.map +1 -1
- package/lib/appui-react/layout/widget/tools/button/Button.js.map +1 -1
- package/lib/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
- package/lib/appui-react/layout/widget-panels/Expander.js +1 -1
- package/lib/appui-react/layout/widget-panels/Expander.js.map +1 -1
- package/lib/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
- package/lib/appui-react/layout/widget-panels/Grip.js +3 -3
- package/lib/appui-react/layout/widget-panels/Grip.js.map +1 -1
- package/lib/appui-react/layout/widget-panels/Panel.d.ts.map +1 -1
- package/lib/appui-react/layout/widget-panels/useAnimatePanel.d.ts.map +1 -1
- package/lib/appui-react/messages/InputField.js +2 -2
- package/lib/appui-react/messages/InputField.js.map +1 -1
- package/lib/appui-react/messages/MessageManager.d.ts +4 -4
- package/lib/appui-react/messages/MessageManager.d.ts.map +1 -1
- package/lib/appui-react/messages/MessageManager.js +25 -25
- package/lib/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/appui-react/messages/MessageRenderer.js.map +1 -1
- package/lib/appui-react/messages/Pointer.d.ts.map +1 -1
- package/lib/appui-react/messages/Pointer.js +7 -7
- package/lib/appui-react/messages/Pointer.js.map +1 -1
- package/lib/appui-react/messages/ReactNotifyMessageDetails.d.ts +2 -2
- package/lib/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
- package/lib/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
- package/lib/appui-react/navigationaids/CubeNavigationAidControl.js +2 -2
- package/lib/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
- package/lib/appui-react/navigationaids/DrawingNavigationAidControl.js +2 -2
- package/lib/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
- package/lib/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
- package/lib/appui-react/navigationaids/SheetNavigationAid.js +2 -2
- package/lib/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
- package/lib/appui-react/navigationaids/SheetsModalFrontstage.js +8 -8
- package/lib/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
- package/lib/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +1 -1
- package/lib/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
- package/lib/appui-react/navigationaids/StandardRotationNavigationAid.js +3 -3
- package/lib/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
- package/lib/appui-react/pickers/ListPicker.d.ts +1 -0
- package/lib/appui-react/pickers/ListPicker.d.ts.map +1 -1
- package/lib/appui-react/pickers/ListPicker.js +11 -10
- package/lib/appui-react/pickers/ListPicker.js.map +1 -1
- package/lib/appui-react/pickers/ViewSelector.d.ts +1 -0
- package/lib/appui-react/pickers/ViewSelector.d.ts.map +1 -1
- package/lib/appui-react/pickers/ViewSelector.js +7 -6
- package/lib/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/appui-react/popup/CardPopup.js +2 -2
- package/lib/appui-react/popup/CardPopup.js.map +1 -1
- package/lib/appui-react/popup/ComponentPopup.js.map +1 -1
- package/lib/appui-react/popup/HTMLElementPopup.js.map +1 -1
- package/lib/appui-react/popup/InputEditorPopup.js.map +1 -1
- package/lib/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
- package/lib/appui-react/popup/KeyinPalettePanel.js +2 -3
- package/lib/appui-react/popup/KeyinPalettePanel.js.map +1 -1
- package/lib/appui-react/popup/KeyinPalettePopup.js +1 -1
- package/lib/appui-react/popup/KeyinPalettePopup.js.map +1 -1
- package/lib/appui-react/popup/PopupManager.d.ts +1 -1
- package/lib/appui-react/popup/PopupManager.d.ts.map +1 -1
- package/lib/appui-react/popup/PopupManager.js +4 -4
- package/lib/appui-react/popup/PopupManager.js.map +1 -1
- package/lib/appui-react/popup/PositionPopup.js +2 -2
- package/lib/appui-react/popup/PositionPopup.js.map +1 -1
- package/lib/appui-react/popup/ToolSettingsPopup.js.map +1 -1
- package/lib/appui-react/popup/ToolbarPopup.js +1 -1
- package/lib/appui-react/popup/ToolbarPopup.js.map +1 -1
- package/lib/appui-react/preview/PreviewFeatures.d.ts +3 -5
- package/lib/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
- package/lib/appui-react/preview/PreviewFeatures.js +1 -2
- package/lib/appui-react/preview/PreviewFeatures.js.map +1 -1
- package/lib/appui-react/preview/allow-bearing-letters-in-accudraw-input-fields/useAllowBearingLettersInAccuDrawInputFields.d.ts +5 -0
- package/lib/appui-react/preview/allow-bearing-letters-in-accudraw-input-fields/useAllowBearingLettersInAccuDrawInputFields.d.ts.map +1 -0
- package/lib/appui-react/preview/{allow-letters-in-accudraw-input-fields/useAllowLettersInAccuDrawInputFields.js → allow-bearing-letters-in-accudraw-input-fields/useAllowBearingLettersInAccuDrawInputFields.js} +5 -5
- package/lib/appui-react/preview/allow-bearing-letters-in-accudraw-input-fields/useAllowBearingLettersInAccuDrawInputFields.js.map +1 -0
- package/lib/appui-react/preview/control-widget-visibility/NavigationWidget.d.ts +1 -1
- package/lib/appui-react/preview/control-widget-visibility/NavigationWidget.d.ts.map +1 -1
- package/lib/appui-react/preview/control-widget-visibility/NavigationWidget.js +1 -1
- package/lib/appui-react/preview/control-widget-visibility/NavigationWidget.js.map +1 -1
- package/lib/appui-react/preview/enable-maximized-widget/MaximizedWidget.d.ts +1 -1
- package/lib/appui-react/preview/enable-maximized-widget/MaximizedWidget.d.ts.map +1 -1
- package/lib/appui-react/preview/enable-maximized-widget/MaximizedWidget.js.map +1 -1
- package/lib/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts +1 -4
- package/lib/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
- package/lib/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +13 -13
- package/lib/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
- package/lib/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts +1 -1
- package/lib/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
- package/lib/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +1 -1
- package/lib/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
- package/lib/appui-react/preview/widget-action-dropdown/MoreButton.d.ts +1 -1
- package/lib/appui-react/preview/widget-action-dropdown/MoreButton.d.ts.map +1 -1
- package/lib/appui-react/preview/widget-action-dropdown/MoreButton.js.map +1 -1
- package/lib/appui-react/redux/ConfigurableUiState.d.ts.map +1 -1
- package/lib/appui-react/redux/ConfigurableUiState.js +1 -1
- package/lib/appui-react/redux/ConfigurableUiState.js.map +1 -1
- package/lib/appui-react/redux/FrameworkState.d.ts +1 -1
- package/lib/appui-react/redux/FrameworkState.js.map +1 -1
- package/lib/appui-react/redux/ReducerRegistry.js +1 -1
- package/lib/appui-react/redux/ReducerRegistry.js.map +1 -1
- package/lib/appui-react/redux/SessionState.d.ts +2 -2
- package/lib/appui-react/redux/SessionState.d.ts.map +1 -1
- package/lib/appui-react/redux/SessionState.js.map +1 -1
- package/lib/appui-react/redux/StateManager.js +2 -2
- package/lib/appui-react/redux/StateManager.js.map +1 -1
- package/lib/appui-react/redux/connectIModel.js +1 -1
- package/lib/appui-react/redux/connectIModel.js.map +1 -1
- package/lib/appui-react/redux/redux-ts.js.map +1 -1
- package/lib/appui-react/selection/SelectionContextItemDef.js +2 -2
- package/lib/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/appui-react/settings/SettingsManager.js +1 -1
- package/lib/appui-react/settings/SettingsManager.js.map +1 -1
- package/lib/appui-react/settings/quantityformatting/QuantityFormat.js +3 -3
- package/lib/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
- package/lib/appui-react/settings/ui/UiSettingsPage.js +5 -5
- package/lib/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
- package/lib/appui-react/shared/ActionButtonItemDef.js +1 -1
- package/lib/appui-react/shared/ActionButtonItemDef.js.map +1 -1
- package/lib/appui-react/shared/AnyItemDef.js.map +1 -1
- package/lib/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
- package/lib/appui-react/shared/CommandItemDef.js +1 -1
- package/lib/appui-react/shared/CommandItemDef.js.map +1 -1
- package/lib/appui-react/shared/CustomItemDef.js +1 -1
- package/lib/appui-react/shared/CustomItemDef.js.map +1 -1
- package/lib/appui-react/shared/CustomItemProps.js.map +1 -1
- package/lib/appui-react/shared/GroupItemProps.js.map +1 -1
- package/lib/appui-react/shared/ItemDefBase.js.map +1 -1
- package/lib/appui-react/shared/ItemMap.js +1 -1
- package/lib/appui-react/shared/ItemMap.js.map +1 -1
- package/lib/appui-react/shared/ItemProps.js.map +1 -1
- package/lib/appui-react/shared/MenuItem.js +1 -1
- package/lib/appui-react/shared/MenuItem.js.map +1 -1
- package/lib/appui-react/shared/ToolItemDef.js +1 -1
- package/lib/appui-react/shared/ToolItemDef.js.map +1 -1
- package/lib/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
- package/lib/appui-react/stagepanels/StagePanelDef.js +2 -2
- package/lib/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/appui-react/statusbar/Field.js.map +1 -1
- package/lib/appui-react/statusbar/Indicator.js +2 -2
- package/lib/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/appui-react/statusbar/LabelIndicator.js +2 -2
- package/lib/appui-react/statusbar/LabelIndicator.js.map +1 -1
- package/lib/appui-react/statusbar/Overflow.js.map +1 -1
- package/lib/appui-react/statusbar/Separator.js +1 -1
- package/lib/appui-react/statusbar/Separator.js.map +1 -1
- package/lib/appui-react/statusbar/StatusBar.js.map +1 -1
- package/lib/appui-react/statusbar/StatusBarComposer.js +6 -6
- package/lib/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/appui-react/statusbar/StatusBarItem.js.map +1 -1
- package/lib/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
- package/lib/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
- package/lib/appui-react/statusbar/dialog/Button.js.map +1 -1
- package/lib/appui-react/statusbar/dialog/Dialog.js.map +1 -1
- package/lib/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
- package/lib/appui-react/statusbar/popup/Popup.js +2 -2
- package/lib/appui-react/statusbar/popup/Popup.js.map +1 -1
- package/lib/appui-react/statusfields/ActivityCenter.js +2 -2
- package/lib/appui-react/statusfields/ActivityCenter.js.map +1 -1
- package/lib/appui-react/statusfields/SectionsField.js.map +1 -1
- package/lib/appui-react/statusfields/SelectionCount.js.map +1 -1
- package/lib/appui-react/statusfields/SelectionInfo.js +2 -2
- package/lib/appui-react/statusfields/SelectionInfo.js.map +1 -1
- package/lib/appui-react/statusfields/SelectionScope.js +3 -3
- package/lib/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/appui-react/statusfields/SnapMode.js +2 -2
- package/lib/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/appui-react/statusfields/ViewAttributes.d.ts +1 -1
- package/lib/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
- package/lib/appui-react/statusfields/ViewAttributes.js +1 -1
- package/lib/appui-react/statusfields/ViewAttributes.js.map +1 -1
- package/lib/appui-react/statusfields/message-center/MessageCenterField.js +1 -1
- package/lib/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
- package/lib/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
- package/lib/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +1 -1
- package/lib/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
- package/lib/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -1
- package/lib/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
- package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +11 -7
- package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
- package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.js +27 -9
- package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/appui-react/syncui/InternalSyncUiEventDispatcher.js +2 -2
- package/lib/appui-react/syncui/InternalSyncUiEventDispatcher.js.map +1 -1
- package/lib/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/appui-react/syncui/SyncUiEventDispatcher.js +3 -8
- package/lib/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/appui-react/syncui/UiSyncEvent.js +1 -1
- package/lib/appui-react/syncui/UiSyncEvent.js.map +1 -1
- package/lib/appui-react/theme/ThemeManager.d.ts +1 -1
- package/lib/appui-react/theme/ThemeManager.js +2 -2
- package/lib/appui-react/theme/ThemeManager.js.map +1 -1
- package/lib/appui-react/toolbar/GroupItem.js +1 -1
- package/lib/appui-react/toolbar/GroupItem.js.map +1 -1
- package/lib/appui-react/toolbar/Toolbar.js.map +1 -1
- package/lib/appui-react/toolbar/ToolbarComposer.js +3 -3
- package/lib/appui-react/toolbar/ToolbarComposer.js.map +1 -1
- package/lib/appui-react/toolbar/ToolbarHelper.js +4 -4
- package/lib/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/appui-react/toolbar/ToolbarItem.js.map +1 -1
- package/lib/appui-react/toolbar/ToolbarItemUtilities.js +1 -1
- package/lib/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
- package/lib/appui-react/toolbar/ToolbarItemsManager.js +10 -10
- package/lib/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
- package/lib/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
- package/lib/appui-react/toolbar/new-toolbars/Badge.d.ts +1 -1
- package/lib/appui-react/toolbar/new-toolbars/Badge.d.ts.map +1 -1
- package/lib/appui-react/toolbar/new-toolbars/Badge.js +1 -1
- package/lib/appui-react/toolbar/new-toolbars/Badge.js.map +1 -1
- package/lib/appui-react/toolbar/new-toolbars/GroupItem.js +2 -2
- package/lib/appui-react/toolbar/new-toolbars/GroupItem.js.map +1 -1
- package/lib/appui-react/toolbar/new-toolbars/Item.js +1 -1
- package/lib/appui-react/toolbar/new-toolbars/Item.js.map +1 -1
- package/lib/appui-react/toolbar/new-toolbars/ToolGroup.js.map +1 -1
- package/lib/appui-react/toolbar/new-toolbars/useOverflow.d.ts.map +1 -1
- package/lib/appui-react/toolbar/useDefaultToolbarItems.js +1 -1
- package/lib/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
- package/lib/appui-react/toolbar/useUiItemsProviderToolbarItems.js +1 -1
- package/lib/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
- package/lib/appui-react/tools/CoreToolDefinitions.js +2 -2
- package/lib/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/appui-react/tools/KeyinPaletteTools.d.ts +1 -1
- package/lib/appui-react/tools/OpenSettingsTool.d.ts +1 -1
- package/lib/appui-react/tools/RestoreLayoutTool.d.ts +2 -2
- package/lib/appui-react/tools/ToolbarItems.js +1 -1
- package/lib/appui-react/tools/ToolbarItems.js.map +1 -1
- package/lib/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
- package/lib/appui-react/toolsettings/DefaultToolSettingsProvider.js +3 -3
- package/lib/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
- package/lib/appui-react/toolsettings/InternalToolSettingsManager.js +2 -2
- package/lib/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
- package/lib/appui-react/toolsettings/ToolInformation.js +1 -1
- package/lib/appui-react/toolsettings/ToolInformation.js.map +1 -1
- package/lib/appui-react/toolsettings/ToolUiProvider.js +1 -1
- package/lib/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
- package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +5 -5
- package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.js +1 -1
- package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
- package/lib/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -1
- package/lib/appui-react/ui-items-provider/StandardContentToolsProvider.js +4 -4
- package/lib/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
- package/lib/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +3 -3
- package/lib/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
- package/lib/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +3 -3
- package/lib/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
- package/lib/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
- package/lib/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +1 -1
- package/lib/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/appui-react/ui-items-provider/UiItemsManager.js +3 -3
- package/lib/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/appui-react/uiadmin/FrameworkUiAdmin.js +3 -3
- package/lib/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
- package/lib/appui-react/uiprovider/ComponentGenerator.d.ts.map +1 -1
- package/lib/appui-react/uistate/AppUiSettings.js +2 -2
- package/lib/appui-react/uistate/AppUiSettings.js.map +1 -1
- package/lib/appui-react/uistate/LocalStateStorage.js +1 -1
- package/lib/appui-react/uistate/LocalStateStorage.js.map +1 -1
- package/lib/appui-react/uistate/UiStateStorage.js +1 -1
- package/lib/appui-react/uistate/UiStateStorage.js.map +1 -1
- package/lib/appui-react/uistate/useReduxFrameworkState.js +1 -1
- package/lib/appui-react/uistate/useReduxFrameworkState.js.map +1 -1
- package/lib/appui-react/uistate/useUiStateStorage.js +1 -1
- package/lib/appui-react/uistate/useUiStateStorage.js.map +1 -1
- package/lib/appui-react/utils/PropsHelper.js +5 -5
- package/lib/appui-react/utils/PropsHelper.js.map +1 -1
- package/lib/appui-react/utils/RectangleProps.js.map +1 -1
- package/lib/appui-react/utils/SizeProps.js.map +1 -1
- package/lib/appui-react/utils/ViewUtilities.d.ts.map +1 -1
- package/lib/appui-react/utils/ViewUtilities.js.map +1 -1
- package/lib/appui-react/utils/getActiveViewport.js +1 -1
- package/lib/appui-react/utils/getActiveViewport.js.map +1 -1
- package/lib/appui-react/widget-panels/DockedBar.js.map +1 -1
- package/lib/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/appui-react/widget-panels/Frontstage.js +9 -7
- package/lib/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/appui-react/widget-panels/StatusBar.js +5 -5
- package/lib/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/appui-react/widget-panels/Tab.js +4 -4
- package/lib/appui-react/widget-panels/Tab.js.map +1 -1
- package/lib/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
- package/lib/appui-react/widget-panels/ToolSettings.js +8 -5
- package/lib/appui-react/widget-panels/ToolSettings.js.map +1 -1
- package/lib/appui-react/widgets/BackstageAppButton.js +2 -2
- package/lib/appui-react/widgets/BackstageAppButton.js.map +1 -1
- package/lib/appui-react/widgets/BasicNavigationWidget.js +1 -1
- package/lib/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/appui-react/widgets/BasicToolWidget.js +1 -1
- package/lib/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/appui-react/widgets/ContentToolWidgetComposer.js +1 -1
- package/lib/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
- package/lib/appui-react/widgets/NavigationWidgetComposer.js +10 -10
- package/lib/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/appui-react/widgets/StatusBarWidgetComposerControl.js +1 -1
- package/lib/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
- package/lib/appui-react/widgets/ToolWidgetComposer.js +1 -1
- package/lib/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
- package/lib/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
- package/lib/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
- package/lib/appui-react/widgets/Widget.d.ts +11 -2
- package/lib/appui-react/widgets/Widget.d.ts.map +1 -1
- package/lib/appui-react/widgets/Widget.js.map +1 -1
- package/lib/appui-react/widgets/WidgetControl.js +1 -1
- package/lib/appui-react/widgets/WidgetControl.js.map +1 -1
- package/lib/appui-react/widgets/WidgetDef.js +21 -21
- package/lib/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/appui-react/widgets/WidgetManager.d.ts.map +1 -1
- package/lib/appui-react/widgets/useWidget.d.ts.map +1 -1
- package/lib/appui-react.js +1 -1
- package/lib/appui-react.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawInputField.scss +0 -15
- package/lib/esm/appui-react/accudraw/AccuDrawInputField.scss +0 -15
- package/package.json +20 -21
- package/lib/appui-react/layout/widget/tools/button/Back.d.ts +0 -21
- package/lib/appui-react/layout/widget/tools/button/Back.d.ts.map +0 -1
- package/lib/appui-react/layout/widget/tools/button/Back.js +0 -23
- package/lib/appui-react/layout/widget/tools/button/Back.js.map +0 -1
- package/lib/appui-react/preview/allow-letters-in-accudraw-input-fields/useAllowLettersInAccuDrawInputFields.d.ts +0 -5
- package/lib/appui-react/preview/allow-letters-in-accudraw-input-fields/useAllowLettersInAccuDrawInputFields.d.ts.map +0 -1
- package/lib/appui-react/preview/allow-letters-in-accudraw-input-fields/useAllowLettersInAccuDrawInputFields.js.map +0 -1
- package/lib/appui-react/preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.d.ts +0 -5
- package/lib/appui-react/preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.d.ts.map +0 -1
- package/lib/appui-react/preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.js +0 -13
- package/lib/appui-react/preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiFramework.js","sourceRoot":"","sources":["../../src/appui-react/UiFramework.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAQjD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAOlG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,KAAK,iBAAiB,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,gBAAgB,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,kBAAkB,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,gBAAgB,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACL,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OA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B,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO;IACT,CAAC;IACD,qBAAqB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACrD,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 Utilities\n */\n\nimport type { AnyAction, Store } from \"redux\";\nimport { BeUiEvent, Logger, ProcessDetector } from \"@itwin/core-bentley\";\nimport type { TranslationOptions } from \"@itwin/core-common\";\nimport type { IModelConnection, ViewState } from \"@itwin/core-frontend\";\nimport { SnapMode } from \"@itwin/core-frontend\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type {\n DialogLayoutDataProvider,\n DialogProps,\n Primitives,\n PropertyDescription,\n PropertyRecord,\n} from \"@itwin/appui-abstract\";\nimport { UiAdmin, UiError, UiEvent } from \"@itwin/appui-abstract\";\nimport { UiIModelComponents } from \"@itwin/imodel-components-react\";\nimport { BackstageManager } from \"./backstage/BackstageManager.js\";\nimport { InternalChildWindowManager } from \"./childwindow/InternalChildWindowManager.js\";\nimport { InternalConfigurableUiManager } from \"./configurableui/InternalConfigurableUiManager.js\";\nimport type { FrameworkState as ReduxFrameworkState } from \"./redux/FrameworkState.js\";\nimport type {\n CursorMenuData,\n CursorMenuPayload,\n PresentationSelectionScope,\n} from \"./redux/SessionState.js\";\nimport { SessionStateActionId } from \"./redux/SessionState.js\";\nimport { StateManager } from \"./redux/StateManager.js\";\nimport type { HideIsolateEmphasizeActionHandler } from \"./selection/HideIsolateEmphasizeManager.js\";\nimport { HideIsolateEmphasizeManager } from \"./selection/HideIsolateEmphasizeManager.js\";\nimport * as keyinPaletteTools from \"./tools/KeyinPaletteTools.js\";\nimport * as openSettingTools from \"./tools/OpenSettingsTool.js\";\nimport * as restoreLayoutTools from \"./tools/RestoreLayoutTool.js\";\nimport * as toolSettingTools from \"./tools/ToolSettingsTools.js\";\nimport {\n InternalUiShowHideManager,\n UiShowHideSettingsProvider,\n} from \"./utils/InternalUiShowHideManager.js\";\nimport { WidgetManager } from \"./widgets/WidgetManager.js\";\nimport { InternalFrontstageManager } from \"./frontstage/InternalFrontstageManager.js\";\nimport { InternalContentViewManager } from \"./content/InternalContentViewManager.js\";\nimport { InternalModalDialogManager } from \"./dialog/InternalModalDialogManager.js\";\nimport { InternalModelessDialogManager } from \"./dialog/InternalModelessDialogManager.js\";\nimport { InternalKeyboardShortcutManager } from \"./keyboardshortcut/InternalKeyboardShortcut.js\";\nimport { InternalToolSettingsManager } from \"./toolsettings/InternalToolSettingsManager.js\";\nimport type { FrameworkBackstage } from \"./framework/FrameworkBackstage.js\";\nimport type { FrameworkChildWindows } from \"./framework/FrameworkChildWindows.js\";\nimport type { FrameworkControls } from \"./framework/FrameworkControls.js\";\nimport type { FrameworkFrontstages } from \"./framework/FrameworkFrontstages.js\";\nimport type { FrameworkToolSettings } from \"./framework/FrameworkToolSettings.js\";\nimport type { FrameworkContent } from \"./framework/FrameworkContent.js\";\nimport type { FrameworkDialogs } from \"./framework/FrameworkDialogs.js\";\nimport type { FrameworkKeyboardShortcuts } from \"./framework/FrameworkKeyboardShortcuts.js\";\nimport type { FrameworkVisibility } from \"./framework/FrameworkVisibility.js\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"./syncui/SyncUiEventDispatcher.js\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport { PopupManager } from \"./popup/PopupManager.js\";\nimport { AccuDrawPopupManager } from \"./accudraw/AccuDrawPopupManager.js\";\nimport { UiDataProvidedDialog } from \"./dialog/UiDataProvidedDialog.js\";\nimport type { RefObject } from \"react\";\nimport { createElement } from \"react\";\nimport type { DialogInfo } from \"./dialog/DialogManagerBase.js\";\nimport type { KeyinEntry } from \"./keyins/Keyins.js\";\nimport { mapToRelativePosition, type Placement } from \"./utils/Placement.js\";\nimport type { Toolbar, ToolbarProps } from \"./toolbar/Toolbar.js\";\nimport type { CursorMenuItemProps } from \"./shared/MenuItem.js\";\nimport {\n SYSTEM_PREFERRED_COLOR_THEME,\n type ThemeId,\n TOOLBAR_OPACITY_DEFAULT,\n WIDGET_OPACITY_DEFAULT,\n} from \"./theme/ThemeId.js\";\nimport { ConfigurableUiActionId } from \"./redux/ConfigurableUiState.js\";\nimport type {\n ConfigurableUiContent,\n ConfigurableUiContentProps,\n} from \"./configurableui/ConfigurableUiContent.js\";\nimport type { SelectionScopeField } from \"./statusfields/SelectionScope.js\";\nimport type { SnapModeField } from \"./statusfields/SnapMode.js\";\nimport type { ThemeManager } from \"./theme/ThemeManager.js\";\nimport { useGlobalStore } from \"./uistate/useGlobalStore.js\";\nimport type { UiStateStorage } from \"./uistate/UiStateStorage.js\";\nimport { LocalStateStorage } from \"./uistate/LocalStateStorage.js\";\nimport { SettingsManager } from \"./settings/SettingsManager.js\";\n\ninterface ShowInputEditorOptions {\n location: XAndY;\n anchorElement?: HTMLElement;\n initialValue: Primitives.Value; // need strategy for replacing (appui-abstract)\n propertyDescription: PropertyDescription;\n onCommit: (value: Primitives.Value) => void;\n onCancel: () => void;\n}\n\n/** Interface to be implemented but any classes that wants to load their user settings when the UiStateEntry storage class is set.\n * @public\n */\nexport interface UserSettingsProvider {\n /** Unique provider Id */\n providerId: string;\n /** Function to load settings from settings storage */\n loadUserSettings(storage: UiStateStorage): Promise<void>;\n}\n\n/** UiVisibility Event Args interface.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface UiVisibilityEventArgs {\n visible: boolean;\n}\n\n/** UiVisibility Event class.\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class UiVisibilityChangedEvent extends UiEvent<UiVisibilityEventArgs> {}\n\n/** TrackingTime time argument used by our feature tracking manager as an option argument to the TelemetryClient\n * @internal\n */\nexport interface TrackingTime {\n startTime: Date;\n endTime: Date;\n}\n\ntype fn = typeof PopupManager.showComponent;\ntype ShowComponentParams = Parameters<fn>;\ntype OptionalShowComponentParams = [\n ShowComponentParams[0],\n Partial<\n Exclude<ShowComponentParams[1], \"anchor\"> & {\n anchorRef?: RefObject<HTMLElement>;\n }\n >?\n];\n\n/** Main entry point to configure and interact with the features provided by the AppUi-react package.\n * @public\n */\nexport class UiFramework {\n /** Operation on the backstage component. */\n public static get backstage(): FrameworkBackstage {\n if (!UiFramework._backstageManager)\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._backstageManager;\n }\n\n /** Manage access to the child windows. */\n public static get childWindows(): FrameworkChildWindows {\n return appUi.windowManager;\n }\n\n /** Manage registered controls.\n * @deprecated in 4.16.0. Uses a deprecated interface {@link FrameworkControls}.\n */\n // eslint-disable-next-line deprecation/deprecation\n public static get controls(): FrameworkControls {\n return InternalConfigurableUiManager;\n }\n\n /** Manage access to frontstages and related helper methods. */\n public static get frontstages(): FrameworkFrontstages {\n return InternalFrontstageManager;\n }\n\n /** Manage access and behavior of the tool settings. */\n public static get toolSettings(): FrameworkToolSettings {\n return InternalToolSettingsManager;\n }\n\n /** Manage content presented by the frontstages. */\n public static get content(): FrameworkContent {\n return InternalContentViewManager;\n }\n\n /** Manage displayed dialogs. */\n public static get dialogs(): FrameworkDialogs {\n return {\n modal: InternalModalDialogManager,\n modeless: InternalModelessDialogManager,\n };\n }\n\n /** Manages global keyboard shortcuts\n *\n * Note: This only manages the list of available shortcuts registered with it. It does not listens to the actual\n * keyboard events. In order for these shortcuts to be called upon a keyboard event, the application can\n * override the `IModelApp.toolAdmin` and assign it [[FrameworkToolAdmin]] or create an event listener\n * and call `UiFramework.keyboardShortcuts.processKey`.\n */\n public static get keyboardShortcuts(): FrameworkKeyboardShortcuts {\n return InternalKeyboardShortcutManager;\n }\n\n /** Manages UI visibility (Show/Hide). */\n public static get visibility(): FrameworkVisibility {\n return InternalUiShowHideManager;\n }\n\n private static _initialized = false;\n private static _store?: Store<any>;\n private static _complaint = \"UiFramework not initialized\";\n private static _frameworkStateKeyInStore: string = \"frameworkState\"; // default name\n // eslint-disable-next-line deprecation/deprecation\n private static _backstageManager?: BackstageManager;\n private static _widgetManager?: WidgetManager;\n private static _hideIsolateEmphasizeActionHandler?: HideIsolateEmphasizeActionHandler;\n /** this provides a default state storage handler */\n private static _uiStateStorage: UiStateStorage = new LocalStateStorage();\n private static _settingsManager?: SettingsManager;\n private static _uiSettingsProviderRegistry: Map<\n string,\n UserSettingsProvider\n > = new Map<string, UserSettingsProvider>();\n public static useDefaultPopoutUrl = false;\n private static readonly CONTEXT_MENU_OFFSET = -8;\n\n /** Event raised within UiFramework.setIModelConnection */\n public static readonly onIModelConnectionChanged = new BeUiEvent<\n IModelConnection | undefined\n >();\n\n /** Registers class that will be informed when the UserSettingsStorage location has been set or changed. This allows\n * classes to load any previously saved settings from the new storage location. Common storage locations are the browser's\n * local storage, or the iTwin Product Settings cloud storage available via the SettingsAdmin see `IModelApp.settingsAdmin`.\n */\n public static registerUserSettingsProvider(entry: UserSettingsProvider) {\n if (this._uiSettingsProviderRegistry.has(entry.providerId)) return false;\n\n this._uiSettingsProviderRegistry.set(entry.providerId, entry);\n return true;\n }\n\n /** Get Show Ui event. */\n // eslint-disable-next-line deprecation/deprecation\n public static readonly onUiVisibilityChanged = new UiVisibilityChangedEvent();\n\n /** Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore. */\n public static async initialize(): Promise<void>;\n /** Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore.\n * @param store The single Redux store created by the host application. If this is `undefined` then it is assumed that the [[StateManager]] is being used to provide the Redux store.\n * @param frameworkStateKey The name of the key used by the app when adding the UiFramework state into the Redux store. If not defined \"frameworkState\" is assumed. This value is ignored if [[StateManager]] is being used. The StateManager use \"frameworkState\".\n * @deprecated in 4.15.0. Continue using redux initializer until all application components react to redux deprecations. Use overload without parameters instead.\n */\n public static async initialize(\n // eslint-disable-next-line deprecation/deprecation\n store: Store<any, AnyAction> | undefined,\n // eslint-disable-next-line @typescript-eslint/unified-signatures\n frameworkStateKey?: string\n ): Promise<void>;\n public static async initialize(\n // eslint-disable-next-line deprecation/deprecation\n store?: Store<any, AnyAction> | undefined,\n frameworkStateKey?: string\n ): Promise<void> {\n // TODO: check `arguments` to determine between redux & no-redux initializers.\n if (UiFramework._initialized) {\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiFramework\"),\n `UiFramework.initialize already called`\n );\n return;\n }\n\n /* if store is undefined then the StateManager class should have been initialized by parent app and the apps default set of reducers registered with it.\n If the app has no reducers to add and does not initialize a StateManager then just initialize the StateManager with the default framework reducer now */\n // eslint-disable-next-line deprecation/deprecation\n if (undefined === store && !StateManager.isInitialized(true))\n // eslint-disable-next-line deprecation/deprecation\n new StateManager();\n\n UiFramework._store = store;\n\n // ignore setting _frameworkStateKeyInStore if not using store\n if (frameworkStateKey && store)\n UiFramework._frameworkStateKeyInStore = frameworkStateKey;\n\n // set up namespace and register all tools from package\n const frameworkNamespace = IModelApp.localization?.registerNamespace(\n UiFramework.localizationNamespace\n );\n [\n restoreLayoutTools,\n keyinPaletteTools,\n openSettingTools,\n toolSettingTools,\n ].forEach((tool) =>\n IModelApp.tools.registerModule(tool, this.localizationNamespace)\n );\n\n // eslint-disable-next-line deprecation/deprecation\n UiFramework._backstageManager = new BackstageManager();\n UiFramework._hideIsolateEmphasizeActionHandler =\n new HideIsolateEmphasizeManager(); // this allows user to override the default HideIsolateEmphasizeManager implementation.\n UiFramework._widgetManager = new WidgetManager();\n\n // Initialize ui-imodel-components, ui-components, ui-core & ui-abstract\n await UiIModelComponents.initialize();\n\n UiFramework.settingsManager.onSettingsProvidersChanged.addListener(() => {\n dispatchSyncUiEvent(SyncUiEventId.SettingsProvidersChanged);\n });\n\n // Initialize the MessagePresenter interface in UiAdmin for Editor notifications\n UiAdmin.messagePresenter = IModelApp.notifications;\n\n UiFramework._initialized = true;\n\n // initialize any standalone settings providers that don't need to have defaults set by iModelApp\n UiShowHideSettingsProvider.initialize();\n\n InternalConfigurableUiManager.initialize();\n\n return frameworkNamespace;\n }\n\n /** Un-registers the UiFramework internationalization service namespace. */\n public static terminate() {\n InternalKeyboardShortcutManager.shortcutContainer.emptyData();\n UiFramework._store = undefined;\n UiFramework._frameworkStateKeyInStore = \"frameworkState\";\n // eslint-disable-next-line deprecation/deprecation\n if (StateManager.isInitialized(true)) StateManager.clearStore();\n IModelApp.localization?.unregisterNamespace(\n UiFramework.localizationNamespace\n );\n UiFramework._backstageManager = undefined;\n UiFramework._widgetManager = undefined;\n UiFramework._hideIsolateEmphasizeActionHandler = undefined;\n UiFramework._settingsManager = undefined;\n\n UiIModelComponents.terminate();\n InternalUiShowHideManager.terminate();\n UiFramework._initialized = false;\n }\n\n /** Determines if UiFramework has been initialized */\n public static get initialized(): boolean {\n return UiFramework._initialized;\n }\n\n /** Property that returns the SettingManager used by AppUI-based applications. */\n public static get settingsManager() {\n if (undefined === UiFramework._settingsManager)\n UiFramework._settingsManager = new SettingsManager();\n return UiFramework._settingsManager;\n }\n\n /** The internationalization service namespace. */\n public static get localizationNamespace(): string {\n return \"UiFramework\";\n }\n\n public static get hideIsolateEmphasizeActionHandler(): HideIsolateEmphasizeActionHandler {\n if (!UiFramework._hideIsolateEmphasizeActionHandler)\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._hideIsolateEmphasizeActionHandler;\n }\n\n public static setHideIsolateEmphasizeActionHandler(\n handler: HideIsolateEmphasizeActionHandler | undefined\n ) {\n if (handler) UiFramework._hideIsolateEmphasizeActionHandler = handler;\n else\n UiFramework._hideIsolateEmphasizeActionHandler =\n new HideIsolateEmphasizeManager();\n }\n\n /** @alpha */\n public static get widgetManager(): WidgetManager {\n if (!UiFramework._widgetManager)\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._widgetManager;\n }\n\n /** Calls localization.getLocalizedString with the \"UiFramework\" namespace. Do NOT include the namespace in the key.\n * @internal\n */\n public static translate(\n key: string | string[],\n options?: TranslationOptions\n ): string {\n return IModelApp.localization.getLocalizedString(\n `${UiFramework.localizationNamespace}:${key}`,\n options\n );\n }\n\n /** @internal */\n public static get packageName(): string {\n return \"appui-react\";\n }\n\n /** @internal */\n public static loggerCategory(name: string): string {\n return `${UiFramework.packageName}.${name}`;\n }\n\n /** Show a context menu at a particular location.\n * @param items Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of anchorElement or the overall window.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static openContextMenu(\n items: CursorMenuItemProps[],\n location: XAndY,\n anchorElement?: HTMLElement\n ): boolean {\n let position = location;\n let childWindowId: string | undefined;\n\n if (anchorElement) {\n const anchorOffset = anchorElement.getBoundingClientRect();\n\n position = {\n x: anchorOffset.left + location.x,\n y: anchorOffset.top + location.y,\n };\n\n childWindowId = UiFramework.childWindows.findId(\n anchorElement.ownerDocument.defaultView\n );\n }\n\n position = {\n x: position.x + UiFramework.CONTEXT_MENU_OFFSET,\n y: position.y + UiFramework.CONTEXT_MENU_OFFSET,\n };\n\n const cursorMenuData: CursorMenuPayload = {\n position,\n items,\n childWindowId,\n };\n UiFramework.openCursorMenu(cursorMenuData);\n\n return true;\n }\n\n public static openCursorMenu(\n // eslint-disable-next-line deprecation/deprecation\n menuData: CursorMenuData | CursorMenuPayload | undefined\n ): void {\n // eslint-disable-next-line deprecation/deprecation\n if (this.frameworkState) {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line deprecation/deprecation\n SessionStateActionId.UpdateCursorMenu,\n menuData\n );\n return;\n }\n\n useGlobalStore.setState({ cursorMenuPayload: menuData });\n // eslint-disable-next-line deprecation/deprecation\n dispatchSyncUiEvent(SessionStateActionId.UpdateCursorMenu);\n }\n\n public static closeCursorMenu(): void {\n // eslint-disable-next-line deprecation/deprecation\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line deprecation/deprecation\n SessionStateActionId.UpdateCursorMenu,\n undefined\n );\n return;\n }\n\n useGlobalStore.setState({ cursorMenuPayload: undefined });\n // eslint-disable-next-line deprecation/deprecation\n dispatchSyncUiEvent(SessionStateActionId.UpdateCursorMenu);\n }\n\n /** @note Returned value is immutable. */\n public static getCursorMenuData(): // eslint-disable-next-line deprecation/deprecation\n CursorMenuData | CursorMenuPayload | undefined {\n // eslint-disable-next-line deprecation/deprecation\n const state = this.frameworkState;\n if (state) {\n return (\n // eslint-disable-next-line deprecation/deprecation\n state.sessionState.cursorMenuPayload ??\n // eslint-disable-next-line deprecation/deprecation\n state.sessionState.cursorMenuData\n );\n }\n\n return useGlobalStore.getState().cursorMenuPayload;\n }\n\n public static setIModelConnection(\n iModelConnection: IModelConnection | undefined,\n immediateSync = false\n ) {\n const oldConnection = UiFramework.getIModelConnection();\n if (oldConnection === iModelConnection) return;\n\n InternalFrontstageManager.clearFrontstageDefsForIModelId(\n oldConnection?.iModelId\n );\n\n oldConnection && SyncUiEventDispatcher.clearConnectionEvents(oldConnection);\n iModelConnection &&\n SyncUiEventDispatcher.initializeConnectionEvents(iModelConnection);\n\n // eslint-disable-next-line deprecation/deprecation\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line deprecation/deprecation\n SessionStateActionId.SetIModelConnection,\n iModelConnection,\n immediateSync\n );\n } else {\n useGlobalStore.setState({ iModelConnection });\n // eslint-disable-next-line deprecation/deprecation\n dispatchSyncUiEvent(SessionStateActionId.SetIModelConnection);\n }\n\n const itemsSelected = iModelConnection\n ? iModelConnection.selectionSet.elements.size\n : 0;\n\n UiFramework.setNumItemsSelected(itemsSelected);\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.setActiveIModelId(iModelConnection?.iModelId ?? \"\");\n UiFramework.onIModelConnectionChanged.emit(iModelConnection);\n }\n\n public static getIModelConnection(): IModelConnection | undefined {\n // eslint-disable-next-line deprecation/deprecation\n const frameworkState = UiFramework.frameworkState;\n if (frameworkState) {\n // eslint-disable-next-line deprecation/deprecation\n return frameworkState.sessionState.iModelConnection;\n }\n return useGlobalStore.getState().iModelConnection;\n }\n\n public static setNumItemsSelected(numSelected: number) {\n // eslint-disable-next-line deprecation/deprecation\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line deprecation/deprecation\n SessionStateActionId.SetNumItemsSelected,\n numSelected\n );\n return;\n }\n\n useGlobalStore.setState({ numItemsSelected: numSelected });\n // eslint-disable-next-line deprecation/deprecation\n dispatchSyncUiEvent(SessionStateActionId.SetNumItemsSelected);\n }\n\n public static getNumItemsSelected() {\n // eslint-disable-next-line deprecation/deprecation\n const state = this.frameworkState;\n if (state) {\n // eslint-disable-next-line deprecation/deprecation\n return state.sessionState.numItemsSelected;\n }\n\n return useGlobalStore.getState().numItemsSelected;\n }\n\n /** Called by iModelApp to initialize saved UI state from registered UseSettingsProviders. */\n public static async initializeStateFromUserSettingsProviders(\n immediateSync = false\n ) {\n // let any registered providers to load values from the new storage location\n const providerKeys = [...this._uiSettingsProviderRegistry.keys()];\n for await (const key of providerKeys) {\n await this._uiSettingsProviderRegistry\n .get(key)!\n .loadUserSettings(UiFramework._uiStateStorage);\n }\n\n dispatchSyncUiEvent(SyncUiEventId.UiStateStorageChanged, immediateSync);\n }\n\n public static async setUiStateStorage(\n storage: UiStateStorage,\n immediateSync = false\n ) {\n if (UiFramework._uiStateStorage === storage) return;\n\n UiFramework._uiStateStorage = storage;\n await this.initializeStateFromUserSettingsProviders(immediateSync);\n }\n\n /** The UI Settings Storage is a convenient wrapper around Local Storage to assist in caching state information across user sessions.\n * It was previously used to conflate both the state information across session and the information driven directly from user explicit action,\n * which are now handled with user preferences.\n */\n public static getUiStateStorage(): UiStateStorage {\n return UiFramework._uiStateStorage;\n }\n\n public static setDefaultViewState(\n viewState: ViewState,\n immediateSync = false\n ) {\n // eslint-disable-next-line deprecation/deprecation\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line deprecation/deprecation\n SessionStateActionId.SetDefaultViewState,\n viewState,\n immediateSync\n );\n return;\n }\n\n useGlobalStore.setState({ viewState });\n dispatchSyncUiEvent(\n // eslint-disable-next-line deprecation/deprecation\n SessionStateActionId.SetDefaultViewState,\n immediateSync\n );\n }\n\n public static getDefaultViewState(): ViewState | undefined {\n // eslint-disable-next-line deprecation/deprecation\n const frameworkState = UiFramework.frameworkState;\n if (frameworkState) {\n // eslint-disable-next-line deprecation/deprecation\n return frameworkState.sessionState.defaultViewState;\n }\n return useGlobalStore.getState().viewState;\n }\n\n /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */\n public static getIsUiVisible() {\n return UiFramework.visibility.isUiVisible;\n }\n\n /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */\n public static setIsUiVisible(visible: boolean) {\n UiFramework.visibility.isUiVisible = visible;\n }\n\n /** @deprecated in 4.13.0. Use {@link @itwin/core-bentley#ProcessDetector.isMobileBrowser} instead. */\n // eslint-disable-next-line @itwin/prefer-get\n public static isMobile() {\n return ProcessDetector.isMobileBrowser;\n }\n\n /** Determines whether a ContextMenu is open\n * @alpha\n */\n public static get isContextMenuOpen(): boolean {\n const contextMenu = document.querySelector(\"div.core-context-menu-opened\");\n return contextMenu !== null && contextMenu !== undefined;\n }\n\n /** Show a Card containing content, a title and a toolbar at a particular location.\n * @param content The React component of the content to display\n * @param title Title to display at the top of the card.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Card, relative to the origin of anchorElement or the window.\n * @param offset Offset of the Card from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n * @internal\n */\n public static showCard(\n content: React.ReactNode,\n title: string | PropertyRecord | undefined,\n toolbarProps: ToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: (item: any) => void,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const anchor = this.resolveHtmlElement(anchorElement);\n\n return PopupManager.displayCard(content, {\n title,\n toolbarProps,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n anchor,\n });\n }\n\n /**\n * Hides a Card displayed with {@link UiFramework.showCard}\n * @internal\n */\n public static hideCard() {\n return PopupManager.hideCard();\n }\n\n /** Opens a Tool Settings Ui popup at a particular location.\n * @param dataProvider The DialogLayoutDataProvider for the tool settings popup dialog.\n * @param location Location of the tool settings, relative to the origin of anchorElement or the window\n * @param offset Offset of the tool settings from the location\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the tool settings\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the tool settings. If undefined, the location is relative to the overall window.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n * @internal\n */\n public static openToolSettingsPopup(\n dataProvider: DialogLayoutDataProvider,\n location: XAndY,\n offset: XAndY,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n const relativePosition = mapToRelativePosition(placement);\n\n return PopupManager.openToolSettings(\n dataProvider,\n el,\n location,\n offset,\n onCancel,\n relativePosition\n );\n }\n\n /**\n * Closes the Tool Settings Ui popup.\n * @internal\n */\n public static closeToolSettingsPopup() {\n return PopupManager.closeToolSettings();\n }\n\n /** Show a Toolbar at a particular location.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Toolbar, relative to the origin of anchorElement or the overall window.\n * @param offset Offset of the Toolbar from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Toolbar\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.\n * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.\n */\n public static showToolbar(\n toolbarProps: ToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: (item: any) => void,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const anchor = UiFramework.resolveHtmlElement(anchorElement);\n\n return PopupManager.displayToolbar(toolbarProps.items, {\n anchor,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n });\n }\n\n /** Hides a toolbar displayed via {@link UiFramework.showToolbar} */\n public static hideToolbar() {\n return PopupManager.hideToolbar();\n }\n\n /** Show a menu button at a particular location. A menu button opens a context menu.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @param menuItemsProps Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of anchorElement or the window.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static showMenuButton(\n id: string,\n menuItemsProps: CursorMenuItemProps[],\n location: XAndY,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n return AccuDrawPopupManager.showMenuButton(\n id,\n el,\n location,\n menuItemsProps\n );\n }\n\n /** Hides a menu button.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @return true if the menu was hidden, false if the menu could not be hidden.\n */\n public static hideMenuButton(id: string) {\n return AccuDrawPopupManager.hideMenuButton(id);\n }\n /** Show a calculator at a particular location.\n * @param initialValue Value initially displayed in the calculator.\n * @param resultIcon Icon displayed to the left of the value.\n * @param location Location of the calculator, relative to the origin of anchorElement or the window.\n * @param onOk Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static showCalculator(\n initialValue: number,\n resultIcon: string,\n location: XAndY,\n onOk: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n\n return AccuDrawPopupManager.showCalculator(\n el,\n location,\n initialValue,\n resultIcon,\n onOk,\n onCancel\n );\n }\n\n /** Hides the calculator. */\n public static hideCalculator(): boolean {\n return AccuDrawPopupManager.hideCalculator();\n }\n\n /** Show a React Element at a particular location.\n * @param component The ReactElement to display\n * @param options - Optional {@link: ShowComponentParams}\n */\n\n public static showComponent(...params: OptionalShowComponentParams): boolean {\n const options: (typeof params)[1] = params[1] || {};\n const component = params[0];\n const { anchorRef, id } = options;\n\n let { location, offset, onCancel, placement } = options;\n\n if (!location) location = { x: 0, y: 0 };\n if (!offset) offset = { x: 0, y: 0 };\n if (!placement) placement = \"top-end\";\n if (!onCancel) onCancel = () => UiFramework.hideComponent(id);\n\n return PopupManager.showComponent(component, {\n location,\n offset,\n onCancel,\n placement,\n anchor: anchorRef?.current ?? undefined,\n id,\n });\n }\n\n /**\n * Hides the Component previously shown with {@link UiFramework.showComponent}\n */\n public static hideComponent(id?: string): boolean {\n return PopupManager.hideComponent(id);\n }\n\n /** Show an input editor for an angle value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of anchorElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public static showAngleEditor(\n initialValue: number,\n location: XAndY,\n onCommit: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n\n return AccuDrawPopupManager.showAngleEditor(\n el,\n location,\n initialValue,\n onCommit,\n onCancel\n );\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param ShowInputEditorOptions Options detailed below for the input editor\n * @param ShowInputEditorOptions.anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @param ShowInputEditorOptions.propertyDescription Description of the primitive value property\n * @param ShowInputEditorOptions.initialValue Value initially displayed in the editor.\n * @param ShowInputEditorOptions.location Location of the editor, relative to the origin of anchorElement or the window.\n * @param ShowInputEditorOptions.onCommit Function called when the OK button or the Enter key is pressed.\n * @param ShowInputEditorOptions.onCancel Function called when the Cancel button or the Escape key is pressed.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @internal\n */\n public static showInputEditor({\n anchorElement,\n initialValue,\n location,\n onCancel,\n onCommit,\n propertyDescription,\n }: ShowInputEditorOptions): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n PopupManager.showInputEditor(\n el,\n location,\n initialValue,\n propertyDescription,\n onCommit,\n onCancel\n );\n return true;\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param dimension Dimension determining which editor to display.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of anchorElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public static showDimensionEditor(\n dimension: \"height\" | \"length\",\n initialValue: number,\n location: XAndY,\n onCommit: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ) {\n const el = this.resolveHtmlElement(anchorElement);\n return AccuDrawPopupManager.showDimensionEditor(\n dimension,\n el,\n location,\n initialValue,\n onCommit,\n onCancel\n );\n }\n\n /** Hides the input editor.\n * @internal\n */\n public static hideInputEditor(): boolean {\n return PopupManager.hideInputEditor();\n }\n\n /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.\n * @param uiDataProvider The UiDataProvider for the tool settings\n * @param title Specify title for dialog.\n * @param isModal Specify if the dialog is opened as a modal or modeless.\n * @param id Id of the dialog that is used to close it.\n * @param optionalProps Optional props for Dialog construction.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n * @internal\n */\n public static openDialog(\n uiDataProvider: DialogLayoutDataProvider,\n title: string,\n isModal: boolean,\n id: string,\n optionalProps?: DialogProps\n ): boolean {\n // eslint-disable-next-line deprecation/deprecation\n const dialog = createElement(UiDataProvidedDialog, {\n uiDataProvider,\n title,\n isModal,\n id,\n ...optionalProps,\n });\n const modalType = isModal ? \"modal\" : \"modeless\";\n UiFramework.dialogs[modalType].open(dialog, id);\n return true;\n }\n\n /** Closes the Dialog with the specified dialogId.\n * @param dialogId Id of the dialog to close.\n * @internal\n */\n public static closeDialog(dialogId: string): boolean {\n const findFn = (info: DialogInfo) => info.id === dialogId;\n if (UiFramework.dialogs.modeless.dialogs.findIndex(findFn) !== -1) {\n UiFramework.dialogs.modeless.close(dialogId);\n return true;\n }\n\n if (UiFramework.dialogs.modal.dialogs.findIndex(findFn) !== -1) {\n UiFramework.dialogs.modal.close();\n return true;\n }\n\n return false;\n }\n\n /** Show the Key-in Palette to display key-in from all registered Tools.\n * @param keyinEntries A list of KeyinEntry to display in the palette. These can be gathered and filtered from iModelApp.tools.getToolList()\n * @param htmlElement The HTMLElement that anchors the Popup. If undefined, the location is relative to the overall window.\n * @return true if the Command Palette was displayed, false if it could not be displayed.\n */\n public static showKeyinPalette(\n keyinEntries: KeyinEntry[],\n htmlElement?: HTMLElement\n ): boolean {\n return PopupManager.showKeyinPalette(\n keyinEntries,\n UiFramework.resolveHtmlElement(htmlElement)\n );\n }\n\n /** Hides the Key-in Palette. */\n public static hideKeyinPalette(): boolean {\n return PopupManager.hideKeyinPalette();\n }\n\n private static resolveHtmlElement(htmlElement?: HTMLElement): HTMLElement {\n // eslint-disable-next-line deprecation/deprecation\n const el = htmlElement ?? UiFramework.controls.getWrapperElement();\n return el;\n }\n\n /* eslint-disable deprecation/deprecation */\n\n /** @deprecated in 4.15.0. Use your preferred state management library instead and {@link SyncUiEventDispatcher} to dispatch sync UI events. */\n public static dispatchActionToStore(\n type: string,\n payload: any,\n immediateSync = false\n ) {\n const reduxStore = UiFramework.reduxStore;\n const reduxState = reduxStore?.getState();\n const frameworkState = reduxState?.[UiFramework.frameworkStateKey];\n if (!frameworkState) return;\n reduxStore!.dispatch({ type, payload });\n dispatchSyncUiEvent(type, immediateSync);\n }\n\n /** Key used to access framework state from redux store.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get frameworkStateKey(): string {\n return UiFramework._frameworkStateKeyInStore;\n }\n\n /** The Redux store.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get store(): Store<any> {\n const reduxStore = this.reduxStore;\n if (!reduxStore) {\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n `Error trying to access redux store before either store or StateManager has been initialized.`\n );\n }\n\n return reduxStore;\n }\n\n /** @internal */\n public static get reduxStore(): Store<any> | undefined {\n if (UiFramework._store) {\n return UiFramework._store;\n }\n\n if (StateManager.isInitialized(true)) {\n return StateManager.store;\n }\n\n return undefined;\n }\n\n /** The UiFramework state maintained by Redux.\n * @note Returned fields should not be modified. Use the appropriate action dispatchers to modify the state.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get frameworkState(): ReduxFrameworkState | undefined {\n const store = UiFramework.reduxStore;\n const state = store?.getState();\n const frameworkState = state?.[UiFramework.frameworkStateKey];\n return frameworkState;\n }\n\n /** Set the theme value used by the [[ThemeManager]] component.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `theme` as a prop.\n */\n public static getColorTheme(): ThemeId {\n return (\n UiFramework.frameworkState?.configurableUiState.theme ??\n SYSTEM_PREFERRED_COLOR_THEME\n );\n }\n\n /** Set the theme value used by the [[ThemeManager]] component.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `theme` prop of {@link ThemeManager}.\n */\n public static setColorTheme(theme: ThemeId) {\n if (UiFramework.getColorTheme() === theme) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetTheme,\n theme,\n true\n );\n }\n\n /** Returns the variable controlling whether the overlay is displayed in a Viewport.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `viewOverlay` as a prop.\n */\n public static get viewOverlayDisplay() {\n return (\n UiFramework.frameworkState?.configurableUiState.viewOverlayDisplay ?? true\n );\n }\n\n /** Set the variable that controls display of the view overlay. Applies to all viewports in the app.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.viewOverlay} prop of {@link ConfigurableUiContent}.\n */\n public static setViewOverlayDisplay(display: boolean) {\n if (UiFramework.viewOverlayDisplay === display) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetViewOverlayDisplay,\n display\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `widgetOpacity` as a prop.\n */\n public static getWidgetOpacity(): number {\n return (\n UiFramework.frameworkState?.configurableUiState.widgetOpacity ??\n WIDGET_OPACITY_DEFAULT\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.widgetOpacity} prop of {@link ConfigurableUiContent}.\n */\n public static setWidgetOpacity(opacity: number) {\n if (UiFramework.getWidgetOpacity() === opacity) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetWidgetOpacity,\n opacity,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `snapMode` as a prop.\n */\n public static getAccudrawSnapMode(): SnapMode {\n return (\n UiFramework.frameworkState?.configurableUiState.snapMode ??\n SnapMode.NearestKeypoint\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `snapMode` prop of {@link SnapModeField}.\n */\n public static setAccudrawSnapMode(snapMode: SnapMode) {\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetSnapMode,\n snapMode,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `useDragInteraction` as a prop.\n */\n public static get useDragInteraction(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.useDragInteraction ??\n false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `useDragInteraction` prop of {@link Toolbar}.\n */\n public static setUseDragInteraction(useDragInteraction: boolean) {\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetDragInteraction,\n useDragInteraction,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `widgetIcon` as a prop.\n */\n public static get showWidgetIcon(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.showWidgetIcon ?? false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.widgetIcon} prop of {@link ConfigurableUiContent}.\n */\n public static setShowWidgetIcon(value: boolean) {\n if (UiFramework.showWidgetIcon === value) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetShowWidgetIcon,\n value,\n true\n );\n }\n\n /** When `true`, panels will close as soon as the mouse leave the panel.\n * When `false` (default), panels will close on next click outside the panel.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `collapsePanels` as a prop.\n */\n public static get autoCollapseUnpinnedPanels(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState\n .autoCollapseUnpinnedPanels ?? false\n );\n }\n\n /** Method used to enable the automatic closing of an unpinned widget panel as soon as the\n * mouse leaves the widget panel. The default behavior is to require a mouse click outside\n * the panel before it is closed.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.collapsePanels} prop of {@link ConfigurableUiContent}.\n */\n public static setAutoCollapseUnpinnedPanels(value: boolean) {\n if (UiFramework.autoCollapseUnpinnedPanels === value) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.AutoCollapseUnpinnedPanels,\n value,\n true\n );\n }\n\n /** Animate Tool Settings on appear.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `animateToolSettings` as a prop.\n */\n public static get animateToolSettings(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.animateToolSettings ??\n false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.animateToolSettings} prop of {@link ConfigurableUiContent}.\n */\n public static setAnimateToolSettings(value: boolean) {\n if (UiFramework.animateToolSettings === value) return;\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.AnimateToolSettings,\n value,\n true\n );\n }\n\n /** Use Tool Name As Tool Settings Widget Tab Label.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `toolAsToolSettingsLabel` as a prop.\n */\n public static get useToolAsToolSettingsLabel(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState\n .useToolAsToolSettingsLabel ?? false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.toolAsToolSettingsLabel} prop of {@link ConfigurableUiContent}.\n */\n public static setUseToolAsToolSettingsLabel(value: boolean) {\n if (UiFramework.useToolAsToolSettingsLabel === value) return;\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.UseToolAsToolSettingsLabel,\n value,\n true\n );\n }\n\n /** UiFramework.getToolbarOpacity() returns a number between 0 and 1 that is the non-hovered opacity for toolbars.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `opacity` as a prop.\n */\n public static getToolbarOpacity(): number {\n return (\n UiFramework.frameworkState?.configurableUiState.toolbarOpacity ??\n TOOLBAR_OPACITY_DEFAULT\n );\n }\n\n /** UiFramework.setToolbarOpacity() sets the non-hovered opacity to the value specified.\n * @param opacity a value between 0 and 1. The default value is 0.5. IT IS NOT ADVISED TO USE A VALUE BELOW 0.2\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.toolbarOpacity} prop of {@link ConfigurableUiContent}.\n */\n public static setToolbarOpacity(opacity: number) {\n if (UiFramework.getToolbarOpacity() === opacity) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetToolbarOpacity,\n opacity,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Get id from iModel connection.\n */\n public static getActiveIModelId(): string {\n return UiFramework.frameworkState?.sessionState.iModelId ?? \"\";\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setActiveIModelId(iModelId: string): void {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetActiveIModelId,\n iModelId\n );\n }\n\n /** Returns the stored active selection scope id.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `activeScope` as a prop.\n */\n public static getActiveSelectionScope(): string {\n return (\n UiFramework.frameworkState?.sessionState.activeSelectionScope ?? \"element\"\n );\n }\n /** This method stores the active selection scope to the supplied scope id, and triggers\n * a `SessionStateActionId.SetSelectionScope` event in the `SyncUiEventDispatcher`.\n * Note: As of 4.0, this method *does not change* the active selection scope in the `Presentation.selection.scopes.activeScope` property.\n * This event should be listened to and the change should typically be applied to\n * `Presentation.selection.scopes.activeScope` property from the `@itwin/presentation-frontend` package.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `activeScope` prop of {@link SelectionScopeField}.\n */\n public static setActiveSelectionScope(selectionScopeId: string): void {\n if (!UiFramework.frameworkState) return;\n\n const foundIndex =\n UiFramework.frameworkState.sessionState.availableSelectionScopes.findIndex(\n (selectionScope: PresentationSelectionScope) =>\n selectionScope.id === selectionScopeId\n );\n if (foundIndex < 0) return;\n\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetSelectionScope,\n selectionScopeId\n );\n }\n\n /** Returns the stored list of available selection scopes. This list should be set by the application\n * by dispatching the `setAvailableSelectionScopes` action.\n * The value for this action typically come from `Presentation.selection.scopes.getSelectionScopes()`\n * method found in the `@itwin/presentation-frontend` package.\n * @note Returned value is immutable.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `selectionScopes` as a prop.\n */\n public static getAvailableSelectionScopes(): PresentationSelectionScope[] {\n return (\n UiFramework.frameworkState?.sessionState.availableSelectionScopes ?? [\n { id: \"element\", label: \"Element\" },\n ]\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static getDefaultIModelViewportControlId(): string | undefined {\n return (\n UiFramework.frameworkState?.sessionState.defaultIModelViewportControlId ??\n undefined\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setDefaultIModelViewportControlId(\n iModelViewportControlId: string,\n immediateSync = false\n ) {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetDefaultIModelViewportControlId,\n iModelViewportControlId,\n immediateSync\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static getDefaultViewId(): string | undefined {\n return UiFramework.frameworkState?.sessionState.defaultViewId ?? undefined;\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setDefaultViewId(viewId: string, immediateSync = false) {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetDefaultViewId,\n viewId,\n immediateSync\n );\n }\n\n /* eslint-enable deprecation/deprecation */\n}\n\n/** @internal */\nexport const appUi = (() => {\n let _windowManager: InternalChildWindowManager | undefined;\n\n function getWindowManager() {\n if (!_windowManager) _windowManager = new InternalChildWindowManager();\n return _windowManager;\n }\n\n return {\n get windowManager() {\n return getWindowManager();\n },\n };\n})();\n\nfunction dispatchSyncUiEvent(eventId: string, immediateSync = false) {\n if (immediateSync) {\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(eventId);\n return;\n }\n SyncUiEventDispatcher.dispatchSyncUiEvent(eventId);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"UiFramework.js","sourceRoot":"","sources":["../../src/appui-react/UiFramework.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAQjD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAOlG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,KAAK,iBAAiB,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,gBAAgB,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,kBAAkB,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,gBAAgB,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACL,yBAAyB,EACzB,0BAA0B,GA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AAI,CAAC,cAAc;YAAE,cAAc,GAAG,IAAI,0BAA0B,EAAE,CAAC;QACvE,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,OAAO;QACL,IAAI,aAAa;YACf,OAAO,gBAAgB,EAAE,CAAC;QAC5B,CAAC;KACF,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAEL,SAAS,mBAAmB,CAAC,OAAe,EAAE,aAAa,GAAG,KAAK;IACjE,IAAI,aAAa,EAAE,CAAC;QAClB,qBAAqB,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO;IACT,CAAC;IACD,qBAAqB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACrD,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 Utilities\n */\n\nimport type { AnyAction, Store } from \"redux\";\nimport { BeUiEvent, Logger, ProcessDetector } from \"@itwin/core-bentley\";\nimport type { TranslationOptions } from \"@itwin/core-common\";\nimport type { IModelConnection, ViewState } from \"@itwin/core-frontend\";\nimport { SnapMode } from \"@itwin/core-frontend\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type {\n DialogLayoutDataProvider,\n DialogProps,\n Primitives,\n PropertyDescription,\n PropertyRecord,\n} from \"@itwin/appui-abstract\";\nimport { UiAdmin, UiError, UiEvent } from \"@itwin/appui-abstract\";\nimport { UiIModelComponents } from \"@itwin/imodel-components-react\";\nimport { BackstageManager } from \"./backstage/BackstageManager.js\";\nimport { InternalChildWindowManager } from \"./childwindow/InternalChildWindowManager.js\";\nimport { InternalConfigurableUiManager } from \"./configurableui/InternalConfigurableUiManager.js\";\nimport type { FrameworkState as ReduxFrameworkState } from \"./redux/FrameworkState.js\";\nimport type {\n CursorMenuData,\n CursorMenuPayload,\n PresentationSelectionScope,\n} from \"./redux/SessionState.js\";\nimport { SessionStateActionId } from \"./redux/SessionState.js\";\nimport { StateManager } from \"./redux/StateManager.js\";\nimport type { HideIsolateEmphasizeActionHandler } from \"./selection/HideIsolateEmphasizeManager.js\";\nimport { HideIsolateEmphasizeManager } from \"./selection/HideIsolateEmphasizeManager.js\";\nimport * as keyinPaletteTools from \"./tools/KeyinPaletteTools.js\";\nimport * as openSettingTools from \"./tools/OpenSettingsTool.js\";\nimport * as restoreLayoutTools from \"./tools/RestoreLayoutTool.js\";\nimport * as toolSettingTools from \"./tools/ToolSettingsTools.js\";\nimport {\n InternalUiShowHideManager,\n UiShowHideSettingsProvider,\n} from \"./utils/InternalUiShowHideManager.js\";\nimport { WidgetManager } from \"./widgets/WidgetManager.js\";\nimport { InternalFrontstageManager } from \"./frontstage/InternalFrontstageManager.js\";\nimport { InternalContentViewManager } from \"./content/InternalContentViewManager.js\";\nimport { InternalModalDialogManager } from \"./dialog/InternalModalDialogManager.js\";\nimport { InternalModelessDialogManager } from \"./dialog/InternalModelessDialogManager.js\";\nimport { InternalKeyboardShortcutManager } from \"./keyboardshortcut/InternalKeyboardShortcut.js\";\nimport { InternalToolSettingsManager } from \"./toolsettings/InternalToolSettingsManager.js\";\nimport type { FrameworkBackstage } from \"./framework/FrameworkBackstage.js\";\nimport type { FrameworkChildWindows } from \"./framework/FrameworkChildWindows.js\";\nimport type { FrameworkControls } from \"./framework/FrameworkControls.js\";\nimport type { FrameworkFrontstages } from \"./framework/FrameworkFrontstages.js\";\nimport type { FrameworkToolSettings } from \"./framework/FrameworkToolSettings.js\";\nimport type { FrameworkContent } from \"./framework/FrameworkContent.js\";\nimport type { FrameworkDialogs } from \"./framework/FrameworkDialogs.js\";\nimport type { FrameworkKeyboardShortcuts } from \"./framework/FrameworkKeyboardShortcuts.js\";\nimport type { FrameworkVisibility } from \"./framework/FrameworkVisibility.js\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"./syncui/SyncUiEventDispatcher.js\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport { PopupManager } from \"./popup/PopupManager.js\";\nimport { AccuDrawPopupManager } from \"./accudraw/AccuDrawPopupManager.js\";\nimport { UiDataProvidedDialog } from \"./dialog/UiDataProvidedDialog.js\";\nimport type { RefObject } from \"react\";\nimport { createElement } from \"react\";\nimport type { DialogInfo } from \"./dialog/DialogManagerBase.js\";\nimport type { KeyinEntry } from \"./keyins/Keyins.js\";\nimport { mapToRelativePosition, type Placement } from \"./utils/Placement.js\";\nimport type { Toolbar, ToolbarProps } from \"./toolbar/Toolbar.js\";\nimport type { CursorMenuItemProps } from \"./shared/MenuItem.js\";\nimport {\n SYSTEM_PREFERRED_COLOR_THEME,\n type ThemeId,\n TOOLBAR_OPACITY_DEFAULT,\n WIDGET_OPACITY_DEFAULT,\n} from \"./theme/ThemeId.js\";\nimport { ConfigurableUiActionId } from \"./redux/ConfigurableUiState.js\";\nimport type {\n ConfigurableUiContent,\n ConfigurableUiContentProps,\n} from \"./configurableui/ConfigurableUiContent.js\";\nimport type { SelectionScopeField } from \"./statusfields/SelectionScope.js\";\nimport type { SnapModeField } from \"./statusfields/SnapMode.js\";\nimport type { ThemeManager } from \"./theme/ThemeManager.js\";\nimport { useGlobalStore } from \"./uistate/useGlobalStore.js\";\nimport type { UiStateStorage } from \"./uistate/UiStateStorage.js\";\nimport { LocalStateStorage } from \"./uistate/LocalStateStorage.js\";\nimport { SettingsManager } from \"./settings/SettingsManager.js\";\n\ninterface ShowInputEditorOptions {\n location: XAndY;\n anchorElement?: HTMLElement;\n initialValue: Primitives.Value; // need strategy for replacing (appui-abstract)\n propertyDescription: PropertyDescription;\n onCommit: (value: Primitives.Value) => void;\n onCancel: () => void;\n}\n\n/** Interface to be implemented but any classes that wants to load their user settings when the UiStateEntry storage class is set.\n * @public\n */\nexport interface UserSettingsProvider {\n /** Unique provider Id */\n providerId: string;\n /** Function to load settings from settings storage */\n loadUserSettings(storage: UiStateStorage): Promise<void>;\n}\n\n/** UiVisibility Event Args interface.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface UiVisibilityEventArgs {\n visible: boolean;\n}\n\n/** UiVisibility Event class.\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport class UiVisibilityChangedEvent extends UiEvent<UiVisibilityEventArgs> {}\n\n/** TrackingTime time argument used by our feature tracking manager as an option argument to the TelemetryClient\n * @internal\n */\nexport interface TrackingTime {\n startTime: Date;\n endTime: Date;\n}\n\ntype fn = typeof PopupManager.showComponent;\ntype ShowComponentParams = Parameters<fn>;\ntype OptionalShowComponentParams = [\n ShowComponentParams[0],\n Partial<\n Exclude<ShowComponentParams[1], \"anchor\"> & {\n anchorRef?: RefObject<HTMLElement>;\n }\n >?\n];\n\n/** Main entry point to configure and interact with the features provided by the AppUi-react package.\n * @public\n */\nexport class UiFramework {\n /** Operation on the backstage component. */\n public static get backstage(): FrameworkBackstage {\n if (!UiFramework._backstageManager)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._backstageManager;\n }\n\n /** Manage access to the child windows. */\n public static get childWindows(): FrameworkChildWindows {\n return appUi.windowManager;\n }\n\n /** Manage registered controls.\n * @deprecated in 4.16.0. Uses a deprecated interface {@link FrameworkControls}.\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get controls(): FrameworkControls {\n return InternalConfigurableUiManager;\n }\n\n /** Manage access to frontstages and related helper methods. */\n public static get frontstages(): FrameworkFrontstages {\n return InternalFrontstageManager;\n }\n\n /** Manage access and behavior of the tool settings. */\n public static get toolSettings(): FrameworkToolSettings {\n return InternalToolSettingsManager;\n }\n\n /** Manage content presented by the frontstages. */\n public static get content(): FrameworkContent {\n return InternalContentViewManager;\n }\n\n /** Manage displayed dialogs. */\n public static get dialogs(): FrameworkDialogs {\n return {\n modal: InternalModalDialogManager,\n modeless: InternalModelessDialogManager,\n };\n }\n\n /** Manages global keyboard shortcuts\n *\n * Note: This only manages the list of available shortcuts registered with it. It does not listens to the actual\n * keyboard events. In order for these shortcuts to be called upon a keyboard event, the application can\n * override the `IModelApp.toolAdmin` and assign it [[FrameworkToolAdmin]] or create an event listener\n * and call `UiFramework.keyboardShortcuts.processKey`.\n */\n public static get keyboardShortcuts(): FrameworkKeyboardShortcuts {\n return InternalKeyboardShortcutManager;\n }\n\n /** Manages UI visibility (Show/Hide). */\n public static get visibility(): FrameworkVisibility {\n return InternalUiShowHideManager;\n }\n\n private static _initialized = false;\n private static _store?: Store<any>;\n private static _complaint = \"UiFramework not initialized\";\n private static _frameworkStateKeyInStore: string = \"frameworkState\"; // default name\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private static _backstageManager?: BackstageManager;\n private static _widgetManager?: WidgetManager;\n private static _hideIsolateEmphasizeActionHandler?: HideIsolateEmphasizeActionHandler;\n /** this provides a default state storage handler */\n private static _uiStateStorage: UiStateStorage = new LocalStateStorage();\n private static _settingsManager?: SettingsManager;\n private static _uiSettingsProviderRegistry: Map<\n string,\n UserSettingsProvider\n > = new Map<string, UserSettingsProvider>();\n public static useDefaultPopoutUrl = false;\n private static readonly CONTEXT_MENU_OFFSET = -8;\n\n /** Event raised within UiFramework.setIModelConnection */\n public static readonly onIModelConnectionChanged = new BeUiEvent<\n IModelConnection | undefined\n >();\n\n /** Registers class that will be informed when the UserSettingsStorage location has been set or changed. This allows\n * classes to load any previously saved settings from the new storage location. Common storage locations are the browser's\n * local storage, or the iTwin Product Settings cloud storage available via the SettingsAdmin see `IModelApp.settingsAdmin`.\n */\n public static registerUserSettingsProvider(entry: UserSettingsProvider) {\n if (this._uiSettingsProviderRegistry.has(entry.providerId)) return false;\n\n this._uiSettingsProviderRegistry.set(entry.providerId, entry);\n return true;\n }\n\n /** Get Show Ui event. */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static readonly onUiVisibilityChanged = new UiVisibilityChangedEvent();\n\n /** Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore. */\n public static async initialize(): Promise<void>;\n /** Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore.\n * @param store The single Redux store created by the host application. If this is `undefined` then it is assumed that the [[StateManager]] is being used to provide the Redux store.\n * @param frameworkStateKey The name of the key used by the app when adding the UiFramework state into the Redux store. If not defined \"frameworkState\" is assumed. This value is ignored if [[StateManager]] is being used. The StateManager use \"frameworkState\".\n * @deprecated in 4.15.0. Continue using redux initializer until all application components react to redux deprecations. Use overload without parameters instead.\n */\n public static async initialize(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n store: Store<any, AnyAction> | undefined,\n // eslint-disable-next-line @typescript-eslint/unified-signatures\n frameworkStateKey?: string\n ): Promise<void>;\n public static async initialize(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n store?: Store<any, AnyAction> | undefined,\n frameworkStateKey?: string\n ): Promise<void> {\n // TODO: check `arguments` to determine between redux & no-redux initializers.\n if (UiFramework._initialized) {\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiFramework\"),\n `UiFramework.initialize already called`\n );\n return;\n }\n\n /* if store is undefined then the StateManager class should have been initialized by parent app and the apps default set of reducers registered with it.\n If the app has no reducers to add and does not initialize a StateManager then just initialize the StateManager with the default framework reducer now */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (undefined === store && !StateManager.isInitialized(true))\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n new StateManager();\n\n UiFramework._store = store;\n\n // ignore setting _frameworkStateKeyInStore if not using store\n if (frameworkStateKey && store)\n UiFramework._frameworkStateKeyInStore = frameworkStateKey;\n\n // set up namespace and register all tools from package\n const frameworkNamespace = IModelApp.localization?.registerNamespace(\n UiFramework.localizationNamespace\n );\n [\n restoreLayoutTools,\n keyinPaletteTools,\n openSettingTools,\n toolSettingTools,\n ].forEach((tool) =>\n IModelApp.tools.registerModule(tool, this.localizationNamespace)\n );\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework._backstageManager = new BackstageManager();\n UiFramework._hideIsolateEmphasizeActionHandler =\n new HideIsolateEmphasizeManager(); // this allows user to override the default HideIsolateEmphasizeManager implementation.\n UiFramework._widgetManager = new WidgetManager();\n\n // Initialize ui-imodel-components, ui-components, ui-core & ui-abstract\n await UiIModelComponents.initialize();\n\n UiFramework.settingsManager.onSettingsProvidersChanged.addListener(() => {\n dispatchSyncUiEvent(SyncUiEventId.SettingsProvidersChanged);\n });\n\n // Initialize the MessagePresenter interface in UiAdmin for Editor notifications\n UiAdmin.messagePresenter = IModelApp.notifications;\n\n UiFramework._initialized = true;\n\n // initialize any standalone settings providers that don't need to have defaults set by iModelApp\n UiShowHideSettingsProvider.initialize();\n\n InternalConfigurableUiManager.initialize();\n\n return frameworkNamespace;\n }\n\n /** Un-registers the UiFramework internationalization service namespace. */\n public static terminate() {\n InternalModalDialogManager.closeAll();\n InternalModelessDialogManager.closeAll();\n\n InternalKeyboardShortcutManager.shortcutContainer.emptyData();\n UiFramework._store = undefined;\n UiFramework._frameworkStateKeyInStore = \"frameworkState\";\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (StateManager.isInitialized(true)) StateManager.clearStore();\n IModelApp.localization?.unregisterNamespace(\n UiFramework.localizationNamespace\n );\n UiFramework._backstageManager = undefined;\n UiFramework._widgetManager = undefined;\n UiFramework._hideIsolateEmphasizeActionHandler = undefined;\n UiFramework._settingsManager = undefined;\n\n UiIModelComponents.terminate();\n InternalUiShowHideManager.terminate();\n UiFramework._initialized = false;\n }\n\n /** Determines if UiFramework has been initialized */\n public static get initialized(): boolean {\n return UiFramework._initialized;\n }\n\n /** Property that returns the SettingManager used by AppUI-based applications. */\n public static get settingsManager() {\n if (undefined === UiFramework._settingsManager)\n UiFramework._settingsManager = new SettingsManager();\n return UiFramework._settingsManager;\n }\n\n /** The internationalization service namespace. */\n public static get localizationNamespace(): string {\n return \"UiFramework\";\n }\n\n public static get hideIsolateEmphasizeActionHandler(): HideIsolateEmphasizeActionHandler {\n if (!UiFramework._hideIsolateEmphasizeActionHandler)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._hideIsolateEmphasizeActionHandler;\n }\n\n public static setHideIsolateEmphasizeActionHandler(\n handler: HideIsolateEmphasizeActionHandler | undefined\n ) {\n if (handler) UiFramework._hideIsolateEmphasizeActionHandler = handler;\n else\n UiFramework._hideIsolateEmphasizeActionHandler =\n new HideIsolateEmphasizeManager();\n }\n\n /** @alpha */\n public static get widgetManager(): WidgetManager {\n if (!UiFramework._widgetManager)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._widgetManager;\n }\n\n /** Calls localization.getLocalizedString with the \"UiFramework\" namespace. Do NOT include the namespace in the key.\n * @internal\n */\n public static translate(\n key: string | string[],\n options?: TranslationOptions\n ): string {\n return IModelApp.localization.getLocalizedString(\n `${UiFramework.localizationNamespace}:${key}`,\n options\n );\n }\n\n /** @internal */\n public static get packageName(): string {\n return \"appui-react\";\n }\n\n /** @internal */\n public static loggerCategory(name: string): string {\n return `${UiFramework.packageName}.${name}`;\n }\n\n /** Show a context menu at a particular location.\n * @param items Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of anchorElement or the overall window.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static openContextMenu(\n items: CursorMenuItemProps[],\n location: XAndY,\n anchorElement?: HTMLElement\n ): boolean {\n let position = location;\n let childWindowId: string | undefined;\n\n if (anchorElement) {\n const anchorOffset = anchorElement.getBoundingClientRect();\n\n position = {\n x: anchorOffset.left + location.x,\n y: anchorOffset.top + location.y,\n };\n\n childWindowId = UiFramework.childWindows.findId(\n anchorElement.ownerDocument.defaultView\n );\n }\n\n position = {\n x: position.x + UiFramework.CONTEXT_MENU_OFFSET,\n y: position.y + UiFramework.CONTEXT_MENU_OFFSET,\n };\n\n const cursorMenuData: CursorMenuPayload = {\n position,\n items,\n childWindowId,\n };\n UiFramework.openCursorMenu(cursorMenuData);\n\n return true;\n }\n\n public static openCursorMenu(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n menuData: CursorMenuData | CursorMenuPayload | undefined\n ): void {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (this.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.UpdateCursorMenu,\n menuData\n );\n return;\n }\n\n useGlobalStore.setState({ cursorMenuPayload: menuData });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.UpdateCursorMenu);\n }\n\n public static closeCursorMenu(): void {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.UpdateCursorMenu,\n undefined\n );\n return;\n }\n\n useGlobalStore.setState({ cursorMenuPayload: undefined });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.UpdateCursorMenu);\n }\n\n /** @note Returned value is immutable. */\n public static getCursorMenuData(): // eslint-disable-next-line @typescript-eslint/no-deprecated\n CursorMenuData | CursorMenuPayload | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const state = this.frameworkState;\n if (state) {\n return (\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n state.sessionState.cursorMenuPayload ??\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n state.sessionState.cursorMenuData\n );\n }\n\n return useGlobalStore.getState().cursorMenuPayload;\n }\n\n public static setIModelConnection(\n iModelConnection: IModelConnection | undefined,\n immediateSync = false\n ) {\n const oldConnection = UiFramework.getIModelConnection();\n if (oldConnection === iModelConnection) return;\n\n InternalFrontstageManager.clearFrontstageDefsForIModelId(\n oldConnection?.iModelId\n );\n\n oldConnection && SyncUiEventDispatcher.clearConnectionEvents(oldConnection);\n iModelConnection &&\n SyncUiEventDispatcher.initializeConnectionEvents(iModelConnection);\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetIModelConnection,\n iModelConnection,\n immediateSync\n );\n } else {\n useGlobalStore.setState({ iModelConnection });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.SetIModelConnection);\n }\n\n const itemsSelected = iModelConnection\n ? iModelConnection.selectionSet.elements.size\n : 0;\n\n UiFramework.setNumItemsSelected(itemsSelected);\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.setActiveIModelId(iModelConnection?.iModelId ?? \"\");\n UiFramework.onIModelConnectionChanged.emit(iModelConnection);\n }\n\n public static getIModelConnection(): IModelConnection | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const frameworkState = UiFramework.frameworkState;\n if (frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return frameworkState.sessionState.iModelConnection;\n }\n return useGlobalStore.getState().iModelConnection;\n }\n\n public static setNumItemsSelected(numSelected: number) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetNumItemsSelected,\n numSelected\n );\n return;\n }\n\n useGlobalStore.setState({ numItemsSelected: numSelected });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.SetNumItemsSelected);\n }\n\n public static getNumItemsSelected() {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const state = this.frameworkState;\n if (state) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return state.sessionState.numItemsSelected;\n }\n\n return useGlobalStore.getState().numItemsSelected;\n }\n\n /** Called by iModelApp to initialize saved UI state from registered UseSettingsProviders. */\n public static async initializeStateFromUserSettingsProviders(\n immediateSync = false\n ) {\n // let any registered providers to load values from the new storage location\n const providerKeys = [...this._uiSettingsProviderRegistry.keys()];\n for (const key of providerKeys) {\n await this._uiSettingsProviderRegistry\n .get(key)!\n .loadUserSettings(UiFramework._uiStateStorage);\n }\n\n dispatchSyncUiEvent(SyncUiEventId.UiStateStorageChanged, immediateSync);\n }\n\n public static async setUiStateStorage(\n storage: UiStateStorage,\n immediateSync = false\n ) {\n if (UiFramework._uiStateStorage === storage) return;\n\n UiFramework._uiStateStorage = storage;\n await this.initializeStateFromUserSettingsProviders(immediateSync);\n }\n\n /** The UI Settings Storage is a convenient wrapper around Local Storage to assist in caching state information across user sessions.\n * It was previously used to conflate both the state information across session and the information driven directly from user explicit action,\n * which are now handled with user preferences.\n */\n public static getUiStateStorage(): UiStateStorage {\n return UiFramework._uiStateStorage;\n }\n\n public static setDefaultViewState(\n viewState: ViewState,\n immediateSync = false\n ) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetDefaultViewState,\n viewState,\n immediateSync\n );\n return;\n }\n\n useGlobalStore.setState({ viewState });\n dispatchSyncUiEvent(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetDefaultViewState,\n immediateSync\n );\n }\n\n public static getDefaultViewState(): ViewState | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const frameworkState = UiFramework.frameworkState;\n if (frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return frameworkState.sessionState.defaultViewState;\n }\n return useGlobalStore.getState().viewState;\n }\n\n /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */\n public static getIsUiVisible() {\n return UiFramework.visibility.isUiVisible;\n }\n\n /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */\n public static setIsUiVisible(visible: boolean) {\n UiFramework.visibility.isUiVisible = visible;\n }\n\n /** @deprecated in 4.13.0. Use {@link @itwin/core-bentley#ProcessDetector.isMobileBrowser} instead. */\n // eslint-disable-next-line @itwin/prefer-get\n public static isMobile() {\n return ProcessDetector.isMobileBrowser;\n }\n\n /** Determines whether a ContextMenu is open\n * @alpha\n */\n public static get isContextMenuOpen(): boolean {\n const contextMenu = document.querySelector(\"div.core-context-menu-opened\");\n return contextMenu !== null && contextMenu !== undefined;\n }\n\n /** Show a Card containing content, a title and a toolbar at a particular location.\n * @param content The React component of the content to display\n * @param title Title to display at the top of the card.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Card, relative to the origin of anchorElement or the window.\n * @param offset Offset of the Card from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n * @internal\n */\n public static showCard(\n content: React.ReactNode,\n title: string | PropertyRecord | undefined,\n toolbarProps: ToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: (item: any) => void,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const anchor = this.resolveHtmlElement(anchorElement);\n\n return PopupManager.displayCard(content, {\n title,\n toolbarProps,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n anchor,\n });\n }\n\n /**\n * Hides a Card displayed with {@link UiFramework.showCard}\n * @internal\n */\n public static hideCard() {\n return PopupManager.hideCard();\n }\n\n /** Opens a Tool Settings Ui popup at a particular location.\n * @param dataProvider The DialogLayoutDataProvider for the tool settings popup dialog.\n * @param location Location of the tool settings, relative to the origin of anchorElement or the window\n * @param offset Offset of the tool settings from the location\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the tool settings\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the tool settings. If undefined, the location is relative to the overall window.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n * @internal\n */\n public static openToolSettingsPopup(\n dataProvider: DialogLayoutDataProvider,\n location: XAndY,\n offset: XAndY,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n const relativePosition = mapToRelativePosition(placement);\n\n return PopupManager.openToolSettings(\n dataProvider,\n el,\n location,\n offset,\n onCancel,\n relativePosition\n );\n }\n\n /**\n * Closes the Tool Settings Ui popup.\n * @internal\n */\n public static closeToolSettingsPopup() {\n return PopupManager.closeToolSettings();\n }\n\n /** Show a Toolbar at a particular location.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Toolbar, relative to the origin of anchorElement or the overall window.\n * @param offset Offset of the Toolbar from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Toolbar\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.\n * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.\n */\n public static showToolbar(\n toolbarProps: ToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: (item: any) => void,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const anchor = UiFramework.resolveHtmlElement(anchorElement);\n\n return PopupManager.displayToolbar(toolbarProps.items, {\n anchor,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n });\n }\n\n /** Hides a toolbar displayed via {@link UiFramework.showToolbar} */\n public static hideToolbar() {\n return PopupManager.hideToolbar();\n }\n\n /** Show a menu button at a particular location. A menu button opens a context menu.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @param menuItemsProps Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of anchorElement or the window.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static showMenuButton(\n id: string,\n menuItemsProps: CursorMenuItemProps[],\n location: XAndY,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n return AccuDrawPopupManager.showMenuButton(\n id,\n el,\n location,\n menuItemsProps\n );\n }\n\n /** Hides a menu button.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @return true if the menu was hidden, false if the menu could not be hidden.\n */\n public static hideMenuButton(id: string) {\n return AccuDrawPopupManager.hideMenuButton(id);\n }\n /** Show a calculator at a particular location.\n * @param initialValue Value initially displayed in the calculator.\n * @param resultIcon Icon displayed to the left of the value.\n * @param location Location of the calculator, relative to the origin of anchorElement or the window.\n * @param onOk Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static showCalculator(\n initialValue: number,\n resultIcon: string,\n location: XAndY,\n onOk: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n\n return AccuDrawPopupManager.showCalculator(\n el,\n location,\n initialValue,\n resultIcon,\n onOk,\n onCancel\n );\n }\n\n /** Hides the calculator. */\n public static hideCalculator(): boolean {\n return AccuDrawPopupManager.hideCalculator();\n }\n\n /** Show a React Element at a particular location.\n * @param component The ReactElement to display\n * @param options - Optional {@link: ShowComponentParams}\n */\n\n public static showComponent(...params: OptionalShowComponentParams): boolean {\n const options: (typeof params)[1] = params[1] || {};\n const component = params[0];\n const { anchorRef, id } = options;\n\n let { location, offset, onCancel, placement } = options;\n\n if (!location) location = { x: 0, y: 0 };\n if (!offset) offset = { x: 0, y: 0 };\n if (!placement) placement = \"top-end\";\n if (!onCancel) onCancel = () => UiFramework.hideComponent(id);\n\n return PopupManager.showComponent(component, {\n location,\n offset,\n onCancel,\n placement,\n anchor: anchorRef?.current ?? undefined,\n id,\n });\n }\n\n /**\n * Hides the Component previously shown with {@link UiFramework.showComponent}\n */\n public static hideComponent(id?: string): boolean {\n return PopupManager.hideComponent(id);\n }\n\n /** Show an input editor for an angle value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of anchorElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public static showAngleEditor(\n initialValue: number,\n location: XAndY,\n onCommit: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n\n return AccuDrawPopupManager.showAngleEditor(\n el,\n location,\n initialValue,\n onCommit,\n onCancel\n );\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param ShowInputEditorOptions Options detailed below for the input editor\n * @param ShowInputEditorOptions.anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @param ShowInputEditorOptions.propertyDescription Description of the primitive value property\n * @param ShowInputEditorOptions.initialValue Value initially displayed in the editor.\n * @param ShowInputEditorOptions.location Location of the editor, relative to the origin of anchorElement or the window.\n * @param ShowInputEditorOptions.onCommit Function called when the OK button or the Enter key is pressed.\n * @param ShowInputEditorOptions.onCancel Function called when the Cancel button or the Escape key is pressed.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @internal\n */\n public static showInputEditor({\n anchorElement,\n initialValue,\n location,\n onCancel,\n onCommit,\n propertyDescription,\n }: ShowInputEditorOptions): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n PopupManager.showInputEditor(\n el,\n location,\n initialValue,\n propertyDescription,\n onCommit,\n onCancel\n );\n return true;\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param dimension Dimension determining which editor to display.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of anchorElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public static showDimensionEditor(\n dimension: \"height\" | \"length\",\n initialValue: number,\n location: XAndY,\n onCommit: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ) {\n const el = this.resolveHtmlElement(anchorElement);\n return AccuDrawPopupManager.showDimensionEditor(\n dimension,\n el,\n location,\n initialValue,\n onCommit,\n onCancel\n );\n }\n\n /** Hides the input editor.\n * @internal\n */\n public static hideInputEditor(): boolean {\n return PopupManager.hideInputEditor();\n }\n\n /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.\n * @param uiDataProvider The UiDataProvider for the tool settings\n * @param title Specify title for dialog.\n * @param isModal Specify if the dialog is opened as a modal or modeless.\n * @param id Id of the dialog that is used to close it.\n * @param optionalProps Optional props for Dialog construction.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n * @internal\n */\n public static openDialog(\n uiDataProvider: DialogLayoutDataProvider,\n title: string,\n isModal: boolean,\n id: string,\n optionalProps?: DialogProps\n ): boolean {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const dialog = createElement(UiDataProvidedDialog, {\n uiDataProvider,\n title,\n isModal,\n id,\n ...optionalProps,\n });\n const modalType = isModal ? \"modal\" : \"modeless\";\n UiFramework.dialogs[modalType].open(dialog, id);\n return true;\n }\n\n /** Closes the Dialog with the specified dialogId.\n * @param dialogId Id of the dialog to close.\n * @internal\n */\n public static closeDialog(dialogId: string): boolean {\n const findFn = (info: DialogInfo) => info.id === dialogId;\n if (UiFramework.dialogs.modeless.dialogs.findIndex(findFn) !== -1) {\n UiFramework.dialogs.modeless.close(dialogId);\n return true;\n }\n\n if (UiFramework.dialogs.modal.dialogs.findIndex(findFn) !== -1) {\n UiFramework.dialogs.modal.close();\n return true;\n }\n\n return false;\n }\n\n /** Show the Key-in Palette to display key-in from all registered Tools.\n * @param keyinEntries A list of KeyinEntry to display in the palette. These can be gathered and filtered from iModelApp.tools.getToolList()\n * @param htmlElement The HTMLElement that anchors the Popup. If undefined, the location is relative to the overall window.\n * @return true if the Command Palette was displayed, false if it could not be displayed.\n */\n public static showKeyinPalette(\n keyinEntries: KeyinEntry[],\n htmlElement?: HTMLElement\n ): boolean {\n return PopupManager.showKeyinPalette(\n keyinEntries,\n UiFramework.resolveHtmlElement(htmlElement)\n );\n }\n\n /** Hides the Key-in Palette. */\n public static hideKeyinPalette(): boolean {\n return PopupManager.hideKeyinPalette();\n }\n\n private static resolveHtmlElement(htmlElement?: HTMLElement): HTMLElement {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const el = htmlElement ?? UiFramework.controls.getWrapperElement();\n return el;\n }\n\n /* eslint-disable @typescript-eslint/no-deprecated */\n\n /** @deprecated in 4.15.0. Use your preferred state management library instead and {@link SyncUiEventDispatcher} to dispatch sync UI events. */\n public static dispatchActionToStore(\n type: string,\n payload: any,\n immediateSync = false\n ) {\n const reduxStore = UiFramework.reduxStore;\n const reduxState = reduxStore?.getState();\n const frameworkState = reduxState?.[UiFramework.frameworkStateKey];\n if (!frameworkState) return;\n reduxStore!.dispatch({ type, payload });\n dispatchSyncUiEvent(type, immediateSync);\n }\n\n /** Key used to access framework state from redux store.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get frameworkStateKey(): string {\n return UiFramework._frameworkStateKeyInStore;\n }\n\n /** The Redux store.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get store(): Store<any> {\n const reduxStore = this.reduxStore;\n if (!reduxStore) {\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n `Error trying to access redux store before either store or StateManager has been initialized.`\n );\n }\n\n return reduxStore;\n }\n\n /** @internal */\n public static get reduxStore(): Store<any> | undefined {\n if (UiFramework._store) {\n return UiFramework._store;\n }\n\n if (StateManager.isInitialized(true)) {\n return StateManager.store;\n }\n\n return undefined;\n }\n\n /** The UiFramework state maintained by Redux.\n * @note Returned fields should not be modified. Use the appropriate action dispatchers to modify the state.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get frameworkState(): ReduxFrameworkState | undefined {\n const store = UiFramework.reduxStore;\n const state = store?.getState();\n const frameworkState = state?.[UiFramework.frameworkStateKey];\n return frameworkState;\n }\n\n /** Set the theme value used by the [[ThemeManager]] component.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `theme` as a prop.\n */\n public static getColorTheme(): ThemeId {\n return (\n UiFramework.frameworkState?.configurableUiState.theme ??\n SYSTEM_PREFERRED_COLOR_THEME\n );\n }\n\n /** Set the theme value used by the [[ThemeManager]] component.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `theme` prop of {@link ThemeManager}.\n */\n public static setColorTheme(theme: ThemeId) {\n if (UiFramework.getColorTheme() === theme) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetTheme,\n theme,\n true\n );\n }\n\n /** Returns the variable controlling whether the overlay is displayed in a Viewport.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `viewOverlay` as a prop.\n */\n public static get viewOverlayDisplay() {\n return (\n UiFramework.frameworkState?.configurableUiState.viewOverlayDisplay ?? true\n );\n }\n\n /** Set the variable that controls display of the view overlay. Applies to all viewports in the app.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.viewOverlay} prop of {@link ConfigurableUiContent}.\n */\n public static setViewOverlayDisplay(display: boolean) {\n if (UiFramework.viewOverlayDisplay === display) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetViewOverlayDisplay,\n display\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `widgetOpacity` as a prop.\n */\n public static getWidgetOpacity(): number {\n return (\n UiFramework.frameworkState?.configurableUiState.widgetOpacity ??\n WIDGET_OPACITY_DEFAULT\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.widgetOpacity} prop of {@link ConfigurableUiContent}.\n */\n public static setWidgetOpacity(opacity: number) {\n if (UiFramework.getWidgetOpacity() === opacity) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetWidgetOpacity,\n opacity,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `snapMode` as a prop.\n */\n public static getAccudrawSnapMode(): SnapMode {\n return (\n UiFramework.frameworkState?.configurableUiState.snapMode ??\n SnapMode.NearestKeypoint\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `snapMode` prop of {@link SnapModeField}.\n */\n public static setAccudrawSnapMode(snapMode: SnapMode) {\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetSnapMode,\n snapMode,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `useDragInteraction` as a prop.\n */\n public static get useDragInteraction(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.useDragInteraction ??\n false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `useDragInteraction` prop of {@link Toolbar}.\n */\n public static setUseDragInteraction(useDragInteraction: boolean) {\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetDragInteraction,\n useDragInteraction,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `widgetIcon` as a prop.\n */\n public static get showWidgetIcon(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.showWidgetIcon ?? false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.widgetIcon} prop of {@link ConfigurableUiContent}.\n */\n public static setShowWidgetIcon(value: boolean) {\n if (UiFramework.showWidgetIcon === value) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetShowWidgetIcon,\n value,\n true\n );\n }\n\n /** When `true`, panels will close as soon as the mouse leave the panel.\n * When `false` (default), panels will close on next click outside the panel.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `collapsePanels` as a prop.\n */\n public static get autoCollapseUnpinnedPanels(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState\n .autoCollapseUnpinnedPanels ?? false\n );\n }\n\n /** Method used to enable the automatic closing of an unpinned widget panel as soon as the\n * mouse leaves the widget panel. The default behavior is to require a mouse click outside\n * the panel before it is closed.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.collapsePanels} prop of {@link ConfigurableUiContent}.\n */\n public static setAutoCollapseUnpinnedPanels(value: boolean) {\n if (UiFramework.autoCollapseUnpinnedPanels === value) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.AutoCollapseUnpinnedPanels,\n value,\n true\n );\n }\n\n /** Animate Tool Settings on appear.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `animateToolSettings` as a prop.\n */\n public static get animateToolSettings(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.animateToolSettings ??\n false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.animateToolSettings} prop of {@link ConfigurableUiContent}.\n */\n public static setAnimateToolSettings(value: boolean) {\n if (UiFramework.animateToolSettings === value) return;\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.AnimateToolSettings,\n value,\n true\n );\n }\n\n /** Use Tool Name As Tool Settings Widget Tab Label.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `toolAsToolSettingsLabel` as a prop.\n */\n public static get useToolAsToolSettingsLabel(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState\n .useToolAsToolSettingsLabel ?? false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.toolAsToolSettingsLabel} prop of {@link ConfigurableUiContent}.\n */\n public static setUseToolAsToolSettingsLabel(value: boolean) {\n if (UiFramework.useToolAsToolSettingsLabel === value) return;\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.UseToolAsToolSettingsLabel,\n value,\n true\n );\n }\n\n /** UiFramework.getToolbarOpacity() returns a number between 0 and 1 that is the non-hovered opacity for toolbars.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `opacity` as a prop.\n */\n public static getToolbarOpacity(): number {\n return (\n UiFramework.frameworkState?.configurableUiState.toolbarOpacity ??\n TOOLBAR_OPACITY_DEFAULT\n );\n }\n\n /** UiFramework.setToolbarOpacity() sets the non-hovered opacity to the value specified.\n * @param opacity a value between 0 and 1. The default value is 0.5. IT IS NOT ADVISED TO USE A VALUE BELOW 0.2\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.toolbarOpacity} prop of {@link ConfigurableUiContent}.\n */\n public static setToolbarOpacity(opacity: number) {\n if (UiFramework.getToolbarOpacity() === opacity) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetToolbarOpacity,\n opacity,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Get id from iModel connection.\n */\n public static getActiveIModelId(): string {\n return UiFramework.frameworkState?.sessionState.iModelId ?? \"\";\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setActiveIModelId(iModelId: string): void {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetActiveIModelId,\n iModelId\n );\n }\n\n /** Returns the stored active selection scope id.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `activeScope` as a prop.\n */\n public static getActiveSelectionScope(): string {\n return (\n UiFramework.frameworkState?.sessionState.activeSelectionScope ?? \"element\"\n );\n }\n /** This method stores the active selection scope to the supplied scope id, and triggers\n * a `SessionStateActionId.SetSelectionScope` event in the `SyncUiEventDispatcher`.\n * Note: As of 4.0, this method *does not change* the active selection scope in the `Presentation.selection.scopes.activeScope` property.\n * This event should be listened to and the change should typically be applied to\n * `Presentation.selection.scopes.activeScope` property from the `@itwin/presentation-frontend` package.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `activeScope` prop of {@link SelectionScopeField}.\n */\n public static setActiveSelectionScope(selectionScopeId: string): void {\n if (!UiFramework.frameworkState) return;\n\n const foundIndex =\n UiFramework.frameworkState.sessionState.availableSelectionScopes.findIndex(\n (selectionScope: PresentationSelectionScope) =>\n selectionScope.id === selectionScopeId\n );\n if (foundIndex < 0) return;\n\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetSelectionScope,\n selectionScopeId\n );\n }\n\n /** Returns the stored list of available selection scopes. This list should be set by the application\n * by dispatching the `setAvailableSelectionScopes` action.\n * The value for this action typically come from `Presentation.selection.scopes.getSelectionScopes()`\n * method found in the `@itwin/presentation-frontend` package.\n * @note Returned value is immutable.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `selectionScopes` as a prop.\n */\n public static getAvailableSelectionScopes(): PresentationSelectionScope[] {\n return (\n UiFramework.frameworkState?.sessionState.availableSelectionScopes ?? [\n { id: \"element\", label: \"Element\" },\n ]\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static getDefaultIModelViewportControlId(): string | undefined {\n return (\n UiFramework.frameworkState?.sessionState.defaultIModelViewportControlId ??\n undefined\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setDefaultIModelViewportControlId(\n iModelViewportControlId: string,\n immediateSync = false\n ) {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetDefaultIModelViewportControlId,\n iModelViewportControlId,\n immediateSync\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static getDefaultViewId(): string | undefined {\n return UiFramework.frameworkState?.sessionState.defaultViewId ?? undefined;\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setDefaultViewId(viewId: string, immediateSync = false) {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetDefaultViewId,\n viewId,\n immediateSync\n );\n }\n\n /* eslint-enable @typescript-eslint/no-deprecated */\n}\n\n/** @internal */\nexport const appUi = (() => {\n let _windowManager: InternalChildWindowManager | undefined;\n\n function getWindowManager() {\n if (!_windowManager) _windowManager = new InternalChildWindowManager();\n return _windowManager;\n }\n\n return {\n get windowManager() {\n return getWindowManager();\n },\n };\n})();\n\nfunction dispatchSyncUiEvent(eventId: string, immediateSync = false) {\n if (immediateSync) {\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(eventId);\n return;\n }\n SyncUiEventDispatcher.dispatchSyncUiEvent(eventId);\n}\n"]}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { AccuDrawChangeModeTool, AccuDrawRotateAxesTool, AccuDrawRotateCycleTool, AccuDrawRotateElementTool, AccuDrawRotateFrontTool, AccuDrawRotateSideTool, AccuDrawRotateTopTool, AccuDrawRotateViewTool, AccuDrawSetLockAngleTool, AccuDrawSetLockDistanceTool, AccuDrawSetLockSmartTool, AccuDrawSetLockXTool, AccuDrawSetLockYTool, AccuDrawSetLockZTool, AccuDrawSetOriginTool, DefineACSByPointsTool, } from "@itwin/core-frontend";
|
|
9
9
|
import { ToolItemDef } from "../shared/ToolItemDef.js";
|
|
10
10
|
import { BumpToolSetting, FocusToolSettings, } from "../tools/ToolSettingsTools.js";
|
|
11
|
-
/* eslint-disable
|
|
11
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
12
12
|
/** AccuDraw Command Items - useful in Keyboard Shortcuts
|
|
13
13
|
* @public
|
|
14
14
|
* @deprecated in 4.15.0. Use {@link KeyboardShortcutUtilities} or {@link ToolbarItemUtilities} instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccuDrawCommandItems.js","sourceRoot":"","sources":["../../../src/appui-react/accudraw/AccuDrawCommandItems.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACL,eAAe,EACf,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AAIvC,
|
|
1
|
+
{"version":3,"file":"AccuDrawCommandItems.js","sourceRoot":"","sources":["../../../src/appui-react/accudraw/AccuDrawCommandItems.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3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ChE,CAAC;IAEM,MAAM,KAAK,UAAU;QAC1B,OAAO,WAAW,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;IAC/D,CAAC;IAEM,MAAM,KAAK,UAAU;QAC1B,OAAO,WAAW,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;IAC/D,CAAC;IAEM,MAAM,KAAK,WAAW;QAC3B,OAAO,WAAW,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,CAAC;IAChE,CAAC;IAEM,MAAM,KAAK,UAAU;QAC1B,OAAO,WAAW,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;IAC/D,CAAC;IAEM,MAAM,KAAK,eAAe;QAC/B,OAAO,WAAW,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,CAAC;IAClE,CAAC;IAEM,MAAM,KAAK,iBAAiB;QACjC,OAAO,WAAW,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,KAAK,eAAe;QAC/B,OAAO,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IACxD,CAAC;IAEM,MAAM,KAAK,gBAAgB;QAChC,OAAO,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC1D,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 AccuDraw\n */\n\nimport {\n AccuDrawChangeModeTool,\n AccuDrawRotateAxesTool,\n AccuDrawRotateCycleTool,\n AccuDrawRotateElementTool,\n AccuDrawRotateFrontTool,\n AccuDrawRotateSideTool,\n AccuDrawRotateTopTool,\n AccuDrawRotateViewTool,\n AccuDrawSetLockAngleTool,\n AccuDrawSetLockDistanceTool,\n AccuDrawSetLockSmartTool,\n AccuDrawSetLockXTool,\n AccuDrawSetLockYTool,\n AccuDrawSetLockZTool,\n AccuDrawSetOriginTool,\n DefineACSByPointsTool,\n} from \"@itwin/core-frontend\";\nimport { ToolItemDef } from \"../shared/ToolItemDef.js\";\nimport {\n BumpToolSetting,\n FocusToolSettings,\n} from \"../tools/ToolSettingsTools.js\";\nimport type { KeyboardShortcutUtilities } from \"../keyboardshortcut/KeyboardShortcutUtilities.js\";\nimport type { ToolbarItemUtilities } from \"../toolbar/ToolbarItemUtilities.js\";\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** AccuDraw Command Items - useful in Keyboard Shortcuts\n * @public\n * @deprecated in 4.15.0. Use {@link KeyboardShortcutUtilities} or {@link ToolbarItemUtilities} instead.\n */\nexport class AccuDrawCommandItems {\n public static get lockSmart() {\n return ToolItemDef.getItemDefForTool(AccuDrawSetLockSmartTool);\n }\n\n public static get setOrigin() {\n return ToolItemDef.getItemDefForTool(AccuDrawSetOriginTool);\n }\n\n public static get lockX() {\n return ToolItemDef.getItemDefForTool(AccuDrawSetLockXTool);\n }\n\n public static get lockY() {\n return ToolItemDef.getItemDefForTool(AccuDrawSetLockYTool);\n }\n\n public static get lockZ() {\n return ToolItemDef.getItemDefForTool(AccuDrawSetLockZTool);\n }\n\n public static get lockAngle() {\n return ToolItemDef.getItemDefForTool(AccuDrawSetLockAngleTool);\n }\n\n public static get lockDistance() {\n return ToolItemDef.getItemDefForTool(AccuDrawSetLockDistanceTool);\n }\n\n public static get changeCompassMode() {\n return ToolItemDef.getItemDefForTool(AccuDrawChangeModeTool);\n }\n\n public static get rotateTop() {\n return ToolItemDef.getItemDefForTool(AccuDrawRotateTopTool);\n }\n\n public static get rotateFront() {\n return ToolItemDef.getItemDefForTool(AccuDrawRotateFrontTool);\n }\n\n public static get rotateSide() {\n return ToolItemDef.getItemDefForTool(AccuDrawRotateSideTool);\n }\n\n public static get rotateView() {\n return ToolItemDef.getItemDefForTool(AccuDrawRotateViewTool);\n }\n\n public static get rotateCycle() {\n return ToolItemDef.getItemDefForTool(AccuDrawRotateCycleTool);\n }\n\n public static get rotateAxes() {\n return ToolItemDef.getItemDefForTool(AccuDrawRotateAxesTool);\n }\n\n public static get rotateToElement() {\n return ToolItemDef.getItemDefForTool(AccuDrawRotateElementTool);\n }\n\n public static get defineACSByPoints() {\n return ToolItemDef.getItemDefForTool(DefineACSByPointsTool);\n }\n\n public static get bumpToolSetting() {\n return ToolItemDef.getItemDefForTool(BumpToolSetting);\n }\n\n public static get focusToolSetting() {\n return ToolItemDef.getItemDefForTool(FocusToolSettings);\n }\n}\n"]}
|
|
@@ -15,7 +15,7 @@ import { Dialog } from "@itwin/itwinui-react";
|
|
|
15
15
|
/** Dialog displays [[AccuDrawFieldContainer]] for AccuDraw Ui
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
// eslint-disable-next-line
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
19
19
|
export function AccuDrawDialog(props) {
|
|
20
20
|
const { translate } = useTranslation();
|
|
21
21
|
const [opened, setOpened] = React.useState(props.opened);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccuDrawDialog.js","sourceRoot":"","sources":["../../../src/appui-react/accudraw/AccuDrawDialog.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAoB9C;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"AccuDrawDialog.js","sourceRoot":"","sources":["../../../src/appui-react/accudraw/AccuDrawDialog.tsx"],"names":[],"mappings":"AAAA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,OAAO,CACL,oBAAC,MAAM,IACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,UAAU,QACV,WAAW,QACX,qBAAqB;QAErB,oBAAC,MAAM,CAAC,IAAI,IACV,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,iBAChC,2BAA2B;YAEvC,oBAAC,MAAM,CAAC,QAAQ,IAAC,SAAS,EAAE,SAAS,CAAC,sBAAsB,CAAC,GAAI;YACjE,oBAAC,MAAM,CAAC,OAAO,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;gBACnC,oBAAC,sBAAsB,IAAC,WAAW,EAAE,WAAW,GAAI,CACrC,CACL,CACP,CACV,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 AccuDraw\n */\n\nimport \"./AccuDrawDialog.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Orientation } from \"@itwin/components-react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { AccuDrawFieldContainer } from \"./AccuDrawFieldContainer.js\";\nimport { useTranslation } from \"../hooks/useTranslation.js\";\nimport { Dialog } from \"@itwin/itwinui-react\";\n\n/** Properties for [[AccuDrawDialog]]\n * @public\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof AccuDrawDialog>`\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport interface AccuDrawDialogProps extends CommonProps {\n /** Indicates whether the dialog is open */\n opened: boolean;\n /** Unique id for the dialog.\n * @deprecated in 4.15.0. No longer used.\n */\n dialogId?: string;\n /** Orientation of the fields */\n orientation?: Orientation;\n /** Callback for when the dialog closes */\n onClose?: () => void;\n}\n\n/** Dialog displays [[AccuDrawFieldContainer]] for AccuDraw Ui\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport function AccuDrawDialog(props: AccuDrawDialogProps) {\n const { translate } = useTranslation();\n const [opened, setOpened] = React.useState(props.opened);\n\n const closeDialog = React.useCallback(() => {\n setOpened(false);\n props.onClose && props.onClose();\n }, [props]);\n\n const handleClose = React.useCallback(() => {\n closeDialog();\n }, [closeDialog]);\n\n const classNames = classnames(\"uifw-accudraw-dialog\", props.className);\n const orientation =\n props.orientation !== undefined ? props.orientation : Orientation.Vertical;\n const dialogWidth = orientation === Orientation.Horizontal ? 500 : 250;\n\n return (\n <Dialog\n isOpen={opened}\n onClose={handleClose}\n className={classNames}\n style={props.style}\n closeOnEsc\n isDraggable\n preventDocumentScroll\n >\n <Dialog.Main\n style={{ minHeight: 75, width: dialogWidth }}\n data-testid=\"accudraw-dialog-container\"\n >\n <Dialog.TitleBar titleText={translate(\"accuDraw.dialogTitle\")} />\n <Dialog.Content style={{ padding: 0 }}>\n <AccuDrawFieldContainer orientation={orientation} />\n </Dialog.Content>\n </Dialog.Main>\n </Dialog>\n );\n}\n"]}
|
|
@@ -17,6 +17,8 @@ export interface AccuDrawFieldContainerProps extends CommonProps {
|
|
|
17
17
|
uiSettingsStorage?: UiStateStorage;
|
|
18
18
|
/** @internal */
|
|
19
19
|
showZOverride?: boolean;
|
|
20
|
+
/** Indicates whether the field is displaying a bearing angles. */
|
|
21
|
+
isBearingAngle?: boolean;
|
|
20
22
|
}
|
|
21
23
|
/** AccuDraw Ui Field Container displays [[AccuDrawInputField]] for each field
|
|
22
24
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccuDrawFieldContainer.d.ts","sourceRoot":"","sources":["../../../src/appui-react/accudraw/AccuDrawFieldContainer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,+BAA+B,CAAC;AAEvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"AccuDrawFieldContainer.d.ts","sourceRoot":"","sources":["../../../src/appui-react/accudraw/AccuDrawFieldContainer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,+BAA+B,CAAC;AAEvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE;;;GAGG;AAEH,MAAM,WAAW,2BAA4B,SAAQ,WAAW;IAC9D,gCAAgC;IAChC,WAAW,EAAE,WAAW,CAAC;IACzB,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,cAAc,CAAC;IACnC,gBAAgB;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kEAAkE;IAClE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAaD;;GAEG;AAEH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,qBAuYxE"}
|
|
@@ -16,7 +16,6 @@ import { FrameworkAccuDraw } from "./FrameworkAccuDraw.js";
|
|
|
16
16
|
import angleIconSvg from "./angle.svg";
|
|
17
17
|
import distanceIconSvg from "./distance.svg";
|
|
18
18
|
import { UiFramework } from "../UiFramework.js";
|
|
19
|
-
import { useEnableColorlessAccuDrawInputFields } from "../preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.js";
|
|
20
19
|
let AccuDrawContainerIndex = 0;
|
|
21
20
|
function determineShowZ(vp) {
|
|
22
21
|
const showZ = vp !== undefined ? vp.view.is3d() : false;
|
|
@@ -28,9 +27,9 @@ const defaultZLabel = "Z";
|
|
|
28
27
|
/** AccuDraw Ui Field Container displays [[AccuDrawInputField]] for each field
|
|
29
28
|
* @public
|
|
30
29
|
*/
|
|
31
|
-
// eslint-disable-next-line
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
32
31
|
export function AccuDrawFieldContainer(props) {
|
|
33
|
-
const { className, style, orientation, uiSettingsStorage, showZOverride, ...otherProps } = props;
|
|
32
|
+
const { className, style, orientation, uiSettingsStorage, showZOverride, isBearingAngle = false, ...otherProps } = props;
|
|
34
33
|
const [containerIndex] = React.useState(() => ++AccuDrawContainerIndex);
|
|
35
34
|
const xInputRef = React.useRef(null);
|
|
36
35
|
const yInputRef = React.useRef(null);
|
|
@@ -39,7 +38,6 @@ export function AccuDrawFieldContainer(props) {
|
|
|
39
38
|
const distanceInputRef = React.useRef(null);
|
|
40
39
|
const focusField = React.useRef(undefined);
|
|
41
40
|
const [mode, setMode] = React.useState(() => IModelApp.accuDraw.compassMode);
|
|
42
|
-
const enableColorlessAccuDrawInputFields = useEnableColorlessAccuDrawInputFields();
|
|
43
41
|
const [xLock, setXLock] = React.useState(() => IModelApp.accuDraw.getFieldLock(ItemField.X_Item));
|
|
44
42
|
const [yLock, setYLock] = React.useState(() => IModelApp.accuDraw.getFieldLock(ItemField.Y_Item));
|
|
45
43
|
const [zLock, setZLock] = React.useState(() => IModelApp.accuDraw.getFieldLock(ItemField.Z_Item));
|
|
@@ -98,6 +96,25 @@ export function AccuDrawFieldContainer(props) {
|
|
|
98
96
|
input.focus();
|
|
99
97
|
input.select();
|
|
100
98
|
}, [getInputToFocus]);
|
|
99
|
+
React.useEffect(() => {
|
|
100
|
+
// Set the focus to the first input field when the component is mounted and when the compass mode changes.
|
|
101
|
+
const itemToFocus = mode === CompassMode.Polar ? ItemField.DIST_Item : ItemField.X_Item;
|
|
102
|
+
IModelApp.accuDraw.setFocusItem(itemToFocus);
|
|
103
|
+
setFocusToField(itemToFocus);
|
|
104
|
+
const inputToFocus = mode === CompassMode.Rectangular
|
|
105
|
+
? getFieldInput(ItemField.X_Item)
|
|
106
|
+
: getFieldInput(ItemField.DIST_Item);
|
|
107
|
+
if (!inputToFocus)
|
|
108
|
+
return;
|
|
109
|
+
const timeoutId = setTimeout(() => {
|
|
110
|
+
// Timeout to force an highlight on the field.
|
|
111
|
+
inputToFocus.focus();
|
|
112
|
+
inputToFocus.select();
|
|
113
|
+
}, 1);
|
|
114
|
+
return () => {
|
|
115
|
+
clearTimeout(timeoutId);
|
|
116
|
+
};
|
|
117
|
+
}, [mode, setFocusToField]);
|
|
101
118
|
React.useEffect(() => {
|
|
102
119
|
return FrameworkAccuDraw.onAccuDrawSetFieldLockEvent.addListener((args) => {
|
|
103
120
|
switch (args.field) {
|
|
@@ -200,7 +217,6 @@ export function AccuDrawFieldContainer(props) {
|
|
|
200
217
|
const angleLabel = uiSettings?.angleLabel;
|
|
201
218
|
const distanceLabel = uiSettings?.distanceLabel;
|
|
202
219
|
const classNames = classnames("uifw-accudraw-field-container", orientation === Orientation.Vertical ? "uifw-vertical" : "uifw-horizontal", className);
|
|
203
|
-
const delay = 250;
|
|
204
220
|
const labelCentered = xLabel !== undefined &&
|
|
205
221
|
xLabel.length === 1 &&
|
|
206
222
|
yLabel !== undefined &&
|
|
@@ -209,28 +225,24 @@ export function AccuDrawFieldContainer(props) {
|
|
|
209
225
|
zLabel.length === 1;
|
|
210
226
|
return (React.createElement("div", { className: classNames, style: style, ...otherProps },
|
|
211
227
|
mode === CompassMode.Rectangular && (React.createElement(React.Fragment, null,
|
|
212
|
-
React.createElement(AccuDrawInputField, { ref: xInputRef, isLocked: xLock,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
?
|
|
219
|
-
:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
? undefined
|
|
224
|
-
: "uifw-accudraw-z-value", style: zStyle, field: ItemField.Z_Item, id: `uifw-accudraw-z-${containerIndex}`, "data-testid": "uifw-accudraw-z", label: zLabel,
|
|
225
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
226
|
-
iconSpec: uiSettings?.zIcon, icon: uiSettings?.zIconNode, labelCentered: labelCentered, valueChangedDelay: delay, onValueChanged: (stringValue) => handleValueChanged(ItemField.Z_Item, stringValue), onEscPressed: handleEscPressed })))),
|
|
228
|
+
React.createElement(AccuDrawInputField, { ref: xInputRef, isLocked: xLock, style: xStyle, field: ItemField.X_Item, id: `uifw-accudraw-x-${containerIndex}`, "data-testid": "uifw-accudraw-x", label: xLabel,
|
|
229
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
230
|
+
iconSpec: uiSettings?.xIcon, icon: uiSettings?.xIconNode, labelCentered: labelCentered, onValueChanged: (stringValue) => handleValueChanged(ItemField.X_Item, stringValue), onEscPressed: handleEscPressed, onTabPressed: () => IModelApp.accuDraw.setFocusItem(ItemField.Y_Item) }),
|
|
231
|
+
React.createElement(AccuDrawInputField, { ref: yInputRef, isLocked: yLock, style: yStyle, field: ItemField.Y_Item, id: `uifw-accudraw-y-${containerIndex}`, "data-testid": "uifw-accudraw-y", label: yLabel,
|
|
232
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
233
|
+
iconSpec: uiSettings?.yIcon, icon: uiSettings?.yIconNode, labelCentered: labelCentered, onValueChanged: (stringValue) => handleValueChanged(ItemField.Y_Item, stringValue), onEscPressed: handleEscPressed, onTabPressed: () => showZ
|
|
234
|
+
? IModelApp.accuDraw.setFocusItem(ItemField.Z_Item)
|
|
235
|
+
: IModelApp.accuDraw.setFocusItem(ItemField.X_Item) }),
|
|
236
|
+
showZ && (React.createElement(AccuDrawInputField, { ref: zInputRef, isLocked: zLock, style: zStyle, field: ItemField.Z_Item, id: `uifw-accudraw-z-${containerIndex}`, "data-testid": "uifw-accudraw-z", label: zLabel,
|
|
237
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
238
|
+
iconSpec: uiSettings?.zIcon, icon: uiSettings?.zIconNode, labelCentered: labelCentered, onValueChanged: (stringValue) => handleValueChanged(ItemField.Z_Item, stringValue), onEscPressed: handleEscPressed, onTabPressed: () => IModelApp.accuDraw.setFocusItem(ItemField.X_Item) })))),
|
|
227
239
|
mode === CompassMode.Polar && (React.createElement(React.Fragment, null,
|
|
228
|
-
React.createElement(AccuDrawInputField, { ref: distanceInputRef, isLocked: distanceLock,
|
|
229
|
-
// eslint-disable-next-line
|
|
230
|
-
iconSpec: uiSettings?.distanceIcon ?? distanceIconSvg, icon: uiSettings?.distanceIconNode,
|
|
231
|
-
React.createElement(AccuDrawInputField, { ref: angleInputRef, isLocked: angleLock,
|
|
232
|
-
// eslint-disable-next-line
|
|
233
|
-
iconSpec: uiSettings?.angleIcon ?? angleIconSvg, icon: uiSettings?.angleIconNode,
|
|
240
|
+
React.createElement(AccuDrawInputField, { ref: distanceInputRef, isLocked: distanceLock, style: distanceStyle, field: ItemField.DIST_Item, id: `uifw-accudraw-distance-${containerIndex}`, "data-testid": "uifw-accudraw-distance", label: distanceLabel,
|
|
241
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
242
|
+
iconSpec: uiSettings?.distanceIcon ?? distanceIconSvg, icon: uiSettings?.distanceIconNode, onValueChanged: (stringValue) => handleValueChanged(ItemField.DIST_Item, stringValue), onEscPressed: handleEscPressed, onTabPressed: () => IModelApp.accuDraw.setFocusItem(ItemField.ANGLE_Item) }),
|
|
243
|
+
React.createElement(AccuDrawInputField, { ref: angleInputRef, isLocked: angleLock, isBearingAngle: isBearingAngle, style: angleStyle, field: ItemField.ANGLE_Item, id: `uifw-accudraw-angle-${containerIndex}`, "data-testid": "uifw-accudraw-angle", label: angleLabel,
|
|
244
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
245
|
+
iconSpec: uiSettings?.angleIcon ?? angleIconSvg, icon: uiSettings?.angleIconNode, onValueChanged: (stringValue) => handleValueChanged(ItemField.ANGLE_Item, stringValue), onEscPressed: handleEscPressed, onTabPressed: () => IModelApp.accuDraw.setFocusItem(ItemField.DIST_Item) })))));
|
|
234
246
|
}
|
|
235
247
|
function getCurrent(ref) {
|
|
236
248
|
if (ref.current === null)
|