@openfin/fdc3-api 37.81.20 → 37.81.22

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/out/fdc3-api.d.ts CHANGED
@@ -1167,9 +1167,14 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1167
1167
  */
1168
1168
  mainWindowOptions: WindowCreationOptions;
1169
1169
  /**
1170
- * The name of the application (and the application's main window).
1170
+ * The name of the application.
1171
1171
  *
1172
- * If provided, _must_ match `uuid`.
1172
+ * @remarks
1173
+ * This property is only used for naming the application logging folder, which will be sanitized to remove
1174
+ * any special characters, spaces or international characters. Otherwise it's not used and it will be overwritten
1175
+ * during startup with the UUID of the application.
1176
+ *
1177
+ * This property will be deprecated in the future.
1173
1178
  */
1174
1179
  name: string;
1175
1180
  /**
@@ -1199,9 +1204,7 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1199
1204
  url: string;
1200
1205
  /**
1201
1206
  * The _Unique Universal Identifier_ (UUID) of the application, unique within the set of all other applications
1202
- * running in the OpenFin Runtime.
1203
- *
1204
- * Note that `name` and `uuid` must match.
1207
+ * running in the OpenFin Runtime.
1205
1208
  */
1206
1209
  uuid: string;
1207
1210
  /**
@@ -1936,48 +1939,6 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
1936
1939
  behavior: 'browser';
1937
1940
  };
1938
1941
 
1939
- declare interface BrowserWindow {
1940
- /**
1941
- * True if the window has been opened and its GoldenLayout instance initialised.
1942
- */
1943
- isInitialised: boolean;
1944
-
1945
- /**
1946
- * Creates a window configuration object from the Popout.
1947
- */
1948
- toConfig(): {
1949
- dimensions: {
1950
- width: number;
1951
- height: number;
1952
- left: number;
1953
- top: number;
1954
- };
1955
- content: Config;
1956
- parentId: string;
1957
- indexInParent: number;
1958
- };
1959
-
1960
- /**
1961
- * Returns the GoldenLayout instance from the child window
1962
- */
1963
- getGlInstance(): GoldenLayout_2;
1964
-
1965
- /**
1966
- * Returns the native Window object
1967
- */
1968
- getWindow(): Window;
1969
-
1970
- /**
1971
- * Closes the popout
1972
- */
1973
- close(): void;
1974
-
1975
- /**
1976
- * Returns the popout to its original position as specified in parentId and indexInParent
1977
- */
1978
- popIn(): void;
1979
- }
1980
-
1981
1942
  /**
1982
1943
  * Extracts a single event type matching the given key from the View {@link Event} union.
1983
1944
  *
@@ -3376,31 +3337,6 @@ declare class ColumnOrRow extends LayoutNode {
3376
3337
  getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
3377
3338
  }
3378
3339
 
3379
- declare interface ComponentConfig extends ItemConfig {
3380
- /**
3381
- * The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
3382
- */
3383
- componentName: string;
3384
-
3385
- /**
3386
- * A serialisable object. Will be passed to the component constructor function and will be the value returned by
3387
- * container.getState().
3388
- */
3389
- componentState?: any;
3390
- }
3391
-
3392
- declare interface Config {
3393
- settings?: Settings;
3394
- dimensions?: Dimensions;
3395
- labels?: Labels;
3396
- content?: ItemConfigType[];
3397
- /**
3398
- * (Only on layout config object)
3399
- * Id of the currently maximised content item
3400
- */
3401
- maximisedItemId?: string;
3402
- }
3403
-
3404
3340
  declare type ConfigWithRuntime = BaseConfig & {
3405
3341
  runtime: RuntimeConfig;
3406
3342
  };
@@ -3778,103 +3714,6 @@ declare type ConstWindowOptions = {
3778
3714
  inheritance?: Partial<InheritableOptions>;
3779
3715
  };
3780
3716
 
3781
- declare interface Container extends EventEmitter_2 {
3782
- /**
3783
- * The current width of the container in pixel
3784
- */
3785
- width: number;
3786
-
3787
- /**
3788
- * The current height of the container in pixel
3789
- */
3790
- height: number;
3791
-
3792
- /**
3793
- * A reference to the component-item that controls this container
3794
- */
3795
- parent: ContentItem;
3796
-
3797
- /**
3798
- * A reference to the tab that controls this container. Will initially be null
3799
- * (and populated once a tab event has been fired).
3800
- */
3801
- tab: Tab;
3802
-
3803
- /**
3804
- * The current title of the container
3805
- */
3806
- title: string;
3807
-
3808
- /*
3809
- * A reference to the GoldenLayout instance this container belongs to
3810
- */
3811
- layoutManager: GoldenLayout_2;
3812
-
3813
- /**
3814
- * True if the item is currently hidden
3815
- */
3816
- isHidden: boolean;
3817
-
3818
- /**
3819
- * Overwrites the components state with the provided value. To only change parts of the componentState see
3820
- * extendState below. This is the main mechanism for saving the state of a component. This state will be the
3821
- * value of componentState when layout.toConfig() is called and will be passed back to the component's
3822
- * constructor function. It will also be used when the component is opened in a new window.
3823
- * @param state A serialisable object
3824
- */
3825
- setState(state: any): void;
3826
-
3827
- /**
3828
- * The same as setState but does not emit 'stateChanged' event
3829
- * @param {serialisable} state
3830
- */
3831
- setStateSkipEvent(state: any): void;
3832
-
3833
- /**
3834
- * This is similar to setState, but merges the provided state into the current one, rather than overwriting it.
3835
- * @param state A serialisable object
3836
- */
3837
- extendState(state: any): void;
3838
-
3839
- /**
3840
- * Returns the current state.
3841
- */
3842
- getState(): any;
3843
-
3844
- /**
3845
- * Returns the container's inner element as a jQuery element
3846
- */
3847
- getElement(): JQuery;
3848
-
3849
- /**
3850
- * hides the container or returns false if hiding it is not possible
3851
- */
3852
- hide(): boolean;
3853
-
3854
- /**
3855
- * shows the container or returns false if showing it is not possible
3856
- */
3857
- show(): boolean;
3858
-
3859
- /**
3860
- * Sets the container to the specified size or returns false if that's not possible
3861
- * @param width the new width in pixel
3862
- * @param height the new height in pixel
3863
- */
3864
- setSize(width: number, height: number): boolean;
3865
-
3866
- /**
3867
- * Sets the item's title to the provided value. Triggers titleChanged and stateChanged events
3868
- * @param title the new title
3869
- */
3870
- setTitle(title: string): void;
3871
-
3872
- /**
3873
- * Closes the container or returns false if that is not possible
3874
- */
3875
- close(): boolean;
3876
- }
3877
-
3878
3717
  /**
3879
3718
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3880
3719
  */
@@ -3948,218 +3787,6 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3948
3787
  disposition: string;
3949
3788
  };
3950
3789
 
3951
- declare interface ContentItem extends EventEmitter_2 {
3952
- instance: any;
3953
- header: any;
3954
- _splitter: any;
3955
- /**
3956
- * This items configuration in its current state
3957
- */
3958
- config: ItemConfigType;
3959
-
3960
- /**
3961
- * The type of the item. Can be row, column, stack, component or root
3962
- */
3963
- type: ItemType;
3964
-
3965
- /**
3966
- * An array of items that are children of this item
3967
- */
3968
- contentItems: ContentItem[];
3969
-
3970
- container: Container;
3971
- /**
3972
- * The item that is this item's parent (or null if the item is root)
3973
- */
3974
- parent: ContentItem;
3975
-
3976
- /**
3977
- * A String or array of identifiers if provided in the configuration
3978
- */
3979
- id: string;
3980
-
3981
- /**
3982
- * True if the item had been initialised
3983
- */
3984
- isInitialised: boolean;
3985
-
3986
- /**
3987
- * True if the item is maximised
3988
- */
3989
- isMaximised: boolean;
3990
-
3991
- /**
3992
- * True if the item is the layout's root item
3993
- */
3994
- isRoot: boolean;
3995
-
3996
- /**
3997
- * True if the item is a row
3998
- */
3999
- isRow: boolean;
4000
-
4001
- /**
4002
- * True if the item is a column
4003
- */
4004
- isColumn: boolean;
4005
-
4006
- /**
4007
- * True if the item is a stack
4008
- */
4009
- isStack: boolean;
4010
-
4011
- /**
4012
- * True if the item is a component
4013
- */
4014
- isComponent: boolean;
4015
-
4016
- /**
4017
- * A reference to the layoutManager that controls this item
4018
- */
4019
- layoutManager: any;
4020
-
4021
- /**
4022
- * The item's outer element
4023
- */
4024
- element: JQuery;
4025
-
4026
- /**
4027
- * The item's inner element. Can be the same as the outer element.
4028
- */
4029
- childElementContainer: Container;
4030
-
4031
- /**
4032
- * Adds an item as a child to this item. If the item is already a part of a layout it will be removed
4033
- * from its original position before adding it to this item.
4034
- * @param itemOrItemConfig A content item (or tree of content items) or an ItemConfiguration to create the item from
4035
- * @param index last index An optional index that determines at which position the new item should be added. Default: last index.
4036
- */
4037
- addChild(itemOrItemConfig: ContentItem | ItemConfigType, index?: number): void;
4038
-
4039
- /**
4040
- * Destroys the item and all it's children
4041
- * @param contentItem The contentItem that should be removed
4042
- * @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.
4043
- */
4044
- removeChild(contentItem: ContentItem, keepChild?: boolean): void;
4045
-
4046
- /**
4047
- * The contentItem that should be removed
4048
- * @param oldChild ContentItem The contentItem that should be removed
4049
- * @param newChild A content item (or tree of content items) or an ItemConfiguration to create the item from
4050
- */
4051
- replaceChild(oldChild: ContentItem, newChild: ContentItem | ItemConfigType): void;
4052
-
4053
- /**
4054
- * Updates the items size. To actually assign a new size from within a component, use container.setSize( width, height )
4055
- */
4056
- setSize(): void;
4057
-
4058
- /**
4059
- * Sets the item's title to the provided value. Triggers titleChanged and stateChanged events
4060
- * @param title the new title
4061
- */
4062
- setTitle(title: string): void;
4063
-
4064
- /**
4065
- * A powerful, yet admittedly confusing method to recursively call methods on items in a tree. Usually you wouldn't need
4066
- * to use it directly, but it's used internally to setSizes, destroy parts of the item tree etc.
4067
- * @param functionName The name of the method to invoke
4068
- * @param functionArguments An array of arguments to pass to every function
4069
- * @param bottomUp If true, the method is invoked on the lowest parts of the tree first and then bubbles upwards. Default: false
4070
- * @param skipSelf If true, the method will only be invoked on the item's children, but not on the item itself. Default: false
4071
- */
4072
- callDownwards(functionName: string, functionArguments?: any[], bottomUp?: boolean, skipSelf?: boolean): void;
4073
-
4074
- /**
4075
- * 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.
4076
- */
4077
- emitBubblingEvent(name: string): void;
4078
-
4079
- /**
4080
- * Convenience method for item.parent.removeChild( item )
4081
- */
4082
- remove(): void;
4083
-
4084
- /**
4085
- * Removes the item from its current position in the layout and opens it in a window
4086
- */
4087
- popout(): BrowserWindow;
4088
-
4089
- /**
4090
- * Maximises the item or minimises it if it's already maximised
4091
- */
4092
- toggleMaximise(): void;
4093
-
4094
- /**
4095
- * Selects the item. Only relevant if settings.selectionEnabled is set to true
4096
- */
4097
- select(): void;
4098
-
4099
- /**
4100
- * Unselects the item. Only relevant if settings.selectionEnabled is set to true
4101
- */
4102
- deselect(): void;
4103
-
4104
- /**
4105
- * Returns true if the item has the specified id or false if not
4106
- * @param id An id to check for
4107
- */
4108
- hasId(id: string): boolean;
4109
-
4110
- /**
4111
- * Only Stacks have this method! It's the programmatical equivalent of clicking a tab.
4112
- * @param contentItem The new active content item
4113
- * @param preventFocus [OpenFin Custom] Indicates to openfin that the view should not be focused when activated.
4114
- */
4115
- // (CORE-198)[../docs/golden-layout-changelog.md#CORE-198 stack.setActiveView]
4116
- setActiveContentItem(contentItem: ContentItem, preventFocus?: boolean): void;
4117
-
4118
- /**
4119
- * Only Stacks have this method! Returns the currently selected contentItem.
4120
- */
4121
- getActiveContentItem(): ContentItem;
4122
-
4123
- /**
4124
- * Adds an id to an item or does nothing if the id is already present
4125
- * @param id The id to be added
4126
- */
4127
- addId(id: string): void;
4128
-
4129
- /**
4130
- * Removes an id from an item or throws an error if the id couldn't be found
4131
- * @param id The id to be removed
4132
- */
4133
- removeId(id: string): void;
4134
-
4135
- /**
4136
- * Calls filterFunction recursively for every item in the tree. If the function returns true the item is added to the resulting array
4137
- * @param filterFunction A function that determines whether an item matches certain criteria
4138
- */
4139
- getItemsByFilter(filterFunction: (contentItem: ContentItem) => boolean): ContentItem[];
4140
-
4141
- /**
4142
- * Returns all items with the specified id.
4143
- * @param id An id specified in the itemConfig
4144
- */
4145
- getItemsById(id: string | string[]): ContentItem[];
4146
-
4147
- /**
4148
- * Returns all items with the specified type
4149
- * @param type 'row', 'column', 'stack', 'component' or 'root'
4150
- */
4151
- getItemsByType(type: string): ContentItem[];
4152
-
4153
- /**
4154
- * Returns all instances of the component with the specified componentName
4155
- * @param componentName a componentName as specified in the itemConfig
4156
- */
4157
- getComponentsByName(componentName: string): any;
4158
-
4159
- _contentAreaDimensions: any;
4160
- _$getArea: () => any;
4161
- }
4162
-
4163
3790
  /**
4164
3791
  * Restrict navigation to URLs that match an allowed pattern.
4165
3792
  * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
@@ -4587,46 +4214,6 @@ declare type DidFinishLoadEvent = NamedEvent & {
4587
4214
  type: 'did-finish-load';
4588
4215
  };
4589
4216
 
4590
- declare interface Dimensions {
4591
- /**
4592
- * The width of the borders between the layout items in pixel. Please note: The actual draggable area is wider
4593
- * than the visible one, making it safe to set this to small values without affecting usability.
4594
- * Default: 5
4595
- */
4596
- borderWidth?: number;
4597
-
4598
- /**
4599
- * The minimum height an item can be resized to (in pixel).
4600
- * Default: 10
4601
- */
4602
- minItemHeight?: number;
4603
-
4604
- /**
4605
- * The minimum width an item can be resized to (in pixel).
4606
- * Default: 10
4607
- */
4608
- minItemWidth?: number;
4609
-
4610
- /**
4611
- * The height of the header elements in pixel. This can be changed, but your theme's header css needs to be
4612
- * adjusted accordingly.
4613
- * Default: 20
4614
- */
4615
- headerHeight?: number;
4616
-
4617
- /**
4618
- * The width of the element that appears when an item is dragged (in pixel).
4619
- * Default: 300
4620
- */
4621
- dragProxyWidth?: number;
4622
-
4623
- /**
4624
- * The height of the element that appears when an item is dragged (in pixel).
4625
- * Default: 200
4626
- */
4627
- dragProxyHeight?: number;
4628
- }
4629
-
4630
4217
  /**
4631
4218
  * @interface
4632
4219
  */
@@ -4876,8 +4463,6 @@ declare type Dpi = {
4876
4463
  vertical?: number;
4877
4464
  };
4878
4465
 
4879
- declare interface DragSource {}
4880
-
4881
4466
  /**
4882
4467
  * Generated when a window has been embedded.
4883
4468
  * @interface
@@ -5188,43 +4773,6 @@ declare class EventAggregator extends EmitterMap {
5188
4773
  dispatchEvent: (message: Message<any>) => boolean;
5189
4774
  }
5190
4775
 
5191
- declare interface EventEmitter_2 {
5192
- [x: string]: any;
5193
- /**
5194
- * Subscribe to an event
5195
- * @param eventName The name of the event to describe to
5196
- * @param callback The function that should be invoked when the event occurs
5197
- * @param context The value of the this pointer in the callback function
5198
- */
5199
- on(eventName: string, callback: Function, context?: any): void;
5200
-
5201
- /**
5202
- * Notify listeners of an event and pass arguments along
5203
- * @param eventName The name of the event to emit
5204
- */
5205
- emit(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5206
-
5207
- /**
5208
- * Alias for emit
5209
- */
5210
- trigger(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5211
-
5212
- /**
5213
- * Unsubscribes either all listeners if just an eventName is provided, just a specific callback if invoked with
5214
- * eventName and callback or just a specific callback with a specific context if invoked with all three
5215
- * arguments.
5216
- * @param eventName The name of the event to unsubscribe from
5217
- * @param callback The function that should be invoked when the event occurs
5218
- * @param context The value of the this pointer in the callback function
5219
- */
5220
- unbind(eventName: string, callback?: Function, context?: any): void;
5221
-
5222
- /**
5223
- * Alias for unbind
5224
- */
5225
- off(eventName: string, callback?: Function, context?: any): void;
5226
- }
5227
-
5228
4776
  /**
5229
4777
  * Handler for an event on an EventEmitter.
5230
4778
  * @remarks Selects the correct type for the event
@@ -5816,6 +5364,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
5816
5364
  * @tutorial fdc3.open
5817
5365
  */
5818
5366
  protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
5367
+ protected _getChannels(): Promise<ChannelType[]>;
5819
5368
  /**
5820
5369
  * Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
5821
5370
  * @param channelId
@@ -6429,253 +5978,6 @@ declare namespace GlobalHotkeyEvents {
6429
5978
  */
6430
5979
  declare type GlobalHotkeyEventType = EventType_6;
6431
5980
 
6432
- declare namespace GoldenLayout {
6433
- export {
6434
- GoldenLayout_2 as GoldenLayout,
6435
- ItemConfigType,
6436
- Settings,
6437
- Dimensions,
6438
- Labels,
6439
- ItemType,
6440
- ItemConfig,
6441
- ComponentConfig,
6442
- ReactComponentConfig,
6443
- Config,
6444
- ContentItem,
6445
- Container,
6446
- DragSource,
6447
- BrowserWindow,
6448
- Header,
6449
- TabDragListener,
6450
- Tab,
6451
- EventEmitter_2 as EventEmitter
6452
- }
6453
- }
6454
-
6455
- declare class GoldenLayout_2 implements EventEmitter_2 {
6456
- /**
6457
- * The topmost item in the layout item tree. In browser terms: Think of the GoldenLayout instance as window
6458
- * object and of goldenLayout.root as the document.
6459
- */
6460
- root: ContentItem;
6461
-
6462
- /**
6463
- * A reference to the (jQuery) DOM element containing the layout
6464
- */
6465
- container: JQuery;
6466
-
6467
- /**
6468
- * True once the layout item tree has been created and the initialised event has been fired
6469
- */
6470
- isInitialised: boolean;
6471
-
6472
- /**
6473
- * A reference to the current, extended top level config.
6474
- *
6475
- * Don't rely on this object for state saving / serialisation. Use layout.toConfig() instead.
6476
- */
6477
- config: Config;
6478
-
6479
- /**
6480
- * The currently selected item or null if no item is selected. Only relevant if settings.selectionEnabled is set
6481
- * to true.
6482
- */
6483
- selectedItem: ContentItem;
6484
-
6485
- /**
6486
- * The current outer width of the layout in pixels.
6487
- */
6488
- width: number;
6489
-
6490
- /**
6491
- * The current outer height of the layout in pixels.
6492
- */
6493
- height: number;
6494
-
6495
- /**
6496
- * An array of BrowserWindow instances
6497
- */
6498
- openPopouts: BrowserWindow[];
6499
-
6500
- /**
6501
- * True if the layout has been opened as a popout by another layout.
6502
- */
6503
- isSubWindow: boolean;
6504
-
6505
- /**
6506
- * A singleton instance of EventEmitter that works across windows
6507
- */
6508
- eventHub: EventEmitter_2;
6509
-
6510
- _dragProxy: any;
6511
-
6512
- dropTargetIndicator: any;
6513
-
6514
- _isFullPage: boolean;
6515
-
6516
- _onUnload: any;
6517
-
6518
- tabDropPlaceholder: any;
6519
-
6520
- transitionIndicator: any;
6521
-
6522
- _dragSources: any;
6523
-
6524
- _resizeFunction: any;
6525
-
6526
- _unloadFunction: any;
6527
-
6528
- /**
6529
- * @param config A GoldenLayout configuration object
6530
- * @param container The DOM element the layout will be initialised in. Default: document.body
6531
- */
6532
- constructor(configuration: Config, container?: Element | HTMLElement | JQuery);
6533
-
6534
- /*
6535
- * @param name The name of the component, as referred to by componentName in the component configuration.
6536
- * @param component A constructor or factory function. Will be invoked with new and two arguments, a
6537
- * containerobject and a component state
6538
- */
6539
- registerComponent(name: String, component: any): void;
6540
-
6541
- /**
6542
- * Renders the layout into the container. If init() is called before the document is ready it attaches itself as
6543
- * a listener to the document and executes once it becomes ready.
6544
- */
6545
- init(): void;
6546
-
6547
- /**
6548
- * Returns the current state of the layout and its components as a serialisable object.
6549
- */
6550
- toConfig(): Config;
6551
-
6552
- /**
6553
- * Returns a component that was previously registered with layout.registerComponent().
6554
- * @param name The name of a previously registered component
6555
- */
6556
- getComponent(name: string): any;
6557
-
6558
- /**
6559
- * Resizes the layout. If no arguments are provided GoldenLayout measures its container and resizes accordingly.
6560
- * @param width The outer width the layout should be resized to. Default: The container elements width
6561
- * @param height The outer height the layout should be resized to. Default: The container elements height
6562
- */
6563
- updateSize(width?: number, height?: number): void;
6564
-
6565
- /**
6566
- * Destroys the layout. Recursively calls destroy on all components and content items, removes all event
6567
- * listeners and finally removes itself from the DOM.
6568
- */
6569
- destroy(): void;
6570
-
6571
- /**
6572
- * Creates a new content item or tree of content items from configuration. Usually you wouldn't call this
6573
- * directly, but instead use methods like layout.createDragSource(), item.addChild() or item.replaceChild() that
6574
- * all call this method implicitly.
6575
- * @param itemConfiguration An item configuration (can be an entire tree of items)
6576
- * @param parent A parent item
6577
- */
6578
- createContentItem(itemConfiguration?: ItemConfigType, parent?: ContentItem): ContentItem;
6579
-
6580
- /**
6581
- * Creates a new popout window with configOrContentItem as contents at the position specified in dimensions
6582
- * @param configOrContentItem The content item or config that will be created in the new window. If a item is
6583
- * provided its config will be read, if config is provided, only the content key
6584
- * will be used
6585
- * @param dimensions A map containing the keys left, top, width and height. Left and top can be negative to
6586
- * place the window in another screen.
6587
- * @param parentId The id of the item within the current layout the child window's content will be appended to
6588
- * when popIn is clicked
6589
- * @param indexInParent The index at which the child window's contents will be appended to. Default: null
6590
- */
6591
- createPopout(
6592
- configOrContentItem: ItemConfigType | ContentItem,
6593
- dimensions: {
6594
- width: number;
6595
- height: number;
6596
- left: number;
6597
- top: number;
6598
- },
6599
- parentId?: string,
6600
- indexInParent?: number
6601
- ): void;
6602
-
6603
- /**
6604
- * Turns a DOM element into a dragSource, meaning that the user can drag the element directly onto the layout
6605
- * where it turns into a contentItem.
6606
- * @param element The DOM element that will be turned into a dragSource
6607
- * @param itemConfiguration An item configuration (can be an entire tree of items)
6608
- * @return the dragSource that was created. This can be used to remove the
6609
- * dragSource from the layout later.
6610
- */
6611
- createDragSource(element: HTMLElement | JQuery, itemConfiguration: ItemConfigType): DragSource;
6612
-
6613
- /**
6614
- * Removes a dragSource from the layout.
6615
- *
6616
- * @param dragSource The dragSource to remove
6617
- */
6618
- removeDragSource(dragSource: DragSource): void;
6619
-
6620
- /**
6621
- * If settings.selectionEnabled is set to true, this allows to select items programmatically.
6622
- * @param contentItem A ContentItem instance
6623
- */
6624
- selectItem(contentItem: ContentItem): void;
6625
-
6626
- /**
6627
- * Static method on the GoldenLayout constructor! This method will iterate through a GoldenLayout config object
6628
- * and replace frequent keys and values with single letter substitutes.
6629
- * @param config A GoldenLayout configuration object
6630
- */
6631
- static minifyConfig(config: any): any;
6632
-
6633
- /**
6634
- * Static method on the GoldenLayout constructor! This method will reverse the minifications of minifyConfig.
6635
- * @param minifiedConfig A minified GoldenLayout configuration object
6636
- */
6637
- static unminifyConfig(minifiedConfig: any): any;
6638
-
6639
- /**
6640
- * Subscribe to an event
6641
- * @param eventName The name of the event to describe to
6642
- * @param callback The function that should be invoked when the event occurs
6643
- * @param context The value of the this pointer in the callback function
6644
- */
6645
- on(eventName: string, callback: Function, context?: any): void;
6646
-
6647
- /**
6648
- * Notify listeners of an event and pass arguments along
6649
- * @param eventName The name of the event to emit
6650
- */
6651
- emit(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
6652
-
6653
- /**
6654
- * Alias for emit
6655
- */
6656
- trigger(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
6657
-
6658
- /**
6659
- * Unsubscribes either all listeners if just an eventName is provided, just a specific callback if invoked with
6660
- * eventName and callback or just a specific callback with a specific context if invoked with all three
6661
- * arguments.
6662
- * @param eventName The name of the event to unsubscribe from
6663
- * @param callback The function that should be invoked when the event occurs
6664
- * @param context The value of the this pointer in the callback function
6665
- */
6666
- unbind(eventName: string, callback?: Function, context?: any): void;
6667
-
6668
- /**
6669
- * Alias for unbind
6670
- */
6671
- off(eventName: string, callback?: Function, context?: any): void;
6672
-
6673
- /**
6674
- * Internal method that create drop areas on the far edges of window, e.g. far-right of window
6675
- */
6676
- _$createRootItemAreas(): void;
6677
- }
6678
-
6679
5981
  /**
6680
5982
  * @interface
6681
5983
  */
@@ -6683,62 +5985,6 @@ declare type GpuInfo = {
6683
5985
  name: string;
6684
5986
  };
6685
5987
 
6686
- declare interface Header {
6687
- /**
6688
- * A reference to the LayoutManager instance
6689
- */
6690
- layoutManager: GoldenLayout_2;
6691
-
6692
- /**
6693
- * A reference to the Stack this Header belongs to
6694
- */
6695
- parent: ContentItem;
6696
-
6697
- /**
6698
- * An array of the Tabs within this header
6699
- */
6700
- tabs: Tab[];
6701
-
6702
- /**
6703
- * The currently selected activeContentItem
6704
- */
6705
- activeContentItem: ContentItem;
6706
-
6707
- /**
6708
- * The outer (jQuery) DOM element of this Header
6709
- */
6710
- element: JQuery;
6711
-
6712
- /**
6713
- * The (jQuery) DOM element containing the tabs
6714
- */
6715
- tabsContainer: JQuery;
6716
-
6717
- /**
6718
- * The (jQuery) DOM element containing the close, maximise and popout button
6719
- */
6720
- controlsContainer: JQuery;
6721
-
6722
- /**
6723
- * Hides the currently selected contentItem, shows the specified one and highlights its tab.
6724
- * @param contentItem The content item that will be selected
6725
- */
6726
- setActiveContentItem(contentItem: ContentItem): void;
6727
-
6728
- /**
6729
- * Creates a new tab and associates it with a content item
6730
- * @param contentItem The content item the tab will be associated with
6731
- * @param index A zero based index, specifying the position of the new tab
6732
- */
6733
- createTab(contentItem: ContentItem, index?: number): void;
6734
-
6735
- /**
6736
- * Finds a tab by its contentItem and removes it
6737
- * @param contentItem The content item the tab is associated with
6738
- */
6739
- removeTab(contentItem: ContentItem): void;
6740
- }
6741
-
6742
5988
  /**
6743
5989
  * Generated when a View is hidden.
6744
5990
  * @interface
@@ -8351,50 +7597,6 @@ declare class InteropModule extends Base {
8351
7597
  connectSync(name: string, interopConfig?: OpenFin.InteropConfig): InteropClient;
8352
7598
  }
8353
7599
 
8354
- declare interface ItemConfig {
8355
- /**
8356
- * The type of the item. Possible values are 'row', 'column', 'stack', 'component' and 'react-component'.
8357
- */
8358
- type: ItemType;
8359
-
8360
- /**
8361
- * An array of configurations for items that will be created as children of this item.
8362
- */
8363
- content?: ItemConfigType[];
8364
-
8365
- /**
8366
- * The width of this item, relative to the other children of its parent in percent
8367
- */
8368
- width?: number;
8369
-
8370
- /**
8371
- * The height of this item, relative to the other children of its parent in percent
8372
- */
8373
- height?: number;
8374
-
8375
- /**
8376
- * A String or an Array of Strings. Used to retrieve the item using item.getItemsById()
8377
- */
8378
- id?: string | string[];
8379
-
8380
- /**
8381
- * Determines if the item is closable. If false, the x on the items tab will be hidden and container.close()
8382
- * will return false
8383
- * Default: true
8384
- */
8385
- isClosable?: boolean;
8386
-
8387
- /**
8388
- * The title of the item as displayed on its tab and on popout windows
8389
- * Default: componentName or ''
8390
- */
8391
- title?: string;
8392
- }
8393
-
8394
- declare type ItemConfigType = ItemConfig | ComponentConfig | ReactComponentConfig;
8395
-
8396
- declare type ItemType = 'row' | 'column' | 'stack' | 'root' | 'component';
8397
-
8398
7600
  /**
8399
7601
  * @interface
8400
7602
  */
@@ -8452,32 +7654,6 @@ declare type JumpListTask = {
8452
7654
  iconIndex?: number;
8453
7655
  };
8454
7656
 
8455
- declare interface Labels {
8456
- /**
8457
- * The tooltip text that appears when hovering over the close icon.
8458
- * Default: 'close'
8459
- */
8460
- close?: string;
8461
-
8462
- /**
8463
- * The tooltip text that appears when hovering over the maximise icon.
8464
- * Default: 'maximise'
8465
- */
8466
- maximise?: string;
8467
-
8468
- /**
8469
- * The tooltip text that appears when hovering over the minimise icon.
8470
- * Default: 'minimise'
8471
- */
8472
- minimise?: string;
8473
-
8474
- /**
8475
- * The tooltip text that appears when hovering over the popout icon.
8476
- * Default: 'open in new window'
8477
- */
8478
- popout?: string;
8479
- }
8480
-
8481
7657
  /**
8482
7658
  * The LaunchEmitter is an `EventEmitter`. It can listen to app version resolver events.
8483
7659
  *
@@ -8909,7 +8085,7 @@ declare type LayoutEntityDefinition<TLayoutEntityType extends LayoutEntityTypes
8909
8085
  entityId: string;
8910
8086
  };
8911
8087
 
8912
- declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'root'>;
8088
+ declare type LayoutEntityTypes = 'column' | 'row' | 'stack';
8913
8089
 
8914
8090
  /**
8915
8091
  * @interface
@@ -13086,18 +12262,6 @@ declare type QueryPermissionResult = {
13086
12262
  rawValue?: unknown;
13087
12263
  };
13088
12264
 
13089
- declare interface ReactComponentConfig extends ItemConfig {
13090
- /**
13091
- * The name of the component as specified in layout.registerComponent. Mandatory if type is 'react-component'
13092
- */
13093
- component: string;
13094
-
13095
- /**
13096
- * Properties that will be passed to the component and accessible using this.props.
13097
- */
13098
- props?: any;
13099
- }
13100
-
13101
12265
  /**
13102
12266
  * @interface
13103
12267
  */
@@ -13574,97 +12738,6 @@ declare type SessionContextGroup = {
13574
12738
  }>;
13575
12739
  };
13576
12740
 
13577
- declare interface Settings {
13578
- preventSplitterResize?: boolean;
13579
-
13580
- newTabButton?: {
13581
- url?: string;
13582
- };
13583
-
13584
- /**
13585
- * If true, tabs can't be dragged into the window.
13586
- * Default: false
13587
- */
13588
- preventDragIn?: boolean;
13589
-
13590
- /**
13591
- * If true, tabs can't be dragged out of the window.
13592
- * Default: false
13593
- */
13594
- preventDragOut?: boolean;
13595
-
13596
- /**
13597
- * If true, stack headers are the only areas where tabs can be dropped.
13598
- * Default: false
13599
- */
13600
- constrainDragToHeaders?: boolean;
13601
- /**
13602
- * Turns headers on or off. If false, the layout will be displayed with splitters only.
13603
- * Default: true
13604
- */
13605
- hasHeaders?: boolean;
13606
-
13607
- /**
13608
- * (Unused in Openfin Platform) Constrains the area in which items can be dragged to the layout's container. Will be set to false
13609
- * automatically when layout.createDragSource() is called.
13610
- * Default: true
13611
- */
13612
- constrainDragToContainer?: boolean;
13613
-
13614
- /**
13615
- * If true, the user can re-arrange the layout by dragging items by their tabs to the desired location.
13616
- * Default: true
13617
- */
13618
- reorderEnabled?: boolean;
13619
-
13620
- /**
13621
- * If true, the user can select items by clicking on their header. This sets the value of layout.selectedItem to
13622
- * the clicked item, highlights its header and the layout emits a 'selectionChanged' event.
13623
- * Default: false
13624
- */
13625
- selectionEnabled?: boolean;
13626
-
13627
- /**
13628
- * Decides what will be opened in a new window if the user clicks the popout icon. If true the entire stack will
13629
- * be transferred to the new window, if false only the active component will be opened.
13630
- * Default: false
13631
- */
13632
- popoutWholeStack?: boolean;
13633
-
13634
- /**
13635
- * Specifies if an error is thrown when a popout is blocked by the browser (e.g. by opening it programmatically).
13636
- * If false, the popout call will fail silently.
13637
- * Default: true
13638
- */
13639
- blockedPopoutsThrowError?: boolean;
13640
-
13641
- /**
13642
- * Specifies if all popouts should be closed when the page that created them is closed. Popouts don't have a
13643
- * strong dependency on their parent and can exist on their own, but can be quite annoying to close by hand. In
13644
- * addition, any changes made to popouts won't be stored after the parent is closed.
13645
- * Default: true
13646
- */
13647
- closePopoutsOnUnload?: boolean;
13648
-
13649
- /**
13650
- * Specifies if the popout icon should be displayed in the header-bar.
13651
- * Default: true
13652
- */
13653
- showPopoutIcon?: boolean;
13654
-
13655
- /**
13656
- * Specifies if the maximise icon should be displayed in the header-bar.
13657
- * Default: true
13658
- */
13659
- showMaximiseIcon?: boolean;
13660
-
13661
- /**
13662
- * Specifies if the close icon should be displayed in the header-bar.
13663
- * Default: true
13664
- */
13665
- showCloseIcon?: boolean;
13666
- }
13667
-
13668
12741
  /**
13669
12742
  * @interface
13670
12743
  */
@@ -15567,59 +14640,6 @@ declare type SystemShutdownHandler = (shutdownEvent: {
15567
14640
  proceed: () => void;
15568
14641
  }) => void;
15569
14642
 
15570
- declare interface Tab {
15571
- _dragListener: TabDragListener;
15572
-
15573
- /**
15574
- * True if this tab is the selected tab
15575
- */
15576
- isActive: boolean;
15577
-
15578
- /**
15579
- * A reference to the header this tab is a child of
15580
- */
15581
- header: Header;
15582
-
15583
- /**
15584
- * A reference to the content item this tab relates to
15585
- */
15586
- contentItem: ContentItem;
15587
-
15588
- /**
15589
- * The tabs outer (jQuery) DOM element
15590
- */
15591
- element: JQuery;
15592
-
15593
- /**
15594
- * The (jQuery) DOM element containing the title
15595
- */
15596
- titleElement: JQuery;
15597
-
15598
- /**
15599
- * The (jQuery) DOM element that closes the tab
15600
- */
15601
- closeElement: JQuery;
15602
-
15603
- /**
15604
- * Sets the tab's title. Does not affect the contentItem's title!
15605
- * @param title The new title
15606
- */
15607
- setTitle(title: string): void;
15608
-
15609
- /**
15610
- * Sets this tab's active state. To programmatically switch tabs, use header.setActiveContentItem( item ) instead.
15611
- * @param isActive Whether the tab is active
15612
- */
15613
- setActive(isActive: boolean): void;
15614
- }
15615
-
15616
- declare interface TabDragListener extends EventEmitter_2 {
15617
- /**
15618
- * A reference to the content item this tab relates to
15619
- */
15620
- contentItem: ContentItem;
15621
- }
15622
-
15623
14643
  /**
15624
14644
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
15625
14645
  */