@deephaven/dashboard 0.15.2-beta.0 → 0.15.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Dashboard.d.ts +2 -2
- package/dist/Dashboard.d.ts.map +1 -1
- package/dist/Dashboard.js.map +1 -1
- package/dist/DashboardLayout.d.ts.map +1 -1
- package/dist/DashboardLayout.js +2 -2
- package/dist/DashboardLayout.js.map +1 -1
- package/dist/PanelErrorBoundary.d.ts +17 -30
- package/dist/PanelErrorBoundary.d.ts.map +1 -1
- package/dist/PanelErrorBoundary.js +1 -8
- package/dist/PanelErrorBoundary.js.map +1 -1
- package/dist/PanelEvent.d.ts +4 -1
- package/dist/PanelEvent.d.ts.map +1 -1
- package/dist/PanelEvent.js.map +1 -1
- package/dist/PanelManager.d.ts +9 -9
- package/dist/PanelManager.d.ts.map +1 -1
- package/dist/PanelManager.js +6 -7
- package/dist/PanelManager.js.map +1 -1
- package/dist/PanelPlaceholder.d.ts +5 -3
- package/dist/PanelPlaceholder.d.ts.map +1 -1
- package/dist/PanelPlaceholder.js +1 -1
- package/dist/PanelPlaceholder.js.map +1 -1
- package/dist/declaration.d.js +2 -0
- package/dist/declaration.d.js.map +1 -0
- package/dist/layout/GLPropTypes.d.ts +2 -2
- package/dist/layout/GLPropTypes.d.ts.map +1 -1
- package/dist/layout/GLPropTypes.js.map +1 -1
- package/dist/layout/GoldenLayoutThemeExport.d.ts +1 -1
- package/dist/layout/GoldenLayoutThemeExport.d.ts.map +1 -1
- package/dist/layout/GoldenLayoutThemeExport.js.map +1 -1
- package/dist/layout/LayoutUtils.d.ts +121 -103
- package/dist/layout/LayoutUtils.d.ts.map +1 -1
- package/dist/layout/LayoutUtils.js +159 -102
- package/dist/layout/LayoutUtils.js.map +1 -1
- package/dist/layout/ReactDOM.d.ts.map +1 -1
- package/dist/layout/ReactDOM.js.map +1 -1
- package/dist/layout/golden-layout.d.ts +6 -1
- package/dist/layout/golden-layout.d.ts.map +1 -1
- package/dist/layout/golden-layout.js.map +1 -1
- package/dist/layout/hooks.d.ts +0 -1
- package/dist/layout/hooks.d.ts.map +1 -1
- package/dist/layout/jquery.d.ts.map +1 -1
- package/dist/layout/jquery.js.map +1 -1
- package/dist/redux/actionTypes.d.ts +1 -1
- package/dist/redux/actionTypes.d.ts.map +1 -1
- package/dist/redux/actionTypes.js.map +1 -1
- package/dist/redux/actions.d.ts +17 -2
- package/dist/redux/actions.d.ts.map +1 -1
- package/dist/redux/actions.js +4 -4
- package/dist/redux/actions.js.map +1 -1
- package/dist/redux/reducers/dashboardData.d.ts +1 -1
- package/dist/redux/reducers/dashboardData.d.ts.map +1 -1
- package/dist/redux/reducers/dashboardData.js.map +1 -1
- package/dist/redux/reducers/index.d.ts +3 -4
- package/dist/redux/reducers/index.d.ts.map +1 -1
- package/dist/redux/reducers/index.js.map +1 -1
- package/dist/redux/selectors.d.ts +28 -4
- package/dist/redux/selectors.d.ts.map +1 -1
- package/dist/redux/selectors.js +10 -10
- package/dist/redux/selectors.js.map +1 -1
- package/package.json +11 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GLPropTypes.d.ts","sourceRoot":"","sources":["../../src/layout/GLPropTypes.
|
|
1
|
+
{"version":3,"file":"GLPropTypes.d.ts","sourceRoot":"","sources":["../../src/layout/GLPropTypes.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAkCnC,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiD,CAAC;AAEnE,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/layout/GLPropTypes.
|
|
1
|
+
{"version":3,"sources":["../../src/layout/GLPropTypes.ts"],"names":["PropTypes","Container","shape","on","func","off","isHidden","bool","tab","header","tabs","arrayOf","contentItem","title","string","setTitle","close","EventHub","emit","Layout","registerComponent","root","addChild","eventHub","GLPropT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mB,EAAAA,QAAQ,EAAEN;AALmB,CAAhB,CAAf;AAQA,IAAMO,WAAW,GAAGC,MAAM,CAACC,MAAP,CAAc;AAAEzB,EAAAA,SAAF;AAAagB,EAAAA,QAAb;AAAuBE,EAAAA;AAAvB,CAAd,CAApB;AAEA,eAAeK,WAAf","sourcesContent":["import PropTypes from 'prop-types';\n\nconst Container = PropTypes.shape({\n on: PropTypes.func,\n off: PropTypes.func,\n isHidden: PropTypes.bool,\n tab: PropTypes.shape({\n header: PropTypes.shape({\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n contentItem: PropTypes.shape({}),\n })\n ),\n }),\n }),\n title: PropTypes.string,\n setTitle: PropTypes.func,\n close: PropTypes.func,\n});\n\nconst EventHub = PropTypes.shape({\n on: PropTypes.func,\n off: PropTypes.func,\n emit: PropTypes.func,\n});\n\nconst Layout = PropTypes.shape({\n registerComponent: PropTypes.func,\n root: PropTypes.shape({ addChild: PropTypes.func }),\n on: PropTypes.func,\n off: PropTypes.func,\n eventHub: EventHub,\n});\n\nconst GLPropTypes = Object.freeze({ Container, EventHub, Layout });\n\nexport default GLPropTypes;\n"],"file":"GLPropTypes.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoldenLayoutThemeExport.d.ts","sourceRoot":"","sources":["../../src/layout/GoldenLayoutThemeExport.
|
|
1
|
+
{"version":3,"file":"GoldenLayoutThemeExport.d.ts","sourceRoot":"","sources":["../../src/layout/GoldenLayoutThemeExport.ts"],"names":[],"mappings":";;;;AAGA,wBAGG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/layout/GoldenLayoutThemeExport.
|
|
1
|
+
{"version":3,"sources":["../../src/layout/GoldenLayoutThemeExport.ts"],"names":["GoldenLayout","Object","freeze","tabHeight","parseInt","dragBorderWidth"],"mappings":"OAAOA,Y,mCAEP;;AACA,eAAeC,MAAM,CAACC,MAAP,CAAc;AAC3BC,EAAAA,SAAS,EAAEC,QAAQ,CAACJ,YAAY,CAAC,YAAD,CAAb,EAA6B,EAA7B,CADQ;AAE3BK,EAAAA,eAAe,EAAED,QAAQ,CAACJ,YAAY,CAAC,mBAAD,CAAb,EAAoC,EAApC;AAFE,CAAd,CAAf","sourcesContent":["import GoldenLayout from './GoldenLayout.module.scss';\n\n// parseInt for unitless values, stripping \"px\"\nexport default Object.freeze({\n tabHeight: parseInt(GoldenLayout['tab-height'], 10),\n dragBorderWidth: parseInt(GoldenLayout['drag-border-width'], 10),\n});\n"],"file":"GoldenLayoutThemeExport.js"}
|
|
@@ -1,61 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
import { DragEvent } from 'react';
|
|
2
|
+
import GoldenLayout, { Config, Container, ContentItem, ItemConfig, ItemConfigType, ReactComponentConfig, Tab } from '@deephaven/golden-layout';
|
|
3
|
+
import { DashboardLayoutConfig } from '../DashboardLayout';
|
|
4
|
+
import { PanelComponent, PanelConfig } from '../DashboardPlugin';
|
|
5
|
+
declare type LayoutConfig = {
|
|
6
|
+
id?: string;
|
|
7
|
+
component?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type StackItemConfig = ItemConfig & {
|
|
10
|
+
activeItemIndex?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function isReactComponentConfig(config: ItemConfigType): config is ReactComponentConfig;
|
|
2
13
|
declare class LayoutUtils {
|
|
3
14
|
static DEFAULT_FOCUS_SELECTOR: string;
|
|
4
|
-
static activateTab(root:
|
|
15
|
+
static activateTab(root: ContentItem, config: Partial<ItemConfigType>): void;
|
|
5
16
|
/**
|
|
6
17
|
* Is the tab with the given config active
|
|
7
|
-
* @param
|
|
8
|
-
* @param
|
|
9
|
-
* @returns
|
|
18
|
+
* @param root A GoldenLayout content item with the tab
|
|
19
|
+
* @param config Tab config to match
|
|
20
|
+
* @returns True if the tab is active
|
|
10
21
|
*/
|
|
11
|
-
static isActiveTab(root: ContentItem, config:
|
|
22
|
+
static isActiveTab(root: ContentItem, config: Config): boolean;
|
|
12
23
|
/**
|
|
13
24
|
* Adds a stack to the root layout specified. Adds to the first row/column with only one item
|
|
14
|
-
* @param
|
|
25
|
+
* @param parent A GoldenLayout content item to add the stack to
|
|
15
26
|
* @returns The newly created stack.
|
|
16
27
|
*/
|
|
17
|
-
static addStack(parent:
|
|
28
|
+
static addStack(parent: ContentItem, columnPreferred?: boolean): ContentItem;
|
|
18
29
|
/**
|
|
19
30
|
* Gets the first stack which contains a contentItem with the given config values
|
|
20
|
-
* @param
|
|
21
|
-
* @param
|
|
31
|
+
* @param item Golden layout content item to search for the stack
|
|
32
|
+
* @param config The item properties to match
|
|
22
33
|
*/
|
|
23
|
-
static getStackForConfig(item: ContentItem, config?:
|
|
34
|
+
static getStackForConfig(item: ContentItem, config?: Partial<ItemConfigType>, allowEmptyStack?: boolean): ContentItem | null;
|
|
24
35
|
/**
|
|
25
36
|
* Gets a stack matching the specified config
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
37
|
+
* @param root The root GoldenLayout element
|
|
38
|
+
* @param config The item config type to match, eg. { component: 'IrisGridPanel', title: 'Table Name' }
|
|
39
|
+
* @param createIfNecessary Whether to create the stack if it does not exist.
|
|
40
|
+
* @param matchComponentType If the config doesn't match exactly, just find another one of the same component type
|
|
41
|
+
* @param allowEmptyStack If no configs match, search for an empty stack that can be used
|
|
30
42
|
*/
|
|
31
|
-
static getStackForRoot(root:
|
|
43
|
+
static getStackForRoot(root: ContentItem, config: Partial<ReactComponentConfig>, createIfNecessary?: boolean, matchComponentType?: boolean, allowEmptyStack?: boolean): ContentItem | null;
|
|
32
44
|
/**
|
|
33
45
|
* Gets a stack matching one of the specified types, creates new stack if necessary
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
46
|
+
* @param root The GoldenLayout root to find or create the stack in
|
|
47
|
+
* @param types The array of component types to match
|
|
48
|
+
* @param createIfNecessary Whether to create the stack if it does not exist
|
|
49
|
+
* @param matchComponentType If the config doesn't match exactly, just find another one of the same component type
|
|
50
|
+
* @param allowEmptyStack If no configs match, search for an empty stack that can be used
|
|
39
51
|
*/
|
|
40
|
-
static getStackForComponentTypes(root: ContentItem, types:
|
|
52
|
+
static getStackForComponentTypes(root: ContentItem, types: string[], createIfNecessary?: boolean, matchComponentType?: boolean, allowEmptyStack?: boolean): ContentItem | null;
|
|
41
53
|
/**
|
|
42
54
|
* Gets first content item with the specified config in stack.
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @returns
|
|
55
|
+
* @param stack The stack to search for the item
|
|
56
|
+
* @param config The item config type to match, eg. { component: 'IrisGridPanel', title: 'Table Name' }
|
|
57
|
+
* @returns Returns the found content item, null if not found.
|
|
46
58
|
*/
|
|
47
|
-
static getContentItemInStack(stack: ContentItem, config:
|
|
59
|
+
static getContentItemInStack(stack: ContentItem | null, config: Partial<ItemConfigType>): ContentItem | null;
|
|
48
60
|
/**
|
|
49
61
|
* Removes dynamic props from components in the given config so this config could be serialized
|
|
50
|
-
* @param
|
|
51
|
-
* @
|
|
52
|
-
* @returns {Array} Dehydrated config
|
|
62
|
+
* @param config Config objec
|
|
63
|
+
* @returns Dehydrated config
|
|
53
64
|
*/
|
|
54
|
-
static dehydrateLayoutConfig(config:
|
|
55
|
-
static getTabPoint(glContainer:
|
|
65
|
+
static dehydrateLayoutConfig(config: ItemConfigType[], dehydrateComponent: (componentName: string, config: ItemConfigType) => PanelConfig): (PanelConfig | ItemConfig)[];
|
|
66
|
+
static getTabPoint(glContainer: Container): [number, number];
|
|
56
67
|
/**
|
|
57
68
|
* Drop minor changes in Layout Configuration for deep comparison
|
|
58
|
-
* @param
|
|
69
|
+
* @param config Layout Configuration
|
|
59
70
|
*
|
|
60
71
|
* minor changes:
|
|
61
72
|
* 1. sorts in grid
|
|
@@ -64,125 +75,132 @@ declare class LayoutUtils {
|
|
|
64
75
|
*
|
|
65
76
|
* item id is also removed
|
|
66
77
|
*/
|
|
67
|
-
static dropLayoutMinorChange(config:
|
|
78
|
+
static dropLayoutMinorChange(config: DashboardLayoutConfig): void;
|
|
68
79
|
/**
|
|
69
80
|
* Compare two layouts to see if they are equivalent
|
|
70
|
-
* @param
|
|
71
|
-
* @param
|
|
72
|
-
* @param
|
|
81
|
+
* @param layout1 A Golden Layout config object
|
|
82
|
+
* @param layout2 Another Golden layout config object
|
|
83
|
+
* @param major When true, will ignore "minor" property differences (eg. sorts)
|
|
73
84
|
*/
|
|
74
|
-
static isEqual(layout1:
|
|
75
|
-
static cloneLayout(layout:
|
|
85
|
+
static isEqual(layout1: DashboardLayoutConfig, layout2: DashboardLayoutConfig, major?: boolean): boolean;
|
|
86
|
+
static cloneLayout(layout: DashboardLayoutConfig): DashboardLayoutConfig;
|
|
76
87
|
/**
|
|
77
88
|
* Adds dynamic props to components in the given config so this config could be used to initialize a layout
|
|
78
|
-
* @param
|
|
79
|
-
* @param
|
|
80
|
-
* @returns
|
|
89
|
+
* @param config Dehydrated config object
|
|
90
|
+
* @param hydrateComponent Function to hydrate the component
|
|
91
|
+
* @returns Hydrated config
|
|
81
92
|
*/
|
|
82
|
-
static hydrateLayoutConfig(config:
|
|
93
|
+
static hydrateLayoutConfig(config: (PanelConfig | ItemConfig)[], hydrateComponent: (componentName: string, config: PanelConfig | ItemConfig) => ReactComponentConfig): DashboardLayoutConfig;
|
|
83
94
|
/**
|
|
84
95
|
* Opens a component. It will try and open the component in an existing stack of the same component.
|
|
85
96
|
* If `replaceExisting` is true and there is a component found with the same `config.id`, it will replace that component with this one.
|
|
86
97
|
* If `allowStack` is true and there is a component of the same type found, it will open in that stack (potentially covering up a panel).
|
|
87
|
-
* @param
|
|
88
|
-
* @param
|
|
89
|
-
* @param
|
|
90
|
-
* @param
|
|
91
|
-
* @param
|
|
92
|
-
* @param
|
|
93
|
-
* @param
|
|
94
|
-
*/
|
|
95
|
-
static openComponent({ root, config: configParam, replaceExisting, replaceConfig, createNewStack, focusElement, dragEvent, }?:
|
|
98
|
+
* @param root The GoldenLayout root to open the component in
|
|
99
|
+
* @param config The component config definition to open
|
|
100
|
+
* @param replaceExisting Whether it should replace the existing one matching component type and id, or open a new one
|
|
101
|
+
* @param replaceConfig The component config to replace
|
|
102
|
+
* @param createNewStack True to force opening in a new stack, false to try and open in a stack with the same type of component.
|
|
103
|
+
* @param focusElement The element to focus on
|
|
104
|
+
* @param dragEvent Whether component is being created with a drag, mouse event is initial position for drag proxy
|
|
105
|
+
*/
|
|
106
|
+
static openComponent({ root, config: configParam, replaceExisting, replaceConfig, createNewStack, focusElement, dragEvent, }?: {
|
|
107
|
+
root?: ContentItem;
|
|
108
|
+
config?: ReactComponentConfig;
|
|
109
|
+
replaceExisting?: boolean;
|
|
110
|
+
replaceConfig?: Partial<ItemConfigType>;
|
|
111
|
+
createNewStack?: boolean;
|
|
112
|
+
focusElement?: string;
|
|
113
|
+
dragEvent?: DragEvent;
|
|
114
|
+
}): void;
|
|
96
115
|
/**
|
|
97
116
|
* Opens a component in an given stack.
|
|
98
117
|
* If `replaceExisting` is true and there is a component found with the same `config.id`, it will replace that component with this one
|
|
99
|
-
* @param
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
118
|
+
* @param stack The GoldenLayout stack to open the component in
|
|
119
|
+
* @param config The component config definition to open
|
|
120
|
+
* @param replaceExisting Whether it should replace the existing one matching component type and id, or open a new one
|
|
102
121
|
*/
|
|
103
|
-
static openComponentInStack(stack: ContentItem, config:
|
|
122
|
+
static openComponentInStack(stack: ContentItem | null, config: ItemConfigType, replaceExisting?: boolean): void;
|
|
104
123
|
/**
|
|
105
124
|
* Close the specified component and remove it from the stack it's currently in
|
|
106
|
-
* @param
|
|
107
|
-
* @param
|
|
125
|
+
* @param root The GoldenLayout root to search and close the component in
|
|
126
|
+
* @param config The GoldenLayout component config definition to close, eg. { component: 'IrisGridPanel', id: 'table-t' }
|
|
108
127
|
*/
|
|
109
|
-
static closeComponent(root: ContentItem, config:
|
|
110
|
-
static renameComponent(root:
|
|
128
|
+
static closeComponent(root: ContentItem, config: LayoutConfig): void;
|
|
129
|
+
static renameComponent(root: ContentItem, config: Partial<ItemConfigType>, newTitle: string): void;
|
|
111
130
|
/**
|
|
112
131
|
* Create a component clone based on the given config
|
|
113
|
-
* @param
|
|
114
|
-
* @param
|
|
115
|
-
* @returns
|
|
132
|
+
* @param root The GoldenLayout root to clone the component in
|
|
133
|
+
* @param config The config to clone
|
|
134
|
+
* @returns Clone config
|
|
116
135
|
*/
|
|
117
|
-
static cloneComponent(root: ContentItem, config:
|
|
136
|
+
static cloneComponent(root: ContentItem, config: ReactComponentConfig): ReactComponentConfig | null;
|
|
118
137
|
/**
|
|
119
138
|
* Get panel component state for the given config
|
|
120
|
-
* @param
|
|
121
|
-
* @returns
|
|
122
|
-
*/
|
|
123
|
-
static getPanelComponentState(config:
|
|
124
|
-
static makeDefaultLayout():
|
|
125
|
-
dimensions: {
|
|
126
|
-
headerHeight: number;
|
|
127
|
-
borderWidth: number;
|
|
128
|
-
borderGrabWidth: number;
|
|
129
|
-
};
|
|
130
|
-
settings: {
|
|
131
|
-
showPopoutIcon: boolean;
|
|
132
|
-
showCloseIcon: boolean;
|
|
133
|
-
constrainDragToContainer: boolean;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
139
|
+
* @param config Panel config
|
|
140
|
+
* @returns Panel state
|
|
141
|
+
*/
|
|
142
|
+
static getPanelComponentState(config: ItemConfigType): unknown;
|
|
143
|
+
static makeDefaultLayout(): Config;
|
|
136
144
|
/**
|
|
137
145
|
* Gets a containers root node
|
|
138
|
-
* @param
|
|
146
|
+
* @param container The Golden Layout container to get the root for
|
|
139
147
|
*/
|
|
140
|
-
static getRootFromContainer(container:
|
|
148
|
+
static getRootFromContainer(container: Container): ContentItem;
|
|
141
149
|
/**
|
|
142
150
|
* Gets the config for the panel component given a glContainer
|
|
143
|
-
* @param
|
|
151
|
+
* @param container The Golden Layout container to get the config for
|
|
144
152
|
*/
|
|
145
|
-
static getComponentConfigFromContainer(container
|
|
146
|
-
static getTitleFromContainer(container:
|
|
147
|
-
static getTitleFromTab(tab:
|
|
153
|
+
static getComponentConfigFromContainer(container?: Container): ItemConfigType | null;
|
|
154
|
+
static getTitleFromContainer(container: Container): string | null | undefined;
|
|
155
|
+
static getTitleFromTab(tab: Tab): string | null | undefined;
|
|
148
156
|
/**
|
|
149
157
|
* Retrieve the panel ID for the provided golden layout container
|
|
150
|
-
* @param
|
|
151
|
-
* @returns
|
|
158
|
+
* @param glContainer The container to get the panel ID for
|
|
159
|
+
* @returns Panel ID
|
|
152
160
|
*/
|
|
153
|
-
static getIdFromContainer(glContainer:
|
|
161
|
+
static getIdFromContainer(glContainer: Container): string | string[] | null | undefined;
|
|
154
162
|
/**
|
|
155
163
|
* Retrieve the ID of the panel provided
|
|
156
|
-
* @param
|
|
157
|
-
* @returns
|
|
164
|
+
* @param panel The panel to get the ID for
|
|
165
|
+
* @returns Panel ID
|
|
158
166
|
*/
|
|
159
|
-
static getIdFromPanel(panel:
|
|
167
|
+
static getIdFromPanel(panel: PanelComponent): string | string[] | null | undefined;
|
|
160
168
|
/**
|
|
161
169
|
* Get component name from the panel instance
|
|
162
|
-
* @param
|
|
163
|
-
* @returns
|
|
170
|
+
* @param panel Panel to get component name for
|
|
171
|
+
* @returns Component name or null if unable to retrieve name
|
|
164
172
|
*/
|
|
165
|
-
static getComponentNameFromPanel(panel:
|
|
173
|
+
static getComponentNameFromPanel(panel: {
|
|
174
|
+
props: {
|
|
175
|
+
glContainer: GoldenLayout.Container;
|
|
176
|
+
};
|
|
177
|
+
}): string | null;
|
|
166
178
|
/**
|
|
167
179
|
* Get component name for wrapped and un-wrapped components
|
|
168
|
-
* @param
|
|
169
|
-
* @returns
|
|
180
|
+
* @param component Component to get name for
|
|
181
|
+
* @returns Component name
|
|
170
182
|
* @throws If displayName for the component is not defined
|
|
171
183
|
*/
|
|
172
|
-
static getComponentName(component:
|
|
184
|
+
static getComponentName(component: {
|
|
185
|
+
displayName?: string;
|
|
186
|
+
WrappedComponent?: {
|
|
187
|
+
displayName: string;
|
|
188
|
+
};
|
|
189
|
+
}): string;
|
|
173
190
|
/**
|
|
174
191
|
* Put focus on the first "input" element (input, button, select, textarea) within an element
|
|
175
192
|
* If element is null or input element not found, does nothing
|
|
176
|
-
* @param
|
|
177
|
-
* @param
|
|
178
|
-
* @returns
|
|
193
|
+
* @param element The element to put focus in.
|
|
194
|
+
* @param selector The first element matching this selector will be focused.
|
|
195
|
+
* @returns The element that was focused, null if not focused
|
|
179
196
|
*/
|
|
180
|
-
static focusElement(element:
|
|
197
|
+
static focusElement(element: Element, selector?: string): Element | null;
|
|
181
198
|
/**
|
|
182
199
|
* Get a promise that initializes when layout is initialized
|
|
183
|
-
* @param
|
|
200
|
+
* @param layout The layout to await initialization on
|
|
184
201
|
* @returns Promise that resolves when layout is initialized
|
|
185
202
|
*/
|
|
186
|
-
static onInitialized(layout: GoldenLayout): Promise<
|
|
203
|
+
static onInitialized(layout: GoldenLayout): Promise<void>;
|
|
187
204
|
}
|
|
205
|
+
export default LayoutUtils;
|
|
188
206
|
//# sourceMappingURL=LayoutUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutUtils.d.ts","sourceRoot":"","sources":["../../src/layout/LayoutUtils.
|
|
1
|
+
{"version":3,"file":"LayoutUtils.d.ts","sourceRoot":"","sources":["../../src/layout/LayoutUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,YAAY,EAAE,EAEnB,MAAM,EACN,SAAS,EACT,WAAW,EACX,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,GAAG,EACJ,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjE,aAAK,YAA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