@itwin/appui-react 4.0.0-dev.17 → 4.0.0-dev.19
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 +43 -18
- package/lib/cjs/appui-react/UiFramework.d.ts +10 -20
- package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/cjs/appui-react/UiFramework.js +12 -24
- package/lib/cjs/appui-react/UiFramework.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts +3 -2
- package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +4 -4
- package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +4 -4
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts +0 -39
- package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialogManager.js +1 -61
- package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts +0 -30
- package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ModalDialogManager.js +1 -44
- package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts +0 -39
- package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +1 -60
- package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkChildWindows.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkChildWindows.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +2 -2
- package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkControls.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkControls.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +0 -32
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +1 -55
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
- package/lib/cjs/appui-react/messages/MessageManager.js +2 -3
- package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts +3 -2
- package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +4 -0
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +34 -0
- package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -0
- package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +500 -0
- package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -0
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +6 -4
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +33 -6
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/cjs/appui-react.d.ts +0 -7
- package/lib/cjs/appui-react.d.ts.map +1 -1
- package/lib/cjs/appui-react.js +0 -7
- package/lib/cjs/appui-react.js.map +1 -1
- package/lib/esm/appui-react/UiFramework.d.ts +10 -20
- package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/esm/appui-react/UiFramework.js +12 -24
- package/lib/esm/appui-react/UiFramework.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +3 -2
- package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +4 -4
- package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +4 -4
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts +0 -39
- package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialogManager.js +0 -59
- package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
- package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts +0 -30
- package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ModalDialogManager.js +0 -42
- package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
- package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts +0 -39
- package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ModelessDialogManager.js +0 -58
- package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkChildWindows.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkChildWindows.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkContent.d.ts +2 -2
- package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkControls.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkControls.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +0 -32
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +0 -53
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
- package/lib/esm/appui-react/messages/MessageManager.js +2 -3
- package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts +3 -2
- package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +4 -0
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +34 -0
- package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -0
- package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +496 -0
- package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -0
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +6 -4
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +33 -6
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/esm/appui-react.d.ts +0 -7
- package/lib/esm/appui-react.d.ts.map +1 -1
- package/lib/esm/appui-react.js +0 -7
- package/lib/esm/appui-react.js.map +1 -1
- package/lib/public/locales/en/UiFramework.json +0 -45
- package/package.json +21 -13
- package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts +0 -74
- package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts.map +0 -1
- package/lib/cjs/appui-react/childwindow/ChildWindowManager.js +0 -107
- package/lib/cjs/appui-react/childwindow/ChildWindowManager.js.map +0 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts +0 -66
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts.map +0 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js +0 -93
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js.map +0 -1
- package/lib/cjs/appui-react/content/ContentLayoutManager.d.ts +0 -48
- package/lib/cjs/appui-react/content/ContentLayoutManager.d.ts.map +0 -1
- package/lib/cjs/appui-react/content/ContentLayoutManager.js +0 -69
- package/lib/cjs/appui-react/content/ContentLayoutManager.js.map +0 -1
- package/lib/cjs/appui-react/content/ContentViewManager.d.ts +0 -63
- package/lib/cjs/appui-react/content/ContentViewManager.d.ts.map +0 -1
- package/lib/cjs/appui-react/content/ContentViewManager.js +0 -96
- package/lib/cjs/appui-react/content/ContentViewManager.js.map +0 -1
- package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts +0 -202
- package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +0 -1
- package/lib/cjs/appui-react/frontstage/FrontstageManager.js +0 -269
- package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +0 -1
- package/lib/cjs/appui-react/toolsettings/ToolSettingsManager.d.ts +0 -44
- package/lib/cjs/appui-react/toolsettings/ToolSettingsManager.d.ts.map +0 -1
- package/lib/cjs/appui-react/toolsettings/ToolSettingsManager.js +0 -64
- package/lib/cjs/appui-react/toolsettings/ToolSettingsManager.js.map +0 -1
- package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts +0 -54
- package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +0 -1
- package/lib/cjs/appui-react/utils/UiShowHideManager.js +0 -108
- package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +0 -1
- package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts +0 -74
- package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts.map +0 -1
- package/lib/esm/appui-react/childwindow/ChildWindowManager.js +0 -103
- package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +0 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts +0 -66
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts.map +0 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js +0 -89
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js.map +0 -1
- package/lib/esm/appui-react/content/ContentLayoutManager.d.ts +0 -48
- package/lib/esm/appui-react/content/ContentLayoutManager.d.ts.map +0 -1
- package/lib/esm/appui-react/content/ContentLayoutManager.js +0 -65
- package/lib/esm/appui-react/content/ContentLayoutManager.js.map +0 -1
- package/lib/esm/appui-react/content/ContentViewManager.d.ts +0 -63
- package/lib/esm/appui-react/content/ContentViewManager.d.ts.map +0 -1
- package/lib/esm/appui-react/content/ContentViewManager.js +0 -92
- package/lib/esm/appui-react/content/ContentViewManager.js.map +0 -1
- package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts +0 -202
- package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +0 -1
- package/lib/esm/appui-react/frontstage/FrontstageManager.js +0 -265
- package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +0 -1
- package/lib/esm/appui-react/toolsettings/ToolSettingsManager.d.ts +0 -44
- package/lib/esm/appui-react/toolsettings/ToolSettingsManager.d.ts.map +0 -1
- package/lib/esm/appui-react/toolsettings/ToolSettingsManager.js +0 -60
- package/lib/esm/appui-react/toolsettings/ToolSettingsManager.js.map +0 -1
- package/lib/esm/appui-react/utils/UiShowHideManager.d.ts +0 -54
- package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +0 -1
- package/lib/esm/appui-react/utils/UiShowHideManager.js +0 -105
- package/lib/esm/appui-react/utils/UiShowHideManager.js.map +0 -1
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module ToolSettings
|
|
3
|
-
*/
|
|
4
|
-
import { InteractiveTool } from "@itwin/core-frontend";
|
|
5
|
-
import { DialogItem, UiEvent } from "@itwin/appui-abstract";
|
|
6
|
-
import { SyncToolSettingsPropertiesEvent } from "../framework/FrameworkToolSettings";
|
|
7
|
-
/** Tool Settings Manager class. Used to generate UI components for Tool Settings.
|
|
8
|
-
* @public
|
|
9
|
-
* @deprecated in 3.7. Use `UiFramework.toolSettings` property.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ToolSettingsManager {
|
|
12
|
-
/** Initializes the ToolSettingsManager
|
|
13
|
-
* @deprecated in 3.7. This is called internally.
|
|
14
|
-
*/
|
|
15
|
-
static initialize(): void;
|
|
16
|
-
/** clear cached Tool Settings properties. */
|
|
17
|
-
static clearToolSettingsData(): void;
|
|
18
|
-
/** Cache Tool Settings properties */
|
|
19
|
-
static initializeToolSettingsData(toolSettingsProperties: DialogItem[] | undefined, toolId?: string, toolLabel?: string, toolDescription?: string): boolean;
|
|
20
|
-
/** Set of data used in Tool Settings for the specified tool. The tool specified should be the "active" tool.
|
|
21
|
-
*/
|
|
22
|
-
static initializeDataForTool(tool: InteractiveTool): void;
|
|
23
|
-
/** Returns the toolSettings properties that can be used to populate the tool settings widget. */
|
|
24
|
-
static get toolSettingsProperties(): DialogItem[];
|
|
25
|
-
/** Returns true if the Tool Settings are to be auto populated from the toolSettingsProperties.
|
|
26
|
-
* The setter is chiefly for testing.
|
|
27
|
-
*/
|
|
28
|
-
static get useDefaultToolSettingsProvider(): boolean;
|
|
29
|
-
static set useDefaultToolSettingsProvider(useDefaultToolSettings: boolean);
|
|
30
|
-
/** The name of the active tool. This is typically the flyover text specified for the tool. */
|
|
31
|
-
static get activeToolLabel(): string;
|
|
32
|
-
static set activeToolLabel(label: string);
|
|
33
|
-
/** Returns the description of the active tool. */
|
|
34
|
-
static get activeToolDescription(): string;
|
|
35
|
-
/** Get ToolSettings Properties sync event. */
|
|
36
|
-
static get onSyncToolSettingsProperties(): SyncToolSettingsPropertiesEvent;
|
|
37
|
-
static get onReloadToolSettingsProperties(): UiEvent<void>;
|
|
38
|
-
/** Gets the Id of the active tool. If a tool is not active, blank is returned.
|
|
39
|
-
* @return Id of the active tool, or blank if one is not active.
|
|
40
|
-
*/
|
|
41
|
-
static get toolIdForToolSettings(): string;
|
|
42
|
-
static focusIntoToolSettings(): boolean;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=ToolSettingsManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToolSettingsManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/toolsettings/ToolSettingsManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,oCAAoC,CAAC;AAGrF;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B;;OAEG;WACW,UAAU;IAIxB,6CAA6C;WAC/B,qBAAqB;IAInC,qCAAqC;WACvB,0BAA0B,CAAC,sBAAsB,EAAE,UAAU,EAAE,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO;IAIlK;OACG;WACW,qBAAqB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI;IAIhE,iGAAiG;IACjG,WAAkB,sBAAsB,IAAI,UAAU,EAAE,CAEvD;IAED;;OAEG;IACH,WAAkB,8BAA8B,IAAI,OAAO,CAAoD;IAC/G,WAAkB,8BAA8B,CAAC,sBAAsB,EAAE,OAAO,EAAuE;IAEvJ,8FAA8F;IAC9F,WAAkB,eAAe,IAAI,MAAM,CAAqC;IAChF,WAAkB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAuC;IAEtF,kDAAkD;IAClD,WAAkB,qBAAqB,IAAI,MAAM,CAA2C;IAE5F,8CAA8C;IAC9C,WAAkB,4BAA4B,IAAI,+BAA+B,CAAkD;IACnI,WAAkB,8BAA8B,IAAI,OAAO,CAAC,IAAI,CAAC,CAAoD;IAErH;;OAEG;IACH,WAAkB,qBAAqB,IAAI,MAAM,CAEhD;WAEa,qBAAqB,IAAI,OAAO;CAG/C"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module ToolSettings
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ToolSettingsManager = void 0;
|
|
11
|
-
const InternalToolSettingsManager_1 = require("./InternalToolSettingsManager");
|
|
12
|
-
/** Tool Settings Manager class. Used to generate UI components for Tool Settings.
|
|
13
|
-
* @public
|
|
14
|
-
* @deprecated in 3.7. Use `UiFramework.toolSettings` property.
|
|
15
|
-
*/
|
|
16
|
-
class ToolSettingsManager {
|
|
17
|
-
/** Initializes the ToolSettingsManager
|
|
18
|
-
* @deprecated in 3.7. This is called internally.
|
|
19
|
-
*/
|
|
20
|
-
static initialize() {
|
|
21
|
-
return InternalToolSettingsManager_1.InternalToolSettingsManager.initialize();
|
|
22
|
-
}
|
|
23
|
-
/** clear cached Tool Settings properties. */
|
|
24
|
-
static clearToolSettingsData() {
|
|
25
|
-
return InternalToolSettingsManager_1.InternalToolSettingsManager.clearToolSettingsData();
|
|
26
|
-
}
|
|
27
|
-
/** Cache Tool Settings properties */
|
|
28
|
-
static initializeToolSettingsData(toolSettingsProperties, toolId, toolLabel, toolDescription) {
|
|
29
|
-
return InternalToolSettingsManager_1.InternalToolSettingsManager.initializeToolSettingsData(toolSettingsProperties, toolId, toolLabel, toolDescription);
|
|
30
|
-
}
|
|
31
|
-
/** Set of data used in Tool Settings for the specified tool. The tool specified should be the "active" tool.
|
|
32
|
-
*/
|
|
33
|
-
static initializeDataForTool(tool) {
|
|
34
|
-
return InternalToolSettingsManager_1.InternalToolSettingsManager.initializeDataForTool(tool);
|
|
35
|
-
}
|
|
36
|
-
/** Returns the toolSettings properties that can be used to populate the tool settings widget. */
|
|
37
|
-
static get toolSettingsProperties() {
|
|
38
|
-
return InternalToolSettingsManager_1.InternalToolSettingsManager.toolSettingsProperties;
|
|
39
|
-
}
|
|
40
|
-
/** Returns true if the Tool Settings are to be auto populated from the toolSettingsProperties.
|
|
41
|
-
* The setter is chiefly for testing.
|
|
42
|
-
*/
|
|
43
|
-
static get useDefaultToolSettingsProvider() { return InternalToolSettingsManager_1.InternalToolSettingsManager.useDefaultToolSettingsProvider; }
|
|
44
|
-
static set useDefaultToolSettingsProvider(useDefaultToolSettings) { InternalToolSettingsManager_1.InternalToolSettingsManager.useDefaultToolSettingsProvider = useDefaultToolSettings; }
|
|
45
|
-
/** The name of the active tool. This is typically the flyover text specified for the tool. */
|
|
46
|
-
static get activeToolLabel() { return InternalToolSettingsManager_1.InternalToolSettingsManager.activeToolLabel; }
|
|
47
|
-
static set activeToolLabel(label) { InternalToolSettingsManager_1.InternalToolSettingsManager.activeToolLabel = label; }
|
|
48
|
-
/** Returns the description of the active tool. */
|
|
49
|
-
static get activeToolDescription() { return InternalToolSettingsManager_1.InternalToolSettingsManager.activeToolDescription; }
|
|
50
|
-
/** Get ToolSettings Properties sync event. */
|
|
51
|
-
static get onSyncToolSettingsProperties() { return InternalToolSettingsManager_1.InternalToolSettingsManager.onSyncToolSettingsProperties; }
|
|
52
|
-
static get onReloadToolSettingsProperties() { return InternalToolSettingsManager_1.InternalToolSettingsManager.onReloadToolSettingsProperties; }
|
|
53
|
-
/** Gets the Id of the active tool. If a tool is not active, blank is returned.
|
|
54
|
-
* @return Id of the active tool, or blank if one is not active.
|
|
55
|
-
*/
|
|
56
|
-
static get toolIdForToolSettings() {
|
|
57
|
-
return InternalToolSettingsManager_1.InternalToolSettingsManager.toolIdForToolSettings;
|
|
58
|
-
}
|
|
59
|
-
static focusIntoToolSettings() {
|
|
60
|
-
return InternalToolSettingsManager_1.InternalToolSettingsManager.focusIntoToolSettings();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.ToolSettingsManager = ToolSettingsManager;
|
|
64
|
-
//# sourceMappingURL=ToolSettingsManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToolSettingsManager.js","sourceRoot":"","sources":["../../../../src/appui-react/toolsettings/ToolSettingsManager.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH,+EAAwF;AAExF;;;GAGG;AACH,MAAa,mBAAmB;IAC9B;;OAEG;IACI,MAAM,CAAC,UAAU;QACtB,OAAO,yDAAQ,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAED,6CAA6C;IACtC,MAAM,CAAC,qBAAqB;QACjC,OAAO,yDAAQ,CAAC,qBAAqB,EAAE,CAAC;IAC1C,CAAC;IAED,qCAAqC;IAC9B,MAAM,CAAC,0BAA0B,CAAC,sBAAgD,EAAE,MAAe,EAAE,SAAkB,EAAE,eAAwB;QACtJ,OAAO,yDAAQ,CAAC,0BAA0B,CAAC,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;IACzG,CAAC;IAED;OACG;IACI,MAAM,CAAC,qBAAqB,CAAC,IAAqB;QACvD,OAAO,yDAAQ,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAED,iGAAiG;IAC1F,MAAM,KAAK,sBAAsB;QACtC,OAAO,yDAAQ,CAAC,sBAAsB,CAAC;IACzC,CAAC;IAED;;OAEG;IACI,MAAM,KAAK,8BAA8B,KAAc,OAAO,yDAAQ,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACxG,MAAM,KAAK,8BAA8B,CAAC,sBAA+B,IAAI,yDAAQ,CAAC,8BAA8B,GAAG,sBAAsB,CAAC,CAAC,CAAC;IAEvJ,8FAA8F;IACvF,MAAM,KAAK,eAAe,KAAa,OAAO,yDAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;IACzE,MAAM,KAAK,eAAe,CAAC,KAAa,IAAI,yDAAQ,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC,CAAC;IAEtF,kDAAkD;IAC3C,MAAM,KAAK,qBAAqB,KAAa,OAAO,yDAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAE5F,8CAA8C;IACvC,MAAM,KAAK,4BAA4B,KAAsC,OAAO,yDAAQ,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAC5H,MAAM,KAAK,8BAA8B,KAAoB,OAAO,yDAAQ,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAErH;;OAEG;IACI,MAAM,KAAK,qBAAqB;QACrC,OAAO,yDAAQ,CAAC,qBAAqB,CAAC;IACxC,CAAC;IAEM,MAAM,CAAC,qBAAqB;QACjC,OAAO,yDAAQ,CAAC,qBAAqB,EAAE,CAAC;IAC1C,CAAC;CACF;AAxDD,kDAwDC","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 ToolSettings\r\n */\r\n\r\nimport { InteractiveTool } from \"@itwin/core-frontend\";\r\nimport { DialogItem, UiEvent } from \"@itwin/appui-abstract\";\r\nimport { SyncToolSettingsPropertiesEvent } from \"../framework/FrameworkToolSettings\";\r\nimport { InternalToolSettingsManager as internal } from \"./InternalToolSettingsManager\";\r\n\r\n/** Tool Settings Manager class. Used to generate UI components for Tool Settings.\r\n * @public\r\n * @deprecated in 3.7. Use `UiFramework.toolSettings` property.\r\n */\r\nexport class ToolSettingsManager {\r\n /** Initializes the ToolSettingsManager\r\n * @deprecated in 3.7. This is called internally.\r\n */\r\n public static initialize() {\r\n return internal.initialize();\r\n }\r\n\r\n /** clear cached Tool Settings properties. */\r\n public static clearToolSettingsData() {\r\n return internal.clearToolSettingsData();\r\n }\r\n\r\n /** Cache Tool Settings properties */\r\n public static initializeToolSettingsData(toolSettingsProperties: DialogItem[] | undefined, toolId?: string, toolLabel?: string, toolDescription?: string): boolean {\r\n return internal.initializeToolSettingsData(toolSettingsProperties, toolId, toolLabel, toolDescription);\r\n }\r\n\r\n /** Set of data used in Tool Settings for the specified tool. The tool specified should be the \"active\" tool.\r\n */\r\n public static initializeDataForTool(tool: InteractiveTool): void {\r\n return internal.initializeDataForTool(tool);\r\n }\r\n\r\n /** Returns the toolSettings properties that can be used to populate the tool settings widget. */\r\n public static get toolSettingsProperties(): DialogItem[] {\r\n return internal.toolSettingsProperties;\r\n }\r\n\r\n /** Returns true if the Tool Settings are to be auto populated from the toolSettingsProperties.\r\n * The setter is chiefly for testing.\r\n */\r\n public static get useDefaultToolSettingsProvider(): boolean { return internal.useDefaultToolSettingsProvider; }\r\n public static set useDefaultToolSettingsProvider(useDefaultToolSettings: boolean) { internal.useDefaultToolSettingsProvider = useDefaultToolSettings; }\r\n\r\n /** The name of the active tool. This is typically the flyover text specified for the tool. */\r\n public static get activeToolLabel(): string { return internal.activeToolLabel; }\r\n public static set activeToolLabel(label: string) { internal.activeToolLabel = label; }\r\n\r\n /** Returns the description of the active tool. */\r\n public static get activeToolDescription(): string { return internal.activeToolDescription; }\r\n\r\n /** Get ToolSettings Properties sync event. */\r\n public static get onSyncToolSettingsProperties(): SyncToolSettingsPropertiesEvent { return internal.onSyncToolSettingsProperties; }\r\n public static get onReloadToolSettingsProperties(): UiEvent<void> { return internal.onReloadToolSettingsProperties; }\r\n\r\n /** Gets the Id of the active tool. If a tool is not active, blank is returned.\r\n * @return Id of the active tool, or blank if one is not active.\r\n */\r\n public static get toolIdForToolSettings(): string {\r\n return internal.toolIdForToolSettings;\r\n }\r\n\r\n public static focusIntoToolSettings(): boolean {\r\n return internal.focusIntoToolSettings();\r\n }\r\n}\r\n"]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Utilities
|
|
3
|
-
*/
|
|
4
|
-
/// <reference types="react" />
|
|
5
|
-
import { UiShowHideSettingsProvider } from "./InternalUiShowHideManager";
|
|
6
|
-
export { UiShowHideSettingsProvider };
|
|
7
|
-
/** Maintains Ui Show/Hide state. The `Ui` includes widgets, panels and the status bar.
|
|
8
|
-
* @public
|
|
9
|
-
* @deprecated in 3.7. Use `UiFramework.visibility` property.
|
|
10
|
-
*/
|
|
11
|
-
export declare class UiShowHideManager {
|
|
12
|
-
/** Determines if the Ui is visible */
|
|
13
|
-
static get isUiVisible(): boolean;
|
|
14
|
-
static set isUiVisible(visible: boolean);
|
|
15
|
-
/** @internal */
|
|
16
|
-
static setAutoHideUi(value: boolean): void;
|
|
17
|
-
/** @internal */
|
|
18
|
-
static setUseProximityOpacity(value: boolean): void;
|
|
19
|
-
/** @internal */
|
|
20
|
-
static setSnapWidgetOpacity(value: boolean): void;
|
|
21
|
-
/** Determines whether the `auto-hide Ui` feature is on. Defaults to false.
|
|
22
|
-
* When true, the Ui automatically hides after a few seconds of inactivity.
|
|
23
|
-
*/
|
|
24
|
-
static get autoHideUi(): boolean;
|
|
25
|
-
static set autoHideUi(autoHide: boolean);
|
|
26
|
-
/** Determines whether the widget panels are shown and hidden. Defaults to false. */
|
|
27
|
-
static get showHidePanels(): boolean;
|
|
28
|
-
static set showHidePanels(showHide: boolean);
|
|
29
|
-
/** Determines whether the status bar is shown and hidden. Defaults to false. */
|
|
30
|
-
static get showHideFooter(): boolean;
|
|
31
|
-
static set showHideFooter(showHide: boolean);
|
|
32
|
-
/** Determines the amount of inactivity time before the Ui is hidden. Defaults to 3.5 seconds. */
|
|
33
|
-
static get inactivityTime(): number;
|
|
34
|
-
static set inactivityTime(time: number);
|
|
35
|
-
/** Determines whether the proximity of the mouse should alter the opacity of a toolbar. Defaults to true. */
|
|
36
|
-
static get useProximityOpacity(): boolean;
|
|
37
|
-
static set useProximityOpacity(value: boolean);
|
|
38
|
-
/** Determines whether the opacity of a toolbar should snap. Defaults to false. */
|
|
39
|
-
static get snapWidgetOpacity(): boolean;
|
|
40
|
-
static set snapWidgetOpacity(value: boolean);
|
|
41
|
-
/** Handler for when a Frontstage is ready */
|
|
42
|
-
static handleFrontstageReady(): void;
|
|
43
|
-
/** Handler for when the mouse moves over the content area */
|
|
44
|
-
static handleContentMouseMove(_event?: React.MouseEvent<HTMLElement, MouseEvent>): void;
|
|
45
|
-
/** Handler for when the mouse enters a widget */
|
|
46
|
-
static handleWidgetMouseEnter(_event?: React.MouseEvent<HTMLElement, MouseEvent>): void;
|
|
47
|
-
/** Shows the Ui and resets the inactivity timer */
|
|
48
|
-
static showUiAndResetTimer(): void;
|
|
49
|
-
/** Shows the Ui and cancels the inactivity timer */
|
|
50
|
-
static showUiAndCancelTimer(): void;
|
|
51
|
-
/** @internal */
|
|
52
|
-
static terminate(): void;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=UiShowHideManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiShowHideManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/utils/UiShowHideManager.ts"],"names":[],"mappings":"AAIA;;GAEG;;AAEH,OAAO,EAAyC,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEhH,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAEtC;;;GAGG;AACH,qBAAa,iBAAiB;IAE5B,sCAAsC;IACtC,WAAkB,WAAW,IAGU,OAAO,CAD7C;IACD,WAAkB,WAAW,CAAC,OAAO,EAAE,OAAO,EAE7C;IAED,gBAAgB;WACF,aAAa,CAAC,KAAK,EAAE,OAAO;IAI1C,gBAAgB;WACF,sBAAsB,CAAC,KAAK,EAAE,OAAO;IAInD,gBAAgB;WACF,oBAAoB,CAAC,KAAK,EAAE,OAAO;IAIjD;;OAEG;IACH,WAAkB,UAAU,IAAI,OAAO,CAEtC;IAED,WAAkB,UAAU,CAAC,QAAQ,EAAE,OAAO,EAE7C;IACD,oFAAoF;IACpF,WAAkB,cAAc,IAAI,OAAO,CAE1C;IACD,WAAkB,cAAc,CAAC,QAAQ,EAAE,OAAO,EAEjD;IAED,gFAAgF;IAChF,WAAkB,cAAc,IAAI,OAAO,CAE1C;IACD,WAAkB,cAAc,CAAC,QAAQ,EAAE,OAAO,EAEjD;IAED,iGAAiG;IACjG,WAAkB,cAAc,IAAI,MAAM,CAEzC;IACD,WAAkB,cAAc,CAAC,IAAI,EAAE,MAAM,EAE5C;IAED,6GAA6G;IAC7G,WAAkB,mBAAmB,IAAI,OAAO,CAE/C;IACD,WAAkB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAEnD;IAED,kFAAkF;IAClF,WAAkB,iBAAiB,IAAI,OAAO,CAE7C;IACD,WAAkB,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAEjD;IAED,6CAA6C;WAC/B,qBAAqB;IAKnC,6DAA6D;WAC/C,sBAAsB,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;IAIvF,iDAAiD;WACnC,sBAAsB,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;IAIvF,mDAAmD;WACrC,mBAAmB;IAIjC,oDAAoD;WACtC,oBAAoB;IAIlC,gBAAgB;WACF,SAAS;CAGxB"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Utilities
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.UiShowHideManager = exports.UiShowHideSettingsProvider = void 0;
|
|
11
|
-
const InternalUiShowHideManager_1 = require("./InternalUiShowHideManager");
|
|
12
|
-
Object.defineProperty(exports, "UiShowHideSettingsProvider", { enumerable: true, get: function () { return InternalUiShowHideManager_1.UiShowHideSettingsProvider; } });
|
|
13
|
-
/** Maintains Ui Show/Hide state. The `Ui` includes widgets, panels and the status bar.
|
|
14
|
-
* @public
|
|
15
|
-
* @deprecated in 3.7. Use `UiFramework.visibility` property.
|
|
16
|
-
*/
|
|
17
|
-
class UiShowHideManager {
|
|
18
|
-
/** Determines if the Ui is visible */
|
|
19
|
-
static get isUiVisible() {
|
|
20
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.isUiVisible;
|
|
21
|
-
}
|
|
22
|
-
static set isUiVisible(visible) {
|
|
23
|
-
InternalUiShowHideManager_1.InternalUiShowHideManager.isUiVisible = visible;
|
|
24
|
-
}
|
|
25
|
-
/** @internal */
|
|
26
|
-
static setAutoHideUi(value) {
|
|
27
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.setAutoHideUi(value);
|
|
28
|
-
}
|
|
29
|
-
/** @internal */
|
|
30
|
-
static setUseProximityOpacity(value) {
|
|
31
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.setUseProximityOpacity(value);
|
|
32
|
-
}
|
|
33
|
-
/** @internal */
|
|
34
|
-
static setSnapWidgetOpacity(value) {
|
|
35
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.setSnapWidgetOpacity(value);
|
|
36
|
-
}
|
|
37
|
-
/** Determines whether the `auto-hide Ui` feature is on. Defaults to false.
|
|
38
|
-
* When true, the Ui automatically hides after a few seconds of inactivity.
|
|
39
|
-
*/
|
|
40
|
-
static get autoHideUi() {
|
|
41
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.autoHideUi;
|
|
42
|
-
}
|
|
43
|
-
static set autoHideUi(autoHide) {
|
|
44
|
-
InternalUiShowHideManager_1.InternalUiShowHideManager.autoHideUi = autoHide;
|
|
45
|
-
}
|
|
46
|
-
/** Determines whether the widget panels are shown and hidden. Defaults to false. */
|
|
47
|
-
static get showHidePanels() {
|
|
48
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.showHidePanels;
|
|
49
|
-
}
|
|
50
|
-
static set showHidePanels(showHide) {
|
|
51
|
-
InternalUiShowHideManager_1.InternalUiShowHideManager.showHidePanels = showHide;
|
|
52
|
-
}
|
|
53
|
-
/** Determines whether the status bar is shown and hidden. Defaults to false. */
|
|
54
|
-
static get showHideFooter() {
|
|
55
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.showHideFooter;
|
|
56
|
-
}
|
|
57
|
-
static set showHideFooter(showHide) {
|
|
58
|
-
InternalUiShowHideManager_1.InternalUiShowHideManager.showHideFooter = showHide;
|
|
59
|
-
}
|
|
60
|
-
/** Determines the amount of inactivity time before the Ui is hidden. Defaults to 3.5 seconds. */
|
|
61
|
-
static get inactivityTime() {
|
|
62
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.inactivityTime;
|
|
63
|
-
}
|
|
64
|
-
static set inactivityTime(time) {
|
|
65
|
-
InternalUiShowHideManager_1.InternalUiShowHideManager.inactivityTime = time;
|
|
66
|
-
}
|
|
67
|
-
/** Determines whether the proximity of the mouse should alter the opacity of a toolbar. Defaults to true. */
|
|
68
|
-
static get useProximityOpacity() {
|
|
69
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.useProximityOpacity;
|
|
70
|
-
}
|
|
71
|
-
static set useProximityOpacity(value) {
|
|
72
|
-
InternalUiShowHideManager_1.InternalUiShowHideManager.useProximityOpacity = value;
|
|
73
|
-
}
|
|
74
|
-
/** Determines whether the opacity of a toolbar should snap. Defaults to false. */
|
|
75
|
-
static get snapWidgetOpacity() {
|
|
76
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.snapWidgetOpacity;
|
|
77
|
-
}
|
|
78
|
-
static set snapWidgetOpacity(value) {
|
|
79
|
-
InternalUiShowHideManager_1.InternalUiShowHideManager.snapWidgetOpacity = value;
|
|
80
|
-
}
|
|
81
|
-
/** Handler for when a Frontstage is ready */
|
|
82
|
-
static handleFrontstageReady() {
|
|
83
|
-
// istanbul ignore next
|
|
84
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.handleFrontstageReady();
|
|
85
|
-
}
|
|
86
|
-
/** Handler for when the mouse moves over the content area */
|
|
87
|
-
static handleContentMouseMove(_event) {
|
|
88
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.handleContentMouseMove(_event);
|
|
89
|
-
}
|
|
90
|
-
/** Handler for when the mouse enters a widget */
|
|
91
|
-
static handleWidgetMouseEnter(_event) {
|
|
92
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.handleWidgetMouseEnter(_event);
|
|
93
|
-
}
|
|
94
|
-
/** Shows the Ui and resets the inactivity timer */
|
|
95
|
-
static showUiAndResetTimer() {
|
|
96
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.showUiAndResetTimer();
|
|
97
|
-
}
|
|
98
|
-
/** Shows the Ui and cancels the inactivity timer */
|
|
99
|
-
static showUiAndCancelTimer() {
|
|
100
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.showUiAndCancelTimer();
|
|
101
|
-
}
|
|
102
|
-
/** @internal */
|
|
103
|
-
static terminate() {
|
|
104
|
-
return InternalUiShowHideManager_1.InternalUiShowHideManager.terminate();
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
exports.UiShowHideManager = UiShowHideManager;
|
|
108
|
-
//# sourceMappingURL=UiShowHideManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiShowHideManager.js","sourceRoot":"","sources":["../../../../src/appui-react/utils/UiShowHideManager.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2EAAgH;AAEvG,2GAFuC,sDAA0B,OAEvC;AAEnC;;;GAGG;AACH,MAAa,iBAAiB;IAE5B,sCAAsC;IAC/B,MAAM,KAAK,WAAW;QAC3B,OAAO,qDAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IACM,MAAM,KAAK,WAAW,CAAC,OAAgB;QAC5C,qDAAQ,CAAC,WAAW,GAAG,OAAO,CAAC;IACjC,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,aAAa,CAAC,KAAc;QACxC,OAAO,qDAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,sBAAsB,CAAC,KAAc;QACjD,OAAO,qDAAQ,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,oBAAoB,CAAC,KAAc;QAC/C,OAAO,qDAAQ,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACI,MAAM,KAAK,UAAU;QAC1B,OAAO,qDAAQ,CAAC,UAAU,CAAC;IAC7B,CAAC;IAEM,MAAM,KAAK,UAAU,CAAC,QAAiB;QAC5C,qDAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC;IACjC,CAAC;IACD,oFAAoF;IAC7E,MAAM,KAAK,cAAc;QAC9B,OAAO,qDAAQ,CAAC,cAAc,CAAC;IACjC,CAAC;IACM,MAAM,KAAK,cAAc,CAAC,QAAiB;QAChD,qDAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC;IACrC,CAAC;IAED,gFAAgF;IACzE,MAAM,KAAK,cAAc;QAC9B,OAAO,qDAAQ,CAAC,cAAc,CAAC;IACjC,CAAC;IACM,MAAM,KAAK,cAAc,CAAC,QAAiB;QAChD,qDAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC;IACrC,CAAC;IAED,iGAAiG;IAC1F,MAAM,KAAK,cAAc;QAC9B,OAAO,qDAAQ,CAAC,cAAc,CAAC;IACjC,CAAC;IACM,MAAM,KAAK,cAAc,CAAC,IAAY;QAC3C,qDAAQ,CAAC,cAAc,GAAG,IAAI,CAAC;IACjC,CAAC;IAED,6GAA6G;IACtG,MAAM,KAAK,mBAAmB;QACnC,OAAO,qDAAQ,CAAC,mBAAmB,CAAC;IACtC,CAAC;IACM,MAAM,KAAK,mBAAmB,CAAC,KAAc;QAClD,qDAAQ,CAAC,mBAAmB,GAAG,KAAK,CAAC;IACvC,CAAC;IAED,kFAAkF;IAC3E,MAAM,KAAK,iBAAiB;QACjC,OAAO,qDAAQ,CAAC,iBAAiB,CAAC;IACpC,CAAC;IACM,MAAM,KAAK,iBAAiB,CAAC,KAAc;QAChD,qDAAQ,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACrC,CAAC;IAED,6CAA6C;IACtC,MAAM,CAAC,qBAAqB;QACjC,uBAAuB;QACvB,OAAO,qDAAQ,CAAC,qBAAqB,EAAE,CAAC;IAC1C,CAAC;IAED,6DAA6D;IACtD,MAAM,CAAC,sBAAsB,CAAC,MAAkD;QACrF,OAAO,qDAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,iDAAiD;IAC1C,MAAM,CAAC,sBAAsB,CAAC,MAAkD;QACrF,OAAO,qDAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,mDAAmD;IAC5C,MAAM,CAAC,mBAAmB;QAC/B,OAAO,qDAAQ,CAAC,mBAAmB,EAAE,CAAC;IACxC,CAAC;IAED,oDAAoD;IAC7C,MAAM,CAAC,oBAAoB;QAChC,OAAO,qDAAQ,CAAC,oBAAoB,EAAE,CAAC;IACzC,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,SAAS;QACrB,OAAO,qDAAQ,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC;CACF;AAzGD,8CAyGC","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 Utilities\r\n */\r\n\r\nimport { InternalUiShowHideManager as internal, UiShowHideSettingsProvider } from \"./InternalUiShowHideManager\";\r\n// reexporting to ensure no breaking changes in barrel exports, remove when removing deprecated.\r\nexport { UiShowHideSettingsProvider };\r\n\r\n/** Maintains Ui Show/Hide state. The `Ui` includes widgets, panels and the status bar.\r\n * @public\r\n * @deprecated in 3.7. Use `UiFramework.visibility` property.\r\n */\r\nexport class UiShowHideManager {\r\n\r\n /** Determines if the Ui is visible */\r\n public static get isUiVisible() {\r\n return internal.isUiVisible;\r\n }\r\n public static set isUiVisible(visible: boolean) {\r\n internal.isUiVisible = visible;\r\n }\r\n\r\n /** @internal */\r\n public static setAutoHideUi(value: boolean) {\r\n return internal.setAutoHideUi(value);\r\n }\r\n\r\n /** @internal */\r\n public static setUseProximityOpacity(value: boolean) {\r\n return internal.setUseProximityOpacity(value);\r\n }\r\n\r\n /** @internal */\r\n public static setSnapWidgetOpacity(value: boolean) {\r\n return internal.setSnapWidgetOpacity(value);\r\n }\r\n\r\n /** Determines whether the `auto-hide Ui` feature is on. Defaults to false.\r\n * When true, the Ui automatically hides after a few seconds of inactivity.\r\n */\r\n public static get autoHideUi(): boolean {\r\n return internal.autoHideUi;\r\n }\r\n\r\n public static set autoHideUi(autoHide: boolean) {\r\n internal.autoHideUi = autoHide;\r\n }\r\n /** Determines whether the widget panels are shown and hidden. Defaults to false. */\r\n public static get showHidePanels(): boolean {\r\n return internal.showHidePanels;\r\n }\r\n public static set showHidePanels(showHide: boolean) {\r\n internal.showHidePanels = showHide;\r\n }\r\n\r\n /** Determines whether the status bar is shown and hidden. Defaults to false. */\r\n public static get showHideFooter(): boolean {\r\n return internal.showHideFooter;\r\n }\r\n public static set showHideFooter(showHide: boolean) {\r\n internal.showHideFooter = showHide;\r\n }\r\n\r\n /** Determines the amount of inactivity time before the Ui is hidden. Defaults to 3.5 seconds. */\r\n public static get inactivityTime(): number {\r\n return internal.inactivityTime;\r\n }\r\n public static set inactivityTime(time: number) {\r\n internal.inactivityTime = time;\r\n }\r\n\r\n /** Determines whether the proximity of the mouse should alter the opacity of a toolbar. Defaults to true. */\r\n public static get useProximityOpacity(): boolean {\r\n return internal.useProximityOpacity;\r\n }\r\n public static set useProximityOpacity(value: boolean) {\r\n internal.useProximityOpacity = value;\r\n }\r\n\r\n /** Determines whether the opacity of a toolbar should snap. Defaults to false. */\r\n public static get snapWidgetOpacity(): boolean {\r\n return internal.snapWidgetOpacity;\r\n }\r\n public static set snapWidgetOpacity(value: boolean) {\r\n internal.snapWidgetOpacity = value;\r\n }\r\n\r\n /** Handler for when a Frontstage is ready */\r\n public static handleFrontstageReady() {\r\n // istanbul ignore next\r\n return internal.handleFrontstageReady();\r\n }\r\n\r\n /** Handler for when the mouse moves over the content area */\r\n public static handleContentMouseMove(_event?: React.MouseEvent<HTMLElement, MouseEvent>) {\r\n return internal.handleContentMouseMove(_event);\r\n }\r\n\r\n /** Handler for when the mouse enters a widget */\r\n public static handleWidgetMouseEnter(_event?: React.MouseEvent<HTMLElement, MouseEvent>) {\r\n return internal.handleWidgetMouseEnter(_event);\r\n }\r\n\r\n /** Shows the Ui and resets the inactivity timer */\r\n public static showUiAndResetTimer() {\r\n return internal.showUiAndResetTimer();\r\n }\r\n\r\n /** Shows the Ui and cancels the inactivity timer */\r\n public static showUiAndCancelTimer() {\r\n return internal.showUiAndCancelTimer();\r\n }\r\n\r\n /** @internal */\r\n public static terminate() {\r\n return internal.terminate();\r\n }\r\n}\r\n"]}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module ChildWindowManager
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import { ChildWindowLocationProps, OpenChildWindowInfo } from "../framework/FrameworkChildWindows";
|
|
6
|
-
import { CreateRoot, InternalChildWindowManager } from "./InternalChildWindowManager";
|
|
7
|
-
/** Supports opening a child browser window from the main application window. The child window is managed by the main application
|
|
8
|
-
* and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.
|
|
9
|
-
* See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)
|
|
10
|
-
* @public
|
|
11
|
-
* @deprecated in 3.7. Use `UiFramework.childWindows` property to access.
|
|
12
|
-
* */
|
|
13
|
-
export declare class ChildWindowManager {
|
|
14
|
-
private internal;
|
|
15
|
-
/**
|
|
16
|
-
* Override internal implementation for a mock
|
|
17
|
-
* @internal For tests only.
|
|
18
|
-
*/
|
|
19
|
-
mockInternal(internal: InternalChildWindowManager): void;
|
|
20
|
-
get openChildWindows(): OpenChildWindowInfo[];
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated in 3.7. Use `find` method.
|
|
23
|
-
*/
|
|
24
|
-
findChildWindow(childWindowId: string | undefined): OpenChildWindowInfo | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated in 3.7. Use `findId` method.
|
|
27
|
-
*/
|
|
28
|
-
findChildWindowId(contentWindow: Window | undefined | null): string | undefined;
|
|
29
|
-
/** Close all child/pop-out windows. This typically is called when the frontstage is changed.
|
|
30
|
-
* @deprecated in 3.7. Use `closeAll` method.
|
|
31
|
-
*/
|
|
32
|
-
closeAllChildWindows(): void;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated in 3.7. Use `close` method.
|
|
35
|
-
*/
|
|
36
|
-
closeChildWindow: (childWindowId: string, processWindowClose?: boolean) => boolean;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated in 3.7. Use `open` method.
|
|
39
|
-
*/
|
|
40
|
-
openChildWindow(childWindowId: string, title: string, content: React.ReactNode, location: ChildWindowLocationProps, useDefaultPopoutUrl?: boolean): boolean;
|
|
41
|
-
useCreateRoot(createRootFn: CreateRoot): void;
|
|
42
|
-
/**
|
|
43
|
-
* Returns the OpenChildWindowInfo for the related id.
|
|
44
|
-
* @param childWindowId Id of the window to retrieve.
|
|
45
|
-
* @returns undefined if not found.
|
|
46
|
-
*/
|
|
47
|
-
find(childWindowId: string | undefined): OpenChildWindowInfo | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Return the childWindowId of the provided window.
|
|
50
|
-
* @param contentWindow Window element to identify
|
|
51
|
-
* @returns undefined if not found
|
|
52
|
-
*/
|
|
53
|
-
findId(contentWindow: Window | undefined | null): string | undefined;
|
|
54
|
-
/** Close all child/pop-out windows. This typically is called when the frontstage is changed. */
|
|
55
|
-
closeAll(): void;
|
|
56
|
-
/**
|
|
57
|
-
* Close a specific child window.
|
|
58
|
-
* @param childWindowId Id of the window to close
|
|
59
|
-
* @param processWindowClose should the `close` method be called on the closing window. (defaults to true)
|
|
60
|
-
* @returns false if the window could not be found.
|
|
61
|
-
*/
|
|
62
|
-
close: (childWindowId: string, processWindowClose?: boolean) => boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Open a new child window.
|
|
65
|
-
* @param childWindowId Id to assign to the newly created window.
|
|
66
|
-
* @param title Title to display on the window.
|
|
67
|
-
* @param content ReactNode to be rendered in the window.
|
|
68
|
-
* @param location Position and size information
|
|
69
|
-
* @param useDefaultPopoutUrl use "/iTwinPopup.html" as the window Url, "" otherwise.
|
|
70
|
-
* @returns true if the window is opened successfully.
|
|
71
|
-
*/
|
|
72
|
-
open(childWindowId: string, title: string, content: React.ReactNode, location: ChildWindowLocationProps, useDefaultPopoutUrl?: boolean): boolean;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=ChildWindowManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChildWindowManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/childwindow/ChildWindowManager.tsx"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAEtF;;;;;KAKK;AACL,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAoC;IAEpD;;;OAGG;IACI,YAAY,CAAC,QAAQ,EAAE,0BAA0B;IAIxD,IAAW,gBAAgB,0BAE1B;IAED;;OAEG;IACI,eAAe,CACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,mBAAmB,GAAG,SAAS;IAIlC;;OAEG;IACI,iBAAiB,CACtB,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GACvC,MAAM,GAAG,SAAS;IAIrB;;OAEG;IACI,oBAAoB;IAI3B;;OAEG;IACI,gBAAgB,kBACN,MAAM,2CAIrB;IAEF;;OAEG;IAEI,eAAe,CACpB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,QAAQ,EAAE,wBAAwB,EAClC,mBAAmB,CAAC,EAAE,OAAO;IAWxB,aAAa,CAAC,YAAY,EAAE,UAAU;IAI7C;;;;OAIG;IACI,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB,GAAG,SAAS;IAI/E;;;;SAIK;IACE,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS;IAI3E,gGAAgG;IACzF,QAAQ;IAIf;;;;;SAKK;IACE,KAAK,kBAAmB,MAAM,2CAEnC;IAEF;;;;;;;;SAQK;IAEE,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE,wBAAwB,EAAE,mBAAmB,CAAC,EAAE,OAAO;CAG9I"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { InternalChildWindowManager } from "./InternalChildWindowManager";
|
|
6
|
-
/** Supports opening a child browser window from the main application window. The child window is managed by the main application
|
|
7
|
-
* and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.
|
|
8
|
-
* See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)
|
|
9
|
-
* @public
|
|
10
|
-
* @deprecated in 3.7. Use `UiFramework.childWindows` property to access.
|
|
11
|
-
* */
|
|
12
|
-
export class ChildWindowManager {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.internal = new InternalChildWindowManager();
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated in 3.7. Use `close` method.
|
|
17
|
-
*/
|
|
18
|
-
this.closeChildWindow = (childWindowId, processWindowClose = true) => {
|
|
19
|
-
return this.internal.close(childWindowId, processWindowClose);
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Close a specific child window.
|
|
23
|
-
* @param childWindowId Id of the window to close
|
|
24
|
-
* @param processWindowClose should the `close` method be called on the closing window. (defaults to true)
|
|
25
|
-
* @returns false if the window could not be found.
|
|
26
|
-
*/
|
|
27
|
-
this.close = (childWindowId, processWindowClose = true) => {
|
|
28
|
-
return this.internal.close(childWindowId, processWindowClose);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Override internal implementation for a mock
|
|
33
|
-
* @internal For tests only.
|
|
34
|
-
*/
|
|
35
|
-
mockInternal(internal) {
|
|
36
|
-
this.internal = internal;
|
|
37
|
-
}
|
|
38
|
-
get openChildWindows() {
|
|
39
|
-
return this.internal.openChildWindows;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated in 3.7. Use `find` method.
|
|
43
|
-
*/
|
|
44
|
-
findChildWindow(childWindowId) {
|
|
45
|
-
return this.internal.find(childWindowId);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated in 3.7. Use `findId` method.
|
|
49
|
-
*/
|
|
50
|
-
findChildWindowId(contentWindow) {
|
|
51
|
-
return this.internal.findId(contentWindow);
|
|
52
|
-
}
|
|
53
|
-
/** Close all child/pop-out windows. This typically is called when the frontstage is changed.
|
|
54
|
-
* @deprecated in 3.7. Use `closeAll` method.
|
|
55
|
-
*/
|
|
56
|
-
closeAllChildWindows() {
|
|
57
|
-
return this.internal.closeAll();
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated in 3.7. Use `open` method.
|
|
61
|
-
*/
|
|
62
|
-
// istanbul ignore next
|
|
63
|
-
openChildWindow(childWindowId, title, content, location, useDefaultPopoutUrl) {
|
|
64
|
-
return this.internal.open(childWindowId, title, content, location, useDefaultPopoutUrl);
|
|
65
|
-
}
|
|
66
|
-
useCreateRoot(createRootFn) {
|
|
67
|
-
return this.internal.useCreateRoot(createRootFn);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Returns the OpenChildWindowInfo for the related id.
|
|
71
|
-
* @param childWindowId Id of the window to retrieve.
|
|
72
|
-
* @returns undefined if not found.
|
|
73
|
-
*/
|
|
74
|
-
find(childWindowId) {
|
|
75
|
-
return this.internal.find(childWindowId);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Return the childWindowId of the provided window.
|
|
79
|
-
* @param contentWindow Window element to identify
|
|
80
|
-
* @returns undefined if not found
|
|
81
|
-
*/
|
|
82
|
-
findId(contentWindow) {
|
|
83
|
-
return this.internal.findId(contentWindow);
|
|
84
|
-
}
|
|
85
|
-
/** Close all child/pop-out windows. This typically is called when the frontstage is changed. */
|
|
86
|
-
closeAll() {
|
|
87
|
-
return this.internal.closeAll();
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Open a new child window.
|
|
91
|
-
* @param childWindowId Id to assign to the newly created window.
|
|
92
|
-
* @param title Title to display on the window.
|
|
93
|
-
* @param content ReactNode to be rendered in the window.
|
|
94
|
-
* @param location Position and size information
|
|
95
|
-
* @param useDefaultPopoutUrl use "/iTwinPopup.html" as the window Url, "" otherwise.
|
|
96
|
-
* @returns true if the window is opened successfully.
|
|
97
|
-
*/
|
|
98
|
-
// istanbul ignore next
|
|
99
|
-
open(childWindowId, title, content, location, useDefaultPopoutUrl) {
|
|
100
|
-
return this.internal.open(childWindowId, title, content, location, useDefaultPopoutUrl);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=ChildWindowManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChildWindowManager.js","sourceRoot":"","sources":["../../../../src/appui-react/childwindow/ChildWindowManager.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAQ/F,OAAO,EAAc,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAEtF;;;;;KAKK;AACL,MAAM,OAAO,kBAAkB;IAA/B;QACU,aAAQ,GAAG,IAAI,0BAA0B,EAAE,CAAC;QAuCpD;;WAEG;QACI,qBAAgB,GAAG,CACxB,aAAqB,EACrB,kBAAkB,GAAG,IAAI,EACzB,EAAE;YACF,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;QAChE,CAAC,CAAC;QAiDF;;;;;aAKK;QACE,UAAK,GAAG,CAAC,aAAqB,EAAE,kBAAkB,GAAG,IAAI,EAAE,EAAE;YAClE,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;QAChE,CAAC,CAAC;IAeJ,CAAC;IArHC;;;OAGG;IACI,YAAY,CAAC,QAAoC;QACtD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAW,gBAAgB;QACzB,OAAO,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACxC,CAAC;IAED;;OAEG;IACI,eAAe,CACpB,aAAiC;QAEjC,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3C,CAAC;IAED;;OAEG;IACI,iBAAiB,CACtB,aAAwC;QAExC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACI,oBAAoB;QACzB,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;IAYD;;OAEG;IACH,uBAAuB;IAChB,eAAe,CACpB,aAAqB,EACrB,KAAa,EACb,OAAwB,EACxB,QAAkC,EAClC,mBAA6B;QAE7B,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CACvB,aAAa,EACb,KAAK,EACL,OAAO,EACP,QAAQ,EACR,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAEM,aAAa,CAAC,YAAwB;QAC3C,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,aAAiC;QAC3C,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3C,CAAC;IAED;;;;SAIK;IACE,MAAM,CAAC,aAAwC;QACpD,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC7C,CAAC;IAED,gGAAgG;IACzF,QAAQ;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;IAYD;;;;;;;;SAQK;IACL,uBAAuB;IAChB,IAAI,CAAC,aAAqB,EAAE,KAAa,EAAE,OAAwB,EAAE,QAAkC,EAAE,mBAA6B;QAC3I,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC;IAC1F,CAAC;CACF","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/** @packageDocumentation\r\n * @module ChildWindowManager\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { ChildWindowLocationProps, OpenChildWindowInfo } from \"../framework/FrameworkChildWindows\";\r\nimport { CreateRoot, InternalChildWindowManager } from \"./InternalChildWindowManager\";\r\n\r\n/** Supports opening a child browser window from the main application window. The child window is managed by the main application\r\n * and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.\r\n * See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)\r\n * @public\r\n * @deprecated in 3.7. Use `UiFramework.childWindows` property to access.\r\n * */\r\nexport class ChildWindowManager {\r\n private internal = new InternalChildWindowManager();\r\n\r\n /**\r\n * Override internal implementation for a mock\r\n * @internal For tests only.\r\n */\r\n public mockInternal(internal: InternalChildWindowManager) {\r\n this.internal = internal;\r\n }\r\n\r\n public get openChildWindows() {\r\n return this.internal.openChildWindows;\r\n }\r\n\r\n /**\r\n * @deprecated in 3.7. Use `find` method.\r\n */\r\n public findChildWindow(\r\n childWindowId: string | undefined\r\n ): OpenChildWindowInfo | undefined {\r\n return this.internal.find(childWindowId);\r\n }\r\n\r\n /**\r\n * @deprecated in 3.7. Use `findId` method.\r\n */\r\n public findChildWindowId(\r\n contentWindow: Window | undefined | null\r\n ): string | undefined {\r\n return this.internal.findId(contentWindow);\r\n }\r\n\r\n /** Close all child/pop-out windows. This typically is called when the frontstage is changed.\r\n * @deprecated in 3.7. Use `closeAll` method.\r\n */\r\n public closeAllChildWindows() {\r\n return this.internal.closeAll();\r\n }\r\n\r\n /**\r\n * @deprecated in 3.7. Use `close` method.\r\n */\r\n public closeChildWindow = (\r\n childWindowId: string,\r\n processWindowClose = true\r\n ) => {\r\n return this.internal.close(childWindowId, processWindowClose);\r\n };\r\n\r\n /**\r\n * @deprecated in 3.7. Use `open` method.\r\n */\r\n // istanbul ignore next\r\n public openChildWindow(\r\n childWindowId: string,\r\n title: string,\r\n content: React.ReactNode,\r\n location: ChildWindowLocationProps,\r\n useDefaultPopoutUrl?: boolean\r\n ) {\r\n return this.internal.open(\r\n childWindowId,\r\n title,\r\n content,\r\n location,\r\n useDefaultPopoutUrl\r\n );\r\n }\r\n\r\n public useCreateRoot(createRootFn: CreateRoot) {\r\n return this.internal.useCreateRoot(createRootFn);\r\n }\r\n\r\n /**\r\n * Returns the OpenChildWindowInfo for the related id.\r\n * @param childWindowId Id of the window to retrieve.\r\n * @returns undefined if not found.\r\n */\r\n public find(childWindowId: string | undefined): OpenChildWindowInfo | undefined {\r\n return this.internal.find(childWindowId);\r\n }\r\n\r\n /**\r\n * Return the childWindowId of the provided window.\r\n * @param contentWindow Window element to identify\r\n * @returns undefined if not found\r\n */\r\n public findId(contentWindow: Window | undefined | null): string | undefined {\r\n return this.internal.findId(contentWindow);\r\n }\r\n\r\n /** Close all child/pop-out windows. This typically is called when the frontstage is changed. */\r\n public closeAll() {\r\n return this.internal.closeAll();\r\n }\r\n\r\n /**\r\n * Close a specific child window.\r\n * @param childWindowId Id of the window to close\r\n * @param processWindowClose should the `close` method be called on the closing window. (defaults to true)\r\n * @returns false if the window could not be found.\r\n */\r\n public close = (childWindowId: string, processWindowClose = true) => {\r\n return this.internal.close(childWindowId, processWindowClose);\r\n };\r\n\r\n /**\r\n * Open a new child window.\r\n * @param childWindowId Id to assign to the newly created window.\r\n * @param title Title to display on the window.\r\n * @param content ReactNode to be rendered in the window.\r\n * @param location Position and size information\r\n * @param useDefaultPopoutUrl use \"/iTwinPopup.html\" as the window Url, \"\" otherwise.\r\n * @returns true if the window is opened successfully.\r\n */\r\n // istanbul ignore next\r\n public open(childWindowId: string, title: string, content: React.ReactNode, location: ChildWindowLocationProps, useDefaultPopoutUrl?: boolean) {\r\n return this.internal.open(childWindowId, title, content, location, useDefaultPopoutUrl);\r\n }\r\n}\r\n\r\n"]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module ConfigurableUi
|
|
3
|
-
*/
|
|
4
|
-
import { FrontstageProvider } from "../frontstage/FrontstageProvider";
|
|
5
|
-
import { KeyboardShortcutProps } from "../framework/FrameworkKeyboardShortcuts";
|
|
6
|
-
import { ConfigurableUiControlConstructor, ConfigurableUiElement } from "./ConfigurableUiControl";
|
|
7
|
-
/** Configurable Ui Manager maintains controls, Frontstages, Content Groups, Content Layouts, Tasks and Workflows.
|
|
8
|
-
* @public
|
|
9
|
-
* @deprecated in 3.7. Use `UiFramework.controls` property.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ConfigurableUiManager {
|
|
12
|
-
/** Initializes the InternalConfigurableUiManager and registers core controls.
|
|
13
|
-
* @deprecated in 3.7. This is called internally.
|
|
14
|
-
*/
|
|
15
|
-
static initialize(): void;
|
|
16
|
-
/** Registers a control implementing the [[ConfigurableUiElement]] interface.
|
|
17
|
-
* These controls can be a
|
|
18
|
-
* [[ContentControl]],
|
|
19
|
-
* [[NavigationAidControl]],
|
|
20
|
-
* [[StatusBarWidgetControl]],
|
|
21
|
-
* [[WidgetControl]] or
|
|
22
|
-
* [ToolUiProvider]($appui-react).
|
|
23
|
-
* @param classId the class id of the control to register
|
|
24
|
-
* @param constructor the constructor of the control to register
|
|
25
|
-
* @deprecated in 3.7. Use `register` method.
|
|
26
|
-
*/
|
|
27
|
-
static registerControl(classId: string, constructor: ConfigurableUiControlConstructor): void;
|
|
28
|
-
/** Determines if a control has been registered based on its classId.
|
|
29
|
-
* @param classId the class id of the control to test
|
|
30
|
-
* @returns true if the control is registered or false if not
|
|
31
|
-
*/
|
|
32
|
-
static isControlRegistered(classId: string): boolean;
|
|
33
|
-
/** Determines if a control has been registered.
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
|
-
static getConstructorClassId(constructor: ConfigurableUiControlConstructor): string | undefined;
|
|
37
|
-
/** Unregisters a control that has been registered.
|
|
38
|
-
* @param classId the class id of the control to unregister
|
|
39
|
-
* @deprecated in 3.7. Use `unregister` method.
|
|
40
|
-
*/
|
|
41
|
-
static unregisterControl(classId: string): void;
|
|
42
|
-
/** Creates a control registered by calling registerControl.
|
|
43
|
-
* @param classId the class id of the control to create
|
|
44
|
-
* @param uniqueId a unique id for the control
|
|
45
|
-
* @param options options passed to the constructor of the control
|
|
46
|
-
* @param controlId controlId which may not be unique across all control instances.
|
|
47
|
-
* @returns the created control
|
|
48
|
-
* @deprecated in 3.7. Use `create` method.
|
|
49
|
-
*/
|
|
50
|
-
static createControl(classId: string, uniqueId: string, options?: any, controlId?: string): ConfigurableUiElement | undefined;
|
|
51
|
-
/** Add a Frontstage via a provider into the [[FrontstageManager]].
|
|
52
|
-
* @param frontstageProvider Provider of the Frontstage to add
|
|
53
|
-
* @deprecated in 3.7. Use `UiFramework.frontstages.addFrontstageProvider` method.
|
|
54
|
-
*/
|
|
55
|
-
static addFrontstageProvider(frontstageProvider: FrontstageProvider): void;
|
|
56
|
-
/** Loads one or more Keyboard Shortcuts into the [[KeyboardShortcutManager]].
|
|
57
|
-
* @param shortcutList the properties of the Keyboard Shortcuts to load
|
|
58
|
-
* @deprecated in 3.7. Use `UiFramework.keyboardShortcuts.loadShortcuts` method.
|
|
59
|
-
*/
|
|
60
|
-
static loadKeyboardShortcuts(shortcutList: KeyboardShortcutProps[]): void;
|
|
61
|
-
/** Gets the HTML wrapper element for Configurable UI */
|
|
62
|
-
static getWrapperElement(): HTMLElement;
|
|
63
|
-
/** Closes all UI popups currently open */
|
|
64
|
-
static closeUi(): void;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=ConfigurableUiManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurableUiManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGlG;;;GAGG;AACH,qBAAa,qBAAqB;IAChC;;MAEE;WACY,UAAU;IAIxB;;;;;;;;;;OAUG;WACW,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,GAAG,IAAI;IAInG;;;OAGG;WACW,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAI3D;;OAEG;WACW,qBAAqB,CAAC,WAAW,EAAE,gCAAgC,GAAG,MAAM,GAAG,SAAS;IAItG;;;OAGG;WACW,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAItD;;;;;;;OAOG;WACW,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS;IAIpI;;;OAGG;WACW,qBAAqB,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,IAAI;IAIjF;;;OAGG;WACW,qBAAqB,CAAC,YAAY,EAAE,qBAAqB,EAAE,GAAG,IAAI;IAIhF,wDAAwD;WAC1C,iBAAiB,IAAI,WAAW;IAI9C,0CAA0C;WAC5B,OAAO,IAAI,IAAI;CAI9B"}
|