@itwin/appui-react 5.34.0 → 5.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts +6 -2
  3. package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  4. package/lib/appui-react/configurableui/ConfigurableUiContent.js +9 -2
  5. package/lib/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  6. package/lib/appui-react/framework/FrameworkFrontstages.d.ts +1 -0
  7. package/lib/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  8. package/lib/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  9. package/lib/appui-react/framework/FrameworkVisibility.d.ts +3 -1
  10. package/lib/appui-react/framework/FrameworkVisibility.d.ts.map +1 -1
  11. package/lib/appui-react/framework/FrameworkVisibility.js.map +1 -1
  12. package/lib/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  13. package/lib/appui-react/frontstage/InternalFrontstageManager.js +6 -0
  14. package/lib/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  15. package/lib/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -1
  16. package/lib/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +6 -1
  17. package/lib/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -1
  18. package/lib/appui-react/layout/_widgetopacity.scss +1 -1
  19. package/lib/appui-react/layout/state/NineZoneAction.d.ts +3 -6
  20. package/lib/appui-react/layout/state/NineZoneAction.d.ts.map +1 -1
  21. package/lib/appui-react/layout/state/NineZoneAction.js.map +1 -1
  22. package/lib/appui-react/layout/state/NineZoneStateReducer.d.ts.map +1 -1
  23. package/lib/appui-react/layout/state/NineZoneStateReducer.js +5 -4
  24. package/lib/appui-react/layout/state/NineZoneStateReducer.js.map +1 -1
  25. package/lib/appui-react/layout/widget/Tab.d.ts.map +1 -1
  26. package/lib/appui-react/layout/widget/Tab.js +25 -28
  27. package/lib/appui-react/layout/widget/Tab.js.map +1 -1
  28. package/lib/appui-react/popup/CardPopup.d.ts.map +1 -1
  29. package/lib/appui-react/popup/CardPopup.js +3 -1
  30. package/lib/appui-react/popup/CardPopup.js.map +1 -1
  31. package/lib/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  32. package/lib/appui-react/popup/ToolbarPopup.js +3 -1
  33. package/lib/appui-react/popup/ToolbarPopup.js.map +1 -1
  34. package/lib/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  35. package/lib/appui-react/shared/ToolItemDef.js +6 -5
  36. package/lib/appui-react/shared/ToolItemDef.js.map +1 -1
  37. package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  38. package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.js +4 -2
  39. package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  40. package/lib/appui-react/theme/ThemeId.d.ts +3 -1
  41. package/lib/appui-react/theme/ThemeId.d.ts.map +1 -1
  42. package/lib/appui-react/theme/ThemeId.js +3 -1
  43. package/lib/appui-react/theme/ThemeId.js.map +1 -1
  44. package/lib/appui-react/toolbar/Toolbar.d.ts +3 -1
  45. package/lib/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  46. package/lib/appui-react/toolbar/Toolbar.js.map +1 -1
  47. package/lib/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  48. package/lib/appui-react/toolbar/ToolbarComposer.js +13 -5
  49. package/lib/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  50. package/lib/appui-react/toolbar/ToolbarWithOverflow.d.ts +3 -1
  51. package/lib/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  52. package/lib/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  53. package/lib/appui-react/toolbar/new-toolbars/Surface.d.ts.map +1 -1
  54. package/lib/appui-react/toolbar/new-toolbars/Surface.js +1 -0
  55. package/lib/appui-react/toolbar/new-toolbars/Surface.js.map +1 -1
  56. package/lib/appui-react/toolbar/new-toolbars/Surface.scss +1 -6
  57. package/lib/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  58. package/lib/appui-react/tools/CoreToolDefinitions.js +37 -133
  59. package/lib/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  60. package/lib/appui-react/tools/defineToolIcons.d.ts +3 -0
  61. package/lib/appui-react/tools/defineToolIcons.d.ts.map +1 -0
  62. package/lib/appui-react/tools/defineToolIcons.js +45 -0
  63. package/lib/appui-react/tools/defineToolIcons.js.map +1 -0
  64. package/lib/appui-react/uistate/AppUiSettings.d.ts +6 -0
  65. package/lib/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  66. package/lib/appui-react/uistate/AppUiSettings.js +15 -0
  67. package/lib/appui-react/uistate/AppUiSettings.js.map +1 -1
  68. package/lib/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  69. package/lib/appui-react/widgets/NavigationWidgetComposer.js +4 -1
  70. package/lib/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  71. package/lib/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  72. package/lib/appui-react/widgets/ToolWidgetComposer.js +3 -1
  73. package/lib/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  74. package/lib/appui-react.d.ts.map +1 -1
  75. package/lib/appui-react.js +2 -0
  76. package/lib/appui-react.js.map +1 -1
  77. package/lib/cjs/appui-react/layout/_widgetopacity.scss +1 -1
  78. package/lib/cjs/appui-react/toolbar/new-toolbars/Surface.scss +1 -6
  79. package/lib/esm/appui-react/layout/_widgetopacity.scss +1 -1
  80. package/lib/esm/appui-react/toolbar/new-toolbars/Surface.scss +1 -6
  81. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"InternalFrontstageManager.js","sourceRoot":"","sources":["../../../src/appui-react/frontstage/InternalFrontstageManager.ts"],"names":[],"mappings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5C,MAAM,WAAW,CAAC,WAAW,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IACzE,CAAC;IAEO,MAAM,CAAC,oBAAoB,CAAC,gBAA+B;QACjE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACjD,CAAC;IAED;OACG;IACI,MAAM,CAAC,KAAK,CAAC,qBAAqB;QACvC,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAE3B,IAAI,WAAW,CAAC,WAAW,CAAC,qBAAqB,GAAG,CAAC,EAAE,CAAC;YACtD,MAAM,WAAW,CAAC,WAAW,CAAC,sBAAsB,CAClD,WAAW,CAAC,WAAW,CAAC,sBAAsB,CAC/C,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,WAAW,CAAC,WAAW,CAAC,sBAAsB,CAClD,IAAI,CAAC,2BAA2B,CACjC,CAAC;YACF,IAAI,CAAC,2BAA2B,GAAG,SAAS,CAAC;QAC/C,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,mBAAmB;QAChC,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,MAAM,KAAK,sBAAsB;QACtC,IAAI,IAAI,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC;YACpC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAErE,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;OAEG;IACI,MAAM,KAAK,qBAAqB;QACrC,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC;IACxC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Frontstage\n */\n\nimport { BeUiEvent, Logger } from \"@itwin/core-bentley\";\nimport type { IModelConnection, Tool } from \"@itwin/core-frontend\";\nimport { IModelApp, InteractiveTool } from \"@itwin/core-frontend\";\nimport type { ListenerType } from \"@itwin/core-react/internal\";\nimport type { ContentControlActivatedEventArgs } from \"../content/ContentControl.js\";\nimport type { ContentGroup } from \"../content/ContentGroup.js\";\nimport type {\n ContentLayoutActivatedEventArgs,\n ContentLayoutDef,\n} from \"../content/ContentLayout.js\";\nimport type { NavigationAidActivatedEventArgs } from \"../navigationaids/NavigationAidControl.js\";\nimport type {\n PanelPinnedChangedEventArgs,\n PanelSizeChangedEventArgs,\n PanelStateChangedEventArgs,\n} from \"../stagepanels/StagePanelDef.js\";\nimport { UiFramework } from \"../UiFramework.js\";\nimport type {\n WidgetDef,\n WidgetStateChangedEventArgs,\n} from \"../widgets/WidgetDef.js\";\nimport { ToolInformation } from \"../toolsettings/ToolInformation.js\";\nimport type { ToolUiProvider } from \"../toolsettings/ToolUiProvider.js\";\nimport { FrontstageDef } from \"./FrontstageDef.js\";\nimport { FrontstageProvider } from \"./FrontstageProvider.js\";\nimport { TimeTracker } from \"../configurableui/TimeTracker.js\";\nimport type { WidgetState } from \"../widgets/WidgetState.js\";\nimport type {\n FrontstageActivatedEventArgs,\n FrontstageDeactivatedEventArgs,\n FrontstageReadyEventArgs,\n ModalFrontstageChangedEventArgs,\n ModalFrontstageClosedEventArgs,\n ModalFrontstageInfo,\n ModalFrontstageItem,\n ModalFrontstageRequestedCloseEventArgs,\n ToolActivatedEventArgs,\n ToolIconChangedEventArgs,\n} from \"../framework/FrameworkFrontstages.js\";\nimport { UiItemsManager } from \"../ui-items-provider/UiItemsManager.js\";\nimport type { Frontstage } from \"./Frontstage.js\";\nimport type { NineZoneState } from \"../layout/state/NineZoneState.js\";\nimport type { SizeProps } from \"../utils/SizeProps.js\";\n\n/** Frontstage Manager class.\n * @internal\n */\nexport class InternalFrontstageManager {\n private static _initialized = false;\n private static _isLoading = false;\n private static _activeToolId = \"\";\n private static _activeFrontstageDef: FrontstageDef | undefined;\n private static _frontstageDefs = new Map<string, FrontstageDef>();\n private static _modalFrontstages: ModalFrontstageItem[] =\n new Array<ModalFrontstageItem>();\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private static _frontstageProviders = new Map<string, FrontstageProvider>();\n private static _frontstages = new Map<string, Frontstage>();\n private static _nineZoneSize: SizeProps | undefined = undefined;\n\n private static _nestedFrontstages: FrontstageDef[] =\n new Array<FrontstageDef>();\n private static _activePrimaryFrontstageDef: FrontstageDef | undefined;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private static _toolInformationMap: Map<string, ToolInformation> = new Map<\n string,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ToolInformation\n >();\n\n /** This should only be called within InternalFrontstageManager and its tests.\n * @internal\n */\n public static ensureToolInformationIsSet(toolId: string): void {\n if (this._toolInformationMap.has(toolId)) return;\n this._toolInformationMap.set(\n toolId,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n new ToolInformation(toolId)\n );\n }\n\n private static _handleSyncToolSettingsPropertiesEvent: ListenerType<\n typeof UiFramework.toolSettings.onSyncToolSettingsProperties\n > = (args) => {\n const provider = this.activeToolSettingsProvider;\n if (!provider) return;\n provider.syncToolSettingsProperties(args);\n };\n\n // pass on ReloadToolSettingsEvent from ToolAdmin so they are treated by UiProviders\n private static _handleReloadToolSettingsEvent: ListenerType<\n typeof UiFramework.toolSettings.onReloadToolSettingsProperties\n > = () => {\n const provider = this.activeToolSettingsProvider;\n if (!provider) return;\n provider.reloadPropertiesFromTool();\n };\n\n /** Initializes the InternalFrontstageManager\n * @internal\n */\n public static initialize() {\n if (this._initialized) return;\n\n IModelApp.toolAdmin.activeToolChanged.addListener((tool) => {\n // make sure tool settings properties are cached before creating ToolInformation\n UiFramework.toolSettings.clearToolSettingsData();\n if (tool instanceof InteractiveTool)\n UiFramework.toolSettings.initializeDataForTool(tool);\n\n // if the tool data is not already cached then see if there is data to cache\n this.ensureToolInformationIsSet(tool.toolId);\n UiFramework.frontstages.setActiveTool(tool);\n });\n UiFramework.toolSettings.onSyncToolSettingsProperties.addListener(\n this._handleSyncToolSettingsPropertiesEvent\n );\n UiFramework.toolSettings.onReloadToolSettingsProperties.addListener(\n this._handleReloadToolSettingsEvent\n );\n IModelApp.viewManager.onSelectedViewportChanged.addListener(\n this._handleSelectedViewportChanged\n );\n UiItemsManager.onUiProviderRegisteredEvent.addListener(() => {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n frontstageDef.updateWidgetDefs();\n });\n\n this._initialized = true;\n }\n\n /** Handles a Viewport change & sets the active view accordingly */\n private static _handleSelectedViewportChanged: ListenerType<\n typeof IModelApp.viewManager.onSelectedViewportChanged\n > = (args) => {\n const frontstageDef = this.activeFrontstageDef;\n if (!args.current || !frontstageDef || UiFramework.frontstages.isLoading)\n return;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n frontstageDef.setActiveViewFromViewport(args.current);\n };\n\n /** @internal */\n public static get isInitialized(): boolean {\n return this._initialized;\n }\n public static set isInitialized(v: boolean) {\n this._initialized = v;\n }\n\n /** Returns true if Frontstage is loading its controls. If false the Frontstage content and controls have been created. */\n public static get isLoading(): boolean {\n return this._isLoading;\n }\n\n /** @internal */\n public static get nineZoneSize() {\n return this._nineZoneSize;\n }\n\n public static set nineZoneSize(size) {\n this._nineZoneSize = size;\n }\n\n /** @internal */\n public static get frontstageDefs(): ReadonlyMap<string, FrontstageDef> {\n return this._frontstageDefs;\n }\n\n /** Get Frontstage Deactivated event. */\n public static readonly onFrontstageDeactivatedEvent =\n new BeUiEvent<FrontstageDeactivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Frontstage Activated event. */\n public static readonly onFrontstageActivatedEvent =\n new BeUiEvent<FrontstageActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Frontstage Activated event. */\n public static readonly onFrontstageReadyEvent =\n new BeUiEvent<FrontstageReadyEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Modal Frontstage Changed event. */\n public static readonly onModalFrontstageChangedEvent =\n new BeUiEvent<ModalFrontstageChangedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Modal Frontstage Closed event. */\n public static readonly onModalFrontstageClosedEvent =\n new BeUiEvent<ModalFrontstageClosedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Modal Frontstage Requested Closed event.\n * @alpha\n */\n public static readonly onCloseModalFrontstageRequestedEvent =\n new BeUiEvent<ModalFrontstageRequestedCloseEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Tool Activated event. */\n public static readonly onToolActivatedEvent =\n new BeUiEvent<ToolActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get ToolSetting Reload event. */\n public static readonly onToolSettingsReloadEvent = new BeUiEvent<void>();\n\n /** Get Tool Panel Opened event.\n * @internal\n */\n public static readonly onToolPanelOpenedEvent = new BeUiEvent<void>();\n\n /** Get Tool Icon Changed event. */\n public static readonly onToolIconChangedEvent =\n new BeUiEvent<ToolIconChangedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Content Layout Activated event. */\n public static readonly onContentLayoutActivatedEvent =\n new BeUiEvent<ContentLayoutActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Content Control Activated event. */\n public static readonly onContentControlActivatedEvent =\n new BeUiEvent<ContentControlActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Navigation Aid Activated event. */\n public static readonly onNavigationAidActivatedEvent =\n new BeUiEvent<NavigationAidActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Widget State Changed event. */\n public static readonly onWidgetStateChangedEvent =\n new BeUiEvent<WidgetStateChangedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** @internal */\n public static readonly onWidgetDefsUpdatedEvent = new BeUiEvent<void>();\n\n /** @internal */\n public static readonly onFrontstageNineZoneStateChangedEvent = new BeUiEvent<{\n frontstageDef: FrontstageDef;\n state: NineZoneState | undefined;\n }>();\n\n /** @internal */\n public static readonly onFrontstageRestoreLayoutEvent = new BeUiEvent<{\n frontstageDef: FrontstageDef;\n }>();\n\n /** @internal */\n public static readonly onFrontstageWidgetsChangedEvent = new BeUiEvent<{\n frontstageDef: FrontstageDef;\n }>();\n\n /** Get panel state changed event.\n * @alpha\n */\n public static readonly onPanelStateChangedEvent =\n new BeUiEvent<PanelStateChangedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get panel pinned changed event.\n * @alpha\n */\n public static readonly onPanelPinnedChangedEvent =\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n new BeUiEvent<PanelPinnedChangedEventArgs>();\n\n /** @internal */\n public static readonly onPanelSizeChangedEvent =\n new BeUiEvent<PanelSizeChangedEventArgs>();\n\n /** Clears the Frontstage map.\n */\n public static clearFrontstageDefs(): void {\n this._frontstageDefs.clear();\n this._activeFrontstageDef = undefined;\n }\n\n /** Clears the Frontstage Providers and the defs that may have been created from them.\n */\n public static clearFrontstageProviders(): void {\n this._frontstageProviders.clear();\n UiFramework.frontstages.clearFrontstageDefs();\n }\n\n /** Clears the Frontstages, Frontstage Providers and the defs that may have been created from them. */\n public static clearFrontstages(): void {\n this._frontstages.clear();\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.frontstages.clearFrontstageProviders();\n }\n\n private static getFrontstageKey(frontstageId: string) {\n return frontstageId;\n }\n\n /** @internal */\n public static clearFrontstageDefsForIModelId(iModelId: string | undefined) {\n if (!iModelId) return;\n const keysToRemove: string[] = [];\n this._frontstageDefs.forEach((_: FrontstageDef, key: string) => {\n if (key.startsWith(`[${iModelId}]`)) keysToRemove.push(key);\n });\n keysToRemove.forEach((keyValue) => {\n this._frontstageDefs.delete(keyValue);\n });\n }\n\n public static addFrontstageProvider(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n frontstageProvider: FrontstageProvider\n ): void {\n const key = this.getFrontstageKey(frontstageProvider.id);\n key && this._frontstageDefs.delete(key);\n this._frontstageProviders.set(frontstageProvider.id, frontstageProvider);\n }\n\n public static addFrontstage(frontstage: Frontstage) {\n const key = this.getFrontstageKey(frontstage.id);\n key && this._frontstageDefs.delete(key);\n this._frontstages.set(frontstage.id, frontstage);\n }\n\n /** Find a loaded Frontstage with a given id. If the id is not provided, the active Frontstage is returned.\n * If the FrontstageDef has not been cached by FrontstageDef then it will not be found. See async function\n * `getFrontstageDef` to get a FrontstageDef.\n * @param id Id of the Frontstage to find\n * @returns FrontstageDef with a given id if found, or undefined if not found.\n */\n private static findFrontstageDef(id: string): FrontstageDef | undefined {\n const key = this.getFrontstageKey(id);\n const frontstageDef = this._frontstageDefs.get(key);\n if (frontstageDef instanceof FrontstageDef) return frontstageDef;\n return undefined;\n }\n\n private static findFrontstageProvider(\n id?: string\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ): FrontstageProvider | undefined {\n if (!id) {\n return undefined;\n }\n\n const provider = this._frontstageProviders.get(id);\n if (provider) {\n return provider;\n }\n\n const frontstage = this._frontstages.get(id);\n if (frontstage) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return new (class extends FrontstageProvider {\n public get id() {\n return frontstage?.id ?? \"\";\n }\n\n public frontstageConfig() {\n return frontstage;\n }\n })();\n }\n\n return undefined;\n }\n\n /** Find a loaded Frontstage with a given id. If the id is not provided, the active Frontstage is returned. If\n * no cached FrontstageDef is found but a FrontstageProvider is registered a FrontstageDef will be created, cached, and\n * returned.\n * @param id Id of the Frontstage to find\n * @returns FrontstageDef with a given id if found, or undefined if not found.\n */\n public static async getFrontstageDef(\n id?: string\n ): Promise<FrontstageDef | undefined> {\n if (!id) return UiFramework.frontstages.activeFrontstageDef;\n\n let frontstageDef = this.findFrontstageDef(id);\n if (frontstageDef) return frontstageDef;\n\n const frontstageProvider = this.findFrontstageProvider(id);\n if (frontstageProvider) {\n frontstageDef = await FrontstageDef.create(frontstageProvider);\n if (frontstageDef) {\n const key = this.getFrontstageKey(frontstageDef.id);\n this._frontstageDefs.set(key, frontstageDef);\n }\n return frontstageDef;\n }\n\n return undefined;\n }\n\n /** Gets the active FrontstageDef. If a Frontstage is not active, undefined is returned.\n * @return Active FrontstageDef, or undefined if one is not active.\n */\n public static get activeFrontstageDef(): FrontstageDef | undefined {\n return this._activeFrontstageDef;\n }\n\n /** Gets the Id of the active FrontstageDef. If a Frontstage is not active, blank is returned.\n * @return Id of the active FrontstageDef, or blank if one is not active.\n */\n public static get activeFrontstageId(): string {\n const activeFrontstage = this._activeFrontstageDef;\n return activeFrontstage ? activeFrontstage.id : \"\";\n }\n\n public static hasFrontstage(frontstageId: string) {\n if (this.findFrontstageDef(frontstageId)) return true;\n if (this.findFrontstageProvider(frontstageId)) return true;\n return false;\n }\n\n /** Sets the active FrontstageDef give the stageId.\n * @param frontstageId Id of the Frontstage to set active.\n * @returns A Promise that is fulfilled when the Frontstage is ready.\n */\n public static async setActiveFrontstage(frontstageId: string): Promise<void> {\n const frontstageDef = await UiFramework.frontstages.getFrontstageDef(\n frontstageId\n );\n if (!frontstageDef) {\n Logger.logError(\n UiFramework.loggerCategory(\"InternalFrontstageManager\"),\n `setActiveFrontstage: Could not load a FrontstageDef with id of '${frontstageId}'`\n );\n return;\n }\n\n return UiFramework.frontstages.setActiveFrontstageDef(frontstageDef);\n }\n\n /** Sets the active FrontstageDef.\n * @param frontstageDef FrontstageDef to set active.\n * @returns A Promise that is fulfilled when the [[FrontstageDef]] is ready.\n */\n public static async setActiveFrontstageDef(\n frontstageDef: FrontstageDef | undefined\n ): Promise<void> {\n if (this._activeFrontstageDef === frontstageDef) return;\n\n this._isLoading = true;\n\n const deactivatedFrontstageDef = this._activeFrontstageDef;\n if (deactivatedFrontstageDef) {\n await deactivatedFrontstageDef.onDeactivated();\n\n const timeTracker = deactivatedFrontstageDef.timeTracker;\n UiFramework.frontstages.onFrontstageDeactivatedEvent.emit({\n deactivatedFrontstageDef,\n activatedFrontstageDef: frontstageDef,\n totalTime: timeTracker.getTotalTimeSeconds(),\n engagementTime: timeTracker.getEngagementTimeSeconds(),\n idleTime: timeTracker.getIdleTimeSeconds(),\n });\n }\n\n this._activeFrontstageDef = frontstageDef;\n\n if (frontstageDef) {\n await frontstageDef.onActivated();\n\n UiFramework.frontstages.onFrontstageActivatedEvent.emit({\n activatedFrontstageDef: frontstageDef,\n deactivatedFrontstageDef,\n });\n\n await frontstageDef.waitUntilReady();\n this._isLoading = false;\n frontstageDef.onFrontstageReady();\n UiFramework.frontstages.onFrontstageReadyEvent.emit({ frontstageDef });\n UiFramework.visibility.handleFrontstageReady();\n\n await frontstageDef.setActiveContent();\n }\n\n this._isLoading = false;\n }\n\n /** Deactivates the active FrontstageDef.\n */\n public static async deactivateFrontstageDef(): Promise<void> {\n await UiFramework.frontstages.setActiveFrontstageDef(undefined);\n }\n\n /** Gets the Id of the active tool. If a tool is not active, blank is returned.\n * @return Id of the active tool, or blank if one is not active.\n */\n public static get activeToolId(): string {\n return this._activeToolId;\n }\n\n /** Sets the active tool id */\n public static setActiveToolId(toolId: string): void {\n this._activeToolId = toolId;\n const toolSettingsProvider = this.activeToolSettingsProvider;\n // ensure the toolSettingsProvider is initialized before emitting onToolActivatedEvent\n if (toolSettingsProvider) toolSettingsProvider.initialize();\n UiFramework.frontstages.onToolActivatedEvent.emit({ toolId });\n }\n\n /** Sets the active tool */\n public static setActiveTool(tool: Tool): void {\n UiFramework.frontstages.setActiveToolId(tool.toolId);\n UiFramework.frontstages.onToolIconChangedEvent.emit({\n iconSpec: tool.iconSpec,\n });\n }\n\n /** Gets the active tool's [[ToolInformation]] */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get activeToolInformation(): ToolInformation | undefined {\n return this._toolInformationMap.get(UiFramework.frontstages.activeToolId);\n }\n\n /** Gets the Tool Setting React node of the active tool.\n * @return Tool Setting React node of the active tool, or undefined if there is no active tool or Tool Settings for the active tool.\n * @internal\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get activeToolSettingsProvider(): ToolUiProvider | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const activeToolInformation = UiFramework.frontstages.activeToolInformation;\n return activeToolInformation?.toolUiProvider;\n }\n\n /** Sets the active layout, content group and active content.\n * @param contentLayoutDef Content layout to make active\n * @param contentGroup Content Group to make active\n */\n public static async setActiveLayout(\n contentLayoutDef: ContentLayoutDef,\n contentGroup: ContentGroup\n ): Promise<void> {\n const activeFrontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (activeFrontstageDef) {\n this._isLoading = false;\n\n activeFrontstageDef.setContentLayoutAndGroup(\n contentLayoutDef,\n contentGroup\n );\n UiFramework.frontstages.onContentLayoutActivatedEvent.emit({\n contentLayout: contentLayoutDef,\n contentGroup,\n });\n\n await activeFrontstageDef.waitUntilReady();\n this._isLoading = false;\n\n await activeFrontstageDef.setActiveContent();\n }\n }\n\n /** Sets the active layout, content group and active content.\n * @param contentGroup Content Group to make active\n */\n public static async setActiveContentGroup(\n contentGroup: ContentGroup\n ): Promise<void> {\n const contentLayoutDef =\n UiFramework.content.layouts.getForGroup(contentGroup);\n await this.setActiveLayout(contentLayoutDef, contentGroup);\n }\n\n /** Opens a modal Frontstage. Modal Frontstages can be stacked.\n * @param modalFrontstage Information about the modal Frontstage\n */\n public static openModalFrontstage(\n modalFrontstage: ModalFrontstageInfo\n ): void {\n this.pushModalFrontstage(modalFrontstage);\n }\n\n private static pushModalFrontstage(\n modalFrontstage: ModalFrontstageInfo\n ): void {\n const timeTracker = new TimeTracker();\n timeTracker.startTiming();\n const frontstageItem: ModalFrontstageItem = {\n modalFrontstage,\n timeTracker,\n };\n this._modalFrontstages.push(frontstageItem);\n this.emitModalFrontstageChangedEvent();\n }\n\n /** Closes the top-most modal Frontstage.\n */\n public static closeModalFrontstage(): void {\n if (this._modalFrontstages.length > 0) {\n const topMostStageItem =\n this._modalFrontstages[this._modalFrontstages.length - 1];\n if (topMostStageItem.modalFrontstage.notifyCloseRequest)\n UiFramework.frontstages.onCloseModalFrontstageRequestedEvent.emit({\n modalFrontstage: topMostStageItem.modalFrontstage,\n stageCloseFunc: () => this.popModalFrontstage(),\n });\n else this.popModalFrontstage();\n }\n }\n\n private static popModalFrontstage(): void {\n const frontstageItem = this._modalFrontstages.pop();\n if (frontstageItem) {\n const modalFrontstage = frontstageItem.modalFrontstage;\n const timeTracker = frontstageItem.timeTracker;\n timeTracker.stopTiming();\n UiFramework.frontstages.onModalFrontstageClosedEvent.emit({\n modalFrontstage,\n totalTime: timeTracker.getTotalTimeSeconds(),\n engagementTime: timeTracker.getEngagementTimeSeconds(),\n idleTime: timeTracker.getIdleTimeSeconds(),\n });\n }\n\n this.emitModalFrontstageChangedEvent();\n\n UiFramework.visibility.handleFrontstageReady();\n }\n\n private static emitModalFrontstageChangedEvent(): void {\n UiFramework.frontstages.onModalFrontstageChangedEvent.emit({\n modalFrontstageCount: UiFramework.frontstages.modalFrontstageCount,\n });\n }\n\n /** Updates the top-most modal Frontstage.\n */\n public static updateModalFrontstage(): void {\n this.emitModalFrontstageChangedEvent();\n }\n\n /** Gets the top-most modal Frontstage.\n * @returns Top-most modal Frontstage, or undefined if there is none.\n */\n public static get activeModalFrontstage(): ModalFrontstageInfo | undefined {\n if (this._modalFrontstages.length > 0) {\n const frontstageItem =\n this._modalFrontstages[this._modalFrontstages.length - 1];\n const modalFrontstage = frontstageItem.modalFrontstage;\n return modalFrontstage;\n } else {\n return undefined;\n }\n }\n\n /** Gets the number of modal Frontstages.\n * @returns Modal Frontstage count\n */\n public static get modalFrontstageCount(): number {\n return this._modalFrontstages.length;\n }\n\n /** Sets the active Navigation Aid via its Id.\n * @param navigationAidId Id of the Navigation Aid to set as active\n * @param iModelConnection IModelConnection to query for view data\n */\n public static setActiveNavigationAid(\n navigationAidId: string,\n iModelConnection: IModelConnection\n ) {\n UiFramework.frontstages.onNavigationAidActivatedEvent.emit({\n navigationAidId,\n iModelConnection,\n });\n }\n\n /** Sets the state of the widget with the given id\n * @param widgetId Id of the Widget for which to set the state\n * @param state New state of the widget\n * @returns true if the widget state was set successfully, or false if not.\n */\n public static setWidgetState(widgetId: string, state: WidgetState): boolean {\n const widgetDef = UiFramework.frontstages.findWidget(widgetId);\n if (widgetDef) {\n widgetDef.setWidgetState(state);\n return true;\n } else {\n Logger.logError(\n UiFramework.loggerCategory(\"InternalFrontstageManager\"),\n `setWidgetState: Could not find Widget with id of '${widgetId}'`\n );\n }\n\n return false;\n }\n\n /** Finds a widget with the given id in the active frontstage\n * @param widgetId Id of the Widget to find\n * @returns The WidgetDef with the given id, or undefined if not found.\n */\n public static findWidget(widgetId: string): WidgetDef | undefined {\n const activeFrontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!activeFrontstageDef) return undefined;\n\n return activeFrontstageDef.findWidgetDef(widgetId);\n }\n\n /** Opens a nested Frontstage. Nested Frontstages can be stacked.\n * @param nestedFrontstage Information about the nested Frontstage\n */\n public static async openNestedFrontstage(\n nestedFrontstage: FrontstageDef\n ): Promise<void> {\n if (UiFramework.frontstages.nestedFrontstageCount === 0)\n this._activePrimaryFrontstageDef = this._activeFrontstageDef;\n\n this.pushNestedFrontstage(nestedFrontstage);\n\n await UiFramework.frontstages.setActiveFrontstageDef(nestedFrontstage);\n }\n\n private static pushNestedFrontstage(nestedFrontstage: FrontstageDef): void {\n this._nestedFrontstages.push(nestedFrontstage);\n }\n\n /** Closes the top-most nested Frontstage.\n */\n public static async closeNestedFrontstage(): Promise<void> {\n this.popNestedFrontstage();\n\n if (UiFramework.frontstages.nestedFrontstageCount > 0) {\n await UiFramework.frontstages.setActiveFrontstageDef(\n UiFramework.frontstages.activeNestedFrontstage\n );\n } else {\n await UiFramework.frontstages.setActiveFrontstageDef(\n this._activePrimaryFrontstageDef\n );\n this._activePrimaryFrontstageDef = undefined;\n }\n }\n\n private static popNestedFrontstage(): void {\n this._nestedFrontstages.pop();\n }\n\n /** Gets the top-most nested Frontstage.\n * @returns Top-most nested Frontstage, or undefined if there is none.\n */\n public static get activeNestedFrontstage(): FrontstageDef | undefined {\n if (this._nestedFrontstages.length > 0)\n return this._nestedFrontstages[this._nestedFrontstages.length - 1];\n\n return undefined;\n }\n\n /** Gets the number of nested Frontstages.\n * @returns Nested Frontstage count\n */\n public static get nestedFrontstageCount(): number {\n return this._nestedFrontstages.length;\n }\n}\n"]}
1
+ {"version":3,"file":"InternalFrontstageManager.js","sourceRoot":"","sources":["../../../src/appui-react/frontstage/InternalFrontstageManager.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAa/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKhD,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAc/D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAKxE;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAC5B,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC;IAC5B,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,MAAM,CAAC,aAAa,GAAG,EAAE,CAAC;IAC1B,MAAM,CAAC,oBAAoB,CAA4B;IACvD,MAAM,CAAC,eAAe,GAAG,IAAI,GAAG,EAAyB,CAAC;IAC1D,MAAM,CAAC,iBAAiB,GAC9B,IAAI,KAAK,EAAuB,CAAC;IACnC,4DA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,CAAC;YACF,IAAI,CAAC,2BAA2B,GAAG,SAAS,CAAC;QAC/C,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,mBAAmB;QAChC,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,MAAM,KAAK,sBAAsB;QACtC,IAAI,IAAI,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC;YACpC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAErE,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;OAEG;IACI,MAAM,KAAK,qBAAqB;QACrC,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC;IACxC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Frontstage\n */\n\nimport { BeUiEvent, Logger } from \"@itwin/core-bentley\";\nimport type { ListenerType } from \"@itwin/core-react/internal\";\nimport type { IModelConnection, Tool } from \"@itwin/core-frontend\";\nimport { IModelApp, InteractiveTool } from \"@itwin/core-frontend\";\nimport { ToolUtilities } from \"@itwin/imodel-components-react\";\nimport type { ContentControlActivatedEventArgs } from \"../content/ContentControl.js\";\nimport type { ContentGroup } from \"../content/ContentGroup.js\";\nimport type {\n ContentLayoutActivatedEventArgs,\n ContentLayoutDef,\n} from \"../content/ContentLayout.js\";\nimport type { NavigationAidActivatedEventArgs } from \"../navigationaids/NavigationAidControl.js\";\nimport type {\n PanelPinnedChangedEventArgs,\n PanelSizeChangedEventArgs,\n PanelStateChangedEventArgs,\n} from \"../stagepanels/StagePanelDef.js\";\nimport { UiFramework } from \"../UiFramework.js\";\nimport type {\n WidgetDef,\n WidgetStateChangedEventArgs,\n} from \"../widgets/WidgetDef.js\";\nimport { ToolInformation } from \"../toolsettings/ToolInformation.js\";\nimport type { ToolUiProvider } from \"../toolsettings/ToolUiProvider.js\";\nimport { FrontstageDef } from \"./FrontstageDef.js\";\nimport { FrontstageProvider } from \"./FrontstageProvider.js\";\nimport { TimeTracker } from \"../configurableui/TimeTracker.js\";\nimport type { WidgetState } from \"../widgets/WidgetState.js\";\nimport type {\n FrontstageActivatedEventArgs,\n FrontstageDeactivatedEventArgs,\n FrontstageReadyEventArgs,\n ModalFrontstageChangedEventArgs,\n ModalFrontstageClosedEventArgs,\n ModalFrontstageInfo,\n ModalFrontstageItem,\n ModalFrontstageRequestedCloseEventArgs,\n ToolActivatedEventArgs,\n ToolIconChangedEventArgs,\n} from \"../framework/FrameworkFrontstages.js\";\nimport { UiItemsManager } from \"../ui-items-provider/UiItemsManager.js\";\nimport type { Frontstage } from \"./Frontstage.js\";\nimport type { NineZoneState } from \"../layout/state/NineZoneState.js\";\nimport type { SizeProps } from \"../utils/SizeProps.js\";\n\n/** Frontstage Manager class.\n * @internal\n */\nexport class InternalFrontstageManager {\n private static _initialized = false;\n private static _isLoading = false;\n private static _activeToolId = \"\";\n private static _activeFrontstageDef: FrontstageDef | undefined;\n private static _frontstageDefs = new Map<string, FrontstageDef>();\n private static _modalFrontstages: ModalFrontstageItem[] =\n new Array<ModalFrontstageItem>();\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private static _frontstageProviders = new Map<string, FrontstageProvider>();\n private static _frontstages = new Map<string, Frontstage>();\n private static _nineZoneSize: SizeProps | undefined = undefined;\n\n private static _nestedFrontstages: FrontstageDef[] =\n new Array<FrontstageDef>();\n private static _activePrimaryFrontstageDef: FrontstageDef | undefined;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private static _toolInformationMap: Map<string, ToolInformation> = new Map<\n string,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ToolInformation\n >();\n\n /** This should only be called within InternalFrontstageManager and its tests.\n * @internal\n */\n public static ensureToolInformationIsSet(toolId: string): void {\n if (this._toolInformationMap.has(toolId)) return;\n this._toolInformationMap.set(\n toolId,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n new ToolInformation(toolId)\n );\n }\n\n private static _handleSyncToolSettingsPropertiesEvent: ListenerType<\n typeof UiFramework.toolSettings.onSyncToolSettingsProperties\n > = (args) => {\n const provider = this.activeToolSettingsProvider;\n if (!provider) return;\n provider.syncToolSettingsProperties(args);\n };\n\n // pass on ReloadToolSettingsEvent from ToolAdmin so they are treated by UiProviders\n private static _handleReloadToolSettingsEvent: ListenerType<\n typeof UiFramework.toolSettings.onReloadToolSettingsProperties\n > = () => {\n const provider = this.activeToolSettingsProvider;\n if (!provider) return;\n provider.reloadPropertiesFromTool();\n };\n\n /** Initializes the InternalFrontstageManager\n * @internal\n */\n public static initialize() {\n if (this._initialized) return;\n\n IModelApp.toolAdmin.activeToolChanged.addListener((tool) => {\n // make sure tool settings properties are cached before creating ToolInformation\n UiFramework.toolSettings.clearToolSettingsData();\n if (tool instanceof InteractiveTool)\n UiFramework.toolSettings.initializeDataForTool(tool);\n\n // if the tool data is not already cached then see if there is data to cache\n this.ensureToolInformationIsSet(tool.toolId);\n UiFramework.frontstages.setActiveTool(tool);\n });\n UiFramework.toolSettings.onSyncToolSettingsProperties.addListener(\n this._handleSyncToolSettingsPropertiesEvent\n );\n UiFramework.toolSettings.onReloadToolSettingsProperties.addListener(\n this._handleReloadToolSettingsEvent\n );\n IModelApp.viewManager.onSelectedViewportChanged.addListener(\n this._handleSelectedViewportChanged\n );\n UiItemsManager.onUiProviderRegisteredEvent.addListener(() => {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n frontstageDef.updateWidgetDefs();\n });\n\n this._initialized = true;\n }\n\n /** Handles a Viewport change & sets the active view accordingly */\n private static _handleSelectedViewportChanged: ListenerType<\n typeof IModelApp.viewManager.onSelectedViewportChanged\n > = (args) => {\n const frontstageDef = this.activeFrontstageDef;\n if (!args.current || !frontstageDef || UiFramework.frontstages.isLoading)\n return;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n frontstageDef.setActiveViewFromViewport(args.current);\n };\n\n /** @internal */\n public static get isInitialized(): boolean {\n return this._initialized;\n }\n public static set isInitialized(v: boolean) {\n this._initialized = v;\n }\n\n /** Returns true if Frontstage is loading its controls. If false the Frontstage content and controls have been created. */\n public static get isLoading(): boolean {\n return this._isLoading;\n }\n\n /** @internal */\n public static get nineZoneSize() {\n return this._nineZoneSize;\n }\n\n public static set nineZoneSize(size) {\n this._nineZoneSize = size;\n }\n\n /** @internal */\n public static get frontstageDefs(): ReadonlyMap<string, FrontstageDef> {\n return this._frontstageDefs;\n }\n\n /** Get Frontstage Deactivated event. */\n public static readonly onFrontstageDeactivatedEvent =\n new BeUiEvent<FrontstageDeactivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Frontstage Activated event. */\n public static readonly onFrontstageActivatedEvent =\n new BeUiEvent<FrontstageActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Frontstage Activated event. */\n public static readonly onFrontstageReadyEvent =\n new BeUiEvent<FrontstageReadyEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Modal Frontstage Changed event. */\n public static readonly onModalFrontstageChangedEvent =\n new BeUiEvent<ModalFrontstageChangedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Modal Frontstage Closed event. */\n public static readonly onModalFrontstageClosedEvent =\n new BeUiEvent<ModalFrontstageClosedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Modal Frontstage Requested Closed event.\n * @alpha\n */\n public static readonly onCloseModalFrontstageRequestedEvent =\n new BeUiEvent<ModalFrontstageRequestedCloseEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Tool Activated event. */\n public static readonly onToolActivatedEvent =\n new BeUiEvent<ToolActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get ToolSetting Reload event. */\n public static readonly onToolSettingsReloadEvent = new BeUiEvent<void>();\n\n /** Get Tool Panel Opened event.\n * @internal\n */\n public static readonly onToolPanelOpenedEvent = new BeUiEvent<void>();\n\n /** Get Tool Icon Changed event. */\n public static readonly onToolIconChangedEvent =\n new BeUiEvent<ToolIconChangedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Content Layout Activated event. */\n public static readonly onContentLayoutActivatedEvent =\n new BeUiEvent<ContentLayoutActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Content Control Activated event. */\n public static readonly onContentControlActivatedEvent =\n new BeUiEvent<ContentControlActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Navigation Aid Activated event. */\n public static readonly onNavigationAidActivatedEvent =\n new BeUiEvent<NavigationAidActivatedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get Widget State Changed event. */\n public static readonly onWidgetStateChangedEvent =\n new BeUiEvent<WidgetStateChangedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** @internal */\n public static readonly onWidgetDefsUpdatedEvent = new BeUiEvent<void>();\n\n /** @internal */\n public static readonly onFrontstageNineZoneStateChangedEvent = new BeUiEvent<{\n frontstageDef: FrontstageDef;\n state: NineZoneState | undefined;\n }>();\n\n /** @internal */\n public static readonly onFrontstageRestoreLayoutEvent = new BeUiEvent<{\n frontstageDef: FrontstageDef;\n }>();\n\n /** @internal */\n public static readonly onFrontstageWidgetsChangedEvent = new BeUiEvent<{\n frontstageDef: FrontstageDef;\n }>();\n\n /** Get panel state changed event.\n * @alpha\n */\n public static readonly onPanelStateChangedEvent =\n new BeUiEvent<PanelStateChangedEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Get panel pinned changed event.\n * @alpha\n */\n public static readonly onPanelPinnedChangedEvent =\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n new BeUiEvent<PanelPinnedChangedEventArgs>();\n\n /** @internal */\n public static readonly onPanelSizeChangedEvent =\n new BeUiEvent<PanelSizeChangedEventArgs>();\n\n /** Clears the Frontstage map.\n */\n public static clearFrontstageDefs(): void {\n this._frontstageDefs.clear();\n this._activeFrontstageDef = undefined;\n }\n\n /** Clears the Frontstage Providers and the defs that may have been created from them.\n */\n public static clearFrontstageProviders(): void {\n this._frontstageProviders.clear();\n UiFramework.frontstages.clearFrontstageDefs();\n }\n\n /** Clears the Frontstages, Frontstage Providers and the defs that may have been created from them. */\n public static clearFrontstages(): void {\n this._frontstages.clear();\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n UiFramework.frontstages.clearFrontstageProviders();\n }\n\n private static getFrontstageKey(frontstageId: string) {\n return frontstageId;\n }\n\n /** @internal */\n public static clearFrontstageDefsForIModelId(iModelId: string | undefined) {\n if (!iModelId) return;\n const keysToRemove: string[] = [];\n this._frontstageDefs.forEach((_: FrontstageDef, key: string) => {\n if (key.startsWith(`[${iModelId}]`)) keysToRemove.push(key);\n });\n keysToRemove.forEach((keyValue) => {\n this._frontstageDefs.delete(keyValue);\n });\n }\n\n public static addFrontstageProvider(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n frontstageProvider: FrontstageProvider\n ): void {\n const key = this.getFrontstageKey(frontstageProvider.id);\n key && this._frontstageDefs.delete(key);\n this._frontstageProviders.set(frontstageProvider.id, frontstageProvider);\n }\n\n public static addFrontstage(frontstage: Frontstage) {\n const key = this.getFrontstageKey(frontstage.id);\n key && this._frontstageDefs.delete(key);\n this._frontstages.set(frontstage.id, frontstage);\n }\n\n /** Find a loaded Frontstage with a given id. If the id is not provided, the active Frontstage is returned.\n * If the FrontstageDef has not been cached by FrontstageDef then it will not be found. See async function\n * `getFrontstageDef` to get a FrontstageDef.\n * @param id Id of the Frontstage to find\n * @returns FrontstageDef with a given id if found, or undefined if not found.\n */\n private static findFrontstageDef(id: string): FrontstageDef | undefined {\n const key = this.getFrontstageKey(id);\n const frontstageDef = this._frontstageDefs.get(key);\n if (frontstageDef instanceof FrontstageDef) return frontstageDef;\n return undefined;\n }\n\n private static findFrontstageProvider(\n id?: string\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ): FrontstageProvider | undefined {\n if (!id) {\n return undefined;\n }\n\n const provider = this._frontstageProviders.get(id);\n if (provider) {\n return provider;\n }\n\n const frontstage = this._frontstages.get(id);\n if (frontstage) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return new (class extends FrontstageProvider {\n public get id() {\n return frontstage?.id ?? \"\";\n }\n\n public frontstageConfig() {\n return frontstage;\n }\n })();\n }\n\n return undefined;\n }\n\n /** Find a loaded Frontstage with a given id. If the id is not provided, the active Frontstage is returned. If\n * no cached FrontstageDef is found but a FrontstageProvider is registered a FrontstageDef will be created, cached, and\n * returned.\n * @param id Id of the Frontstage to find\n * @returns FrontstageDef with a given id if found, or undefined if not found.\n */\n public static async getFrontstageDef(\n id?: string\n ): Promise<FrontstageDef | undefined> {\n if (!id) return UiFramework.frontstages.activeFrontstageDef;\n\n let frontstageDef = this.findFrontstageDef(id);\n if (frontstageDef) return frontstageDef;\n\n const frontstageProvider = this.findFrontstageProvider(id);\n if (frontstageProvider) {\n frontstageDef = await FrontstageDef.create(frontstageProvider);\n if (frontstageDef) {\n const key = this.getFrontstageKey(frontstageDef.id);\n this._frontstageDefs.set(key, frontstageDef);\n }\n return frontstageDef;\n }\n\n return undefined;\n }\n\n /** Gets the active FrontstageDef. If a Frontstage is not active, undefined is returned.\n * @return Active FrontstageDef, or undefined if one is not active.\n */\n public static get activeFrontstageDef(): FrontstageDef | undefined {\n return this._activeFrontstageDef;\n }\n\n /** Gets the Id of the active FrontstageDef. If a Frontstage is not active, blank is returned.\n * @return Id of the active FrontstageDef, or blank if one is not active.\n */\n public static get activeFrontstageId(): string {\n const activeFrontstage = this._activeFrontstageDef;\n return activeFrontstage ? activeFrontstage.id : \"\";\n }\n\n public static hasFrontstage(frontstageId: string) {\n if (this.findFrontstageDef(frontstageId)) return true;\n if (this.findFrontstageProvider(frontstageId)) return true;\n return false;\n }\n\n /** Sets the active FrontstageDef give the stageId.\n * @param frontstageId Id of the Frontstage to set active.\n * @returns A Promise that is fulfilled when the Frontstage is ready.\n */\n public static async setActiveFrontstage(frontstageId: string): Promise<void> {\n const frontstageDef = await UiFramework.frontstages.getFrontstageDef(\n frontstageId\n );\n if (!frontstageDef) {\n Logger.logError(\n UiFramework.loggerCategory(\"InternalFrontstageManager\"),\n `setActiveFrontstage: Could not load a FrontstageDef with id of '${frontstageId}'`\n );\n return;\n }\n\n return UiFramework.frontstages.setActiveFrontstageDef(frontstageDef);\n }\n\n /** Sets the active FrontstageDef.\n * @param frontstageDef FrontstageDef to set active.\n * @returns A Promise that is fulfilled when the [[FrontstageDef]] is ready.\n */\n public static async setActiveFrontstageDef(\n frontstageDef: FrontstageDef | undefined\n ): Promise<void> {\n if (this._activeFrontstageDef === frontstageDef) return;\n\n this._isLoading = true;\n\n const deactivatedFrontstageDef = this._activeFrontstageDef;\n if (deactivatedFrontstageDef) {\n await deactivatedFrontstageDef.onDeactivated();\n\n const timeTracker = deactivatedFrontstageDef.timeTracker;\n UiFramework.frontstages.onFrontstageDeactivatedEvent.emit({\n deactivatedFrontstageDef,\n activatedFrontstageDef: frontstageDef,\n totalTime: timeTracker.getTotalTimeSeconds(),\n engagementTime: timeTracker.getEngagementTimeSeconds(),\n idleTime: timeTracker.getIdleTimeSeconds(),\n });\n }\n\n this._activeFrontstageDef = frontstageDef;\n\n if (frontstageDef) {\n await frontstageDef.onActivated();\n\n UiFramework.frontstages.onFrontstageActivatedEvent.emit({\n activatedFrontstageDef: frontstageDef,\n deactivatedFrontstageDef,\n });\n\n await frontstageDef.waitUntilReady();\n this._isLoading = false;\n frontstageDef.onFrontstageReady();\n UiFramework.frontstages.onFrontstageReadyEvent.emit({ frontstageDef });\n UiFramework.visibility.handleFrontstageReady();\n\n await frontstageDef.setActiveContent();\n }\n\n this._isLoading = false;\n }\n\n /** Deactivates the active FrontstageDef.\n */\n public static async deactivateFrontstageDef(): Promise<void> {\n await UiFramework.frontstages.setActiveFrontstageDef(undefined);\n }\n\n /** Gets the Id of the active tool. If a tool is not active, blank is returned.\n * @return Id of the active tool, or blank if one is not active.\n */\n public static get activeToolId(): string {\n return this._activeToolId;\n }\n\n /** Sets the active tool id */\n public static setActiveToolId(toolId: string): void {\n this._activeToolId = toolId;\n const toolSettingsProvider = this.activeToolSettingsProvider;\n // ensure the toolSettingsProvider is initialized before emitting onToolActivatedEvent\n if (toolSettingsProvider) toolSettingsProvider.initialize();\n UiFramework.frontstages.onToolActivatedEvent.emit({ toolId });\n }\n\n /** Sets the active tool */\n public static setActiveTool(tool: Tool): void {\n const toolType = IModelApp.tools.find(tool.toolId);\n\n const iconElement =\n toolType && ToolUtilities.isWithIcon(toolType)\n ? toolType.iconElement\n : undefined;\n\n UiFramework.frontstages.setActiveToolId(tool.toolId);\n UiFramework.frontstages.onToolIconChangedEvent.emit({\n iconSpec: tool.iconSpec,\n iconElement,\n });\n }\n\n /** Gets the active tool's [[ToolInformation]] */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get activeToolInformation(): ToolInformation | undefined {\n return this._toolInformationMap.get(UiFramework.frontstages.activeToolId);\n }\n\n /** Gets the Tool Setting React node of the active tool.\n * @return Tool Setting React node of the active tool, or undefined if there is no active tool or Tool Settings for the active tool.\n * @internal\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get activeToolSettingsProvider(): ToolUiProvider | undefined {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const activeToolInformation = UiFramework.frontstages.activeToolInformation;\n return activeToolInformation?.toolUiProvider;\n }\n\n /** Sets the active layout, content group and active content.\n * @param contentLayoutDef Content layout to make active\n * @param contentGroup Content Group to make active\n */\n public static async setActiveLayout(\n contentLayoutDef: ContentLayoutDef,\n contentGroup: ContentGroup\n ): Promise<void> {\n const activeFrontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (activeFrontstageDef) {\n this._isLoading = false;\n\n activeFrontstageDef.setContentLayoutAndGroup(\n contentLayoutDef,\n contentGroup\n );\n UiFramework.frontstages.onContentLayoutActivatedEvent.emit({\n contentLayout: contentLayoutDef,\n contentGroup,\n });\n\n await activeFrontstageDef.waitUntilReady();\n this._isLoading = false;\n\n await activeFrontstageDef.setActiveContent();\n }\n }\n\n /** Sets the active layout, content group and active content.\n * @param contentGroup Content Group to make active\n */\n public static async setActiveContentGroup(\n contentGroup: ContentGroup\n ): Promise<void> {\n const contentLayoutDef =\n UiFramework.content.layouts.getForGroup(contentGroup);\n await this.setActiveLayout(contentLayoutDef, contentGroup);\n }\n\n /** Opens a modal Frontstage. Modal Frontstages can be stacked.\n * @param modalFrontstage Information about the modal Frontstage\n */\n public static openModalFrontstage(\n modalFrontstage: ModalFrontstageInfo\n ): void {\n this.pushModalFrontstage(modalFrontstage);\n }\n\n private static pushModalFrontstage(\n modalFrontstage: ModalFrontstageInfo\n ): void {\n const timeTracker = new TimeTracker();\n timeTracker.startTiming();\n const frontstageItem: ModalFrontstageItem = {\n modalFrontstage,\n timeTracker,\n };\n this._modalFrontstages.push(frontstageItem);\n this.emitModalFrontstageChangedEvent();\n }\n\n /** Closes the top-most modal Frontstage.\n */\n public static closeModalFrontstage(): void {\n if (this._modalFrontstages.length > 0) {\n const topMostStageItem =\n this._modalFrontstages[this._modalFrontstages.length - 1];\n if (topMostStageItem.modalFrontstage.notifyCloseRequest)\n UiFramework.frontstages.onCloseModalFrontstageRequestedEvent.emit({\n modalFrontstage: topMostStageItem.modalFrontstage,\n stageCloseFunc: () => this.popModalFrontstage(),\n });\n else this.popModalFrontstage();\n }\n }\n\n private static popModalFrontstage(): void {\n const frontstageItem = this._modalFrontstages.pop();\n if (frontstageItem) {\n const modalFrontstage = frontstageItem.modalFrontstage;\n const timeTracker = frontstageItem.timeTracker;\n timeTracker.stopTiming();\n UiFramework.frontstages.onModalFrontstageClosedEvent.emit({\n modalFrontstage,\n totalTime: timeTracker.getTotalTimeSeconds(),\n engagementTime: timeTracker.getEngagementTimeSeconds(),\n idleTime: timeTracker.getIdleTimeSeconds(),\n });\n }\n\n this.emitModalFrontstageChangedEvent();\n\n UiFramework.visibility.handleFrontstageReady();\n }\n\n private static emitModalFrontstageChangedEvent(): void {\n UiFramework.frontstages.onModalFrontstageChangedEvent.emit({\n modalFrontstageCount: UiFramework.frontstages.modalFrontstageCount,\n });\n }\n\n /** Updates the top-most modal Frontstage.\n */\n public static updateModalFrontstage(): void {\n this.emitModalFrontstageChangedEvent();\n }\n\n /** Gets the top-most modal Frontstage.\n * @returns Top-most modal Frontstage, or undefined if there is none.\n */\n public static get activeModalFrontstage(): ModalFrontstageInfo | undefined {\n if (this._modalFrontstages.length > 0) {\n const frontstageItem =\n this._modalFrontstages[this._modalFrontstages.length - 1];\n const modalFrontstage = frontstageItem.modalFrontstage;\n return modalFrontstage;\n } else {\n return undefined;\n }\n }\n\n /** Gets the number of modal Frontstages.\n * @returns Modal Frontstage count\n */\n public static get modalFrontstageCount(): number {\n return this._modalFrontstages.length;\n }\n\n /** Sets the active Navigation Aid via its Id.\n * @param navigationAidId Id of the Navigation Aid to set as active\n * @param iModelConnection IModelConnection to query for view data\n */\n public static setActiveNavigationAid(\n navigationAidId: string,\n iModelConnection: IModelConnection\n ) {\n UiFramework.frontstages.onNavigationAidActivatedEvent.emit({\n navigationAidId,\n iModelConnection,\n });\n }\n\n /** Sets the state of the widget with the given id\n * @param widgetId Id of the Widget for which to set the state\n * @param state New state of the widget\n * @returns true if the widget state was set successfully, or false if not.\n */\n public static setWidgetState(widgetId: string, state: WidgetState): boolean {\n const widgetDef = UiFramework.frontstages.findWidget(widgetId);\n if (widgetDef) {\n widgetDef.setWidgetState(state);\n return true;\n } else {\n Logger.logError(\n UiFramework.loggerCategory(\"InternalFrontstageManager\"),\n `setWidgetState: Could not find Widget with id of '${widgetId}'`\n );\n }\n\n return false;\n }\n\n /** Finds a widget with the given id in the active frontstage\n * @param widgetId Id of the Widget to find\n * @returns The WidgetDef with the given id, or undefined if not found.\n */\n public static findWidget(widgetId: string): WidgetDef | undefined {\n const activeFrontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!activeFrontstageDef) return undefined;\n\n return activeFrontstageDef.findWidgetDef(widgetId);\n }\n\n /** Opens a nested Frontstage. Nested Frontstages can be stacked.\n * @param nestedFrontstage Information about the nested Frontstage\n */\n public static async openNestedFrontstage(\n nestedFrontstage: FrontstageDef\n ): Promise<void> {\n if (UiFramework.frontstages.nestedFrontstageCount === 0)\n this._activePrimaryFrontstageDef = this._activeFrontstageDef;\n\n this.pushNestedFrontstage(nestedFrontstage);\n\n await UiFramework.frontstages.setActiveFrontstageDef(nestedFrontstage);\n }\n\n private static pushNestedFrontstage(nestedFrontstage: FrontstageDef): void {\n this._nestedFrontstages.push(nestedFrontstage);\n }\n\n /** Closes the top-most nested Frontstage.\n */\n public static async closeNestedFrontstage(): Promise<void> {\n this.popNestedFrontstage();\n\n if (UiFramework.frontstages.nestedFrontstageCount > 0) {\n await UiFramework.frontstages.setActiveFrontstageDef(\n UiFramework.frontstages.activeNestedFrontstage\n );\n } else {\n await UiFramework.frontstages.setActiveFrontstageDef(\n this._activePrimaryFrontstageDef\n );\n this._activePrimaryFrontstageDef = undefined;\n }\n }\n\n private static popNestedFrontstage(): void {\n this._nestedFrontstages.pop();\n }\n\n /** Gets the top-most nested Frontstage.\n * @returns Top-most nested Frontstage, or undefined if there is none.\n */\n public static get activeNestedFrontstage(): FrontstageDef | undefined {\n if (this._nestedFrontstages.length > 0)\n return this._nestedFrontstages[this._nestedFrontstages.length - 1];\n\n return undefined;\n }\n\n /** Gets the number of nested Frontstages.\n * @returns Nested Frontstage count\n */\n public static get nestedFrontstageCount(): number {\n return this._nestedFrontstages.length;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardShortcutUtilities.d.ts","sourceRoot":"","sources":["../../../src/appui-react/keyboardshortcut/KeyboardShortcutUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;GAEG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wDAAwD;IACxD,SAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,SAAS,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GACzC,qBAAqB,CAWvB;CACF"}
1
+ {"version":3,"file":"KeyboardShortcutUtilities.d.ts","sourceRoot":"","sources":["../../../src/appui-react/keyboardshortcut/KeyboardShortcutUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;GAEG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wDAAwD;IACxD,SAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,SAAS,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GACzC,qBAAqB,CAevB;CACF"}
@@ -5,6 +5,7 @@
5
5
  /** @packageDocumentation
6
6
  * @module KeyboardShortcut
7
7
  */
8
+ import { ToolUtilities } from "@itwin/imodel-components-react";
8
9
  import { IModelApp } from "@itwin/core-frontend";
9
10
  /** Helper class to create keyboard shortcuts.
10
11
  * @beta
@@ -13,14 +14,18 @@ export var KeyboardShortcutUtilities;
13
14
  (function (KeyboardShortcutUtilities) {
14
15
  /** Creates an shortcut from the specified tool type. */
15
16
  function createForTool(key, toolType, overrides) {
17
+ const icon = ToolUtilities.isWithIcon(toolType)
18
+ ? toolType.iconElement
19
+ : undefined;
16
20
  return {
17
21
  key,
18
- icon: toolType.iconSpec,
22
+ iconSpec: toolType.iconSpec,
19
23
  label: () => toolType.flyover,
20
24
  description: () => toolType.description,
21
25
  execute: () => {
22
26
  void IModelApp.tools.run(toolType.toolId);
23
27
  },
28
+ ...(icon ? { icon } : {}),
24
29
  ...overrides,
25
30
  };
26
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardShortcutUtilities.js","sourceRoot":"","sources":["../../../src/appui-react/keyboardshortcut/KeyboardShortcutUtilities.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAEhE;;GAEG;AACH,MAAM,KAAW,yBAAyB,CAkBzC;AAlBD,WAAiB,yBAAyB;IACxC,wDAAwD;IACxD,SAAgB,aAAa,CAC3B,GAAW,EACX,QAAkB,EAClB,SAA0C;QAE1C,OAAO;YACL,GAAG;YACH,IAAI,EAAE,QAAQ,CAAC,QAAQ;YACvB,KAAK,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO;YAC7B,WAAW,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW;YACvC,OAAO,EAAE,GAAG,EAAE;gBACZ,KAAK,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC5C,CAAC;YACD,GAAG,SAAS;SACb,CAAC;IACJ,CAAC;IAfe,uCAAa,gBAe5B,CAAA;AACH,CAAC,EAlBgB,yBAAyB,KAAzB,yBAAyB,QAkBzC","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 KeyboardShortcut\n */\n\nimport type { KeyboardShortcutProps } from \"./KeyboardShortcutProps.js\";\nimport { IModelApp, type ToolType } from \"@itwin/core-frontend\";\n\n/** Helper class to create keyboard shortcuts.\n * @beta\n */\nexport namespace KeyboardShortcutUtilities {\n /** Creates an shortcut from the specified tool type. */\n export function createForTool(\n key: string,\n toolType: ToolType,\n overrides?: Partial<KeyboardShortcutProps>\n ): KeyboardShortcutProps {\n return {\n key,\n icon: toolType.iconSpec,\n label: () => toolType.flyover,\n description: () => toolType.description,\n execute: () => {\n void IModelApp.tools.run(toolType.toolId);\n },\n ...overrides,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"KeyboardShortcutUtilities.js","sourceRoot":"","sources":["../../../src/appui-react/keyboardshortcut/KeyboardShortcutUtilities.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAEhE;;GAEG;AACH,MAAM,KAAW,yBAAyB,CAsBzC;AAtBD,WAAiB,yBAAyB;IACxC,wDAAwD;IACxD,SAAgB,aAAa,CAC3B,GAAW,EACX,QAAkB,EAClB,SAA0C;QAE1C,MAAM,IAAI,GAAG,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7C,CAAC,CAAC,QAAQ,CAAC,WAAW;YACtB,CAAC,CAAC,SAAS,CAAC;QACd,OAAO;YACL,GAAG;YACH,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,KAAK,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO;YAC7B,WAAW,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW;YACvC,OAAO,EAAE,GAAG,EAAE;gBACZ,KAAK,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC5C,CAAC;YACD,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzB,GAAG,SAAS;SACb,CAAC;IACJ,CAAC;IAnBe,uCAAa,gBAmB5B,CAAA;AACH,CAAC,EAtBgB,yBAAyB,KAAzB,yBAAyB,QAsBzC","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 KeyboardShortcut\n */\n\nimport { ToolUtilities } from \"@itwin/imodel-components-react\";\nimport type { KeyboardShortcutProps } from \"./KeyboardShortcutProps.js\";\nimport { IModelApp, type ToolType } from \"@itwin/core-frontend\";\n\n/** Helper class to create keyboard shortcuts.\n * @beta\n */\nexport namespace KeyboardShortcutUtilities {\n /** Creates an shortcut from the specified tool type. */\n export function createForTool(\n key: string,\n toolType: ToolType,\n overrides?: Partial<KeyboardShortcutProps>\n ): KeyboardShortcutProps {\n const icon = ToolUtilities.isWithIcon(toolType)\n ? toolType.iconElement\n : undefined;\n return {\n key,\n iconSpec: toolType.iconSpec,\n label: () => toolType.flyover,\n description: () => toolType.description,\n execute: () => {\n void IModelApp.tools.run(toolType.toolId);\n },\n ...(icon ? { icon } : {}),\n ...overrides,\n };\n }\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  @forward "~@itwin/core-react/lib/core-react/style/themecolors";
6
6
 
7
7
  @mixin nz-widget-opacity {
8
- opacity: var(--buic-widget-opacity, 0.9);
8
+ opacity: var(--buic-widget-opacity, 1);
9
9
  transition: opacity var(--iui-duration-1) ease;
10
10
 
11
11
  &:hover,
@@ -152,11 +152,8 @@ export interface WidgetTabClickAction {
152
152
  readonly id: TabState["id"];
153
153
  }
154
154
  /** @internal */
155
- export interface WidgetTabDoubleClickAction {
156
- readonly type: "WIDGET_TAB_DOUBLE_CLICK";
157
- readonly side: PanelSide | undefined;
158
- readonly widgetId: WidgetState["id"];
159
- readonly floatingWidgetId: FloatingWidgetState["id"] | undefined;
155
+ export interface WidgetTabMinimizeAction {
156
+ readonly type: "WIDGET_TAB_MINIMIZE";
160
157
  readonly id: TabState["id"];
161
158
  }
162
159
  /** @internal */
@@ -283,5 +280,5 @@ export interface WidgetDefAddAction {
283
280
  };
284
281
  }
285
282
  /** @internal */
286
- export type NineZoneAction = ResizeAction | PanelToggleCollapsedAction | PanelSetCollapsedAction | PanelSetPinnedAction | PanelSetSizeAction | PanelSetMinSizeAction | PanelSetMaxSizeAction | PanelSetResizableAction | PanelSetSplitterPercentAction | PanelToggleSpanAction | PanelTogglePinnedAction | PanelInitializeAction | FloatingWidgetResizeAction | FloatingWidgetSetBoundsAction | FloatingWidgetBringToFrontAction | FloatingWidgetSendBackAction | FloatingWidgetClearUserSizedAction | FloatingWidgetSetUserSizedAction | PopoutWidgetSendBackAction | PanelWidgetDragStartAction | WidgetDragAction | WidgetDragEndAction | WidgetTabAddToWidgetAction | WidgetTabClickAction | WidgetTabCloseAction | WidgetTabDoubleClickAction | WidgetTabDragStartAction | WidgetTabDragAction | WidgetTabDragEndAction | WidgetTabExpandAction | WidgetTabFloatAction | WidgetTabHideAction | WidgetTabsRemoveAction | WidgetTabOpenAction | WidgetTabPopoutAction | WidgetTabSetLabelAction | WidgetTabSetPopoutBoundsAction | WidgetTabShowAction | WidgetTabUnloadAction | WidgetTabUpdateAction | ToolSettingsAddDockedAction | ToolSettingsAddWidgetAction | ToolSettingsDragStartAction | ToolSettingsDockAction | WidgetDefAddAction;
283
+ export type NineZoneAction = ResizeAction | PanelToggleCollapsedAction | PanelSetCollapsedAction | PanelSetPinnedAction | PanelSetSizeAction | PanelSetMinSizeAction | PanelSetMaxSizeAction | PanelSetResizableAction | PanelSetSplitterPercentAction | PanelToggleSpanAction | PanelTogglePinnedAction | PanelInitializeAction | FloatingWidgetResizeAction | FloatingWidgetSetBoundsAction | FloatingWidgetBringToFrontAction | FloatingWidgetSendBackAction | FloatingWidgetClearUserSizedAction | FloatingWidgetSetUserSizedAction | PopoutWidgetSendBackAction | PanelWidgetDragStartAction | WidgetDragAction | WidgetDragEndAction | WidgetTabAddToWidgetAction | WidgetTabClickAction | WidgetTabCloseAction | WidgetTabMinimizeAction | WidgetTabDragStartAction | WidgetTabDragAction | WidgetTabDragEndAction | WidgetTabExpandAction | WidgetTabFloatAction | WidgetTabHideAction | WidgetTabsRemoveAction | WidgetTabOpenAction | WidgetTabPopoutAction | WidgetTabSetLabelAction | WidgetTabSetPopoutBoundsAction | WidgetTabShowAction | WidgetTabUnloadAction | WidgetTabUpdateAction | ToolSettingsAddDockedAction | ToolSettingsAddWidgetAction | ToolSettingsDragStartAction | ToolSettingsDockAction | WidgetDefAddAction;
287
284
  //# sourceMappingURL=NineZoneAction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NineZoneAction.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/layout/state/NineZoneAction.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,SAAS,EACV,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,gBAAgB;AAChB,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;CAC1B;AAED,gBAAgB;AAChB,MAAM,WAAW,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,EAAE;QACvB,QAAQ,CAAC,EAAE,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACvC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;KACpC,CAAC;IACF,QAAQ,CAAC,YAAY,EAAE;QACrB,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;KAC1B,CAAC;CACH;AAED,gBAAgB;AAChB,MAAM,MAAM,cAAc,GACtB,YAAY,GACZ,0BAA0B,GAC1B,uBAAuB,GACvB,oBAAoB,GACpB,kBAAkB,GAClB,qBAAqB,GACrB,qBAAqB,GACrB,uBAAuB,GACvB,6BAA6B,GAC7B,qBAAqB,GACrB,uBAAuB,GACvB,qBAAqB,GACrB,0BAA0B,GAC1B,6BAA6B,GAC7B,gCAAgC,GAChC,4BAA4B,GAC5B,kCAAkC,GAClC,gCAAgC,GAChC,0BAA0B,GAC1B,0BAA0B,GAC1B,gBAAgB,GAChB,mBAAmB,GACnB,0BAA0B,GAC1B,oBAAoB,GACpB,oBAAoB,GACpB,0BAA0B,GAC1B,wBAAwB,GACxB,mBAAmB,GACnB,sBAAsB,GACtB,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,uBAAuB,GACvB,8BAA8B,GAC9B,mBAAmB,GACnB,qBAAqB,GACrB,qBAAqB,GACrB,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,sBAAsB,GACtB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"NineZoneAction.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/layout/state/NineZoneAction.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,SAAS,EACV,MAAM,gCAAgC,CAAC;AACxC,OAAO,KA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BAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,wBAAwB,GACxB,mBAAmB,GACnB,sBAAsB,GACtB,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,uBAAuB,GACvB,8BAA8B,GAC9B,mBAAmB,GACnB,qBAAqB,GACrB,qBAAqB,GACrB,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,sBAAsB,GACtB,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NineZoneAction.js","sourceRoot":"","sources":["../../../../src/appui-react/layout/state/NineZoneAction.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport type {\n HorizontalPanelSide,\n PanelSide,\n} from \"../widget-panels/PanelTypes.js\";\nimport type { TabState } from \"./TabState.js\";\nimport type {\n FloatingWidgetState,\n PopoutWidgetState,\n WidgetState,\n} from \"./WidgetState.js\";\nimport type {\n TabDragDropTargetState,\n WidgetDragDropTargetState,\n} from \"./DropTargetState.js\";\nimport type { PanelState } from \"./PanelState.js\";\nimport type { XAndY } from \"./internal/NineZoneStateHelpers.js\";\nimport type { StagePanelSizeSpec } from \"../../stagepanels/StagePanelConfig.js\";\nimport type { SizeProps } from \"../../utils/SizeProps.js\";\nimport type { RectangleProps } from \"../../utils/RectangleProps.js\";\nimport type { PopoutBounds } from \"./SavedTabState.js\";\n\n/** @internal */\nexport interface ResizeAction {\n readonly type: \"RESIZE\";\n readonly size: SizeProps;\n}\n\n/** @internal */\nexport interface PanelToggleCollapsedAction {\n readonly type: \"PANEL_TOGGLE_COLLAPSED\";\n readonly side: PanelSide;\n}\n\n/** @internal */\nexport interface PanelSetCollapsedAction {\n readonly type: \"PANEL_SET_COLLAPSED\";\n readonly collapsed: boolean;\n readonly side: PanelSide;\n}\n\n/** @internal */\nexport interface PanelSetPinnedAction {\n readonly type: \"PANEL_SET_PINNED\";\n readonly side: PanelSide;\n readonly pinned: boolean;\n}\n\n/** @internal */\nexport interface PanelSetSizeAction {\n readonly type: \"PANEL_SET_SIZE\";\n readonly side: PanelSide;\n readonly size: StagePanelSizeSpec | undefined;\n}\n\n/** @internal */\nexport interface PanelSetMinSizeAction {\n readonly type: \"PANEL_SET_MIN_SIZE\";\n readonly side: PanelSide;\n readonly minSize: StagePanelSizeSpec;\n}\n\n/** @internal */\nexport interface PanelSetMaxSizeAction {\n readonly type: \"PANEL_SET_MAX_SIZE\";\n readonly side: PanelSide;\n readonly maxSize: PanelState[\"maxSize\"];\n}\n\n/** @internal */\nexport interface PanelSetResizableAction {\n readonly type: \"PANEL_SET_RESIZABLE\";\n readonly side: PanelSide;\n readonly resizable: PanelState[\"resizable\"];\n}\n\n/** @internal */\nexport interface PanelSetSplitterPercentAction {\n readonly type: \"PANEL_SET_SPLITTER_VALUE\";\n readonly side: PanelSide;\n readonly percent: number;\n}\n\n/** @internal */\nexport interface PanelToggleSpanAction {\n readonly type: \"PANEL_TOGGLE_SPAN\";\n readonly side: HorizontalPanelSide;\n}\n\n/** @internal */\nexport interface PanelTogglePinnedAction {\n readonly type: \"PANEL_TOGGLE_PINNED\";\n readonly side: PanelSide;\n}\n\n/** @internal */\nexport interface PanelInitializeAction {\n readonly type: \"PANEL_INITIALIZE\";\n readonly side: PanelSide;\n readonly size: number;\n}\n\n/** @internal */\nexport interface FloatingWidgetResizeAction {\n readonly type: \"FLOATING_WIDGET_RESIZE\";\n readonly id: FloatingWidgetState[\"id\"];\n readonly resizeBy: RectangleProps;\n}\n\n/** @internal */\nexport interface FloatingWidgetSetBoundsAction {\n readonly type: \"FLOATING_WIDGET_SET_BOUNDS\";\n readonly id: FloatingWidgetState[\"id\"];\n readonly bounds: RectangleProps;\n}\n\n/** @internal */\nexport interface FloatingWidgetBringToFrontAction {\n readonly type: \"FLOATING_WIDGET_BRING_TO_FRONT\";\n readonly id: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface FloatingWidgetClearUserSizedAction {\n readonly type: \"FLOATING_WIDGET_CLEAR_USER_SIZED\";\n readonly id: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface FloatingWidgetSetUserSizedAction {\n readonly type: \"FLOATING_WIDGET_SET_USER_SIZED\";\n readonly id: FloatingWidgetState[\"id\"];\n readonly userSized: boolean;\n}\n\n/** @internal */\nexport interface FloatingWidgetSendBackAction {\n readonly type: \"FLOATING_WIDGET_SEND_BACK\";\n readonly id: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface PopoutWidgetSendBackAction {\n readonly type: \"POPOUT_WIDGET_SEND_BACK\";\n readonly id: PopoutWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface PanelWidgetDragStartAction {\n readonly type: \"PANEL_WIDGET_DRAG_START\";\n readonly newFloatingWidgetId: FloatingWidgetState[\"id\"];\n readonly id: WidgetState[\"id\"];\n readonly bounds: RectangleProps;\n readonly side: PanelSide;\n readonly userSized?: boolean;\n}\n\n/** @internal */\nexport interface WidgetDragAction {\n readonly type: \"WIDGET_DRAG\";\n readonly dragBy: XAndY;\n readonly floatingWidgetId: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetDragEndAction {\n readonly type: \"WIDGET_DRAG_END\";\n readonly floatingWidgetId: FloatingWidgetState[\"id\"];\n readonly target: WidgetDragDropTargetState;\n}\n\n/** @internal */\nexport interface WidgetTabAddToWidgetAction {\n readonly type: \"WIDGET_TAB_ADD_TO_WIDGET\";\n readonly id: TabState[\"id\"];\n readonly widgetId: WidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabClickAction {\n readonly type: \"WIDGET_TAB_CLICK\";\n readonly side: PanelSide | undefined;\n readonly widgetId: WidgetState[\"id\"];\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabDoubleClickAction {\n readonly type: \"WIDGET_TAB_DOUBLE_CLICK\";\n readonly side: PanelSide | undefined;\n readonly widgetId: WidgetState[\"id\"];\n readonly floatingWidgetId: FloatingWidgetState[\"id\"] | undefined;\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabDragStartAction {\n readonly type: \"WIDGET_TAB_DRAG_START\";\n readonly side: PanelSide | undefined;\n readonly widgetId: WidgetState[\"id\"];\n readonly floatingWidgetId: FloatingWidgetState[\"id\"] | undefined;\n readonly id: TabState[\"id\"];\n readonly position: XAndY;\n readonly userSized?: boolean;\n}\n\n/** @internal */\nexport interface WidgetTabDragAction {\n readonly type: \"WIDGET_TAB_DRAG\";\n readonly dragBy: XAndY;\n}\n\n/** @internal */\nexport interface WidgetTabDragEndAction {\n readonly type: \"WIDGET_TAB_DRAG_END\";\n readonly id: TabState[\"id\"];\n readonly target: TabDragDropTargetState;\n}\n\n/** @internal */\nexport interface WidgetTabCloseAction {\n readonly type: \"WIDGET_TAB_CLOSE\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabFloatAction {\n readonly type: \"WIDGET_TAB_FLOAT\";\n readonly id: TabState[\"id\"];\n readonly position?: XAndY;\n readonly size?: SizeProps;\n}\n\n/** @internal */\nexport interface WidgetTabHideAction {\n readonly type: \"WIDGET_TAB_HIDE\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabsRemoveAction {\n readonly type: \"WIDGET_TABS_REMOVE\";\n readonly ids: TabState[\"id\"][];\n}\n\n/** @internal */\nexport interface WidgetTabSetLabelAction {\n readonly type: \"WIDGET_TAB_SET_LABEL\";\n readonly id: TabState[\"id\"];\n readonly label: TabState[\"label\"];\n}\n\n/** @internal */\nexport interface WidgetTabOpenAction {\n readonly type: \"WIDGET_TAB_OPEN\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabPopoutAction {\n readonly type: \"WIDGET_TAB_POPOUT\";\n readonly id: TabState[\"id\"];\n readonly position?: XAndY;\n readonly size?: SizeProps;\n}\n\n/** @internal */\nexport interface WidgetTabSetPopoutBoundsAction extends PopoutBounds {\n readonly type: \"WIDGET_TAB_SET_POPOUT_BOUNDS\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabShowAction {\n readonly type: \"WIDGET_TAB_SHOW\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabExpandAction {\n readonly type: \"WIDGET_TAB_EXPAND\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabUnloadAction {\n readonly type: \"WIDGET_TAB_UNLOAD\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabUpdateAction {\n readonly type: \"WIDGET_TAB_UPDATE\";\n readonly id: TabState[\"id\"];\n readonly overrides: Partial<TabState>;\n}\n\n/** @internal */\nexport interface ToolSettingsAddDockedAction {\n readonly type: \"TOOL_SETTINGS_ADD_DOCKED\";\n readonly id: TabState[\"id\"];\n readonly overrides?: Partial<TabState>;\n}\n\n/** @internal */\nexport interface ToolSettingsAddWidgetAction {\n readonly type: \"TOOL_SETTINGS_ADD_WIDGET\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface ToolSettingsDragStartAction {\n readonly type: \"TOOL_SETTINGS_DRAG_START\";\n readonly newFloatingWidgetId: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface ToolSettingsDockAction {\n readonly type: \"TOOL_SETTINGS_DOCK\";\n}\n\n/** @internal */\nexport interface WidgetDefAddAction {\n readonly type: \"WIDGET_DEF_ADD\";\n readonly id: TabState[\"id\"];\n readonly overrides?: Partial<TabState>;\n readonly location: \"panel\" | \"floating\";\n readonly floatingWidget: {\n readonly id: FloatingWidgetState[\"id\"];\n readonly preferredPosition?: XAndY;\n };\n readonly panelSection: {\n readonly id: WidgetState[\"id\"];\n readonly index: number;\n readonly side: PanelSide;\n };\n}\n\n/** @internal */\nexport type NineZoneAction =\n | ResizeAction\n | PanelToggleCollapsedAction\n | PanelSetCollapsedAction\n | PanelSetPinnedAction\n | PanelSetSizeAction\n | PanelSetMinSizeAction\n | PanelSetMaxSizeAction\n | PanelSetResizableAction\n | PanelSetSplitterPercentAction\n | PanelToggleSpanAction\n | PanelTogglePinnedAction\n | PanelInitializeAction\n | FloatingWidgetResizeAction\n | FloatingWidgetSetBoundsAction\n | FloatingWidgetBringToFrontAction\n | FloatingWidgetSendBackAction\n | FloatingWidgetClearUserSizedAction\n | FloatingWidgetSetUserSizedAction\n | PopoutWidgetSendBackAction\n | PanelWidgetDragStartAction\n | WidgetDragAction\n | WidgetDragEndAction\n | WidgetTabAddToWidgetAction\n | WidgetTabClickAction\n | WidgetTabCloseAction\n | WidgetTabDoubleClickAction\n | WidgetTabDragStartAction\n | WidgetTabDragAction\n | WidgetTabDragEndAction\n | WidgetTabExpandAction\n | WidgetTabFloatAction\n | WidgetTabHideAction\n | WidgetTabsRemoveAction\n | WidgetTabOpenAction\n | WidgetTabPopoutAction\n | WidgetTabSetLabelAction\n | WidgetTabSetPopoutBoundsAction\n | WidgetTabShowAction\n | WidgetTabUnloadAction\n | WidgetTabUpdateAction\n | ToolSettingsAddDockedAction\n | ToolSettingsAddWidgetAction\n | ToolSettingsDragStartAction\n | ToolSettingsDockAction\n | WidgetDefAddAction;\n"]}
1
+ {"version":3,"file":"NineZoneAction.js","sourceRoot":"","sources":["../../../../src/appui-react/layout/state/NineZoneAction.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport type {\n HorizontalPanelSide,\n PanelSide,\n} from \"../widget-panels/PanelTypes.js\";\nimport type { TabState } from \"./TabState.js\";\nimport type {\n FloatingWidgetState,\n PopoutWidgetState,\n WidgetState,\n} from \"./WidgetState.js\";\nimport type {\n TabDragDropTargetState,\n WidgetDragDropTargetState,\n} from \"./DropTargetState.js\";\nimport type { PanelState } from \"./PanelState.js\";\nimport type { XAndY } from \"./internal/NineZoneStateHelpers.js\";\nimport type { StagePanelSizeSpec } from \"../../stagepanels/StagePanelConfig.js\";\nimport type { SizeProps } from \"../../utils/SizeProps.js\";\nimport type { RectangleProps } from \"../../utils/RectangleProps.js\";\nimport type { PopoutBounds } from \"./SavedTabState.js\";\n\n/** @internal */\nexport interface ResizeAction {\n readonly type: \"RESIZE\";\n readonly size: SizeProps;\n}\n\n/** @internal */\nexport interface PanelToggleCollapsedAction {\n readonly type: \"PANEL_TOGGLE_COLLAPSED\";\n readonly side: PanelSide;\n}\n\n/** @internal */\nexport interface PanelSetCollapsedAction {\n readonly type: \"PANEL_SET_COLLAPSED\";\n readonly collapsed: boolean;\n readonly side: PanelSide;\n}\n\n/** @internal */\nexport interface PanelSetPinnedAction {\n readonly type: \"PANEL_SET_PINNED\";\n readonly side: PanelSide;\n readonly pinned: boolean;\n}\n\n/** @internal */\nexport interface PanelSetSizeAction {\n readonly type: \"PANEL_SET_SIZE\";\n readonly side: PanelSide;\n readonly size: StagePanelSizeSpec | undefined;\n}\n\n/** @internal */\nexport interface PanelSetMinSizeAction {\n readonly type: \"PANEL_SET_MIN_SIZE\";\n readonly side: PanelSide;\n readonly minSize: StagePanelSizeSpec;\n}\n\n/** @internal */\nexport interface PanelSetMaxSizeAction {\n readonly type: \"PANEL_SET_MAX_SIZE\";\n readonly side: PanelSide;\n readonly maxSize: PanelState[\"maxSize\"];\n}\n\n/** @internal */\nexport interface PanelSetResizableAction {\n readonly type: \"PANEL_SET_RESIZABLE\";\n readonly side: PanelSide;\n readonly resizable: PanelState[\"resizable\"];\n}\n\n/** @internal */\nexport interface PanelSetSplitterPercentAction {\n readonly type: \"PANEL_SET_SPLITTER_VALUE\";\n readonly side: PanelSide;\n readonly percent: number;\n}\n\n/** @internal */\nexport interface PanelToggleSpanAction {\n readonly type: \"PANEL_TOGGLE_SPAN\";\n readonly side: HorizontalPanelSide;\n}\n\n/** @internal */\nexport interface PanelTogglePinnedAction {\n readonly type: \"PANEL_TOGGLE_PINNED\";\n readonly side: PanelSide;\n}\n\n/** @internal */\nexport interface PanelInitializeAction {\n readonly type: \"PANEL_INITIALIZE\";\n readonly side: PanelSide;\n readonly size: number;\n}\n\n/** @internal */\nexport interface FloatingWidgetResizeAction {\n readonly type: \"FLOATING_WIDGET_RESIZE\";\n readonly id: FloatingWidgetState[\"id\"];\n readonly resizeBy: RectangleProps;\n}\n\n/** @internal */\nexport interface FloatingWidgetSetBoundsAction {\n readonly type: \"FLOATING_WIDGET_SET_BOUNDS\";\n readonly id: FloatingWidgetState[\"id\"];\n readonly bounds: RectangleProps;\n}\n\n/** @internal */\nexport interface FloatingWidgetBringToFrontAction {\n readonly type: \"FLOATING_WIDGET_BRING_TO_FRONT\";\n readonly id: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface FloatingWidgetClearUserSizedAction {\n readonly type: \"FLOATING_WIDGET_CLEAR_USER_SIZED\";\n readonly id: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface FloatingWidgetSetUserSizedAction {\n readonly type: \"FLOATING_WIDGET_SET_USER_SIZED\";\n readonly id: FloatingWidgetState[\"id\"];\n readonly userSized: boolean;\n}\n\n/** @internal */\nexport interface FloatingWidgetSendBackAction {\n readonly type: \"FLOATING_WIDGET_SEND_BACK\";\n readonly id: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface PopoutWidgetSendBackAction {\n readonly type: \"POPOUT_WIDGET_SEND_BACK\";\n readonly id: PopoutWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface PanelWidgetDragStartAction {\n readonly type: \"PANEL_WIDGET_DRAG_START\";\n readonly newFloatingWidgetId: FloatingWidgetState[\"id\"];\n readonly id: WidgetState[\"id\"];\n readonly bounds: RectangleProps;\n readonly side: PanelSide;\n readonly userSized?: boolean;\n}\n\n/** @internal */\nexport interface WidgetDragAction {\n readonly type: \"WIDGET_DRAG\";\n readonly dragBy: XAndY;\n readonly floatingWidgetId: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetDragEndAction {\n readonly type: \"WIDGET_DRAG_END\";\n readonly floatingWidgetId: FloatingWidgetState[\"id\"];\n readonly target: WidgetDragDropTargetState;\n}\n\n/** @internal */\nexport interface WidgetTabAddToWidgetAction {\n readonly type: \"WIDGET_TAB_ADD_TO_WIDGET\";\n readonly id: TabState[\"id\"];\n readonly widgetId: WidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabClickAction {\n readonly type: \"WIDGET_TAB_CLICK\";\n readonly side: PanelSide | undefined;\n readonly widgetId: WidgetState[\"id\"];\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabMinimizeAction {\n readonly type: \"WIDGET_TAB_MINIMIZE\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabDragStartAction {\n readonly type: \"WIDGET_TAB_DRAG_START\";\n readonly side: PanelSide | undefined;\n readonly widgetId: WidgetState[\"id\"];\n readonly floatingWidgetId: FloatingWidgetState[\"id\"] | undefined;\n readonly id: TabState[\"id\"];\n readonly position: XAndY;\n readonly userSized?: boolean;\n}\n\n/** @internal */\nexport interface WidgetTabDragAction {\n readonly type: \"WIDGET_TAB_DRAG\";\n readonly dragBy: XAndY;\n}\n\n/** @internal */\nexport interface WidgetTabDragEndAction {\n readonly type: \"WIDGET_TAB_DRAG_END\";\n readonly id: TabState[\"id\"];\n readonly target: TabDragDropTargetState;\n}\n\n/** @internal */\nexport interface WidgetTabCloseAction {\n readonly type: \"WIDGET_TAB_CLOSE\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabFloatAction {\n readonly type: \"WIDGET_TAB_FLOAT\";\n readonly id: TabState[\"id\"];\n readonly position?: XAndY;\n readonly size?: SizeProps;\n}\n\n/** @internal */\nexport interface WidgetTabHideAction {\n readonly type: \"WIDGET_TAB_HIDE\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabsRemoveAction {\n readonly type: \"WIDGET_TABS_REMOVE\";\n readonly ids: TabState[\"id\"][];\n}\n\n/** @internal */\nexport interface WidgetTabSetLabelAction {\n readonly type: \"WIDGET_TAB_SET_LABEL\";\n readonly id: TabState[\"id\"];\n readonly label: TabState[\"label\"];\n}\n\n/** @internal */\nexport interface WidgetTabOpenAction {\n readonly type: \"WIDGET_TAB_OPEN\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabPopoutAction {\n readonly type: \"WIDGET_TAB_POPOUT\";\n readonly id: TabState[\"id\"];\n readonly position?: XAndY;\n readonly size?: SizeProps;\n}\n\n/** @internal */\nexport interface WidgetTabSetPopoutBoundsAction extends PopoutBounds {\n readonly type: \"WIDGET_TAB_SET_POPOUT_BOUNDS\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabShowAction {\n readonly type: \"WIDGET_TAB_SHOW\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabExpandAction {\n readonly type: \"WIDGET_TAB_EXPAND\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabUnloadAction {\n readonly type: \"WIDGET_TAB_UNLOAD\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface WidgetTabUpdateAction {\n readonly type: \"WIDGET_TAB_UPDATE\";\n readonly id: TabState[\"id\"];\n readonly overrides: Partial<TabState>;\n}\n\n/** @internal */\nexport interface ToolSettingsAddDockedAction {\n readonly type: \"TOOL_SETTINGS_ADD_DOCKED\";\n readonly id: TabState[\"id\"];\n readonly overrides?: Partial<TabState>;\n}\n\n/** @internal */\nexport interface ToolSettingsAddWidgetAction {\n readonly type: \"TOOL_SETTINGS_ADD_WIDGET\";\n readonly id: TabState[\"id\"];\n}\n\n/** @internal */\nexport interface ToolSettingsDragStartAction {\n readonly type: \"TOOL_SETTINGS_DRAG_START\";\n readonly newFloatingWidgetId: FloatingWidgetState[\"id\"];\n}\n\n/** @internal */\nexport interface ToolSettingsDockAction {\n readonly type: \"TOOL_SETTINGS_DOCK\";\n}\n\n/** @internal */\nexport interface WidgetDefAddAction {\n readonly type: \"WIDGET_DEF_ADD\";\n readonly id: TabState[\"id\"];\n readonly overrides?: Partial<TabState>;\n readonly location: \"panel\" | \"floating\";\n readonly floatingWidget: {\n readonly id: FloatingWidgetState[\"id\"];\n readonly preferredPosition?: XAndY;\n };\n readonly panelSection: {\n readonly id: WidgetState[\"id\"];\n readonly index: number;\n readonly side: PanelSide;\n };\n}\n\n/** @internal */\nexport type NineZoneAction =\n | ResizeAction\n | PanelToggleCollapsedAction\n | PanelSetCollapsedAction\n | PanelSetPinnedAction\n | PanelSetSizeAction\n | PanelSetMinSizeAction\n | PanelSetMaxSizeAction\n | PanelSetResizableAction\n | PanelSetSplitterPercentAction\n | PanelToggleSpanAction\n | PanelTogglePinnedAction\n | PanelInitializeAction\n | FloatingWidgetResizeAction\n | FloatingWidgetSetBoundsAction\n | FloatingWidgetBringToFrontAction\n | FloatingWidgetSendBackAction\n | FloatingWidgetClearUserSizedAction\n | FloatingWidgetSetUserSizedAction\n | PopoutWidgetSendBackAction\n | PanelWidgetDragStartAction\n | WidgetDragAction\n | WidgetDragEndAction\n | WidgetTabAddToWidgetAction\n | WidgetTabClickAction\n | WidgetTabCloseAction\n | WidgetTabMinimizeAction\n | WidgetTabDragStartAction\n | WidgetTabDragAction\n | WidgetTabDragEndAction\n | WidgetTabExpandAction\n | WidgetTabFloatAction\n | WidgetTabHideAction\n | WidgetTabsRemoveAction\n | WidgetTabOpenAction\n | WidgetTabPopoutAction\n | WidgetTabSetLabelAction\n | WidgetTabSetPopoutBoundsAction\n | WidgetTabShowAction\n | WidgetTabUnloadAction\n | WidgetTabUpdateAction\n | ToolSettingsAddDockedAction\n | ToolSettingsAddWidgetAction\n | ToolSettingsDragStartAction\n | ToolSettingsDockAction\n | WidgetDefAddAction;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"NineZoneStateReducer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/layout/state/NineZoneStateReducer.ts"],"names":[],"mappings":"AAIA;;GAEG;AAOH,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA0DxD,gBAAgB;AAChB,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,cAAc,GACrB,aAAa,CA00Bf"}
1
+ {"version":3,"file":"NineZoneStateReducer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/layout/state/NineZoneStateReducer.ts"],"names":[],"mappings":"AAIA;;GAEG;AAOH,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA0DxD,gBAAgB;AAChB,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,cAAc,GACrB,aAAa,CA20Bf"}
@@ -344,15 +344,16 @@ export function NineZoneStateReducer(state, action) {
344
344
  minimized: false,
345
345
  });
346
346
  }
347
- case "WIDGET_TAB_DOUBLE_CLICK": {
348
- if (action.floatingWidgetId === undefined)
347
+ case "WIDGET_TAB_MINIMIZE": {
348
+ const tabLocation = getTabLocation(state, action.id);
349
+ if (!tabLocation || !isFloatingTabLocation(tabLocation))
349
350
  return state;
350
- const widget = getWidgetState(state, action.widgetId);
351
+ const widget = getWidgetState(state, tabLocation.widgetId);
351
352
  const active = action.id === widget.activeTabId;
352
353
  if (!active)
353
354
  return setWidgetActiveTabId(state, widget.id, action.id);
354
355
  return updateWidgetState(state, widget.id, {
355
- minimized: !widget.minimized,
356
+ minimized: true,
356
357
  });
357
358
  }
358
359
  case "WIDGET_TAB_DRAG_START": {