@openfin/core 36.80.10 → 36.80.23

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.
@@ -1178,9 +1178,14 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1178
1178
  */
1179
1179
  mainWindowOptions: WindowCreationOptions;
1180
1180
  /**
1181
- * The name of the application (and the application's main window).
1181
+ * The name of the application.
1182
1182
  *
1183
- * If provided, _must_ match `uuid`.
1183
+ * @remarks
1184
+ * This property is used for naming the application logging folder, which will be sanitized to remove
1185
+ * any special characters, spaces or international characters. It's also used in error messages, API
1186
+ * security dialog boxes and in the directory name in %localappdata%/OpenFin/apps/<name><hash>.
1187
+ *
1188
+ * This property will be deprecated in the future.
1184
1189
  */
1185
1190
  name: string;
1186
1191
  /**
@@ -1210,9 +1215,7 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1210
1215
  url: string;
1211
1216
  /**
1212
1217
  * The _Unique Universal Identifier_ (UUID) of the application, unique within the set of all other applications
1213
- * running in the OpenFin Runtime.
1214
- *
1215
- * Note that `name` and `uuid` must match.
1218
+ * running in the OpenFin Runtime.
1216
1219
  */
1217
1220
  uuid: string;
1218
1221
  /**
@@ -1975,48 +1978,6 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
1975
1978
  behavior: 'browser';
1976
1979
  };
1977
1980
 
1978
- declare interface BrowserWindow {
1979
- /**
1980
- * True if the window has been opened and its GoldenLayout instance initialised.
1981
- */
1982
- isInitialised: boolean;
1983
-
1984
- /**
1985
- * Creates a window configuration object from the Popout.
1986
- */
1987
- toConfig(): {
1988
- dimensions: {
1989
- width: number;
1990
- height: number;
1991
- left: number;
1992
- top: number;
1993
- };
1994
- content: Config;
1995
- parentId: string;
1996
- indexInParent: number;
1997
- };
1998
-
1999
- /**
2000
- * Returns the GoldenLayout instance from the child window
2001
- */
2002
- getGlInstance(): GoldenLayout_2;
2003
-
2004
- /**
2005
- * Returns the native Window object
2006
- */
2007
- getWindow(): Window;
2008
-
2009
- /**
2010
- * Closes the popout
2011
- */
2012
- close(): void;
2013
-
2014
- /**
2015
- * Returns the popout to its original position as specified in parentId and indexInParent
2016
- */
2017
- popIn(): void;
2018
- }
2019
-
2020
1981
  /**
2021
1982
  * Extracts a single event type matching the given key from the View {@link Event} union.
2022
1983
  *
@@ -3436,31 +3397,6 @@ declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible
3436
3397
  close(): Promise<void>;
3437
3398
  }
3438
3399
 
3439
- declare interface ComponentConfig extends ItemConfig {
3440
- /**
3441
- * The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
3442
- */
3443
- componentName: string;
3444
-
3445
- /**
3446
- * A serialisable object. Will be passed to the component constructor function and will be the value returned by
3447
- * container.getState().
3448
- */
3449
- componentState?: any;
3450
- }
3451
-
3452
- declare interface Config {
3453
- settings?: Settings;
3454
- dimensions?: Dimensions;
3455
- labels?: Labels;
3456
- content?: ItemConfigType[];
3457
- /**
3458
- * (Only on layout config object)
3459
- * Id of the currently maximised content item
3460
- */
3461
- maximisedItemId?: string;
3462
- }
3463
-
3464
3400
  declare type ConfigWithRuntime = BaseConfig & {
3465
3401
  runtime: RuntimeConfig;
3466
3402
  };
@@ -3838,103 +3774,6 @@ declare type ConstWindowOptions = {
3838
3774
  inheritance?: Partial<InheritableOptions>;
3839
3775
  };
3840
3776
 
3841
- declare interface Container extends EventEmitter_2 {
3842
- /**
3843
- * The current width of the container in pixel
3844
- */
3845
- width: number;
3846
-
3847
- /**
3848
- * The current height of the container in pixel
3849
- */
3850
- height: number;
3851
-
3852
- /**
3853
- * A reference to the component-item that controls this container
3854
- */
3855
- parent: ContentItem;
3856
-
3857
- /**
3858
- * A reference to the tab that controls this container. Will initially be null
3859
- * (and populated once a tab event has been fired).
3860
- */
3861
- tab: Tab;
3862
-
3863
- /**
3864
- * The current title of the container
3865
- */
3866
- title: string;
3867
-
3868
- /*
3869
- * A reference to the GoldenLayout instance this container belongs to
3870
- */
3871
- layoutManager: GoldenLayout_2;
3872
-
3873
- /**
3874
- * True if the item is currently hidden
3875
- */
3876
- isHidden: boolean;
3877
-
3878
- /**
3879
- * Overwrites the components state with the provided value. To only change parts of the componentState see
3880
- * extendState below. This is the main mechanism for saving the state of a component. This state will be the
3881
- * value of componentState when layout.toConfig() is called and will be passed back to the component's
3882
- * constructor function. It will also be used when the component is opened in a new window.
3883
- * @param state A serialisable object
3884
- */
3885
- setState(state: any): void;
3886
-
3887
- /**
3888
- * The same as setState but does not emit 'stateChanged' event
3889
- * @param {serialisable} state
3890
- */
3891
- setStateSkipEvent(state: any): void;
3892
-
3893
- /**
3894
- * This is similar to setState, but merges the provided state into the current one, rather than overwriting it.
3895
- * @param state A serialisable object
3896
- */
3897
- extendState(state: any): void;
3898
-
3899
- /**
3900
- * Returns the current state.
3901
- */
3902
- getState(): any;
3903
-
3904
- /**
3905
- * Returns the container's inner element as a jQuery element
3906
- */
3907
- getElement(): JQuery;
3908
-
3909
- /**
3910
- * hides the container or returns false if hiding it is not possible
3911
- */
3912
- hide(): boolean;
3913
-
3914
- /**
3915
- * shows the container or returns false if showing it is not possible
3916
- */
3917
- show(): boolean;
3918
-
3919
- /**
3920
- * Sets the container to the specified size or returns false if that's not possible
3921
- * @param width the new width in pixel
3922
- * @param height the new height in pixel
3923
- */
3924
- setSize(width: number, height: number): boolean;
3925
-
3926
- /**
3927
- * Sets the item's title to the provided value. Triggers titleChanged and stateChanged events
3928
- * @param title the new title
3929
- */
3930
- setTitle(title: string): void;
3931
-
3932
- /**
3933
- * Closes the container or returns false if that is not possible
3934
- */
3935
- close(): boolean;
3936
- }
3937
-
3938
3777
  declare type ContentCreationBehavior = 'window' | 'view' | 'block' | 'browser';
3939
3778
 
3940
3779
  /**
@@ -3997,218 +3836,6 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3997
3836
  disposition: string;
3998
3837
  };
3999
3838
 
4000
- declare interface ContentItem extends EventEmitter_2 {
4001
- instance: any;
4002
- header: any;
4003
- _splitter: any;
4004
- /**
4005
- * This items configuration in its current state
4006
- */
4007
- config: ItemConfigType;
4008
-
4009
- /**
4010
- * The type of the item. Can be row, column, stack, component or root
4011
- */
4012
- type: ItemType;
4013
-
4014
- /**
4015
- * An array of items that are children of this item
4016
- */
4017
- contentItems: ContentItem[];
4018
-
4019
- container: Container;
4020
- /**
4021
- * The item that is this item's parent (or null if the item is root)
4022
- */
4023
- parent: ContentItem;
4024
-
4025
- /**
4026
- * A String or array of identifiers if provided in the configuration
4027
- */
4028
- id: string;
4029
-
4030
- /**
4031
- * True if the item had been initialised
4032
- */
4033
- isInitialised: boolean;
4034
-
4035
- /**
4036
- * True if the item is maximised
4037
- */
4038
- isMaximised: boolean;
4039
-
4040
- /**
4041
- * True if the item is the layout's root item
4042
- */
4043
- isRoot: boolean;
4044
-
4045
- /**
4046
- * True if the item is a row
4047
- */
4048
- isRow: boolean;
4049
-
4050
- /**
4051
- * True if the item is a column
4052
- */
4053
- isColumn: boolean;
4054
-
4055
- /**
4056
- * True if the item is a stack
4057
- */
4058
- isStack: boolean;
4059
-
4060
- /**
4061
- * True if the item is a component
4062
- */
4063
- isComponent: boolean;
4064
-
4065
- /**
4066
- * A reference to the layoutManager that controls this item
4067
- */
4068
- layoutManager: any;
4069
-
4070
- /**
4071
- * The item's outer element
4072
- */
4073
- element: JQuery;
4074
-
4075
- /**
4076
- * The item's inner element. Can be the same as the outer element.
4077
- */
4078
- childElementContainer: Container;
4079
-
4080
- /**
4081
- * Adds an item as a child to this item. If the item is already a part of a layout it will be removed
4082
- * from its original position before adding it to this item.
4083
- * @param itemOrItemConfig A content item (or tree of content items) or an ItemConfiguration to create the item from
4084
- * @param index last index An optional index that determines at which position the new item should be added. Default: last index.
4085
- */
4086
- addChild(itemOrItemConfig: ContentItem | ItemConfigType, index?: number): void;
4087
-
4088
- /**
4089
- * Destroys the item and all it's children
4090
- * @param contentItem The contentItem that should be removed
4091
- * @param keepChild If true the item won't be destroyed. (Use cautiosly, if the item isn't destroyed it's up to you to destroy it later). Default: false.
4092
- */
4093
- removeChild(contentItem: ContentItem, keepChild?: boolean): void;
4094
-
4095
- /**
4096
- * The contentItem that should be removed
4097
- * @param oldChild ContentItem The contentItem that should be removed
4098
- * @param newChild A content item (or tree of content items) or an ItemConfiguration to create the item from
4099
- */
4100
- replaceChild(oldChild: ContentItem, newChild: ContentItem | ItemConfigType): void;
4101
-
4102
- /**
4103
- * Updates the items size. To actually assign a new size from within a component, use container.setSize( width, height )
4104
- */
4105
- setSize(): void;
4106
-
4107
- /**
4108
- * Sets the item's title to the provided value. Triggers titleChanged and stateChanged events
4109
- * @param title the new title
4110
- */
4111
- setTitle(title: string): void;
4112
-
4113
- /**
4114
- * A powerful, yet admittedly confusing method to recursively call methods on items in a tree. Usually you wouldn't need
4115
- * to use it directly, but it's used internally to setSizes, destroy parts of the item tree etc.
4116
- * @param functionName The name of the method to invoke
4117
- * @param functionArguments An array of arguments to pass to every function
4118
- * @param bottomUp If true, the method is invoked on the lowest parts of the tree first and then bubbles upwards. Default: false
4119
- * @param skipSelf If true, the method will only be invoked on the item's children, but not on the item itself. Default: false
4120
- */
4121
- callDownwards(functionName: string, functionArguments?: any[], bottomUp?: boolean, skipSelf?: boolean): void;
4122
-
4123
- /**
4124
- * Emits an event that bubbles up the item tree until it reaches the root element (and after a delay the layout manager). Useful e.g. for indicating state changes.
4125
- */
4126
- emitBubblingEvent(name: string): void;
4127
-
4128
- /**
4129
- * Convenience method for item.parent.removeChild( item )
4130
- */
4131
- remove(): void;
4132
-
4133
- /**
4134
- * Removes the item from its current position in the layout and opens it in a window
4135
- */
4136
- popout(): BrowserWindow;
4137
-
4138
- /**
4139
- * Maximises the item or minimises it if it's already maximised
4140
- */
4141
- toggleMaximise(): void;
4142
-
4143
- /**
4144
- * Selects the item. Only relevant if settings.selectionEnabled is set to true
4145
- */
4146
- select(): void;
4147
-
4148
- /**
4149
- * Unselects the item. Only relevant if settings.selectionEnabled is set to true
4150
- */
4151
- deselect(): void;
4152
-
4153
- /**
4154
- * Returns true if the item has the specified id or false if not
4155
- * @param id An id to check for
4156
- */
4157
- hasId(id: string): boolean;
4158
-
4159
- /**
4160
- * Only Stacks have this method! It's the programmatical equivalent of clicking a tab.
4161
- * @param contentItem The new active content item
4162
- * @param preventFocus [OpenFin Custom] Indicates to openfin that the view should not be focused when activated.
4163
- */
4164
- // (CORE-198)[../docs/golden-layout-changelog.md#CORE-198 stack.setActiveView]
4165
- setActiveContentItem(contentItem: ContentItem, preventFocus?: boolean): void;
4166
-
4167
- /**
4168
- * Only Stacks have this method! Returns the currently selected contentItem.
4169
- */
4170
- getActiveContentItem(): ContentItem;
4171
-
4172
- /**
4173
- * Adds an id to an item or does nothing if the id is already present
4174
- * @param id The id to be added
4175
- */
4176
- addId(id: string): void;
4177
-
4178
- /**
4179
- * Removes an id from an item or throws an error if the id couldn't be found
4180
- * @param id The id to be removed
4181
- */
4182
- removeId(id: string): void;
4183
-
4184
- /**
4185
- * Calls filterFunction recursively for every item in the tree. If the function returns true the item is added to the resulting array
4186
- * @param filterFunction A function that determines whether an item matches certain criteria
4187
- */
4188
- getItemsByFilter(filterFunction: (contentItem: ContentItem) => boolean): ContentItem[];
4189
-
4190
- /**
4191
- * Returns all items with the specified id.
4192
- * @param id An id specified in the itemConfig
4193
- */
4194
- getItemsById(id: string | string[]): ContentItem[];
4195
-
4196
- /**
4197
- * Returns all items with the specified type
4198
- * @param type 'row', 'column', 'stack', 'component' or 'root'
4199
- */
4200
- getItemsByType(type: string): ContentItem[];
4201
-
4202
- /**
4203
- * Returns all instances of the component with the specified componentName
4204
- * @param componentName a componentName as specified in the itemConfig
4205
- */
4206
- getComponentsByName(componentName: string): any;
4207
-
4208
- _contentAreaDimensions: any;
4209
- _$getArea: () => any;
4210
- }
4211
-
4212
3839
  /**
4213
3840
  * Restrict navigation to URLs that match an allowed pattern.
4214
3841
  * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
@@ -4693,46 +4320,6 @@ declare type DidFinishLoadEvent = NamedEvent & {
4693
4320
  type: 'did-finish-load';
4694
4321
  };
4695
4322
 
4696
- declare interface Dimensions {
4697
- /**
4698
- * The width of the borders between the layout items in pixel. Please note: The actual draggable area is wider
4699
- * than the visible one, making it safe to set this to small values without affecting usability.
4700
- * Default: 5
4701
- */
4702
- borderWidth?: number;
4703
-
4704
- /**
4705
- * The minimum height an item can be resized to (in pixel).
4706
- * Default: 10
4707
- */
4708
- minItemHeight?: number;
4709
-
4710
- /**
4711
- * The minimum width an item can be resized to (in pixel).
4712
- * Default: 10
4713
- */
4714
- minItemWidth?: number;
4715
-
4716
- /**
4717
- * The height of the header elements in pixel. This can be changed, but your theme's header css needs to be
4718
- * adjusted accordingly.
4719
- * Default: 20
4720
- */
4721
- headerHeight?: number;
4722
-
4723
- /**
4724
- * The width of the element that appears when an item is dragged (in pixel).
4725
- * Default: 300
4726
- */
4727
- dragProxyWidth?: number;
4728
-
4729
- /**
4730
- * The height of the element that appears when an item is dragged (in pixel).
4731
- * Default: 200
4732
- */
4733
- dragProxyHeight?: number;
4734
- }
4735
-
4736
4323
  /**
4737
4324
  * @interface
4738
4325
  */
@@ -5029,8 +4616,6 @@ declare type Dpi = {
5029
4616
  vertical?: number;
5030
4617
  };
5031
4618
 
5032
- declare interface DragSource {}
5033
-
5034
4619
  /**
5035
4620
  * Generated when a window has been embedded.
5036
4621
  * @interface
@@ -5342,43 +4927,6 @@ declare class EventAggregator extends EmitterMap {
5342
4927
  dispatchEvent: (message: Message<any>) => boolean;
5343
4928
  }
5344
4929
 
5345
- declare interface EventEmitter_2 {
5346
- [x: string]: any;
5347
- /**
5348
- * Subscribe to an event
5349
- * @param eventName The name of the event to describe to
5350
- * @param callback The function that should be invoked when the event occurs
5351
- * @param context The value of the this pointer in the callback function
5352
- */
5353
- on(eventName: string, callback: Function, context?: any): void;
5354
-
5355
- /**
5356
- * Notify listeners of an event and pass arguments along
5357
- * @param eventName The name of the event to emit
5358
- */
5359
- emit(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5360
-
5361
- /**
5362
- * Alias for emit
5363
- */
5364
- trigger(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5365
-
5366
- /**
5367
- * Unsubscribes either all listeners if just an eventName is provided, just a specific callback if invoked with
5368
- * eventName and callback or just a specific callback with a specific context if invoked with all three
5369
- * arguments.
5370
- * @param eventName The name of the event to unsubscribe from
5371
- * @param callback The function that should be invoked when the event occurs
5372
- * @param context The value of the this pointer in the callback function
5373
- */
5374
- unbind(eventName: string, callback?: Function, context?: any): void;
5375
-
5376
- /**
5377
- * Alias for unbind
5378
- */
5379
- off(eventName: string, callback?: Function, context?: any): void;
5380
- }
5381
-
5382
4930
  /**
5383
4931
  * Handler for an event on an EventEmitter.
5384
4932
  * @remarks Selects the correct type for the event
@@ -6215,239 +5763,6 @@ declare namespace GlobalHotkeyEvents {
6215
5763
  */
6216
5764
  declare type GlobalHotkeyEventType = EventType_6;
6217
5765
 
6218
- declare namespace GoldenLayout {
6219
- export {
6220
- GoldenLayout_2 as GoldenLayout,
6221
- ItemConfigType,
6222
- Settings,
6223
- Dimensions,
6224
- Labels,
6225
- ItemType,
6226
- ItemConfig,
6227
- ComponentConfig,
6228
- ReactComponentConfig,
6229
- Config,
6230
- ContentItem,
6231
- Container,
6232
- DragSource,
6233
- BrowserWindow,
6234
- Header,
6235
- TabDragListener,
6236
- Tab,
6237
- EventEmitter_2 as EventEmitter
6238
- }
6239
- }
6240
-
6241
- declare class GoldenLayout_2 implements EventEmitter_2 {
6242
- /**
6243
- * The topmost item in the layout item tree. In browser terms: Think of the GoldenLayout instance as window
6244
- * object and of goldenLayout.root as the document.
6245
- */
6246
- root: ContentItem;
6247
-
6248
- /**
6249
- * A reference to the (jQuery) DOM element containing the layout
6250
- */
6251
- container: JQuery;
6252
-
6253
- /**
6254
- * True once the layout item tree has been created and the initialised event has been fired
6255
- */
6256
- isInitialised: boolean;
6257
-
6258
- /**
6259
- * A reference to the current, extended top level config.
6260
- *
6261
- * Don't rely on this object for state saving / serialisation. Use layout.toConfig() instead.
6262
- */
6263
- config: Config;
6264
-
6265
- /**
6266
- * The currently selected item or null if no item is selected. Only relevant if settings.selectionEnabled is set
6267
- * to true.
6268
- */
6269
- selectedItem: ContentItem;
6270
-
6271
- /**
6272
- * The current outer width of the layout in pixels.
6273
- */
6274
- width: number;
6275
-
6276
- /**
6277
- * The current outer height of the layout in pixels.
6278
- */
6279
- height: number;
6280
-
6281
- /**
6282
- * An array of BrowserWindow instances
6283
- */
6284
- openPopouts: BrowserWindow[];
6285
-
6286
- /**
6287
- * True if the layout has been opened as a popout by another layout.
6288
- */
6289
- isSubWindow: boolean;
6290
-
6291
- /**
6292
- * A singleton instance of EventEmitter that works across windows
6293
- */
6294
- eventHub: EventEmitter_2;
6295
-
6296
- _dragProxy: any;
6297
-
6298
- dropTargetIndicator: any;
6299
-
6300
- /**
6301
- * @param config A GoldenLayout configuration object
6302
- * @param container The DOM element the layout will be initialised in. Default: document.body
6303
- */
6304
- constructor(configuration: Config, container?: Element | HTMLElement | JQuery);
6305
-
6306
- /*
6307
- * @param name The name of the component, as referred to by componentName in the component configuration.
6308
- * @param component A constructor or factory function. Will be invoked with new and two arguments, a
6309
- * containerobject and a component state
6310
- */
6311
- registerComponent(name: String, component: any): void;
6312
-
6313
- /**
6314
- * Renders the layout into the container. If init() is called before the document is ready it attaches itself as
6315
- * a listener to the document and executes once it becomes ready.
6316
- */
6317
- init(): void;
6318
-
6319
- /**
6320
- * Returns the current state of the layout and its components as a serialisable object.
6321
- */
6322
- toConfig(): Config;
6323
-
6324
- /**
6325
- * Returns a component that was previously registered with layout.registerComponent().
6326
- * @param name The name of a previously registered component
6327
- */
6328
- getComponent(name: string): any;
6329
-
6330
- /**
6331
- * Resizes the layout. If no arguments are provided GoldenLayout measures its container and resizes accordingly.
6332
- * @param width The outer width the layout should be resized to. Default: The container elements width
6333
- * @param height The outer height the layout should be resized to. Default: The container elements height
6334
- */
6335
- updateSize(width?: number, height?: number): void;
6336
-
6337
- /**
6338
- * Destroys the layout. Recursively calls destroy on all components and content items, removes all event
6339
- * listeners and finally removes itself from the DOM.
6340
- */
6341
- destroy(): void;
6342
-
6343
- /**
6344
- * Creates a new content item or tree of content items from configuration. Usually you wouldn't call this
6345
- * directly, but instead use methods like layout.createDragSource(), item.addChild() or item.replaceChild() that
6346
- * all call this method implicitly.
6347
- * @param itemConfiguration An item configuration (can be an entire tree of items)
6348
- * @param parent A parent item
6349
- */
6350
- createContentItem(itemConfiguration?: ItemConfigType, parent?: ContentItem): ContentItem;
6351
-
6352
- /**
6353
- * Creates a new popout window with configOrContentItem as contents at the position specified in dimensions
6354
- * @param configOrContentItem The content item or config that will be created in the new window. If a item is
6355
- * provided its config will be read, if config is provided, only the content key
6356
- * will be used
6357
- * @param dimensions A map containing the keys left, top, width and height. Left and top can be negative to
6358
- * place the window in another screen.
6359
- * @param parentId The id of the item within the current layout the child window's content will be appended to
6360
- * when popIn is clicked
6361
- * @param indexInParent The index at which the child window's contents will be appended to. Default: null
6362
- */
6363
- createPopout(
6364
- configOrContentItem: ItemConfigType | ContentItem,
6365
- dimensions: {
6366
- width: number;
6367
- height: number;
6368
- left: number;
6369
- top: number;
6370
- },
6371
- parentId?: string,
6372
- indexInParent?: number
6373
- ): void;
6374
-
6375
- /**
6376
- * Turns a DOM element into a dragSource, meaning that the user can drag the element directly onto the layout
6377
- * where it turns into a contentItem.
6378
- * @param element The DOM element that will be turned into a dragSource
6379
- * @param itemConfiguration An item configuration (can be an entire tree of items)
6380
- * @return the dragSource that was created. This can be used to remove the
6381
- * dragSource from the layout later.
6382
- */
6383
- createDragSource(element: HTMLElement | JQuery, itemConfiguration: ItemConfigType): DragSource;
6384
-
6385
- /**
6386
- * Removes a dragSource from the layout.
6387
- *
6388
- * @param dragSource The dragSource to remove
6389
- */
6390
- removeDragSource(dragSource: DragSource): void;
6391
-
6392
- /**
6393
- * If settings.selectionEnabled is set to true, this allows to select items programmatically.
6394
- * @param contentItem A ContentItem instance
6395
- */
6396
- selectItem(contentItem: ContentItem): void;
6397
-
6398
- /**
6399
- * Static method on the GoldenLayout constructor! This method will iterate through a GoldenLayout config object
6400
- * and replace frequent keys and values with single letter substitutes.
6401
- * @param config A GoldenLayout configuration object
6402
- */
6403
- static minifyConfig(config: any): any;
6404
-
6405
- /**
6406
- * Static method on the GoldenLayout constructor! This method will reverse the minifications of minifyConfig.
6407
- * @param minifiedConfig A minified GoldenLayout configuration object
6408
- */
6409
- static unminifyConfig(minifiedConfig: any): any;
6410
-
6411
- /**
6412
- * Subscribe to an event
6413
- * @param eventName The name of the event to describe to
6414
- * @param callback The function that should be invoked when the event occurs
6415
- * @param context The value of the this pointer in the callback function
6416
- */
6417
- on(eventName: string, callback: Function, context?: any): void;
6418
-
6419
- /**
6420
- * Notify listeners of an event and pass arguments along
6421
- * @param eventName The name of the event to emit
6422
- */
6423
- emit(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
6424
-
6425
- /**
6426
- * Alias for emit
6427
- */
6428
- trigger(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
6429
-
6430
- /**
6431
- * Unsubscribes either all listeners if just an eventName is provided, just a specific callback if invoked with
6432
- * eventName and callback or just a specific callback with a specific context if invoked with all three
6433
- * arguments.
6434
- * @param eventName The name of the event to unsubscribe from
6435
- * @param callback The function that should be invoked when the event occurs
6436
- * @param context The value of the this pointer in the callback function
6437
- */
6438
- unbind(eventName: string, callback?: Function, context?: any): void;
6439
-
6440
- /**
6441
- * Alias for unbind
6442
- */
6443
- off(eventName: string, callback?: Function, context?: any): void;
6444
-
6445
- /**
6446
- * Internal method that create drop areas on the far edges of window, e.g. far-right of window
6447
- */
6448
- _$createRootItemAreas(): void;
6449
- }
6450
-
6451
5766
  /**
6452
5767
  * @interface
6453
5768
  */
@@ -6455,62 +5770,6 @@ declare type GpuInfo = {
6455
5770
  name: string;
6456
5771
  };
6457
5772
 
6458
- declare interface Header {
6459
- /**
6460
- * A reference to the LayoutManager instance
6461
- */
6462
- layoutManager: GoldenLayout_2;
6463
-
6464
- /**
6465
- * A reference to the Stack this Header belongs to
6466
- */
6467
- parent: ContentItem;
6468
-
6469
- /**
6470
- * An array of the Tabs within this header
6471
- */
6472
- tabs: Tab[];
6473
-
6474
- /**
6475
- * The currently selected activeContentItem
6476
- */
6477
- activeContentItem: ContentItem;
6478
-
6479
- /**
6480
- * The outer (jQuery) DOM element of this Header
6481
- */
6482
- element: JQuery;
6483
-
6484
- /**
6485
- * The (jQuery) DOM element containing the tabs
6486
- */
6487
- tabsContainer: JQuery;
6488
-
6489
- /**
6490
- * The (jQuery) DOM element containing the close, maximise and popout button
6491
- */
6492
- controlsContainer: JQuery;
6493
-
6494
- /**
6495
- * Hides the currently selected contentItem, shows the specified one and highlights its tab.
6496
- * @param contentItem The content item that will be selected
6497
- */
6498
- setActiveContentItem(contentItem: ContentItem): void;
6499
-
6500
- /**
6501
- * Creates a new tab and associates it with a content item
6502
- * @param contentItem The content item the tab will be associated with
6503
- * @param index A zero based index, specifying the position of the new tab
6504
- */
6505
- createTab(contentItem: ContentItem, index?: number): void;
6506
-
6507
- /**
6508
- * Finds a tab by its contentItem and removes it
6509
- * @param contentItem The content item the tab is associated with
6510
- */
6511
- removeTab(contentItem: ContentItem): void;
6512
- }
6513
-
6514
5773
  /**
6515
5774
  * Generated when a View is hidden.
6516
5775
  * @interface
@@ -8179,50 +7438,6 @@ declare class InteropModule extends Base {
8179
7438
  connectSync(name: string, interopConfig?: OpenFin_2.InteropConfig): InteropClient;
8180
7439
  }
8181
7440
 
8182
- declare interface ItemConfig {
8183
- /**
8184
- * The type of the item. Possible values are 'row', 'column', 'stack', 'component' and 'react-component'.
8185
- */
8186
- type: ItemType;
8187
-
8188
- /**
8189
- * An array of configurations for items that will be created as children of this item.
8190
- */
8191
- content?: ItemConfigType[];
8192
-
8193
- /**
8194
- * The width of this item, relative to the other children of its parent in percent
8195
- */
8196
- width?: number;
8197
-
8198
- /**
8199
- * The height of this item, relative to the other children of its parent in percent
8200
- */
8201
- height?: number;
8202
-
8203
- /**
8204
- * A String or an Array of Strings. Used to retrieve the item using item.getItemsById()
8205
- */
8206
- id?: string | string[];
8207
-
8208
- /**
8209
- * Determines if the item is closable. If false, the x on the items tab will be hidden and container.close()
8210
- * will return false
8211
- * Default: true
8212
- */
8213
- isClosable?: boolean;
8214
-
8215
- /**
8216
- * The title of the item as displayed on its tab and on popout windows
8217
- * Default: componentName or ''
8218
- */
8219
- title?: string;
8220
- }
8221
-
8222
- declare type ItemConfigType = ItemConfig | ComponentConfig | ReactComponentConfig;
8223
-
8224
- declare type ItemType = 'row' | 'column' | 'stack' | 'root' | 'component';
8225
-
8226
7441
  /**
8227
7442
  * @interface
8228
7443
  */
@@ -8280,32 +7495,6 @@ declare type JumpListTask = {
8280
7495
  iconIndex?: number;
8281
7496
  };
8282
7497
 
8283
- declare interface Labels {
8284
- /**
8285
- * The tooltip text that appears when hovering over the close icon.
8286
- * Default: 'close'
8287
- */
8288
- close?: string;
8289
-
8290
- /**
8291
- * The tooltip text that appears when hovering over the maximise icon.
8292
- * Default: 'maximise'
8293
- */
8294
- maximise?: string;
8295
-
8296
- /**
8297
- * The tooltip text that appears when hovering over the minimise icon.
8298
- * Default: 'minimise'
8299
- */
8300
- minimise?: string;
8301
-
8302
- /**
8303
- * The tooltip text that appears when hovering over the popout icon.
8304
- * Default: 'open in new window'
8305
- */
8306
- popout?: string;
8307
- }
8308
-
8309
7498
  /**
8310
7499
  * The LaunchEmitter is an `EventEmitter`. It can listen to app version resolver events.
8311
7500
  *
@@ -8731,7 +7920,7 @@ declare type LayoutEntityDefinition<TLayoutEntityType extends LayoutEntityTypes
8731
7920
  entityId: string;
8732
7921
  };
8733
7922
 
8734
- declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'root'>;
7923
+ declare type LayoutEntityTypes = 'column' | 'row' | 'stack';
8735
7924
 
8736
7925
  /**
8737
7926
  * @interface
@@ -12657,18 +11846,6 @@ declare type QueryPermissionResult = {
12657
11846
  rawValue?: unknown;
12658
11847
  };
12659
11848
 
12660
- declare interface ReactComponentConfig extends ItemConfig {
12661
- /**
12662
- * The name of the component as specified in layout.registerComponent. Mandatory if type is 'react-component'
12663
- */
12664
- component: string;
12665
-
12666
- /**
12667
- * Properties that will be passed to the component and accessible using this.props.
12668
- */
12669
- props?: any;
12670
- }
12671
-
12672
11849
  /**
12673
11850
  * @interface
12674
11851
  */
@@ -13175,97 +12352,6 @@ declare type SessionContextGroup = {
13175
12352
  }>;
13176
12353
  };
13177
12354
 
13178
- declare interface Settings {
13179
- preventSplitterResize?: boolean;
13180
-
13181
- newTabButton?: {
13182
- url?: string;
13183
- };
13184
-
13185
- /**
13186
- * If true, tabs can't be dragged into the window.
13187
- * Default: false
13188
- */
13189
- preventDragIn?: boolean;
13190
-
13191
- /**
13192
- * If true, tabs can't be dragged out of the window.
13193
- * Default: false
13194
- */
13195
- preventDragOut?: boolean;
13196
-
13197
- /**
13198
- * If true, stack headers are the only areas where tabs can be dropped.
13199
- * Default: false
13200
- */
13201
- constrainDragToHeaders?: boolean;
13202
- /**
13203
- * Turns headers on or off. If false, the layout will be displayed with splitters only.
13204
- * Default: true
13205
- */
13206
- hasHeaders?: boolean;
13207
-
13208
- /**
13209
- * (Unused in Openfin Platform) Constrains the area in which items can be dragged to the layout's container. Will be set to false
13210
- * automatically when layout.createDragSource() is called.
13211
- * Default: true
13212
- */
13213
- constrainDragToContainer?: boolean;
13214
-
13215
- /**
13216
- * If true, the user can re-arrange the layout by dragging items by their tabs to the desired location.
13217
- * Default: true
13218
- */
13219
- reorderEnabled?: boolean;
13220
-
13221
- /**
13222
- * If true, the user can select items by clicking on their header. This sets the value of layout.selectedItem to
13223
- * the clicked item, highlights its header and the layout emits a 'selectionChanged' event.
13224
- * Default: false
13225
- */
13226
- selectionEnabled?: boolean;
13227
-
13228
- /**
13229
- * Decides what will be opened in a new window if the user clicks the popout icon. If true the entire stack will
13230
- * be transferred to the new window, if false only the active component will be opened.
13231
- * Default: false
13232
- */
13233
- popoutWholeStack?: boolean;
13234
-
13235
- /**
13236
- * Specifies if an error is thrown when a popout is blocked by the browser (e.g. by opening it programmatically).
13237
- * If false, the popout call will fail silently.
13238
- * Default: true
13239
- */
13240
- blockedPopoutsThrowError?: boolean;
13241
-
13242
- /**
13243
- * Specifies if all popouts should be closed when the page that created them is closed. Popouts don't have a
13244
- * strong dependency on their parent and can exist on their own, but can be quite annoying to close by hand. In
13245
- * addition, any changes made to popouts won't be stored after the parent is closed.
13246
- * Default: true
13247
- */
13248
- closePopoutsOnUnload?: boolean;
13249
-
13250
- /**
13251
- * Specifies if the popout icon should be displayed in the header-bar.
13252
- * Default: true
13253
- */
13254
- showPopoutIcon?: boolean;
13255
-
13256
- /**
13257
- * Specifies if the maximise icon should be displayed in the header-bar.
13258
- * Default: true
13259
- */
13260
- showMaximiseIcon?: boolean;
13261
-
13262
- /**
13263
- * Specifies if the close icon should be displayed in the header-bar.
13264
- * Default: true
13265
- */
13266
- showCloseIcon?: boolean;
13267
- }
13268
-
13269
12355
  /**
13270
12356
  * @interface
13271
12357
  */
@@ -15162,59 +14248,6 @@ declare type SystemShutdownHandler = (shutdownEvent: {
15162
14248
  proceed: () => void;
15163
14249
  }) => void;
15164
14250
 
15165
- declare interface Tab {
15166
- _dragListener: TabDragListener;
15167
-
15168
- /**
15169
- * True if this tab is the selected tab
15170
- */
15171
- isActive: boolean;
15172
-
15173
- /**
15174
- * A reference to the header this tab is a child of
15175
- */
15176
- header: Header;
15177
-
15178
- /**
15179
- * A reference to the content item this tab relates to
15180
- */
15181
- contentItem: ContentItem;
15182
-
15183
- /**
15184
- * The tabs outer (jQuery) DOM element
15185
- */
15186
- element: JQuery;
15187
-
15188
- /**
15189
- * The (jQuery) DOM element containing the title
15190
- */
15191
- titleElement: JQuery;
15192
-
15193
- /**
15194
- * The (jQuery) DOM element that closes the tab
15195
- */
15196
- closeElement: JQuery;
15197
-
15198
- /**
15199
- * Sets the tab's title. Does not affect the contentItem's title!
15200
- * @param title The new title
15201
- */
15202
- setTitle(title: string): void;
15203
-
15204
- /**
15205
- * Sets this tab's active state. To programmatically switch tabs, use header.setActiveContentItem( item ) instead.
15206
- * @param isActive Whether the tab is active
15207
- */
15208
- setActive(isActive: boolean): void;
15209
- }
15210
-
15211
- declare interface TabDragListener extends EventEmitter_2 {
15212
- /**
15213
- * A reference to the content item this tab relates to
15214
- */
15215
- contentItem: ContentItem;
15216
- }
15217
-
15218
14251
  /**
15219
14252
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
15220
14253
  */