@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,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,107 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ChildWindowManager = void 0;
|
|
8
|
-
const InternalChildWindowManager_1 = require("./InternalChildWindowManager");
|
|
9
|
-
/** Supports opening a child browser window from the main application window. The child window is managed by the main application
|
|
10
|
-
* and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.
|
|
11
|
-
* See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)
|
|
12
|
-
* @public
|
|
13
|
-
* @deprecated in 3.7. Use `UiFramework.childWindows` property to access.
|
|
14
|
-
* */
|
|
15
|
-
class ChildWindowManager {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.internal = new InternalChildWindowManager_1.InternalChildWindowManager();
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated in 3.7. Use `close` method.
|
|
20
|
-
*/
|
|
21
|
-
this.closeChildWindow = (childWindowId, processWindowClose = true) => {
|
|
22
|
-
return this.internal.close(childWindowId, processWindowClose);
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Close a specific child window.
|
|
26
|
-
* @param childWindowId Id of the window to close
|
|
27
|
-
* @param processWindowClose should the `close` method be called on the closing window. (defaults to true)
|
|
28
|
-
* @returns false if the window could not be found.
|
|
29
|
-
*/
|
|
30
|
-
this.close = (childWindowId, processWindowClose = true) => {
|
|
31
|
-
return this.internal.close(childWindowId, processWindowClose);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Override internal implementation for a mock
|
|
36
|
-
* @internal For tests only.
|
|
37
|
-
*/
|
|
38
|
-
mockInternal(internal) {
|
|
39
|
-
this.internal = internal;
|
|
40
|
-
}
|
|
41
|
-
get openChildWindows() {
|
|
42
|
-
return this.internal.openChildWindows;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated in 3.7. Use `find` method.
|
|
46
|
-
*/
|
|
47
|
-
findChildWindow(childWindowId) {
|
|
48
|
-
return this.internal.find(childWindowId);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated in 3.7. Use `findId` method.
|
|
52
|
-
*/
|
|
53
|
-
findChildWindowId(contentWindow) {
|
|
54
|
-
return this.internal.findId(contentWindow);
|
|
55
|
-
}
|
|
56
|
-
/** Close all child/pop-out windows. This typically is called when the frontstage is changed.
|
|
57
|
-
* @deprecated in 3.7. Use `closeAll` method.
|
|
58
|
-
*/
|
|
59
|
-
closeAllChildWindows() {
|
|
60
|
-
return this.internal.closeAll();
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated in 3.7. Use `open` method.
|
|
64
|
-
*/
|
|
65
|
-
// istanbul ignore next
|
|
66
|
-
openChildWindow(childWindowId, title, content, location, useDefaultPopoutUrl) {
|
|
67
|
-
return this.internal.open(childWindowId, title, content, location, useDefaultPopoutUrl);
|
|
68
|
-
}
|
|
69
|
-
useCreateRoot(createRootFn) {
|
|
70
|
-
return this.internal.useCreateRoot(createRootFn);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns the OpenChildWindowInfo for the related id.
|
|
74
|
-
* @param childWindowId Id of the window to retrieve.
|
|
75
|
-
* @returns undefined if not found.
|
|
76
|
-
*/
|
|
77
|
-
find(childWindowId) {
|
|
78
|
-
return this.internal.find(childWindowId);
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Return the childWindowId of the provided window.
|
|
82
|
-
* @param contentWindow Window element to identify
|
|
83
|
-
* @returns undefined if not found
|
|
84
|
-
*/
|
|
85
|
-
findId(contentWindow) {
|
|
86
|
-
return this.internal.findId(contentWindow);
|
|
87
|
-
}
|
|
88
|
-
/** Close all child/pop-out windows. This typically is called when the frontstage is changed. */
|
|
89
|
-
closeAll() {
|
|
90
|
-
return this.internal.closeAll();
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Open a new child window.
|
|
94
|
-
* @param childWindowId Id to assign to the newly created window.
|
|
95
|
-
* @param title Title to display on the window.
|
|
96
|
-
* @param content ReactNode to be rendered in the window.
|
|
97
|
-
* @param location Position and size information
|
|
98
|
-
* @param useDefaultPopoutUrl use "/iTwinPopup.html" as the window Url, "" otherwise.
|
|
99
|
-
* @returns true if the window is opened successfully.
|
|
100
|
-
*/
|
|
101
|
-
// istanbul ignore next
|
|
102
|
-
open(childWindowId, title, content, location, useDefaultPopoutUrl) {
|
|
103
|
-
return this.internal.open(childWindowId, title, content, location, useDefaultPopoutUrl);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
exports.ChildWindowManager = ChildWindowManager;
|
|
107
|
-
//# 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,6EAAsF;AAEtF;;;;;KAKK;AACL,MAAa,kBAAkB;IAA/B;QACU,aAAQ,GAAG,IAAI,uDAA0B,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;AAxHD,gDAwHC","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"}
|
|
@@ -1,93 +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 ConfigurableUi
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ConfigurableUiManager = void 0;
|
|
11
|
-
const UiFramework_1 = require("../UiFramework");
|
|
12
|
-
const InternalConfigurableUiManager_1 = require("./InternalConfigurableUiManager");
|
|
13
|
-
/** Configurable Ui Manager maintains controls, Frontstages, Content Groups, Content Layouts, Tasks and Workflows.
|
|
14
|
-
* @public
|
|
15
|
-
* @deprecated in 3.7. Use `UiFramework.controls` property.
|
|
16
|
-
*/
|
|
17
|
-
class ConfigurableUiManager {
|
|
18
|
-
/** Initializes the InternalConfigurableUiManager and registers core controls.
|
|
19
|
-
* @deprecated in 3.7. This is called internally.
|
|
20
|
-
*/
|
|
21
|
-
static initialize() {
|
|
22
|
-
return InternalConfigurableUiManager_1.InternalConfigurableUiManager.initialize();
|
|
23
|
-
}
|
|
24
|
-
/** Registers a control implementing the [[ConfigurableUiElement]] interface.
|
|
25
|
-
* These controls can be a
|
|
26
|
-
* [[ContentControl]],
|
|
27
|
-
* [[NavigationAidControl]],
|
|
28
|
-
* [[StatusBarWidgetControl]],
|
|
29
|
-
* [[WidgetControl]] or
|
|
30
|
-
* [ToolUiProvider]($appui-react).
|
|
31
|
-
* @param classId the class id of the control to register
|
|
32
|
-
* @param constructor the constructor of the control to register
|
|
33
|
-
* @deprecated in 3.7. Use `register` method.
|
|
34
|
-
*/
|
|
35
|
-
static registerControl(classId, constructor) {
|
|
36
|
-
return InternalConfigurableUiManager_1.InternalConfigurableUiManager.register(classId, constructor);
|
|
37
|
-
}
|
|
38
|
-
/** Determines if a control has been registered based on its classId.
|
|
39
|
-
* @param classId the class id of the control to test
|
|
40
|
-
* @returns true if the control is registered or false if not
|
|
41
|
-
*/
|
|
42
|
-
static isControlRegistered(classId) {
|
|
43
|
-
return InternalConfigurableUiManager_1.InternalConfigurableUiManager.isRegistered(classId);
|
|
44
|
-
}
|
|
45
|
-
/** Determines if a control has been registered.
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
static getConstructorClassId(constructor) {
|
|
49
|
-
return InternalConfigurableUiManager_1.InternalConfigurableUiManager.getConstructorClassId(constructor);
|
|
50
|
-
}
|
|
51
|
-
/** Unregisters a control that has been registered.
|
|
52
|
-
* @param classId the class id of the control to unregister
|
|
53
|
-
* @deprecated in 3.7. Use `unregister` method.
|
|
54
|
-
*/
|
|
55
|
-
static unregisterControl(classId) {
|
|
56
|
-
return InternalConfigurableUiManager_1.InternalConfigurableUiManager.unregister(classId);
|
|
57
|
-
}
|
|
58
|
-
/** Creates a control registered by calling registerControl.
|
|
59
|
-
* @param classId the class id of the control to create
|
|
60
|
-
* @param uniqueId a unique id for the control
|
|
61
|
-
* @param options options passed to the constructor of the control
|
|
62
|
-
* @param controlId controlId which may not be unique across all control instances.
|
|
63
|
-
* @returns the created control
|
|
64
|
-
* @deprecated in 3.7. Use `create` method.
|
|
65
|
-
*/
|
|
66
|
-
static createControl(classId, uniqueId, options, controlId) {
|
|
67
|
-
return InternalConfigurableUiManager_1.InternalConfigurableUiManager.create(classId, uniqueId, options, controlId);
|
|
68
|
-
}
|
|
69
|
-
/** Add a Frontstage via a provider into the [[FrontstageManager]].
|
|
70
|
-
* @param frontstageProvider Provider of the Frontstage to add
|
|
71
|
-
* @deprecated in 3.7. Use `UiFramework.frontstages.addFrontstageProvider` method.
|
|
72
|
-
*/
|
|
73
|
-
static addFrontstageProvider(frontstageProvider) {
|
|
74
|
-
UiFramework_1.UiFramework.frontstages.addFrontstageProvider(frontstageProvider);
|
|
75
|
-
}
|
|
76
|
-
/** Loads one or more Keyboard Shortcuts into the [[KeyboardShortcutManager]].
|
|
77
|
-
* @param shortcutList the properties of the Keyboard Shortcuts to load
|
|
78
|
-
* @deprecated in 3.7. Use `UiFramework.keyboardShortcuts.loadShortcuts` method.
|
|
79
|
-
*/
|
|
80
|
-
static loadKeyboardShortcuts(shortcutList) {
|
|
81
|
-
UiFramework_1.UiFramework.keyboardShortcuts.loadShortcuts(shortcutList);
|
|
82
|
-
}
|
|
83
|
-
/** Gets the HTML wrapper element for Configurable UI */
|
|
84
|
-
static getWrapperElement() {
|
|
85
|
-
return InternalConfigurableUiManager_1.InternalConfigurableUiManager.getWrapperElement();
|
|
86
|
-
}
|
|
87
|
-
/** Closes all UI popups currently open */
|
|
88
|
-
static closeUi() {
|
|
89
|
-
return InternalConfigurableUiManager_1.InternalConfigurableUiManager.closeUi();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.ConfigurableUiManager = ConfigurableUiManager;
|
|
93
|
-
//# sourceMappingURL=ConfigurableUiManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurableUiManager.js","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiManager.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAIH,gDAA6C;AAE7C,mFAA4F;AAE5F;;;GAGG;AACH,MAAa,qBAAqB;IAChC;;MAEE;IACK,MAAM,CAAC,UAAU;QACtB,OAAO,6DAAQ,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;OAUG;IACI,MAAM,CAAC,eAAe,CAAC,OAAe,EAAE,WAA6C;QAC1F,OAAO,6DAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,mBAAmB,CAAC,OAAe;QAC/C,OAAO,6DAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,qBAAqB,CAAC,WAA6C;QAC/E,OAAO,6DAAQ,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,iBAAiB,CAAC,OAAe;QAC7C,OAAO,6DAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,aAAa,CAAC,OAAe,EAAE,QAAgB,EAAE,OAAa,EAAE,SAAkB;QAC9F,OAAO,6DAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAChE,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,qBAAqB,CAAC,kBAAsC;QACxE,yBAAW,CAAC,WAAW,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IACpE,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,qBAAqB,CAAC,YAAqC;QACvE,yBAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IAC5D,CAAC;IAED,wDAAwD;IACjD,MAAM,CAAC,iBAAiB;QAC7B,OAAO,6DAAQ,CAAC,iBAAiB,EAAE,CAAC;IACtC,CAAC;IAED,0CAA0C;IACnC,MAAM,CAAC,OAAO;QACnB,OAAO,6DAAQ,CAAC,OAAO,EAAE,CAAC;IAC5B,CAAC;CAEF;AApFD,sDAoFC","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 ConfigurableUi\r\n */\r\n\r\nimport { FrontstageProvider } from \"../frontstage/FrontstageProvider\";\r\nimport { KeyboardShortcutProps } from \"../framework/FrameworkKeyboardShortcuts\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { ConfigurableUiControlConstructor, ConfigurableUiElement } from \"./ConfigurableUiControl\";\r\nimport { InternalConfigurableUiManager as internal } from \"./InternalConfigurableUiManager\";\r\n\r\n/** Configurable Ui Manager maintains controls, Frontstages, Content Groups, Content Layouts, Tasks and Workflows.\r\n * @public\r\n * @deprecated in 3.7. Use `UiFramework.controls` property.\r\n */\r\nexport class ConfigurableUiManager {\r\n /** Initializes the InternalConfigurableUiManager and registers core controls.\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 /** Registers a control implementing the [[ConfigurableUiElement]] interface.\r\n * These controls can be a\r\n * [[ContentControl]],\r\n * [[NavigationAidControl]],\r\n * [[StatusBarWidgetControl]],\r\n * [[WidgetControl]] or\r\n * [ToolUiProvider]($appui-react).\r\n * @param classId the class id of the control to register\r\n * @param constructor the constructor of the control to register\r\n * @deprecated in 3.7. Use `register` method.\r\n */\r\n public static registerControl(classId: string, constructor: ConfigurableUiControlConstructor): void {\r\n return internal.register(classId, constructor);\r\n }\r\n\r\n /** Determines if a control has been registered based on its classId.\r\n * @param classId the class id of the control to test\r\n * @returns true if the control is registered or false if not\r\n */\r\n public static isControlRegistered(classId: string): boolean {\r\n return internal.isRegistered(classId);\r\n }\r\n\r\n /** Determines if a control has been registered.\r\n * @internal\r\n */\r\n public static getConstructorClassId(constructor: ConfigurableUiControlConstructor): string | undefined {\r\n return internal.getConstructorClassId(constructor);\r\n }\r\n\r\n /** Unregisters a control that has been registered.\r\n * @param classId the class id of the control to unregister\r\n * @deprecated in 3.7. Use `unregister` method.\r\n */\r\n public static unregisterControl(classId: string): void {\r\n return internal.unregister(classId);\r\n }\r\n\r\n /** Creates a control registered by calling registerControl.\r\n * @param classId the class id of the control to create\r\n * @param uniqueId a unique id for the control\r\n * @param options options passed to the constructor of the control\r\n * @param controlId controlId which may not be unique across all control instances.\r\n * @returns the created control\r\n * @deprecated in 3.7. Use `create` method.\r\n */\r\n public static createControl(classId: string, uniqueId: string, options?: any, controlId?: string): ConfigurableUiElement | undefined {\r\n return internal.create(classId, uniqueId, options, controlId);\r\n }\r\n\r\n /** Add a Frontstage via a provider into the [[FrontstageManager]].\r\n * @param frontstageProvider Provider of the Frontstage to add\r\n * @deprecated in 3.7. Use `UiFramework.frontstages.addFrontstageProvider` method.\r\n */\r\n public static addFrontstageProvider(frontstageProvider: FrontstageProvider): void {\r\n UiFramework.frontstages.addFrontstageProvider(frontstageProvider);\r\n }\r\n\r\n /** Loads one or more Keyboard Shortcuts into the [[KeyboardShortcutManager]].\r\n * @param shortcutList the properties of the Keyboard Shortcuts to load\r\n * @deprecated in 3.7. Use `UiFramework.keyboardShortcuts.loadShortcuts` method.\r\n */\r\n public static loadKeyboardShortcuts(shortcutList: KeyboardShortcutProps[]): void {\r\n UiFramework.keyboardShortcuts.loadShortcuts(shortcutList);\r\n }\r\n\r\n /** Gets the HTML wrapper element for Configurable UI */\r\n public static getWrapperElement(): HTMLElement {\r\n return internal.getWrapperElement();\r\n }\r\n\r\n /** Closes all UI popups currently open */\r\n public static closeUi(): void {\r\n return internal.closeUi();\r\n }\r\n\r\n}\r\n"]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module ContentView
|
|
3
|
-
*/
|
|
4
|
-
import { ContentLayoutProps } from "@itwin/appui-abstract";
|
|
5
|
-
import { ContentGroup, ContentGroupProps } from "./ContentGroup";
|
|
6
|
-
import { ContentLayoutDef } from "./ContentLayout";
|
|
7
|
-
/** ContentLayout Manager class.
|
|
8
|
-
* @public
|
|
9
|
-
* @deprecated in 3.7. Use `UiFramework.content.layouts` property.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ContentLayoutManager {
|
|
12
|
-
/** build a layout key that is unique for group layout combination */
|
|
13
|
-
static getLayoutKey(props: {
|
|
14
|
-
contentGroupId: string;
|
|
15
|
-
layoutId: string;
|
|
16
|
-
}): string;
|
|
17
|
-
/** Return a LayoutDef that is specific to a content group.
|
|
18
|
-
* @returns the [[ContentLayoutDef]] if found, or undefined otherwise
|
|
19
|
-
*/
|
|
20
|
-
static getLayoutForGroup(contentGroupProps: ContentGroupProps | ContentGroup, overrideContentLayout?: ContentLayoutProps): ContentLayoutDef;
|
|
21
|
-
/** Finds a Content Layout with a given id.
|
|
22
|
-
* @param layoutKey group specific layout id, see `getLayoutKey`
|
|
23
|
-
* @returns the [[ContentLayoutDef]] if found, or undefined otherwise
|
|
24
|
-
*/
|
|
25
|
-
static findLayout(layoutKey: string): ContentLayoutDef | undefined;
|
|
26
|
-
/** Adds a Content Layout.
|
|
27
|
-
* @param layoutId the id of the Content Layout to add
|
|
28
|
-
* @param layoutDef the Content Layout definition to add
|
|
29
|
-
*/
|
|
30
|
-
static addLayout(layoutId: string, layoutDef: ContentLayoutDef): void;
|
|
31
|
-
/** Gets the active Content Layout */
|
|
32
|
-
static get activeLayout(): ContentLayoutDef | undefined;
|
|
33
|
-
/** Gets the active Content Group */
|
|
34
|
-
static get activeContentGroup(): ContentGroup | undefined;
|
|
35
|
-
/** Sets the active Content Layout, Content Group and Content Control.
|
|
36
|
-
* @param contentLayoutDef Content layout to make active
|
|
37
|
-
* @param contentGroup Content Group to make active
|
|
38
|
-
*/
|
|
39
|
-
static setActiveLayout(contentLayoutDef: ContentLayoutDef, contentGroup: ContentGroup): Promise<void>;
|
|
40
|
-
/** Sets the active Content Group.
|
|
41
|
-
* @param contentGroup Content Group to make active
|
|
42
|
-
*/
|
|
43
|
-
static setActiveContentGroup(contentGroup: ContentGroup): Promise<void>;
|
|
44
|
-
/** Refreshes the active layout and content group.
|
|
45
|
-
*/
|
|
46
|
-
static refreshActiveLayout(): void;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=ContentLayoutManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentLayoutManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD;;;GAGG;AACH,qBAAa,oBAAoB;IAC/B,qEAAqE;WACvD,YAAY,CAAC,KAAK,EAAE;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAIvF;;OAEG;WACW,iBAAiB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,YAAY,EAAE,qBAAqB,CAAC,EAAE,kBAAkB,GAAG,gBAAgB;IAIlJ;;;OAGG;WACW,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAIzE;;;OAGG;WACW,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAI5E,qCAAqC;IACrC,WAAkB,YAAY,IAAI,gBAAgB,GAAG,SAAS,CAE7D;IAED,oCAAoC;IACpC,WAAkB,kBAAkB,IAAI,YAAY,GAAG,SAAS,CAE/D;IAED;;;OAGG;WACiB,eAAe,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlH;;OAEG;WACiB,qBAAqB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpF;OACG;WACW,mBAAmB,IAAI,IAAI;CAG1C"}
|
|
@@ -1,69 +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 ContentView
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ContentLayoutManager = void 0;
|
|
11
|
-
const InternalContentLayoutManager_1 = require("./InternalContentLayoutManager");
|
|
12
|
-
/** ContentLayout Manager class.
|
|
13
|
-
* @public
|
|
14
|
-
* @deprecated in 3.7. Use `UiFramework.content.layouts` property.
|
|
15
|
-
*/
|
|
16
|
-
class ContentLayoutManager {
|
|
17
|
-
/** build a layout key that is unique for group layout combination */
|
|
18
|
-
static getLayoutKey(props) {
|
|
19
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.getKey(props);
|
|
20
|
-
}
|
|
21
|
-
/** Return a LayoutDef that is specific to a content group.
|
|
22
|
-
* @returns the [[ContentLayoutDef]] if found, or undefined otherwise
|
|
23
|
-
*/
|
|
24
|
-
static getLayoutForGroup(contentGroupProps, overrideContentLayout) {
|
|
25
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.getForGroup(contentGroupProps, overrideContentLayout);
|
|
26
|
-
}
|
|
27
|
-
/** Finds a Content Layout with a given id.
|
|
28
|
-
* @param layoutKey group specific layout id, see `getLayoutKey`
|
|
29
|
-
* @returns the [[ContentLayoutDef]] if found, or undefined otherwise
|
|
30
|
-
*/
|
|
31
|
-
static findLayout(layoutKey) {
|
|
32
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.find(layoutKey);
|
|
33
|
-
}
|
|
34
|
-
/** Adds a Content Layout.
|
|
35
|
-
* @param layoutId the id of the Content Layout to add
|
|
36
|
-
* @param layoutDef the Content Layout definition to add
|
|
37
|
-
*/
|
|
38
|
-
static addLayout(layoutId, layoutDef) {
|
|
39
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.add(layoutId, layoutDef);
|
|
40
|
-
}
|
|
41
|
-
/** Gets the active Content Layout */
|
|
42
|
-
static get activeLayout() {
|
|
43
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.activeLayout;
|
|
44
|
-
}
|
|
45
|
-
/** Gets the active Content Group */
|
|
46
|
-
static get activeContentGroup() {
|
|
47
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.activeContentGroup;
|
|
48
|
-
}
|
|
49
|
-
/** Sets the active Content Layout, Content Group and Content Control.
|
|
50
|
-
* @param contentLayoutDef Content layout to make active
|
|
51
|
-
* @param contentGroup Content Group to make active
|
|
52
|
-
*/
|
|
53
|
-
static async setActiveLayout(contentLayoutDef, contentGroup) {
|
|
54
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.setActive(contentLayoutDef, contentGroup);
|
|
55
|
-
}
|
|
56
|
-
/** Sets the active Content Group.
|
|
57
|
-
* @param contentGroup Content Group to make active
|
|
58
|
-
*/
|
|
59
|
-
static async setActiveContentGroup(contentGroup) {
|
|
60
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.setActiveContentGroup(contentGroup);
|
|
61
|
-
}
|
|
62
|
-
/** Refreshes the active layout and content group.
|
|
63
|
-
*/
|
|
64
|
-
static refreshActiveLayout() {
|
|
65
|
-
return InternalContentLayoutManager_1.InternalContentLayoutManager.refreshActive();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.ContentLayoutManager = ContentLayoutManager;
|
|
69
|
-
//# sourceMappingURL=ContentLayoutManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLayoutManager.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentLayoutManager.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH,iFAA0F;AAE1F;;;GAGG;AACH,MAAa,oBAAoB;IAC/B,qEAAqE;IAC9D,MAAM,CAAC,YAAY,CAAC,KAAmD;QAC5E,OAAO,2DAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,iBAAiB,CAAC,iBAAmD,EAAE,qBAA0C;QAC7H,OAAO,2DAAQ,CAAC,WAAW,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,SAAiB;QACxC,OAAO,2DAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAClC,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,SAAS,CAAC,QAAgB,EAAE,SAA2B;QACnE,OAAO,2DAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAED,qCAAqC;IAC9B,MAAM,KAAK,YAAY;QAC5B,OAAO,2DAAQ,CAAC,YAAY,CAAC;IAC/B,CAAC;IAED,oCAAoC;IAC7B,MAAM,KAAK,kBAAkB;QAClC,OAAO,2DAAQ,CAAC,kBAAkB,CAAC;IACrC,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,gBAAkC,EAAE,YAA0B;QAChG,OAAO,2DAAQ,CAAC,SAAS,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,YAA0B;QAClE,OAAO,2DAAQ,CAAC,qBAAqB,CAAC,YAAY,CAAC,CAAC;IACtD,CAAC;IAED;OACG;IACI,MAAM,CAAC,mBAAmB;QAC/B,OAAO,2DAAQ,CAAC,aAAa,EAAE,CAAC;IAClC,CAAC;CACF;AA3DD,oDA2DC","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 ContentView\r\n */\r\n\r\nimport { ContentLayoutProps } from \"@itwin/appui-abstract\";\r\nimport { ContentGroup, ContentGroupProps } from \"./ContentGroup\";\r\nimport { ContentLayoutDef } from \"./ContentLayout\";\r\nimport { InternalContentLayoutManager as internal } from \"./InternalContentLayoutManager\";\r\n\r\n/** ContentLayout Manager class.\r\n * @public\r\n * @deprecated in 3.7. Use `UiFramework.content.layouts` property.\r\n */\r\nexport class ContentLayoutManager {\r\n /** build a layout key that is unique for group layout combination */\r\n public static getLayoutKey(props: { contentGroupId: string, layoutId: string }): string {\r\n return internal.getKey(props);\r\n }\r\n\r\n /** Return a LayoutDef that is specific to a content group.\r\n * @returns the [[ContentLayoutDef]] if found, or undefined otherwise\r\n */\r\n public static getLayoutForGroup(contentGroupProps: ContentGroupProps | ContentGroup, overrideContentLayout?: ContentLayoutProps): ContentLayoutDef {\r\n return internal.getForGroup(contentGroupProps, overrideContentLayout);\r\n }\r\n\r\n /** Finds a Content Layout with a given id.\r\n * @param layoutKey group specific layout id, see `getLayoutKey`\r\n * @returns the [[ContentLayoutDef]] if found, or undefined otherwise\r\n */\r\n public static findLayout(layoutKey: string): ContentLayoutDef | undefined {\r\n return internal.find(layoutKey);\r\n }\r\n\r\n /** Adds a Content Layout.\r\n * @param layoutId the id of the Content Layout to add\r\n * @param layoutDef the Content Layout definition to add\r\n */\r\n public static addLayout(layoutId: string, layoutDef: ContentLayoutDef): void {\r\n return internal.add(layoutId, layoutDef);\r\n }\r\n\r\n /** Gets the active Content Layout */\r\n public static get activeLayout(): ContentLayoutDef | undefined {\r\n return internal.activeLayout;\r\n }\r\n\r\n /** Gets the active Content Group */\r\n public static get activeContentGroup(): ContentGroup | undefined {\r\n return internal.activeContentGroup;\r\n }\r\n\r\n /** Sets the active Content Layout, Content Group and Content Control.\r\n * @param contentLayoutDef Content layout to make active\r\n * @param contentGroup Content Group to make active\r\n */\r\n public static async setActiveLayout(contentLayoutDef: ContentLayoutDef, contentGroup: ContentGroup): Promise<void> {\r\n return internal.setActive(contentLayoutDef, contentGroup);\r\n }\r\n\r\n /** Sets the active Content Group.\r\n * @param contentGroup Content Group to make active\r\n */\r\n public static async setActiveContentGroup(contentGroup: ContentGroup): Promise<void> {\r\n return internal.setActiveContentGroup(contentGroup);\r\n }\r\n\r\n /** Refreshes the active layout and content group.\r\n */\r\n public static refreshActiveLayout(): void {\r\n return internal.refreshActive();\r\n }\r\n}\r\n\r\n"]}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module ContentView
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import { ContentControl } from "./ContentControl";
|
|
6
|
-
/** Content View Manager class.
|
|
7
|
-
* @public
|
|
8
|
-
* @deprecated in 3.7. Use `UiFramework.content` property
|
|
9
|
-
*/
|
|
10
|
-
export declare class ContentViewManager {
|
|
11
|
-
static get onMouseDownChangedEvent(): import("../framework/FrameworkContent").MouseDownChangedEvent;
|
|
12
|
-
/** Determines if the mouse is down in a content view */
|
|
13
|
-
static get isMouseDown(): boolean;
|
|
14
|
-
/** Sets the mouse down status for a content view */
|
|
15
|
-
static setMouseDown(mouseDown: boolean): void;
|
|
16
|
-
/** Gets the [[ActiveContentChangedEvent]] */
|
|
17
|
-
static get onActiveContentChangedEvent(): import("../framework/FrameworkContent").ActiveContentChangedEvent;
|
|
18
|
-
/** Fires when floating contents are added or removed */
|
|
19
|
-
static get onAvailableContentChangedEvent(): import("@itwin/appui-abstract").UiEvent<{
|
|
20
|
-
contentId: string;
|
|
21
|
-
}>;
|
|
22
|
-
/** Gets the active content as a React.ReactNode. */
|
|
23
|
-
static getActiveContent(): React.ReactNode | undefined;
|
|
24
|
-
/** Return the active ContentControl. */
|
|
25
|
-
static getActiveContentControl(): ContentControl | undefined;
|
|
26
|
-
static addFloatingContentControl(contentControl?: ContentControl): void;
|
|
27
|
-
static dropFloatingContentControl(contentControl?: ContentControl): void;
|
|
28
|
-
/** Sets the active [[ContentControl]] */
|
|
29
|
-
static setActiveContent(activeContent?: React.ReactNode, forceEventProcessing?: boolean): void;
|
|
30
|
-
/** Refreshes the active [[ContentControl]] */
|
|
31
|
-
static refreshActiveContent(activeContent: React.ReactNode): void;
|
|
32
|
-
/**
|
|
33
|
-
* Determines if content displays a Sheet view.
|
|
34
|
-
* @param content ContentControl to check
|
|
35
|
-
*/
|
|
36
|
-
static isContentSheetView(content: ContentControl | undefined): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Determines if content displays a Drawing view.
|
|
39
|
-
* @param content ContentControl to check
|
|
40
|
-
*/
|
|
41
|
-
static isContentDrawingView(content: ContentControl | undefined): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Determines if content displays a Spatial view.
|
|
44
|
-
* @param content ContentControl to check
|
|
45
|
-
*/
|
|
46
|
-
static isContentSpatialView(content: ContentControl | undefined): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Determines if content displays a Orthographic view.
|
|
49
|
-
* @param content ContentControl to check
|
|
50
|
-
*/
|
|
51
|
-
static isContentOrthographicView(content: ContentControl | undefined): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Determines if content displays a 3d view.
|
|
54
|
-
* @param content ContentControl to check
|
|
55
|
-
*/
|
|
56
|
-
static isContent3dView(content: ContentControl | undefined): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Determines if viewport supports use of a camera.
|
|
59
|
-
* @param content ContentControl to check
|
|
60
|
-
*/
|
|
61
|
-
static contentSupportsCamera(content: ContentControl | undefined): boolean;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=ContentViewManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentViewManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentViewManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,WAAkB,uBAAuB,kEAA+C;IAExF,wDAAwD;IACxD,WAAkB,WAAW,IAAI,OAAO,CAEvC;IAED,oDAAoD;WACtC,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAIpD,6CAA6C;IAC7C,WAAkB,2BAA2B,sEAAmD;IAEhG,wDAAwD;IAExD,WAAkB,8BAA8B;;OAAsD;IAEtG,oDAAoD;WACtC,gBAAgB,IAAI,KAAK,CAAC,SAAS,GAAG,SAAS;IAI7D,wCAAwC;WAC1B,uBAAuB,IAAI,cAAc,GAAG,SAAS;WAIrD,yBAAyB,CAAC,cAAc,CAAC,EAAE,cAAc;WAIzD,0BAA0B,CAAC,cAAc,CAAC,EAAE,cAAc;IAIxE,yCAAyC;WAC3B,gBAAgB,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,oBAAoB,UAAQ,GAAG,IAAI;IAInG,8CAA8C;WAChC,oBAAoB,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS;IAIjE;;;OAGG;WACW,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAI9E;;;OAGG;WACW,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAIhF;;;OAGG;WACW,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAIhF;;;OAGG;WACW,yBAAyB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAIrF;;;OAGG;WACW,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;IAI3E;;;OAGG;WACW,qBAAqB,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO;CAGlF"}
|