@openfin/node-adapter 36.80.11 → 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
  };
@@ -3842,103 +3778,6 @@ declare type ConstWindowOptions = {
3842
3778
  inheritance?: Partial<InheritableOptions>;
3843
3779
  };
3844
3780
 
3845
- declare interface Container extends EventEmitter_2 {
3846
- /**
3847
- * The current width of the container in pixel
3848
- */
3849
- width: number;
3850
-
3851
- /**
3852
- * The current height of the container in pixel
3853
- */
3854
- height: number;
3855
-
3856
- /**
3857
- * A reference to the component-item that controls this container
3858
- */
3859
- parent: ContentItem;
3860
-
3861
- /**
3862
- * A reference to the tab that controls this container. Will initially be null
3863
- * (and populated once a tab event has been fired).
3864
- */
3865
- tab: Tab;
3866
-
3867
- /**
3868
- * The current title of the container
3869
- */
3870
- title: string;
3871
-
3872
- /*
3873
- * A reference to the GoldenLayout instance this container belongs to
3874
- */
3875
- layoutManager: GoldenLayout_2;
3876
-
3877
- /**
3878
- * True if the item is currently hidden
3879
- */
3880
- isHidden: boolean;
3881
-
3882
- /**
3883
- * Overwrites the components state with the provided value. To only change parts of the componentState see
3884
- * extendState below. This is the main mechanism for saving the state of a component. This state will be the
3885
- * value of componentState when layout.toConfig() is called and will be passed back to the component's
3886
- * constructor function. It will also be used when the component is opened in a new window.
3887
- * @param state A serialisable object
3888
- */
3889
- setState(state: any): void;
3890
-
3891
- /**
3892
- * The same as setState but does not emit 'stateChanged' event
3893
- * @param {serialisable} state
3894
- */
3895
- setStateSkipEvent(state: any): void;
3896
-
3897
- /**
3898
- * This is similar to setState, but merges the provided state into the current one, rather than overwriting it.
3899
- * @param state A serialisable object
3900
- */
3901
- extendState(state: any): void;
3902
-
3903
- /**
3904
- * Returns the current state.
3905
- */
3906
- getState(): any;
3907
-
3908
- /**
3909
- * Returns the container's inner element as a jQuery element
3910
- */
3911
- getElement(): JQuery;
3912
-
3913
- /**
3914
- * hides the container or returns false if hiding it is not possible
3915
- */
3916
- hide(): boolean;
3917
-
3918
- /**
3919
- * shows the container or returns false if showing it is not possible
3920
- */
3921
- show(): boolean;
3922
-
3923
- /**
3924
- * Sets the container to the specified size or returns false if that's not possible
3925
- * @param width the new width in pixel
3926
- * @param height the new height in pixel
3927
- */
3928
- setSize(width: number, height: number): boolean;
3929
-
3930
- /**
3931
- * Sets the item's title to the provided value. Triggers titleChanged and stateChanged events
3932
- * @param title the new title
3933
- */
3934
- setTitle(title: string): void;
3935
-
3936
- /**
3937
- * Closes the container or returns false if that is not possible
3938
- */
3939
- close(): boolean;
3940
- }
3941
-
3942
3781
  declare type ContentCreationBehavior = 'window' | 'view' | 'block' | 'browser';
3943
3782
 
3944
3783
  /**
@@ -4001,218 +3840,6 @@ declare type ContentCreationRulesEvent = NamedEvent & {
4001
3840
  disposition: string;
4002
3841
  };
4003
3842
 
4004
- declare interface ContentItem extends EventEmitter_2 {
4005
- instance: any;
4006
- header: any;
4007
- _splitter: any;
4008
- /**
4009
- * This items configuration in its current state
4010
- */
4011
- config: ItemConfigType;
4012
-
4013
- /**
4014
- * The type of the item. Can be row, column, stack, component or root
4015
- */
4016
- type: ItemType;
4017
-
4018
- /**
4019
- * An array of items that are children of this item
4020
- */
4021
- contentItems: ContentItem[];
4022
-
4023
- container: Container;
4024
- /**
4025
- * The item that is this item's parent (or null if the item is root)
4026
- */
4027
- parent: ContentItem;
4028
-
4029
- /**
4030
- * A String or array of identifiers if provided in the configuration
4031
- */
4032
- id: string;
4033
-
4034
- /**
4035
- * True if the item had been initialised
4036
- */
4037
- isInitialised: boolean;
4038
-
4039
- /**
4040
- * True if the item is maximised
4041
- */
4042
- isMaximised: boolean;
4043
-
4044
- /**
4045
- * True if the item is the layout's root item
4046
- */
4047
- isRoot: boolean;
4048
-
4049
- /**
4050
- * True if the item is a row
4051
- */
4052
- isRow: boolean;
4053
-
4054
- /**
4055
- * True if the item is a column
4056
- */
4057
- isColumn: boolean;
4058
-
4059
- /**
4060
- * True if the item is a stack
4061
- */
4062
- isStack: boolean;
4063
-
4064
- /**
4065
- * True if the item is a component
4066
- */
4067
- isComponent: boolean;
4068
-
4069
- /**
4070
- * A reference to the layoutManager that controls this item
4071
- */
4072
- layoutManager: any;
4073
-
4074
- /**
4075
- * The item's outer element
4076
- */
4077
- element: JQuery;
4078
-
4079
- /**
4080
- * The item's inner element. Can be the same as the outer element.
4081
- */
4082
- childElementContainer: Container;
4083
-
4084
- /**
4085
- * Adds an item as a child to this item. If the item is already a part of a layout it will be removed
4086
- * from its original position before adding it to this item.
4087
- * @param itemOrItemConfig A content item (or tree of content items) or an ItemConfiguration to create the item from
4088
- * @param index last index An optional index that determines at which position the new item should be added. Default: last index.
4089
- */
4090
- addChild(itemOrItemConfig: ContentItem | ItemConfigType, index?: number): void;
4091
-
4092
- /**
4093
- * Destroys the item and all it's children
4094
- * @param contentItem The contentItem that should be removed
4095
- * @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.
4096
- */
4097
- removeChild(contentItem: ContentItem, keepChild?: boolean): void;
4098
-
4099
- /**
4100
- * The contentItem that should be removed
4101
- * @param oldChild ContentItem The contentItem that should be removed
4102
- * @param newChild A content item (or tree of content items) or an ItemConfiguration to create the item from
4103
- */
4104
- replaceChild(oldChild: ContentItem, newChild: ContentItem | ItemConfigType): void;
4105
-
4106
- /**
4107
- * Updates the items size. To actually assign a new size from within a component, use container.setSize( width, height )
4108
- */
4109
- setSize(): void;
4110
-
4111
- /**
4112
- * Sets the item's title to the provided value. Triggers titleChanged and stateChanged events
4113
- * @param title the new title
4114
- */
4115
- setTitle(title: string): void;
4116
-
4117
- /**
4118
- * A powerful, yet admittedly confusing method to recursively call methods on items in a tree. Usually you wouldn't need
4119
- * to use it directly, but it's used internally to setSizes, destroy parts of the item tree etc.
4120
- * @param functionName The name of the method to invoke
4121
- * @param functionArguments An array of arguments to pass to every function
4122
- * @param bottomUp If true, the method is invoked on the lowest parts of the tree first and then bubbles upwards. Default: false
4123
- * @param skipSelf If true, the method will only be invoked on the item's children, but not on the item itself. Default: false
4124
- */
4125
- callDownwards(functionName: string, functionArguments?: any[], bottomUp?: boolean, skipSelf?: boolean): void;
4126
-
4127
- /**
4128
- * 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.
4129
- */
4130
- emitBubblingEvent(name: string): void;
4131
-
4132
- /**
4133
- * Convenience method for item.parent.removeChild( item )
4134
- */
4135
- remove(): void;
4136
-
4137
- /**
4138
- * Removes the item from its current position in the layout and opens it in a window
4139
- */
4140
- popout(): BrowserWindow;
4141
-
4142
- /**
4143
- * Maximises the item or minimises it if it's already maximised
4144
- */
4145
- toggleMaximise(): void;
4146
-
4147
- /**
4148
- * Selects the item. Only relevant if settings.selectionEnabled is set to true
4149
- */
4150
- select(): void;
4151
-
4152
- /**
4153
- * Unselects the item. Only relevant if settings.selectionEnabled is set to true
4154
- */
4155
- deselect(): void;
4156
-
4157
- /**
4158
- * Returns true if the item has the specified id or false if not
4159
- * @param id An id to check for
4160
- */
4161
- hasId(id: string): boolean;
4162
-
4163
- /**
4164
- * Only Stacks have this method! It's the programmatical equivalent of clicking a tab.
4165
- * @param contentItem The new active content item
4166
- * @param preventFocus [OpenFin Custom] Indicates to openfin that the view should not be focused when activated.
4167
- */
4168
- // (CORE-198)[../docs/golden-layout-changelog.md#CORE-198 stack.setActiveView]
4169
- setActiveContentItem(contentItem: ContentItem, preventFocus?: boolean): void;
4170
-
4171
- /**
4172
- * Only Stacks have this method! Returns the currently selected contentItem.
4173
- */
4174
- getActiveContentItem(): ContentItem;
4175
-
4176
- /**
4177
- * Adds an id to an item or does nothing if the id is already present
4178
- * @param id The id to be added
4179
- */
4180
- addId(id: string): void;
4181
-
4182
- /**
4183
- * Removes an id from an item or throws an error if the id couldn't be found
4184
- * @param id The id to be removed
4185
- */
4186
- removeId(id: string): void;
4187
-
4188
- /**
4189
- * Calls filterFunction recursively for every item in the tree. If the function returns true the item is added to the resulting array
4190
- * @param filterFunction A function that determines whether an item matches certain criteria
4191
- */
4192
- getItemsByFilter(filterFunction: (contentItem: ContentItem) => boolean): ContentItem[];
4193
-
4194
- /**
4195
- * Returns all items with the specified id.
4196
- * @param id An id specified in the itemConfig
4197
- */
4198
- getItemsById(id: string | string[]): ContentItem[];
4199
-
4200
- /**
4201
- * Returns all items with the specified type
4202
- * @param type 'row', 'column', 'stack', 'component' or 'root'
4203
- */
4204
- getItemsByType(type: string): ContentItem[];
4205
-
4206
- /**
4207
- * Returns all instances of the component with the specified componentName
4208
- * @param componentName a componentName as specified in the itemConfig
4209
- */
4210
- getComponentsByName(componentName: string): any;
4211
-
4212
- _contentAreaDimensions: any;
4213
- _$getArea: () => any;
4214
- }
4215
-
4216
3843
  /**
4217
3844
  * Restrict navigation to URLs that match an allowed pattern.
4218
3845
  * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
@@ -4697,46 +4324,6 @@ declare type DidFinishLoadEvent = NamedEvent & {
4697
4324
  type: 'did-finish-load';
4698
4325
  };
4699
4326
 
4700
- declare interface Dimensions {
4701
- /**
4702
- * The width of the borders between the layout items in pixel. Please note: The actual draggable area is wider
4703
- * than the visible one, making it safe to set this to small values without affecting usability.
4704
- * Default: 5
4705
- */
4706
- borderWidth?: number;
4707
-
4708
- /**
4709
- * The minimum height an item can be resized to (in pixel).
4710
- * Default: 10
4711
- */
4712
- minItemHeight?: number;
4713
-
4714
- /**
4715
- * The minimum width an item can be resized to (in pixel).
4716
- * Default: 10
4717
- */
4718
- minItemWidth?: number;
4719
-
4720
- /**
4721
- * The height of the header elements in pixel. This can be changed, but your theme's header css needs to be
4722
- * adjusted accordingly.
4723
- * Default: 20
4724
- */
4725
- headerHeight?: number;
4726
-
4727
- /**
4728
- * The width of the element that appears when an item is dragged (in pixel).
4729
- * Default: 300
4730
- */
4731
- dragProxyWidth?: number;
4732
-
4733
- /**
4734
- * The height of the element that appears when an item is dragged (in pixel).
4735
- * Default: 200
4736
- */
4737
- dragProxyHeight?: number;
4738
- }
4739
-
4740
4327
  /**
4741
4328
  * @interface
4742
4329
  */
@@ -5033,8 +4620,6 @@ declare type Dpi = {
5033
4620
  vertical?: number;
5034
4621
  };
5035
4622
 
5036
- declare interface DragSource {}
5037
-
5038
4623
  /**
5039
4624
  * Generated when a window has been embedded.
5040
4625
  * @interface
@@ -5346,43 +4931,6 @@ declare class EventAggregator extends EmitterMap {
5346
4931
  dispatchEvent: (message: Message<any>) => boolean;
5347
4932
  }
5348
4933
 
5349
- declare interface EventEmitter_2 {
5350
- [x: string]: any;
5351
- /**
5352
- * Subscribe to an event
5353
- * @param eventName The name of the event to describe to
5354
- * @param callback The function that should be invoked when the event occurs
5355
- * @param context The value of the this pointer in the callback function
5356
- */
5357
- on(eventName: string, callback: Function, context?: any): void;
5358
-
5359
- /**
5360
- * Notify listeners of an event and pass arguments along
5361
- * @param eventName The name of the event to emit
5362
- */
5363
- emit(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5364
-
5365
- /**
5366
- * Alias for emit
5367
- */
5368
- trigger(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5369
-
5370
- /**
5371
- * Unsubscribes either all listeners if just an eventName is provided, just a specific callback if invoked with
5372
- * eventName and callback or just a specific callback with a specific context if invoked with all three
5373
- * arguments.
5374
- * @param eventName The name of the event to unsubscribe from
5375
- * @param callback The function that should be invoked when the event occurs
5376
- * @param context The value of the this pointer in the callback function
5377
- */
5378
- unbind(eventName: string, callback?: Function, context?: any): void;
5379
-
5380
- /**
5381
- * Alias for unbind
5382
- */
5383
- off(eventName: string, callback?: Function, context?: any): void;
5384
- }
5385
-
5386
4934
  /**
5387
4935
  * Handler for an event on an EventEmitter.
5388
4936
  * @remarks Selects the correct type for the event
@@ -6223,239 +5771,6 @@ declare namespace GlobalHotkeyEvents {
6223
5771
  */
6224
5772
  declare type GlobalHotkeyEventType = EventType_6;
6225
5773
 
6226
- declare namespace GoldenLayout {
6227
- export {
6228
- GoldenLayout_2 as GoldenLayout,
6229
- ItemConfigType,
6230
- Settings,
6231
- Dimensions,
6232
- Labels,
6233
- ItemType,
6234
- ItemConfig,
6235
- ComponentConfig,
6236
- ReactComponentConfig,
6237
- Config,
6238
- ContentItem,
6239
- Container,
6240
- DragSource,
6241
- BrowserWindow,
6242
- Header,
6243
- TabDragListener,
6244
- Tab,
6245
- EventEmitter_2 as EventEmitter
6246
- }
6247
- }
6248
-
6249
- declare class GoldenLayout_2 implements EventEmitter_2 {
6250
- /**
6251
- * The topmost item in the layout item tree. In browser terms: Think of the GoldenLayout instance as window
6252
- * object and of goldenLayout.root as the document.
6253
- */
6254
- root: ContentItem;
6255
-
6256
- /**
6257
- * A reference to the (jQuery) DOM element containing the layout
6258
- */
6259
- container: JQuery;
6260
-
6261
- /**
6262
- * True once the layout item tree has been created and the initialised event has been fired
6263
- */
6264
- isInitialised: boolean;
6265
-
6266
- /**
6267
- * A reference to the current, extended top level config.
6268
- *
6269
- * Don't rely on this object for state saving / serialisation. Use layout.toConfig() instead.
6270
- */
6271
- config: Config;
6272
-
6273
- /**
6274
- * The currently selected item or null if no item is selected. Only relevant if settings.selectionEnabled is set
6275
- * to true.
6276
- */
6277
- selectedItem: ContentItem;
6278
-
6279
- /**
6280
- * The current outer width of the layout in pixels.
6281
- */
6282
- width: number;
6283
-
6284
- /**
6285
- * The current outer height of the layout in pixels.
6286
- */
6287
- height: number;
6288
-
6289
- /**
6290
- * An array of BrowserWindow instances
6291
- */
6292
- openPopouts: BrowserWindow[];
6293
-
6294
- /**
6295
- * True if the layout has been opened as a popout by another layout.
6296
- */
6297
- isSubWindow: boolean;
6298
-
6299
- /**
6300
- * A singleton instance of EventEmitter that works across windows
6301
- */
6302
- eventHub: EventEmitter_2;
6303
-
6304
- _dragProxy: any;
6305
-
6306
- dropTargetIndicator: any;
6307
-
6308
- /**
6309
- * @param config A GoldenLayout configuration object
6310
- * @param container The DOM element the layout will be initialised in. Default: document.body
6311
- */
6312
- constructor(configuration: Config, container?: Element | HTMLElement | JQuery);
6313
-
6314
- /*
6315
- * @param name The name of the component, as referred to by componentName in the component configuration.
6316
- * @param component A constructor or factory function. Will be invoked with new and two arguments, a
6317
- * containerobject and a component state
6318
- */
6319
- registerComponent(name: String, component: any): void;
6320
-
6321
- /**
6322
- * Renders the layout into the container. If init() is called before the document is ready it attaches itself as
6323
- * a listener to the document and executes once it becomes ready.
6324
- */
6325
- init(): void;
6326
-
6327
- /**
6328
- * Returns the current state of the layout and its components as a serialisable object.
6329
- */
6330
- toConfig(): Config;
6331
-
6332
- /**
6333
- * Returns a component that was previously registered with layout.registerComponent().
6334
- * @param name The name of a previously registered component
6335
- */
6336
- getComponent(name: string): any;
6337
-
6338
- /**
6339
- * Resizes the layout. If no arguments are provided GoldenLayout measures its container and resizes accordingly.
6340
- * @param width The outer width the layout should be resized to. Default: The container elements width
6341
- * @param height The outer height the layout should be resized to. Default: The container elements height
6342
- */
6343
- updateSize(width?: number, height?: number): void;
6344
-
6345
- /**
6346
- * Destroys the layout. Recursively calls destroy on all components and content items, removes all event
6347
- * listeners and finally removes itself from the DOM.
6348
- */
6349
- destroy(): void;
6350
-
6351
- /**
6352
- * Creates a new content item or tree of content items from configuration. Usually you wouldn't call this
6353
- * directly, but instead use methods like layout.createDragSource(), item.addChild() or item.replaceChild() that
6354
- * all call this method implicitly.
6355
- * @param itemConfiguration An item configuration (can be an entire tree of items)
6356
- * @param parent A parent item
6357
- */
6358
- createContentItem(itemConfiguration?: ItemConfigType, parent?: ContentItem): ContentItem;
6359
-
6360
- /**
6361
- * Creates a new popout window with configOrContentItem as contents at the position specified in dimensions
6362
- * @param configOrContentItem The content item or config that will be created in the new window. If a item is
6363
- * provided its config will be read, if config is provided, only the content key
6364
- * will be used
6365
- * @param dimensions A map containing the keys left, top, width and height. Left and top can be negative to
6366
- * place the window in another screen.
6367
- * @param parentId The id of the item within the current layout the child window's content will be appended to
6368
- * when popIn is clicked
6369
- * @param indexInParent The index at which the child window's contents will be appended to. Default: null
6370
- */
6371
- createPopout(
6372
- configOrContentItem: ItemConfigType | ContentItem,
6373
- dimensions: {
6374
- width: number;
6375
- height: number;
6376
- left: number;
6377
- top: number;
6378
- },
6379
- parentId?: string,
6380
- indexInParent?: number
6381
- ): void;
6382
-
6383
- /**
6384
- * Turns a DOM element into a dragSource, meaning that the user can drag the element directly onto the layout
6385
- * where it turns into a contentItem.
6386
- * @param element The DOM element that will be turned into a dragSource
6387
- * @param itemConfiguration An item configuration (can be an entire tree of items)
6388
- * @return the dragSource that was created. This can be used to remove the
6389
- * dragSource from the layout later.
6390
- */
6391
- createDragSource(element: HTMLElement | JQuery, itemConfiguration: ItemConfigType): DragSource;
6392
-
6393
- /**
6394
- * Removes a dragSource from the layout.
6395
- *
6396
- * @param dragSource The dragSource to remove
6397
- */
6398
- removeDragSource(dragSource: DragSource): void;
6399
-
6400
- /**
6401
- * If settings.selectionEnabled is set to true, this allows to select items programmatically.
6402
- * @param contentItem A ContentItem instance
6403
- */
6404
- selectItem(contentItem: ContentItem): void;
6405
-
6406
- /**
6407
- * Static method on the GoldenLayout constructor! This method will iterate through a GoldenLayout config object
6408
- * and replace frequent keys and values with single letter substitutes.
6409
- * @param config A GoldenLayout configuration object
6410
- */
6411
- static minifyConfig(config: any): any;
6412
-
6413
- /**
6414
- * Static method on the GoldenLayout constructor! This method will reverse the minifications of minifyConfig.
6415
- * @param minifiedConfig A minified GoldenLayout configuration object
6416
- */
6417
- static unminifyConfig(minifiedConfig: any): any;
6418
-
6419
- /**
6420
- * Subscribe to an event
6421
- * @param eventName The name of the event to describe to
6422
- * @param callback The function that should be invoked when the event occurs
6423
- * @param context The value of the this pointer in the callback function
6424
- */
6425
- on(eventName: string, callback: Function, context?: any): void;
6426
-
6427
- /**
6428
- * Notify listeners of an event and pass arguments along
6429
- * @param eventName The name of the event to emit
6430
- */
6431
- emit(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
6432
-
6433
- /**
6434
- * Alias for emit
6435
- */
6436
- trigger(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
6437
-
6438
- /**
6439
- * Unsubscribes either all listeners if just an eventName is provided, just a specific callback if invoked with
6440
- * eventName and callback or just a specific callback with a specific context if invoked with all three
6441
- * arguments.
6442
- * @param eventName The name of the event to unsubscribe from
6443
- * @param callback The function that should be invoked when the event occurs
6444
- * @param context The value of the this pointer in the callback function
6445
- */
6446
- unbind(eventName: string, callback?: Function, context?: any): void;
6447
-
6448
- /**
6449
- * Alias for unbind
6450
- */
6451
- off(eventName: string, callback?: Function, context?: any): void;
6452
-
6453
- /**
6454
- * Internal method that create drop areas on the far edges of window, e.g. far-right of window
6455
- */
6456
- _$createRootItemAreas(): void;
6457
- }
6458
-
6459
5774
  /**
6460
5775
  * @interface
6461
5776
  */
@@ -6463,62 +5778,6 @@ declare type GpuInfo = {
6463
5778
  name: string;
6464
5779
  };
6465
5780
 
6466
- declare interface Header {
6467
- /**
6468
- * A reference to the LayoutManager instance
6469
- */
6470
- layoutManager: GoldenLayout_2;
6471
-
6472
- /**
6473
- * A reference to the Stack this Header belongs to
6474
- */
6475
- parent: ContentItem;
6476
-
6477
- /**
6478
- * An array of the Tabs within this header
6479
- */
6480
- tabs: Tab[];
6481
-
6482
- /**
6483
- * The currently selected activeContentItem
6484
- */
6485
- activeContentItem: ContentItem;
6486
-
6487
- /**
6488
- * The outer (jQuery) DOM element of this Header
6489
- */
6490
- element: JQuery;
6491
-
6492
- /**
6493
- * The (jQuery) DOM element containing the tabs
6494
- */
6495
- tabsContainer: JQuery;
6496
-
6497
- /**
6498
- * The (jQuery) DOM element containing the close, maximise and popout button
6499
- */
6500
- controlsContainer: JQuery;
6501
-
6502
- /**
6503
- * Hides the currently selected contentItem, shows the specified one and highlights its tab.
6504
- * @param contentItem The content item that will be selected
6505
- */
6506
- setActiveContentItem(contentItem: ContentItem): void;
6507
-
6508
- /**
6509
- * Creates a new tab and associates it with a content item
6510
- * @param contentItem The content item the tab will be associated with
6511
- * @param index A zero based index, specifying the position of the new tab
6512
- */
6513
- createTab(contentItem: ContentItem, index?: number): void;
6514
-
6515
- /**
6516
- * Finds a tab by its contentItem and removes it
6517
- * @param contentItem The content item the tab is associated with
6518
- */
6519
- removeTab(contentItem: ContentItem): void;
6520
- }
6521
-
6522
5781
  /**
6523
5782
  * Generated when a View is hidden.
6524
5783
  * @interface
@@ -8187,50 +7446,6 @@ declare class InteropModule extends Base {
8187
7446
  connectSync(name: string, interopConfig?: OpenFin.InteropConfig): InteropClient;
8188
7447
  }
8189
7448
 
8190
- declare interface ItemConfig {
8191
- /**
8192
- * The type of the item. Possible values are 'row', 'column', 'stack', 'component' and 'react-component'.
8193
- */
8194
- type: ItemType;
8195
-
8196
- /**
8197
- * An array of configurations for items that will be created as children of this item.
8198
- */
8199
- content?: ItemConfigType[];
8200
-
8201
- /**
8202
- * The width of this item, relative to the other children of its parent in percent
8203
- */
8204
- width?: number;
8205
-
8206
- /**
8207
- * The height of this item, relative to the other children of its parent in percent
8208
- */
8209
- height?: number;
8210
-
8211
- /**
8212
- * A String or an Array of Strings. Used to retrieve the item using item.getItemsById()
8213
- */
8214
- id?: string | string[];
8215
-
8216
- /**
8217
- * Determines if the item is closable. If false, the x on the items tab will be hidden and container.close()
8218
- * will return false
8219
- * Default: true
8220
- */
8221
- isClosable?: boolean;
8222
-
8223
- /**
8224
- * The title of the item as displayed on its tab and on popout windows
8225
- * Default: componentName or ''
8226
- */
8227
- title?: string;
8228
- }
8229
-
8230
- declare type ItemConfigType = ItemConfig | ComponentConfig | ReactComponentConfig;
8231
-
8232
- declare type ItemType = 'row' | 'column' | 'stack' | 'root' | 'component';
8233
-
8234
7449
  /**
8235
7450
  * @interface
8236
7451
  */
@@ -8288,32 +7503,6 @@ declare type JumpListTask = {
8288
7503
  iconIndex?: number;
8289
7504
  };
8290
7505
 
8291
- declare interface Labels {
8292
- /**
8293
- * The tooltip text that appears when hovering over the close icon.
8294
- * Default: 'close'
8295
- */
8296
- close?: string;
8297
-
8298
- /**
8299
- * The tooltip text that appears when hovering over the maximise icon.
8300
- * Default: 'maximise'
8301
- */
8302
- maximise?: string;
8303
-
8304
- /**
8305
- * The tooltip text that appears when hovering over the minimise icon.
8306
- * Default: 'minimise'
8307
- */
8308
- minimise?: string;
8309
-
8310
- /**
8311
- * The tooltip text that appears when hovering over the popout icon.
8312
- * Default: 'open in new window'
8313
- */
8314
- popout?: string;
8315
- }
8316
-
8317
7506
  export declare function launch(config: ConnectConfig): Promise<number>;
8318
7507
 
8319
7508
  /**
@@ -8741,7 +7930,7 @@ declare type LayoutEntityDefinition<TLayoutEntityType extends LayoutEntityTypes
8741
7930
  entityId: string;
8742
7931
  };
8743
7932
 
8744
- declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'root'>;
7933
+ declare type LayoutEntityTypes = 'column' | 'row' | 'stack';
8745
7934
 
8746
7935
  /**
8747
7936
  * @interface
@@ -12667,18 +11856,6 @@ declare type QueryPermissionResult = {
12667
11856
  rawValue?: unknown;
12668
11857
  };
12669
11858
 
12670
- declare interface ReactComponentConfig extends ItemConfig {
12671
- /**
12672
- * The name of the component as specified in layout.registerComponent. Mandatory if type is 'react-component'
12673
- */
12674
- component: string;
12675
-
12676
- /**
12677
- * Properties that will be passed to the component and accessible using this.props.
12678
- */
12679
- props?: any;
12680
- }
12681
-
12682
11859
  /**
12683
11860
  * @interface
12684
11861
  */
@@ -13185,97 +12362,6 @@ declare type SessionContextGroup = {
13185
12362
  }>;
13186
12363
  };
13187
12364
 
13188
- declare interface Settings {
13189
- preventSplitterResize?: boolean;
13190
-
13191
- newTabButton?: {
13192
- url?: string;
13193
- };
13194
-
13195
- /**
13196
- * If true, tabs can't be dragged into the window.
13197
- * Default: false
13198
- */
13199
- preventDragIn?: boolean;
13200
-
13201
- /**
13202
- * If true, tabs can't be dragged out of the window.
13203
- * Default: false
13204
- */
13205
- preventDragOut?: boolean;
13206
-
13207
- /**
13208
- * If true, stack headers are the only areas where tabs can be dropped.
13209
- * Default: false
13210
- */
13211
- constrainDragToHeaders?: boolean;
13212
- /**
13213
- * Turns headers on or off. If false, the layout will be displayed with splitters only.
13214
- * Default: true
13215
- */
13216
- hasHeaders?: boolean;
13217
-
13218
- /**
13219
- * (Unused in Openfin Platform) Constrains the area in which items can be dragged to the layout's container. Will be set to false
13220
- * automatically when layout.createDragSource() is called.
13221
- * Default: true
13222
- */
13223
- constrainDragToContainer?: boolean;
13224
-
13225
- /**
13226
- * If true, the user can re-arrange the layout by dragging items by their tabs to the desired location.
13227
- * Default: true
13228
- */
13229
- reorderEnabled?: boolean;
13230
-
13231
- /**
13232
- * If true, the user can select items by clicking on their header. This sets the value of layout.selectedItem to
13233
- * the clicked item, highlights its header and the layout emits a 'selectionChanged' event.
13234
- * Default: false
13235
- */
13236
- selectionEnabled?: boolean;
13237
-
13238
- /**
13239
- * Decides what will be opened in a new window if the user clicks the popout icon. If true the entire stack will
13240
- * be transferred to the new window, if false only the active component will be opened.
13241
- * Default: false
13242
- */
13243
- popoutWholeStack?: boolean;
13244
-
13245
- /**
13246
- * Specifies if an error is thrown when a popout is blocked by the browser (e.g. by opening it programmatically).
13247
- * If false, the popout call will fail silently.
13248
- * Default: true
13249
- */
13250
- blockedPopoutsThrowError?: boolean;
13251
-
13252
- /**
13253
- * Specifies if all popouts should be closed when the page that created them is closed. Popouts don't have a
13254
- * strong dependency on their parent and can exist on their own, but can be quite annoying to close by hand. In
13255
- * addition, any changes made to popouts won't be stored after the parent is closed.
13256
- * Default: true
13257
- */
13258
- closePopoutsOnUnload?: boolean;
13259
-
13260
- /**
13261
- * Specifies if the popout icon should be displayed in the header-bar.
13262
- * Default: true
13263
- */
13264
- showPopoutIcon?: boolean;
13265
-
13266
- /**
13267
- * Specifies if the maximise icon should be displayed in the header-bar.
13268
- * Default: true
13269
- */
13270
- showMaximiseIcon?: boolean;
13271
-
13272
- /**
13273
- * Specifies if the close icon should be displayed in the header-bar.
13274
- * Default: true
13275
- */
13276
- showCloseIcon?: boolean;
13277
- }
13278
-
13279
12365
  /**
13280
12366
  * @interface
13281
12367
  */
@@ -15172,59 +14258,6 @@ declare type SystemShutdownHandler = (shutdownEvent: {
15172
14258
  proceed: () => void;
15173
14259
  }) => void;
15174
14260
 
15175
- declare interface Tab {
15176
- _dragListener: TabDragListener;
15177
-
15178
- /**
15179
- * True if this tab is the selected tab
15180
- */
15181
- isActive: boolean;
15182
-
15183
- /**
15184
- * A reference to the header this tab is a child of
15185
- */
15186
- header: Header;
15187
-
15188
- /**
15189
- * A reference to the content item this tab relates to
15190
- */
15191
- contentItem: ContentItem;
15192
-
15193
- /**
15194
- * The tabs outer (jQuery) DOM element
15195
- */
15196
- element: JQuery;
15197
-
15198
- /**
15199
- * The (jQuery) DOM element containing the title
15200
- */
15201
- titleElement: JQuery;
15202
-
15203
- /**
15204
- * The (jQuery) DOM element that closes the tab
15205
- */
15206
- closeElement: JQuery;
15207
-
15208
- /**
15209
- * Sets the tab's title. Does not affect the contentItem's title!
15210
- * @param title The new title
15211
- */
15212
- setTitle(title: string): void;
15213
-
15214
- /**
15215
- * Sets this tab's active state. To programmatically switch tabs, use header.setActiveContentItem( item ) instead.
15216
- * @param isActive Whether the tab is active
15217
- */
15218
- setActive(isActive: boolean): void;
15219
- }
15220
-
15221
- declare interface TabDragListener extends EventEmitter_2 {
15222
- /**
15223
- * A reference to the content item this tab relates to
15224
- */
15225
- contentItem: ContentItem;
15226
- }
15227
-
15228
14261
  /**
15229
14262
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
15230
14263
  */