@itwin/appui-react 3.1.0-dev.6 → 3.2.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +122 -16
- package/lib/cjs/appui-react/backstage/Backstage.d.ts +0 -2
- package/lib/cjs/appui-react/backstage/Backstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/Backstage.js +0 -1
- package/lib/cjs/appui-react/backstage/Backstage.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts +1 -0
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +2 -2
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +2 -0
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js +6 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentControl.d.ts +6 -0
- package/lib/cjs/appui-react/content/ContentControl.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentControl.js +11 -1
- package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.d.ts +8 -0
- package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.js +43 -36
- package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.scss +27 -27
- package/lib/cjs/appui-react/content/ContentViewManager.d.ts +7 -0
- package/lib/cjs/appui-react/content/ContentViewManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentViewManager.js +46 -22
- package/lib/cjs/appui-react/content/ContentViewManager.js.map +1 -1
- package/lib/cjs/appui-react/content/FloatingViewportContent.css +9 -0
- package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts +25 -0
- package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -0
- package/lib/cjs/appui-react/content/FloatingViewportContent.js +73 -0
- package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -0
- package/lib/cjs/appui-react/content/IModelViewport.d.ts +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.js +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/cjs/appui-react/content/ViewportContentControl.d.ts +9 -0
- package/lib/cjs/appui-react/content/ViewportContentControl.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ViewportContentControl.js +24 -1
- package/lib/cjs/appui-react/content/ViewportContentControl.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +24 -0
- package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -0
- package/lib/cjs/appui-react/dialog/ContentDialog.js +72 -0
- package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -0
- package/lib/cjs/appui-react/dialog/ContentDialog.scss +25 -0
- package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts +65 -0
- package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -0
- package/lib/cjs/appui-react/dialog/ContentDialogManager.js +148 -0
- package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +9 -0
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js +65 -7
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts +3 -0
- package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageManager.js +8 -0
- package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useUiVisibility.d.ts +6 -0
- package/lib/cjs/appui-react/hooks/useUiVisibility.d.ts.map +1 -0
- package/lib/cjs/appui-react/hooks/useUiVisibility.js +27 -0
- package/lib/cjs/appui-react/hooks/useUiVisibility.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +2 -1
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTreeSearch.json +3 -3
- package/lib/cjs/appui-react/popup/CardPopup.scss +3 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +2 -3
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +2 -3
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts +3 -0
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +20 -5
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.js +1 -1
- package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
- package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.scss +3 -0
- package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Content.js +2 -2
- package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.js +25 -7
- package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +2 -2
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts +0 -2
- package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicToolWidget.js +3 -17
- package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js +2 -2
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js +2 -2
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -0
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.js +2 -0
- package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/cjs/appui-react.d.ts +4 -0
- package/lib/cjs/appui-react.d.ts.map +1 -1
- package/lib/cjs/appui-react.js +4 -0
- package/lib/cjs/appui-react.js.map +1 -1
- package/lib/esm/appui-react/backstage/Backstage.d.ts +0 -2
- package/lib/esm/appui-react/backstage/Backstage.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/Backstage.js +0 -1
- package/lib/esm/appui-react/backstage/Backstage.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts +1 -0
- package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposerItem.js +2 -2
- package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +2 -0
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js +6 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
- package/lib/esm/appui-react/content/ContentControl.d.ts +6 -0
- package/lib/esm/appui-react/content/ContentControl.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentControl.js +10 -1
- package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.d.ts +8 -0
- package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.js +41 -35
- package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.scss +27 -27
- package/lib/esm/appui-react/content/ContentViewManager.d.ts +7 -0
- package/lib/esm/appui-react/content/ContentViewManager.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentViewManager.js +46 -22
- package/lib/esm/appui-react/content/ContentViewManager.js.map +1 -1
- package/lib/esm/appui-react/content/FloatingViewportContent.css +9 -0
- package/lib/esm/appui-react/content/FloatingViewportContent.d.ts +25 -0
- package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -0
- package/lib/esm/appui-react/content/FloatingViewportContent.js +69 -0
- package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -0
- package/lib/esm/appui-react/content/IModelViewport.d.ts +1 -1
- package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
- package/lib/esm/appui-react/content/IModelViewport.js +1 -1
- package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/esm/appui-react/content/ViewportContentControl.d.ts +9 -0
- package/lib/esm/appui-react/content/ViewportContentControl.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ViewportContentControl.js +23 -1
- package/lib/esm/appui-react/content/ViewportContentControl.js.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialog.d.ts +24 -0
- package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -0
- package/lib/esm/appui-react/dialog/ContentDialog.js +67 -0
- package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -0
- package/lib/esm/appui-react/dialog/ContentDialog.scss +25 -0
- package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts +65 -0
- package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -0
- package/lib/esm/appui-react/dialog/ContentDialogManager.js +142 -0
- package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +9 -0
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.js +66 -8
- package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts +3 -0
- package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageManager.js +8 -0
- package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
- package/lib/esm/appui-react/hooks/useUiVisibility.d.ts +6 -0
- package/lib/esm/appui-react/hooks/useUiVisibility.d.ts.map +1 -0
- package/lib/esm/appui-react/hooks/useUiVisibility.js +23 -0
- package/lib/esm/appui-react/hooks/useUiVisibility.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -1
- package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +2 -1
- package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -1
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsTreeSearch.json +3 -3
- package/lib/esm/appui-react/popup/CardPopup.scss +3 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +2 -3
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js +1 -2
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts +3 -0
- package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarComposer.js +20 -5
- package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.js +1 -1
- package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
- package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.scss +3 -0
- package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Content.js +2 -2
- package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.js +25 -7
- package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +1 -1
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts +0 -2
- package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BasicToolWidget.js +1 -14
- package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js +1 -1
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -0
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.js +2 -0
- package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/esm/appui-react.d.ts +4 -0
- package/lib/esm/appui-react.d.ts.map +1 -1
- package/lib/esm/appui-react.js +4 -0
- package/lib/esm/appui-react.js.map +1 -1
- package/package.json +34 -35
|
@@ -13,7 +13,7 @@ const React = require("react");
|
|
|
13
13
|
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
14
14
|
const ToolbarComposer_1 = require("../toolbar/ToolbarComposer");
|
|
15
15
|
const ToolWidgetComposer_1 = require("./ToolWidgetComposer");
|
|
16
|
-
const
|
|
16
|
+
const useUiVisibility_1 = require("../hooks/useUiVisibility");
|
|
17
17
|
/**
|
|
18
18
|
* ContentToolWidgetComposer composes a Tool Widget with no tools defined by default. UiItemsProviders
|
|
19
19
|
* are used to populate the toolbars. See [[StandardContentToolsProvider]].
|
|
@@ -40,7 +40,7 @@ const BasicToolWidget_1 = require("./BasicToolWidget");
|
|
|
40
40
|
*/
|
|
41
41
|
function ContentToolWidgetComposer(props) {
|
|
42
42
|
const { cornerButton } = props;
|
|
43
|
-
const uiIsVisible = (0,
|
|
43
|
+
const uiIsVisible = (0, useUiVisibility_1.useUiVisibility)();
|
|
44
44
|
// istanbul ignore next
|
|
45
45
|
const className = (0, classnames_1.default)(!uiIsVisible && "nz-hidden");
|
|
46
46
|
return (React.createElement(ToolWidgetComposer_1.ToolWidgetComposer, { className: className, cornerItem: cornerButton, horizontalToolbar: React.createElement(ToolbarComposer_1.ToolbarComposer, { items: [], usage: appui_abstract_1.ToolbarUsage.ContentManipulation, orientation: appui_abstract_1.ToolbarOrientation.Horizontal }), verticalToolbar: React.createElement(ToolbarComposer_1.ToolbarComposer, { items: [], usage: appui_abstract_1.ToolbarUsage.ContentManipulation, orientation: appui_abstract_1.ToolbarOrientation.Vertical }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentToolWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ContentToolWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,0DAAyE;AACzE,gEAA6D;AAC7D,6DAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"ContentToolWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ContentToolWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,0DAAyE;AACzE,gEAA6D;AAC7D,6DAA0D;AAC1D,8DAA2D;AAW3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,yBAAyB,CAAC,KAAqC;IAC7E,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,WAAW,GAAG,IAAA,iCAAe,GAAE,CAAC;IACtC,uBAAuB;IACvB,MAAM,SAAS,GAAG,IAAA,oBAAU,EAC1B,CAAC,WAAW,IAAI,WAAW,CAC5B,CAAC;IACF,OAAO,CACL,oBAAC,uCAAkB,IAAC,SAAS,EAAE,SAAS,EACtC,UAAU,EAAE,YAAY,EACxB,iBAAiB,EAAE,oBAAC,iCAAe,IAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,6BAAY,CAAC,mBAAmB,EAAE,WAAW,EAAE,mCAAkB,CAAC,UAAU,GAAI,EACtI,eAAe,EAAE,oBAAC,iCAAe,IAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,6BAAY,CAAC,mBAAmB,EAAE,WAAW,EAAE,mCAAkB,CAAC,QAAQ,GAAI,GAClI,CACH,CAAC;AACJ,CAAC;AAdD,8DAcC","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 Widget\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { ToolbarOrientation, ToolbarUsage } from \"@itwin/appui-abstract\";\r\nimport { ToolbarComposer } from \"../toolbar/ToolbarComposer\";\r\nimport { ToolWidgetComposer } from \"./ToolWidgetComposer\";\r\nimport { useUiVisibility } from \"../hooks/useUiVisibility\";\r\n\r\n/**\r\n * Props for [[ContentToolWidgetComposer]].\r\n * @public\r\n */\r\nexport interface ContentToolWidgetComposerProps {\r\n /** If default backstage button is desired use <BackstageAppButton />. */\r\n cornerButton?: React.ReactNode;\r\n}\r\n\r\n/**\r\n * ContentToolWidgetComposer composes a Tool Widget with no tools defined by default. UiItemsProviders\r\n * are used to populate the toolbars. See [[StandardContentToolsProvider]].\r\n * @example\r\n * ToolWidget with no corner button\r\n * ```\r\n * <ContentToolWidgetComposer />\r\n * ```\r\n * ToolWidget with corner button\r\n * ```\r\n * const cornerButton = <BackstageAppButton icon={\"icon-bentley-systems\"} />;\r\n * <ContentToolWidgetComposer cornerButton={cornerButton} />\r\n * ```\r\n * ToolWidget with custom corner button\r\n * ```\r\n * const cornerButton = <BackstageAppButton icon={\"icon-bentley-systems\"}\r\n * label=\"Toggle Backstage display\",\r\n * execute={() => BackstageManager.getBackstageToggleCommand().execute()} />;\r\n * <ContentToolWidgetComposer cornerButton={cornerButton} />\r\n * ```\r\n *\r\n * BackstageCornerButton,\r\n * @public\r\n */\r\nexport function ContentToolWidgetComposer(props: ContentToolWidgetComposerProps) {\r\n const { cornerButton } = props;\r\n const uiIsVisible = useUiVisibility();\r\n // istanbul ignore next\r\n const className = classnames(\r\n !uiIsVisible && \"nz-hidden\",\r\n );\r\n return (\r\n <ToolWidgetComposer className={className}\r\n cornerItem={cornerButton}\r\n horizontalToolbar={<ToolbarComposer items={[]} usage={ToolbarUsage.ContentManipulation} orientation={ToolbarOrientation.Horizontal} />}\r\n verticalToolbar={<ToolbarComposer items={[]} usage={ToolbarUsage.ContentManipulation} orientation={ToolbarOrientation.Vertical} />}\r\n />\r\n );\r\n}\r\n"]}
|
|
@@ -12,7 +12,7 @@ const classnames_1 = require("classnames");
|
|
|
12
12
|
const React = require("react");
|
|
13
13
|
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
14
14
|
const ToolbarComposer_1 = require("../toolbar/ToolbarComposer");
|
|
15
|
-
const
|
|
15
|
+
const useUiVisibility_1 = require("../hooks/useUiVisibility");
|
|
16
16
|
const NavigationWidgetComposer_1 = require("./NavigationWidgetComposer");
|
|
17
17
|
/**
|
|
18
18
|
* ViewToolWidgetComposer composes a Navigation Widget with no tools defined by default. UiItemsProviders
|
|
@@ -28,7 +28,7 @@ const NavigationWidgetComposer_1 = require("./NavigationWidgetComposer");
|
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
30
|
function ViewToolWidgetComposer(props) {
|
|
31
|
-
const uiIsVisible = (0,
|
|
31
|
+
const uiIsVisible = (0, useUiVisibility_1.useUiVisibility)();
|
|
32
32
|
// istanbul ignore next
|
|
33
33
|
const className = (0, classnames_1.default)(!uiIsVisible && "nz-hidden");
|
|
34
34
|
return (React.createElement(NavigationWidgetComposer_1.NavigationWidgetComposer, { className: className, hideNavigationAid: props.hideNavigationAid, horizontalToolbar: React.createElement(ToolbarComposer_1.ToolbarComposer, { items: [], usage: appui_abstract_1.ToolbarUsage.ViewNavigation, orientation: appui_abstract_1.ToolbarOrientation.Horizontal }), verticalToolbar: React.createElement(ToolbarComposer_1.ToolbarComposer, { items: [], usage: appui_abstract_1.ToolbarUsage.ViewNavigation, orientation: appui_abstract_1.ToolbarOrientation.Vertical }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewToolWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ViewToolWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,0DAAyE;AACzE,gEAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"ViewToolWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ViewToolWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,0DAAyE;AACzE,gEAA6D;AAC7D,8DAA2D;AAC3D,yEAAsE;AAWtE;;;;;;;;;;;;GAYG;AACH,SAAgB,sBAAsB,CAAC,KAAkC;IACvE,MAAM,WAAW,GAAG,IAAA,iCAAe,GAAE,CAAC;IACtC,uBAAuB;IACvB,MAAM,SAAS,GAAG,IAAA,oBAAU,EAC1B,CAAC,WAAW,IAAI,WAAW,CAC5B,CAAC;IAEF,OAAO,CACL,oBAAC,mDAAwB,IAAC,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,EACxF,iBAAiB,EAAE,oBAAC,iCAAe,IAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,6BAAY,CAAC,cAAc,EAAE,WAAW,EAAE,mCAAkB,CAAC,UAAU,GAAI,EACjI,eAAe,EAAE,oBAAC,iCAAe,IAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,6BAAY,CAAC,cAAc,EAAE,WAAW,EAAE,mCAAkB,CAAC,QAAQ,GAAI,GAC7H,CACH,CAAC;AACJ,CAAC;AAbD,wDAaC","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 Widget\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { ToolbarOrientation, ToolbarUsage } from \"@itwin/appui-abstract\";\r\nimport { ToolbarComposer } from \"../toolbar/ToolbarComposer\";\r\nimport { useUiVisibility } from \"../hooks/useUiVisibility\";\r\nimport { NavigationWidgetComposer } from \"./NavigationWidgetComposer\";\r\n\r\n/**\r\n * Props for [[ViewToolWidgetComposer]].\r\n * @public\r\n */\r\nexport interface ViewToolWidgetComposerProps {\r\n /** If true no navigation aid will be shown. Defaults to false. */\r\n hideNavigationAid?: boolean;\r\n}\r\n\r\n/**\r\n * ViewToolWidgetComposer composes a Navigation Widget with no tools defined by default. UiItemsProviders\r\n * must be used to provide tools to populate the toolbars. See [[StandardNavigationToolsProvider]].\r\n * @example\r\n * ```\r\n * <ViewToolWidgetComposer />\r\n * ```\r\n * If no NavigationAid control is to be shown set hideNavigationAid.\r\n * * ```\r\n * <ViewToolWidgetComposer hideNavigationAid />\r\n * ```\r\n * @public\r\n */\r\nexport function ViewToolWidgetComposer(props: ViewToolWidgetComposerProps) {\r\n const uiIsVisible = useUiVisibility();\r\n // istanbul ignore next\r\n const className = classnames(\r\n !uiIsVisible && \"nz-hidden\",\r\n );\r\n\r\n return (\r\n <NavigationWidgetComposer className={className} hideNavigationAid={props.hideNavigationAid}\r\n horizontalToolbar={<ToolbarComposer items={[]} usage={ToolbarUsage.ViewNavigation} orientation={ToolbarOrientation.Horizontal} />}\r\n verticalToolbar={<ToolbarComposer items={[]} usage={ToolbarUsage.ViewNavigation} orientation={ToolbarOrientation.Vertical} />}\r\n />\r\n );\r\n}\r\n"]}
|
|
@@ -110,6 +110,7 @@ export declare class WidgetDef {
|
|
|
110
110
|
private _canPopout?;
|
|
111
111
|
private _floatingContainerId?;
|
|
112
112
|
private _defaultFloatingPosition;
|
|
113
|
+
private _initialProps?;
|
|
113
114
|
private _tabLocation;
|
|
114
115
|
get state(): WidgetState;
|
|
115
116
|
get id(): string;
|
|
@@ -128,6 +129,7 @@ export declare class WidgetDef {
|
|
|
128
129
|
get isFloating(): boolean;
|
|
129
130
|
get iconSpec(): string | ConditionalStringValue | React.ReactNode;
|
|
130
131
|
get badgeType(): BadgeType | undefined;
|
|
132
|
+
get initialProps(): WidgetProps | undefined;
|
|
131
133
|
get widgetType(): WidgetType;
|
|
132
134
|
set widgetType(type: WidgetType);
|
|
133
135
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,sBAAsB,EAAE,UAAU,EAAE,YAAY,EAAW,OAAO,EAAmB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzK,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAA0B,gCAAgC,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAG9I,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,OAAO,CAAC,2BAA2B,CAAC;CAAI;AAErF,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,oBAAY,UAAU;IACpB,IAAI,IAAA;IACJ,UAAU,IAAA;IACV,QAAQ,IAAA;IACR,WAAW,IAAA;IACX,YAAY,IAAA;IACZ,SAAS,IAAA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B,CASxB;IAEF,aAAa;IACb,IAAW,kBAAkB,8BAE5B;IAED,2BAA2B;IAC3B,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED;;OAEG;IACI,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,sBAAsB,GAAG,YAAY;IAOjE,6BAA6B;IAC7B,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED;;OAEG;IACI,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,sBAAsB,GAAG,YAAY;IAInE,IAAW,aAAa,IAAI,aAAa,GAAG,SAAS,CAEpD;IAEM,gBAAgB,CAAC,IAAI,EAAE,yBAAyB,GAAG,aAAa,GAAG,SAAS;IAqCnF,IAAW,SAAS,IAAI,KAAK,CAAC,SAAS,CAUtC;IAED,IAAW,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAEzC;IAEM,cAAc,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAU3C,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS;IAI9C,IAAW,SAAS,IAAI,OAAO,GAAG,SAAS,CAE1C;IAEM,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;IAIvD,IAAW,mBAAmB,IAAI,MAAM,GAAG,SAAS,CAEnD;IAEM,OAAO,IAAI,OAAO;IAIzB,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED,IAAW,WAAW,IAAI,WAAW,CAEpC;IAED,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAEM,oBAAoB,IAAI,IAAI;IAQnC,kEAAkE;IAC3D,kBAAkB,IAAI,IAAI;IAKjC;;OAEG;IACI,qBAAqB,IAAI,OAAO;IAavC;;;OAGG;IACI,IAAI;IAIX;;OAEG;IACI,MAAM;CAGd"}
|
|
@@ -113,6 +113,7 @@ class WidgetDef {
|
|
|
113
113
|
get isFloating() { return this.state === appui_abstract_1.WidgetState.Floating; }
|
|
114
114
|
get iconSpec() { return this._iconSpec; }
|
|
115
115
|
get badgeType() { return this._badgeType; }
|
|
116
|
+
get initialProps() { return this._initialProps; }
|
|
116
117
|
get widgetType() { return this._widgetType; }
|
|
117
118
|
set widgetType(type) { this._widgetType = type; }
|
|
118
119
|
/** @internal */
|
|
@@ -124,6 +125,7 @@ class WidgetDef {
|
|
|
124
125
|
/** @internal */
|
|
125
126
|
get defaultState() { return this._defaultState; }
|
|
126
127
|
static initializeFromWidgetProps(widgetProps, me) {
|
|
128
|
+
me._initialProps = widgetProps;
|
|
127
129
|
if (widgetProps.label)
|
|
128
130
|
me.setLabel(widgetProps.label);
|
|
129
131
|
else if (widgetProps.labelKey)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDef.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetDef.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,0DAAyK;AAEzK,mFAA8I;AAC9I,mFAAgF;AAChF,uEAAoE;AAGpE,2EAAwE;AACxE,gDAA6C;AAC7C,sDAAmD;AAGnD,qFAAkF;AAElF,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAsB;IACtD,CAAC,4BAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC9B,CAAC,4BAAW,CAAC,QAAQ,EAAE,UAAU,CAAC;IAClC,CAAC,4BAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC9B,CAAC,4BAAW,CAAC,IAAI,EAAE,MAAM,CAAC;IAC1B,CAAC,4BAAW,CAAC,QAAQ,EAAE,UAAU,CAAC;CACnC,CAAC,CAAC;AAUH;;GAEG;AACH,MAAa,uBAAwB,SAAQ,wBAAoC;CAAI;AAArF,0DAAqF;AAYrF;;GAEG;AACH,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,2CAAI,CAAA;IACJ,uDAAU,CAAA;IACV,mDAAQ,CAAA;IACR,yDAAW,CAAA;IACX,2DAAY,CAAA;IACZ,qDAAS,CAAA;AACX,CAAC,EAPW,UAAU,GAAV,kBAA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Aa,CAAC,oBAAoB,EAAE,CAAC;QAChE,uBAAuB;QACvB,IAAI,CAAC,qBAAqB,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC7D,CAAC;IAED,kEAAkE;IAC3D,kBAAkB;QACvB,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,kBAAkB,EAAE,CAAC;QAC9D,IAAI,CAAC,mBAAmB,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;IACzD,CAAC;IAED;;OAEG;IACI,qBAAqB;QAC1B,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,sBAAsB,EAAE;YACrD,IAAI,OAAO,GAAG,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC;YACrC,IAAI,IAAI,CAAC,aAAa;gBACpB,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;YACvD,IAAI,IAAI,CAAC,sBAAsB;gBAC7B,OAAO,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC1C,MAAM,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC;SAChC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,IAAI;QACT,qCAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACI,MAAM;QACX,qCAAiB,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC;;AAzWH,8BA0WC;AAzWgB,cAAI,GAAG,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 Widget\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { AbstractWidgetProps, BadgeType, ConditionalStringValue, PointProps, StringGetter, UiError, UiEvent, UiSyncEventArgs, WidgetState } from \"@itwin/appui-abstract\";\r\nimport { Direction, PanelSide } from \"@itwin/appui-layout-react\";\r\nimport { ConfigurableCreateInfo, ConfigurableUiControlConstructor, ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\nimport { ConfigurableUiManager } from \"../configurableui/ConfigurableUiManager\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\r\nimport { ItemList } from \"../shared/ItemMap\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { WidgetControl } from \"./WidgetControl\";\r\nimport { WidgetProps } from \"./WidgetProps\";\r\nimport { StatusBarWidgetComposerControl } from \"./StatusBarWidgetComposerControl\";\r\n\r\nconst widgetStateNameMap = new Map<WidgetState, string>([\r\n [WidgetState.Closed, \"Closed\"],\r\n [WidgetState.Floating, \"Floating\"],\r\n [WidgetState.Hidden, \"Hidden\"],\r\n [WidgetState.Open, \"Open\"],\r\n [WidgetState.Unloaded, \"Unloaded\"],\r\n]);\r\n\r\n/** Widget State Changed Event Args interface.\r\n * @public\r\n */\r\nexport interface WidgetStateChangedEventArgs {\r\n widgetDef: WidgetDef;\r\n widgetState: WidgetState;\r\n}\r\n\r\n/** Widget State Changed Event class.\r\n * @public\r\n */\r\nexport class WidgetStateChangedEvent extends UiEvent<WidgetStateChangedEventArgs> { }\r\n\r\n/** @internal */\r\nexport interface WidgetChangedEventArgs {\r\n widgetDef: WidgetDef;\r\n}\r\n\r\n/** @internal */\r\nexport interface WidgetEventArgs {\r\n widgetDef: WidgetDef;\r\n}\r\n\r\n/** Widget type enum.\r\n * @public\r\n */\r\nexport enum WidgetType {\r\n Tool,\r\n Navigation,\r\n FreeFrom,\r\n Rectangular,\r\n ToolSettings,\r\n StatusBar,\r\n}\r\n\r\n/** Properties for a Toolbar Widget.\r\n * @public\r\n */\r\nexport interface ToolbarWidgetProps extends WidgetProps {\r\n horizontalDirection?: Direction; // eslint-disable-line deprecation/deprecation\r\n verticalDirection?: Direction; // eslint-disable-line deprecation/deprecation\r\n\r\n horizontalItems?: ItemList;\r\n verticalItems?: ItemList;\r\n}\r\n\r\n/** Properties for a Tool Widget.\r\n * @public\r\n */\r\nexport interface ToolWidgetProps extends ToolbarWidgetProps {\r\n appButton?: CommandItemDef;\r\n}\r\n\r\n/** Properties for a Navigation Widget.\r\n * @public\r\n */\r\nexport interface NavigationWidgetProps extends ToolbarWidgetProps {\r\n navigationAidId?: string;\r\n}\r\n\r\n/** Union of all Widget properties.\r\n * @public\r\n */\r\nexport type AnyWidgetProps = WidgetProps | ToolWidgetProps | NavigationWidgetProps;\r\n\r\n/** Prototype for WidgetDef StateFunc (UI 1.0 only deprecate ???)\r\n * @public\r\n */\r\nexport type WidgetStateFunc = (state: Readonly<WidgetState>) => WidgetState;\r\n\r\n/** @internal */\r\nexport interface TabLocation {\r\n widgetId: string;\r\n widgetIndex: number;\r\n side: PanelSide;\r\n tabIndex: number;\r\n}\r\n\r\n// -----------------------------------------------------------------------------\r\n\r\n/** A Widget Definition in the 9-Zone Layout system.\r\n * @public\r\n */\r\nexport class WidgetDef {\r\n private static _sId = 0;\r\n private _label: string | ConditionalStringValue | StringGetter = \"\";\r\n private _tooltip: string | ConditionalStringValue | StringGetter = \"\";\r\n private _widgetReactNode: React.ReactNode;\r\n private _widgetControl!: WidgetControl;\r\n private _defaultState: WidgetState = WidgetState.Unloaded;\r\n private _state: WidgetState = WidgetState.Unloaded;\r\n private _id: string;\r\n private _classId: string | ConfigurableUiControlConstructor | undefined = undefined;\r\n private _priority: number = 0;\r\n private _isFreeform: boolean = false;\r\n private _isFloatingStateSupported: boolean = false;\r\n private _isFloatingStateWindowResizable: boolean = true;\r\n private _isToolSettings: boolean = false;\r\n private _isStatusBar: boolean = false;\r\n private _stateChanged: boolean = false;\r\n private _fillZone: boolean = false;\r\n private _syncEventIds: string[] = [];\r\n private _stateFunc?: WidgetStateFunc;\r\n private _widgetType: WidgetType = WidgetType.Rectangular;\r\n private _applicationData?: any;\r\n private _iconSpec?: string | ConditionalStringValue | React.ReactNode;\r\n private _badgeType?: BadgeType;\r\n private _onWidgetStateChanged?: () => void;\r\n private _saveTransientState?: () => void;\r\n private _restoreTransientState?: () => boolean;\r\n private _preferredPanelSize: \"fit-content\" | undefined;\r\n private _canPopout?: boolean;\r\n private _floatingContainerId?: string;\r\n private _defaultFloatingPosition: PointProps | undefined;\r\n\r\n private _tabLocation: TabLocation = {\r\n side: \"left\",\r\n tabIndex: 0,\r\n widgetId: \"\",\r\n widgetIndex: 0,\r\n };\r\n\r\n public get state(): WidgetState {\r\n if (\"1\" === UiFramework.uiVersion)\r\n return this._state;\r\n\r\n const frontstageDef = FrontstageManager.activeFrontstageDef;\r\n if (frontstageDef?.findWidgetDef(this.id)) {\r\n const currentState = frontstageDef.getWidgetCurrentState(this);\r\n if (undefined !== currentState)\r\n return currentState;\r\n }\r\n return this.defaultState;\r\n }\r\n\r\n public get id(): string { return this._id; }\r\n public get classId(): string | ConfigurableUiControlConstructor | undefined { return this._classId; }\r\n public get priority(): number { return this._priority; }\r\n public get isFreeform(): boolean { return this._isFreeform; }\r\n public get isFloatingStateSupported(): boolean { return this._isFloatingStateSupported; }\r\n public get isFloatingStateWindowResizable(): boolean { return this._isFloatingStateWindowResizable; }\r\n public get isToolSettings(): boolean { return this._isToolSettings; }\r\n public get isStatusBar(): boolean { return this._isStatusBar; }\r\n public get stateChanged(): boolean { return this._stateChanged; }\r\n public get fillZone(): boolean { return this._fillZone; }\r\n public get syncEventIds(): string[] { return this._syncEventIds; }\r\n public get stateFunc(): WidgetStateFunc | undefined { return this._stateFunc; }\r\n public get applicationData(): any | undefined { return this._applicationData; }\r\n public get isFloating(): boolean { return this.state === WidgetState.Floating; }\r\n public get iconSpec(): string | ConditionalStringValue | React.ReactNode { return this._iconSpec; }\r\n public get badgeType(): BadgeType | undefined { return this._badgeType; }\r\n\r\n public get widgetType(): WidgetType { return this._widgetType; }\r\n public set widgetType(type: WidgetType) { this._widgetType = type; }\r\n\r\n /** @internal */\r\n public get tabLocation() { return this._tabLocation; }\r\n public set tabLocation(tabLocation: TabLocation) { this._tabLocation = tabLocation; }\r\n\r\n /** @internal */\r\n public get defaultFloatingPosition() { return this._defaultFloatingPosition; }\r\n public set defaultFloatingPosition(position: PointProps | undefined) { this._defaultFloatingPosition = position; }\r\n\r\n /** @internal */\r\n public get defaultState() { return this._defaultState; }\r\n\r\n constructor(widgetProps: WidgetProps) {\r\n if (widgetProps.id !== undefined)\r\n this._id = widgetProps.id;\r\n else {\r\n WidgetDef._sId++;\r\n this._id = `Widget-${WidgetDef._sId}`;\r\n }\r\n\r\n WidgetDef.initializeFromWidgetProps(widgetProps, this);\r\n }\r\n\r\n public static initializeFromWidgetProps(widgetProps: WidgetProps, me: WidgetDef) {\r\n if (widgetProps.label)\r\n me.setLabel(widgetProps.label);\r\n else if (widgetProps.labelKey)\r\n me._label = UiFramework.localization.getLocalizedString(widgetProps.labelKey);\r\n\r\n me.setCanPopout(widgetProps.canPopout);\r\n me.setFloatingContainerId(widgetProps.floatingContainerId);\r\n me.defaultFloatingPosition = widgetProps.defaultFloatingPosition ? widgetProps.defaultFloatingPosition as PointProps : undefined;\r\n\r\n if (widgetProps.priority !== undefined)\r\n me._priority = widgetProps.priority;\r\n\r\n if (widgetProps.tooltip)\r\n me.setTooltip(widgetProps.tooltip);\r\n else if (widgetProps.tooltipKey)\r\n me._tooltip = UiFramework.localization.getLocalizedString(widgetProps.tooltipKey);\r\n\r\n if (widgetProps.control !== undefined)\r\n me._classId = widgetProps.control;\r\n else if (widgetProps.classId !== undefined)\r\n me._classId = widgetProps.classId;\r\n\r\n if (widgetProps.defaultState !== undefined) {\r\n me._defaultState = widgetProps.defaultState;\r\n if (\"1\" === UiFramework.uiVersion)\r\n me._state = widgetProps.defaultState === WidgetState.Floating ? WidgetState.Open : widgetProps.defaultState;\r\n }\r\n\r\n if (widgetProps.isFreeform !== undefined) {\r\n me._isFreeform = widgetProps.isFreeform;\r\n me._widgetType = me.isFreeform ? WidgetType.FreeFrom : WidgetType.Rectangular;\r\n }\r\n\r\n if (widgetProps.isFloatingStateSupported !== undefined)\r\n me._isFloatingStateSupported = widgetProps.isFloatingStateSupported;\r\n if (widgetProps.isFloatingStateWindowResizable !== undefined)\r\n me._isFloatingStateWindowResizable = widgetProps.isFloatingStateWindowResizable;\r\n if (widgetProps.isToolSettings !== undefined)\r\n me._isToolSettings = widgetProps.isToolSettings;\r\n if (widgetProps.isStatusBar !== undefined)\r\n me._isStatusBar = widgetProps.isStatusBar;\r\n if (widgetProps.fillZone !== undefined)\r\n me._fillZone = widgetProps.fillZone;\r\n\r\n if (widgetProps.applicationData !== undefined)\r\n me._applicationData = widgetProps.applicationData;\r\n\r\n if (widgetProps.element !== undefined)\r\n me._widgetReactNode = widgetProps.element;\r\n\r\n if (widgetProps.iconSpec !== undefined)\r\n me._iconSpec = widgetProps.iconSpec;\r\n // istanbul ignore if\r\n if (widgetProps.icon !== undefined)\r\n me._iconSpec = widgetProps.icon;\r\n\r\n if (widgetProps.badgeType !== undefined)\r\n me._badgeType = widgetProps.badgeType;\r\n\r\n me._preferredPanelSize = widgetProps.preferredPanelSize;\r\n me._onWidgetStateChanged = widgetProps.onWidgetStateChanged;\r\n me._saveTransientState = widgetProps.saveTransientState;\r\n me._restoreTransientState = widgetProps.restoreTransientState;\r\n\r\n me.setUpSyncSupport(widgetProps);\r\n }\r\n\r\n public static createWidgetPropsFromAbstractProps(abstractWidgetProps: AbstractWidgetProps): WidgetProps {\r\n const widgetProps: WidgetProps = abstractWidgetProps;\r\n widgetProps.element = abstractWidgetProps.getWidgetContent();\r\n return widgetProps;\r\n }\r\n\r\n public setUpSyncSupport(props: WidgetProps) {\r\n if (props.stateFunc && props.syncEventIds && props.syncEventIds.length > 0) {\r\n this._syncEventIds = props.syncEventIds;\r\n this._stateFunc = props.stateFunc;\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);\r\n }\r\n }\r\n\r\n private _handleSyncUiEvent = (args: UiSyncEventArgs): void => {\r\n if ((this.syncEventIds.length > 0) && this.syncEventIds.some((value: string): boolean => args.eventIds.has(value.toLowerCase()))) {\r\n // istanbul ignore else\r\n if (this.stateFunc) {\r\n let newState = this.state;\r\n newState = this.stateFunc(newState);\r\n this.setWidgetState(newState);\r\n }\r\n }\r\n };\r\n\r\n /** @alpha */\r\n public get preferredPanelSize() {\r\n return this._preferredPanelSize;\r\n }\r\n\r\n /** Get the label string */\r\n public get label(): string {\r\n return PropsHelper.getStringFromSpec(this._label);\r\n }\r\n\r\n /** Set the label.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setLabel(v: string | ConditionalStringValue | StringGetter) {\r\n if (this._label === v)\r\n return;\r\n this._label = v;\r\n FrontstageManager.onWidgetLabelChangedEvent.emit({ widgetDef: this });\r\n }\r\n\r\n /** Get the tooltip string */\r\n public get tooltip(): string {\r\n return PropsHelper.getStringFromSpec(this._tooltip);\r\n }\r\n\r\n /** Set the tooltip.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setTooltip(v: string | ConditionalStringValue | StringGetter) {\r\n this._tooltip = v;\r\n }\r\n\r\n public get widgetControl(): WidgetControl | undefined {\r\n return this._widgetControl;\r\n }\r\n\r\n public getWidgetControl(type: ConfigurableUiControlType): WidgetControl | undefined {\r\n if (!this._widgetControl && this.classId) {\r\n let usedClassId: string = \"\";\r\n\r\n if (typeof this.classId === \"string\") {\r\n // istanbul ignore else\r\n if (this.classId)\r\n this._widgetControl = ConfigurableUiManager.createControl(this.classId, this.id, this.applicationData) as WidgetControl;\r\n usedClassId = this.classId;\r\n } else {\r\n const info = new ConfigurableCreateInfo(this.classId.name, this.id, this.id);\r\n usedClassId = this.classId.name;\r\n this._widgetControl = new this.classId(info, this.applicationData) as WidgetControl;\r\n }\r\n\r\n // istanbul ignore else\r\n if (this._widgetControl) {\r\n if (this._widgetControl.getType() !== type) {\r\n throw new UiError(UiFramework.loggerCategory(this), `getWidgetControl: '${usedClassId}' is NOT a ${type}; it is a ${this._widgetControl.getType()}`);\r\n }\r\n\r\n this._widgetControl.widgetDef = this;\r\n this._widgetControl.initialize();\r\n }\r\n }\r\n\r\n // istanbul ignore next - To avoid breaking API changes, if a WidgetControl is not specified for a status bar use Default one.\r\n if (!this._widgetControl && this.isStatusBar) {\r\n const info = new ConfigurableCreateInfo(\"StatusBarWidgetComposerControl\", StatusBarWidgetComposerControl.controlId, StatusBarWidgetComposerControl.controlId);\r\n this._widgetControl = new StatusBarWidgetComposerControl(info, undefined);\r\n this._widgetControl.widgetDef = this;\r\n this._widgetControl.initialize();\r\n }\r\n\r\n return this._widgetControl;\r\n }\r\n\r\n public get reactNode(): React.ReactNode {\r\n if (!this._widgetReactNode) {\r\n const widgetControl = this.getWidgetControl(ConfigurableUiControlType.Widget);\r\n\r\n // istanbul ignore else\r\n if (widgetControl && widgetControl.reactNode)\r\n this._widgetReactNode = widgetControl.reactNode;\r\n }\r\n\r\n return this._widgetReactNode;\r\n }\r\n\r\n public set reactNode(node: React.ReactNode) {\r\n this._widgetReactNode = node;\r\n }\r\n\r\n public setWidgetState(newState: WidgetState): void {\r\n if (this.state === newState)\r\n return;\r\n if (\"1\" === UiFramework.uiVersion)\r\n this._state = newState;\r\n this._stateChanged = true;\r\n FrontstageManager.onWidgetStateChangedEvent.emit({ widgetDef: this, widgetState: newState });\r\n this.onWidgetStateChanged();\r\n }\r\n\r\n public setCanPopout(value: boolean | undefined) {\r\n this._canPopout = value;\r\n }\r\n\r\n public get canPopout(): boolean | undefined {\r\n return (this._canPopout);\r\n }\r\n\r\n public setFloatingContainerId(value: string | undefined) {\r\n this._floatingContainerId = value;\r\n }\r\n\r\n public get floatingContainerId(): string | undefined {\r\n return (this._floatingContainerId);\r\n }\r\n\r\n public canOpen(): boolean {\r\n return (this.isFloating || this.isActive);\r\n }\r\n\r\n public get isVisible(): boolean {\r\n return WidgetState.Hidden !== this.state;\r\n }\r\n\r\n public get activeState(): WidgetState {\r\n return this.state;\r\n }\r\n\r\n public get isActive(): boolean {\r\n return WidgetState.Open === this.activeState;\r\n }\r\n\r\n public onWidgetStateChanged(): void {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.widgetControl && UiFramework.postTelemetry(`Widget ${this.widgetControl.classId} state set to ${widgetStateNameMap.get(this.state)}`, \"35402486-9839-441E-A5C7-46D546142D11\");\r\n this.widgetControl && this.widgetControl.onWidgetStateChanged();\r\n // istanbul ignore next\r\n this._onWidgetStateChanged && this._onWidgetStateChanged();\r\n }\r\n\r\n /** Overwrite to save transient DOM state (i.e. scroll offset). */\r\n public saveTransientState(): void {\r\n this.widgetControl && this.widgetControl.saveTransientState();\r\n this._saveTransientState && this._saveTransientState();\r\n }\r\n\r\n /** Overwrite to restore transient DOM state.\r\n * @note Return true if the state is restored or the Widget will remount.\r\n */\r\n public restoreTransientState(): boolean {\r\n let result = true;\r\n if (this.widgetControl || this._restoreTransientState) {\r\n let result1 = false, result2 = false;\r\n if (this.widgetControl)\r\n result1 = this.widgetControl.restoreTransientState();\r\n if (this._restoreTransientState)\r\n result2 = this._restoreTransientState();\r\n result = !(result1 || result2);\r\n }\r\n return result;\r\n }\r\n\r\n /** Opens the widget and makes it visible to the user.\r\n * I.e. opens the stage panel or brings the floating widget to front of the screen.\r\n * @alpha\r\n */\r\n public show() {\r\n FrontstageManager.onWidgetShowEvent.emit({ widgetDef: this });\r\n }\r\n\r\n /** Opens the widget and expands it to fill full size of the stage panel.\r\n * @alpha\r\n */\r\n public expand() {\r\n FrontstageManager.onWidgetExpandEvent.emit({ widgetDef: this });\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"WidgetDef.js","sourceRoot":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;QAC1B,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,sBAAsB,EAAE;YACrD,IAAI,OAAO,GAAG,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC;YACrC,IAAI,IAAI,CAAC,aAAa;gBACpB,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;YACvD,IAAI,IAAI,CAAC,sBAAsB;gBAC7B,OAAO,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC1C,MAAM,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC;SAChC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,IAAI;QACT,qCAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACI,MAAM;QACX,qCAAiB,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC;;AA5WH,8BA6WC;AA5WgB,cAAI,GAAG,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 Widget\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { AbstractWidgetProps, BadgeType, ConditionalStringValue, PointProps, StringGetter, UiError, UiEvent, UiSyncEventArgs, WidgetState } from \"@itwin/appui-abstract\";\r\nimport { Direction, PanelSide } from \"@itwin/appui-layout-react\";\r\nimport { ConfigurableCreateInfo, ConfigurableUiControlConstructor, ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\nimport { ConfigurableUiManager } from \"../configurableui/ConfigurableUiManager\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\r\nimport { ItemList } from \"../shared/ItemMap\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { WidgetControl } from \"./WidgetControl\";\r\nimport { WidgetProps } from \"./WidgetProps\";\r\nimport { StatusBarWidgetComposerControl } from \"./StatusBarWidgetComposerControl\";\r\n\r\nconst widgetStateNameMap = new Map<WidgetState, string>([\r\n [WidgetState.Closed, \"Closed\"],\r\n [WidgetState.Floating, \"Floating\"],\r\n [WidgetState.Hidden, \"Hidden\"],\r\n [WidgetState.Open, \"Open\"],\r\n [WidgetState.Unloaded, \"Unloaded\"],\r\n]);\r\n\r\n/** Widget State Changed Event Args interface.\r\n * @public\r\n */\r\nexport interface WidgetStateChangedEventArgs {\r\n widgetDef: WidgetDef;\r\n widgetState: WidgetState;\r\n}\r\n\r\n/** Widget State Changed Event class.\r\n * @public\r\n */\r\nexport class WidgetStateChangedEvent extends UiEvent<WidgetStateChangedEventArgs> { }\r\n\r\n/** @internal */\r\nexport interface WidgetChangedEventArgs {\r\n widgetDef: WidgetDef;\r\n}\r\n\r\n/** @internal */\r\nexport interface WidgetEventArgs {\r\n widgetDef: WidgetDef;\r\n}\r\n\r\n/** Widget type enum.\r\n * @public\r\n */\r\nexport enum WidgetType {\r\n Tool,\r\n Navigation,\r\n FreeFrom,\r\n Rectangular,\r\n ToolSettings,\r\n StatusBar,\r\n}\r\n\r\n/** Properties for a Toolbar Widget.\r\n * @public\r\n */\r\nexport interface ToolbarWidgetProps extends WidgetProps {\r\n horizontalDirection?: Direction; // eslint-disable-line deprecation/deprecation\r\n verticalDirection?: Direction; // eslint-disable-line deprecation/deprecation\r\n\r\n horizontalItems?: ItemList;\r\n verticalItems?: ItemList;\r\n}\r\n\r\n/** Properties for a Tool Widget.\r\n * @public\r\n */\r\nexport interface ToolWidgetProps extends ToolbarWidgetProps {\r\n appButton?: CommandItemDef;\r\n}\r\n\r\n/** Properties for a Navigation Widget.\r\n * @public\r\n */\r\nexport interface NavigationWidgetProps extends ToolbarWidgetProps {\r\n navigationAidId?: string;\r\n}\r\n\r\n/** Union of all Widget properties.\r\n * @public\r\n */\r\nexport type AnyWidgetProps = WidgetProps | ToolWidgetProps | NavigationWidgetProps;\r\n\r\n/** Prototype for WidgetDef StateFunc (UI 1.0 only deprecate ???)\r\n * @public\r\n */\r\nexport type WidgetStateFunc = (state: Readonly<WidgetState>) => WidgetState;\r\n\r\n/** @internal */\r\nexport interface TabLocation {\r\n widgetId: string;\r\n widgetIndex: number;\r\n side: PanelSide;\r\n tabIndex: number;\r\n}\r\n\r\n// -----------------------------------------------------------------------------\r\n\r\n/** A Widget Definition in the 9-Zone Layout system.\r\n * @public\r\n */\r\nexport class WidgetDef {\r\n private static _sId = 0;\r\n private _label: string | ConditionalStringValue | StringGetter = \"\";\r\n private _tooltip: string | ConditionalStringValue | StringGetter = \"\";\r\n private _widgetReactNode: React.ReactNode;\r\n private _widgetControl!: WidgetControl;\r\n private _defaultState: WidgetState = WidgetState.Unloaded;\r\n private _state: WidgetState = WidgetState.Unloaded;\r\n private _id: string;\r\n private _classId: string | ConfigurableUiControlConstructor | undefined = undefined;\r\n private _priority: number = 0;\r\n private _isFreeform: boolean = false;\r\n private _isFloatingStateSupported: boolean = false;\r\n private _isFloatingStateWindowResizable: boolean = true;\r\n private _isToolSettings: boolean = false;\r\n private _isStatusBar: boolean = false;\r\n private _stateChanged: boolean = false;\r\n private _fillZone: boolean = false;\r\n private _syncEventIds: string[] = [];\r\n private _stateFunc?: WidgetStateFunc;\r\n private _widgetType: WidgetType = WidgetType.Rectangular;\r\n private _applicationData?: any;\r\n private _iconSpec?: string | ConditionalStringValue | React.ReactNode;\r\n private _badgeType?: BadgeType;\r\n private _onWidgetStateChanged?: () => void;\r\n private _saveTransientState?: () => void;\r\n private _restoreTransientState?: () => boolean;\r\n private _preferredPanelSize: \"fit-content\" | undefined;\r\n private _canPopout?: boolean;\r\n private _floatingContainerId?: string;\r\n private _defaultFloatingPosition: PointProps | undefined;\r\n private _initialProps?: WidgetProps;\r\n\r\n private _tabLocation: TabLocation = {\r\n side: \"left\",\r\n tabIndex: 0,\r\n widgetId: \"\",\r\n widgetIndex: 0,\r\n };\r\n\r\n public get state(): WidgetState {\r\n if (\"1\" === UiFramework.uiVersion)\r\n return this._state;\r\n\r\n const frontstageDef = FrontstageManager.activeFrontstageDef;\r\n if (frontstageDef?.findWidgetDef(this.id)) {\r\n const currentState = frontstageDef.getWidgetCurrentState(this);\r\n if (undefined !== currentState)\r\n return currentState;\r\n }\r\n return this.defaultState;\r\n }\r\n\r\n public get id(): string { return this._id; }\r\n public get classId(): string | ConfigurableUiControlConstructor | undefined { return this._classId; }\r\n public get priority(): number { return this._priority; }\r\n public get isFreeform(): boolean { return this._isFreeform; }\r\n public get isFloatingStateSupported(): boolean { return this._isFloatingStateSupported; }\r\n public get isFloatingStateWindowResizable(): boolean { return this._isFloatingStateWindowResizable; }\r\n public get isToolSettings(): boolean { return this._isToolSettings; }\r\n public get isStatusBar(): boolean { return this._isStatusBar; }\r\n public get stateChanged(): boolean { return this._stateChanged; }\r\n public get fillZone(): boolean { return this._fillZone; }\r\n public get syncEventIds(): string[] { return this._syncEventIds; }\r\n public get stateFunc(): WidgetStateFunc | undefined { return this._stateFunc; }\r\n public get applicationData(): any | undefined { return this._applicationData; }\r\n public get isFloating(): boolean { return this.state === WidgetState.Floating; }\r\n public get iconSpec(): string | ConditionalStringValue | React.ReactNode { return this._iconSpec; }\r\n public get badgeType(): BadgeType | undefined { return this._badgeType; }\r\n public get initialProps(): WidgetProps | undefined { return this._initialProps; }\r\n\r\n public get widgetType(): WidgetType { return this._widgetType; }\r\n public set widgetType(type: WidgetType) { this._widgetType = type; }\r\n\r\n /** @internal */\r\n public get tabLocation() { return this._tabLocation; }\r\n public set tabLocation(tabLocation: TabLocation) { this._tabLocation = tabLocation; }\r\n\r\n /** @internal */\r\n public get defaultFloatingPosition() { return this._defaultFloatingPosition; }\r\n public set defaultFloatingPosition(position: PointProps | undefined) { this._defaultFloatingPosition = position; }\r\n\r\n /** @internal */\r\n public get defaultState() { return this._defaultState; }\r\n\r\n constructor(widgetProps: WidgetProps) {\r\n if (widgetProps.id !== undefined)\r\n this._id = widgetProps.id;\r\n else {\r\n WidgetDef._sId++;\r\n this._id = `Widget-${WidgetDef._sId}`;\r\n }\r\n\r\n WidgetDef.initializeFromWidgetProps(widgetProps, this);\r\n }\r\n\r\n public static initializeFromWidgetProps(widgetProps: WidgetProps, me: WidgetDef) {\r\n me._initialProps = widgetProps;\r\n if (widgetProps.label)\r\n me.setLabel(widgetProps.label);\r\n else if (widgetProps.labelKey)\r\n me._label = UiFramework.localization.getLocalizedString(widgetProps.labelKey);\r\n\r\n me.setCanPopout(widgetProps.canPopout);\r\n me.setFloatingContainerId(widgetProps.floatingContainerId);\r\n me.defaultFloatingPosition = widgetProps.defaultFloatingPosition ? widgetProps.defaultFloatingPosition as PointProps : undefined;\r\n\r\n if (widgetProps.priority !== undefined)\r\n me._priority = widgetProps.priority;\r\n\r\n if (widgetProps.tooltip)\r\n me.setTooltip(widgetProps.tooltip);\r\n else if (widgetProps.tooltipKey)\r\n me._tooltip = UiFramework.localization.getLocalizedString(widgetProps.tooltipKey);\r\n\r\n if (widgetProps.control !== undefined)\r\n me._classId = widgetProps.control;\r\n else if (widgetProps.classId !== undefined)\r\n me._classId = widgetProps.classId;\r\n\r\n if (widgetProps.defaultState !== undefined) {\r\n me._defaultState = widgetProps.defaultState;\r\n if (\"1\" === UiFramework.uiVersion)\r\n me._state = widgetProps.defaultState === WidgetState.Floating ? WidgetState.Open : widgetProps.defaultState;\r\n }\r\n\r\n if (widgetProps.isFreeform !== undefined) {\r\n me._isFreeform = widgetProps.isFreeform;\r\n me._widgetType = me.isFreeform ? WidgetType.FreeFrom : WidgetType.Rectangular;\r\n }\r\n\r\n if (widgetProps.isFloatingStateSupported !== undefined)\r\n me._isFloatingStateSupported = widgetProps.isFloatingStateSupported;\r\n if (widgetProps.isFloatingStateWindowResizable !== undefined)\r\n me._isFloatingStateWindowResizable = widgetProps.isFloatingStateWindowResizable;\r\n if (widgetProps.isToolSettings !== undefined)\r\n me._isToolSettings = widgetProps.isToolSettings;\r\n if (widgetProps.isStatusBar !== undefined)\r\n me._isStatusBar = widgetProps.isStatusBar;\r\n if (widgetProps.fillZone !== undefined)\r\n me._fillZone = widgetProps.fillZone;\r\n\r\n if (widgetProps.applicationData !== undefined)\r\n me._applicationData = widgetProps.applicationData;\r\n\r\n if (widgetProps.element !== undefined)\r\n me._widgetReactNode = widgetProps.element;\r\n\r\n if (widgetProps.iconSpec !== undefined)\r\n me._iconSpec = widgetProps.iconSpec;\r\n // istanbul ignore if\r\n if (widgetProps.icon !== undefined)\r\n me._iconSpec = widgetProps.icon;\r\n\r\n if (widgetProps.badgeType !== undefined)\r\n me._badgeType = widgetProps.badgeType;\r\n\r\n me._preferredPanelSize = widgetProps.preferredPanelSize;\r\n me._onWidgetStateChanged = widgetProps.onWidgetStateChanged;\r\n me._saveTransientState = widgetProps.saveTransientState;\r\n me._restoreTransientState = widgetProps.restoreTransientState;\r\n\r\n me.setUpSyncSupport(widgetProps);\r\n }\r\n\r\n public static createWidgetPropsFromAbstractProps(abstractWidgetProps: AbstractWidgetProps): WidgetProps {\r\n const widgetProps: WidgetProps = abstractWidgetProps;\r\n widgetProps.element = abstractWidgetProps.getWidgetContent();\r\n return widgetProps;\r\n }\r\n\r\n public setUpSyncSupport(props: WidgetProps) {\r\n if (props.stateFunc && props.syncEventIds && props.syncEventIds.length > 0) {\r\n this._syncEventIds = props.syncEventIds;\r\n this._stateFunc = props.stateFunc;\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);\r\n }\r\n }\r\n\r\n private _handleSyncUiEvent = (args: UiSyncEventArgs): void => {\r\n if ((this.syncEventIds.length > 0) && this.syncEventIds.some((value: string): boolean => args.eventIds.has(value.toLowerCase()))) {\r\n // istanbul ignore else\r\n if (this.stateFunc) {\r\n let newState = this.state;\r\n newState = this.stateFunc(newState);\r\n this.setWidgetState(newState);\r\n }\r\n }\r\n };\r\n\r\n /** @alpha */\r\n public get preferredPanelSize() {\r\n return this._preferredPanelSize;\r\n }\r\n\r\n /** Get the label string */\r\n public get label(): string {\r\n return PropsHelper.getStringFromSpec(this._label);\r\n }\r\n\r\n /** Set the label.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setLabel(v: string | ConditionalStringValue | StringGetter) {\r\n if (this._label === v)\r\n return;\r\n this._label = v;\r\n FrontstageManager.onWidgetLabelChangedEvent.emit({ widgetDef: this });\r\n }\r\n\r\n /** Get the tooltip string */\r\n public get tooltip(): string {\r\n return PropsHelper.getStringFromSpec(this._tooltip);\r\n }\r\n\r\n /** Set the tooltip.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setTooltip(v: string | ConditionalStringValue | StringGetter) {\r\n this._tooltip = v;\r\n }\r\n\r\n public get widgetControl(): WidgetControl | undefined {\r\n return this._widgetControl;\r\n }\r\n\r\n public getWidgetControl(type: ConfigurableUiControlType): WidgetControl | undefined {\r\n if (!this._widgetControl && this.classId) {\r\n let usedClassId: string = \"\";\r\n\r\n if (typeof this.classId === \"string\") {\r\n // istanbul ignore else\r\n if (this.classId)\r\n this._widgetControl = ConfigurableUiManager.createControl(this.classId, this.id, this.applicationData) as WidgetControl;\r\n usedClassId = this.classId;\r\n } else {\r\n const info = new ConfigurableCreateInfo(this.classId.name, this.id, this.id);\r\n usedClassId = this.classId.name;\r\n this._widgetControl = new this.classId(info, this.applicationData) as WidgetControl;\r\n }\r\n\r\n // istanbul ignore else\r\n if (this._widgetControl) {\r\n if (this._widgetControl.getType() !== type) {\r\n throw new UiError(UiFramework.loggerCategory(this), `getWidgetControl: '${usedClassId}' is NOT a ${type}; it is a ${this._widgetControl.getType()}`);\r\n }\r\n\r\n this._widgetControl.widgetDef = this;\r\n this._widgetControl.initialize();\r\n }\r\n }\r\n\r\n // istanbul ignore next - To avoid breaking API changes, if a WidgetControl is not specified for a status bar use Default one.\r\n if (!this._widgetControl && this.isStatusBar) {\r\n const info = new ConfigurableCreateInfo(\"StatusBarWidgetComposerControl\", StatusBarWidgetComposerControl.controlId, StatusBarWidgetComposerControl.controlId);\r\n this._widgetControl = new StatusBarWidgetComposerControl(info, undefined);\r\n this._widgetControl.widgetDef = this;\r\n this._widgetControl.initialize();\r\n }\r\n\r\n return this._widgetControl;\r\n }\r\n\r\n public get reactNode(): React.ReactNode {\r\n if (!this._widgetReactNode) {\r\n const widgetControl = this.getWidgetControl(ConfigurableUiControlType.Widget);\r\n\r\n // istanbul ignore else\r\n if (widgetControl && widgetControl.reactNode)\r\n this._widgetReactNode = widgetControl.reactNode;\r\n }\r\n\r\n return this._widgetReactNode;\r\n }\r\n\r\n public set reactNode(node: React.ReactNode) {\r\n this._widgetReactNode = node;\r\n }\r\n\r\n public setWidgetState(newState: WidgetState): void {\r\n if (this.state === newState)\r\n return;\r\n if (\"1\" === UiFramework.uiVersion)\r\n this._state = newState;\r\n this._stateChanged = true;\r\n FrontstageManager.onWidgetStateChangedEvent.emit({ widgetDef: this, widgetState: newState });\r\n this.onWidgetStateChanged();\r\n }\r\n\r\n public setCanPopout(value: boolean | undefined) {\r\n this._canPopout = value;\r\n }\r\n\r\n public get canPopout(): boolean | undefined {\r\n return (this._canPopout);\r\n }\r\n\r\n public setFloatingContainerId(value: string | undefined) {\r\n this._floatingContainerId = value;\r\n }\r\n\r\n public get floatingContainerId(): string | undefined {\r\n return (this._floatingContainerId);\r\n }\r\n\r\n public canOpen(): boolean {\r\n return (this.isFloating || this.isActive);\r\n }\r\n\r\n public get isVisible(): boolean {\r\n return WidgetState.Hidden !== this.state;\r\n }\r\n\r\n public get activeState(): WidgetState {\r\n return this.state;\r\n }\r\n\r\n public get isActive(): boolean {\r\n return WidgetState.Open === this.activeState;\r\n }\r\n\r\n public onWidgetStateChanged(): void {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.widgetControl && UiFramework.postTelemetry(`Widget ${this.widgetControl.classId} state set to ${widgetStateNameMap.get(this.state)}`, \"35402486-9839-441E-A5C7-46D546142D11\");\r\n this.widgetControl && this.widgetControl.onWidgetStateChanged();\r\n // istanbul ignore next\r\n this._onWidgetStateChanged && this._onWidgetStateChanged();\r\n }\r\n\r\n /** Overwrite to save transient DOM state (i.e. scroll offset). */\r\n public saveTransientState(): void {\r\n this.widgetControl && this.widgetControl.saveTransientState();\r\n this._saveTransientState && this._saveTransientState();\r\n }\r\n\r\n /** Overwrite to restore transient DOM state.\r\n * @note Return true if the state is restored or the Widget will remount.\r\n */\r\n public restoreTransientState(): boolean {\r\n let result = true;\r\n if (this.widgetControl || this._restoreTransientState) {\r\n let result1 = false, result2 = false;\r\n if (this.widgetControl)\r\n result1 = this.widgetControl.restoreTransientState();\r\n if (this._restoreTransientState)\r\n result2 = this._restoreTransientState();\r\n result = !(result1 || result2);\r\n }\r\n return result;\r\n }\r\n\r\n /** Opens the widget and makes it visible to the user.\r\n * I.e. opens the stage panel or brings the floating widget to front of the screen.\r\n * @alpha\r\n */\r\n public show() {\r\n FrontstageManager.onWidgetShowEvent.emit({ widgetDef: this });\r\n }\r\n\r\n /** Opens the widget and expands it to fill full size of the stage panel.\r\n * @alpha\r\n */\r\n public expand() {\r\n FrontstageManager.onWidgetExpandEvent.emit({ widgetDef: this });\r\n }\r\n}\r\n"]}
|
package/lib/cjs/appui-react.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from "./appui-react/content/ContentGroup";
|
|
|
32
32
|
export * from "./appui-react/content/ContentLayout";
|
|
33
33
|
export * from "./appui-react/content/ContentLayoutManager";
|
|
34
34
|
export * from "./appui-react/content/ContentViewManager";
|
|
35
|
+
export * from "./appui-react/content/FloatingViewportContent";
|
|
35
36
|
export * from "./appui-react/content/ViewStateHelper";
|
|
36
37
|
export * from "./appui-react/content/StageContentLayout";
|
|
37
38
|
export * from "./appui-react/content/ViewportContentControl";
|
|
@@ -45,6 +46,8 @@ export * from "./appui-react/cursor/cursorpopup/CursorPopupManager";
|
|
|
45
46
|
export * from "./appui-react/cursor/cursormenu/CursorMenu";
|
|
46
47
|
export * from "./appui-react/dialog/DialogManagerBase";
|
|
47
48
|
export * from "./appui-react/dialog/ModalDialogManager";
|
|
49
|
+
export * from "./appui-react/dialog/ContentDialogManager";
|
|
50
|
+
export * from "./appui-react/dialog/ContentDialog";
|
|
48
51
|
export * from "./appui-react/dialog/ModelessDialog";
|
|
49
52
|
export * from "./appui-react/dialog/ModelessDialogManager";
|
|
50
53
|
export * from "./appui-react/dialog/StandardMessageBox";
|
|
@@ -68,6 +71,7 @@ export * from "./appui-react/hooks/useAnalysisAnimationDataProvider";
|
|
|
68
71
|
export * from "./appui-react/hooks/useFrameworkVersion";
|
|
69
72
|
export * from "./appui-react/hooks/useScheduleAnimationDataProvider";
|
|
70
73
|
export * from "./appui-react/hooks/useSolarDataProvider";
|
|
74
|
+
export * from "./appui-react/hooks/useUiVisibility";
|
|
71
75
|
export * from "./appui-react/imodel-components/spatial-tree/SpatialContainmentTree";
|
|
72
76
|
export * from "./appui-react/imodel-components/category-tree/CategoriesTree";
|
|
73
77
|
export * from "./appui-react/imodel-components/category-tree/CategoryVisibilityHandler";
|
|
@@ -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,0CAA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package/lib/cjs/appui-react.js
CHANGED
|
@@ -49,6 +49,7 @@ __exportStar(require("./appui-react/content/ContentGroup"), exports);
|
|
|
49
49
|
__exportStar(require("./appui-react/content/ContentLayout"), exports);
|
|
50
50
|
__exportStar(require("./appui-react/content/ContentLayoutManager"), exports);
|
|
51
51
|
__exportStar(require("./appui-react/content/ContentViewManager"), exports);
|
|
52
|
+
__exportStar(require("./appui-react/content/FloatingViewportContent"), exports);
|
|
52
53
|
__exportStar(require("./appui-react/content/ViewStateHelper"), exports);
|
|
53
54
|
__exportStar(require("./appui-react/content/StageContentLayout"), exports);
|
|
54
55
|
__exportStar(require("./appui-react/content/ViewportContentControl"), exports);
|
|
@@ -62,6 +63,8 @@ __exportStar(require("./appui-react/cursor/cursorpopup/CursorPopupManager"), exp
|
|
|
62
63
|
__exportStar(require("./appui-react/cursor/cursormenu/CursorMenu"), exports);
|
|
63
64
|
__exportStar(require("./appui-react/dialog/DialogManagerBase"), exports);
|
|
64
65
|
__exportStar(require("./appui-react/dialog/ModalDialogManager"), exports);
|
|
66
|
+
__exportStar(require("./appui-react/dialog/ContentDialogManager"), exports);
|
|
67
|
+
__exportStar(require("./appui-react/dialog/ContentDialog"), exports);
|
|
65
68
|
__exportStar(require("./appui-react/dialog/ModelessDialog"), exports);
|
|
66
69
|
__exportStar(require("./appui-react/dialog/ModelessDialogManager"), exports);
|
|
67
70
|
__exportStar(require("./appui-react/dialog/StandardMessageBox"), exports);
|
|
@@ -85,6 +88,7 @@ __exportStar(require("./appui-react/hooks/useAnalysisAnimationDataProvider"), ex
|
|
|
85
88
|
__exportStar(require("./appui-react/hooks/useFrameworkVersion"), exports);
|
|
86
89
|
__exportStar(require("./appui-react/hooks/useScheduleAnimationDataProvider"), exports);
|
|
87
90
|
__exportStar(require("./appui-react/hooks/useSolarDataProvider"), exports);
|
|
91
|
+
__exportStar(require("./appui-react/hooks/useUiVisibility"), exports);
|
|
88
92
|
__exportStar(require("./appui-react/imodel-components/spatial-tree/SpatialContainmentTree"), exports);
|
|
89
93
|
__exportStar(require("./appui-react/imodel-components/category-tree/CategoriesTree"), exports);
|
|
90
94
|
__exportStar(require("./appui-react/imodel-components/category-tree/CategoryVisibilityHandler"), 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,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;AACzD,6EAA2D;AAE3D,yEAAuD;AACvD,iFAA+D;AAC/D,+EAA6D;AAC7D,sFAAoE;AACpE,6EAA2D;AAE3D,yEAAuD;AACvD,0EAAwD;AACxD,sEAAoD;AACpD,6EAA2D;AAC3D,0EAAwD;AACxD,4EAA0D;AAE1D,2EAAyD;AACzD,wEAAsD;AAEtD,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6EAA2D;AAC3D,8EAA4D;AAC5D,4EAA0D;AAC1D,2EAAyD;AACzD,8EAA4D;AAC5D,sFAAoE;AAEpE,gFAA8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AgD;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;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\nexport * from \"./appui-react/content/split-pane/SplitPane\";\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/uistate/AppUiSettings\";\r\nexport * from \"./appui-react/uistate/UserSettingsStorage\";\r\nexport * from \"./appui-react/uistate/useUiStateStorage\";\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 appui-react]($docs/learning/ui/appui-react/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 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 * @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/appui-react/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 UiStateStorage\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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vD,+FAA6E;AAC7E,kGAAgF;AAChF,iGAA+E;AAC/E,sFAAoE;AAEpE,sEAAoD;AACpD,4EAA0D;AAC1D,0EAAwD;AAExD,oEAAkD;AAClD,kEAAgD;AAChD,wEAAsD;AACtD,0EAAwD;AAExD,sEAAoD;AACpD,yEAAuD;AACvD,gFAA8D;AAC9D,sFAAoE;AACpE,wEAAsD;AACtD,kEAAgD;AAChD,uEAAqD;AACrD,2EAAyD;AACzD,iFAA+D;AAE/D,2EAAyD;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;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/FloatingViewportContent\";\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\nexport * from \"./appui-react/content/split-pane/SplitPane\";\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/ContentDialogManager\";\r\nexport * from \"./appui-react/dialog/ContentDialog\";\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\nexport * from \"./appui-react/hooks/useUiVisibility\";\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/uistate/AppUiSettings\";\r\nexport * from \"./appui-react/uistate/UserSettingsStorage\";\r\nexport * from \"./appui-react/uistate/useUiStateStorage\";\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 appui-react]($docs/learning/ui/appui-react/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 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 * @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/appui-react/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 UiStateStorage\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"]}
|
|
@@ -17,7 +17,6 @@ export declare class BackstageEvent extends UiEvent<BackstageEventArgs> {
|
|
|
17
17
|
}
|
|
18
18
|
/** Properties for the [[Backstage]] React component.
|
|
19
19
|
* @public
|
|
20
|
-
* @deprecated use [BackstageComposer]($appui-react) instead.
|
|
21
20
|
*/
|
|
22
21
|
export interface BackstageProps extends CommonProps {
|
|
23
22
|
isVisible?: boolean;
|
|
@@ -33,7 +32,6 @@ interface BackstageState {
|
|
|
33
32
|
}
|
|
34
33
|
/** Backstage React component.
|
|
35
34
|
* @public
|
|
36
|
-
* @deprecated use [BackstageComposer]($appui-react) instead.
|
|
37
35
|
*/
|
|
38
36
|
export declare class Backstage extends React.Component<BackstageProps, BackstageState> {
|
|
39
37
|
static readonly onBackstageEvent: BackstageEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Backstage.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/Backstage.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAQnE;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,OAAO,CAAC,kBAAkB,CAAC;CAAI;AAEnE
|
|
1
|
+
{"version":3,"file":"Backstage.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/backstage/Backstage.tsx"],"names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BackstageEvent extends UiEvent {
|
|
|
18
18
|
} // eslint-disable-line deprecation/deprecation
|
|
19
19
|
/** Backstage React component.
|
|
20
20
|
* @public
|
|
21
|
-
* @deprecated use [BackstageComposer]($appui-react) instead.
|
|
22
21
|
*/
|
|
23
22
|
export class Backstage extends React.Component {
|
|
24
23
|
constructor(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Backstage.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/Backstage.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyB,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAYtD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,OAA2B;CAAI,CAAC,8CAA8C;
|
|
1
|
+
{"version":3,"file":"Backstage.js","sourceRoot":"","sources":["../../../../src/appui-react/backstage/Backstage.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyB,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAYtD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,OAA2B;CAA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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 Backstage\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonProps, IconSpec, UiEvent } from \"@itwin/core-react\";\r\nimport { Backstage as NZ_Backstage } from \"@itwin/appui-layout-react\";\r\nimport { SafeAreaContext } from \"../safearea/SafeAreaContext\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { BackstageManager } from \"./BackstageManager\";\r\n\r\n// cSpell:ignore safearea\r\n\r\n/** [[BackstageEvent]] arguments.\r\n * @public\r\n * @deprecated use [BackstageComposer]($appui-react) instead.\r\n */\r\nexport interface BackstageEventArgs {\r\n isVisible: boolean;\r\n}\r\n\r\n/** Backstage Event class.\r\n * @public\r\n */\r\nexport class BackstageEvent extends UiEvent<BackstageEventArgs> { } // eslint-disable-line deprecation/deprecation\r\n\r\n/** Properties for the [[Backstage]] React component.\r\n * @public\r\n */\r\nexport interface BackstageProps extends CommonProps {\r\n isVisible?: boolean;\r\n showOverlay?: boolean;\r\n onClose?: () => void;\r\n header?: React.ReactNode;\r\n}\r\n\r\n/** State for the [[Backstage]] React component.\r\n * @internal\r\n */\r\ninterface BackstageState {\r\n isVisible: boolean;\r\n}\r\n\r\n/** Backstage React component.\r\n * @public\r\n */\r\nexport class Backstage extends React.Component<BackstageProps, BackstageState> { // eslint-disable-line deprecation/deprecation\r\n\r\n public static readonly onBackstageEvent = new BackstageEvent();\r\n public static isBackstageVisible: boolean;\r\n\r\n /** Shows the Backstage */\r\n public static show(): void {\r\n UiFramework.backstageManager.open();\r\n }\r\n\r\n /** Hides the Backstage */\r\n public static hide(): void {\r\n UiFramework.backstageManager.close();\r\n }\r\n\r\n /** Get CommandItemDef that will toggle display of Backstage and allow iconSpec to be overridden */\r\n public static getBackstageToggleCommand(overrideIconSpec?: IconSpec) {\r\n return BackstageManager.getBackstageToggleCommand(overrideIconSpec);\r\n }\r\n\r\n /** Command that toggles the Backstage */\r\n public static get backstageToggleCommand() {\r\n return this.getBackstageToggleCommand();\r\n }\r\n\r\n /** @internal */\r\n public override readonly state: BackstageState;\r\n\r\n constructor(props: BackstageProps) { // eslint-disable-line deprecation/deprecation\r\n super(props);\r\n\r\n this.setIsOpen(!!this.props.isVisible);\r\n this.state = {\r\n isVisible: UiFramework.backstageManager.isOpen,\r\n };\r\n }\r\n\r\n public override componentDidMount() {\r\n Backstage.onBackstageEvent.addListener(this._handleBackstageEvent); // eslint-disable-line deprecation/deprecation\r\n }\r\n\r\n public override componentWillUnmount() {\r\n Backstage.onBackstageEvent.removeListener(this._handleBackstageEvent); // eslint-disable-line deprecation/deprecation\r\n }\r\n\r\n private _handleBackstageEvent = (args: BackstageEventArgs) => { // eslint-disable-line deprecation/deprecation\r\n this.setState({ isVisible: args.isVisible });\r\n };\r\n\r\n public override componentDidUpdate(prevProps: BackstageProps) { // eslint-disable-line deprecation/deprecation\r\n if (this.props.isVisible !== prevProps.isVisible)\r\n this.setIsOpen(!!this.props.isVisible);\r\n }\r\n\r\n private setIsOpen(isOpen: boolean) {\r\n if (isOpen) {\r\n UiFramework.backstageManager.open();\r\n } else {\r\n UiFramework.backstageManager.close();\r\n }\r\n }\r\n\r\n private _onClose = () => {\r\n Backstage.hide(); // eslint-disable-line deprecation/deprecation\r\n\r\n /* istanbul ignore else */\r\n if (this.props.onClose)\r\n this.props.onClose();\r\n };\r\n\r\n public override render(): React.ReactNode {\r\n Backstage.isBackstageVisible = this.state.isVisible; // eslint-disable-line deprecation/deprecation\r\n\r\n let header: React.ReactNode = null;\r\n\r\n if (this.props.header)\r\n header = this.props.header;\r\n\r\n return (\r\n <SafeAreaContext.Consumer>\r\n {(safeAreaInsets) => (\r\n <NZ_Backstage\r\n className={this.props.className}\r\n header={header}\r\n isOpen={this.state.isVisible}\r\n onClose={this._onClose}\r\n safeAreaInsets={safeAreaInsets}\r\n showOverlay={this.props.showOverlay}\r\n style={this.props.style}\r\n >\r\n {this.props.children}\r\n </NZ_Backstage>\r\n )}\r\n </SafeAreaContext.Consumer>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -21,6 +21,7 @@ export declare function BackstageComposerStageLauncher({ item }: BackstageCompos
|
|
|
21
21
|
export interface BackstageComposerItemProps {
|
|
22
22
|
/** Backstage item to render */
|
|
23
23
|
readonly item: BackstageItem;
|
|
24
|
+
readonly providerId?: string;
|
|
24
25
|
}
|
|
25
26
|
/** Item of [[BackstageComposer]].
|
|
26
27
|
* @internal
|