@itwin/appui-react 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/lib/appui-react/UiFramework.d.ts +2 -2
  3. package/lib/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/appui-react/UiFramework.js +2 -2
  5. package/lib/appui-react/UiFramework.js.map +1 -1
  6. package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts +14 -2
  7. package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  8. package/lib/appui-react/configurableui/ConfigurableUiContent.js +28 -18
  9. package/lib/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  10. package/lib/appui-react/frontstage/FrontstageConfig.d.ts +6 -0
  11. package/lib/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  12. package/lib/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  13. package/lib/appui-react/frontstage/FrontstageDef.d.ts +2 -0
  14. package/lib/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  15. package/lib/appui-react/frontstage/FrontstageDef.js +4 -0
  16. package/lib/appui-react/frontstage/FrontstageDef.js.map +1 -1
  17. package/lib/appui-react/layout/base/NineZone.d.ts +0 -5
  18. package/lib/appui-react/layout/base/NineZone.d.ts.map +1 -1
  19. package/lib/appui-react/layout/base/NineZone.js.map +1 -1
  20. package/lib/appui-react/layout/widget/Dock.d.ts.map +1 -1
  21. package/lib/appui-react/layout/widget/Dock.js +6 -4
  22. package/lib/appui-react/layout/widget/Dock.js.map +1 -1
  23. package/lib/appui-react/layout/widget/PinToggle.d.ts.map +1 -1
  24. package/lib/appui-react/layout/widget/PinToggle.js +7 -5
  25. package/lib/appui-react/layout/widget/PinToggle.js.map +1 -1
  26. package/lib/appui-react/layout/widget/PopoutToggle.d.ts.map +1 -1
  27. package/lib/appui-react/layout/widget/PopoutToggle.js +6 -4
  28. package/lib/appui-react/layout/widget/PopoutToggle.js.map +1 -1
  29. package/lib/appui-react/layout/widget/SendBack.d.ts.map +1 -1
  30. package/lib/appui-react/layout/widget/SendBack.js +6 -6
  31. package/lib/appui-react/layout/widget/SendBack.js.map +1 -1
  32. package/lib/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  33. package/lib/appui-react/layout/widget/TabBar.js +4 -2
  34. package/lib/appui-react/layout/widget/TabBar.js.map +1 -1
  35. package/lib/appui-react/layout/widget/WidgetAction.d.ts +16 -0
  36. package/lib/appui-react/layout/widget/WidgetAction.d.ts.map +1 -0
  37. package/lib/appui-react/{preview/widget-action-dropdown/Button.js → layout/widget/WidgetAction.js} +13 -9
  38. package/lib/appui-react/layout/widget/WidgetAction.js.map +1 -0
  39. package/lib/appui-react/layout/widget/WidgetActions.d.ts +45 -0
  40. package/lib/appui-react/layout/widget/WidgetActions.d.ts.map +1 -0
  41. package/lib/appui-react/layout/widget/{Buttons.js → WidgetActions.js} +35 -29
  42. package/lib/appui-react/layout/widget/WidgetActions.js.map +1 -0
  43. package/lib/appui-react/layout/widget/{Buttons.scss → WidgetActions.scss} +1 -1
  44. package/lib/appui-react/layout/widget-panels/useAnimatePanel.d.ts +1 -1
  45. package/lib/appui-react/preview/control-widget-visibility/CloseWidgetButton.js +2 -2
  46. package/lib/appui-react/preview/control-widget-visibility/CloseWidgetButton.js.map +1 -1
  47. package/lib/appui-react/preview/enable-maximized-widget/MaximizeToggle.js +2 -2
  48. package/lib/appui-react/preview/enable-maximized-widget/MaximizeToggle.js.map +1 -1
  49. package/lib/appui-react/preview/widget-action-dropdown/MoreButton.d.ts +2 -2
  50. package/lib/appui-react/preview/widget-action-dropdown/MoreButton.d.ts.map +1 -1
  51. package/lib/appui-react/preview/widget-action-dropdown/MoreButton.js +4 -4
  52. package/lib/appui-react/preview/widget-action-dropdown/MoreButton.js.map +1 -1
  53. package/lib/appui-react/toolbar/ToolbarItem.d.ts +4 -0
  54. package/lib/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  55. package/lib/appui-react/toolbar/ToolbarItem.js.map +1 -1
  56. package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +1 -1
  57. package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  58. package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  59. package/lib/appui-react/ui-items-provider/UiItemsManager.d.ts +25 -23
  60. package/lib/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
  61. package/lib/appui-react/ui-items-provider/UiItemsManager.js +67 -40
  62. package/lib/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  63. package/lib/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  64. package/lib/appui-react/widget-panels/Frontstage.js +0 -5
  65. package/lib/appui-react/widget-panels/Frontstage.js.map +1 -1
  66. package/lib/appui-react/widgets/Widget.d.ts +4 -0
  67. package/lib/appui-react/widgets/Widget.d.ts.map +1 -1
  68. package/lib/appui-react/widgets/Widget.js.map +1 -1
  69. package/lib/appui-react/widgets/useWidget.d.ts +1 -1
  70. package/lib/appui-react.d.ts +3 -1
  71. package/lib/appui-react.d.ts.map +1 -1
  72. package/lib/appui-react.js +3 -1
  73. package/lib/appui-react.js.map +1 -1
  74. package/lib/cjs/appui-react/layout/widget/{Buttons.scss → WidgetActions.scss} +1 -1
  75. package/lib/esm/appui-react/layout/widget/{Buttons.scss → WidgetActions.scss} +1 -1
  76. package/package.json +7 -7
  77. package/lib/appui-react/layout/widget/Buttons.d.ts +0 -12
  78. package/lib/appui-react/layout/widget/Buttons.d.ts.map +0 -1
  79. package/lib/appui-react/layout/widget/Buttons.js.map +0 -1
  80. package/lib/appui-react/preview/widget-action-dropdown/Button.d.ts +0 -17
  81. package/lib/appui-react/preview/widget-action-dropdown/Button.d.ts.map +0 -1
  82. package/lib/appui-react/preview/widget-action-dropdown/Button.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Change Log - @itwin/appui-react
2
2
 
3
- This log was last generated on Thu, 27 Feb 2025 08:07:36 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 14 Mar 2025 17:37:48 GMT and should not be manually modified.
4
+
5
+ ## 5.3.0
6
+ Fri, 14 Mar 2025 17:37:48 GMT
7
+
8
+ ### Updates
9
+
10
+ - Add `layout` prop to `Frontstage` interface.
11
+ - Add additional methods to UiItemsManager that return items for custom layouts.
12
+ - Add `widgetActions` prop to `StandardLayout` component.
4
13
 
5
14
  ## 5.2.0
6
15
  Thu, 27 Feb 2025 08:07:36 GMT
@@ -182,9 +182,9 @@ export declare class UiFramework {
182
182
  static getUiStateStorage(): UiStateStorage;
183
183
  static setDefaultViewState(viewState: ViewState, immediateSync?: boolean): void;
184
184
  static getDefaultViewState(): ViewState | undefined;
185
- /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */
185
+ /** @deprecated in 4.17.0. Use `isUiVisible` of {@link UiFramework.visibility} instead. */
186
186
  static getIsUiVisible(): boolean;
187
- /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */
187
+ /** @deprecated in 4.17.0. Use `isUiVisible` of {@link UiFramework.visibility} instead. */
188
188
  static setIsUiVisible(visible: boolean): void;
189
189
  /** @deprecated in 4.13.0. Use {@link @itwin/core-bentley#ProcessDetector.isMobileBrowser} instead. */
190
190
  static isMobile(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"UiFramework.d.ts","sourceRoot":"","sources":["../../src/appui-react/UiFramework.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,SAAS,EAA2B,MAAM,qBAAqB,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,sB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sB,CAAC,KAAK,EAAE,OAAO;IASnD;;;OAGG;IACH,WAAkB,0BAA0B,IAAI,OAAO,CAKtD;IAED;;;OAGG;WACW,6BAA6B,CAAC,KAAK,EAAE,OAAO;IAS1D;;;OAGG;WACW,iBAAiB,IAAI,MAAM;IAOzC;;;;OAIG;WACW,iBAAiB,CAAC,OAAO,EAAE,MAAM;IAU/C;;;OAGG;WACW,iBAAiB,IAAI,MAAM;IAIzC;;;OAGG;WACW,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOvD;;;OAGG;WACW,uBAAuB,IAAI,MAAM;IAK/C;;;;;;;OAOG;WACW,uBAAuB,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI;IAgBrE;;;;;;;OAOG;WACW,2BAA2B,IAAI,0BAA0B,EAAE;IAQzE;;;OAGG;WACW,iCAAiC,IAAI,MAAM,GAAG,SAAS;IAOrE;;;OAGG;WACW,iCAAiC,CAC7C,uBAAuB,EAAE,MAAM,EAC/B,aAAa,UAAQ;IASvB;;;OAGG;WACW,gBAAgB,IAAI,MAAM,GAAG,SAAS;IAIpD;;;OAGG;WACW,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,UAAQ;CASrE;AAED,gBAAgB;AAChB,eAAO,MAAM,KAAK;;CAad,CAAC"}
@@ -398,11 +398,11 @@ export class UiFramework {
398
398
  }
399
399
  return useGlobalStore.getState().viewState;
400
400
  }
401
- /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */
401
+ /** @deprecated in 4.17.0. Use `isUiVisible` of {@link UiFramework.visibility} instead. */
402
402
  static getIsUiVisible() {
403
403
  return UiFramework.visibility.isUiVisible;
404
404
  }
405
- /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */
405
+ /** @deprecated in 4.17.0. Use `isUiVisible` of {@link UiFramework.visibility} instead. */
406
406
  static setIsUiVisible(visible) {
407
407
  UiFramework.visibility.isUiVisible =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,EAAE,aAAa,GAAG,KAAK;IACjE,IAAI,aAAa,EAAE,CAAC;QAClB,qBAAqB,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO;IACT,CAAC;IACD,qBAAqB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACrD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport type { AnyAction, Store } from \"redux\";\nimport { BeUiEvent, Logger, ProcessDetector } from \"@itwin/core-bentley\";\nimport type { TranslationOptions } from \"@itwin/core-common\";\nimport type { IModelConnection, ViewState } from \"@itwin/core-frontend\";\nimport { SnapMode } from \"@itwin/core-frontend\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type {\n DialogLayoutDataProvider,\n DialogProps,\n Primitives,\n PropertyDescription,\n PropertyRecord,\n} from \"@itwin/appui-abstract\";\nimport { UiAdmin, UiError, UiEvent } from \"@itwin/appui-abstract\";\nimport { UiIModelComponents } from \"@itwin/imodel-components-react\";\nimport { BackstageManager } from \"./backstage/BackstageManager.js\";\nimport { InternalChildWindowManager } from \"./childwindow/InternalChildWindowManager.js\";\nimport { InternalConfigurableUiManager } from \"./configurableui/InternalConfigurableUiManager.js\";\nimport type { FrameworkState as ReduxFrameworkState } from \"./redux/FrameworkState.js\";\nimport type {\n CursorMenuData,\n CursorMenuPayload,\n PresentationSelectionScope,\n} from \"./redux/SessionState.js\";\nimport { SessionStateActionId } from \"./redux/SessionState.js\";\nimport { StateManager } from \"./redux/StateManager.js\";\nimport type { HideIsolateEmphasizeActionHandler } from \"./selection/HideIsolateEmphasizeManager.js\";\nimport { HideIsolateEmphasizeManager } from \"./selection/HideIsolateEmphasizeManager.js\";\nimport * as keyinPaletteTools from \"./tools/KeyinPaletteTools.js\";\nimport * as openSettingTools from \"./tools/OpenSettingsTool.js\";\nimport * as restoreLayoutTools from \"./tools/RestoreLayoutTool.js\";\nimport * as toolSettingTools from \"./tools/ToolSettingsTools.js\";\nimport {\n InternalUiShowHideManager,\n UiShowHideSettingsProvider,\n} from \"./utils/InternalUiShowHideManager.js\";\nimport { WidgetManager } from \"./widgets/WidgetManager.js\";\nimport { InternalFrontstageManager } from \"./frontstage/InternalFrontstageManager.js\";\nimport { InternalContentViewManager } from \"./content/InternalContentViewManager.js\";\nimport { InternalModalDialogManager } from \"./dialog/InternalModalDialogManager.js\";\nimport { InternalModelessDialogManager } from \"./dialog/InternalModelessDialogManager.js\";\nimport { InternalKeyboardShortcutManager } from \"./keyboardshortcut/InternalKeyboardShortcut.js\";\nimport { InternalToolSettingsManager } from \"./toolsettings/InternalToolSettingsManager.js\";\nimport type { FrameworkBackstage } from \"./framework/FrameworkBackstage.js\";\nimport type { FrameworkChildWindows } from \"./framework/FrameworkChildWindows.js\";\nimport type { FrameworkControls } from \"./framework/FrameworkControls.js\";\nimport type { FrameworkFrontstages } from \"./framework/FrameworkFrontstages.js\";\nimport type { FrameworkToolSettings } from \"./framework/FrameworkToolSettings.js\";\nimport type { FrameworkContent } from \"./framework/FrameworkContent.js\";\nimport type { FrameworkDialogs } from \"./framework/FrameworkDialogs.js\";\nimport type { FrameworkKeyboardShortcuts } from \"./framework/FrameworkKeyboardShortcuts.js\";\nimport type { FrameworkVisibility } from \"./framework/FrameworkVisibility.js\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"./syncui/SyncUiEventDispatcher.js\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport { PopupManager } from \"./popup/PopupManager.js\";\nimport { AccuDrawPopupManager } from \"./accudraw/AccuDrawPopupManager.js\";\nimport { UiDataProvidedDialog } from \"./dialog/UiDataProvidedDialog.js\";\nimport type { RefObject } from \"react\";\nimport { createElement } from \"react\";\nimport type { DialogInfo } from \"./dialog/DialogManagerBase.js\";\nimport type { KeyinEntry } from \"./keyins/Keyins.js\";\nimport { mapToRelativePosition, type Placement } from \"./utils/Placement.js\";\nimport type { Toolbar, ToolbarProps } from \"./toolbar/Toolbar.js\";\nimport type { CursorMenuItemProps } from \"./shared/MenuItem.js\";\nimport {\n SYSTEM_PREFERRED_COLOR_THEME,\n type ThemeId,\n TOOLBAR_OPACITY_DEFAULT,\n WIDGET_OPACITY_DEFAULT,\n} from \"./theme/ThemeId.js\";\nimport { ConfigurableUiActionId } from \"./redux/ConfigurableUiState.js\";\nimport type {\n ConfigurableUiContent,\n ConfigurableUiContentProps,\n} from \"./configurableui/ConfigurableUiContent.js\";\nimport type { SelectionScopeField } from \"./statusfields/SelectionScope.js\";\nimport type { SnapModeField } from \"./statusfields/SnapMode.js\";\nimport type { ThemeManager } from \"./theme/ThemeManager.js\";\nimport { useGlobalStore } from \"./uistate/useGlobalStore.js\";\nimport type { UiStateStorage } from \"./uistate/UiStateStorage.js\";\nimport { LocalStateStorage } from \"./uistate/LocalStateStorage.js\";\nimport { SettingsManager } from \"./settings/SettingsManager.js\";\n\ninterface ShowInputEditorOptions {\n location: XAndY;\n anchorElement?: HTMLElement;\n initialValue: Primitives.Value; // need strategy for replacing (appui-abstract)\n propertyDescription: PropertyDescription;\n onCommit: (value: Primitives.Value) => void;\n onCancel: () => void;\n}\n\n/** Interface to be implemented but any classes that wants to load their user settings when the UiStateEntry storage class is set.\n * @public\n */\nexport interface UserSettingsProvider {\n /** Unique provider Id */\n providerId: string;\n /** Function to load settings from settings storage */\n loadUserSettings(storage: UiStateStorage): Promise<void>;\n}\n\n/** UiVisibility Event Args interface.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface UiVisibilityEventArgs {\n visible: boolean;\n}\n\n/** UiVisibility Event class.\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport class UiVisibilityChangedEvent extends UiEvent<UiVisibilityEventArgs> {}\n\n/** TrackingTime time argument used by our feature tracking manager as an option argument to the TelemetryClient\n * @internal\n */\nexport interface TrackingTime {\n startTime: Date;\n endTime: Date;\n}\n\ntype fn = typeof PopupManager.showComponent;\ntype ShowComponentParams = Parameters<fn>;\ntype OptionalShowComponentParams = [\n ShowComponentParams[0],\n Partial<\n Exclude<ShowComponentParams[1], \"anchor\"> & {\n anchorRef?: RefObject<HTMLElement>;\n }\n >?\n];\n\n/** Main entry point to configure and interact with the features provided by the AppUi-react package.\n * @public\n */\nexport class UiFramework {\n /** Operation on the backstage component. */\n public static get backstage(): FrameworkBackstage {\n if (!UiFramework._backstageManager)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._backstageManager;\n }\n\n /** Manage access to the child windows. */\n public static get childWindows(): FrameworkChildWindows {\n return appUi.windowManager;\n }\n\n /** Manage registered controls.\n * @deprecated in 4.16.0. Uses a deprecated interface {@link FrameworkControls}.\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get controls(): FrameworkControls {\n return InternalConfigurableUiManager;\n }\n\n /** Manage access to frontstages and related helper methods. */\n public static get frontstages(): FrameworkFrontstages {\n return InternalFrontstageManager;\n }\n\n /** Manage access and behavior of the tool settings. */\n public static get toolSettings(): FrameworkToolSettings {\n return InternalToolSettingsManager;\n }\n\n /** Manage content presented by the frontstages. */\n public static get content(): FrameworkContent {\n return InternalContentViewManager;\n }\n\n /** Manage displayed dialogs. */\n public static get dialogs(): FrameworkDialogs {\n return {\n modal: InternalModalDialogManager,\n modeless: InternalModelessDialogManager,\n };\n }\n\n /** Manages global keyboard shortcuts\n *\n * Note: This only manages the list of available shortcuts registered with it. It does not listens to the actual\n * keyboard events. In order for these shortcuts to be called upon a keyboard event, the application can\n * override the `IModelApp.toolAdmin` and assign it [[FrameworkToolAdmin]] or create an event listener\n * and call `UiFramework.keyboardShortcuts.processKey`.\n */\n public static get keyboardShortcuts(): FrameworkKeyboardShortcuts {\n return InternalKeyboardShortcutManager;\n }\n\n /** Manages UI visibility (Show/Hide). */\n public static get visibility(): FrameworkVisibility {\n return InternalUiShowHideManager;\n }\n\n private static _initialized = false;\n private static _store?: Store<any>;\n private static _complaint = \"UiFramework not initialized\";\n private static _frameworkStateKeyInStore: string = \"frameworkState\"; // default name\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private static _backstageManager?: BackstageManager;\n private static _widgetManager?: WidgetManager;\n private static _hideIsolateEmphasizeActionHandler?: HideIsolateEmphasizeActionHandler;\n /** this provides a default state storage handler */\n private static _uiStateStorage: UiStateStorage = new LocalStateStorage();\n private static _settingsManager?: SettingsManager;\n private static _uiSettingsProviderRegistry: Map<\n string,\n UserSettingsProvider\n > = new Map<string, UserSettingsProvider>();\n public static useDefaultPopoutUrl = false;\n private static readonly CONTEXT_MENU_OFFSET = -8;\n\n /** Event raised within UiFramework.setIModelConnection */\n public static readonly onIModelConnectionChanged = new BeUiEvent<\n IModelConnection | undefined\n >();\n\n /** Registers class that will be informed when the UserSettingsStorage location has been set or changed. This allows\n * classes to load any previously saved settings from the new storage location. Common storage locations are the browser's\n * local storage, or the iTwin Product Settings cloud storage available via the SettingsAdmin see `IModelApp.settingsAdmin`.\n */\n public static registerUserSettingsProvider(entry: UserSettingsProvider) {\n if (this._uiSettingsProviderRegistry.has(entry.providerId)) return false;\n\n this._uiSettingsProviderRegistry.set(entry.providerId, entry);\n return true;\n }\n\n /** Get Show Ui event. */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static readonly onUiVisibilityChanged = new UiVisibilityChangedEvent();\n\n /** Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore. */\n public static async initialize(): Promise<void>;\n /** Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore.\n * @param store The single Redux store created by the host application. If this is `undefined` then it is assumed that the [[StateManager]] is being used to provide the Redux store.\n * @param frameworkStateKey The name of the key used by the app when adding the UiFramework state into the Redux store. If not defined \"frameworkState\" is assumed. This value is ignored if [[StateManager]] is being used. The StateManager use \"frameworkState\".\n * @deprecated in 4.15.0. Continue using redux initializer until all application components react to redux deprecations. Use overload without parameters instead.\n */\n public static async initialize(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n store: Store<any, AnyAction> | undefined,\n // eslint-disable-next-line @typescript-eslint/unified-signatures\n frameworkStateKey?: string\n ): Promise<void>;\n public static async initialize(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n store?: Store<any, AnyAction> | undefined,\n frameworkStateKey?: string\n ): Promise<void> {\n // TODO: check `arguments` to determine between redux & no-redux initializers.\n if (UiFramework._initialized) {\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiFramework\"),\n `UiFramework.initialize already called`\n );\n return;\n }\n\n /* if store is undefined then the StateManager class should have been initialized by parent app and the apps default set of reducers registered with it.\n If the app has no reducers to add and does not initialize a StateManager then just initialize the StateManager with the default framework reducer now */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (undefined === store && !StateManager.isInitialized(true))\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n new StateManager();\n\n UiFramework._store = store;\n\n // ignore setting _frameworkStateKeyInStore if not using store\n if (frameworkStateKey && store)\n UiFramework._frameworkStateKeyInStore = frameworkStateKey;\n\n // set up namespace and register all tools from package\n const frameworkNamespace = IModelApp.localization?.registerNamespace(\n UiFramework.localizationNamespace\n );\n [\n restoreLayoutTools,\n keyinPaletteTools,\n openSettingTools,\n toolSettingTools,\n ].forEach((tool) =>\n IModelApp.tools.registerModule(tool, this.localizationNamespace)\n );\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework._backstageManager = new BackstageManager();\n UiFramework._hideIsolateEmphasizeActionHandler =\n new HideIsolateEmphasizeManager(); // this allows user to override the default HideIsolateEmphasizeManager implementation.\n UiFramework._widgetManager = new WidgetManager();\n\n // Initialize ui-imodel-components, ui-components, ui-core & ui-abstract\n await UiIModelComponents.initialize();\n\n UiFramework.settingsManager.onSettingsProvidersChanged.addListener(() => {\n dispatchSyncUiEvent(SyncUiEventId.SettingsProvidersChanged);\n });\n\n // Initialize the MessagePresenter interface in UiAdmin for Editor notifications\n UiAdmin.messagePresenter = IModelApp.notifications;\n\n UiFramework._initialized = true;\n\n // initialize any standalone settings providers that don't need to have defaults set by iModelApp\n UiShowHideSettingsProvider.initialize();\n\n InternalConfigurableUiManager.initialize();\n\n return frameworkNamespace;\n }\n\n /** Un-registers the UiFramework internationalization service namespace. */\n public static terminate() {\n InternalModalDialogManager.closeAll();\n InternalModelessDialogManager.closeAll();\n\n InternalKeyboardShortcutManager.shortcutContainer.emptyData();\n UiFramework._store = undefined;\n UiFramework._frameworkStateKeyInStore = \"frameworkState\";\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (StateManager.isInitialized(true)) StateManager.clearStore();\n IModelApp.localization?.unregisterNamespace(\n UiFramework.localizationNamespace\n );\n UiFramework._backstageManager = undefined;\n UiFramework._widgetManager = undefined;\n UiFramework._hideIsolateEmphasizeActionHandler = undefined;\n UiFramework._settingsManager = undefined;\n\n UiIModelComponents.terminate();\n InternalUiShowHideManager.terminate();\n UiFramework._initialized = false;\n }\n\n /** Determines if UiFramework has been initialized */\n public static get initialized(): boolean {\n return UiFramework._initialized;\n }\n\n /** Property that returns the SettingManager used by AppUI-based applications. */\n public static get settingsManager() {\n if (undefined === UiFramework._settingsManager)\n UiFramework._settingsManager = new SettingsManager();\n return UiFramework._settingsManager;\n }\n\n /** The internationalization service namespace. */\n public static get localizationNamespace(): string {\n return \"UiFramework\";\n }\n\n public static get hideIsolateEmphasizeActionHandler(): HideIsolateEmphasizeActionHandler {\n if (!UiFramework._hideIsolateEmphasizeActionHandler)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._hideIsolateEmphasizeActionHandler;\n }\n\n public static setHideIsolateEmphasizeActionHandler(\n handler: HideIsolateEmphasizeActionHandler | undefined\n ) {\n if (handler) UiFramework._hideIsolateEmphasizeActionHandler = handler;\n else\n UiFramework._hideIsolateEmphasizeActionHandler =\n new HideIsolateEmphasizeManager();\n }\n\n /** @alpha */\n public static get widgetManager(): WidgetManager {\n if (!UiFramework._widgetManager)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._widgetManager;\n }\n\n /** Calls localization.getLocalizedString with the \"UiFramework\" namespace. Do NOT include the namespace in the key.\n * @internal\n */\n public static translate(\n key: string | string[],\n options?: TranslationOptions\n ): string {\n return IModelApp.localization.getLocalizedString(\n `${UiFramework.localizationNamespace}:${key}`,\n options\n );\n }\n\n /** @internal */\n public static get packageName(): string {\n return \"appui-react\";\n }\n\n /** @internal */\n public static loggerCategory(name: string): string {\n return `${UiFramework.packageName}.${name}`;\n }\n\n /** Show a context menu at a particular location.\n * @param items Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of anchorElement or the overall window.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static openContextMenu(\n items: CursorMenuItemProps[],\n location: XAndY,\n anchorElement?: HTMLElement\n ): boolean {\n let position = location;\n let childWindowId: string | undefined;\n\n if (anchorElement) {\n const anchorOffset = anchorElement.getBoundingClientRect();\n\n position = {\n x: anchorOffset.left + location.x,\n y: anchorOffset.top + location.y,\n };\n\n childWindowId = UiFramework.childWindows.findId(\n anchorElement.ownerDocument.defaultView\n );\n }\n\n position = {\n x: position.x + UiFramework.CONTEXT_MENU_OFFSET,\n y: position.y + UiFramework.CONTEXT_MENU_OFFSET,\n };\n\n const cursorMenuData: CursorMenuPayload = {\n position,\n items,\n childWindowId,\n };\n UiFramework.openCursorMenu(cursorMenuData);\n\n return true;\n }\n\n public static openCursorMenu(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n menuData: CursorMenuData | CursorMenuPayload | undefined\n ): void {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (this.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.UpdateCursorMenu,\n menuData\n );\n return;\n }\n\n useGlobalStore.setState({ cursorMenuPayload: menuData });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.UpdateCursorMenu);\n }\n\n public static closeCursorMenu(): void {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.UpdateCursorMenu,\n undefined\n );\n return;\n }\n\n useGlobalStore.setState({ cursorMenuPayload: undefined });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.UpdateCursorMenu);\n }\n\n /** @note Returned value is immutable. */\n public static getCursorMenuData(): // eslint-disable-next-line @typescript-eslint/no-deprecated\n CursorMenuData | CursorMenuPayload | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const state = this.frameworkState;\n if (state) {\n return (\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n state.sessionState.cursorMenuPayload ??\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n state.sessionState.cursorMenuData\n );\n }\n\n return useGlobalStore.getState().cursorMenuPayload;\n }\n\n public static setIModelConnection(\n iModelConnection: IModelConnection | undefined,\n immediateSync = false\n ) {\n const oldConnection = UiFramework.getIModelConnection();\n if (oldConnection === iModelConnection) return;\n\n InternalFrontstageManager.clearFrontstageDefsForIModelId(\n oldConnection?.iModelId\n );\n\n oldConnection && SyncUiEventDispatcher.clearConnectionEvents(oldConnection);\n iModelConnection &&\n SyncUiEventDispatcher.initializeConnectionEvents(iModelConnection);\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetIModelConnection,\n iModelConnection,\n immediateSync\n );\n } else {\n useGlobalStore.setState({ iModelConnection });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.SetIModelConnection);\n }\n\n const itemsSelected = iModelConnection\n ? iModelConnection.selectionSet.elements.size\n : 0;\n\n UiFramework.setNumItemsSelected(itemsSelected);\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.setActiveIModelId(iModelConnection?.iModelId ?? \"\");\n UiFramework.onIModelConnectionChanged.emit(iModelConnection);\n }\n\n public static getIModelConnection(): IModelConnection | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const frameworkState = UiFramework.frameworkState;\n if (frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return frameworkState.sessionState.iModelConnection;\n }\n return useGlobalStore.getState().iModelConnection;\n }\n\n public static setNumItemsSelected(numSelected: number) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetNumItemsSelected,\n numSelected\n );\n return;\n }\n\n useGlobalStore.setState({ numItemsSelected: numSelected });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.SetNumItemsSelected);\n }\n\n public static getNumItemsSelected() {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const state = this.frameworkState;\n if (state) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return state.sessionState.numItemsSelected;\n }\n\n return useGlobalStore.getState().numItemsSelected;\n }\n\n /** Called by iModelApp to initialize saved UI state from registered UseSettingsProviders. */\n public static async initializeStateFromUserSettingsProviders(\n immediateSync = false\n ) {\n // let any registered providers to load values from the new storage location\n const providerKeys = [...this._uiSettingsProviderRegistry.keys()];\n for (const key of providerKeys) {\n await this._uiSettingsProviderRegistry\n .get(key)!\n .loadUserSettings(UiFramework._uiStateStorage);\n }\n\n dispatchSyncUiEvent(SyncUiEventId.UiStateStorageChanged, immediateSync);\n }\n\n public static async setUiStateStorage(\n storage: UiStateStorage,\n immediateSync = false\n ) {\n if (UiFramework._uiStateStorage === storage) return;\n\n UiFramework._uiStateStorage = storage;\n await this.initializeStateFromUserSettingsProviders(immediateSync);\n }\n\n /** The UI Settings Storage is a convenient wrapper around Local Storage to assist in caching state information across user sessions.\n * It was previously used to conflate both the state information across session and the information driven directly from user explicit action,\n * which are now handled with user preferences.\n */\n public static getUiStateStorage(): UiStateStorage {\n return UiFramework._uiStateStorage;\n }\n\n public static setDefaultViewState(\n viewState: ViewState,\n immediateSync = false\n ) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetDefaultViewState,\n viewState,\n immediateSync\n );\n return;\n }\n\n useGlobalStore.setState({ viewState });\n dispatchSyncUiEvent(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetDefaultViewState,\n immediateSync\n );\n }\n\n public static getDefaultViewState(): ViewState | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const frameworkState = UiFramework.frameworkState;\n if (frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return frameworkState.sessionState.defaultViewState;\n }\n return useGlobalStore.getState().viewState;\n }\n\n /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */\n public static getIsUiVisible() {\n return UiFramework.visibility.isUiVisible;\n }\n\n /** @deprecated in 4.17.0. Use {@link @itwin/UiFramework.visibility.isUiVisible} instead. */\n public static setIsUiVisible(visible: boolean) {\n UiFramework.visibility.isUiVisible = visible;\n }\n\n /** @deprecated in 4.13.0. Use {@link @itwin/core-bentley#ProcessDetector.isMobileBrowser} instead. */\n // eslint-disable-next-line @itwin/prefer-get\n public static isMobile() {\n return ProcessDetector.isMobileBrowser;\n }\n\n /** Determines whether a ContextMenu is open\n * @alpha\n */\n public static get isContextMenuOpen(): boolean {\n const contextMenu = document.querySelector(\"div.core-context-menu-opened\");\n return contextMenu !== null && contextMenu !== undefined;\n }\n\n /** Show a Card containing content, a title and a toolbar at a particular location.\n * @param content The React component of the content to display\n * @param title Title to display at the top of the card.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Card, relative to the origin of anchorElement or the window.\n * @param offset Offset of the Card from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n * @internal\n */\n public static showCard(\n content: React.ReactNode,\n title: string | PropertyRecord | undefined,\n toolbarProps: ToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: (item: any) => void,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const anchor = this.resolveHtmlElement(anchorElement);\n\n return PopupManager.displayCard(content, {\n title,\n toolbarProps,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n anchor,\n });\n }\n\n /**\n * Hides a Card displayed with {@link UiFramework.showCard}\n * @internal\n */\n public static hideCard() {\n return PopupManager.hideCard();\n }\n\n /** Opens a Tool Settings Ui popup at a particular location.\n * @param dataProvider The DialogLayoutDataProvider for the tool settings popup dialog.\n * @param location Location of the tool settings, relative to the origin of anchorElement or the window\n * @param offset Offset of the tool settings from the location\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the tool settings\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the tool settings. If undefined, the location is relative to the overall window.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n * @internal\n */\n public static openToolSettingsPopup(\n dataProvider: DialogLayoutDataProvider,\n location: XAndY,\n offset: XAndY,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n const relativePosition = mapToRelativePosition(placement);\n\n return PopupManager.openToolSettings(\n dataProvider,\n el,\n location,\n offset,\n onCancel,\n relativePosition\n );\n }\n\n /**\n * Closes the Tool Settings Ui popup.\n * @internal\n */\n public static closeToolSettingsPopup() {\n return PopupManager.closeToolSettings();\n }\n\n /** Show a Toolbar at a particular location.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Toolbar, relative to the origin of anchorElement or the overall window.\n * @param offset Offset of the Toolbar from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Toolbar\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.\n * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.\n */\n public static showToolbar(\n toolbarProps: ToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: (item: any) => void,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const anchor = UiFramework.resolveHtmlElement(anchorElement);\n\n return PopupManager.displayToolbar(toolbarProps.items, {\n anchor,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n });\n }\n\n /** Hides a toolbar displayed via {@link UiFramework.showToolbar} */\n public static hideToolbar() {\n return PopupManager.hideToolbar();\n }\n\n /** Show a menu button at a particular location. A menu button opens a context menu.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @param menuItemsProps Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of anchorElement or the window.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static showMenuButton(\n id: string,\n menuItemsProps: CursorMenuItemProps[],\n location: XAndY,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n return AccuDrawPopupManager.showMenuButton(\n id,\n el,\n location,\n menuItemsProps\n );\n }\n\n /** Hides a menu button.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @return true if the menu was hidden, false if the menu could not be hidden.\n */\n public static hideMenuButton(id: string) {\n return AccuDrawPopupManager.hideMenuButton(id);\n }\n /** Show a calculator at a particular location.\n * @param initialValue Value initially displayed in the calculator.\n * @param resultIcon Icon displayed to the left of the value.\n * @param location Location of the calculator, relative to the origin of anchorElement or the window.\n * @param onOk Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static showCalculator(\n initialValue: number,\n resultIcon: string,\n location: XAndY,\n onOk: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n\n return AccuDrawPopupManager.showCalculator(\n el,\n location,\n initialValue,\n resultIcon,\n onOk,\n onCancel\n );\n }\n\n /** Hides the calculator. */\n public static hideCalculator(): boolean {\n return AccuDrawPopupManager.hideCalculator();\n }\n\n /** Show a React Element at a particular location.\n * @param component The ReactElement to display\n * @param options - Optional {@link: ShowComponentParams}\n */\n\n public static showComponent(...params: OptionalShowComponentParams): boolean {\n const options: (typeof params)[1] = params[1] || {};\n const component = params[0];\n const { anchorRef, id } = options;\n\n let { location, offset, onCancel, placement } = options;\n\n if (!location) location = { x: 0, y: 0 };\n if (!offset) offset = { x: 0, y: 0 };\n if (!placement) placement = \"top-end\";\n if (!onCancel) onCancel = () => UiFramework.hideComponent(id);\n\n return PopupManager.showComponent(component, {\n location,\n offset,\n onCancel,\n placement,\n anchor: anchorRef?.current ?? undefined,\n id,\n });\n }\n\n /**\n * Hides the Component previously shown with {@link UiFramework.showComponent}\n */\n public static hideComponent(id?: string): boolean {\n return PopupManager.hideComponent(id);\n }\n\n /** Show an input editor for an angle value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of anchorElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public static showAngleEditor(\n initialValue: number,\n location: XAndY,\n onCommit: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n\n return AccuDrawPopupManager.showAngleEditor(\n el,\n location,\n initialValue,\n onCommit,\n onCancel\n );\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param ShowInputEditorOptions Options detailed below for the input editor\n * @param ShowInputEditorOptions.anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @param ShowInputEditorOptions.propertyDescription Description of the primitive value property\n * @param ShowInputEditorOptions.initialValue Value initially displayed in the editor.\n * @param ShowInputEditorOptions.location Location of the editor, relative to the origin of anchorElement or the window.\n * @param ShowInputEditorOptions.onCommit Function called when the OK button or the Enter key is pressed.\n * @param ShowInputEditorOptions.onCancel Function called when the Cancel button or the Escape key is pressed.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @internal\n */\n public static showInputEditor({\n anchorElement,\n initialValue,\n location,\n onCancel,\n onCommit,\n propertyDescription,\n }: ShowInputEditorOptions): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n PopupManager.showInputEditor(\n el,\n location,\n initialValue,\n propertyDescription,\n onCommit,\n onCancel\n );\n return true;\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param dimension Dimension determining which editor to display.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of anchorElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public static showDimensionEditor(\n dimension: \"height\" | \"length\",\n initialValue: number,\n location: XAndY,\n onCommit: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ) {\n const el = this.resolveHtmlElement(anchorElement);\n return AccuDrawPopupManager.showDimensionEditor(\n dimension,\n el,\n location,\n initialValue,\n onCommit,\n onCancel\n );\n }\n\n /** Hides the input editor.\n * @internal\n */\n public static hideInputEditor(): boolean {\n return PopupManager.hideInputEditor();\n }\n\n /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.\n * @param uiDataProvider The UiDataProvider for the tool settings\n * @param title Specify title for dialog.\n * @param isModal Specify if the dialog is opened as a modal or modeless.\n * @param id Id of the dialog that is used to close it.\n * @param optionalProps Optional props for Dialog construction.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n * @internal\n */\n public static openDialog(\n uiDataProvider: DialogLayoutDataProvider,\n title: string,\n isModal: boolean,\n id: string,\n optionalProps?: DialogProps\n ): boolean {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const dialog = createElement(UiDataProvidedDialog, {\n uiDataProvider,\n title,\n isModal,\n id,\n ...optionalProps,\n });\n const modalType = isModal ? \"modal\" : \"modeless\";\n UiFramework.dialogs[modalType].open(dialog, id);\n return true;\n }\n\n /** Closes the Dialog with the specified dialogId.\n * @param dialogId Id of the dialog to close.\n * @internal\n */\n public static closeDialog(dialogId: string): boolean {\n const findFn = (info: DialogInfo) => info.id === dialogId;\n if (UiFramework.dialogs.modeless.dialogs.findIndex(findFn) !== -1) {\n UiFramework.dialogs.modeless.close(dialogId);\n return true;\n }\n\n if (UiFramework.dialogs.modal.dialogs.findIndex(findFn) !== -1) {\n UiFramework.dialogs.modal.close();\n return true;\n }\n\n return false;\n }\n\n /** Show the Key-in Palette to display key-in from all registered Tools.\n * @param keyinEntries A list of KeyinEntry to display in the palette. These can be gathered and filtered from iModelApp.tools.getToolList()\n * @param htmlElement The HTMLElement that anchors the Popup. If undefined, the location is relative to the overall window.\n * @return true if the Command Palette was displayed, false if it could not be displayed.\n */\n public static showKeyinPalette(\n keyinEntries: KeyinEntry[],\n htmlElement?: HTMLElement\n ): boolean {\n return PopupManager.showKeyinPalette(\n keyinEntries,\n UiFramework.resolveHtmlElement(htmlElement)\n );\n }\n\n /** Hides the Key-in Palette. */\n public static hideKeyinPalette(): boolean {\n return PopupManager.hideKeyinPalette();\n }\n\n private static resolveHtmlElement(htmlElement?: HTMLElement): HTMLElement {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const el = htmlElement ?? UiFramework.controls.getWrapperElement();\n return el;\n }\n\n /* eslint-disable @typescript-eslint/no-deprecated */\n\n /** @deprecated in 4.15.0. Use your preferred state management library instead and {@link SyncUiEventDispatcher} to dispatch sync UI events. */\n public static dispatchActionToStore(\n type: string,\n payload: any,\n immediateSync = false\n ) {\n const reduxStore = UiFramework.reduxStore;\n const reduxState = reduxStore?.getState();\n const frameworkState = reduxState?.[UiFramework.frameworkStateKey];\n if (!frameworkState) return;\n reduxStore!.dispatch({ type, payload });\n dispatchSyncUiEvent(type, immediateSync);\n }\n\n /** Key used to access framework state from redux store.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get frameworkStateKey(): string {\n return UiFramework._frameworkStateKeyInStore;\n }\n\n /** The Redux store.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get store(): Store<any> {\n const reduxStore = this.reduxStore;\n if (!reduxStore) {\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n `Error trying to access redux store before either store or StateManager has been initialized.`\n );\n }\n\n return reduxStore;\n }\n\n /** @internal */\n public static get reduxStore(): Store<any> | undefined {\n if (UiFramework._store) {\n return UiFramework._store;\n }\n\n if (StateManager.isInitialized(true)) {\n return StateManager.store;\n }\n\n return undefined;\n }\n\n /** The UiFramework state maintained by Redux.\n * @note Returned fields should not be modified. Use the appropriate action dispatchers to modify the state.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get frameworkState(): ReduxFrameworkState | undefined {\n const store = UiFramework.reduxStore;\n const state = store?.getState();\n const frameworkState = state?.[UiFramework.frameworkStateKey];\n return frameworkState;\n }\n\n /** Set the theme value used by the [[ThemeManager]] component.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `theme` as a prop.\n */\n public static getColorTheme(): ThemeId {\n return (\n UiFramework.frameworkState?.configurableUiState.theme ??\n SYSTEM_PREFERRED_COLOR_THEME\n );\n }\n\n /** Set the theme value used by the [[ThemeManager]] component.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `theme` prop of {@link ThemeManager}.\n */\n public static setColorTheme(theme: ThemeId) {\n if (UiFramework.getColorTheme() === theme) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetTheme,\n theme,\n true\n );\n }\n\n /** Returns the variable controlling whether the overlay is displayed in a Viewport.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `viewOverlay` as a prop.\n */\n public static get viewOverlayDisplay() {\n return (\n UiFramework.frameworkState?.configurableUiState.viewOverlayDisplay ?? true\n );\n }\n\n /** Set the variable that controls display of the view overlay. Applies to all viewports in the app.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.viewOverlay} prop of {@link ConfigurableUiContent}.\n */\n public static setViewOverlayDisplay(display: boolean) {\n if (UiFramework.viewOverlayDisplay === display) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetViewOverlayDisplay,\n display\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `widgetOpacity` as a prop.\n */\n public static getWidgetOpacity(): number {\n return (\n UiFramework.frameworkState?.configurableUiState.widgetOpacity ??\n WIDGET_OPACITY_DEFAULT\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.widgetOpacity} prop of {@link ConfigurableUiContent}.\n */\n public static setWidgetOpacity(opacity: number) {\n if (UiFramework.getWidgetOpacity() === opacity) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetWidgetOpacity,\n opacity,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `snapMode` as a prop.\n */\n public static getAccudrawSnapMode(): SnapMode {\n return (\n UiFramework.frameworkState?.configurableUiState.snapMode ??\n SnapMode.NearestKeypoint\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `snapMode` prop of {@link SnapModeField}.\n */\n public static setAccudrawSnapMode(snapMode: SnapMode) {\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetSnapMode,\n snapMode,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `useDragInteraction` as a prop.\n */\n public static get useDragInteraction(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.useDragInteraction ??\n false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `useDragInteraction` prop of {@link Toolbar}.\n */\n public static setUseDragInteraction(useDragInteraction: boolean) {\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetDragInteraction,\n useDragInteraction,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `widgetIcon` as a prop.\n */\n public static get showWidgetIcon(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.showWidgetIcon ?? false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.widgetIcon} prop of {@link ConfigurableUiContent}.\n */\n public static setShowWidgetIcon(value: boolean) {\n if (UiFramework.showWidgetIcon === value) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetShowWidgetIcon,\n value,\n true\n );\n }\n\n /** When `true`, panels will close as soon as the mouse leave the panel.\n * When `false` (default), panels will close on next click outside the panel.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `collapsePanels` as a prop.\n */\n public static get autoCollapseUnpinnedPanels(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState\n .autoCollapseUnpinnedPanels ?? false\n );\n }\n\n /** Method used to enable the automatic closing of an unpinned widget panel as soon as the\n * mouse leaves the widget panel. The default behavior is to require a mouse click outside\n * the panel before it is closed.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.collapsePanels} prop of {@link ConfigurableUiContent}.\n */\n public static setAutoCollapseUnpinnedPanels(value: boolean) {\n if (UiFramework.autoCollapseUnpinnedPanels === value) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.AutoCollapseUnpinnedPanels,\n value,\n true\n );\n }\n\n /** Animate Tool Settings on appear.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `animateToolSettings` as a prop.\n */\n public static get animateToolSettings(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.animateToolSettings ??\n false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.animateToolSettings} prop of {@link ConfigurableUiContent}.\n */\n public static setAnimateToolSettings(value: boolean) {\n if (UiFramework.animateToolSettings === value) return;\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.AnimateToolSettings,\n value,\n true\n );\n }\n\n /** Use Tool Name As Tool Settings Widget Tab Label.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `toolAsToolSettingsLabel` as a prop.\n */\n public static get useToolAsToolSettingsLabel(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState\n .useToolAsToolSettingsLabel ?? false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.toolAsToolSettingsLabel} prop of {@link ConfigurableUiContent}.\n */\n public static setUseToolAsToolSettingsLabel(value: boolean) {\n if (UiFramework.useToolAsToolSettingsLabel === value) return;\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.UseToolAsToolSettingsLabel,\n value,\n true\n );\n }\n\n /** UiFramework.getToolbarOpacity() returns a number between 0 and 1 that is the non-hovered opacity for toolbars.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `opacity` as a prop.\n */\n public static getToolbarOpacity(): number {\n return (\n UiFramework.frameworkState?.configurableUiState.toolbarOpacity ??\n TOOLBAR_OPACITY_DEFAULT\n );\n }\n\n /** UiFramework.setToolbarOpacity() sets the non-hovered opacity to the value specified.\n * @param opacity a value between 0 and 1. The default value is 0.5. IT IS NOT ADVISED TO USE A VALUE BELOW 0.2\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.toolbarOpacity} prop of {@link ConfigurableUiContent}.\n */\n public static setToolbarOpacity(opacity: number) {\n if (UiFramework.getToolbarOpacity() === opacity) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetToolbarOpacity,\n opacity,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Get id from iModel connection.\n */\n public static getActiveIModelId(): string {\n return UiFramework.frameworkState?.sessionState.iModelId ?? \"\";\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setActiveIModelId(iModelId: string): void {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetActiveIModelId,\n iModelId\n );\n }\n\n /** Returns the stored active selection scope id.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `activeScope` as a prop.\n */\n public static getActiveSelectionScope(): string {\n return (\n UiFramework.frameworkState?.sessionState.activeSelectionScope ?? \"element\"\n );\n }\n /** This method stores the active selection scope to the supplied scope id, and triggers\n * a `SessionStateActionId.SetSelectionScope` event in the `SyncUiEventDispatcher`.\n * Note: As of 4.0, this method *does not change* the active selection scope in the `Presentation.selection.scopes.activeScope` property.\n * This event should be listened to and the change should typically be applied to\n * `Presentation.selection.scopes.activeScope` property from the `@itwin/presentation-frontend` package.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `activeScope` prop of {@link SelectionScopeField}.\n */\n public static setActiveSelectionScope(selectionScopeId: string): void {\n if (!UiFramework.frameworkState) return;\n\n const foundIndex =\n UiFramework.frameworkState.sessionState.availableSelectionScopes.findIndex(\n (selectionScope: PresentationSelectionScope) =>\n selectionScope.id === selectionScopeId\n );\n if (foundIndex < 0) return;\n\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetSelectionScope,\n selectionScopeId\n );\n }\n\n /** Returns the stored list of available selection scopes. This list should be set by the application\n * by dispatching the `setAvailableSelectionScopes` action.\n * The value for this action typically come from `Presentation.selection.scopes.getSelectionScopes()`\n * method found in the `@itwin/presentation-frontend` package.\n * @note Returned value is immutable.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `selectionScopes` as a prop.\n */\n public static getAvailableSelectionScopes(): PresentationSelectionScope[] {\n return (\n UiFramework.frameworkState?.sessionState.availableSelectionScopes ?? [\n { id: \"element\", label: \"Element\" },\n ]\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static getDefaultIModelViewportControlId(): string | undefined {\n return (\n UiFramework.frameworkState?.sessionState.defaultIModelViewportControlId ??\n undefined\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setDefaultIModelViewportControlId(\n iModelViewportControlId: string,\n immediateSync = false\n ) {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetDefaultIModelViewportControlId,\n iModelViewportControlId,\n immediateSync\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static getDefaultViewId(): string | undefined {\n return UiFramework.frameworkState?.sessionState.defaultViewId ?? undefined;\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setDefaultViewId(viewId: string, immediateSync = false) {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetDefaultViewId,\n viewId,\n immediateSync\n );\n }\n\n /* eslint-enable @typescript-eslint/no-deprecated */\n}\n\n/** @internal */\nexport const appUi = (() => {\n let _windowManager: InternalChildWindowManager | undefined;\n\n function getWindowManager() {\n if (!_windowManager) _windowManager = new InternalChildWindowManager();\n return _windowManager;\n }\n\n return {\n get windowManager() {\n return getWindowManager();\n },\n };\n})();\n\nfunction dispatchSyncUiEvent(eventId: string, immediateSync = false) {\n if (immediateSync) {\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(eventId);\n return;\n }\n SyncUiEventDispatcher.dispatchSyncUiEvent(eventId);\n}\n"]}
1
+ {"version":3,"file":"UiFramework.js","sourceRoot":"","sources":["../../src/appui-react/UiFramework.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAQjD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAA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,CAAC,eAAe;AAKpF,oDAAoD;AACrC,2BAAe,GAAmB,IAAI,iBAAiB,EAAE,CAAC;AAE1D,uCAA2B,GAGtC,IAAI,GAAG,EAAgC,CAAC;AAC9B,+BAAmB,GAAG,KAAK,CAAC;AAClB,+BAAmB,GAAG,CAAC,CAAC,CAAC;AAEjD,0DAA0D;AACnC,qCAAyB,GAAG,IAAI,SAAS,EAE7D,CAAC;AAaJ,yBAAyB;AACzB,4DAA4D;AACrC,iCAAqB,GAAG,IAAI,wBAAwB,EAAE,CAAC;AAiuChF,gBAAgB;AAChB,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE;IACzB,IAAI,cAAsD,CAAC;IAE3D,SAAS,gBAAgB;QACvB,IAAI,CAAC,cAAc;YAAE,cAAc,GAAG,IAAI,0BAA0B,EAAE,CAAC;QACvE,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,OAAO;QACL,IAAI,aAAa;YACf,OAAO,gBAAgB,EAAE,CAAC;QAC5B,CAAC;KACF,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAEL,SAAS,mBAAmB,CAAC,OAAe,EAAE,aAAa,GAAG,KAAK;IACjE,IAAI,aAAa,EAAE,CAAC;QAClB,qBAAqB,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO;IACT,CAAC;IACD,qBAAqB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACrD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport type { AnyAction, Store } from \"redux\";\nimport { BeUiEvent, Logger, ProcessDetector } from \"@itwin/core-bentley\";\nimport type { TranslationOptions } from \"@itwin/core-common\";\nimport type { IModelConnection, ViewState } from \"@itwin/core-frontend\";\nimport { SnapMode } from \"@itwin/core-frontend\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type {\n DialogLayoutDataProvider,\n DialogProps,\n Primitives,\n PropertyDescription,\n PropertyRecord,\n} from \"@itwin/appui-abstract\";\nimport { UiAdmin, UiError, UiEvent } from \"@itwin/appui-abstract\";\nimport { UiIModelComponents } from \"@itwin/imodel-components-react\";\nimport { BackstageManager } from \"./backstage/BackstageManager.js\";\nimport { InternalChildWindowManager } from \"./childwindow/InternalChildWindowManager.js\";\nimport { InternalConfigurableUiManager } from \"./configurableui/InternalConfigurableUiManager.js\";\nimport type { FrameworkState as ReduxFrameworkState } from \"./redux/FrameworkState.js\";\nimport type {\n CursorMenuData,\n CursorMenuPayload,\n PresentationSelectionScope,\n} from \"./redux/SessionState.js\";\nimport { SessionStateActionId } from \"./redux/SessionState.js\";\nimport { StateManager } from \"./redux/StateManager.js\";\nimport type { HideIsolateEmphasizeActionHandler } from \"./selection/HideIsolateEmphasizeManager.js\";\nimport { HideIsolateEmphasizeManager } from \"./selection/HideIsolateEmphasizeManager.js\";\nimport * as keyinPaletteTools from \"./tools/KeyinPaletteTools.js\";\nimport * as openSettingTools from \"./tools/OpenSettingsTool.js\";\nimport * as restoreLayoutTools from \"./tools/RestoreLayoutTool.js\";\nimport * as toolSettingTools from \"./tools/ToolSettingsTools.js\";\nimport {\n InternalUiShowHideManager,\n UiShowHideSettingsProvider,\n} from \"./utils/InternalUiShowHideManager.js\";\nimport { WidgetManager } from \"./widgets/WidgetManager.js\";\nimport { InternalFrontstageManager } from \"./frontstage/InternalFrontstageManager.js\";\nimport { InternalContentViewManager } from \"./content/InternalContentViewManager.js\";\nimport { InternalModalDialogManager } from \"./dialog/InternalModalDialogManager.js\";\nimport { InternalModelessDialogManager } from \"./dialog/InternalModelessDialogManager.js\";\nimport { InternalKeyboardShortcutManager } from \"./keyboardshortcut/InternalKeyboardShortcut.js\";\nimport { InternalToolSettingsManager } from \"./toolsettings/InternalToolSettingsManager.js\";\nimport type { FrameworkBackstage } from \"./framework/FrameworkBackstage.js\";\nimport type { FrameworkChildWindows } from \"./framework/FrameworkChildWindows.js\";\nimport type { FrameworkControls } from \"./framework/FrameworkControls.js\";\nimport type { FrameworkFrontstages } from \"./framework/FrameworkFrontstages.js\";\nimport type { FrameworkToolSettings } from \"./framework/FrameworkToolSettings.js\";\nimport type { FrameworkContent } from \"./framework/FrameworkContent.js\";\nimport type { FrameworkDialogs } from \"./framework/FrameworkDialogs.js\";\nimport type { FrameworkKeyboardShortcuts } from \"./framework/FrameworkKeyboardShortcuts.js\";\nimport type { FrameworkVisibility } from \"./framework/FrameworkVisibility.js\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"./syncui/SyncUiEventDispatcher.js\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport { PopupManager } from \"./popup/PopupManager.js\";\nimport { AccuDrawPopupManager } from \"./accudraw/AccuDrawPopupManager.js\";\nimport { UiDataProvidedDialog } from \"./dialog/UiDataProvidedDialog.js\";\nimport type { RefObject } from \"react\";\nimport { createElement } from \"react\";\nimport type { DialogInfo } from \"./dialog/DialogManagerBase.js\";\nimport type { KeyinEntry } from \"./keyins/Keyins.js\";\nimport { mapToRelativePosition, type Placement } from \"./utils/Placement.js\";\nimport type { Toolbar, ToolbarProps } from \"./toolbar/Toolbar.js\";\nimport type { CursorMenuItemProps } from \"./shared/MenuItem.js\";\nimport {\n SYSTEM_PREFERRED_COLOR_THEME,\n type ThemeId,\n TOOLBAR_OPACITY_DEFAULT,\n WIDGET_OPACITY_DEFAULT,\n} from \"./theme/ThemeId.js\";\nimport { ConfigurableUiActionId } from \"./redux/ConfigurableUiState.js\";\nimport type {\n ConfigurableUiContent,\n ConfigurableUiContentProps,\n} from \"./configurableui/ConfigurableUiContent.js\";\nimport type { SelectionScopeField } from \"./statusfields/SelectionScope.js\";\nimport type { SnapModeField } from \"./statusfields/SnapMode.js\";\nimport type { ThemeManager } from \"./theme/ThemeManager.js\";\nimport { useGlobalStore } from \"./uistate/useGlobalStore.js\";\nimport type { UiStateStorage } from \"./uistate/UiStateStorage.js\";\nimport { LocalStateStorage } from \"./uistate/LocalStateStorage.js\";\nimport { SettingsManager } from \"./settings/SettingsManager.js\";\n\ninterface ShowInputEditorOptions {\n location: XAndY;\n anchorElement?: HTMLElement;\n initialValue: Primitives.Value; // need strategy for replacing (appui-abstract)\n propertyDescription: PropertyDescription;\n onCommit: (value: Primitives.Value) => void;\n onCancel: () => void;\n}\n\n/** Interface to be implemented but any classes that wants to load their user settings when the UiStateEntry storage class is set.\n * @public\n */\nexport interface UserSettingsProvider {\n /** Unique provider Id */\n providerId: string;\n /** Function to load settings from settings storage */\n loadUserSettings(storage: UiStateStorage): Promise<void>;\n}\n\n/** UiVisibility Event Args interface.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface UiVisibilityEventArgs {\n visible: boolean;\n}\n\n/** UiVisibility Event class.\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport class UiVisibilityChangedEvent extends UiEvent<UiVisibilityEventArgs> {}\n\n/** TrackingTime time argument used by our feature tracking manager as an option argument to the TelemetryClient\n * @internal\n */\nexport interface TrackingTime {\n startTime: Date;\n endTime: Date;\n}\n\ntype fn = typeof PopupManager.showComponent;\ntype ShowComponentParams = Parameters<fn>;\ntype OptionalShowComponentParams = [\n ShowComponentParams[0],\n Partial<\n Exclude<ShowComponentParams[1], \"anchor\"> & {\n anchorRef?: RefObject<HTMLElement>;\n }\n >?\n];\n\n/** Main entry point to configure and interact with the features provided by the AppUi-react package.\n * @public\n */\nexport class UiFramework {\n /** Operation on the backstage component. */\n public static get backstage(): FrameworkBackstage {\n if (!UiFramework._backstageManager)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._backstageManager;\n }\n\n /** Manage access to the child windows. */\n public static get childWindows(): FrameworkChildWindows {\n return appUi.windowManager;\n }\n\n /** Manage registered controls.\n * @deprecated in 4.16.0. Uses a deprecated interface {@link FrameworkControls}.\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get controls(): FrameworkControls {\n return InternalConfigurableUiManager;\n }\n\n /** Manage access to frontstages and related helper methods. */\n public static get frontstages(): FrameworkFrontstages {\n return InternalFrontstageManager;\n }\n\n /** Manage access and behavior of the tool settings. */\n public static get toolSettings(): FrameworkToolSettings {\n return InternalToolSettingsManager;\n }\n\n /** Manage content presented by the frontstages. */\n public static get content(): FrameworkContent {\n return InternalContentViewManager;\n }\n\n /** Manage displayed dialogs. */\n public static get dialogs(): FrameworkDialogs {\n return {\n modal: InternalModalDialogManager,\n modeless: InternalModelessDialogManager,\n };\n }\n\n /** Manages global keyboard shortcuts\n *\n * Note: This only manages the list of available shortcuts registered with it. It does not listens to the actual\n * keyboard events. In order for these shortcuts to be called upon a keyboard event, the application can\n * override the `IModelApp.toolAdmin` and assign it [[FrameworkToolAdmin]] or create an event listener\n * and call `UiFramework.keyboardShortcuts.processKey`.\n */\n public static get keyboardShortcuts(): FrameworkKeyboardShortcuts {\n return InternalKeyboardShortcutManager;\n }\n\n /** Manages UI visibility (Show/Hide). */\n public static get visibility(): FrameworkVisibility {\n return InternalUiShowHideManager;\n }\n\n private static _initialized = false;\n private static _store?: Store<any>;\n private static _complaint = \"UiFramework not initialized\";\n private static _frameworkStateKeyInStore: string = \"frameworkState\"; // default name\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private static _backstageManager?: BackstageManager;\n private static _widgetManager?: WidgetManager;\n private static _hideIsolateEmphasizeActionHandler?: HideIsolateEmphasizeActionHandler;\n /** this provides a default state storage handler */\n private static _uiStateStorage: UiStateStorage = new LocalStateStorage();\n private static _settingsManager?: SettingsManager;\n private static _uiSettingsProviderRegistry: Map<\n string,\n UserSettingsProvider\n > = new Map<string, UserSettingsProvider>();\n public static useDefaultPopoutUrl = false;\n private static readonly CONTEXT_MENU_OFFSET = -8;\n\n /** Event raised within UiFramework.setIModelConnection */\n public static readonly onIModelConnectionChanged = new BeUiEvent<\n IModelConnection | undefined\n >();\n\n /** Registers class that will be informed when the UserSettingsStorage location has been set or changed. This allows\n * classes to load any previously saved settings from the new storage location. Common storage locations are the browser's\n * local storage, or the iTwin Product Settings cloud storage available via the SettingsAdmin see `IModelApp.settingsAdmin`.\n */\n public static registerUserSettingsProvider(entry: UserSettingsProvider) {\n if (this._uiSettingsProviderRegistry.has(entry.providerId)) return false;\n\n this._uiSettingsProviderRegistry.set(entry.providerId, entry);\n return true;\n }\n\n /** Get Show Ui event. */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static readonly onUiVisibilityChanged = new UiVisibilityChangedEvent();\n\n /** Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore. */\n public static async initialize(): Promise<void>;\n /** Called by the application to initialize the UiFramework. Also initializes UIIModelComponents, UiComponents, UiCore.\n * @param store The single Redux store created by the host application. If this is `undefined` then it is assumed that the [[StateManager]] is being used to provide the Redux store.\n * @param frameworkStateKey The name of the key used by the app when adding the UiFramework state into the Redux store. If not defined \"frameworkState\" is assumed. This value is ignored if [[StateManager]] is being used. The StateManager use \"frameworkState\".\n * @deprecated in 4.15.0. Continue using redux initializer until all application components react to redux deprecations. Use overload without parameters instead.\n */\n public static async initialize(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n store: Store<any, AnyAction> | undefined,\n // eslint-disable-next-line @typescript-eslint/unified-signatures\n frameworkStateKey?: string\n ): Promise<void>;\n public static async initialize(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n store?: Store<any, AnyAction> | undefined,\n frameworkStateKey?: string\n ): Promise<void> {\n // TODO: check `arguments` to determine between redux & no-redux initializers.\n if (UiFramework._initialized) {\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiFramework\"),\n `UiFramework.initialize already called`\n );\n return;\n }\n\n /* if store is undefined then the StateManager class should have been initialized by parent app and the apps default set of reducers registered with it.\n If the app has no reducers to add and does not initialize a StateManager then just initialize the StateManager with the default framework reducer now */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (undefined === store && !StateManager.isInitialized(true))\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n new StateManager();\n\n UiFramework._store = store;\n\n // ignore setting _frameworkStateKeyInStore if not using store\n if (frameworkStateKey && store)\n UiFramework._frameworkStateKeyInStore = frameworkStateKey;\n\n // set up namespace and register all tools from package\n const frameworkNamespace = IModelApp.localization?.registerNamespace(\n UiFramework.localizationNamespace\n );\n [\n restoreLayoutTools,\n keyinPaletteTools,\n openSettingTools,\n toolSettingTools,\n ].forEach((tool) =>\n IModelApp.tools.registerModule(tool, this.localizationNamespace)\n );\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework._backstageManager = new BackstageManager();\n UiFramework._hideIsolateEmphasizeActionHandler =\n new HideIsolateEmphasizeManager(); // this allows user to override the default HideIsolateEmphasizeManager implementation.\n UiFramework._widgetManager = new WidgetManager();\n\n // Initialize ui-imodel-components, ui-components, ui-core & ui-abstract\n await UiIModelComponents.initialize();\n\n UiFramework.settingsManager.onSettingsProvidersChanged.addListener(() => {\n dispatchSyncUiEvent(SyncUiEventId.SettingsProvidersChanged);\n });\n\n // Initialize the MessagePresenter interface in UiAdmin for Editor notifications\n UiAdmin.messagePresenter = IModelApp.notifications;\n\n UiFramework._initialized = true;\n\n // initialize any standalone settings providers that don't need to have defaults set by iModelApp\n UiShowHideSettingsProvider.initialize();\n\n InternalConfigurableUiManager.initialize();\n\n return frameworkNamespace;\n }\n\n /** Un-registers the UiFramework internationalization service namespace. */\n public static terminate() {\n InternalModalDialogManager.closeAll();\n InternalModelessDialogManager.closeAll();\n\n InternalKeyboardShortcutManager.shortcutContainer.emptyData();\n UiFramework._store = undefined;\n UiFramework._frameworkStateKeyInStore = \"frameworkState\";\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (StateManager.isInitialized(true)) StateManager.clearStore();\n IModelApp.localization?.unregisterNamespace(\n UiFramework.localizationNamespace\n );\n UiFramework._backstageManager = undefined;\n UiFramework._widgetManager = undefined;\n UiFramework._hideIsolateEmphasizeActionHandler = undefined;\n UiFramework._settingsManager = undefined;\n\n UiIModelComponents.terminate();\n InternalUiShowHideManager.terminate();\n UiFramework._initialized = false;\n }\n\n /** Determines if UiFramework has been initialized */\n public static get initialized(): boolean {\n return UiFramework._initialized;\n }\n\n /** Property that returns the SettingManager used by AppUI-based applications. */\n public static get settingsManager() {\n if (undefined === UiFramework._settingsManager)\n UiFramework._settingsManager = new SettingsManager();\n return UiFramework._settingsManager;\n }\n\n /** The internationalization service namespace. */\n public static get localizationNamespace(): string {\n return \"UiFramework\";\n }\n\n public static get hideIsolateEmphasizeActionHandler(): HideIsolateEmphasizeActionHandler {\n if (!UiFramework._hideIsolateEmphasizeActionHandler)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._hideIsolateEmphasizeActionHandler;\n }\n\n public static setHideIsolateEmphasizeActionHandler(\n handler: HideIsolateEmphasizeActionHandler | undefined\n ) {\n if (handler) UiFramework._hideIsolateEmphasizeActionHandler = handler;\n else\n UiFramework._hideIsolateEmphasizeActionHandler =\n new HideIsolateEmphasizeManager();\n }\n\n /** @alpha */\n public static get widgetManager(): WidgetManager {\n if (!UiFramework._widgetManager)\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n UiFramework._complaint\n );\n return UiFramework._widgetManager;\n }\n\n /** Calls localization.getLocalizedString with the \"UiFramework\" namespace. Do NOT include the namespace in the key.\n * @internal\n */\n public static translate(\n key: string | string[],\n options?: TranslationOptions\n ): string {\n return IModelApp.localization.getLocalizedString(\n `${UiFramework.localizationNamespace}:${key}`,\n options\n );\n }\n\n /** @internal */\n public static get packageName(): string {\n return \"appui-react\";\n }\n\n /** @internal */\n public static loggerCategory(name: string): string {\n return `${UiFramework.packageName}.${name}`;\n }\n\n /** Show a context menu at a particular location.\n * @param items Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of anchorElement or the overall window.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static openContextMenu(\n items: CursorMenuItemProps[],\n location: XAndY,\n anchorElement?: HTMLElement\n ): boolean {\n let position = location;\n let childWindowId: string | undefined;\n\n if (anchorElement) {\n const anchorOffset = anchorElement.getBoundingClientRect();\n\n position = {\n x: anchorOffset.left + location.x,\n y: anchorOffset.top + location.y,\n };\n\n childWindowId = UiFramework.childWindows.findId(\n anchorElement.ownerDocument.defaultView\n );\n }\n\n position = {\n x: position.x + UiFramework.CONTEXT_MENU_OFFSET,\n y: position.y + UiFramework.CONTEXT_MENU_OFFSET,\n };\n\n const cursorMenuData: CursorMenuPayload = {\n position,\n items,\n childWindowId,\n };\n UiFramework.openCursorMenu(cursorMenuData);\n\n return true;\n }\n\n public static openCursorMenu(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n menuData: CursorMenuData | CursorMenuPayload | undefined\n ): void {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (this.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.UpdateCursorMenu,\n menuData\n );\n return;\n }\n\n useGlobalStore.setState({ cursorMenuPayload: menuData });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.UpdateCursorMenu);\n }\n\n public static closeCursorMenu(): void {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.UpdateCursorMenu,\n undefined\n );\n return;\n }\n\n useGlobalStore.setState({ cursorMenuPayload: undefined });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.UpdateCursorMenu);\n }\n\n /** @note Returned value is immutable. */\n public static getCursorMenuData(): // eslint-disable-next-line @typescript-eslint/no-deprecated\n CursorMenuData | CursorMenuPayload | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const state = this.frameworkState;\n if (state) {\n return (\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n state.sessionState.cursorMenuPayload ??\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n state.sessionState.cursorMenuData\n );\n }\n\n return useGlobalStore.getState().cursorMenuPayload;\n }\n\n public static setIModelConnection(\n iModelConnection: IModelConnection | undefined,\n immediateSync = false\n ) {\n const oldConnection = UiFramework.getIModelConnection();\n if (oldConnection === iModelConnection) return;\n\n InternalFrontstageManager.clearFrontstageDefsForIModelId(\n oldConnection?.iModelId\n );\n\n oldConnection && SyncUiEventDispatcher.clearConnectionEvents(oldConnection);\n iModelConnection &&\n SyncUiEventDispatcher.initializeConnectionEvents(iModelConnection);\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetIModelConnection,\n iModelConnection,\n immediateSync\n );\n } else {\n useGlobalStore.setState({ iModelConnection });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.SetIModelConnection);\n }\n\n const itemsSelected = iModelConnection\n ? iModelConnection.selectionSet.elements.size\n : 0;\n\n UiFramework.setNumItemsSelected(itemsSelected);\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.setActiveIModelId(iModelConnection?.iModelId ?? \"\");\n UiFramework.onIModelConnectionChanged.emit(iModelConnection);\n }\n\n public static getIModelConnection(): IModelConnection | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const frameworkState = UiFramework.frameworkState;\n if (frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return frameworkState.sessionState.iModelConnection;\n }\n return useGlobalStore.getState().iModelConnection;\n }\n\n public static setNumItemsSelected(numSelected: number) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetNumItemsSelected,\n numSelected\n );\n return;\n }\n\n useGlobalStore.setState({ numItemsSelected: numSelected });\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n dispatchSyncUiEvent(SessionStateActionId.SetNumItemsSelected);\n }\n\n public static getNumItemsSelected() {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const state = this.frameworkState;\n if (state) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return state.sessionState.numItemsSelected;\n }\n\n return useGlobalStore.getState().numItemsSelected;\n }\n\n /** Called by iModelApp to initialize saved UI state from registered UseSettingsProviders. */\n public static async initializeStateFromUserSettingsProviders(\n immediateSync = false\n ) {\n // let any registered providers to load values from the new storage location\n const providerKeys = [...this._uiSettingsProviderRegistry.keys()];\n for (const key of providerKeys) {\n await this._uiSettingsProviderRegistry\n .get(key)!\n .loadUserSettings(UiFramework._uiStateStorage);\n }\n\n dispatchSyncUiEvent(SyncUiEventId.UiStateStorageChanged, immediateSync);\n }\n\n public static async setUiStateStorage(\n storage: UiStateStorage,\n immediateSync = false\n ) {\n if (UiFramework._uiStateStorage === storage) return;\n\n UiFramework._uiStateStorage = storage;\n await this.initializeStateFromUserSettingsProviders(immediateSync);\n }\n\n /** The UI Settings Storage is a convenient wrapper around Local Storage to assist in caching state information across user sessions.\n * It was previously used to conflate both the state information across session and the information driven directly from user explicit action,\n * which are now handled with user preferences.\n */\n public static getUiStateStorage(): UiStateStorage {\n return UiFramework._uiStateStorage;\n }\n\n public static setDefaultViewState(\n viewState: ViewState,\n immediateSync = false\n ) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (UiFramework.frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.dispatchActionToStore(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetDefaultViewState,\n viewState,\n immediateSync\n );\n return;\n }\n\n useGlobalStore.setState({ viewState });\n dispatchSyncUiEvent(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n SessionStateActionId.SetDefaultViewState,\n immediateSync\n );\n }\n\n public static getDefaultViewState(): ViewState | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const frameworkState = UiFramework.frameworkState;\n if (frameworkState) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return frameworkState.sessionState.defaultViewState;\n }\n return useGlobalStore.getState().viewState;\n }\n\n /** @deprecated in 4.17.0. Use `isUiVisible` of {@link UiFramework.visibility} instead. */\n public static getIsUiVisible() {\n return UiFramework.visibility.isUiVisible;\n }\n\n /** @deprecated in 4.17.0. Use `isUiVisible` of {@link UiFramework.visibility} instead. */\n public static setIsUiVisible(visible: boolean) {\n UiFramework.visibility.isUiVisible = visible;\n }\n\n /** @deprecated in 4.13.0. Use {@link @itwin/core-bentley#ProcessDetector.isMobileBrowser} instead. */\n // eslint-disable-next-line @itwin/prefer-get\n public static isMobile() {\n return ProcessDetector.isMobileBrowser;\n }\n\n /** Determines whether a ContextMenu is open\n * @alpha\n */\n public static get isContextMenuOpen(): boolean {\n const contextMenu = document.querySelector(\"div.core-context-menu-opened\");\n return contextMenu !== null && contextMenu !== undefined;\n }\n\n /** Show a Card containing content, a title and a toolbar at a particular location.\n * @param content The React component of the content to display\n * @param title Title to display at the top of the card.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Card, relative to the origin of anchorElement or the window.\n * @param offset Offset of the Card from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n * @internal\n */\n public static showCard(\n content: React.ReactNode,\n title: string | PropertyRecord | undefined,\n toolbarProps: ToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: (item: any) => void,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const anchor = this.resolveHtmlElement(anchorElement);\n\n return PopupManager.displayCard(content, {\n title,\n toolbarProps,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n anchor,\n });\n }\n\n /**\n * Hides a Card displayed with {@link UiFramework.showCard}\n * @internal\n */\n public static hideCard() {\n return PopupManager.hideCard();\n }\n\n /** Opens a Tool Settings Ui popup at a particular location.\n * @param dataProvider The DialogLayoutDataProvider for the tool settings popup dialog.\n * @param location Location of the tool settings, relative to the origin of anchorElement or the window\n * @param offset Offset of the tool settings from the location\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the tool settings\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the tool settings. If undefined, the location is relative to the overall window.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n * @internal\n */\n public static openToolSettingsPopup(\n dataProvider: DialogLayoutDataProvider,\n location: XAndY,\n offset: XAndY,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n const relativePosition = mapToRelativePosition(placement);\n\n return PopupManager.openToolSettings(\n dataProvider,\n el,\n location,\n offset,\n onCancel,\n relativePosition\n );\n }\n\n /**\n * Closes the Tool Settings Ui popup.\n * @internal\n */\n public static closeToolSettingsPopup() {\n return PopupManager.closeToolSettings();\n }\n\n /** Show a Toolbar at a particular location.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Toolbar, relative to the origin of anchorElement or the overall window.\n * @param offset Offset of the Toolbar from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Toolbar\n * @param placement {@link Placement} relative to the given location. Defaults to top-end.\n * @param anchorElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.\n * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.\n */\n public static showToolbar(\n toolbarProps: ToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: (item: any) => void,\n onCancel: () => void,\n placement: Placement = \"top-end\",\n anchorElement?: HTMLElement\n ): boolean {\n const anchor = UiFramework.resolveHtmlElement(anchorElement);\n\n return PopupManager.displayToolbar(toolbarProps.items, {\n anchor,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n });\n }\n\n /** Hides a toolbar displayed via {@link UiFramework.showToolbar} */\n public static hideToolbar() {\n return PopupManager.hideToolbar();\n }\n\n /** Show a menu button at a particular location. A menu button opens a context menu.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @param menuItemsProps Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of anchorElement or the window.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static showMenuButton(\n id: string,\n menuItemsProps: CursorMenuItemProps[],\n location: XAndY,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n return AccuDrawPopupManager.showMenuButton(\n id,\n el,\n location,\n menuItemsProps\n );\n }\n\n /** Hides a menu button.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @return true if the menu was hidden, false if the menu could not be hidden.\n */\n public static hideMenuButton(id: string) {\n return AccuDrawPopupManager.hideMenuButton(id);\n }\n /** Show a calculator at a particular location.\n * @param initialValue Value initially displayed in the calculator.\n * @param resultIcon Icon displayed to the left of the value.\n * @param location Location of the calculator, relative to the origin of anchorElement or the window.\n * @param onOk Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public static showCalculator(\n initialValue: number,\n resultIcon: string,\n location: XAndY,\n onOk: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n\n return AccuDrawPopupManager.showCalculator(\n el,\n location,\n initialValue,\n resultIcon,\n onOk,\n onCancel\n );\n }\n\n /** Hides the calculator. */\n public static hideCalculator(): boolean {\n return AccuDrawPopupManager.hideCalculator();\n }\n\n /** Show a React Element at a particular location.\n * @param component The ReactElement to display\n * @param options - Optional {@link: ShowComponentParams}\n */\n\n public static showComponent(...params: OptionalShowComponentParams): boolean {\n const options: (typeof params)[1] = params[1] || {};\n const component = params[0];\n const { anchorRef, id } = options;\n\n let { location, offset, onCancel, placement } = options;\n\n if (!location) location = { x: 0, y: 0 };\n if (!offset) offset = { x: 0, y: 0 };\n if (!placement) placement = \"top-end\";\n if (!onCancel) onCancel = () => UiFramework.hideComponent(id);\n\n return PopupManager.showComponent(component, {\n location,\n offset,\n onCancel,\n placement,\n anchor: anchorRef?.current ?? undefined,\n id,\n });\n }\n\n /**\n * Hides the Component previously shown with {@link UiFramework.showComponent}\n */\n public static hideComponent(id?: string): boolean {\n return PopupManager.hideComponent(id);\n }\n\n /** Show an input editor for an angle value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of anchorElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public static showAngleEditor(\n initialValue: number,\n location: XAndY,\n onCommit: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n\n return AccuDrawPopupManager.showAngleEditor(\n el,\n location,\n initialValue,\n onCommit,\n onCancel\n );\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param ShowInputEditorOptions Options detailed below for the input editor\n * @param ShowInputEditorOptions.anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @param ShowInputEditorOptions.propertyDescription Description of the primitive value property\n * @param ShowInputEditorOptions.initialValue Value initially displayed in the editor.\n * @param ShowInputEditorOptions.location Location of the editor, relative to the origin of anchorElement or the window.\n * @param ShowInputEditorOptions.onCommit Function called when the OK button or the Enter key is pressed.\n * @param ShowInputEditorOptions.onCancel Function called when the Cancel button or the Escape key is pressed.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @internal\n */\n public static showInputEditor({\n anchorElement,\n initialValue,\n location,\n onCancel,\n onCommit,\n propertyDescription,\n }: ShowInputEditorOptions): boolean {\n const el = this.resolveHtmlElement(anchorElement);\n PopupManager.showInputEditor(\n el,\n location,\n initialValue,\n propertyDescription,\n onCommit,\n onCancel\n );\n return true;\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param dimension Dimension determining which editor to display.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of anchorElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param anchorElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public static showDimensionEditor(\n dimension: \"height\" | \"length\",\n initialValue: number,\n location: XAndY,\n onCommit: (value: number) => void,\n onCancel: () => void,\n anchorElement?: HTMLElement\n ) {\n const el = this.resolveHtmlElement(anchorElement);\n return AccuDrawPopupManager.showDimensionEditor(\n dimension,\n el,\n location,\n initialValue,\n onCommit,\n onCancel\n );\n }\n\n /** Hides the input editor.\n * @internal\n */\n public static hideInputEditor(): boolean {\n return PopupManager.hideInputEditor();\n }\n\n /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.\n * @param uiDataProvider The UiDataProvider for the tool settings\n * @param title Specify title for dialog.\n * @param isModal Specify if the dialog is opened as a modal or modeless.\n * @param id Id of the dialog that is used to close it.\n * @param optionalProps Optional props for Dialog construction.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n * @internal\n */\n public static openDialog(\n uiDataProvider: DialogLayoutDataProvider,\n title: string,\n isModal: boolean,\n id: string,\n optionalProps?: DialogProps\n ): boolean {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const dialog = createElement(UiDataProvidedDialog, {\n uiDataProvider,\n title,\n isModal,\n id,\n ...optionalProps,\n });\n const modalType = isModal ? \"modal\" : \"modeless\";\n UiFramework.dialogs[modalType].open(dialog, id);\n return true;\n }\n\n /** Closes the Dialog with the specified dialogId.\n * @param dialogId Id of the dialog to close.\n * @internal\n */\n public static closeDialog(dialogId: string): boolean {\n const findFn = (info: DialogInfo) => info.id === dialogId;\n if (UiFramework.dialogs.modeless.dialogs.findIndex(findFn) !== -1) {\n UiFramework.dialogs.modeless.close(dialogId);\n return true;\n }\n\n if (UiFramework.dialogs.modal.dialogs.findIndex(findFn) !== -1) {\n UiFramework.dialogs.modal.close();\n return true;\n }\n\n return false;\n }\n\n /** Show the Key-in Palette to display key-in from all registered Tools.\n * @param keyinEntries A list of KeyinEntry to display in the palette. These can be gathered and filtered from iModelApp.tools.getToolList()\n * @param htmlElement The HTMLElement that anchors the Popup. If undefined, the location is relative to the overall window.\n * @return true if the Command Palette was displayed, false if it could not be displayed.\n */\n public static showKeyinPalette(\n keyinEntries: KeyinEntry[],\n htmlElement?: HTMLElement\n ): boolean {\n return PopupManager.showKeyinPalette(\n keyinEntries,\n UiFramework.resolveHtmlElement(htmlElement)\n );\n }\n\n /** Hides the Key-in Palette. */\n public static hideKeyinPalette(): boolean {\n return PopupManager.hideKeyinPalette();\n }\n\n private static resolveHtmlElement(htmlElement?: HTMLElement): HTMLElement {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const el = htmlElement ?? UiFramework.controls.getWrapperElement();\n return el;\n }\n\n /* eslint-disable @typescript-eslint/no-deprecated */\n\n /** @deprecated in 4.15.0. Use your preferred state management library instead and {@link SyncUiEventDispatcher} to dispatch sync UI events. */\n public static dispatchActionToStore(\n type: string,\n payload: any,\n immediateSync = false\n ) {\n const reduxStore = UiFramework.reduxStore;\n const reduxState = reduxStore?.getState();\n const frameworkState = reduxState?.[UiFramework.frameworkStateKey];\n if (!frameworkState) return;\n reduxStore!.dispatch({ type, payload });\n dispatchSyncUiEvent(type, immediateSync);\n }\n\n /** Key used to access framework state from redux store.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get frameworkStateKey(): string {\n return UiFramework._frameworkStateKeyInStore;\n }\n\n /** The Redux store.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get store(): Store<any> {\n const reduxStore = this.reduxStore;\n if (!reduxStore) {\n throw new UiError(\n UiFramework.loggerCategory(\"UiFramework\"),\n `Error trying to access redux store before either store or StateManager has been initialized.`\n );\n }\n\n return reduxStore;\n }\n\n /** @internal */\n public static get reduxStore(): Store<any> | undefined {\n if (UiFramework._store) {\n return UiFramework._store;\n }\n\n if (StateManager.isInitialized(true)) {\n return StateManager.store;\n }\n\n return undefined;\n }\n\n /** The UiFramework state maintained by Redux.\n * @note Returned fields should not be modified. Use the appropriate action dispatchers to modify the state.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\n public static get frameworkState(): ReduxFrameworkState | undefined {\n const store = UiFramework.reduxStore;\n const state = store?.getState();\n const frameworkState = state?.[UiFramework.frameworkStateKey];\n return frameworkState;\n }\n\n /** Set the theme value used by the [[ThemeManager]] component.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `theme` as a prop.\n */\n public static getColorTheme(): ThemeId {\n return (\n UiFramework.frameworkState?.configurableUiState.theme ??\n SYSTEM_PREFERRED_COLOR_THEME\n );\n }\n\n /** Set the theme value used by the [[ThemeManager]] component.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `theme` prop of {@link ThemeManager}.\n */\n public static setColorTheme(theme: ThemeId) {\n if (UiFramework.getColorTheme() === theme) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetTheme,\n theme,\n true\n );\n }\n\n /** Returns the variable controlling whether the overlay is displayed in a Viewport.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `viewOverlay` as a prop.\n */\n public static get viewOverlayDisplay() {\n return (\n UiFramework.frameworkState?.configurableUiState.viewOverlayDisplay ?? true\n );\n }\n\n /** Set the variable that controls display of the view overlay. Applies to all viewports in the app.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.viewOverlay} prop of {@link ConfigurableUiContent}.\n */\n public static setViewOverlayDisplay(display: boolean) {\n if (UiFramework.viewOverlayDisplay === display) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetViewOverlayDisplay,\n display\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `widgetOpacity` as a prop.\n */\n public static getWidgetOpacity(): number {\n return (\n UiFramework.frameworkState?.configurableUiState.widgetOpacity ??\n WIDGET_OPACITY_DEFAULT\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.widgetOpacity} prop of {@link ConfigurableUiContent}.\n */\n public static setWidgetOpacity(opacity: number) {\n if (UiFramework.getWidgetOpacity() === opacity) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetWidgetOpacity,\n opacity,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `snapMode` as a prop.\n */\n public static getAccudrawSnapMode(): SnapMode {\n return (\n UiFramework.frameworkState?.configurableUiState.snapMode ??\n SnapMode.NearestKeypoint\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `snapMode` prop of {@link SnapModeField}.\n */\n public static setAccudrawSnapMode(snapMode: SnapMode) {\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetSnapMode,\n snapMode,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `useDragInteraction` as a prop.\n */\n public static get useDragInteraction(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.useDragInteraction ??\n false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `useDragInteraction` prop of {@link Toolbar}.\n */\n public static setUseDragInteraction(useDragInteraction: boolean) {\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetDragInteraction,\n useDragInteraction,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `widgetIcon` as a prop.\n */\n public static get showWidgetIcon(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.showWidgetIcon ?? false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.widgetIcon} prop of {@link ConfigurableUiContent}.\n */\n public static setShowWidgetIcon(value: boolean) {\n if (UiFramework.showWidgetIcon === value) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetShowWidgetIcon,\n value,\n true\n );\n }\n\n /** When `true`, panels will close as soon as the mouse leave the panel.\n * When `false` (default), panels will close on next click outside the panel.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `collapsePanels` as a prop.\n */\n public static get autoCollapseUnpinnedPanels(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState\n .autoCollapseUnpinnedPanels ?? false\n );\n }\n\n /** Method used to enable the automatic closing of an unpinned widget panel as soon as the\n * mouse leaves the widget panel. The default behavior is to require a mouse click outside\n * the panel before it is closed.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.collapsePanels} prop of {@link ConfigurableUiContent}.\n */\n public static setAutoCollapseUnpinnedPanels(value: boolean) {\n if (UiFramework.autoCollapseUnpinnedPanels === value) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.AutoCollapseUnpinnedPanels,\n value,\n true\n );\n }\n\n /** Animate Tool Settings on appear.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `animateToolSettings` as a prop.\n */\n public static get animateToolSettings(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState.animateToolSettings ??\n false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.animateToolSettings} prop of {@link ConfigurableUiContent}.\n */\n public static setAnimateToolSettings(value: boolean) {\n if (UiFramework.animateToolSettings === value) return;\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.AnimateToolSettings,\n value,\n true\n );\n }\n\n /** Use Tool Name As Tool Settings Widget Tab Label.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `toolAsToolSettingsLabel` as a prop.\n */\n public static get useToolAsToolSettingsLabel(): boolean {\n return (\n UiFramework.frameworkState?.configurableUiState\n .useToolAsToolSettingsLabel ?? false\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.toolAsToolSettingsLabel} prop of {@link ConfigurableUiContent}.\n */\n public static setUseToolAsToolSettingsLabel(value: boolean) {\n if (UiFramework.useToolAsToolSettingsLabel === value) return;\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.UseToolAsToolSettingsLabel,\n value,\n true\n );\n }\n\n /** UiFramework.getToolbarOpacity() returns a number between 0 and 1 that is the non-hovered opacity for toolbars.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `opacity` as a prop.\n */\n public static getToolbarOpacity(): number {\n return (\n UiFramework.frameworkState?.configurableUiState.toolbarOpacity ??\n TOOLBAR_OPACITY_DEFAULT\n );\n }\n\n /** UiFramework.setToolbarOpacity() sets the non-hovered opacity to the value specified.\n * @param opacity a value between 0 and 1. The default value is 0.5. IT IS NOT ADVISED TO USE A VALUE BELOW 0.2\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use {@link ConfigurableUiContentProps.toolbarOpacity} prop of {@link ConfigurableUiContent}.\n */\n public static setToolbarOpacity(opacity: number) {\n if (UiFramework.getToolbarOpacity() === opacity) return;\n\n UiFramework.dispatchActionToStore(\n ConfigurableUiActionId.SetToolbarOpacity,\n opacity,\n true\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Get id from iModel connection.\n */\n public static getActiveIModelId(): string {\n return UiFramework.frameworkState?.sessionState.iModelId ?? \"\";\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setActiveIModelId(iModelId: string): void {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetActiveIModelId,\n iModelId\n );\n }\n\n /** Returns the stored active selection scope id.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `activeScope` as a prop.\n */\n public static getActiveSelectionScope(): string {\n return (\n UiFramework.frameworkState?.sessionState.activeSelectionScope ?? \"element\"\n );\n }\n /** This method stores the active selection scope to the supplied scope id, and triggers\n * a `SessionStateActionId.SetSelectionScope` event in the `SyncUiEventDispatcher`.\n * Note: As of 4.0, this method *does not change* the active selection scope in the `Presentation.selection.scopes.activeScope` property.\n * This event should be listened to and the change should typically be applied to\n * `Presentation.selection.scopes.activeScope` property from the `@itwin/presentation-frontend` package.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Use `activeScope` prop of {@link SelectionScopeField}.\n */\n public static setActiveSelectionScope(selectionScopeId: string): void {\n if (!UiFramework.frameworkState) return;\n\n const foundIndex =\n UiFramework.frameworkState.sessionState.availableSelectionScopes.findIndex(\n (selectionScope: PresentationSelectionScope) =>\n selectionScope.id === selectionScopeId\n );\n if (foundIndex < 0) return;\n\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetSelectionScope,\n selectionScopeId\n );\n }\n\n /** Returns the stored list of available selection scopes. This list should be set by the application\n * by dispatching the `setAvailableSelectionScopes` action.\n * The value for this action typically come from `Presentation.selection.scopes.getSelectionScopes()`\n * method found in the `@itwin/presentation-frontend` package.\n * @note Returned value is immutable.\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Components should take `selectionScopes` as a prop.\n */\n public static getAvailableSelectionScopes(): PresentationSelectionScope[] {\n return (\n UiFramework.frameworkState?.sessionState.availableSelectionScopes ?? [\n { id: \"element\", label: \"Element\" },\n ]\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static getDefaultIModelViewportControlId(): string | undefined {\n return (\n UiFramework.frameworkState?.sessionState.defaultIModelViewportControlId ??\n undefined\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setDefaultIModelViewportControlId(\n iModelViewportControlId: string,\n immediateSync = false\n ) {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetDefaultIModelViewportControlId,\n iModelViewportControlId,\n immediateSync\n );\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static getDefaultViewId(): string | undefined {\n return UiFramework.frameworkState?.sessionState.defaultViewId ?? undefined;\n }\n\n /**\n * @note Requires redux provider.\n * @deprecated in 4.15.0. Not used by AppUI components.\n */\n public static setDefaultViewId(viewId: string, immediateSync = false) {\n UiFramework.dispatchActionToStore(\n SessionStateActionId.SetDefaultViewId,\n viewId,\n immediateSync\n );\n }\n\n /* eslint-enable @typescript-eslint/no-deprecated */\n}\n\n/** @internal */\nexport const appUi = (() => {\n let _windowManager: InternalChildWindowManager | undefined;\n\n function getWindowManager() {\n if (!_windowManager) _windowManager = new InternalChildWindowManager();\n return _windowManager;\n }\n\n return {\n get windowManager() {\n return getWindowManager();\n },\n };\n})();\n\nfunction dispatchSyncUiEvent(eventId: string, immediateSync = false) {\n if (immediateSync) {\n SyncUiEventDispatcher.dispatchImmediateSyncUiEvent(eventId);\n return;\n }\n SyncUiEventDispatcher.dispatchSyncUiEvent(eventId);\n}\n"]}
@@ -5,8 +5,9 @@ import "./ConfigurableUiContent.scss";
5
5
  import * as React from "react";
6
6
  import type { CommonProps } from "@itwin/core-react";
7
7
  /** @internal */
8
- export declare const ConfigurableUiContext: React.Context<Pick<ConfigurableUiContentProps, "childWindow" | "viewOverlay" | "widgetOpacity" | "widgetIcon" | "collapsePanels" | "animateToolSettings" | "toolAsToolSettingsLabel"> & {
8
+ export declare const ConfigurableUiContext: React.Context<ConfigurableUiContentProps & {
9
9
  contentElementRef?: React.RefObject<HTMLElement>;
10
+ widgetActions?: React.ReactNode;
10
11
  }>;
11
12
  /** Properties for [[ConfigurableUiContent]]
12
13
  * @public
@@ -44,8 +45,19 @@ export interface ConfigurableUiContentProps extends CommonProps {
44
45
  * @internal
45
46
  */
46
47
  export declare const WrapperContext: React.Context<HTMLElement>;
47
- /** The ConfigurableUiContent component is the component the pages specified using ConfigurableUi
48
+ /** The main component of `AppUI` that sets up the configurable UI.
48
49
  * @public
49
50
  */
50
51
  export declare function ConfigurableUiContent(props: ConfigurableUiContentProps): React.JSX.Element;
52
+ interface StandardLayoutProps {
53
+ /** Overrides widget specific actions displayed in the title bar area.
54
+ * Use {@link WidgetActions} component to customize widget actions.
55
+ */
56
+ widgetActions?: React.ReactNode;
57
+ }
58
+ /** The standard widget based layout used as a default layout for all frontstages.
59
+ * @alpha
60
+ */
61
+ export declare function StandardLayout(props: StandardLayoutProps): React.JSX.Element;
62
+ export {};
51
63
  //# sourceMappingURL=ConfigurableUiContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurableUiContent.d.ts","sourceRoot":"","sources":["../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA6BrD,gBAAgB;AAChB,eAAO,MAAM,qBAAqB;wBAYV,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;EAE/C,CAAC;AAEN;;;GAGG;AAEH,MAAM,WAAW,0BAA2B,SAAQ,WAAW;IAC7D,kCAAkC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oHAAoH;IACpH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4GAA4G;IAC5G,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8HAA8H;IAC9H,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6GAA6G;IAC7G,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sIAAsI;IACtI,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,sHAAsH;IACtH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gHAAgH;IAChH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAElC,gBAAgB;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,4BAAkD,CAAC;AAE9E;;GAEG;AAEH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBAwFtE"}
1
+ {"version":3,"file":"ConfigurableUiContent.d.ts","sourceRoot":"","sources":["../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA+BrD,gBAAgB;AAChB,eAAO,MAAM,qBAAqB;wBAGV,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;oBAChC,KAAK,CAAC,SAAS;EAE9B,CAAC;AAEN;;;GAGG;AAEH,MAAM,WAAW,0BAA2B,SAAQ,WAAW;IAC7D,kCAAkC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oHAAoH;IACpH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4GAA4G;IAC5G,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8HAA8H;IAC9H,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6GAA6G;IAC7G,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sIAAsI;IACtI,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,sHAAsH;IACtH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gHAAgH;IAChH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAElC,gBAAgB;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,4BAAkD,CAAC;AAE9E;;GAEG;AAEH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBAWtE;AAED,UAAU,mBAAmB;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,qBA8FxD"}
@@ -27,6 +27,7 @@ import { MessageRenderer } from "../messages/MessageRenderer.js";
27
27
  import { TOOLBAR_OPACITY_DEFAULT, WIDGET_OPACITY_DEFAULT, } from "../theme/ThemeId.js";
28
28
  import { useReduxFrameworkState } from "../uistate/useReduxFrameworkState.js";
29
29
  import { ChildWindowRenderer } from "../childwindow/ChildWindowRenderer.js";
30
+ import { useActiveFrontstageDef } from "../frontstage/FrontstageDef.js";
30
31
  /** @internal */
31
32
  export const ConfigurableUiContext = React.createContext({});
32
33
  /**
@@ -34,14 +35,29 @@ export const ConfigurableUiContext = React.createContext({});
34
35
  * @internal
35
36
  */
36
37
  export const WrapperContext = React.createContext(document.body);
37
- /** The ConfigurableUiContent component is the component the pages specified using ConfigurableUi
38
+ /** The main component of `AppUI` that sets up the configurable UI.
38
39
  * @public
39
40
  */
40
41
  // eslint-disable-next-line @typescript-eslint/no-deprecated
41
42
  export function ConfigurableUiContent(props) {
43
+ const frontstageDef = useActiveFrontstageDef();
44
+ const layout = frontstageDef?.initialConfig?.layout;
45
+ return (React.createElement(ConfigurableUiContext.Provider
46
+ // eslint-disable-next-line react-hooks/exhaustive-deps
47
+ , {
48
+ // eslint-disable-next-line react-hooks/exhaustive-deps
49
+ value: React.useMemo(() => props, [...Object.values(props)]) }, layout ?? React.createElement(StandardLayout, null)));
50
+ }
51
+ /** The standard widget based layout used as a default layout for all frontstages.
52
+ * @alpha
53
+ */
54
+ export function StandardLayout(props) {
55
+ const { widgetActions } = props;
56
+ const context = React.useContext(ConfigurableUiContext);
57
+ const { appBackstage, widgetOpacity, toolbarOpacity, idleTimeout, intervalTimeout, } = context;
42
58
  const contentElementRef = React.useRef(null);
43
- useWidgetOpacity(props.widgetOpacity);
44
- useToolbarOpacity(props.toolbarOpacity);
59
+ useWidgetOpacity(widgetOpacity);
60
+ useToolbarOpacity(toolbarOpacity);
45
61
  const [mainElement, setMainElement] = React.useState();
46
62
  const [portalContainer, setPortalContainer] = React.useState();
47
63
  React.useEffect(() => {
@@ -49,26 +65,20 @@ export function ConfigurableUiContent(props) {
49
65
  }, []);
50
66
  React.useEffect(() => {
51
67
  InternalConfigurableUiManager.activityTracker.initialize({
52
- idleTimeout: props.idleTimeout,
53
- intervalTimeout: props.intervalTimeout,
68
+ idleTimeout,
69
+ intervalTimeout,
54
70
  });
55
71
  return () => {
56
72
  InternalConfigurableUiManager.activityTracker.terminate();
57
73
  };
58
- }, [props.idleTimeout, props.intervalTimeout]);
74
+ }, [idleTimeout, intervalTimeout]);
59
75
  const setContentHovered = useCursorInformationStore((state) => state.setContentHovered);
60
- return (React.createElement(ConfigurableUiContext.Provider, { value: {
61
- // eslint-disable-next-line @typescript-eslint/no-deprecated
62
- viewOverlay: props.viewOverlay,
63
- widgetOpacity: props.widgetOpacity,
64
- widgetIcon: props.widgetIcon,
65
- collapsePanels: props.collapsePanels,
66
- animateToolSettings: props.animateToolSettings,
67
- toolAsToolSettingsLabel: props.toolAsToolSettingsLabel,
68
- childWindow: props.childWindow,
76
+ return (React.createElement(ConfigurableUiContext.Provider, { value: React.useMemo(() => ({
77
+ ...context,
69
78
  contentElementRef,
70
- } },
71
- React.createElement("main", { role: "main", id: "uifw-configurableui-wrapper", className: props.className, style: props.style, onMouseMove: (e) => {
79
+ widgetActions,
80
+ }), [context, widgetActions]) },
81
+ React.createElement("main", { role: "main", id: "uifw-configurableui-wrapper", className: context.className, style: context.style, onMouseMove: (e) => {
72
82
  const point = new Point(e.pageX, e.pageY);
73
83
  CursorInformation.handleMouseMove(point);
74
84
  if (!(e.target instanceof Node))
@@ -80,7 +90,7 @@ export function ConfigurableUiContent(props) {
80
90
  }, ref: (el) => setMainElement(el ?? undefined) },
81
91
  React.createElement(WrapperContext.Provider, { value: mainElement ?? document.body },
82
92
  React.createElement(ThemeProvider, { style: { height: "100%" }, portalContainer: portalContainer },
83
- props.appBackstage,
93
+ appBackstage,
84
94
  React.createElement(WidgetPanelsFrontstage, null),
85
95
  React.createElement(ElementTooltip, null),
86
96
  React.createElement(PointerMessage, null),