@itwin/appui-react 3.0.0-dev.121 → 3.0.0-dev.125

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 (79) hide show
  1. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts +2 -0
  2. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  3. package/lib/cjs/appui-react/backstage/BackstageComposer.js +25 -7
  4. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  5. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +1 -0
  6. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  7. package/lib/cjs/appui-react/frontstage/Frontstage.js +22 -10
  8. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -1
  9. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  10. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js +10 -1
  11. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  12. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +1 -1
  13. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  14. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  15. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +0 -1
  16. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  17. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +3 -3
  18. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  19. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +1 -1
  20. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  21. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts +0 -5
  22. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  23. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  24. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +1 -1
  25. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  26. package/lib/cjs/appui-react/shared/ToolItemDef.js +2 -2
  27. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  28. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  29. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +17 -5
  30. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  31. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +3 -3
  32. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  33. package/lib/cjs/appui-react/zones/Zone.d.ts +2 -2
  34. package/lib/cjs/appui-react/zones/Zone.js +1 -1
  35. package/lib/cjs/appui-react/zones/Zone.js.map +1 -1
  36. package/lib/cjs/appui-react.d.ts +1 -0
  37. package/lib/cjs/appui-react.d.ts.map +1 -1
  38. package/lib/cjs/appui-react.js +1 -0
  39. package/lib/cjs/appui-react.js.map +1 -1
  40. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts +2 -0
  41. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  42. package/lib/esm/appui-react/backstage/BackstageComposer.js +26 -8
  43. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  44. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +1 -0
  45. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -1
  46. package/lib/esm/appui-react/frontstage/Frontstage.js +22 -10
  47. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -1
  48. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  49. package/lib/esm/appui-react/frontstage/FrontstageComposer.js +10 -1
  50. package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  51. package/lib/esm/appui-react/frontstage/FrontstageDef.js +1 -1
  52. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  53. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  54. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +0 -1
  55. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  56. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +3 -3
  57. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
  58. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +1 -1
  59. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
  60. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts +0 -5
  61. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -1
  62. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -1
  63. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +1 -1
  64. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  65. package/lib/esm/appui-react/shared/ToolItemDef.js +2 -2
  66. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  67. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  68. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +17 -5
  69. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  70. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +3 -3
  71. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  72. package/lib/esm/appui-react/zones/Zone.d.ts +2 -2
  73. package/lib/esm/appui-react/zones/Zone.js +1 -1
  74. package/lib/esm/appui-react/zones/Zone.js.map +1 -1
  75. package/lib/esm/appui-react.d.ts +1 -0
  76. package/lib/esm/appui-react.d.ts.map +1 -1
  77. package/lib/esm/appui-react.js +1 -0
  78. package/lib/esm/appui-react.js.map +1 -1
  79. package/package.json +37 -37
@@ -1 +1 @@
1
- {"version":3,"file":"CoreToolDefinitions.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/CoreToolDefinitions.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,4CAA4C;AAC5C,wDAI8B;AAC9B,0DAAwF;AACxF,8DAA8D;AAC9D,wDAAwF;AACxF,sEAAmE;AACnE,+DAA4D;AAC5D,kFAAmJ;AACnJ,6DAA0D;AAC1D,2DAAwD;AAExD,uDAAoD;AACpD,2EAAgE;AAChE,oDAAoD;AACpD,2DAAkE;AAClE,gDAA6C;AAE7C,4CAA4C;AAE5C;;GAEG;AACH,uBAAuB;AACvB,MAAa,SAAS;IACpB;;OAEG;IACI,MAAM,KAAK,yBAAyB;QACzC,OAAO,IAAI,6BAAa,CAAC;YACvB,QAAQ,EAAE,kBAAkB;YAC5B,QAAQ,EAAE,cAAc;YACxB,QAAQ,EAAE,gCAAgC;YAC1C,cAAc,EAAE,oBAAC,sCAAmB,CAAC,QAAQ,QAC1C,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACnB,oBAAC,2BAAY,IAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,GAAI,CAC9D,CAC4B;YAC/B,iBAAiB;YACjB,YAAY,EAAE,CACZ,oBAAC,yBAAW,IAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,EAAC,gCAAgC,IAC3E,IAAI,CAAC,mBAAmB,CACb,CACf;SACF,CAAC,CAAC;IACL,CAAC;IASM,MAAM,KAAK,yBAAyB;QACzC,OAAO,IAAI,yBAAW,CAAC;YACrB,MAAM,EAAE,kBAAkB;YAC1B,QAAQ,EAAE,cAAc;YACxB,QAAQ,EAAE,gCAAgC;YAC1C,OAAO,EAAE,GAAG,EAAE,GAAG,yBAAS,CAAC,OAAO,CAAC,g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AA2B,CAAC,QAAQ;YAC9C,KAAK,EAAE,+CAA2B,CAAC,OAAO;YAC1C,WAAW,EAAE,+CAA2B,CAAC,WAAW;YACpD,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,OAAO,yBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,+CAA2B,CAAC,MAAM,CAAC,CAAC;YACjE,CAAC;SACF,CAAC,CAAC;IACL,CAAC;;AAxYH,8BAyYC;AAlXC,uBAAuB;AACR,6BAAmB,GAAG,CAAC,EAAE,UAAU,EAAqC,EAAE,EAAE;IACzF,OAAO,CACL,oBAAC,2BAAY,IAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,GAAI,CAC9D,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Tools\r\n */\r\n\r\nimport * as React from \"react\";\r\n// cSpell:ignore configurableui keyinbrowser\r\nimport {\r\n FitViewTool, FlyViewTool, IModelApp, MeasureDistanceTool, MeasureLocationTool, PanViewTool, RotateViewTool, SelectionTool, ViewClipByElementTool,\r\n ViewClipByPlaneTool, ViewClipByRangeTool, ViewClipByShapeTool, ViewClipDecorationProvider, ViewRedoTool, ViewToggleCameraTool, ViewUndoTool,\r\n WalkViewTool, WindowAreaTool, ZoomViewTool,\r\n} from \"@itwin/core-frontend\";\r\nimport { ConditionalBooleanValue, ConditionalStringValue } from \"@itwin/appui-abstract\";\r\nimport { ToolbarPopupContext } from \"@itwin/components-react\";\r\nimport { PopupButton, PopupButtonChildrenRenderPropArgs } from \"../toolbar/PopupButton\";\r\nimport { ContentViewManager } from \"../content/ContentViewManager\";\r\nimport { KeyinBrowser } from \"../keyinbrowser/KeyinBrowser\";\r\nimport { getIsHiddenIfSelectionNotActive, getSelectionContextSyncEventIds, selectionContextStateFunc } from \"../selection/SelectionContextItemDef\";\r\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\r\nimport { CustomItemDef } from \"../shared/CustomItemDef\";\r\nimport { BaseItemState } from \"../shared/ItemDefBase\";\r\nimport { ToolItemDef } from \"../shared/ToolItemDef\";\r\nimport { SyncUiEventId } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { GroupItemDef } from \"../toolbar/GroupItem\";\r\nimport { RestoreFrontstageLayoutTool } from \"./RestoreLayoutTool\";\r\nimport { UiFramework } from \"../UiFramework\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\n/** Utility Class that provides definitions of tools provided by iModel.js core. These definitions can be used to populate the UI.\r\n * @public\r\n */\r\n// istanbul ignore next\r\nexport class CoreTools {\r\n /** Get the CustomItemDef for PopupButton\r\n * @public\r\n */\r\n public static get keyinBrowserButtonItemDef() {\r\n return new CustomItemDef({\r\n customId: \"uif:keyinbrowser\",\r\n iconSpec: \"icon-process\",\r\n labelKey: \"UiFramework:keyinbrowser.label\",\r\n popupPanelNode: <ToolbarPopupContext.Consumer>\r\n {({ closePanel }) => (\r\n <KeyinBrowser onExecute={closePanel} onCancel={closePanel} />\r\n )}\r\n </ToolbarPopupContext.Consumer>,\r\n // DEPRECATED way\r\n reactElement: (\r\n <PopupButton iconSpec=\"icon-process\" labelKey=\"UiFramework:keyinbrowser.label\">\r\n {this._renderKeyInBrowser}\r\n </PopupButton>\r\n ),\r\n });\r\n }\r\n\r\n // istanbul ignore next\r\n private static _renderKeyInBrowser = ({ closePanel }: PopupButtonChildrenRenderPropArgs) => {\r\n return (\r\n <KeyinBrowser onExecute={closePanel} onCancel={closePanel} />\r\n );\r\n };\r\n\r\n public static get keyinPaletteButtonItemDef() {\r\n return new ToolItemDef({\r\n toolId: \"uif:keyinpalette\",\r\n iconSpec: \"icon-process\",\r\n labelKey: \"UiFramework:keyinbrowser.label\",\r\n execute: () => { IModelApp.uiAdmin.showKeyinPalette(); },\r\n });\r\n }\r\n\r\n public static get fitViewCommand() {\r\n return new ToolItemDef({\r\n toolId: FitViewTool.toolId,\r\n iconSpec: FitViewTool.iconSpec,\r\n label: FitViewTool.flyover,\r\n description: FitViewTool.description,\r\n execute: async () => IModelApp.tools.run(FitViewTool.toolId, IModelApp.viewManager.selectedView, true),\r\n });\r\n }\r\n\r\n public static get windowAreaCommand() {\r\n return new ToolItemDef({\r\n toolId: WindowAreaTool.toolId,\r\n iconSpec: WindowAreaTool.iconSpec,\r\n label: WindowAreaTool.flyover,\r\n description: WindowAreaTool.description,\r\n execute: async () => IModelApp.tools.run(WindowAreaTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get zoomViewCommand() {\r\n return new ToolItemDef({\r\n toolId: ZoomViewTool.toolId,\r\n iconSpec: ZoomViewTool.iconSpec,\r\n label: ZoomViewTool.flyover,\r\n description: ZoomViewTool.description,\r\n execute: async () => IModelApp.tools.run(ZoomViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get panViewCommand() {\r\n return new ToolItemDef({\r\n toolId: PanViewTool.toolId,\r\n iconSpec: PanViewTool.iconSpec,\r\n label: PanViewTool.flyover,\r\n description: PanViewTool.description,\r\n execute: async () => IModelApp.tools.run(PanViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get rotateViewCommand() {\r\n return new ToolItemDef({\r\n toolId: RotateViewTool.toolId,\r\n iconSpec: new ConditionalStringValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl?.viewport?.view.is2d())\r\n return \"icon-rotate-left\";\r\n return \"icon-gyroscope\";\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n label: RotateViewTool.flyover,\r\n description: RotateViewTool.description,\r\n execute: async () => IModelApp.tools.run(RotateViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get walkViewCommand() {\r\n return new ToolItemDef({\r\n toolId: WalkViewTool.toolId,\r\n iconSpec: WalkViewTool.iconSpec,\r\n label: WalkViewTool.flyover,\r\n description: WalkViewTool.description,\r\n isHidden: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n return !!activeContentControl?.viewport?.view.is2d();\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n execute: async () => IModelApp.tools.run(WalkViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get selectElementCommand() {\r\n return new ToolItemDef({\r\n toolId: SelectionTool.toolId,\r\n iconSpec: SelectionTool.iconSpec,\r\n label: SelectionTool.flyover,\r\n description: SelectionTool.description,\r\n execute: async () => IModelApp.tools.run(SelectionTool.toolId),\r\n });\r\n }\r\n\r\n public static get toggleCameraViewCommand() {\r\n return new ToolItemDef({\r\n toolId: ViewToggleCameraTool.toolId,\r\n iconSpec: new ConditionalStringValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl?.viewport?.view.is3d() && activeContentControl?.viewport?.isCameraOn)\r\n return \"icon-camera-animation\";\r\n return \"icon-camera-animation-disabled\";\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n label: ViewToggleCameraTool.flyover,\r\n description: ViewToggleCameraTool.description,\r\n isHidden: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n return !(activeContentControl?.viewport?.view.is3d() && activeContentControl?.viewport?.view.supportsCamera());\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n execute: async () => IModelApp.tools.run(ViewToggleCameraTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get flyViewCommand() {\r\n return new ToolItemDef({\r\n toolId: FlyViewTool.toolId,\r\n iconSpec: FlyViewTool.iconSpec,\r\n label: FlyViewTool.flyover,\r\n description: FlyViewTool.description,\r\n execute: async () => IModelApp.tools.run(FlyViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n // TODO - Need to provide a sync message that is fired when the Undo/Redo button needs to be refreshed in the\r\n // active view.\r\n public static get viewUndoCommand() {\r\n return new ToolItemDef({\r\n toolId: ViewUndoTool.toolId,\r\n isDisabled: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl && activeContentControl.viewport)\r\n return !activeContentControl.viewport.isUndoPossible;\r\n return false;\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n iconSpec: ViewUndoTool.iconSpec,\r\n label: ViewUndoTool.flyover,\r\n description: ViewUndoTool.description,\r\n execute: async () =>\r\n IModelApp.tools.run(ViewUndoTool.toolId, IModelApp.viewManager.selectedView)\r\n ,\r\n stateSyncIds: [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged],\r\n stateFunc: (currentState: Readonly<BaseItemState>): BaseItemState => {\r\n const returnState: BaseItemState = { ...currentState };\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl && activeContentControl.viewport)\r\n returnState.isEnabled = activeContentControl.viewport.isUndoPossible;\r\n return returnState;\r\n },\r\n });\r\n }\r\n\r\n public static get viewRedoCommand() {\r\n return new ToolItemDef({\r\n toolId: ViewRedoTool.toolId,\r\n iconSpec: ViewRedoTool.iconSpec,\r\n label: ViewRedoTool.flyover,\r\n description: ViewRedoTool.description,\r\n execute: async () => IModelApp.tools.run(ViewRedoTool.toolId, IModelApp.viewManager.selectedView),\r\n isDisabled: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl && activeContentControl.viewport)\r\n return !activeContentControl.viewport.isRedoPossible;\r\n return false;\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n stateSyncIds: [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged],\r\n stateFunc: (currentState: Readonly<BaseItemState>): BaseItemState => {\r\n const returnState: BaseItemState = { ...currentState };\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl && activeContentControl.viewport)\r\n returnState.isEnabled = activeContentControl.viewport.isRedoPossible;\r\n return returnState;\r\n },\r\n });\r\n }\r\n\r\n private static turnOnClipVolume() {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (!vp || !vp.view.is3d())\r\n return;\r\n\r\n // Turn on clip volume flag for section tools\r\n vp.viewFlags = vp.viewFlags.with(\"clipVolume\", true);\r\n }\r\n\r\n // note current ViewClipByPlaneTool is not automatically registered so the app must call ViewClipByPlaneTool.register();\r\n public static get sectionByPlaneCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: ViewClipByPlaneTool.toolId,\r\n iconSpec: ViewClipByPlaneTool.iconSpec,\r\n label: ViewClipByPlaneTool.flyover,\r\n description: ViewClipByPlaneTool.description,\r\n execute: async () => {\r\n this.turnOnClipVolume();\r\n return IModelApp.tools.run(ViewClipByPlaneTool.toolId, ViewClipDecorationProvider.create());\r\n },\r\n });\r\n }\r\n\r\n // note current ViewClipByElementTool is not automatically registered so the app must call ViewClipByElementTool.register();\r\n public static get sectionByElementCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: ViewClipByElementTool.toolId,\r\n iconSpec: ViewClipByElementTool.iconSpec,\r\n label: ViewClipByElementTool.flyover,\r\n description: ViewClipByElementTool.description,\r\n execute: async () => {\r\n this.turnOnClipVolume();\r\n return IModelApp.tools.run(ViewClipByElementTool.toolId, ViewClipDecorationProvider.create());\r\n },\r\n });\r\n }\r\n\r\n // note current ViewClipByRangeTool is not automatically registered so the app must call ViewClipByRangeTool.register();\r\n public static get sectionByRangeCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: ViewClipByRangeTool.toolId,\r\n iconSpec: ViewClipByRangeTool.iconSpec,\r\n label: ViewClipByRangeTool.flyover,\r\n description: ViewClipByRangeTool.description,\r\n execute: async () => {\r\n this.turnOnClipVolume();\r\n return IModelApp.tools.run(ViewClipByRangeTool.toolId, ViewClipDecorationProvider.create());\r\n },\r\n });\r\n }\r\n\r\n // note current ViewClipByShapeTool is not automatically registered so the app must call ViewClipByShapeTool.register();\r\n public static get sectionByShapeCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: ViewClipByShapeTool.toolId,\r\n iconSpec: ViewClipByShapeTool.iconSpec,\r\n label: ViewClipByShapeTool.flyover,\r\n description: ViewClipByShapeTool.description,\r\n execute: async () => {\r\n this.turnOnClipVolume();\r\n return IModelApp.tools.run(ViewClipByShapeTool.toolId, ViewClipDecorationProvider.create());\r\n },\r\n });\r\n }\r\n\r\n public static get sectionToolGroup() {\r\n ViewClipByElementTool.register();\r\n ViewClipByPlaneTool.register();\r\n ViewClipByRangeTool.register();\r\n ViewClipByShapeTool.register();\r\n\r\n return new GroupItemDef({\r\n groupId: \"sectionTools-group\",\r\n labelKey: \"UiFramework:tools.sectionTools\",\r\n iconSpec: \"icon-section-tool\",\r\n isHidden: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n return !!activeContentControl?.viewport?.view.is2d();\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n items: [this.sectionByPlaneCommandItemDef, this.sectionByElementCommandItemDef, this.sectionByRangeCommandItemDef, this.sectionByShapeCommandItemDef],\r\n itemsInColumn: 4,\r\n });\r\n }\r\n\r\n public static get sectionToolGroupWithPanel() {\r\n ViewClipByElementTool.register();\r\n ViewClipByPlaneTool.register();\r\n ViewClipByRangeTool.register();\r\n ViewClipByShapeTool.register();\r\n\r\n return new GroupItemDef({\r\n groupId: \"sectionTools-group-with-panel\",\r\n labelKey: \"UiFramework:tools.sectionTools\",\r\n panelLabelKey: \"UiFramework:tools.sectionPanelLabel\",\r\n iconSpec: \"icon-section-tool\",\r\n isHidden: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n return !!activeContentControl?.viewport?.view.is2d();\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n items: [\r\n new ToolItemDef({\r\n ...this.sectionByPlaneCommandItemDef,\r\n labelKey: \"UiFramework:tools.sectionByPlane\",\r\n }),\r\n new ToolItemDef({\r\n ...this.sectionByElementCommandItemDef,\r\n labelKey: \"UiFramework:tools.sectionByElement\",\r\n }),\r\n new ToolItemDef({\r\n ...this.sectionByRangeCommandItemDef,\r\n labelKey: \"UiFramework:tools.sectionByRange\",\r\n }),\r\n new ToolItemDef({\r\n ...this.sectionByShapeCommandItemDef,\r\n labelKey: \"UiFramework:tools.sectionByShape\",\r\n }),\r\n ],\r\n itemsInColumn: 4,\r\n });\r\n\r\n }\r\n\r\n // note current MeasureDistanceTool is not automatically registered so the app must call MeasureDistanceTool.register();\r\n public static get measureDistanceToolItemDef() {\r\n return new ToolItemDef({\r\n toolId: MeasureDistanceTool.toolId,\r\n iconSpec: MeasureDistanceTool.iconSpec,\r\n label: MeasureDistanceTool.flyover,\r\n description: MeasureDistanceTool.description,\r\n execute: async () => {\r\n return IModelApp.tools.run(MeasureDistanceTool.toolId);\r\n },\r\n });\r\n }\r\n\r\n // note current MeasureLocationTool is not automatically registered so the app must call MeasureLocationTool.register();\r\n public static get measureLocationToolItemDef() {\r\n return new ToolItemDef({\r\n toolId: MeasureLocationTool.toolId,\r\n iconSpec: MeasureLocationTool.iconSpec,\r\n label: MeasureLocationTool.flyover,\r\n description: MeasureLocationTool.description,\r\n execute: async () => {\r\n return IModelApp.tools.run(MeasureLocationTool.toolId);\r\n },\r\n });\r\n }\r\n\r\n public static get measureToolGroup() {\r\n MeasureDistanceTool.register();\r\n MeasureLocationTool.register();\r\n\r\n return new GroupItemDef({\r\n groupId: \"measureTools-group\",\r\n labelKey: \"UiFramework:tools.measureTools\",\r\n iconSpec: \"icon-measure\",\r\n items: [this.measureDistanceToolItemDef, this.measureLocationToolItemDef],\r\n itemsInColumn: 2,\r\n });\r\n }\r\n\r\n public static get clearSelectionItemDef() {\r\n return new CommandItemDef({\r\n commandId: \"UiFramework.ClearSelection\",\r\n iconSpec: \"icon-selection-clear\",\r\n labelKey: \"UiFramework:buttons.clearSelection\",\r\n stateSyncIds: getSelectionContextSyncEventIds(),\r\n stateFunc: selectionContextStateFunc,\r\n isHidden: getIsHiddenIfSelectionNotActive(),\r\n execute: () => {\r\n const iModelConnection = UiFramework.getIModelConnection();\r\n if (iModelConnection) {\r\n iModelConnection.selectionSet.emptyAll();\r\n }\r\n const tool = IModelApp.toolAdmin.primitiveTool;\r\n if (tool)\r\n tool.onRestartTool();\r\n else\r\n IModelApp.toolAdmin.startDefaultTool();// eslint-disable-line @typescript-eslint/no-floating-promises\r\n },\r\n });\r\n }\r\n\r\n public static get restoreFrontstageLayoutCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: RestoreFrontstageLayoutTool.toolId,\r\n iconSpec: RestoreFrontstageLayoutTool.iconSpec,\r\n label: RestoreFrontstageLayoutTool.flyover,\r\n description: RestoreFrontstageLayoutTool.description,\r\n execute: async () => {\r\n return IModelApp.tools.run(RestoreFrontstageLayoutTool.toolId);\r\n },\r\n });\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"CoreToolDefinitions.js","sourceRoot":"","sources":["../../../../src/appui-react/tools/CoreToolDefinitions.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,4CAA4C;AAC5C,wDAI8B;AAC9B,0DAAwF;AACxF,8DAA8D;AAC9D,wD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AmB,GAAG,CAAC,EAAE,UAAU,EAAqC,EAAE,EAAE;IACzF,OAAO,CACL,oBAAC,2BAAY,IAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,GAAI,CAC9D,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Tools\r\n */\r\n\r\nimport * as React from \"react\";\r\n// cSpell:ignore configurableui keyinbrowser\r\nimport {\r\n FitViewTool, FlyViewTool, IModelApp, MeasureDistanceTool, MeasureLocationTool, PanViewTool, RotateViewTool, SelectionTool, ViewClipByElementTool,\r\n ViewClipByPlaneTool, ViewClipByRangeTool, ViewClipByShapeTool, ViewClipDecorationProvider, ViewRedoTool, ViewToggleCameraTool, ViewUndoTool,\r\n WalkViewTool, WindowAreaTool, ZoomViewTool,\r\n} from \"@itwin/core-frontend\";\r\nimport { ConditionalBooleanValue, ConditionalStringValue } from \"@itwin/appui-abstract\";\r\nimport { ToolbarPopupContext } from \"@itwin/components-react\";\r\nimport { PopupButton, PopupButtonChildrenRenderPropArgs } from \"../toolbar/PopupButton\";\r\nimport { ContentViewManager } from \"../content/ContentViewManager\";\r\nimport { KeyinBrowser } from \"../keyinbrowser/KeyinBrowser\";\r\nimport { getIsHiddenIfSelectionNotActive, getSelectionContextSyncEventIds, selectionContextStateFunc } from \"../selection/SelectionContextItemDef\";\r\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\r\nimport { CustomItemDef } from \"../shared/CustomItemDef\";\r\nimport { BaseItemState } from \"../shared/ItemDefBase\";\r\nimport { ToolItemDef } from \"../shared/ToolItemDef\";\r\nimport { SyncUiEventId } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { GroupItemDef } from \"../toolbar/GroupItem\";\r\nimport { RestoreFrontstageLayoutTool } from \"./RestoreLayoutTool\";\r\nimport { UiFramework } from \"../UiFramework\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\n/** Utility Class that provides definitions of tools provided by iModel.js core. These definitions can be used to populate the UI.\r\n * @public\r\n */\r\n// istanbul ignore next\r\nexport class CoreTools {\r\n /** Get the CustomItemDef for PopupButton\r\n * @public\r\n */\r\n public static get keyinBrowserButtonItemDef() {\r\n return new CustomItemDef({\r\n customId: \"uif:keyinbrowser\",\r\n iconSpec: \"icon-process\",\r\n labelKey: \"UiFramework:keyinbrowser.label\",\r\n popupPanelNode: <ToolbarPopupContext.Consumer>\r\n {({ closePanel }) => (\r\n <KeyinBrowser onExecute={closePanel} onCancel={closePanel} />\r\n )}\r\n </ToolbarPopupContext.Consumer>,\r\n // DEPRECATED way\r\n reactElement: (\r\n <PopupButton iconSpec=\"icon-process\" labelKey=\"UiFramework:keyinbrowser.label\">\r\n {this._renderKeyInBrowser}\r\n </PopupButton>\r\n ),\r\n });\r\n }\r\n\r\n // istanbul ignore next\r\n private static _renderKeyInBrowser = ({ closePanel }: PopupButtonChildrenRenderPropArgs) => {\r\n return (\r\n <KeyinBrowser onExecute={closePanel} onCancel={closePanel} />\r\n );\r\n };\r\n\r\n public static get keyinPaletteButtonItemDef() {\r\n return new ToolItemDef({\r\n toolId: \"uif:keyinpalette\",\r\n iconSpec: \"icon-process\",\r\n labelKey: \"UiFramework:keyinbrowser.label\",\r\n execute: () => { IModelApp.uiAdmin.showKeyinPalette(); },\r\n });\r\n }\r\n\r\n public static get fitViewCommand() {\r\n return new ToolItemDef({\r\n toolId: FitViewTool.toolId,\r\n iconSpec: FitViewTool.iconSpec,\r\n label: FitViewTool.flyover,\r\n description: FitViewTool.description,\r\n execute: async () => IModelApp.tools.run(FitViewTool.toolId, IModelApp.viewManager.selectedView, true),\r\n });\r\n }\r\n\r\n public static get windowAreaCommand() {\r\n return new ToolItemDef({\r\n toolId: WindowAreaTool.toolId,\r\n iconSpec: WindowAreaTool.iconSpec,\r\n label: WindowAreaTool.flyover,\r\n description: WindowAreaTool.description,\r\n execute: async () => IModelApp.tools.run(WindowAreaTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get zoomViewCommand() {\r\n return new ToolItemDef({\r\n toolId: ZoomViewTool.toolId,\r\n iconSpec: ZoomViewTool.iconSpec,\r\n label: ZoomViewTool.flyover,\r\n description: ZoomViewTool.description,\r\n execute: async () => IModelApp.tools.run(ZoomViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get panViewCommand() {\r\n return new ToolItemDef({\r\n toolId: PanViewTool.toolId,\r\n iconSpec: PanViewTool.iconSpec,\r\n label: PanViewTool.flyover,\r\n description: PanViewTool.description,\r\n execute: async () => IModelApp.tools.run(PanViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get rotateViewCommand() {\r\n return new ToolItemDef({\r\n toolId: RotateViewTool.toolId,\r\n iconSpec: new ConditionalStringValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl?.viewport?.view.is2d())\r\n return \"icon-rotate-left\";\r\n return \"icon-gyroscope\";\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n label: RotateViewTool.flyover,\r\n description: RotateViewTool.description,\r\n execute: async () => IModelApp.tools.run(RotateViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get walkViewCommand() {\r\n return new ToolItemDef({\r\n toolId: WalkViewTool.toolId,\r\n iconSpec: WalkViewTool.iconSpec,\r\n label: WalkViewTool.flyover,\r\n description: WalkViewTool.description,\r\n isHidden: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n return !!activeContentControl?.viewport?.view.is2d();\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n execute: async () => IModelApp.tools.run(WalkViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get selectElementCommand() {\r\n return new ToolItemDef({\r\n toolId: SelectionTool.toolId,\r\n iconSpec: SelectionTool.iconSpec,\r\n label: SelectionTool.flyover,\r\n description: SelectionTool.description,\r\n execute: async () => IModelApp.tools.run(SelectionTool.toolId),\r\n });\r\n }\r\n\r\n public static get toggleCameraViewCommand() {\r\n return new ToolItemDef({\r\n toolId: ViewToggleCameraTool.toolId,\r\n iconSpec: new ConditionalStringValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl?.viewport?.view.is3d() && activeContentControl?.viewport?.isCameraOn)\r\n return \"icon-camera-animation\";\r\n return \"icon-camera-animation-disabled\";\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n label: ViewToggleCameraTool.flyover,\r\n description: ViewToggleCameraTool.description,\r\n isHidden: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n return !(activeContentControl?.viewport?.view.is3d() && activeContentControl?.viewport?.view.supportsCamera());\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n execute: async () => IModelApp.tools.run(ViewToggleCameraTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n public static get flyViewCommand() {\r\n return new ToolItemDef({\r\n toolId: FlyViewTool.toolId,\r\n iconSpec: FlyViewTool.iconSpec,\r\n label: FlyViewTool.flyover,\r\n description: FlyViewTool.description,\r\n execute: async () => IModelApp.tools.run(FlyViewTool.toolId, IModelApp.viewManager.selectedView),\r\n });\r\n }\r\n\r\n // TODO - Need to provide a sync message that is fired when the Undo/Redo button needs to be refreshed in the\r\n // active view.\r\n public static get viewUndoCommand() {\r\n return new ToolItemDef({\r\n toolId: ViewUndoTool.toolId,\r\n isDisabled: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl && activeContentControl.viewport)\r\n return !activeContentControl.viewport.isUndoPossible;\r\n return false;\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n iconSpec: ViewUndoTool.iconSpec,\r\n label: ViewUndoTool.flyover,\r\n description: ViewUndoTool.description,\r\n execute: async () =>\r\n IModelApp.tools.run(ViewUndoTool.toolId, IModelApp.viewManager.selectedView)\r\n ,\r\n stateSyncIds: [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged],\r\n stateFunc: (currentState: Readonly<BaseItemState>): BaseItemState => {\r\n const returnState: BaseItemState = { ...currentState };\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl && activeContentControl.viewport)\r\n returnState.isEnabled = activeContentControl.viewport.isUndoPossible;\r\n return returnState;\r\n },\r\n });\r\n }\r\n\r\n public static get viewRedoCommand() {\r\n return new ToolItemDef({\r\n toolId: ViewRedoTool.toolId,\r\n iconSpec: ViewRedoTool.iconSpec,\r\n label: ViewRedoTool.flyover,\r\n description: ViewRedoTool.description,\r\n execute: async () => IModelApp.tools.run(ViewRedoTool.toolId, IModelApp.viewManager.selectedView),\r\n isDisabled: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl && activeContentControl.viewport)\r\n return !activeContentControl.viewport.isRedoPossible;\r\n return false;\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n stateSyncIds: [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged],\r\n stateFunc: (currentState: Readonly<BaseItemState>): BaseItemState => {\r\n const returnState: BaseItemState = { ...currentState };\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n if (activeContentControl && activeContentControl.viewport)\r\n returnState.isEnabled = activeContentControl.viewport.isRedoPossible;\r\n return returnState;\r\n },\r\n });\r\n }\r\n\r\n private static turnOnClipVolume() {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (!vp || !vp.view.is3d())\r\n return;\r\n\r\n // Turn on clip volume flag for section tools\r\n vp.viewFlags = vp.viewFlags.with(\"clipVolume\", true);\r\n }\r\n\r\n // note current ViewClipByPlaneTool is not automatically registered so the app must call ViewClipByPlaneTool.register();\r\n public static get sectionByPlaneCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: ViewClipByPlaneTool.toolId,\r\n iconSpec: ViewClipByPlaneTool.iconSpec,\r\n label: ViewClipByPlaneTool.flyover,\r\n description: ViewClipByPlaneTool.description,\r\n execute: async () => {\r\n this.turnOnClipVolume();\r\n return IModelApp.tools.run(ViewClipByPlaneTool.toolId, ViewClipDecorationProvider.create());\r\n },\r\n });\r\n }\r\n\r\n // note current ViewClipByElementTool is not automatically registered so the app must call ViewClipByElementTool.register();\r\n public static get sectionByElementCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: ViewClipByElementTool.toolId,\r\n iconSpec: ViewClipByElementTool.iconSpec,\r\n label: ViewClipByElementTool.flyover,\r\n description: ViewClipByElementTool.description,\r\n execute: async () => {\r\n this.turnOnClipVolume();\r\n return IModelApp.tools.run(ViewClipByElementTool.toolId, ViewClipDecorationProvider.create());\r\n },\r\n });\r\n }\r\n\r\n // note current ViewClipByRangeTool is not automatically registered so the app must call ViewClipByRangeTool.register();\r\n public static get sectionByRangeCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: ViewClipByRangeTool.toolId,\r\n iconSpec: ViewClipByRangeTool.iconSpec,\r\n label: ViewClipByRangeTool.flyover,\r\n description: ViewClipByRangeTool.description,\r\n execute: async () => {\r\n this.turnOnClipVolume();\r\n return IModelApp.tools.run(ViewClipByRangeTool.toolId, ViewClipDecorationProvider.create());\r\n },\r\n });\r\n }\r\n\r\n // note current ViewClipByShapeTool is not automatically registered so the app must call ViewClipByShapeTool.register();\r\n public static get sectionByShapeCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: ViewClipByShapeTool.toolId,\r\n iconSpec: ViewClipByShapeTool.iconSpec,\r\n label: ViewClipByShapeTool.flyover,\r\n description: ViewClipByShapeTool.description,\r\n execute: async () => {\r\n this.turnOnClipVolume();\r\n return IModelApp.tools.run(ViewClipByShapeTool.toolId, ViewClipDecorationProvider.create());\r\n },\r\n });\r\n }\r\n\r\n public static get sectionToolGroup() {\r\n ViewClipByElementTool.register();\r\n ViewClipByPlaneTool.register();\r\n ViewClipByRangeTool.register();\r\n ViewClipByShapeTool.register();\r\n\r\n return new GroupItemDef({\r\n groupId: \"sectionTools-group\",\r\n labelKey: \"UiFramework:tools.sectionTools\",\r\n iconSpec: \"icon-section-tool\",\r\n isHidden: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n return !!activeContentControl?.viewport?.view.is2d();\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n items: [this.sectionByPlaneCommandItemDef, this.sectionByElementCommandItemDef, this.sectionByRangeCommandItemDef, this.sectionByShapeCommandItemDef],\r\n itemsInColumn: 4,\r\n });\r\n }\r\n\r\n public static get sectionToolGroupWithPanel() {\r\n ViewClipByElementTool.register();\r\n ViewClipByPlaneTool.register();\r\n ViewClipByRangeTool.register();\r\n ViewClipByShapeTool.register();\r\n\r\n return new GroupItemDef({\r\n groupId: \"sectionTools-group-with-panel\",\r\n labelKey: \"UiFramework:tools.sectionTools\",\r\n panelLabelKey: \"UiFramework:tools.sectionPanelLabel\",\r\n iconSpec: \"icon-section-tool\",\r\n isHidden: new ConditionalBooleanValue(() => {\r\n const activeContentControl = ContentViewManager.getActiveContentControl();\r\n return !!activeContentControl?.viewport?.view.is2d();\r\n }, [SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SyncUiEventId.ViewStateChanged]),\r\n items: [\r\n new ToolItemDef({\r\n ...this.sectionByPlaneCommandItemDef,\r\n labelKey: \"UiFramework:tools.sectionByPlane\",\r\n }),\r\n new ToolItemDef({\r\n ...this.sectionByElementCommandItemDef,\r\n labelKey: \"UiFramework:tools.sectionByElement\",\r\n }),\r\n new ToolItemDef({\r\n ...this.sectionByRangeCommandItemDef,\r\n labelKey: \"UiFramework:tools.sectionByRange\",\r\n }),\r\n new ToolItemDef({\r\n ...this.sectionByShapeCommandItemDef,\r\n labelKey: \"UiFramework:tools.sectionByShape\",\r\n }),\r\n ],\r\n itemsInColumn: 4,\r\n });\r\n\r\n }\r\n\r\n // note current MeasureDistanceTool is not automatically registered so the app must call MeasureDistanceTool.register();\r\n public static get measureDistanceToolItemDef() {\r\n return new ToolItemDef({\r\n toolId: MeasureDistanceTool.toolId,\r\n iconSpec: MeasureDistanceTool.iconSpec,\r\n label: MeasureDistanceTool.flyover,\r\n description: MeasureDistanceTool.description,\r\n execute: async () => {\r\n return IModelApp.tools.run(MeasureDistanceTool.toolId);\r\n },\r\n });\r\n }\r\n\r\n // note current MeasureLocationTool is not automatically registered so the app must call MeasureLocationTool.register();\r\n public static get measureLocationToolItemDef() {\r\n return new ToolItemDef({\r\n toolId: MeasureLocationTool.toolId,\r\n iconSpec: MeasureLocationTool.iconSpec,\r\n label: MeasureLocationTool.flyover,\r\n description: MeasureLocationTool.description,\r\n execute: async () => {\r\n return IModelApp.tools.run(MeasureLocationTool.toolId);\r\n },\r\n });\r\n }\r\n\r\n public static get measureToolGroup() {\r\n MeasureDistanceTool.register();\r\n MeasureLocationTool.register();\r\n\r\n return new GroupItemDef({\r\n groupId: \"measureTools-group\",\r\n labelKey: \"UiFramework:tools.measureTools\",\r\n iconSpec: \"icon-measure\",\r\n items: [this.measureDistanceToolItemDef, this.measureLocationToolItemDef],\r\n itemsInColumn: 2,\r\n });\r\n }\r\n\r\n public static get clearSelectionItemDef() {\r\n return new CommandItemDef({\r\n commandId: \"UiFramework.ClearSelection\",\r\n iconSpec: \"icon-selection-clear\",\r\n labelKey: \"UiFramework:buttons.clearSelection\",\r\n stateSyncIds: getSelectionContextSyncEventIds(),\r\n stateFunc: selectionContextStateFunc,\r\n isHidden: getIsHiddenIfSelectionNotActive(),\r\n execute: async () => {\r\n const iModelConnection = UiFramework.getIModelConnection();\r\n if (iModelConnection) {\r\n iModelConnection.selectionSet.emptyAll();\r\n }\r\n const tool = IModelApp.toolAdmin.primitiveTool;\r\n if (tool)\r\n await tool.onRestartTool();\r\n else\r\n await IModelApp.toolAdmin.startDefaultTool();\r\n },\r\n });\r\n }\r\n\r\n public static get restoreFrontstageLayoutCommandItemDef() {\r\n return new ToolItemDef({\r\n toolId: RestoreFrontstageLayoutTool.toolId,\r\n iconSpec: RestoreFrontstageLayoutTool.iconSpec,\r\n label: RestoreFrontstageLayoutTool.flyover,\r\n description: RestoreFrontstageLayoutTool.description,\r\n execute: async () => {\r\n return IModelApp.tools.run(RestoreFrontstageLayoutTool.toolId);\r\n },\r\n });\r\n }\r\n}\r\n"]}
@@ -22,7 +22,7 @@ export declare enum ZoneLocation {
22
22
  BottomRight = 9
23
23
  }
24
24
  /** Properties of a [[Zone]] component
25
- * @public @deprecated
25
+ * @public
26
26
  */
27
27
  export interface ZoneProps extends CommonProps {
28
28
  /** Default Zone state. Controls how the Zone is initially displayed. Defaults to ZoneState.Open. */
@@ -68,7 +68,7 @@ export interface ZoneRuntimeProps {
68
68
  export declare function getStableWidgetProps(widgetProps: WidgetProps, stableId: string): WidgetProps;
69
69
  /** Zone React component.
70
70
  * A Zone is a standard area on the screen for users to read and interact with data applicable to the current task. Each Zone has a defined purpose.
71
- * @public @deprecated
71
+ * @public
72
72
  */
73
73
  export declare class Zone extends React.Component<ZoneProps> {
74
74
  constructor(props: ZoneProps);
@@ -45,7 +45,7 @@ function getStableWidgetProps(widgetProps, stableId) {
45
45
  exports.getStableWidgetProps = getStableWidgetProps;
46
46
  /** Zone React component.
47
47
  * A Zone is a standard area on the screen for users to read and interact with data applicable to the current task. Each Zone has a defined purpose.
48
- * @public @deprecated
48
+ * @public
49
49
  */
50
50
  class Zone extends React.Component {
51
51
  constructor(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"Zone.js","sourceRoot":"","sources":["../../../../src/appui-react/zones/Zone.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,+BAA+B;AAC/B,0DAAoD;AAEpD,kEAGmC;AACnC,mFAAoF;AAEpF,uEAAoE;AAEpE,oDAA0F;AAG1F,mDAAgD;AAChD,mDAAgD;AAChD,sEAAmE;AAGnE;;GAEG;AACH,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qDAAW,CAAA;IACX,yDAAa,CAAA;IACb,uDAAY,CAAA;IACZ,2DAAc,CAAA;IACd,6DAAe,CAAA;IACf,2DAAc,CAAA;IACd,+DAAgB,CAAA;IAChB,6DAAe,CAAA;AACjB,CAAC,EATW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QASvB;AAiDD,gBAAgB;AAChB,SAAgB,oBAAoB,CAAC,WAAwB,EAAE,QAAgB;IAC7E,IAAI,KAAK,GAAG,WAAW,CAAC;IACxB,IAAI,KAAK,CAAC,EAAE,KAAK,SAAS;QACxB,KAAK,GAAG;YACN,GAAG,KAAK;YACR,EAAE,EAAE,QAAQ;SACb,CAAC;IACJ,OAAO,KAAK,CAAC;AACf,CAAC;AARD,oDAQC;AAED;;;GAGG;AACH,MAAa,IAAK,SAAQ,KAAK,CAAC,SAAoB;IAClD,YAAY,KAAgB;QAC1B,KAAK,CAAC,KAAK,CAAC,CAAC;QA0HP,mCAA8B,GAAG,CAAC,IAAiC,EAAE,EAAE;YAC7E,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;YAC7C,IAAI,CAAC,YAAY;gBACf,OAAO;YAET,MAAM,SAAS,GAAG,IAAI,CAAC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AAK,CAAC,KAAK,EACvB,cAAc,EAAE,YAAY,CAAC,YAAY,EACzC,mBAAmB,EAAE,YAAY,CAAC,mBAAmB,EACrD,MAAM,EAAE,YAAY,CAAC,MAAM,EAC3B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,YAAY,CAAC,UAAU,EACnC,mBAAmB,EAAE,YAAY,CAAC,mBAAmB,EACrD,IAAI,EAAE,YAAY,CAAC,IAAI,GACvB,CACH,CAAC;IACJ,CAAC;IAiCO,iBAAiB,CAAC,SAAoB;QAC5C,qBAAqB;QACrB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY;YAC1B,OAAO,SAAS,CAAC;QAEnB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE;YACtD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACxE,IAAI,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAe,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC;gBAC7E,OAAO,GAAG,CAAC;SACd;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAxKD,oBAwKC;AAED,gBAAgB;AACT,MAAM,gCAAgC,GAAG,CAAC,KAAqC,EAA2C,EAAE;IACjI,OAAO,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;AACnC,CAAC,CAAC;AAFW,QAAA,gCAAgC,oCAE3C","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Zone\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { WidgetState } from \"@itwin/appui-abstract\";\r\nimport { CommonProps, RectangleProps } from \"@itwin/core-react\";\r\nimport {\r\n DisabledResizeHandles, DraggedWidgetManagerProps, ToolSettingsWidgetManagerProps, ToolSettingsWidgetMode, WidgetManagerProps, WidgetZoneId,\r\n ZoneManagerProps, ZoneTargetType,\r\n} from \"@itwin/appui-layout-react\";\r\nimport { ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\nimport { TargetChangeHandler, WidgetChangeHandler, ZoneDefProvider } from \"../frontstage/FrontstageComposer\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { StatusBarWidgetControl } from \"../statusbar/StatusBarWidgetControl\";\r\nimport { WidgetDef, WidgetStateChangedEventArgs, WidgetType } from \"../widgets/WidgetDef\";\r\nimport { WidgetProps } from \"../widgets/WidgetProps\";\r\nimport { WidgetTabs } from \"../widgets/WidgetStack\";\r\nimport { FrameworkZone } from \"./FrameworkZone\";\r\nimport { StatusBarZone } from \"./StatusBarZone\";\r\nimport { ToolSettingsZone } from \"./toolsettings/ToolSettingsZone\";\r\nimport { ZoneDef, ZoneState } from \"./ZoneDef\";\r\n\r\n/** Enum for [[Zone]] Location.\r\n * @public @deprecated\r\n */\r\nexport enum ZoneLocation {\r\n TopLeft = 1,\r\n TopCenter = 2,\r\n TopRight = 3,\r\n CenterLeft = 4,\r\n CenterRight = 6,\r\n BottomLeft = 7,\r\n BottomCenter = 8,\r\n BottomRight = 9,\r\n}\r\n\r\n/** Properties of a [[Zone]] component\r\n * @public @deprecated\r\n */\r\nexport interface ZoneProps extends CommonProps {\r\n /** Default Zone state. Controls how the Zone is initially displayed. Defaults to ZoneState.Open. */\r\n defaultState?: ZoneState;\r\n /** Indicates if other Zones may be merged with this Zone. Defaults to false. */\r\n allowsMerging?: boolean;\r\n /** Any application data to attach to this Zone. */\r\n applicationData?: any;\r\n /** Indicates with which other zone to merge. */\r\n mergeWithZone?: ZoneLocation;\r\n /** Describes preferred initial width of the zone. */\r\n initialWidth?: number;\r\n\r\n /** Properties for the Widgets in this Zone.\r\n * @note Stable `WidgetProps[\"id\"]` is generated if id is not provided to correctly save and restore App layout.\r\n * [[Frontstage]] version must be increased when Widget location is changed or new widgets are added/removed.\r\n */\r\n widgets?: Array<React.ReactElement<WidgetProps>>;\r\n\r\n /** @internal */\r\n runtimeProps?: ZoneRuntimeProps;\r\n}\r\n\r\n/** Runtime Properties for the [[Zone]] component.\r\n * @internal\r\n */\r\nexport interface ZoneRuntimeProps {\r\n activeTabIndex: number;\r\n disabledResizeHandles: DisabledResizeHandles | undefined;\r\n draggedWidget: DraggedWidgetManagerProps | undefined;\r\n dropTarget: ZoneTargetType | undefined; // eslint-disable-line deprecation/deprecation\r\n getWidgetContentRef: (id: WidgetZoneId) => React.Ref<HTMLDivElement>; // eslint-disable-line deprecation/deprecation\r\n ghostOutline: RectangleProps | undefined;\r\n isHidden: boolean;\r\n isInFooterMode: boolean;\r\n openWidgetId: WidgetZoneId | undefined; // eslint-disable-line deprecation/deprecation\r\n targetChangeHandler: TargetChangeHandler; // eslint-disable-line deprecation/deprecation\r\n widget: WidgetManagerProps | undefined;\r\n widgetTabs: WidgetTabs;\r\n widgetChangeHandler: WidgetChangeHandler; // eslint-disable-line deprecation/deprecation\r\n zoneDefProvider: ZoneDefProvider;\r\n zoneDef: ZoneDef;\r\n zone: ZoneManagerProps;\r\n}\r\n\r\n/** @internal */\r\nexport function getStableWidgetProps(widgetProps: WidgetProps, stableId: string) {\r\n let props = widgetProps;\r\n if (props.id === undefined)\r\n props = {\r\n ...props,\r\n id: stableId,\r\n };\r\n return props;\r\n}\r\n\r\n/** Zone React component.\r\n * A Zone is a standard area on the screen for users to read and interact with data applicable to the current task. Each Zone has a defined purpose.\r\n * @public @deprecated\r\n */\r\nexport class Zone extends React.Component<ZoneProps> {\r\n constructor(props: ZoneProps) {\r\n super(props);\r\n }\r\n\r\n public static initializeZoneDef(zoneDef: ZoneDef, props: ZoneProps): void {\r\n zoneDef.initializeFromProps(props);\r\n\r\n // istanbul ignore else\r\n if (props.widgets) {\r\n props.widgets.forEach((widgetNode, index) => {\r\n // istanbul ignore if\r\n if (!React.isValidElement(widgetNode))\r\n return;\r\n\r\n const stableId = `uifw-z-${ZoneLocation[zoneDef.zoneLocation]}-${index}`;\r\n const stableProps = getStableWidgetProps(widgetNode.props, stableId);\r\n const widgetDef = new WidgetDef(stableProps);\r\n zoneDef.addWidgetDef(widgetDef);\r\n });\r\n }\r\n }\r\n\r\n public override componentDidMount(): void {\r\n FrontstageManager.onWidgetStateChangedEvent.addListener(this._handleWidgetStateChangedEvent);\r\n }\r\n\r\n public override componentWillUnmount(): void {\r\n FrontstageManager.onWidgetStateChangedEvent.removeListener(this._handleWidgetStateChangedEvent);\r\n }\r\n\r\n public override render(): React.ReactNode {\r\n const { runtimeProps } = this.props;\r\n\r\n if (!runtimeProps)\r\n return null;\r\n\r\n const { zoneDef } = runtimeProps;\r\n\r\n let widgetElement: React.ReactNode;\r\n // istanbul ignore else\r\n if (runtimeProps.zone.widgets.length === 1) {\r\n if (zoneDef.isToolSettings && isToolSettingsWidgetManagerProps(runtimeProps.widget) && runtimeProps.widget.mode === ToolSettingsWidgetMode.TitleBar) {\r\n const widgetDef = zoneDef.getSingleWidgetDef();\r\n const isClosed = widgetDef ? (widgetDef.state === WidgetState.Closed || widgetDef.state === WidgetState.Hidden)\r\n : /* istanbul ignore next */ false;\r\n return (\r\n <ToolSettingsZone\r\n className={this.props.className}\r\n dropTarget={runtimeProps.dropTarget}\r\n getWidgetContentRef={runtimeProps.getWidgetContentRef}\r\n isClosed={isClosed}\r\n isHidden={runtimeProps.isHidden}\r\n lastPosition={runtimeProps.draggedWidget && /* istanbul ignore next */ runtimeProps.draggedWidget.lastPosition}\r\n style={this.props.style}\r\n targetChangeHandler={runtimeProps.targetChangeHandler}\r\n targetedBounds={runtimeProps.ghostOutline}\r\n widgetChangeHandler={runtimeProps.widgetChangeHandler}\r\n zone={runtimeProps.zone}\r\n />\r\n );\r\n } else if (zoneDef.isStatusBar) {\r\n // istanbul ignore next\r\n if (runtimeProps.zone.id !== 8)\r\n throw new TypeError();\r\n\r\n let widgetControl: StatusBarWidgetControl | undefined;\r\n const widgetDef = zoneDef.getSingleWidgetDef();\r\n\r\n // istanbul ignore else\r\n if (widgetDef)\r\n widgetControl = widgetDef.getWidgetControl(ConfigurableUiControlType.StatusBarWidget) as StatusBarWidgetControl;\r\n\r\n return (\r\n <StatusBarZone\r\n className={this.props.className}\r\n dropTarget={runtimeProps.dropTarget}\r\n isHidden={runtimeProps.isHidden}\r\n isInFooterMode={runtimeProps.isInFooterMode}\r\n style={this.props.style}\r\n targetChangeHandler={runtimeProps.targetChangeHandler}\r\n targetedBounds={runtimeProps.ghostOutline}\r\n widgetChangeHandler={runtimeProps.widgetChangeHandler}\r\n widgetControl={widgetControl}\r\n zoneProps={runtimeProps.zone}\r\n />\r\n );\r\n }\r\n\r\n const zDef = runtimeProps.zoneDefProvider.getZoneDef(runtimeProps.zone.widgets[0]);\r\n // istanbul ignore if\r\n if (!zDef) {\r\n widgetElement = null;\r\n } else if (zDef.widgetCount === 1 && zDef.widgetDefs[0].widgetType !== WidgetType.Rectangular) {\r\n /** Return free-form nzWidgetProps */\r\n const widgetDef = zDef.widgetDefs[0];\r\n widgetElement = (widgetDef.isVisible) ? widgetDef.reactNode : /* istanbul ignore next */ null;\r\n }\r\n }\r\n\r\n return (\r\n <FrameworkZone\r\n activeTabIndex={runtimeProps.activeTabIndex}\r\n className={this.props.className}\r\n disabledResizeHandles={runtimeProps.disabledResizeHandles}\r\n draggedWidget={runtimeProps.draggedWidget}\r\n dropTarget={runtimeProps.dropTarget}\r\n fillZone={zoneDef.shouldFillZone}\r\n getWidgetContentRef={runtimeProps.getWidgetContentRef}\r\n isHidden={runtimeProps.isHidden}\r\n isInFooterMode={runtimeProps.isInFooterMode}\r\n openWidgetId={runtimeProps.openWidgetId}\r\n style={this.props.style}\r\n targetedBounds={runtimeProps.ghostOutline}\r\n targetChangeHandler={runtimeProps.targetChangeHandler}\r\n widget={runtimeProps.widget}\r\n widgetElement={widgetElement}\r\n widgetTabs={runtimeProps.widgetTabs}\r\n widgetChangeHandler={runtimeProps.widgetChangeHandler}\r\n zone={runtimeProps.zone}\r\n />\r\n );\r\n }\r\n\r\n private _handleWidgetStateChangedEvent = (args: WidgetStateChangedEventArgs) => {\r\n const runtimeProps = this.props.runtimeProps;\r\n if (!runtimeProps)\r\n return;\r\n\r\n const widgetDef = args.widgetDef;\r\n const id = this.getWidgetIdForDef(widgetDef);\r\n if (!id)\r\n return;\r\n\r\n const zoneDef = runtimeProps.zoneDefProvider.getZoneDef(id);\r\n // istanbul ignore if\r\n if (!zoneDef)\r\n return;\r\n\r\n const visibleWidgets = zoneDef.widgetDefs.filter((wd) => wd.isVisible || wd === widgetDef);\r\n for (let index = 0; index < visibleWidgets.length; index++) {\r\n const wDef = visibleWidgets[index];\r\n if (wDef !== widgetDef)\r\n continue;\r\n\r\n if (widgetDef.state === WidgetState.Hidden && index < runtimeProps.activeTabIndex && id === runtimeProps.openWidgetId) {\r\n // Need to decrease active tab index, since removed tab was rendered before active tab and we want to maintain active tab.\r\n runtimeProps.widgetChangeHandler.handleTabClick(id, runtimeProps.activeTabIndex - 1);\r\n break;\r\n }\r\n runtimeProps.widgetChangeHandler.handleWidgetStateChange(id, index, widgetDef.state === WidgetState.Open);\r\n break;\r\n }\r\n };\r\n\r\n private getWidgetIdForDef(widgetDef: WidgetDef): WidgetZoneId | undefined { // eslint-disable-line deprecation/deprecation\r\n // istanbul ignore if\r\n if (!this.props.runtimeProps)\r\n return undefined;\r\n\r\n for (const wId of this.props.runtimeProps.zone.widgets) {\r\n const zoneDef = this.props.runtimeProps.zoneDefProvider.getZoneDef(wId);\r\n if (zoneDef && zoneDef.widgetDefs.some((wDef: WidgetDef) => wDef === widgetDef))\r\n return wId;\r\n }\r\n\r\n return undefined;\r\n }\r\n}\r\n\r\n/** @internal */\r\nexport const isToolSettingsWidgetManagerProps = (props: WidgetManagerProps | undefined): props is ToolSettingsWidgetManagerProps => {\r\n return !!props && props.id === 2;\r\n};\r\n"]}
1
+ {"version":3,"file":"Zone.js","sourceRoot":"","sources":["../../../../src/appui-react/zones/Zone.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,+BAA+B;AAC/B,0DAAoD;AAEpD,kEAGmC;AACnC,mFAAoF;AAEpF,uEAAoE;AAEpE,oDAA0F;AAG1F,mDAAgD;AAChD,mDAAgD;AAChD,sEAAmE;AAGnE;;GAEG;AACH,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qDAAW,CAAA;IACX,yDAAa,CAAA;IACb,uDAAY,CAAA;IACZ,2DAAc,CAAA;IACd,6DAAe,CAAA;IACf,2DAAc,CAAA;IACd,+DAAgB,CAAA;IAChB,6DAAe,CAAA;AACjB,CAAC,EATW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QASvB;AAiDD,gBAAgB;AAChB,SAAgB,oBAAoB,CAAC,WAAwB,EAAE,QAAgB;IAC7E,IAAI,KAAK,GAAG,WAAW,CAAC;IACxB,IAAI,KAAK,CAAC,EAAE,KAAK,SAAS;QACxB,KAAK,GAAG;YACN,GAAG,KAAK;YACR,EAAE,EAAE,QAAQ;SACb,CAAC;IACJ,OAAO,KAAK,CAAC;AACf,CAAC;AARD,oDAQC;AAED;;;GAGG;AACH,MAAa,IAAK,SAAQ,KAAK,CAAC,SAAoB;IAClD,YAAY,KAAgB;QAC1B,KAAK,CAAC,KAAK,CAAC,CAAC;QA0HP,mCAA8B,GAAG,CAAC,IAAiC,EAAE,EAAE;YAC7E,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;YAC7C,IAAI,CAAC,YAAY;gBACf,OAAO;YAET,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC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AAC,mBAAmB,EACrD,MAAM,EAAE,YAAY,CAAC,MAAM,EAC3B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,YAAY,CAAC,UAAU,EACnC,mBAAmB,EAAE,YAAY,CAAC,mBAAmB,EACrD,IAAI,EAAE,YAAY,CAAC,IAAI,GACvB,CACH,CAAC;IACJ,CAAC;IAiCO,iBAAiB,CAAC,SAAoB;QAC5C,qBAAqB;QACrB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY;YAC1B,OAAO,SAAS,CAAC;QAEnB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE;YACtD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACxE,IAAI,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAe,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC;gBAC7E,OAAO,GAAG,CAAC;SACd;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAxKD,oBAwKC;AAED,gBAAgB;AACT,MAAM,gCAAgC,GAAG,CAAC,KAAqC,EAA2C,EAAE;IACjI,OAAO,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;AACnC,CAAC,CAAC;AAFW,QAAA,gCAAgC,oCAE3C","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Zone\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { WidgetState } from \"@itwin/appui-abstract\";\r\nimport { CommonProps, RectangleProps } from \"@itwin/core-react\";\r\nimport {\r\n DisabledResizeHandles, DraggedWidgetManagerProps, ToolSettingsWidgetManagerProps, ToolSettingsWidgetMode, WidgetManagerProps, WidgetZoneId,\r\n ZoneManagerProps, ZoneTargetType,\r\n} from \"@itwin/appui-layout-react\";\r\nimport { ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\nimport { TargetChangeHandler, WidgetChangeHandler, ZoneDefProvider } from \"../frontstage/FrontstageComposer\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { StatusBarWidgetControl } from \"../statusbar/StatusBarWidgetControl\";\r\nimport { WidgetDef, WidgetStateChangedEventArgs, WidgetType } from \"../widgets/WidgetDef\";\r\nimport { WidgetProps } from \"../widgets/WidgetProps\";\r\nimport { WidgetTabs } from \"../widgets/WidgetStack\";\r\nimport { FrameworkZone } from \"./FrameworkZone\";\r\nimport { StatusBarZone } from \"./StatusBarZone\";\r\nimport { ToolSettingsZone } from \"./toolsettings/ToolSettingsZone\";\r\nimport { ZoneDef, ZoneState } from \"./ZoneDef\";\r\n\r\n/** Enum for [[Zone]] Location.\r\n * @public @deprecated\r\n */\r\nexport enum ZoneLocation {\r\n TopLeft = 1,\r\n TopCenter = 2,\r\n TopRight = 3,\r\n CenterLeft = 4,\r\n CenterRight = 6,\r\n BottomLeft = 7,\r\n BottomCenter = 8,\r\n BottomRight = 9,\r\n}\r\n\r\n/** Properties of a [[Zone]] component\r\n * @public\r\n */\r\nexport interface ZoneProps extends CommonProps {\r\n /** Default Zone state. Controls how the Zone is initially displayed. Defaults to ZoneState.Open. */\r\n defaultState?: ZoneState;\r\n /** Indicates if other Zones may be merged with this Zone. Defaults to false. */\r\n allowsMerging?: boolean;\r\n /** Any application data to attach to this Zone. */\r\n applicationData?: any;\r\n /** Indicates with which other zone to merge. */\r\n mergeWithZone?: ZoneLocation;\r\n /** Describes preferred initial width of the zone. */\r\n initialWidth?: number;\r\n\r\n /** Properties for the Widgets in this Zone.\r\n * @note Stable `WidgetProps[\"id\"]` is generated if id is not provided to correctly save and restore App layout.\r\n * [[Frontstage]] version must be increased when Widget location is changed or new widgets are added/removed.\r\n */\r\n widgets?: Array<React.ReactElement<WidgetProps>>;\r\n\r\n /** @internal */\r\n runtimeProps?: ZoneRuntimeProps;\r\n}\r\n\r\n/** Runtime Properties for the [[Zone]] component.\r\n * @internal\r\n */\r\nexport interface ZoneRuntimeProps {\r\n activeTabIndex: number;\r\n disabledResizeHandles: DisabledResizeHandles | undefined;\r\n draggedWidget: DraggedWidgetManagerProps | undefined;\r\n dropTarget: ZoneTargetType | undefined; // eslint-disable-line deprecation/deprecation\r\n getWidgetContentRef: (id: WidgetZoneId) => React.Ref<HTMLDivElement>; // eslint-disable-line deprecation/deprecation\r\n ghostOutline: RectangleProps | undefined;\r\n isHidden: boolean;\r\n isInFooterMode: boolean;\r\n openWidgetId: WidgetZoneId | undefined; // eslint-disable-line deprecation/deprecation\r\n targetChangeHandler: TargetChangeHandler; // eslint-disable-line deprecation/deprecation\r\n widget: WidgetManagerProps | undefined;\r\n widgetTabs: WidgetTabs;\r\n widgetChangeHandler: WidgetChangeHandler; // eslint-disable-line deprecation/deprecation\r\n zoneDefProvider: ZoneDefProvider;\r\n zoneDef: ZoneDef;\r\n zone: ZoneManagerProps;\r\n}\r\n\r\n/** @internal */\r\nexport function getStableWidgetProps(widgetProps: WidgetProps, stableId: string) {\r\n let props = widgetProps;\r\n if (props.id === undefined)\r\n props = {\r\n ...props,\r\n id: stableId,\r\n };\r\n return props;\r\n}\r\n\r\n/** Zone React component.\r\n * A Zone is a standard area on the screen for users to read and interact with data applicable to the current task. Each Zone has a defined purpose.\r\n * @public\r\n */\r\nexport class Zone extends React.Component<ZoneProps> {\r\n constructor(props: ZoneProps) {\r\n super(props);\r\n }\r\n\r\n public static initializeZoneDef(zoneDef: ZoneDef, props: ZoneProps): void {\r\n zoneDef.initializeFromProps(props);\r\n\r\n // istanbul ignore else\r\n if (props.widgets) {\r\n props.widgets.forEach((widgetNode, index) => {\r\n // istanbul ignore if\r\n if (!React.isValidElement(widgetNode))\r\n return;\r\n\r\n const stableId = `uifw-z-${ZoneLocation[zoneDef.zoneLocation]}-${index}`;\r\n const stableProps = getStableWidgetProps(widgetNode.props, stableId);\r\n const widgetDef = new WidgetDef(stableProps);\r\n zoneDef.addWidgetDef(widgetDef);\r\n });\r\n }\r\n }\r\n\r\n public override componentDidMount(): void {\r\n FrontstageManager.onWidgetStateChangedEvent.addListener(this._handleWidgetStateChangedEvent);\r\n }\r\n\r\n public override componentWillUnmount(): void {\r\n FrontstageManager.onWidgetStateChangedEvent.removeListener(this._handleWidgetStateChangedEvent);\r\n }\r\n\r\n public override render(): React.ReactNode {\r\n const { runtimeProps } = this.props;\r\n\r\n if (!runtimeProps)\r\n return null;\r\n\r\n const { zoneDef } = runtimeProps;\r\n\r\n let widgetElement: React.ReactNode;\r\n // istanbul ignore else\r\n if (runtimeProps.zone.widgets.length === 1) {\r\n if (zoneDef.isToolSettings && isToolSettingsWidgetManagerProps(runtimeProps.widget) && runtimeProps.widget.mode === ToolSettingsWidgetMode.TitleBar) {\r\n const widgetDef = zoneDef.getSingleWidgetDef();\r\n const isClosed = widgetDef ? (widgetDef.state === WidgetState.Closed || widgetDef.state === WidgetState.Hidden)\r\n : /* istanbul ignore next */ false;\r\n return (\r\n <ToolSettingsZone\r\n className={this.props.className}\r\n dropTarget={runtimeProps.dropTarget}\r\n getWidgetContentRef={runtimeProps.getWidgetContentRef}\r\n isClosed={isClosed}\r\n isHidden={runtimeProps.isHidden}\r\n lastPosition={runtimeProps.draggedWidget && /* istanbul ignore next */ runtimeProps.draggedWidget.lastPosition}\r\n style={this.props.style}\r\n targetChangeHandler={runtimeProps.targetChangeHandler}\r\n targetedBounds={runtimeProps.ghostOutline}\r\n widgetChangeHandler={runtimeProps.widgetChangeHandler}\r\n zone={runtimeProps.zone}\r\n />\r\n );\r\n } else if (zoneDef.isStatusBar) {\r\n // istanbul ignore next\r\n if (runtimeProps.zone.id !== 8)\r\n throw new TypeError();\r\n\r\n let widgetControl: StatusBarWidgetControl | undefined;\r\n const widgetDef = zoneDef.getSingleWidgetDef();\r\n\r\n // istanbul ignore else\r\n if (widgetDef)\r\n widgetControl = widgetDef.getWidgetControl(ConfigurableUiControlType.StatusBarWidget) as StatusBarWidgetControl;\r\n\r\n return (\r\n <StatusBarZone\r\n className={this.props.className}\r\n dropTarget={runtimeProps.dropTarget}\r\n isHidden={runtimeProps.isHidden}\r\n isInFooterMode={runtimeProps.isInFooterMode}\r\n style={this.props.style}\r\n targetChangeHandler={runtimeProps.targetChangeHandler}\r\n targetedBounds={runtimeProps.ghostOutline}\r\n widgetChangeHandler={runtimeProps.widgetChangeHandler}\r\n widgetControl={widgetControl}\r\n zoneProps={runtimeProps.zone}\r\n />\r\n );\r\n }\r\n\r\n const zDef = runtimeProps.zoneDefProvider.getZoneDef(runtimeProps.zone.widgets[0]);\r\n // istanbul ignore if\r\n if (!zDef) {\r\n widgetElement = null;\r\n } else if (zDef.widgetCount === 1 && zDef.widgetDefs[0].widgetType !== WidgetType.Rectangular) {\r\n /** Return free-form nzWidgetProps */\r\n const widgetDef = zDef.widgetDefs[0];\r\n widgetElement = (widgetDef.isVisible) ? widgetDef.reactNode : /* istanbul ignore next */ null;\r\n }\r\n }\r\n\r\n return (\r\n <FrameworkZone\r\n activeTabIndex={runtimeProps.activeTabIndex}\r\n className={this.props.className}\r\n disabledResizeHandles={runtimeProps.disabledResizeHandles}\r\n draggedWidget={runtimeProps.draggedWidget}\r\n dropTarget={runtimeProps.dropTarget}\r\n fillZone={zoneDef.shouldFillZone}\r\n getWidgetContentRef={runtimeProps.getWidgetContentRef}\r\n isHidden={runtimeProps.isHidden}\r\n isInFooterMode={runtimeProps.isInFooterMode}\r\n openWidgetId={runtimeProps.openWidgetId}\r\n style={this.props.style}\r\n targetedBounds={runtimeProps.ghostOutline}\r\n targetChangeHandler={runtimeProps.targetChangeHandler}\r\n widget={runtimeProps.widget}\r\n widgetElement={widgetElement}\r\n widgetTabs={runtimeProps.widgetTabs}\r\n widgetChangeHandler={runtimeProps.widgetChangeHandler}\r\n zone={runtimeProps.zone}\r\n />\r\n );\r\n }\r\n\r\n private _handleWidgetStateChangedEvent = (args: WidgetStateChangedEventArgs) => {\r\n const runtimeProps = this.props.runtimeProps;\r\n if (!runtimeProps)\r\n return;\r\n\r\n const widgetDef = args.widgetDef;\r\n const id = this.getWidgetIdForDef(widgetDef);\r\n if (!id)\r\n return;\r\n\r\n const zoneDef = runtimeProps.zoneDefProvider.getZoneDef(id);\r\n // istanbul ignore if\r\n if (!zoneDef)\r\n return;\r\n\r\n const visibleWidgets = zoneDef.widgetDefs.filter((wd) => wd.isVisible || wd === widgetDef);\r\n for (let index = 0; index < visibleWidgets.length; index++) {\r\n const wDef = visibleWidgets[index];\r\n if (wDef !== widgetDef)\r\n continue;\r\n\r\n if (widgetDef.state === WidgetState.Hidden && index < runtimeProps.activeTabIndex && id === runtimeProps.openWidgetId) {\r\n // Need to decrease active tab index, since removed tab was rendered before active tab and we want to maintain active tab.\r\n runtimeProps.widgetChangeHandler.handleTabClick(id, runtimeProps.activeTabIndex - 1);\r\n break;\r\n }\r\n runtimeProps.widgetChangeHandler.handleWidgetStateChange(id, index, widgetDef.state === WidgetState.Open);\r\n break;\r\n }\r\n };\r\n\r\n private getWidgetIdForDef(widgetDef: WidgetDef): WidgetZoneId | undefined { // eslint-disable-line deprecation/deprecation\r\n // istanbul ignore if\r\n if (!this.props.runtimeProps)\r\n return undefined;\r\n\r\n for (const wId of this.props.runtimeProps.zone.widgets) {\r\n const zoneDef = this.props.runtimeProps.zoneDefProvider.getZoneDef(wId);\r\n if (zoneDef && zoneDef.widgetDefs.some((wDef: WidgetDef) => wDef === widgetDef))\r\n return wId;\r\n }\r\n\r\n return undefined;\r\n }\r\n}\r\n\r\n/** @internal */\r\nexport const isToolSettingsWidgetManagerProps = (props: WidgetManagerProps | undefined): props is ToolSettingsWidgetManagerProps => {\r\n return !!props && props.id === 2;\r\n};\r\n"]}
@@ -69,6 +69,7 @@ export * from "./appui-react/hooks/useScheduleAnimationDataProvider";
69
69
  export * from "./appui-react/hooks/useSolarDataProvider";
70
70
  export * from "./appui-react/imodel-components/spatial-tree/SpatialContainmentTree";
71
71
  export * from "./appui-react/imodel-components/category-tree/CategoriesTree";
72
+ export * from "./appui-react/imodel-components/category-tree/CategoryVisibilityHandler";
72
73
  export * from "./appui-react/imodel-components/models-tree/ModelsTree";
73
74
  export * from "./appui-react/imodel-components/models-tree/ModelsVisibilityHandler";
74
75
  export * from "./appui-react/imodel-components/Common";
@@ -1 +1 @@
1
- {"version":3,"file":"appui-react.d.ts","sourceRoot":"","sources":["../../src/appui-react.ts"],"names":[],"mappings":"AAOA,cAAc,2BAA2B,CAAC;AAE1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kDAAkD,CAAC;AACjE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0DAA0D,CAAC;AAEzE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oCAAoC,CAAC;AAEnD,cAAc,sCAAsC,CAAC;AACr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AC7D,cAAc,sDAAsD,CAAC;AACrE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAElD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,iDAAiD,CAAC;AAChE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAE5C;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AAEH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
1
+ {"version":3,"file":"appui-react.d.ts","sourceRoot":"","sources":["../../src/appui-react.ts"],"names":[],"mappings":"AAOA,cAAc,2BAA2B,CAAC;AAE1C,cAAc,6CAA6C,CAAC;AAC5D,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ClD,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,iDAAiD,CAAC;AAChE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAE5C;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AAEH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
@@ -86,6 +86,7 @@ __exportStar(require("./appui-react/hooks/useScheduleAnimationDataProvider"), ex
86
86
  __exportStar(require("./appui-react/hooks/useSolarDataProvider"), exports);
87
87
  __exportStar(require("./appui-react/imodel-components/spatial-tree/SpatialContainmentTree"), exports);
88
88
  __exportStar(require("./appui-react/imodel-components/category-tree/CategoriesTree"), exports);
89
+ __exportStar(require("./appui-react/imodel-components/category-tree/CategoryVisibilityHandler"), exports);
89
90
  __exportStar(require("./appui-react/imodel-components/models-tree/ModelsTree"), exports);
90
91
  __exportStar(require("./appui-react/imodel-components/models-tree/ModelsVisibilityHandler"), exports);
91
92
  __exportStar(require("./appui-react/imodel-components/Common"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"appui-react.js","sourceRoot":"","sources":["../../src/appui-react.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;AAE/F,yIAAyI;AAEzI,4DAA0C,CAAE,+DAA+D;AAE3G,8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H;;;GAGG;AACH;;;GAGG;AAEH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// cSpell:ignore safearea cursormenu clientservices oidc Textbox Modeless configurableui stagepanels dragdrop uiadmin itemsarbiter Popout\r\n\r\nexport * from \"./appui-react/UiFramework\"; // Please ensure that this line comes before all other exports.\r\n\r\nexport * from \"./appui-react/accudraw/AccuDrawCommandItems\";\r\nexport * from \"./appui-react/accudraw/AccuDrawDialog\";\r\nexport * from \"./appui-react/accudraw/AccuDrawKeyboardShortcuts\";\r\nexport * from \"./appui-react/accudraw/AccuDrawPopupManager\";\r\nexport * from \"./appui-react/accudraw/AccuDrawUiSettings\";\r\nexport * from \"./appui-react/accudraw/AccuDrawWidget\";\r\nexport * from \"./appui-react/accudraw/Calculator\";\r\nexport * from \"./appui-react/accudraw/CalculatorEngine\";\r\nexport * from \"./appui-react/accudraw/CalculatorPopup\";\r\nexport * from \"./appui-react/accudraw/FrameworkAccuDraw\";\r\nexport * from \"./appui-react/accudraw/MenuButton\";\r\nexport * from \"./appui-react/accudraw/MenuButtonPopup\";\r\n\r\nexport * from \"./appui-react/backstage/Backstage\";\r\nexport * from \"./appui-react/backstage/BackstageComposer\";\r\nexport * from \"./appui-react/backstage/BackstageComposerItem\";\r\nexport * from \"./appui-react/backstage/BackstageItemProps\";\r\nexport * from \"./appui-react/backstage/BackstageItemUtilities\";\r\nexport * from \"./appui-react/backstage/BackstageManager\";\r\nexport * from \"./appui-react/backstage/CommandLaunch\";\r\nexport * from \"./appui-react/backstage/FrontstageLaunch\";\r\nexport * from \"./appui-react/backstage/Separator\";\r\nexport * from \"./appui-react/backstage/useDefaultBackstageItems\";\r\nexport * from \"./appui-react/backstage/TaskLaunch\";\r\nexport * from \"./appui-react/backstage/useUiItemsProviderBackstageItems\";\r\n\r\nexport * from \"./appui-react/configurableui/ConfigurableUiContent\";\r\nexport * from \"./appui-react/configurableui/ConfigurableUiControl\";\r\nexport * from \"./appui-react/configurableui/ConfigurableUiManager\";\r\nexport * from \"./appui-react/configurableui/state\";\r\n\r\nexport * from \"./appui-react/content/ContentControl\";\r\nexport * from \"./appui-react/content/ContentGroup\";\r\nexport * from \"./appui-react/content/ContentLayout\";\r\nexport * from \"./appui-react/content/ContentLayoutManager\";\r\nexport * from \"./appui-react/content/ContentViewManager\";\r\nexport * from \"./appui-react/content/ViewStateHelper\";\r\nexport * from \"./appui-react/content/StageContentLayout\";\r\nexport * from \"./appui-react/content/ViewportContentControl\";\r\nexport * from \"./appui-react/content/IModelViewport\";\r\nexport * from \"./appui-react/content/DefaultViewOverlay\";\r\n\r\nexport * from \"./appui-react/cursor/CursorInformation\";\r\nexport * from \"./appui-react/cursor/cursorprompt/CursorPrompt\";\r\nexport * from \"./appui-react/cursor/cursorpopup/CursorPopup\";\r\nexport * from \"./appui-react/cursor/cursorpopup/CursorPopupManager\";\r\nexport * from \"./appui-react/cursor/cursormenu/CursorMenu\";\r\n\r\nexport * from \"./appui-react/dialog/DialogManagerBase\";\r\nexport * from \"./appui-react/dialog/ModalDialogManager\";\r\nexport * from \"./appui-react/dialog/ModelessDialog\";\r\nexport * from \"./appui-react/dialog/ModelessDialogManager\";\r\nexport * from \"./appui-react/dialog/StandardMessageBox\";\r\nexport * from \"./appui-react/dialog/UiDataProvidedDialog\";\r\n\r\nexport * from \"./appui-react/feedback/ValidationTextbox\";\r\nexport * from \"./appui-react/feedback/ElementTooltip\";\r\n\r\nexport * from \"./appui-react/frontstage/Frontstage\";\r\nexport * from \"./appui-react/frontstage/FrontstageComposer\";\r\nexport * from \"./appui-react/frontstage/FrontstageDef\";\r\nexport * from \"./appui-react/frontstage/FrontstageManager\";\r\nexport * from \"./appui-react/frontstage/FrontstageProvider\";\r\nexport * from \"./appui-react/frontstage/NestedFrontstage\";\r\nexport * from \"./appui-react/frontstage/ModalFrontstage\";\r\nexport * from \"./appui-react/frontstage/ModalSettingsStage\";\r\nexport * from \"./appui-react/frontstage/StandardFrontstageProvider\";\r\n\r\nexport * from \"./appui-react/hooks/useActiveIModelConnection\";\r\nexport * from \"./appui-react/hooks/useActiveStageId\";\r\nexport * from \"./appui-react/hooks/useActiveViewport\";\r\nexport * from \"./appui-react/hooks/useAvailableUiItemsProviders\";\r\nexport * from \"./appui-react/hooks/useAnalysisAnimationDataProvider\";\r\nexport * from \"./appui-react/hooks/useFrameworkVersion\";\r\nexport * from \"./appui-react/hooks/useScheduleAnimationDataProvider\";\r\nexport * from \"./appui-react/hooks/useSolarDataProvider\";\r\n\r\nexport * from \"./appui-react/imodel-components/spatial-tree/SpatialContainmentTree\";\r\nexport * from \"./appui-react/imodel-components/category-tree/CategoriesTree\";\r\nexport * from \"./appui-react/imodel-components/models-tree/ModelsTree\";\r\nexport * from \"./appui-react/imodel-components/models-tree/ModelsVisibilityHandler\";\r\nexport * from \"./appui-react/imodel-components/Common\";\r\nexport * from \"./appui-react/imodel-components/VisibilityTreeEventHandler\";\r\nexport * from \"./appui-react/imodel-components/VisibilityTreeRenderer\";\r\n\r\nexport * from \"./appui-react/keyboardshortcut/KeyboardShortcut\";\r\nexport * from \"./appui-react/keyboardshortcut/KeyboardShortcutMenu\";\r\nexport * from \"./appui-react/keyinbrowser/KeyinBrowser\";\r\n\r\nexport * from \"./appui-react/messages/ActivityMessage\";\r\nexport * from \"./appui-react/messages/ActivityMessagePopup\";\r\nexport * from \"./appui-react/messages/AppNotificationManager\";\r\nexport * from \"./appui-react/messages/InputField\";\r\nexport * from \"./appui-react/messages/MessageManager\";\r\nexport * from \"./appui-react/messages/StatusMessageRenderer\";\r\nexport * from \"./appui-react/messages/Pointer\";\r\nexport * from \"./appui-react/messages/ReactNotifyMessageDetails\";\r\nexport * from \"./appui-react/messages/StickyMessage\";\r\nexport * from \"./appui-react/messages/ToastMessage\";\r\n\r\nexport * from \"./appui-react/navigationaids/CubeNavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/DrawingNavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/NavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/SheetNavigationAid\";\r\nexport * from \"./appui-react/navigationaids/SheetsModalFrontstage\";\r\nexport * from \"./appui-react/navigationaids/StandardRotationNavigationAid\";\r\n\r\nexport * from \"./appui-react/pickers/ListPicker\";\r\nexport * from \"./appui-react/pickers/ViewSelector\";\r\n\r\nexport * from \"./appui-react/childwindow/ChildWindowManager\";\r\n\r\nexport * from \"./appui-react/popup/KeyinPalettePanel\";\r\nexport * from \"./appui-react/popup/KeyinPalettePopup\";\r\nexport * from \"./appui-react/popup/HTMLElementPopup\";\r\nexport * from \"./appui-react/popup/InputEditorPopup\";\r\nexport * from \"./appui-react/popup/PopupManager\";\r\nexport * from \"./appui-react/popup/PositionPopup\";\r\nexport * from \"./appui-react/popup/ToolbarPopup\";\r\n\r\nexport * from \"./appui-react/redux/SessionState\";\r\nexport * from \"./appui-react/redux/StateManager\";\r\nexport * from \"./appui-react/redux/FrameworkState\";\r\nexport * from \"./appui-react/redux/connectIModel\";\r\nexport * from \"./appui-react/redux/ReducerRegistry\";\r\nexport * from \"./appui-react/redux/redux-ts\";\r\n\r\nexport * from \"./appui-react/safearea/SafeAreaContext\";\r\n\r\nexport * from \"./appui-react/selection/SelectionContextItemDef\";\r\nexport * from \"./appui-react/selection/HideIsolateEmphasizeManager\";\r\nexport * from \"./appui-react/selection/ClearEmphasisStatusField\";\r\n\r\nexport * from \"./appui-react/settings/ui/UiSettingsPage\";\r\nexport * from \"./appui-react/settings/quantityformatting/QuantityFormat\";\r\nexport * from \"./appui-react/settings/quantityformatting/UnitSystemSelector\";\r\n\r\nexport * from \"./appui-react/shared/ActionButtonItemDef\";\r\nexport * from \"./appui-react/shared/AnyItemDef\";\r\nexport * from \"./appui-react/shared/AnyToolbarItemDef\";\r\nexport * from \"./appui-react/shared/CommandItemDef\";\r\nexport * from \"./appui-react/shared/CustomItemDef\";\r\nexport * from \"./appui-react/shared/CustomItemProps\";\r\nexport * from \"./appui-react/shared/GroupItemProps\";\r\nexport * from \"./appui-react/shared/ItemDefBase\";\r\nexport * from \"./appui-react/shared/ItemMap\";\r\nexport * from \"./appui-react/shared/ItemProps\";\r\nexport * from \"./appui-react/shared/MenuItem\";\r\nexport * from \"./appui-react/shared/SelectionScope\";\r\nexport * from \"./appui-react/shared/ToolItemDef\";\r\n\r\nexport * from \"./appui-react/stagepanels/FrameworkStagePanel\";\r\nexport * from \"./appui-react/stagepanels/StagePanel\";\r\nexport * from \"./appui-react/stagepanels/StagePanelDef\";\r\nexport * from \"./appui-react/stagepanels/StagePanelHeader\";\r\n\r\nexport * from \"./appui-react/statusbar/StatusBar\";\r\nexport * from \"./appui-react/statusbar/StatusBarWidgetControl\";\r\nexport * from \"./appui-react/statusbar/StatusBarComposer\";\r\nexport * from \"./appui-react/statusbar/StatusBarItem\";\r\nexport * from \"./appui-react/statusbar/StatusBarItemsManager\";\r\nexport * from \"./appui-react/statusbar/StatusBarItemUtilities\";\r\nexport * from \"./appui-react/statusbar/StatusBarComposer\";\r\nexport * from \"./appui-react/statusbar/withMessageCenterFieldProps\";\r\nexport * from \"./appui-react/statusbar/useUiItemsProviderStatusBarItems\";\r\nexport * from \"./appui-react/statusbar/useDefaultStatusBarItems\";\r\nexport * from \"./appui-react/statusbar/withStatusFieldProps\";\r\n\r\nexport * from \"./appui-react/statusfields/tileloading/TileLoadingIndicator\";\r\nexport * from \"./appui-react/statusfields/ActivityCenter\";\r\nexport * from \"./appui-react/statusfields/ConditionalField\";\r\nexport * from \"./appui-react/statusfields/FooterModeField\";\r\nexport * from \"./appui-react/statusfields/Indicator\";\r\nexport * from \"./appui-react/statusfields/MessageCenter\";\r\nexport * from \"./appui-react/statusfields/PromptField\";\r\nexport * from \"./appui-react/statusfields/SectionsField\";\r\nexport * from \"./appui-react/statusfields/SelectionInfo\";\r\nexport * from \"./appui-react/statusfields/SelectionScope\";\r\nexport * from \"./appui-react/statusfields/SnapMode\";\r\nexport * from \"./appui-react/statusfields/StatusFieldProps\";\r\nexport * from \"./appui-react/statusfields/ViewAttributes\";\r\nexport * from \"./appui-react/statusfields/toolassistance/ToolAssistanceField\";\r\n\r\nexport * from \"./appui-react/syncui/SyncUiEventDispatcher\";\r\nexport * from \"./appui-react/syncui/BooleanListener\";\r\n\r\nexport * from \"./appui-react/theme/ThemeManager\";\r\n\r\nexport * from \"./appui-react/timeline/ScheduleAnimationProvider\";\r\nexport * from \"./appui-react/timeline/AnalysisAnimationProvider\";\r\nexport * from \"./appui-react/timeline/SolarTimelineDataProvider\";\r\n\r\nexport * from \"./appui-react/toolbar/ActionButtonItem\";\r\nexport * from \"./appui-react/toolbar/ActionItemButton\";\r\nexport * from \"./appui-react/toolbar/DragInteraction\";\r\nexport * from \"./appui-react/toolbar/ToolbarComposer\";\r\nexport * from \"./appui-react/toolbar/GroupButtonItem\";\r\nexport * from \"./appui-react/toolbar/GroupItem\";\r\nexport * from \"./appui-react/toolbar/PopupButton\";\r\nexport * from \"./appui-react/toolbar/Toolbar\";\r\nexport * from \"./appui-react/toolbar/ToolbarHelper\";\r\nexport * from \"./appui-react/toolbar/ToolButton\";\r\nexport * from \"./appui-react/toolbar/useUiItemsProviderToolbarItems\";\r\nexport * from \"./appui-react/toolbar/useDefaultToolbarItems\";\r\n\r\nexport * from \"./appui-react/tools/CoreToolDefinitions\";\r\nexport * from \"./appui-react/tools/FrameworkToolAdmin\";\r\nexport * from \"./appui-react/tools/MarkupToolDefinitions\";\r\nexport * from \"./appui-react/tools/RestoreLayoutTool\";\r\nexport * from \"./appui-react/tools/ToolSettingsTools\";\r\n\r\nexport * from \"./appui-react/uiadmin/FrameworkUiAdmin\";\r\n\r\nexport * from \"./appui-react/ui-items-provider/StandardContentToolsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardNavigationToolsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardStatusbarItemsProvider\";\r\nexport * from \"./appui-react/uiprovider/DefaultDialogGridContainer\";\r\n\r\nexport * from \"./appui-react/uisettings/AppUiSettings\";\r\nexport * from \"./appui-react/uisettings/UserSettingsStorage\";\r\nexport * from \"./appui-react/uisettings/useUiSettings\";\r\n\r\nexport * from \"./appui-react/UserInfo\";\r\n\r\nexport * from \"./appui-react/utils/ViewUtilities\";\r\nexport * from \"./appui-react/utils/PropsHelper\";\r\nexport * from \"./appui-react/utils/UiShowHideManager\";\r\nexport * from \"./appui-react/utils/ToolbarButtonHelper\";\r\n\r\nexport * from \"./appui-react/widget-panels/Content\";\r\nexport * from \"./appui-react/widget-panels/Frontstage\";\r\nexport * from \"./appui-react/widget-panels/FrontstageContent\";\r\nexport * from \"./appui-react/widget-panels/ModalFrontstageComposer\";\r\nexport * from \"./appui-react/widget-panels/StatusBar\";\r\nexport * from \"./appui-react/widget-panels/Tab\";\r\nexport * from \"./appui-react/widget-panels/Toolbars\";\r\nexport * from \"./appui-react/widget-panels/ToolSettings\";\r\nexport * from \"./appui-react/widget-panels/useWidgetDirection\";\r\n\r\nexport * from \"./appui-react/widgets/BackstageAppButton\";\r\nexport * from \"./appui-react/widgets/BasicNavigationWidget\";\r\nexport * from \"./appui-react/widgets/BasicToolWidget\";\r\nexport * from \"./appui-react/widgets/DefaultNavigationWidget\";\r\nexport * from \"./appui-react/widgets/NavigationWidget\";\r\nexport * from \"./appui-react/widgets/NavigationWidgetComposer\";\r\nexport * from \"./appui-react/widgets/ReviewToolWidget\";\r\nexport * from \"./appui-react/widgets/ViewToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/StatusBarWidgetComposerControl\";\r\nexport * from \"./appui-react/widgets/ContentToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/StableWidgetDef\";\r\nexport * from \"./appui-react/widgets/ToolbarWidgetBase\";\r\nexport * from \"./appui-react/widgets/ToolWidget\";\r\nexport * from \"./appui-react/widgets/ToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/Widget\";\r\nexport * from \"./appui-react/widgets/WidgetControl\";\r\nexport * from \"./appui-react/widgets/WidgetDef\";\r\nexport * from \"./appui-react/widgets/WidgetHost\";\r\nexport * from \"./appui-react/widgets/WidgetManager\";\r\nexport * from \"./appui-react/widgets/WidgetProps\";\r\nexport * from \"./appui-react/widgets/WidgetStack\";\r\n\r\nexport * from \"./appui-react/workflow/Task\";\r\nexport * from \"./appui-react/workflow/Workflow\";\r\n\r\nexport * from \"./appui-react/zones/FrameworkZone\";\r\nexport * from \"./appui-react/zones/StatusBarZone\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolSettingsZone\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolInformation\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolSettingsManager\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolUiProvider\";\r\nexport * from \"./appui-react/zones/toolsettings/DefaultToolSettingsProvider\";\r\nexport * from \"./appui-react/zones/Zone\";\r\nexport * from \"./appui-react/zones/ZoneDef\";\r\n\r\n/** @docs-package-description\r\n * The ui-framework package contains classes and components for specifying the application UI consisting of the\r\n * Backstage, Frontstages, Content Views, Tool Bars, Status Bars, Widgets and Panels.\r\n * For more information, see [learning about ui-framework]($docs/learning/ui/framework/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * Classes and components providing a UI for AccuDraw, an aide for entering coordinate data.\r\n */\r\n/**\r\n * @docs-group-description Admin\r\n * APIs for various UI components, such as toolbars, buttons and menus.\r\n */\r\n/**\r\n * @docs-group-description Backstage\r\n * Classes for working with a Backstage\r\n */\r\n/**\r\n * @docs-group-description ConfigurableUi\r\n * Classes for working with the Application UI Configuration\r\n */\r\n/**\r\n * @docs-group-description ContentView\r\n * Classes for working with a Content View, Group, Layout or Control\r\n */\r\n/**\r\n * @docs-group-description Cursor\r\n * Cursor related information, components and events\r\n */\r\n/**\r\n * @docs-group-description Dialog\r\n * Classes for working with a dialog\r\n */\r\n/**\r\n * @docs-group-description DragDrop\r\n * Classes for managing DragDrop API drag layers\r\n */\r\n/**\r\n * @docs-group-description Frontstage\r\n * Classes for working with a Frontstage\r\n */\r\n/**\r\n * @docs-group-description Hooks\r\n * Hook functions for use in Functional React Components.\r\n */\r\n/**\r\n * @docs-group-description IModelComponents\r\n * Classes for displaying information about an iModel\r\n */\r\n/**\r\n * @docs-group-description Item\r\n * Classes for working with an Item in a Tool Widget, Navigation Widget or Backstage\r\n */\r\n/**\r\n * @docs-group-description KeyboardShortcut\r\n * Classes for working with Keyboard Shortcuts\r\n */\r\n/**\r\n * @docs-group-description NavigationAids\r\n * Classes for working with Navigation Aids\r\n */\r\n/**\r\n * @docs-group-description Notification\r\n * Classes for working with a Notification or Message\r\n */\r\n\r\n/**\r\n * @docs-group-description ChildWindow\r\n * Classes for working with child windows.\r\n */\r\n/**\r\n * @docs-group-description ChildWindowManager\r\n * Classes for working with child windows.\r\n */\r\n/**\r\n * @docs-group-description Picker\r\n * Classes for working with various pickers\r\n */\r\n/**\r\n * @docs-group-description Popup\r\n * Classes for working with popup components\r\n */\r\n/**\r\n * @docs-group-description State\r\n * Classes for maintaining state\r\n */\r\n/**\r\n * @docs-group-description Settings\r\n * Classes and components used by settings pages displayed in the modal settings stage\r\n */\r\n/**\r\n * @docs-group-description StandardUiItemsProvider\r\n * Standard UiItemsProvider classes.\r\n */\r\n/**\r\n * @docs-group-description StatusBar\r\n * Classes for defining a StatusBar\r\n */\r\n/**\r\n * @docs-group-description SyncUi\r\n * Classes for informing UI components to sync/refresh their display\r\n */\r\n/**\r\n * @docs-group-description Timeline\r\n * Classes for working with a TimelineComponent\r\n */\r\n/**\r\n * @docs-group-description Toolbar\r\n * Classes used to construct a Toolbar\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Core Tool definitions\r\n */\r\n/**\r\n * @docs-group-description ToolSettings\r\n * Classes for working Tool Settings. See learning documentation [Tool Settings]($docs/learning/ui/framework/toolsettings.md).\r\n */\r\n/**\r\n * @docs-group-description UiProvider\r\n * Interfaces and classes for specifying UI items to be inserted at runtime.\r\n */\r\n/**\r\n * @docs-group-description UiSettings\r\n * Interfaces and classes for persisting UI settings.\r\n */\r\n/**\r\n * @docs-group-description Utilities\r\n * Various utility classes for working with a UI and Redux.\r\n */\r\n/**\r\n * @docs-group-description Widget\r\n * Classes for working with a Widget\r\n */\r\n/**\r\n * @docs-group-description Zone\r\n * Classes for working with a Zone\r\n */\r\n"]}
1
+ {"version":3,"file":"appui-react.js","sourceRoot":"","sources":["../../src/appui-react.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;AAE/F,yIAAyI;AAEzI,4DAA0C,CAAE,+DAA+D;AAE3G,8EAA4D;AAC5D,wEAAsD;AACtD,mFAAiE;AACjE,8EAA4D;AAC5D,4EAA0D;AAC1D,wEAAsD;AACtD,oEAAkD;AAClD,0EAAwD;AACxD,yEAAuD;AACvD,2EAAyD;AACzD,oEAAkD;AAClD,yEAAuD;AAEvD,oEAAkD;AAClD,4EAA0D;AAC1D,gFAA8D;AAC9D,6EAA2D;AAC3D,iFAA+D;AAC/D,2EAAyD;AACzD,wEAAsD;AACtD,2EAAyD;AACzD,oEAAkD;AAClD,mFAAiE;AACjE,qEAAmD;AACnD,2FAAyE;AAEzE,qFAAmE;AACnE,qFAAmE;AACnE,qFAAmE;AACnE,qEAAmD;AAEnD,uEAAqD;AACrD,qEAAmD;AACnD,sEAAoD;AACpD,6EAA2D;AAC3D,2EAAyD;AACzD,wEAAsD;AACtD,2EAAyD;AACzD,+EAA6D;AAC7D,uEAAqD;AACrD,2EAAyD;AAEzD,yEAAuD;AACvD,iFAA+D;AAC/D,+EA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;AACzD,8EAA4D;AAC5D,wEAAsD;AACtD,gFAA8D;AAC9D,yEAAuD;AACvD,iFAA+D;AAC/D,yEAAuD;AACvD,+EAA6D;AAC7D,uFAAqE;AACrE,kFAAgE;AAChE,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,2EAAyD;AACzD,+DAA6C;AAC7C,sEAAoD;AACpD,kEAAgD;AAChD,mEAAiD;AACjD,sEAAoD;AACpD,oEAAkD;AAClD,oEAAkD;AAElD,8DAA4C;AAC5C,kEAAgD;AAEhD,oEAAkD;AAClD,oEAAkD;AAClD,oFAAkE;AAClE,mFAAiE;AACjE,uFAAqE;AACrE,kFAAgE;AAChE,+FAA6E;AAC7E,2DAAyC;AACzC,8DAA4C;AAE5C;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AAEH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// cSpell:ignore safearea cursormenu clientservices oidc Textbox Modeless configurableui stagepanels dragdrop uiadmin itemsarbiter Popout\r\n\r\nexport * from \"./appui-react/UiFramework\"; // Please ensure that this line comes before all other exports.\r\n\r\nexport * from \"./appui-react/accudraw/AccuDrawCommandItems\";\r\nexport * from \"./appui-react/accudraw/AccuDrawDialog\";\r\nexport * from \"./appui-react/accudraw/AccuDrawKeyboardShortcuts\";\r\nexport * from \"./appui-react/accudraw/AccuDrawPopupManager\";\r\nexport * from \"./appui-react/accudraw/AccuDrawUiSettings\";\r\nexport * from \"./appui-react/accudraw/AccuDrawWidget\";\r\nexport * from \"./appui-react/accudraw/Calculator\";\r\nexport * from \"./appui-react/accudraw/CalculatorEngine\";\r\nexport * from \"./appui-react/accudraw/CalculatorPopup\";\r\nexport * from \"./appui-react/accudraw/FrameworkAccuDraw\";\r\nexport * from \"./appui-react/accudraw/MenuButton\";\r\nexport * from \"./appui-react/accudraw/MenuButtonPopup\";\r\n\r\nexport * from \"./appui-react/backstage/Backstage\";\r\nexport * from \"./appui-react/backstage/BackstageComposer\";\r\nexport * from \"./appui-react/backstage/BackstageComposerItem\";\r\nexport * from \"./appui-react/backstage/BackstageItemProps\";\r\nexport * from \"./appui-react/backstage/BackstageItemUtilities\";\r\nexport * from \"./appui-react/backstage/BackstageManager\";\r\nexport * from \"./appui-react/backstage/CommandLaunch\";\r\nexport * from \"./appui-react/backstage/FrontstageLaunch\";\r\nexport * from \"./appui-react/backstage/Separator\";\r\nexport * from \"./appui-react/backstage/useDefaultBackstageItems\";\r\nexport * from \"./appui-react/backstage/TaskLaunch\";\r\nexport * from \"./appui-react/backstage/useUiItemsProviderBackstageItems\";\r\n\r\nexport * from \"./appui-react/configurableui/ConfigurableUiContent\";\r\nexport * from \"./appui-react/configurableui/ConfigurableUiControl\";\r\nexport * from \"./appui-react/configurableui/ConfigurableUiManager\";\r\nexport * from \"./appui-react/configurableui/state\";\r\n\r\nexport * from \"./appui-react/content/ContentControl\";\r\nexport * from \"./appui-react/content/ContentGroup\";\r\nexport * from \"./appui-react/content/ContentLayout\";\r\nexport * from \"./appui-react/content/ContentLayoutManager\";\r\nexport * from \"./appui-react/content/ContentViewManager\";\r\nexport * from \"./appui-react/content/ViewStateHelper\";\r\nexport * from \"./appui-react/content/StageContentLayout\";\r\nexport * from \"./appui-react/content/ViewportContentControl\";\r\nexport * from \"./appui-react/content/IModelViewport\";\r\nexport * from \"./appui-react/content/DefaultViewOverlay\";\r\n\r\nexport * from \"./appui-react/cursor/CursorInformation\";\r\nexport * from \"./appui-react/cursor/cursorprompt/CursorPrompt\";\r\nexport * from \"./appui-react/cursor/cursorpopup/CursorPopup\";\r\nexport * from \"./appui-react/cursor/cursorpopup/CursorPopupManager\";\r\nexport * from \"./appui-react/cursor/cursormenu/CursorMenu\";\r\n\r\nexport * from \"./appui-react/dialog/DialogManagerBase\";\r\nexport * from \"./appui-react/dialog/ModalDialogManager\";\r\nexport * from \"./appui-react/dialog/ModelessDialog\";\r\nexport * from \"./appui-react/dialog/ModelessDialogManager\";\r\nexport * from \"./appui-react/dialog/StandardMessageBox\";\r\nexport * from \"./appui-react/dialog/UiDataProvidedDialog\";\r\n\r\nexport * from \"./appui-react/feedback/ValidationTextbox\";\r\nexport * from \"./appui-react/feedback/ElementTooltip\";\r\n\r\nexport * from \"./appui-react/frontstage/Frontstage\";\r\nexport * from \"./appui-react/frontstage/FrontstageComposer\";\r\nexport * from \"./appui-react/frontstage/FrontstageDef\";\r\nexport * from \"./appui-react/frontstage/FrontstageManager\";\r\nexport * from \"./appui-react/frontstage/FrontstageProvider\";\r\nexport * from \"./appui-react/frontstage/NestedFrontstage\";\r\nexport * from \"./appui-react/frontstage/ModalFrontstage\";\r\nexport * from \"./appui-react/frontstage/ModalSettingsStage\";\r\nexport * from \"./appui-react/frontstage/StandardFrontstageProvider\";\r\n\r\nexport * from \"./appui-react/hooks/useActiveIModelConnection\";\r\nexport * from \"./appui-react/hooks/useActiveStageId\";\r\nexport * from \"./appui-react/hooks/useActiveViewport\";\r\nexport * from \"./appui-react/hooks/useAvailableUiItemsProviders\";\r\nexport * from \"./appui-react/hooks/useAnalysisAnimationDataProvider\";\r\nexport * from \"./appui-react/hooks/useFrameworkVersion\";\r\nexport * from \"./appui-react/hooks/useScheduleAnimationDataProvider\";\r\nexport * from \"./appui-react/hooks/useSolarDataProvider\";\r\n\r\nexport * from \"./appui-react/imodel-components/spatial-tree/SpatialContainmentTree\";\r\nexport * from \"./appui-react/imodel-components/category-tree/CategoriesTree\";\r\nexport * from \"./appui-react/imodel-components/category-tree/CategoryVisibilityHandler\";\r\nexport * from \"./appui-react/imodel-components/models-tree/ModelsTree\";\r\nexport * from \"./appui-react/imodel-components/models-tree/ModelsVisibilityHandler\";\r\nexport * from \"./appui-react/imodel-components/Common\";\r\nexport * from \"./appui-react/imodel-components/VisibilityTreeEventHandler\";\r\nexport * from \"./appui-react/imodel-components/VisibilityTreeRenderer\";\r\n\r\nexport * from \"./appui-react/keyboardshortcut/KeyboardShortcut\";\r\nexport * from \"./appui-react/keyboardshortcut/KeyboardShortcutMenu\";\r\nexport * from \"./appui-react/keyinbrowser/KeyinBrowser\";\r\n\r\nexport * from \"./appui-react/messages/ActivityMessage\";\r\nexport * from \"./appui-react/messages/ActivityMessagePopup\";\r\nexport * from \"./appui-react/messages/AppNotificationManager\";\r\nexport * from \"./appui-react/messages/InputField\";\r\nexport * from \"./appui-react/messages/MessageManager\";\r\nexport * from \"./appui-react/messages/StatusMessageRenderer\";\r\nexport * from \"./appui-react/messages/Pointer\";\r\nexport * from \"./appui-react/messages/ReactNotifyMessageDetails\";\r\nexport * from \"./appui-react/messages/StickyMessage\";\r\nexport * from \"./appui-react/messages/ToastMessage\";\r\n\r\nexport * from \"./appui-react/navigationaids/CubeNavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/DrawingNavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/NavigationAidControl\";\r\nexport * from \"./appui-react/navigationaids/SheetNavigationAid\";\r\nexport * from \"./appui-react/navigationaids/SheetsModalFrontstage\";\r\nexport * from \"./appui-react/navigationaids/StandardRotationNavigationAid\";\r\n\r\nexport * from \"./appui-react/pickers/ListPicker\";\r\nexport * from \"./appui-react/pickers/ViewSelector\";\r\n\r\nexport * from \"./appui-react/childwindow/ChildWindowManager\";\r\n\r\nexport * from \"./appui-react/popup/KeyinPalettePanel\";\r\nexport * from \"./appui-react/popup/KeyinPalettePopup\";\r\nexport * from \"./appui-react/popup/HTMLElementPopup\";\r\nexport * from \"./appui-react/popup/InputEditorPopup\";\r\nexport * from \"./appui-react/popup/PopupManager\";\r\nexport * from \"./appui-react/popup/PositionPopup\";\r\nexport * from \"./appui-react/popup/ToolbarPopup\";\r\n\r\nexport * from \"./appui-react/redux/SessionState\";\r\nexport * from \"./appui-react/redux/StateManager\";\r\nexport * from \"./appui-react/redux/FrameworkState\";\r\nexport * from \"./appui-react/redux/connectIModel\";\r\nexport * from \"./appui-react/redux/ReducerRegistry\";\r\nexport * from \"./appui-react/redux/redux-ts\";\r\n\r\nexport * from \"./appui-react/safearea/SafeAreaContext\";\r\n\r\nexport * from \"./appui-react/selection/SelectionContextItemDef\";\r\nexport * from \"./appui-react/selection/HideIsolateEmphasizeManager\";\r\nexport * from \"./appui-react/selection/ClearEmphasisStatusField\";\r\n\r\nexport * from \"./appui-react/settings/ui/UiSettingsPage\";\r\nexport * from \"./appui-react/settings/quantityformatting/QuantityFormat\";\r\nexport * from \"./appui-react/settings/quantityformatting/UnitSystemSelector\";\r\n\r\nexport * from \"./appui-react/shared/ActionButtonItemDef\";\r\nexport * from \"./appui-react/shared/AnyItemDef\";\r\nexport * from \"./appui-react/shared/AnyToolbarItemDef\";\r\nexport * from \"./appui-react/shared/CommandItemDef\";\r\nexport * from \"./appui-react/shared/CustomItemDef\";\r\nexport * from \"./appui-react/shared/CustomItemProps\";\r\nexport * from \"./appui-react/shared/GroupItemProps\";\r\nexport * from \"./appui-react/shared/ItemDefBase\";\r\nexport * from \"./appui-react/shared/ItemMap\";\r\nexport * from \"./appui-react/shared/ItemProps\";\r\nexport * from \"./appui-react/shared/MenuItem\";\r\nexport * from \"./appui-react/shared/SelectionScope\";\r\nexport * from \"./appui-react/shared/ToolItemDef\";\r\n\r\nexport * from \"./appui-react/stagepanels/FrameworkStagePanel\";\r\nexport * from \"./appui-react/stagepanels/StagePanel\";\r\nexport * from \"./appui-react/stagepanels/StagePanelDef\";\r\nexport * from \"./appui-react/stagepanels/StagePanelHeader\";\r\n\r\nexport * from \"./appui-react/statusbar/StatusBar\";\r\nexport * from \"./appui-react/statusbar/StatusBarWidgetControl\";\r\nexport * from \"./appui-react/statusbar/StatusBarComposer\";\r\nexport * from \"./appui-react/statusbar/StatusBarItem\";\r\nexport * from \"./appui-react/statusbar/StatusBarItemsManager\";\r\nexport * from \"./appui-react/statusbar/StatusBarItemUtilities\";\r\nexport * from \"./appui-react/statusbar/StatusBarComposer\";\r\nexport * from \"./appui-react/statusbar/withMessageCenterFieldProps\";\r\nexport * from \"./appui-react/statusbar/useUiItemsProviderStatusBarItems\";\r\nexport * from \"./appui-react/statusbar/useDefaultStatusBarItems\";\r\nexport * from \"./appui-react/statusbar/withStatusFieldProps\";\r\n\r\nexport * from \"./appui-react/statusfields/tileloading/TileLoadingIndicator\";\r\nexport * from \"./appui-react/statusfields/ActivityCenter\";\r\nexport * from \"./appui-react/statusfields/ConditionalField\";\r\nexport * from \"./appui-react/statusfields/FooterModeField\";\r\nexport * from \"./appui-react/statusfields/Indicator\";\r\nexport * from \"./appui-react/statusfields/MessageCenter\";\r\nexport * from \"./appui-react/statusfields/PromptField\";\r\nexport * from \"./appui-react/statusfields/SectionsField\";\r\nexport * from \"./appui-react/statusfields/SelectionInfo\";\r\nexport * from \"./appui-react/statusfields/SelectionScope\";\r\nexport * from \"./appui-react/statusfields/SnapMode\";\r\nexport * from \"./appui-react/statusfields/StatusFieldProps\";\r\nexport * from \"./appui-react/statusfields/ViewAttributes\";\r\nexport * from \"./appui-react/statusfields/toolassistance/ToolAssistanceField\";\r\n\r\nexport * from \"./appui-react/syncui/SyncUiEventDispatcher\";\r\nexport * from \"./appui-react/syncui/BooleanListener\";\r\n\r\nexport * from \"./appui-react/theme/ThemeManager\";\r\n\r\nexport * from \"./appui-react/timeline/ScheduleAnimationProvider\";\r\nexport * from \"./appui-react/timeline/AnalysisAnimationProvider\";\r\nexport * from \"./appui-react/timeline/SolarTimelineDataProvider\";\r\n\r\nexport * from \"./appui-react/toolbar/ActionButtonItem\";\r\nexport * from \"./appui-react/toolbar/ActionItemButton\";\r\nexport * from \"./appui-react/toolbar/DragInteraction\";\r\nexport * from \"./appui-react/toolbar/ToolbarComposer\";\r\nexport * from \"./appui-react/toolbar/GroupButtonItem\";\r\nexport * from \"./appui-react/toolbar/GroupItem\";\r\nexport * from \"./appui-react/toolbar/PopupButton\";\r\nexport * from \"./appui-react/toolbar/Toolbar\";\r\nexport * from \"./appui-react/toolbar/ToolbarHelper\";\r\nexport * from \"./appui-react/toolbar/ToolButton\";\r\nexport * from \"./appui-react/toolbar/useUiItemsProviderToolbarItems\";\r\nexport * from \"./appui-react/toolbar/useDefaultToolbarItems\";\r\n\r\nexport * from \"./appui-react/tools/CoreToolDefinitions\";\r\nexport * from \"./appui-react/tools/FrameworkToolAdmin\";\r\nexport * from \"./appui-react/tools/MarkupToolDefinitions\";\r\nexport * from \"./appui-react/tools/RestoreLayoutTool\";\r\nexport * from \"./appui-react/tools/ToolSettingsTools\";\r\n\r\nexport * from \"./appui-react/uiadmin/FrameworkUiAdmin\";\r\n\r\nexport * from \"./appui-react/ui-items-provider/StandardContentToolsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardNavigationToolsProvider\";\r\nexport * from \"./appui-react/ui-items-provider/StandardStatusbarItemsProvider\";\r\nexport * from \"./appui-react/uiprovider/DefaultDialogGridContainer\";\r\n\r\nexport * from \"./appui-react/uisettings/AppUiSettings\";\r\nexport * from \"./appui-react/uisettings/UserSettingsStorage\";\r\nexport * from \"./appui-react/uisettings/useUiSettings\";\r\n\r\nexport * from \"./appui-react/UserInfo\";\r\n\r\nexport * from \"./appui-react/utils/ViewUtilities\";\r\nexport * from \"./appui-react/utils/PropsHelper\";\r\nexport * from \"./appui-react/utils/UiShowHideManager\";\r\nexport * from \"./appui-react/utils/ToolbarButtonHelper\";\r\n\r\nexport * from \"./appui-react/widget-panels/Content\";\r\nexport * from \"./appui-react/widget-panels/Frontstage\";\r\nexport * from \"./appui-react/widget-panels/FrontstageContent\";\r\nexport * from \"./appui-react/widget-panels/ModalFrontstageComposer\";\r\nexport * from \"./appui-react/widget-panels/StatusBar\";\r\nexport * from \"./appui-react/widget-panels/Tab\";\r\nexport * from \"./appui-react/widget-panels/Toolbars\";\r\nexport * from \"./appui-react/widget-panels/ToolSettings\";\r\nexport * from \"./appui-react/widget-panels/useWidgetDirection\";\r\n\r\nexport * from \"./appui-react/widgets/BackstageAppButton\";\r\nexport * from \"./appui-react/widgets/BasicNavigationWidget\";\r\nexport * from \"./appui-react/widgets/BasicToolWidget\";\r\nexport * from \"./appui-react/widgets/DefaultNavigationWidget\";\r\nexport * from \"./appui-react/widgets/NavigationWidget\";\r\nexport * from \"./appui-react/widgets/NavigationWidgetComposer\";\r\nexport * from \"./appui-react/widgets/ReviewToolWidget\";\r\nexport * from \"./appui-react/widgets/ViewToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/StatusBarWidgetComposerControl\";\r\nexport * from \"./appui-react/widgets/ContentToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/StableWidgetDef\";\r\nexport * from \"./appui-react/widgets/ToolbarWidgetBase\";\r\nexport * from \"./appui-react/widgets/ToolWidget\";\r\nexport * from \"./appui-react/widgets/ToolWidgetComposer\";\r\nexport * from \"./appui-react/widgets/Widget\";\r\nexport * from \"./appui-react/widgets/WidgetControl\";\r\nexport * from \"./appui-react/widgets/WidgetDef\";\r\nexport * from \"./appui-react/widgets/WidgetHost\";\r\nexport * from \"./appui-react/widgets/WidgetManager\";\r\nexport * from \"./appui-react/widgets/WidgetProps\";\r\nexport * from \"./appui-react/widgets/WidgetStack\";\r\n\r\nexport * from \"./appui-react/workflow/Task\";\r\nexport * from \"./appui-react/workflow/Workflow\";\r\n\r\nexport * from \"./appui-react/zones/FrameworkZone\";\r\nexport * from \"./appui-react/zones/StatusBarZone\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolSettingsZone\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolInformation\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolSettingsManager\";\r\nexport * from \"./appui-react/zones/toolsettings/ToolUiProvider\";\r\nexport * from \"./appui-react/zones/toolsettings/DefaultToolSettingsProvider\";\r\nexport * from \"./appui-react/zones/Zone\";\r\nexport * from \"./appui-react/zones/ZoneDef\";\r\n\r\n/** @docs-package-description\r\n * The ui-framework package contains classes and components for specifying the application UI consisting of the\r\n * Backstage, Frontstages, Content Views, Tool Bars, Status Bars, Widgets and Panels.\r\n * For more information, see [learning about ui-framework]($docs/learning/ui/framework/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * Classes and components providing a UI for AccuDraw, an aide for entering coordinate data.\r\n */\r\n/**\r\n * @docs-group-description Admin\r\n * APIs for various UI components, such as toolbars, buttons and menus.\r\n */\r\n/**\r\n * @docs-group-description Backstage\r\n * Classes for working with a Backstage\r\n */\r\n/**\r\n * @docs-group-description ConfigurableUi\r\n * Classes for working with the Application UI Configuration\r\n */\r\n/**\r\n * @docs-group-description ContentView\r\n * Classes for working with a Content View, Group, Layout or Control\r\n */\r\n/**\r\n * @docs-group-description Cursor\r\n * Cursor related information, components and events\r\n */\r\n/**\r\n * @docs-group-description Dialog\r\n * Classes for working with a dialog\r\n */\r\n/**\r\n * @docs-group-description DragDrop\r\n * Classes for managing DragDrop API drag layers\r\n */\r\n/**\r\n * @docs-group-description Frontstage\r\n * Classes for working with a Frontstage\r\n */\r\n/**\r\n * @docs-group-description Hooks\r\n * Hook functions for use in Functional React Components.\r\n */\r\n/**\r\n * @docs-group-description IModelComponents\r\n * Classes for displaying information about an iModel\r\n */\r\n/**\r\n * @docs-group-description Item\r\n * Classes for working with an Item in a Tool Widget, Navigation Widget or Backstage\r\n */\r\n/**\r\n * @docs-group-description KeyboardShortcut\r\n * Classes for working with Keyboard Shortcuts\r\n */\r\n/**\r\n * @docs-group-description NavigationAids\r\n * Classes for working with Navigation Aids\r\n */\r\n/**\r\n * @docs-group-description Notification\r\n * Classes for working with a Notification or Message\r\n */\r\n\r\n/**\r\n * @docs-group-description ChildWindow\r\n * Classes for working with child windows.\r\n */\r\n/**\r\n * @docs-group-description ChildWindowManager\r\n * Classes for working with child windows.\r\n */\r\n/**\r\n * @docs-group-description Picker\r\n * Classes for working with various pickers\r\n */\r\n/**\r\n * @docs-group-description Popup\r\n * Classes for working with popup components\r\n */\r\n/**\r\n * @docs-group-description State\r\n * Classes for maintaining state\r\n */\r\n/**\r\n * @docs-group-description Settings\r\n * Classes and components used by settings pages displayed in the modal settings stage\r\n */\r\n/**\r\n * @docs-group-description StandardUiItemsProvider\r\n * Standard UiItemsProvider classes.\r\n */\r\n/**\r\n * @docs-group-description StatusBar\r\n * Classes for defining a StatusBar\r\n */\r\n/**\r\n * @docs-group-description SyncUi\r\n * Classes for informing UI components to sync/refresh their display\r\n */\r\n/**\r\n * @docs-group-description Timeline\r\n * Classes for working with a TimelineComponent\r\n */\r\n/**\r\n * @docs-group-description Toolbar\r\n * Classes used to construct a Toolbar\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Core Tool definitions\r\n */\r\n/**\r\n * @docs-group-description ToolSettings\r\n * Classes for working Tool Settings. See learning documentation [Tool Settings]($docs/learning/ui/framework/toolsettings.md).\r\n */\r\n/**\r\n * @docs-group-description UiProvider\r\n * Interfaces and classes for specifying UI items to be inserted at runtime.\r\n */\r\n/**\r\n * @docs-group-description UiSettings\r\n * Interfaces and classes for persisting UI settings.\r\n */\r\n/**\r\n * @docs-group-description Utilities\r\n * Various utility classes for working with a UI and Redux.\r\n */\r\n/**\r\n * @docs-group-description Widget\r\n * Classes for working with a Widget\r\n */\r\n/**\r\n * @docs-group-description Zone\r\n * Classes for working with a Zone\r\n */\r\n"]}
@@ -18,6 +18,8 @@ export interface BackstageComposerProps extends CommonProps {
18
18
  readonly showOverlay?: boolean;
19
19
  /** List of backstage items to show */
20
20
  readonly items: BackstageItem[];
21
+ /** If true and only one stage launcher item is found, do not show entry in backstage */
22
+ readonly hideSoloStageEntry?: boolean;
21
23
  }
22
24
  /** Backstage component composed from [[BackstageManager]] items.
23
25
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"BackstageComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/BackstageComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAkD,MAAM,uBAAuB,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkDhD,gBAAgB;AAChB,oBAAY,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,eAAe,UAAW,cAAc,aAAa,CAAC,iBA+BlE,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,gGAAgG;IAChG,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,eA0D9D"}
1
+ {"version":3,"file":"BackstageComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/BackstageComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAmE,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAsEhD,gBAAgB;AAChB,oBAAY,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,eAAe,UAAW,cAAc,aAAa,CAAC,iBA+BlE,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,gGAAgG;IAChG,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,CAAC;IAChC,wFAAwF;IACxF,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,eA0D9D"}
@@ -6,7 +6,7 @@
6
6
  * @module Backstage
7
7
  */
8
8
  import * as React from "react";
9
- import { BackstageItemsManager, ConditionalBooleanValue } from "@itwin/appui-abstract";
9
+ import { BackstageItemsManager, ConditionalBooleanValue, isStageLauncher } from "@itwin/appui-abstract";
10
10
  import { BackstageSeparator, Backstage as NZ_Backstage } from "@itwin/appui-layout-react";
11
11
  import { SafeAreaContext } from "../safearea/SafeAreaContext";
12
12
  import { SyncUiEventDispatcher } from "../syncui/SyncUiEventDispatcher";
@@ -40,12 +40,30 @@ function useBackstageItemSyncEffect(itemsManager, syncIdsOfInterest) {
40
40
  }, [itemsManager, itemsManager.items, syncIdsOfInterest]);
41
41
  }
42
42
  /** local function to combine items from Stage and from Extensions */
43
- function combineItems(stageItems, addonItems) {
44
- const items = [];
45
- if (stageItems.length)
46
- items.push(...stageItems);
47
- if (addonItems.length)
48
- items.push(...addonItems);
43
+ function combineItems(stageItems, addonItems, hideSoloStageEntry) {
44
+ let items = [];
45
+ if (stageItems.length) {
46
+ // Walk through each and ensure no duplicate ids are added.
47
+ stageItems.forEach((srcItem) => {
48
+ if (-1 === items.findIndex((item) => item.id === srcItem.id)) {
49
+ items.push(srcItem);
50
+ }
51
+ });
52
+ }
53
+ if (addonItems.length) {
54
+ // Walk through each and ensure no duplicate ids are added.
55
+ addonItems.forEach((srcItem) => {
56
+ if (-1 === items.findIndex((item) => item.id === srcItem.id)) {
57
+ items.push(srcItem);
58
+ }
59
+ });
60
+ }
61
+ if (hideSoloStageEntry) {
62
+ // per user request don't show stage launcher if only one stage is available
63
+ const numberOfFrontstageItems = items.reduce((accumulator, item) => accumulator + (isStageLauncher(item) ? 1 : 0), 0);
64
+ if (1 === numberOfFrontstageItems)
65
+ items = items.filter((item) => !isStageLauncher(item));
66
+ }
49
67
  return items;
50
68
  }
51
69
  /** @internal */
@@ -106,7 +124,7 @@ export function BackstageComposer(props) {
106
124
  const addonItems = useUiItemsProviderBackstageItems(addonItemsManager);
107
125
  const addonSyncIdsOfInterest = React.useMemo(() => BackstageItemsManager.getSyncIdsOfInterest(addonItems), [addonItems]);
108
126
  useBackstageItemSyncEffect(addonItemsManager, addonSyncIdsOfInterest);
109
- const combinedBackstageItems = React.useMemo(() => combineItems(defaultItems, addonItems), [defaultItems, addonItems]);
127
+ const combinedBackstageItems = React.useMemo(() => combineItems(defaultItems, addonItems, !!props.hideSoloStageEntry), [defaultItems, addonItems, props.hideSoloStageEntry]);
110
128
  const groups = useGroupedItems(combinedBackstageItems);
111
129
  return (React.createElement(NZ_Backstage, { className: props.className, header: props.header, isOpen: isOpen, onClose: handleClose, safeAreaInsets: safeAreaInsets, showOverlay: props.showOverlay, style: props.style }, groups.map((group, groupIndex) => (group.map((item, itemIndex) => {
112
130
  const composerItem = (React.createElement(BackstageComposerItem, { item: item, key: item.id }));