@itwin/appui-react 4.15.4 → 4.15.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"UiFramework.js","sourceRoot":"","sources":["../../../src/appui-react/UiFramework.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG9D,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;AAElE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAO/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,KAAK,iBAAiB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EACL,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,mCAAmC,CAAC;AAC3C,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D,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 { Store } from \"redux\";\nimport { 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 type { UiStateStorage } from \"@itwin/core-react\";\nimport { LocalStateStorage, SettingsManager } from \"@itwin/core-react\";\nimport { getObjectClassName } from \"@itwin/core-react\";\nimport { UiIModelComponents } from \"@itwin/imodel-components-react\";\nimport { BackstageManager } from \"./backstage/BackstageManager\";\nimport { InternalChildWindowManager } from \"./childwindow/InternalChildWindowManager\";\nimport { InternalConfigurableUiManager } from \"./configurableui/InternalConfigurableUiManager\";\nimport type { FrameworkState as ReduxFrameworkState } from \"./redux/FrameworkState\";\nimport type {\n CursorMenuData,\n CursorMenuPayload,\n PresentationSelectionScope,\n} from \"./redux/SessionState\";\nimport { SessionStateActionId } from \"./redux/SessionState\";\nimport { StateManager } from \"./redux/StateManager\";\nimport type { HideIsolateEmphasizeActionHandler } from \"./selection/HideIsolateEmphasizeManager\";\nimport { HideIsolateEmphasizeManager } from \"./selection/HideIsolateEmphasizeManager\";\nimport * as keyinPaletteTools from \"./tools/KeyinPaletteTools\";\nimport * as openSettingTools from \"./tools/OpenSettingsTool\";\nimport * as restoreLayoutTools from \"./tools/RestoreLayoutTool\";\nimport * as toolSettingTools from \"./tools/ToolSettingsTools\";\nimport {\n InternalUiShowHideManager,\n UiShowHideSettingsProvider,\n} from \"./utils/InternalUiShowHideManager\";\nimport { WidgetManager } from \"./widgets/WidgetManager\";\nimport { InternalFrontstageManager } from \"./frontstage/InternalFrontstageManager\";\nimport { InternalContentViewManager } from \"./content/InternalContentViewManager\";\nimport { InternalModalDialogManager } from \"./dialog/InternalModalDialogManager\";\nimport { InternalModelessDialogManager } from \"./dialog/InternalModelessDialogManager\";\nimport { InternalKeyboardShortcutManager } from \"./keyboardshortcut/InternalKeyboardShortcut\";\nimport { InternalToolSettingsManager } from \"./toolsettings/InternalToolSettingsManager\";\nimport type { FrameworkBackstage } from \"./framework/FrameworkBackstage\";\nimport type { FrameworkChildWindows } from \"./framework/FrameworkChildWindows\";\nimport type { FrameworkControls } from \"./framework/FrameworkControls\";\nimport type { FrameworkFrontstages } from \"./framework/FrameworkFrontstages\";\nimport type { FrameworkToolSettings } from \"./framework/FrameworkToolSettings\";\nimport type { FrameworkContent } from \"./framework/FrameworkContent\";\nimport type { FrameworkDialogs } from \"./framework/FrameworkDialogs\";\nimport type { FrameworkKeyboardShortcuts } from \"./framework/FrameworkKeyboardShortcuts\";\nimport type { FrameworkVisibility } from \"./framework/FrameworkVisibility\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"./syncui/SyncUiEventDispatcher\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport { PopupManager } from \"./popup/PopupManager\";\nimport { AccuDrawPopupManager } from \"./accudraw/AccuDrawPopupManager\";\nimport { UiDataProvidedDialog } from \"./dialog/UiDataProvidedDialog\";\nimport type { RefObject } from \"react\";\nimport { createElement } from \"react\";\nimport type { DialogInfo } from \"./dialog/DialogManagerBase\";\nimport type { KeyinEntry } from \"./keyins/Keyins\";\nimport { mapToRelativePosition, type Placement } from \"./utils/Placement\";\nimport type { Toolbar, ToolbarProps } from \"./toolbar/Toolbar\";\nimport type { CursorMenuItemProps } from \"./shared/MenuItem\";\nimport {\n SYSTEM_PREFERRED_COLOR_THEME,\n type ThemeId,\n TOOLBAR_OPACITY_DEFAULT,\n WIDGET_OPACITY_DEFAULT,\n} from \"./theme/ThemeId\";\nimport { ConfigurableUiActionId } from \"./redux/ConfigurableUiState\";\nimport type {\n ConfigurableUiContent,\n ConfigurableUiContentProps,\n} from \"./configurableui/ConfigurableUiContent\";\nimport type { SelectionScopeField } from \"./statusfields/SelectionScope\";\nimport type { SnapModeField } from \"./statusfields/SnapMode\";\nimport type { ThemeManager } from \"./theme/ThemeManager\";\nimport { useGlobalStore } from \"./uistate/useGlobalStore\";\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(this),\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 this._childWindowManager;\n }\n\n /** Manage registered controls. */\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 private static _childWindowManager = new InternalChildWindowManager();\n public static useDefaultPopoutUrl = false;\n private static readonly CONTEXT_MENU_OFFSET = -8;\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 store: Store<any> | undefined,\n // eslint-disable-next-line @typescript-eslint/unified-signatures\n frameworkStateKey?: string\n ): Promise<void>;\n public static async initialize(\n store?: Store<any> | 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(this),\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(this),\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(obj: any): string {\n const className = getObjectClassName(obj);\n const category =\n UiFramework.packageName + (className ? `.${className}` : \"\");\n return category;\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 }\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 public static getIsUiVisible() {\n return UiFramework.visibility.isUiVisible;\n }\n\n public static setIsUiVisible(visible: boolean) {\n if (UiFramework.visibility.isUiVisible !== visible) {\n UiFramework.visibility.isUiVisible = visible;\n UiFramework.onUiVisibilityChanged.emit({ visible });\n }\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 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(this),\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\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,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG9D,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;AAElE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC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AAiB,EAAE,CAAC;AAE1D,uCAA2B,GAGtC,IAAI,GAAG,EAAgC,CAAC;AAC7B,+BAAmB,GAAG,IAAI,0BAA0B,EAAE,CAAC;AACxD,+BAAmB,GAAG,KAAK,CAAC;AAClB,+BAAmB,GAAG,CAAC,CAAC,CAAC;AAajD,yBAAyB;AACzB,mDAAmD;AAC5B,iCAAqB,GAAG,IAAI,wBAAwB,EAAE,CAAC;AA2tChF,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 { Store } from \"redux\";\nimport { 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 type { UiStateStorage } from \"@itwin/core-react\";\nimport { LocalStateStorage, SettingsManager } from \"@itwin/core-react\";\nimport { getObjectClassName } from \"@itwin/core-react\";\nimport { UiIModelComponents } from \"@itwin/imodel-components-react\";\nimport { BackstageManager } from \"./backstage/BackstageManager\";\nimport { InternalChildWindowManager } from \"./childwindow/InternalChildWindowManager\";\nimport { InternalConfigurableUiManager } from \"./configurableui/InternalConfigurableUiManager\";\nimport type { FrameworkState as ReduxFrameworkState } from \"./redux/FrameworkState\";\nimport type {\n CursorMenuData,\n CursorMenuPayload,\n PresentationSelectionScope,\n} from \"./redux/SessionState\";\nimport { SessionStateActionId } from \"./redux/SessionState\";\nimport { StateManager } from \"./redux/StateManager\";\nimport type { HideIsolateEmphasizeActionHandler } from \"./selection/HideIsolateEmphasizeManager\";\nimport { HideIsolateEmphasizeManager } from \"./selection/HideIsolateEmphasizeManager\";\nimport * as keyinPaletteTools from \"./tools/KeyinPaletteTools\";\nimport * as openSettingTools from \"./tools/OpenSettingsTool\";\nimport * as restoreLayoutTools from \"./tools/RestoreLayoutTool\";\nimport * as toolSettingTools from \"./tools/ToolSettingsTools\";\nimport {\n InternalUiShowHideManager,\n UiShowHideSettingsProvider,\n} from \"./utils/InternalUiShowHideManager\";\nimport { WidgetManager } from \"./widgets/WidgetManager\";\nimport { InternalFrontstageManager } from \"./frontstage/InternalFrontstageManager\";\nimport { InternalContentViewManager } from \"./content/InternalContentViewManager\";\nimport { InternalModalDialogManager } from \"./dialog/InternalModalDialogManager\";\nimport { InternalModelessDialogManager } from \"./dialog/InternalModelessDialogManager\";\nimport { InternalKeyboardShortcutManager } from \"./keyboardshortcut/InternalKeyboardShortcut\";\nimport { InternalToolSettingsManager } from \"./toolsettings/InternalToolSettingsManager\";\nimport type { FrameworkBackstage } from \"./framework/FrameworkBackstage\";\nimport type { FrameworkChildWindows } from \"./framework/FrameworkChildWindows\";\nimport type { FrameworkControls } from \"./framework/FrameworkControls\";\nimport type { FrameworkFrontstages } from \"./framework/FrameworkFrontstages\";\nimport type { FrameworkToolSettings } from \"./framework/FrameworkToolSettings\";\nimport type { FrameworkContent } from \"./framework/FrameworkContent\";\nimport type { FrameworkDialogs } from \"./framework/FrameworkDialogs\";\nimport type { FrameworkKeyboardShortcuts } from \"./framework/FrameworkKeyboardShortcuts\";\nimport type { FrameworkVisibility } from \"./framework/FrameworkVisibility\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"./syncui/SyncUiEventDispatcher\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport { PopupManager } from \"./popup/PopupManager\";\nimport { AccuDrawPopupManager } from \"./accudraw/AccuDrawPopupManager\";\nimport { UiDataProvidedDialog } from \"./dialog/UiDataProvidedDialog\";\nimport type { RefObject } from \"react\";\nimport { createElement } from \"react\";\nimport type { DialogInfo } from \"./dialog/DialogManagerBase\";\nimport type { KeyinEntry } from \"./keyins/Keyins\";\nimport { mapToRelativePosition, type Placement } from \"./utils/Placement\";\nimport type { Toolbar, ToolbarProps } from \"./toolbar/Toolbar\";\nimport type { CursorMenuItemProps } from \"./shared/MenuItem\";\nimport {\n SYSTEM_PREFERRED_COLOR_THEME,\n type ThemeId,\n TOOLBAR_OPACITY_DEFAULT,\n WIDGET_OPACITY_DEFAULT,\n} from \"./theme/ThemeId\";\nimport { ConfigurableUiActionId } from \"./redux/ConfigurableUiState\";\nimport type {\n ConfigurableUiContent,\n ConfigurableUiContentProps,\n} from \"./configurableui/ConfigurableUiContent\";\nimport type { SelectionScopeField } from \"./statusfields/SelectionScope\";\nimport type { SnapModeField } from \"./statusfields/SnapMode\";\nimport type { ThemeManager } from \"./theme/ThemeManager\";\nimport { useGlobalStore } from \"./uistate/useGlobalStore\";\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(this),\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 this._childWindowManager;\n }\n\n /** Manage registered controls. */\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 private static _childWindowManager = new InternalChildWindowManager();\n public static useDefaultPopoutUrl = false;\n private static readonly CONTEXT_MENU_OFFSET = -8;\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 store: Store<any> | undefined,\n // eslint-disable-next-line @typescript-eslint/unified-signatures\n frameworkStateKey?: string\n ): Promise<void>;\n public static async initialize(\n store?: Store<any> | 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(this),\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(this),\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(obj: any): string {\n const className = getObjectClassName(obj);\n const category =\n UiFramework.packageName + (className ? `.${className}` : \"\");\n return category;\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 }\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 public static getIsUiVisible() {\n return UiFramework.visibility.isUiVisible;\n }\n\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 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(this),\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\nfunction dispatchSyncUiEvent(eventId: string, immediateSync = false) {\n if (immediateSync) {\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(eventId);\n return;\n }\n SyncUiEventDispatcher.dispatchSyncUiEvent(eventId);\n}\n"]}
@@ -9,15 +9,13 @@
9
9
  export interface FrameworkVisibility {
10
10
  /** Determines if the Ui is visible */
11
11
  isUiVisible: boolean;
12
- /** Determines whether the `auto-hide Ui` feature is on. Defaults to false.
13
- * When true, the Ui automatically hides after a few seconds of inactivity.
14
- */
12
+ /** When true, the UI automatically hides after a specified period of inactivity, defined by {@link FrameworkVisibility.inactivityTime}. Defaults to `true`. */
15
13
  autoHideUi: boolean;
16
14
  /** Determines whether the widget panels are shown and hidden. Defaults to false. */
17
15
  showHidePanels: boolean;
18
16
  /** Determines whether the status bar is shown and hidden. Defaults to false. */
19
17
  showHideFooter: boolean;
20
- /** Determines the amount of inactivity time before the Ui is hidden. Defaults to 3.5 seconds. */
18
+ /** Determines the amount of inactivity time in `ms` before the UI is hidden if {@link FrameworkVisibility.autoHideUi} is enabled. Defaults to `3.5` seconds. */
21
19
  inactivityTime: number;
22
20
  /** Determines whether the proximity of the mouse should alter the opacity of a toolbar. Defaults to `true`.
23
21
  * @deprecated in 4.11.0. The preferred mode is to change opacity in a snappy way (use {@link FrameworkVisibility.snapWidgetOpacity}).
@@ -1 +1 @@
1
- {"version":3,"file":"FrameworkVisibility.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/framework/FrameworkVisibility.ts"],"names":[],"mappings":";AAIA;;GAEG;AACH;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB,oFAAoF;IACpF,cAAc,EAAE,OAAO,CAAC;IAExB,gFAAgF;IAChF,cAAc,EAAE,OAAO,CAAC;IAExB,iGAAiG;IACjG,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAE7B,4HAA4H;IAC5H,iBAAiB,EAAE,OAAO,CAAC;IAE3B,6CAA6C;IAC7C,qBAAqB,IAAI,IAAI,CAAC;IAE9B,6DAA6D;IAC7D,sBAAsB,CACpB,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GACjD,IAAI,CAAC;IAER,iDAAiD;IACjD,sBAAsB,CACpB,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GACjD,IAAI,CAAC;IAER,mDAAmD;IACnD,mBAAmB,IAAI,IAAI,CAAC;IAE5B,oDAAoD;IACpD,oBAAoB,IAAI,IAAI,CAAC;CAC9B"}
1
+ {"version":3,"file":"FrameworkVisibility.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/framework/FrameworkVisibility.ts"],"names":[],"mappings":";AAIA;;GAEG;AACH;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,WAAW,EAAE,OAAO,CAAC;IAErB,+JAA+J;IAC/J,UAAU,EAAE,OAAO,CAAC;IAEpB,oFAAoF;IACpF,cAAc,EAAE,OAAO,CAAC;IAExB,gFAAgF;IAChF,cAAc,EAAE,OAAO,CAAC;IAExB,gKAAgK;IAChK,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAE7B,4HAA4H;IAC5H,iBAAiB,EAAE,OAAO,CAAC;IAE3B,6CAA6C;IAC7C,qBAAqB,IAAI,IAAI,CAAC;IAE9B,6DAA6D;IAC7D,sBAAsB,CACpB,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GACjD,IAAI,CAAC;IAER,iDAAiD;IACjD,sBAAsB,CACpB,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GACjD,IAAI,CAAC;IAER,mDAAmD;IACnD,mBAAmB,IAAI,IAAI,CAAC;IAE5B,oDAAoD;IACpD,oBAAoB,IAAI,IAAI,CAAC;CAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"FrameworkVisibility.js","sourceRoot":"","sources":["../../../../src/appui-react/framework/FrameworkVisibility.ts"],"names":[],"mappings":"","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/**\n * [[UiFramework.visibility]] interface\n * @public\n */\nexport interface FrameworkVisibility {\n /** Determines if the Ui is visible */\n isUiVisible: boolean;\n\n /** Determines whether the `auto-hide Ui` feature is on. Defaults to false.\n * When true, the Ui automatically hides after a few seconds of inactivity.\n */\n autoHideUi: boolean;\n\n /** Determines whether the widget panels are shown and hidden. Defaults to false. */\n showHidePanels: boolean;\n\n /** Determines whether the status bar is shown and hidden. Defaults to false. */\n showHideFooter: boolean;\n\n /** Determines the amount of inactivity time before the Ui is hidden. Defaults to 3.5 seconds. */\n inactivityTime: number;\n\n /** Determines whether the proximity of the mouse should alter the opacity of a toolbar. Defaults to `true`.\n * @deprecated in 4.11.0. The preferred mode is to change opacity in a snappy way (use {@link FrameworkVisibility.snapWidgetOpacity}).\n */\n useProximityOpacity: boolean;\n\n /** Determines whether the opacity of a toolbar should change immediately when the mouse gets close. Defaults to `false`. */\n snapWidgetOpacity: boolean;\n\n /** Handler for when a Frontstage is ready */\n handleFrontstageReady(): void;\n\n /** Handler for when the mouse moves over the content area */\n handleContentMouseMove(\n _event?: React.MouseEvent<HTMLElement, MouseEvent>\n ): void;\n\n /** Handler for when the mouse enters a widget */\n handleWidgetMouseEnter(\n _event?: React.MouseEvent<HTMLElement, MouseEvent>\n ): void;\n\n /** Shows the Ui and resets the inactivity timer */\n showUiAndResetTimer(): void;\n\n /** Shows the Ui and cancels the inactivity timer */\n showUiAndCancelTimer(): void;\n}\n"]}
1
+ {"version":3,"file":"FrameworkVisibility.js","sourceRoot":"","sources":["../../../../src/appui-react/framework/FrameworkVisibility.ts"],"names":[],"mappings":"","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/**\n * [[UiFramework.visibility]] interface\n * @public\n */\nexport interface FrameworkVisibility {\n /** Determines if the Ui is visible */\n isUiVisible: boolean;\n\n /** When true, the UI automatically hides after a specified period of inactivity, defined by {@link FrameworkVisibility.inactivityTime}. Defaults to `true`. */\n autoHideUi: boolean;\n\n /** Determines whether the widget panels are shown and hidden. Defaults to false. */\n showHidePanels: boolean;\n\n /** Determines whether the status bar is shown and hidden. Defaults to false. */\n showHideFooter: boolean;\n\n /** Determines the amount of inactivity time in `ms` before the UI is hidden if {@link FrameworkVisibility.autoHideUi} is enabled. Defaults to `3.5` seconds. */\n inactivityTime: number;\n\n /** Determines whether the proximity of the mouse should alter the opacity of a toolbar. Defaults to `true`.\n * @deprecated in 4.11.0. The preferred mode is to change opacity in a snappy way (use {@link FrameworkVisibility.snapWidgetOpacity}).\n */\n useProximityOpacity: boolean;\n\n /** Determines whether the opacity of a toolbar should change immediately when the mouse gets close. Defaults to `false`. */\n snapWidgetOpacity: boolean;\n\n /** Handler for when a Frontstage is ready */\n handleFrontstageReady(): void;\n\n /** Handler for when the mouse moves over the content area */\n handleContentMouseMove(\n _event?: React.MouseEvent<HTMLElement, MouseEvent>\n ): void;\n\n /** Handler for when the mouse enters a widget */\n handleWidgetMouseEnter(\n _event?: React.MouseEvent<HTMLElement, MouseEvent>\n ): void;\n\n /** Shows the Ui and resets the inactivity timer */\n showUiAndResetTimer(): void;\n\n /** Shows the Ui and cancels the inactivity timer */\n showUiAndCancelTimer(): void;\n}\n"]}
@@ -33,21 +33,14 @@ export declare class InternalUiShowHideManager {
33
33
  private static _showHideFooter;
34
34
  private static _inactivityTime;
35
35
  private static _timeout;
36
- private static _showUiTimeout;
37
36
  private static _useProximityOpacity;
38
37
  private static _snapWidgetOpacity;
39
38
  /** Determines if the Ui is visible */
40
39
  static get isUiVisible(): boolean;
41
40
  static set isUiVisible(visible: boolean);
42
- /** @public */
43
41
  static setAutoHideUi(value: boolean): void;
44
- /** @internal */
45
42
  static setUseProximityOpacity(value: boolean): void;
46
- /** @internal */
47
43
  static setSnapWidgetOpacity(value: boolean): void;
48
- /** Determines whether the `auto-hide Ui` feature is on. Defaults to false.
49
- * When true, the Ui automatically hides after a few seconds of inactivity.
50
- */
51
44
  static get autoHideUi(): boolean;
52
45
  static set autoHideUi(autoHide: boolean);
53
46
  /** Determines whether the widget panels are shown and hidden. Defaults to false. */
@@ -75,11 +68,6 @@ export declare class InternalUiShowHideManager {
75
68
  static showUiAndResetTimer(): void;
76
69
  /** Shows the Ui and cancels the inactivity timer */
77
70
  static showUiAndCancelTimer(): void;
78
- private static cancelTimer;
79
- private static resetTimer;
80
- private static showUi;
81
- private static hideUi;
82
- /** @internal */
83
71
  static terminate(): void;
84
72
  }
85
73
  //# sourceMappingURL=InternalUiShowHideManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InternalUiShowHideManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/utils/InternalUiShowHideManager.ts"],"names":[],"mappings":"AAIA;;GAEG;;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D;;GAEG;AACH,qBAAa,0BAA2B,YAAW,oBAAoB;IACrE,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAmB;IACpD,OAAO,CAAC,MAAM,CAAC,cAAc,CAAgB;IAC7C,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAyB;IAC/D,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAuB;IAC3D,SAAgB,UAAU,gCAAgC;WAE5C,UAAU;IAIX,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;WAuBjD,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc;WAQpD,wBAA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,CAEzC;IACD,WAAkB,cAAc,CAAC,IAAI,EAAE,MAAM,EAE5C;IAED,6GAA6G;IAC7G,WAAkB,mBAAmB,IAAI,OAAO,CAE/C;IACD,WAAkB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EASnD;IAED,kFAAkF;IAClF,WAAkB,iBAAiB,IAAI,OAAO,CAE7C;IACD,WAAkB,iBAAiB,CAAC,KAAK,EAAE,OAAO,EASjD;IAED,6CAA6C;WAC/B,qBAAqB;IAMnC,6DAA6D;WAC/C,sBAAsB,CAClC,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;IAOpD,iDAAiD;WACnC,sBAAsB,CAClC,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;IAOpD,mDAAmD;WACrC,mBAAmB;IAQjC,oDAAoD;WACtC,oBAAoB;IAQlC,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,UAAU;IAQzB,OAAO,CAAC,MAAM,CAAC,MAAM;IAIrB,OAAO,CAAC,MAAM,CAAC,MAAM;IAIrB,gBAAgB;WACF,SAAS;CAYxB"}
1
+ {"version":3,"file":"InternalUiShowHideManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/utils/InternalUiShowHideManager.ts"],"names":[],"mappings":"AAIA;;GAEG;;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D;;GAEG;AACH,qBAAa,0BAA2B,YAAW,oBAAoB;IACrE,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAmB;IACpD,OAAO,CAAC,MAAM,CAAC,cAAc,CAAgB;IAC7C,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAyB;IAC/D,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAuB;IAC3D,SAAgB,UAA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,cAAc,CAAC,QAAQ,EAAE,OAAO,EAKjD;IAED,iGAAiG;IACjG,WAAkB,cAAc,IAAI,MAAM,CAEzC;IACD,WAAkB,cAAc,CAAC,IAAI,EAAE,MAAM,EAE5C;IAED,6GAA6G;IAC7G,WAAkB,mBAAmB,IAAI,OAAO,CAE/C;IACD,WAAkB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EASnD;IAED,kFAAkF;IAClF,WAAkB,iBAAiB,IAAI,OAAO,CAE7C;IACD,WAAkB,iBAAiB,CAAC,KAAK,EAAE,OAAO,EASjD;IAED,6CAA6C;WAC/B,qBAAqB;IAKnC,6DAA6D;WAC/C,sBAAsB,CAClC,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;IAMpD,iDAAiD;WACnC,sBAAsB,CAClC,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;IAMpD,mDAAmD;WACrC,mBAAmB;IAUjC,oDAAoD;WACtC,oBAAoB;WAKpB,SAAS;CAUxB"}
@@ -56,29 +56,31 @@ export class InternalUiShowHideManager {
56
56
  return InternalUiShowHideManager._isUiVisible;
57
57
  }
58
58
  static set isUiVisible(visible) {
59
+ if (this._isUiVisible === visible)
60
+ return;
59
61
  InternalUiShowHideManager._isUiVisible = visible;
62
+ UiFramework.onUiVisibilityChanged.emit({ visible });
60
63
  }
61
- /** @public */
62
64
  static setAutoHideUi(value) {
63
65
  InternalUiShowHideManager._autoHideUi = value;
64
66
  }
65
- /** @internal */
66
67
  static setUseProximityOpacity(value) {
67
68
  InternalUiShowHideManager._useProximityOpacity = value;
68
69
  }
69
- /** @internal */
70
70
  static setSnapWidgetOpacity(value) {
71
71
  InternalUiShowHideManager._snapWidgetOpacity = value;
72
72
  }
73
- /** Determines whether the `auto-hide Ui` feature is on. Defaults to false.
74
- * When true, the Ui automatically hides after a few seconds of inactivity.
75
- */
76
73
  static get autoHideUi() {
77
74
  return InternalUiShowHideManager._autoHideUi;
78
75
  }
79
76
  static set autoHideUi(autoHide) {
77
+ if (this._autoHideUi === autoHide)
78
+ return;
80
79
  void UiShowHideSettingsProvider.storeAutoHideUi(autoHide);
81
- InternalUiShowHideManager._autoHideUi = autoHide;
80
+ if (!autoHide) {
81
+ this.isUiVisible = true;
82
+ }
83
+ this._autoHideUi = autoHide;
82
84
  SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(SyncUiEventId.ShowHideManagerSettingChange);
83
85
  }
84
86
  /** Determines whether the widget panels are shown and hidden. Defaults to false. */
@@ -88,7 +90,7 @@ export class InternalUiShowHideManager {
88
90
  static set showHidePanels(showHide) {
89
91
  InternalUiShowHideManager._showHidePanels = showHide;
90
92
  UiFramework.onUiVisibilityChanged.emit({
91
- visible: UiFramework.getIsUiVisible(),
93
+ visible: this.isUiVisible,
92
94
  });
93
95
  }
94
96
  /** Determines whether the status bar is shown and hidden. Defaults to false. */
@@ -98,7 +100,7 @@ export class InternalUiShowHideManager {
98
100
  static set showHideFooter(showHide) {
99
101
  InternalUiShowHideManager._showHideFooter = showHide;
100
102
  UiFramework.onUiVisibilityChanged.emit({
101
- visible: UiFramework.getIsUiVisible(),
103
+ visible: this.isUiVisible,
102
104
  });
103
105
  }
104
106
  /** Determines the amount of inactivity time before the Ui is hidden. Defaults to 3.5 seconds. */
@@ -117,7 +119,7 @@ export class InternalUiShowHideManager {
117
119
  void UiShowHideSettingsProvider.storeUseProximityOpacity(value);
118
120
  SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(SyncUiEventId.ShowHideManagerSettingChange);
119
121
  UiFramework.onUiVisibilityChanged.emit({
120
- visible: UiFramework.getIsUiVisible(),
122
+ visible: this.isUiVisible,
121
123
  });
122
124
  }
123
125
  /** Determines whether the opacity of a toolbar should snap. Defaults to false. */
@@ -129,7 +131,7 @@ export class InternalUiShowHideManager {
129
131
  void UiShowHideSettingsProvider.storeSnapWidgetOpacity(value);
130
132
  SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(SyncUiEventId.ShowHideManagerSettingChange);
131
133
  UiFramework.onUiVisibilityChanged.emit({
132
- visible: UiFramework.getIsUiVisible(),
134
+ visible: this.isUiVisible,
133
135
  });
134
136
  }
135
137
  /** Handler for when a Frontstage is ready */
@@ -152,38 +154,21 @@ export class InternalUiShowHideManager {
152
154
  }
153
155
  /** Shows the Ui and resets the inactivity timer */
154
156
  static showUiAndResetTimer() {
155
- window.clearTimeout(this._showUiTimeout);
156
- this._showUiTimeout = window.setTimeout(() => {
157
- InternalUiShowHideManager.showUi();
158
- InternalUiShowHideManager.resetTimer();
159
- });
157
+ this.isUiVisible = true;
158
+ window.clearTimeout(this._timeout);
159
+ if (!this._autoHideUi)
160
+ return;
161
+ this._timeout = window.setTimeout(() => {
162
+ this.isUiVisible = false;
163
+ }, this._inactivityTime);
160
164
  }
161
165
  /** Shows the Ui and cancels the inactivity timer */
162
166
  static showUiAndCancelTimer() {
163
- window.clearTimeout(this._showUiTimeout);
164
- this._showUiTimeout = window.setTimeout(() => {
165
- InternalUiShowHideManager.showUi();
166
- InternalUiShowHideManager.cancelTimer();
167
- });
168
- }
169
- static cancelTimer() {
170
- window.clearTimeout(InternalUiShowHideManager._timeout);
171
- }
172
- static resetTimer() {
173
- InternalUiShowHideManager.cancelTimer();
174
- InternalUiShowHideManager._timeout = window.setTimeout(InternalUiShowHideManager.hideUi, InternalUiShowHideManager._inactivityTime);
175
- }
176
- static showUi() {
177
- UiFramework.setIsUiVisible(true);
178
- }
179
- static hideUi() {
180
- UiFramework.setIsUiVisible(false);
167
+ this.isUiVisible = true;
168
+ window.clearTimeout(this._timeout);
181
169
  }
182
- /** @internal */
183
170
  static terminate() {
184
- this.cancelTimer();
185
- window.clearTimeout(this._showUiTimeout);
186
- this._showUiTimeout = undefined;
171
+ window.clearTimeout(this._timeout);
187
172
  this._isUiVisible = true;
188
173
  this._autoHideUi = true;
189
174
  this._showHidePanels = false;