@scion/workbench 20.0.0-beta.9 → 21.0.0-beta.1
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/fesm2022/scion-workbench.mjs +1780 -1570
- package/fesm2022/scion-workbench.mjs.map +1 -1
- package/package.json +13 -13
- package/{index.d.ts → types/scion-workbench.d.ts} +780 -649
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _angular_cdk_portal from '@angular/cdk/portal';
|
|
2
2
|
import { ComponentType } from '@angular/cdk/portal';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, Signal, Injector, Type, EnvironmentProviders,
|
|
4
|
+
import { InjectionToken, Signal, Injector, Type, EnvironmentProviders, TemplateRef, WritableSignal, ComponentRef, Provider, ViewContainerRef, OnDestroy, OnInit, DestroyableInjector, AbstractType, ElementRef, StaticProvider, PipeTransform } from '@angular/core';
|
|
5
5
|
import { MicrofrontendPlatformConfig } from '@scion/microfrontend-platform';
|
|
6
|
-
import * as _angular_router from '@angular/router';
|
|
7
6
|
import { UrlSegment, NavigationExtras, ActivatedRoute, CanMatchFn } from '@angular/router';
|
|
8
7
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
9
8
|
import * as _scion_workbench from '@scion/workbench';
|
|
@@ -146,14 +145,6 @@ declare abstract class MicrofrontendPlatformConfigLoader {
|
|
|
146
145
|
* The id is different each time the app is reloaded. Different workbench windows have different ids.
|
|
147
146
|
*/
|
|
148
147
|
declare const WORKBENCH_ID: InjectionToken<string>;
|
|
149
|
-
/**
|
|
150
|
-
* Format of a view identifier.
|
|
151
|
-
*
|
|
152
|
-
* Each view is assigned a unique identifier (e.g., `view.d4de99fb`, `view.cad347dd`, etc.).
|
|
153
|
-
* A view can also have an alternative id, a meaningful but not necessarily unique name. A view can
|
|
154
|
-
* be identified either by its unique or alternative id.
|
|
155
|
-
*/
|
|
156
|
-
type ViewId = `${typeof VIEW_ID_PREFIX}${string}`;
|
|
157
148
|
/**
|
|
158
149
|
* Format of a part identifier.
|
|
159
150
|
*
|
|
@@ -162,6 +153,14 @@ type ViewId = `${typeof VIEW_ID_PREFIX}${string}`;
|
|
|
162
153
|
* be identified either by its unique or alternative id.
|
|
163
154
|
*/
|
|
164
155
|
type PartId = `${typeof PART_ID_PREFIX}${string}`;
|
|
156
|
+
/**
|
|
157
|
+
* Format of a view identifier.
|
|
158
|
+
*
|
|
159
|
+
* Each view is assigned a unique identifier (e.g., `view.d4de99fb`, `view.cad347dd`, etc.).
|
|
160
|
+
* A view can also have an alternative id, a meaningful but not necessarily unique name. A view can
|
|
161
|
+
* be identified either by its unique or alternative id.
|
|
162
|
+
*/
|
|
163
|
+
type ViewId = `${typeof VIEW_ID_PREFIX}${string}`;
|
|
165
164
|
/**
|
|
166
165
|
* Format of a dialog identifier.
|
|
167
166
|
*/
|
|
@@ -1046,7 +1045,7 @@ interface WorkbenchIconDescriptor {
|
|
|
1046
1045
|
*/
|
|
1047
1046
|
component: ComponentType<unknown>;
|
|
1048
1047
|
/**
|
|
1049
|
-
*
|
|
1048
|
+
* Specifies data to pass to the component. Inputs are available as input properties in the component.
|
|
1050
1049
|
*
|
|
1051
1050
|
* ```ts
|
|
1052
1051
|
* @Component({...})
|
|
@@ -1190,42 +1189,6 @@ declare abstract class WorkbenchConfig {
|
|
|
1190
1189
|
* Set to `false` to exclude all built-in menu items.
|
|
1191
1190
|
*/
|
|
1192
1191
|
abstract viewMenuItems?: ViewMenuItemsConfig | false;
|
|
1193
|
-
/**
|
|
1194
|
-
* Configures startup of the SCION Workbench.
|
|
1195
|
-
*
|
|
1196
|
-
* The SCION Workbench starts automatically when the `<wb-workbench>` component is added to the DOM. Alternatively,
|
|
1197
|
-
* the workbench can be started manually using {@link WorkbenchLauncher.launch}, such as in an app initializer or a route guard.
|
|
1198
|
-
*
|
|
1199
|
-
* The application can hook into the startup process of the SCION Workbench by providing one or more initializers to {@link provideWorkbenchInitializer}.
|
|
1200
|
-
* Initializers execute at defined points during startup, enabling the application's controlled initialization. The workbench is fully started once
|
|
1201
|
-
* all initializers have completed.
|
|
1202
|
-
*
|
|
1203
|
-
* The application can inject {@link WorkbenchStartup} to check if the workbench has completed startup.
|
|
1204
|
-
*/
|
|
1205
|
-
abstract startup?: {
|
|
1206
|
-
/**
|
|
1207
|
-
* Controls when to start the SCION Workbench. Defaults to `LAZY`.
|
|
1208
|
-
*
|
|
1209
|
-
* - **LAZY**
|
|
1210
|
-
* Starts the workbench when the `<wb-workbench>` component is added to the DOM or manually via {@link WorkbenchLauncher#launch},
|
|
1211
|
-
* e.g., from a route guard or app initializer.
|
|
1212
|
-
*
|
|
1213
|
-
* - **APP_INITIALIZER**
|
|
1214
|
-
* Starts the workbench during application bootstrapping, blocking Angular's app startup until the workbench is ready.
|
|
1215
|
-
* No splash is displayed.
|
|
1216
|
-
*
|
|
1217
|
-
* @deprecated since version 19.0.0-beta.3. To start the workbench in an app initializer, use Angular's `provideAppInitializer()` function: `provideAppInitializer(() => inject(WorkbenchLauncher).launch())`. Otherwise, no migration is necessary. No replacement. API will be removed in version 21.
|
|
1218
|
-
*/
|
|
1219
|
-
launcher?: 'LAZY' | 'APP_INITIALIZER';
|
|
1220
|
-
/**
|
|
1221
|
-
* Specifies the component to display in `<wb-workbench>` while the workbench is starting.
|
|
1222
|
-
*
|
|
1223
|
-
* Note: No splash screen is displayed when using the app initializer strategy.
|
|
1224
|
-
*
|
|
1225
|
-
* @deprecated since version 19.0.0-beta.3. Property has been moved. Configure the splash in `WorkbenchConfig.splashComponent`. Property will be removed in version 21.
|
|
1226
|
-
*/
|
|
1227
|
-
splash?: ComponentType<unknown>;
|
|
1228
|
-
};
|
|
1229
1192
|
/**
|
|
1230
1193
|
* Configures microfrontend support in the workbench, allowing the integration of microfrontends as workbench views or
|
|
1231
1194
|
* workbench popups.
|
|
@@ -1246,7 +1209,7 @@ declare abstract class WorkbenchConfig {
|
|
|
1246
1209
|
* "SCION Microfrontend Platform DevTools".
|
|
1247
1210
|
*
|
|
1248
1211
|
* Typically, the host app provides API to integrated micro apps via the intent mechanism. Consider registering intent handlers
|
|
1249
|
-
*
|
|
1212
|
+
* in an initializer function registered via {@link provideMicrofrontendPlatformInitializer}.
|
|
1250
1213
|
*/
|
|
1251
1214
|
abstract microfrontendPlatform?: MicrofrontendPlatformConfig | Type<MicrofrontendPlatformConfigLoader>;
|
|
1252
1215
|
/**
|
|
@@ -1387,20 +1350,6 @@ interface ViewMenuItemsConfig {
|
|
|
1387
1350
|
* Configures a built-in menu item.
|
|
1388
1351
|
*/
|
|
1389
1352
|
interface MenuItemConfig {
|
|
1390
|
-
/**
|
|
1391
|
-
* @deprecated since version 19.0.0-beta.2. Set to `false` in {@link ViewMenuItemsConfig} to exclude the menu item. API will be removed in version 21.
|
|
1392
|
-
*/
|
|
1393
|
-
visible?: boolean;
|
|
1394
|
-
/**
|
|
1395
|
-
* Specifies the text of this menu item.
|
|
1396
|
-
*
|
|
1397
|
-
* Can be a string or a function that returns a string or a {@link Signal}.
|
|
1398
|
-
*
|
|
1399
|
-
* The function can call `inject` to get any required dependencies, or use `toSignal` to convert an observable to a signal.
|
|
1400
|
-
*
|
|
1401
|
-
* @deprecated since version 19.0.0-beta.3. Register a text provider to change or localize menu item texts. Register the text provider via workbench configuration passed to the `provideWorkbench` function. API will be removed in version 21.
|
|
1402
|
-
*/
|
|
1403
|
-
text?: string | (() => string | Signal<string>);
|
|
1404
1353
|
accelerator?: string[];
|
|
1405
1354
|
group?: string;
|
|
1406
1355
|
cssClass?: string | string[];
|
|
@@ -1514,7 +1463,7 @@ interface Disposable {
|
|
|
1514
1463
|
*/
|
|
1515
1464
|
declare abstract class WorkbenchPart {
|
|
1516
1465
|
/**
|
|
1517
|
-
*
|
|
1466
|
+
* Identity of this part.
|
|
1518
1467
|
*/
|
|
1519
1468
|
abstract readonly id: PartId;
|
|
1520
1469
|
/**
|
|
@@ -1639,7 +1588,7 @@ interface WorkbenchPartNavigation {
|
|
|
1639
1588
|
*/
|
|
1640
1589
|
declare abstract class WorkbenchView {
|
|
1641
1590
|
/**
|
|
1642
|
-
*
|
|
1591
|
+
* Identity of this view.
|
|
1643
1592
|
*
|
|
1644
1593
|
* @see alternativeId
|
|
1645
1594
|
*/
|
|
@@ -1659,24 +1608,6 @@ declare abstract class WorkbenchView {
|
|
|
1659
1608
|
* A view can be navigated using {@link WorkbenchRouter#navigate} or {@link WorkbenchLayout#navigateView}.
|
|
1660
1609
|
*/
|
|
1661
1610
|
abstract readonly navigation: Signal<WorkbenchViewNavigation | undefined>;
|
|
1662
|
-
/**
|
|
1663
|
-
* Hint passed to the navigation.
|
|
1664
|
-
*
|
|
1665
|
-
* @deprecated since version 19.0.0-beta.2. Use {@link navigation.hint} instead. API will be removed in version 21.
|
|
1666
|
-
*/
|
|
1667
|
-
abstract readonly navigationHint: Signal<string | undefined>;
|
|
1668
|
-
/**
|
|
1669
|
-
* Data passed to the navigation.
|
|
1670
|
-
*
|
|
1671
|
-
* @deprecated since version 19.0.0-beta.2. Use {@link navigation.data} instead. API will be removed in version 21.
|
|
1672
|
-
*/
|
|
1673
|
-
abstract readonly navigationData: Signal<NavigationData>;
|
|
1674
|
-
/**
|
|
1675
|
-
* State passed to the navigation.
|
|
1676
|
-
*
|
|
1677
|
-
* @deprecated since version 19.0.0-beta.2. Use {@link navigation.state} instead. API will be removed in version 21.
|
|
1678
|
-
*/
|
|
1679
|
-
abstract readonly navigationState: Signal<NavigationState>;
|
|
1680
1611
|
/**
|
|
1681
1612
|
* Part which contains this view.
|
|
1682
1613
|
*
|
|
@@ -1741,12 +1672,6 @@ declare abstract class WorkbenchView {
|
|
|
1741
1672
|
* Menu items associated with this view.
|
|
1742
1673
|
*/
|
|
1743
1674
|
abstract readonly menuItems: Signal<WorkbenchMenuItem[]>;
|
|
1744
|
-
/**
|
|
1745
|
-
* URL associated with this view.
|
|
1746
|
-
*
|
|
1747
|
-
* @deprecated since version 19.0.0-beta.2. Use {@link navigation.path} instead. API will be removed in version 21.
|
|
1748
|
-
*/
|
|
1749
|
-
abstract readonly urlSegments: Signal<UrlSegment[]>;
|
|
1750
1675
|
/**
|
|
1751
1676
|
* Gets the activation instant of this view.
|
|
1752
1677
|
*/
|
|
@@ -1847,13 +1772,13 @@ interface WorkbenchViewNavigation {
|
|
|
1847
1772
|
/**
|
|
1848
1773
|
* Handle to interact with a dialog opened via {@link WorkbenchDialogService}.
|
|
1849
1774
|
*
|
|
1850
|
-
* The dialog component can inject this handle to interact with the dialog
|
|
1775
|
+
* The dialog component can inject this handle to interact with the dialog.
|
|
1851
1776
|
*
|
|
1852
1777
|
* Dialog inputs are available as input properties in the dialog component.
|
|
1853
1778
|
*/
|
|
1854
|
-
declare abstract class WorkbenchDialog
|
|
1779
|
+
declare abstract class WorkbenchDialog {
|
|
1855
1780
|
/**
|
|
1856
|
-
*
|
|
1781
|
+
* Identity of this dialog.
|
|
1857
1782
|
*/
|
|
1858
1783
|
abstract readonly id: DialogId;
|
|
1859
1784
|
/**
|
|
@@ -1864,7 +1789,7 @@ declare abstract class WorkbenchDialog<R = unknown> {
|
|
|
1864
1789
|
abstract get title(): Signal<Translatable | undefined>;
|
|
1865
1790
|
abstract set title(title: Translatable | undefined);
|
|
1866
1791
|
/**
|
|
1867
|
-
*
|
|
1792
|
+
* Sets the preferred dialog size. Defaults to the content's intrinsic size, constrained by min and max size, if set.
|
|
1868
1793
|
*/
|
|
1869
1794
|
abstract readonly size: WorkbenchDialogSize;
|
|
1870
1795
|
/**
|
|
@@ -1898,23 +1823,27 @@ declare abstract class WorkbenchDialog<R = unknown> {
|
|
|
1898
1823
|
/**
|
|
1899
1824
|
* Closes the dialog. Optionally, pass a result or an error to the dialog opener.
|
|
1900
1825
|
*/
|
|
1901
|
-
abstract close(result?: R | Error): void;
|
|
1826
|
+
abstract close<R>(result?: R | Error): void;
|
|
1902
1827
|
}
|
|
1903
1828
|
/**
|
|
1904
1829
|
* Represents the preferred dialog size.
|
|
1905
1830
|
*/
|
|
1906
1831
|
interface WorkbenchDialogSize {
|
|
1832
|
+
/**
|
|
1833
|
+
* Specifies the height of the dialog, constrained by {@link minHeight} and {@link maxHeight}, if any.
|
|
1834
|
+
*/
|
|
1835
|
+
get height(): Signal<string | undefined>;
|
|
1836
|
+
set height(height: string | undefined);
|
|
1837
|
+
/**
|
|
1838
|
+
* Specifies the width of the dialog, constrained by {@link minWidth} and {@link maxWidth}, if any.
|
|
1839
|
+
*/
|
|
1840
|
+
get width(): Signal<string | undefined>;
|
|
1841
|
+
set width(width: string | undefined);
|
|
1907
1842
|
/**
|
|
1908
1843
|
* Specifies the minimum height of the dialog.
|
|
1909
1844
|
*/
|
|
1910
1845
|
get minHeight(): Signal<string | undefined>;
|
|
1911
1846
|
set minHeight(minHeight: string | undefined);
|
|
1912
|
-
/**
|
|
1913
|
-
* Specifies the height of the dialog, displaying a vertical scrollbar if its content overflows.
|
|
1914
|
-
* If not specified, the dialog adapts its height to its context height, respecting any `minHeight' or `maxHeight' constraint.
|
|
1915
|
-
*/
|
|
1916
|
-
get height(): Signal<string | undefined>;
|
|
1917
|
-
set height(height: string | undefined);
|
|
1918
1847
|
/**
|
|
1919
1848
|
* Specifies the maximum height of the dialog.
|
|
1920
1849
|
*/
|
|
@@ -1925,12 +1854,6 @@ interface WorkbenchDialogSize {
|
|
|
1925
1854
|
*/
|
|
1926
1855
|
get minWidth(): Signal<string | undefined>;
|
|
1927
1856
|
set minWidth(minWidth: string | undefined);
|
|
1928
|
-
/**
|
|
1929
|
-
* Specifies the width of the dialog, displaying a horizontal scrollbar if its content overflows.
|
|
1930
|
-
* If not specified, the dialog adapts its width to its context width, respecting any `minWidth' or `maxWidth' constraint.
|
|
1931
|
-
*/
|
|
1932
|
-
get width(): Signal<string | undefined>;
|
|
1933
|
-
set width(width: string | undefined);
|
|
1934
1857
|
/**
|
|
1935
1858
|
* Specifies the maximum width of the dialog.
|
|
1936
1859
|
*/
|
|
@@ -1939,262 +1862,111 @@ interface WorkbenchDialogSize {
|
|
|
1939
1862
|
}
|
|
1940
1863
|
|
|
1941
1864
|
/**
|
|
1942
|
-
*
|
|
1943
|
-
|
|
1944
|
-
type PopupOrigin = (Point | TopLeftPoint | TopRightPoint | BottomLeftPoint | BottomRightPoint) & {
|
|
1945
|
-
width?: number;
|
|
1946
|
-
height?: number;
|
|
1947
|
-
};
|
|
1948
|
-
/**
|
|
1949
|
-
* Coordinate relative to the "x/y" corner of the view or page viewport.
|
|
1950
|
-
*/
|
|
1951
|
-
interface Point {
|
|
1952
|
-
x: number;
|
|
1953
|
-
y: number;
|
|
1954
|
-
}
|
|
1955
|
-
/**
|
|
1956
|
-
* Coordinate relative to the "top/left" corner of the view or page viewport.
|
|
1865
|
+
* A popup is a visual workbench element for displaying content above other content. The popup is positioned relative
|
|
1866
|
+
* to an anchor based on its preferred alignment. The anchor can be an element or a coordinate.
|
|
1957
1867
|
*
|
|
1958
|
-
*
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
}
|
|
1964
|
-
/**
|
|
1965
|
-
* Coordinate relative to the "top/right" corner of the view or page viewport.
|
|
1966
|
-
*/
|
|
1967
|
-
interface TopRightPoint {
|
|
1968
|
-
top: number;
|
|
1969
|
-
right: number;
|
|
1970
|
-
}
|
|
1971
|
-
/**
|
|
1972
|
-
* Coordinate relative to the "bottom/left" corner of the view or page viewport.
|
|
1973
|
-
*/
|
|
1974
|
-
interface BottomLeftPoint {
|
|
1975
|
-
bottom: number;
|
|
1976
|
-
left: number;
|
|
1977
|
-
}
|
|
1978
|
-
/**
|
|
1979
|
-
* Coordinate relative to the "bottom/right" corner of the view or page viewport.
|
|
1980
|
-
*/
|
|
1981
|
-
interface BottomRightPoint {
|
|
1982
|
-
bottom: number;
|
|
1983
|
-
right: number;
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
/**
|
|
1987
|
-
* Controls the appearance and behavior of a popup.
|
|
1868
|
+
* The popup component can inject this handle to interact with the popup.
|
|
1869
|
+
*
|
|
1870
|
+
* Popup inputs are available as input properties in the popup component.
|
|
1871
|
+
*
|
|
1872
|
+
* @see WorkbenchPopupService
|
|
1988
1873
|
*/
|
|
1989
|
-
declare abstract class
|
|
1990
|
-
/**
|
|
1991
|
-
* Controls where to open the popup.
|
|
1992
|
-
*
|
|
1993
|
-
* Can be an HTML element or a coordinate. The coordinate is relative to the {@link context}, defaulting to the calling context.
|
|
1994
|
-
*
|
|
1995
|
-
* Supported coordinate pairs:
|
|
1996
|
-
* - x/y: Relative to the top/left corner of the context.
|
|
1997
|
-
* - top/left: Same as x/y.
|
|
1998
|
-
* - top/right: Relative to the top/right corner of the context.
|
|
1999
|
-
* - bottom/left: Relative to the bottom/left corner of the context.
|
|
2000
|
-
* - bottom/right: Relative to the bottom/right corner of the context.
|
|
2001
|
-
*
|
|
2002
|
-
* Passing an Observable allows for updating the coordinate.
|
|
2003
|
-
*/
|
|
2004
|
-
abstract readonly anchor: ElementRef<Element> | Element | PopupOrigin | Observable<PopupOrigin>;
|
|
2005
|
-
/**
|
|
2006
|
-
* Specifies the component to display in the popup.
|
|
2007
|
-
*
|
|
2008
|
-
* In the component, you can inject the popup handle {@link WorkbenchPopup} to interact with the popup, such as to close it
|
|
2009
|
-
* or obtain its input data.
|
|
2010
|
-
*/
|
|
2011
|
-
abstract readonly component: Type<any>;
|
|
2012
|
-
/**
|
|
2013
|
-
* Instructs Angular how to construct the component. In most cases, construct options need not to be set.
|
|
2014
|
-
*/
|
|
2015
|
-
readonly componentConstructOptions?: {
|
|
2016
|
-
/**
|
|
2017
|
-
* Sets the injector for the instantiation of the popup component, giving you control over the objects available
|
|
2018
|
-
* for injection into the popup component. If not specified, uses the application's root injector, or the view's
|
|
2019
|
-
* injector if opened in the context of a view.
|
|
2020
|
-
*
|
|
2021
|
-
* ```ts
|
|
2022
|
-
* Injector.create({
|
|
2023
|
-
* parent: ...,
|
|
2024
|
-
* providers: [
|
|
2025
|
-
* {provide: <DiToken>, useValue: <value>}
|
|
2026
|
-
* ],
|
|
2027
|
-
* })
|
|
2028
|
-
* ```
|
|
2029
|
-
*/
|
|
2030
|
-
injector?: Injector;
|
|
2031
|
-
/**
|
|
2032
|
-
* Specifies providers to be registered with the popup injector. Unlike providers that are registered via a separate {@link injector},
|
|
2033
|
-
* passed providers are registered in the same injector as the popup handle itself, allowing for dependency injection of the popup handle.
|
|
2034
|
-
*/
|
|
2035
|
-
providers?: StaticProvider[];
|
|
2036
|
-
/**
|
|
2037
|
-
* Sets the component's attachment point in Angular's logical component tree (not the DOM tree used for rendering), effecting when
|
|
2038
|
-
* Angular checks the component for changes during a change detection cycle. If not set, inserts the component at the top level
|
|
2039
|
-
* in the component tree.
|
|
2040
|
-
*/
|
|
2041
|
-
viewContainerRef?: ViewContainerRef;
|
|
2042
|
-
};
|
|
2043
|
-
/**
|
|
2044
|
-
* Hint where to align the popup relative to the popup anchor, unless there is not enough space available in that area. By default,
|
|
2045
|
-
* if not specified, the popup opens north of the anchor.
|
|
2046
|
-
*/
|
|
2047
|
-
readonly align?: 'east' | 'west' | 'north' | 'south';
|
|
2048
|
-
/**
|
|
2049
|
-
* Optional data to pass to the popup component. In the component, you can inject the popup handle {@link WorkbenchPopup} to read input data.
|
|
2050
|
-
*/
|
|
2051
|
-
readonly input?: any;
|
|
1874
|
+
declare abstract class WorkbenchPopup {
|
|
2052
1875
|
/**
|
|
2053
|
-
*
|
|
1876
|
+
* Identity of this popup.
|
|
2054
1877
|
*/
|
|
2055
|
-
readonly
|
|
1878
|
+
abstract readonly id: PopupId;
|
|
2056
1879
|
/**
|
|
2057
|
-
*
|
|
1880
|
+
* Sets the preferred popup size. Defaults to the content's intrinsic size, constrained by min and max size, if set.
|
|
2058
1881
|
*/
|
|
2059
|
-
readonly size
|
|
1882
|
+
abstract readonly size: WorkbenchPopupSize;
|
|
2060
1883
|
/**
|
|
2061
1884
|
* Specifies CSS class(es) to add to the popup, e.g., to locate the popup in tests.
|
|
2062
1885
|
*/
|
|
2063
|
-
|
|
1886
|
+
abstract get cssClass(): Signal<string[]>;
|
|
1887
|
+
abstract set cssClass(cssClass: string | string[]);
|
|
2064
1888
|
/**
|
|
2065
|
-
*
|
|
2066
|
-
*
|
|
2067
|
-
* The popup is displayed only if the context is visible and closes when the context is disposed.
|
|
2068
|
-
*
|
|
2069
|
-
* Set to `null` to open the popup outside a context.
|
|
1889
|
+
* Indicates whether this popup has the focus.
|
|
2070
1890
|
*/
|
|
2071
|
-
abstract
|
|
2072
|
-
}
|
|
2073
|
-
/**
|
|
2074
|
-
* Specifies when to close the popup.
|
|
2075
|
-
*/
|
|
2076
|
-
interface CloseStrategy {
|
|
1891
|
+
abstract readonly focused: Signal<boolean>;
|
|
2077
1892
|
/**
|
|
2078
|
-
*
|
|
2079
|
-
* Defaults to `true`.
|
|
1893
|
+
* Sets a result that will be passed to the popup opener when the popup is closed on focus loss {@link CloseStrategy#onFocusLost}.
|
|
2080
1894
|
*/
|
|
2081
|
-
|
|
1895
|
+
abstract setResult<R>(result?: R): void;
|
|
2082
1896
|
/**
|
|
2083
|
-
*
|
|
2084
|
-
* No return value will be passed to the popup opener.
|
|
1897
|
+
* Closes the popup. Optionally, pass a result or an error to the popup opener.
|
|
2085
1898
|
*/
|
|
2086
|
-
|
|
1899
|
+
abstract close<R>(result?: R | Error): void;
|
|
2087
1900
|
}
|
|
2088
1901
|
/**
|
|
2089
|
-
* Represents the preferred
|
|
1902
|
+
* Represents the preferred size of a popup.
|
|
2090
1903
|
*/
|
|
2091
|
-
interface
|
|
1904
|
+
interface WorkbenchPopupSize {
|
|
2092
1905
|
/**
|
|
2093
|
-
* Specifies the
|
|
1906
|
+
* Specifies the height of the popup, constrained by {@link minHeight} and {@link maxHeight}, if any.
|
|
2094
1907
|
*/
|
|
2095
|
-
|
|
1908
|
+
get height(): Signal<string | undefined>;
|
|
1909
|
+
set height(height: string | undefined);
|
|
2096
1910
|
/**
|
|
2097
|
-
* Specifies the
|
|
1911
|
+
* Specifies the width of the popup, constrained by {@link minWidth} and {@link maxWidth}, if any.
|
|
2098
1912
|
*/
|
|
2099
|
-
|
|
1913
|
+
get width(): Signal<string | undefined>;
|
|
1914
|
+
set width(width: string | undefined);
|
|
2100
1915
|
/**
|
|
2101
|
-
* Specifies the
|
|
1916
|
+
* Specifies the minimum height of the popup.
|
|
2102
1917
|
*/
|
|
2103
|
-
|
|
1918
|
+
get minHeight(): Signal<string | undefined>;
|
|
1919
|
+
set minHeight(minHeight: string | undefined);
|
|
2104
1920
|
/**
|
|
2105
|
-
* Specifies the
|
|
1921
|
+
* Specifies the maximum height of the popup.
|
|
2106
1922
|
*/
|
|
2107
|
-
|
|
1923
|
+
get maxHeight(): Signal<string | undefined>;
|
|
1924
|
+
set maxHeight(maxHeight: string | undefined);
|
|
2108
1925
|
/**
|
|
2109
|
-
* Specifies the width of the popup.
|
|
1926
|
+
* Specifies the minimum width of the popup.
|
|
2110
1927
|
*/
|
|
2111
|
-
|
|
1928
|
+
get minWidth(): Signal<string | undefined>;
|
|
1929
|
+
set minWidth(minWidth: string | undefined);
|
|
2112
1930
|
/**
|
|
2113
|
-
* Specifies the
|
|
1931
|
+
* Specifies the maximum width of the popup.
|
|
2114
1932
|
*/
|
|
2115
|
-
maxWidth
|
|
1933
|
+
get maxWidth(): Signal<string | undefined>;
|
|
1934
|
+
set maxWidth(maxWidth: string | undefined);
|
|
2116
1935
|
}
|
|
1936
|
+
|
|
2117
1937
|
/**
|
|
2118
|
-
*
|
|
1938
|
+
* The signature of a function to confirm closing a view., e.g., if dirty.
|
|
1939
|
+
*
|
|
1940
|
+
* The function can call `inject` to get dependencies.
|
|
2119
1941
|
*/
|
|
2120
|
-
|
|
1942
|
+
type CanCloseFn = () => Observable<boolean> | Promise<boolean> | boolean;
|
|
1943
|
+
/**
|
|
1944
|
+
* Reference to a `CanClose` guard registered on a view.
|
|
1945
|
+
*/
|
|
1946
|
+
interface CanCloseRef {
|
|
2121
1947
|
/**
|
|
2122
|
-
*
|
|
1948
|
+
* Removes the `CanClose` guard from the view.
|
|
1949
|
+
*
|
|
1950
|
+
* Has no effect if another guard was registered in the meantime.
|
|
2123
1951
|
*/
|
|
2124
|
-
|
|
1952
|
+
dispose(): void;
|
|
2125
1953
|
}
|
|
2126
|
-
|
|
2127
1954
|
/**
|
|
2128
|
-
*
|
|
2129
|
-
*
|
|
2130
|
-
* The popup component can inject this handle to interact with the popup.
|
|
1955
|
+
* Represents an action of a {@link WorkbenchPart}.
|
|
2131
1956
|
*
|
|
2132
|
-
*
|
|
1957
|
+
* Part actions are displayed in the part bar, enabling interaction with the part and its content. Actions can be aligned to the left or right.
|
|
2133
1958
|
*/
|
|
2134
|
-
|
|
2135
|
-
/**
|
|
2136
|
-
* Unique identity of this popup.
|
|
2137
|
-
*/
|
|
2138
|
-
abstract readonly id: PopupId;
|
|
2139
|
-
/**
|
|
2140
|
-
* Input data as passed by the popup opener when opened the popup, or `undefined` if not passed.
|
|
2141
|
-
*/
|
|
2142
|
-
abstract readonly input: T | undefined;
|
|
1959
|
+
interface WorkbenchPartAction {
|
|
2143
1960
|
/**
|
|
2144
|
-
*
|
|
1961
|
+
* Specifies the content of the action.
|
|
1962
|
+
*
|
|
1963
|
+
* Use a {@link ComponentType} to render a component, or a {@link TemplateRef} to render a template.
|
|
1964
|
+
*
|
|
1965
|
+
* The component and template can inject the {@link WorkbenchPart}, either through dependency injection or default template-local variable (`let-part`).
|
|
2145
1966
|
*/
|
|
2146
|
-
|
|
1967
|
+
content: ComponentType<unknown> | TemplateRef<unknown>;
|
|
2147
1968
|
/**
|
|
2148
|
-
*
|
|
2149
|
-
*/
|
|
2150
|
-
abstract readonly cssClasses: string[];
|
|
2151
|
-
/**
|
|
2152
|
-
* Indicates whether this popup has the focus.
|
|
2153
|
-
*/
|
|
2154
|
-
abstract readonly focused: Signal<boolean>;
|
|
2155
|
-
/**
|
|
2156
|
-
* Sets a result that will be passed to the popup opener when the popup is closed on focus loss {@link CloseStrategy#onFocusLost}.
|
|
2157
|
-
*/
|
|
2158
|
-
abstract setResult(result?: R): void;
|
|
2159
|
-
/**
|
|
2160
|
-
* Closes the popup. Optionally, pass a result or an error to the popup opener.
|
|
2161
|
-
*/
|
|
2162
|
-
abstract close(result?: R | Error): void;
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
/**
|
|
2166
|
-
* The signature of a function to confirm closing a view., e.g., if dirty.
|
|
2167
|
-
*
|
|
2168
|
-
* The function can call `inject` to get dependencies.
|
|
2169
|
-
*/
|
|
2170
|
-
type CanCloseFn = () => Observable<boolean> | Promise<boolean> | boolean;
|
|
2171
|
-
/**
|
|
2172
|
-
* Reference to a `CanClose` guard registered on a view.
|
|
2173
|
-
*/
|
|
2174
|
-
interface CanCloseRef {
|
|
2175
|
-
/**
|
|
2176
|
-
* Removes the `CanClose` guard from the view.
|
|
2177
|
-
*
|
|
2178
|
-
* Has no effect if another guard was registered in the meantime.
|
|
2179
|
-
*/
|
|
2180
|
-
dispose(): void;
|
|
2181
|
-
}
|
|
2182
|
-
/**
|
|
2183
|
-
* Represents an action of a {@link WorkbenchPart}.
|
|
2184
|
-
*
|
|
2185
|
-
* Part actions are displayed in the part bar, enabling interaction with the part and its content. Actions can be aligned to the left or right.
|
|
2186
|
-
*/
|
|
2187
|
-
interface WorkbenchPartAction {
|
|
2188
|
-
/**
|
|
2189
|
-
* Specifies the content of the action.
|
|
2190
|
-
*
|
|
2191
|
-
* Use a {@link ComponentType} to render a component, or a {@link TemplateRef} to render a template.
|
|
2192
|
-
*
|
|
2193
|
-
* The component and template can inject the {@link WorkbenchPart}, either through dependency injection or default template-local variable (`let-part`).
|
|
2194
|
-
*/
|
|
2195
|
-
content: ComponentType<unknown> | TemplateRef<unknown>;
|
|
2196
|
-
/**
|
|
2197
|
-
* Optional data to pass to the component or template.
|
|
1969
|
+
* Specifies data to pass to the component or template.
|
|
2198
1970
|
*
|
|
2199
1971
|
* If using a component, inputs are available as input properties.
|
|
2200
1972
|
*
|
|
@@ -2253,7 +2025,7 @@ interface WorkbenchMenuItem {
|
|
|
2253
2025
|
*/
|
|
2254
2026
|
content: ComponentType<unknown> | TemplateRef<unknown>;
|
|
2255
2027
|
/**
|
|
2256
|
-
*
|
|
2028
|
+
* Specifies data to pass to the component or template.
|
|
2257
2029
|
*
|
|
2258
2030
|
* If using a component, inputs are available as input properties.
|
|
2259
2031
|
*
|
|
@@ -2334,21 +2106,6 @@ type WorkbenchPartActionFn = (part: WorkbenchPart) => WorkbenchPartAction | Comp
|
|
|
2334
2106
|
* Use Angular's `untracked` function to execute code outside this reactive context.
|
|
2335
2107
|
*/
|
|
2336
2108
|
type WorkbenchViewMenuItemFn = (view: WorkbenchView) => WorkbenchMenuItem | null;
|
|
2337
|
-
/**
|
|
2338
|
-
* Information about a workbench theme.
|
|
2339
|
-
*
|
|
2340
|
-
* @deprecated since version 19.0.0-beta.3. Read the theme from `WorkbenchService.settings.theme` signal, and the color scheme from 'getComputedStyle(inject(DOCUMENT).documentElement).colorScheme'. API will be removed in version 21.
|
|
2341
|
-
*/
|
|
2342
|
-
interface WorkbenchTheme {
|
|
2343
|
-
/**
|
|
2344
|
-
* The name of the theme.
|
|
2345
|
-
*/
|
|
2346
|
-
name: string;
|
|
2347
|
-
/**
|
|
2348
|
-
* The color scheme of the theme.
|
|
2349
|
-
*/
|
|
2350
|
-
colorScheme: 'light' | 'dark';
|
|
2351
|
-
}
|
|
2352
2109
|
/**
|
|
2353
2110
|
* Union of workbench elements.
|
|
2354
2111
|
*/
|
|
@@ -2514,19 +2271,6 @@ declare abstract class WorkbenchService {
|
|
|
2514
2271
|
* @return handle to unregister the menu item.
|
|
2515
2272
|
*/
|
|
2516
2273
|
abstract registerViewMenuItem(fn: WorkbenchViewMenuItemFn): Disposable;
|
|
2517
|
-
/**
|
|
2518
|
-
* Switches the theme of the workbench.
|
|
2519
|
-
*
|
|
2520
|
-
* Themes can be registered when loading the `@scion/workbench` SCSS module in the application's `styles.scss` file.
|
|
2521
|
-
* By default, SCION provides a light and a dark theme, `scion-light` and `scion-dark`.
|
|
2522
|
-
*
|
|
2523
|
-
* See the documentation of `@scion/workbench` SCSS module for more information.
|
|
2524
|
-
*
|
|
2525
|
-
* @param theme - The name of the theme to switch to.
|
|
2526
|
-
*
|
|
2527
|
-
* @deprecated since version 19.0.0-beta.3. Switch theme using `WorkbenchService.settings.theme` signal. API will be removed in version 21.
|
|
2528
|
-
*/
|
|
2529
|
-
abstract switchTheme(theme: string): Promise<void>;
|
|
2530
2274
|
/**
|
|
2531
2275
|
* Defines settings to adapt the workbench to personal preferences and working styles.
|
|
2532
2276
|
*
|
|
@@ -2558,12 +2302,6 @@ declare abstract class WorkbenchService {
|
|
|
2558
2302
|
* Provides the focused workbench element, or `null` if the focus is on a DOM element outside any workbench element.
|
|
2559
2303
|
*/
|
|
2560
2304
|
abstract readonly activeElement: Signal<WorkbenchElement | null>;
|
|
2561
|
-
/**
|
|
2562
|
-
* Provides the current workbench theme, if any.
|
|
2563
|
-
*
|
|
2564
|
-
* @deprecated since version 19.0.0-beta.3. Read the theme from `WorkbenchService.settings.theme` signal, and the color scheme from 'getComputedStyle(inject(DOCUMENT).documentElement).colorScheme'. API will be removed in version 21.
|
|
2565
|
-
*/
|
|
2566
|
-
abstract readonly theme: Signal<WorkbenchTheme | null>;
|
|
2567
2305
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchService, never>;
|
|
2568
2306
|
static ɵprov: i0.ɵɵInjectableDeclaration<WorkbenchService>;
|
|
2569
2307
|
}
|
|
@@ -2584,22 +2322,6 @@ declare abstract class WorkbenchStartup {
|
|
|
2584
2322
|
* After startup, the workbench layout is available.
|
|
2585
2323
|
*/
|
|
2586
2324
|
abstract readonly whenDone: Promise<void>;
|
|
2587
|
-
/**
|
|
2588
|
-
* Indicates whether the workbench has completed startup.
|
|
2589
|
-
*
|
|
2590
|
-
* After startup, the workbench layout is available.
|
|
2591
|
-
*
|
|
2592
|
-
* @deprecated since version 19.0.0-beta.3. Use `WorkbenchStartup.done` instead. API will be removed in version 21.
|
|
2593
|
-
*/
|
|
2594
|
-
abstract readonly isStarted: Signal<boolean>;
|
|
2595
|
-
/**
|
|
2596
|
-
* Resolves when the workbench completes startup.
|
|
2597
|
-
*
|
|
2598
|
-
* After startup, the workbench layout is available.
|
|
2599
|
-
*
|
|
2600
|
-
* @deprecated since version 19.0.0-beta.3. Use `WorkbenchStartup.whenDone` instead. API will be removed in version 21.
|
|
2601
|
-
*/
|
|
2602
|
-
abstract readonly whenStarted: Promise<true>;
|
|
2603
2325
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchStartup, never>;
|
|
2604
2326
|
static ɵprov: i0.ɵɵInjectableDeclaration<WorkbenchStartup>;
|
|
2605
2327
|
}
|
|
@@ -3710,6 +3432,10 @@ interface PortalOptions {
|
|
|
3710
3432
|
* Providers registered with the injector for the instantiation of the component.
|
|
3711
3433
|
*/
|
|
3712
3434
|
providers?: Provider[];
|
|
3435
|
+
/**
|
|
3436
|
+
* Optional name used in portal lifecycle logs.
|
|
3437
|
+
*/
|
|
3438
|
+
debugName?: string;
|
|
3713
3439
|
}
|
|
3714
3440
|
/**
|
|
3715
3441
|
* Lifecycle hook for the component rendered by {@link WbComponentPortal} after attached to the DOM.
|
|
@@ -4136,7 +3862,6 @@ declare class DesktopSlotComponent implements OnAttach, OnDetach {
|
|
|
4136
3862
|
private readonly _host;
|
|
4137
3863
|
private readonly _document;
|
|
4138
3864
|
private readonly _viewport;
|
|
4139
|
-
private readonly _logger;
|
|
4140
3865
|
private _scrollTop;
|
|
4141
3866
|
private _scrollLeft;
|
|
4142
3867
|
private _activeElementBeforeDetach;
|
|
@@ -4149,7 +3874,6 @@ declare class DesktopSlotComponent implements OnAttach, OnDetach {
|
|
|
4149
3874
|
* Method invoked before detaching this component from the DOM.
|
|
4150
3875
|
*/
|
|
4151
3876
|
onDetach(): void;
|
|
4152
|
-
protected onLegacyDesktopActivate(): void;
|
|
4153
3877
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesktopSlotComponent, never>;
|
|
4154
3878
|
static ɵcmp: i0.ɵɵComponentDeclaration<DesktopSlotComponent, "wb-desktop-slot", never, {}, {}, never, never, true, never>;
|
|
4155
3879
|
}
|
|
@@ -4221,7 +3945,6 @@ declare class PartComponent implements OnInit {
|
|
|
4221
3945
|
* Constructs view components of inactive views, so they can initialize, e.g., to set the view tab title.
|
|
4222
3946
|
*/
|
|
4223
3947
|
private constructInactiveViewComponents;
|
|
4224
|
-
private addHostCssClasses;
|
|
4225
3948
|
private installComponentLifecycleLogger;
|
|
4226
3949
|
static ɵfac: i0.ɵɵFactoryDeclaration<PartComponent, never>;
|
|
4227
3950
|
static ɵcmp: i0.ɵɵComponentDeclaration<PartComponent, "wb-part", never, {}, {}, never, never, true, never>;
|
|
@@ -4232,9 +3955,9 @@ declare class PartComponent implements OnInit {
|
|
|
4232
3955
|
*/
|
|
4233
3956
|
interface WorkbenchDialogOptions {
|
|
4234
3957
|
/**
|
|
4235
|
-
*
|
|
3958
|
+
* Specifies data to pass to the dialog component. Inputs are available as input properties in the dialog component.
|
|
4236
3959
|
*
|
|
4237
|
-
*
|
|
3960
|
+
* @example - Reading inputs in the component
|
|
4238
3961
|
* ```ts
|
|
4239
3962
|
* public someInput = input.required<string>();
|
|
4240
3963
|
* ```
|
|
@@ -4260,13 +3983,12 @@ interface WorkbenchDialogOptions {
|
|
|
4260
3983
|
*
|
|
4261
3984
|
* Set to `null` to open the dialog outside a context.
|
|
4262
3985
|
*/
|
|
4263
|
-
context?: ViewId | PartId | DialogId | PopupId | Context$
|
|
3986
|
+
context?: ViewId | PartId | DialogId | PopupId | Context$3 | null;
|
|
4264
3987
|
/**
|
|
4265
|
-
*
|
|
4266
|
-
* for injection
|
|
4267
|
-
* injector if opened in the context of a view.
|
|
3988
|
+
* Specifies the injector for the instantiation of the dialog, giving control over the objects available
|
|
3989
|
+
* for injection in the dialog component. Defaults to the application's root injector.
|
|
4268
3990
|
*
|
|
4269
|
-
*
|
|
3991
|
+
* @example - Creating an injector with a DI token
|
|
4270
3992
|
* ```ts
|
|
4271
3993
|
* Injector.create({
|
|
4272
3994
|
* parent: ...,
|
|
@@ -4277,6 +3999,12 @@ interface WorkbenchDialogOptions {
|
|
|
4277
3999
|
* ```
|
|
4278
4000
|
*/
|
|
4279
4001
|
injector?: Injector;
|
|
4002
|
+
/**
|
|
4003
|
+
* Specifies providers available for injection in the dialog component.
|
|
4004
|
+
*
|
|
4005
|
+
* Providers can inject {@link WorkbenchDialog} to interact with the dialog.
|
|
4006
|
+
*/
|
|
4007
|
+
providers?: Provider[];
|
|
4280
4008
|
/**
|
|
4281
4009
|
* Specifies CSS class(es) to add to the dialog, e.g., to locate the dialog in tests.
|
|
4282
4010
|
*/
|
|
@@ -4293,7 +4021,7 @@ type ViewModality$1 = 'view';
|
|
|
4293
4021
|
/**
|
|
4294
4022
|
* @deprecated since version 20.0.0-beta.9. Set view id directly. Migrate `{context: {viewId: 'view.x'}}` to `{context: 'view.x'}`. Marked for removal in version 22.
|
|
4295
4023
|
*/
|
|
4296
|
-
interface Context$
|
|
4024
|
+
interface Context$3 {
|
|
4297
4025
|
/**
|
|
4298
4026
|
* @deprecated since version 20.0.0-beta.9. Set view id directly. Migrate `{context: {viewId: 'view.x'}}` to `{context: 'view.x'}`. Marked for removal in version 22.
|
|
4299
4027
|
*/
|
|
@@ -4403,7 +4131,7 @@ interface WorkbenchInvocationContext {
|
|
|
4403
4131
|
}
|
|
4404
4132
|
|
|
4405
4133
|
/** @inheritDoc */
|
|
4406
|
-
declare class ɵWorkbenchDialog
|
|
4134
|
+
declare class ɵWorkbenchDialog implements WorkbenchDialog, Blockable, Blocking {
|
|
4407
4135
|
id: DialogId;
|
|
4408
4136
|
component: ComponentType<unknown>;
|
|
4409
4137
|
invocationContext: WorkbenchInvocationContext | null;
|
|
@@ -4439,9 +4167,9 @@ declare class ɵWorkbenchDialog<R = unknown> implements WorkbenchDialog<R>, Bloc
|
|
|
4439
4167
|
/**
|
|
4440
4168
|
* Waits for the dialog to close, resolving to its result or rejecting if closed with an error.
|
|
4441
4169
|
*/
|
|
4442
|
-
waitForClose(): Promise<R | undefined>;
|
|
4170
|
+
waitForClose<R>(): Promise<R | undefined>;
|
|
4443
4171
|
/** @inheritDoc */
|
|
4444
|
-
close(result?: R | Error): void;
|
|
4172
|
+
close<R>(result?: R | Error): void;
|
|
4445
4173
|
/**
|
|
4446
4174
|
* Inputs passed to the dialog.
|
|
4447
4175
|
*/
|
|
@@ -4638,7 +4366,6 @@ declare class ViewSlotComponent implements OnAttach, OnDetach {
|
|
|
4638
4366
|
*/
|
|
4639
4367
|
onDetach(): void;
|
|
4640
4368
|
private installMenuAccelerators;
|
|
4641
|
-
private addHostCssClasses;
|
|
4642
4369
|
/**
|
|
4643
4370
|
* Unsets the active workbench element if this view was the focused element when its part is deactivated,
|
|
4644
4371
|
* such as when closing the activity containing this view. Otherwise, the active element would not be unset.
|
|
@@ -4671,10 +4398,6 @@ declare class ɵWorkbenchView implements WorkbenchView, Blockable {
|
|
|
4671
4398
|
private readonly _scrolledIntoView;
|
|
4672
4399
|
alternativeId: string | undefined;
|
|
4673
4400
|
readonly navigation: i0.WritableSignal<WorkbenchViewNavigation | undefined>;
|
|
4674
|
-
readonly navigationHint: Signal<string | undefined>;
|
|
4675
|
-
readonly navigationData: Signal<_scion_workbench.NavigationData>;
|
|
4676
|
-
readonly navigationState: Signal<_scion_workbench.NavigationState>;
|
|
4677
|
-
readonly urlSegments: Signal<_angular_router.UrlSegment[]>;
|
|
4678
4401
|
readonly position: Signal<number>;
|
|
4679
4402
|
readonly first: Signal<boolean>;
|
|
4680
4403
|
readonly last: Signal<boolean>;
|
|
@@ -4843,11 +4566,195 @@ declare class ɵWorkbenchPerspective implements WorkbenchPerspective {
|
|
|
4843
4566
|
destroy(): void;
|
|
4844
4567
|
}
|
|
4845
4568
|
|
|
4569
|
+
/**
|
|
4570
|
+
* Represents a point on the page or view, optionally with a dimension, where a workbench popup should be attached.
|
|
4571
|
+
*/
|
|
4572
|
+
type PopupOrigin = (Point | TopLeftPoint | TopRightPoint | BottomLeftPoint | BottomRightPoint) & {
|
|
4573
|
+
width?: number;
|
|
4574
|
+
height?: number;
|
|
4575
|
+
};
|
|
4576
|
+
/**
|
|
4577
|
+
* Coordinate relative to the "x/y" corner of the view or page viewport.
|
|
4578
|
+
*/
|
|
4579
|
+
interface Point {
|
|
4580
|
+
x: number;
|
|
4581
|
+
y: number;
|
|
4582
|
+
}
|
|
4583
|
+
/**
|
|
4584
|
+
* Coordinate relative to the "top/left" corner of the view or page viewport.
|
|
4585
|
+
*
|
|
4586
|
+
* This is equivalent to passing a "x/y" coordinate as {@link Point}.
|
|
4587
|
+
*/
|
|
4588
|
+
interface TopLeftPoint {
|
|
4589
|
+
top: number;
|
|
4590
|
+
left: number;
|
|
4591
|
+
}
|
|
4592
|
+
/**
|
|
4593
|
+
* Coordinate relative to the "top/right" corner of the view or page viewport.
|
|
4594
|
+
*/
|
|
4595
|
+
interface TopRightPoint {
|
|
4596
|
+
top: number;
|
|
4597
|
+
right: number;
|
|
4598
|
+
}
|
|
4599
|
+
/**
|
|
4600
|
+
* Coordinate relative to the "bottom/left" corner of the view or page viewport.
|
|
4601
|
+
*/
|
|
4602
|
+
interface BottomLeftPoint {
|
|
4603
|
+
bottom: number;
|
|
4604
|
+
left: number;
|
|
4605
|
+
}
|
|
4606
|
+
/**
|
|
4607
|
+
* Coordinate relative to the "bottom/right" corner of the view or page viewport.
|
|
4608
|
+
*/
|
|
4609
|
+
interface BottomRightPoint {
|
|
4610
|
+
bottom: number;
|
|
4611
|
+
right: number;
|
|
4612
|
+
}
|
|
4613
|
+
|
|
4614
|
+
/**
|
|
4615
|
+
* Controls the appearance and behavior of a popup.
|
|
4616
|
+
*/
|
|
4617
|
+
interface WorkbenchPopupOptions {
|
|
4618
|
+
/**
|
|
4619
|
+
* Controls where to open the popup.
|
|
4620
|
+
*
|
|
4621
|
+
* Can be an HTML element or a coordinate. The coordinate is relative to the {@link context}, defaulting to the calling context.
|
|
4622
|
+
*
|
|
4623
|
+
* Supported coordinate pairs:
|
|
4624
|
+
* - x/y: Relative to the top/left corner of the context.
|
|
4625
|
+
* - top/left: Same as x/y.
|
|
4626
|
+
* - top/right: Relative to the top/right corner of the context.
|
|
4627
|
+
* - bottom/left: Relative to the bottom/left corner of the context.
|
|
4628
|
+
* - bottom/right: Relative to the bottom/right corner of the context.
|
|
4629
|
+
*
|
|
4630
|
+
* Passing an Observable allows for updating the coordinate.
|
|
4631
|
+
*/
|
|
4632
|
+
anchor: ElementRef<Element> | Element | PopupOrigin | Observable<PopupOrigin>;
|
|
4633
|
+
/**
|
|
4634
|
+
* Controls where to align the popup relative to the popup anchor, unless there is not enough space available in that area. Defaults to `north`.
|
|
4635
|
+
*/
|
|
4636
|
+
align?: 'east' | 'west' | 'north' | 'south';
|
|
4637
|
+
/**
|
|
4638
|
+
* Specifies data to pass to the popup component. Inputs are available as input properties in the popup component.
|
|
4639
|
+
*
|
|
4640
|
+
* @example - Reading inputs in the component
|
|
4641
|
+
* ```ts
|
|
4642
|
+
* public someInput = input.required<string>();
|
|
4643
|
+
* ```
|
|
4644
|
+
*/
|
|
4645
|
+
inputs?: {
|
|
4646
|
+
[name: string]: unknown;
|
|
4647
|
+
};
|
|
4648
|
+
/**
|
|
4649
|
+
* Controls when to close the popup.
|
|
4650
|
+
*/
|
|
4651
|
+
closeStrategy?: CloseStrategy$1;
|
|
4652
|
+
/**
|
|
4653
|
+
* Specifies the preferred popup size. Defaults to the content's intrinsic size, constrained by min and max size, if set.
|
|
4654
|
+
*
|
|
4655
|
+
* @deprecated since version 21.0.0-beta.1. Popup size should be set by the popup component. To migrate, inject `WorkbenchPopup` into the popup component and set the size via the `WorkbenchPopup.size` property. Marked for removal in version 22.
|
|
4656
|
+
*/
|
|
4657
|
+
size?: {
|
|
4658
|
+
minHeight?: string;
|
|
4659
|
+
height?: string;
|
|
4660
|
+
maxHeight?: string;
|
|
4661
|
+
minWidth?: string;
|
|
4662
|
+
width?: string;
|
|
4663
|
+
maxWidth?: string;
|
|
4664
|
+
};
|
|
4665
|
+
/**
|
|
4666
|
+
* Specifies CSS class(es) to add to the popup, e.g., to locate the popup in tests.
|
|
4667
|
+
*/
|
|
4668
|
+
cssClass?: string | string[];
|
|
4669
|
+
/**
|
|
4670
|
+
* Binds the popup to a context (e.g., a part or view). Defaults to the calling context.
|
|
4671
|
+
*
|
|
4672
|
+
* The popup is displayed only if the context is visible and closes when the context is disposed.
|
|
4673
|
+
*
|
|
4674
|
+
* Set to `null` to open the popup outside a context.
|
|
4675
|
+
*/
|
|
4676
|
+
context?: ViewId | PartId | DialogId | PopupId | Context$2 | null;
|
|
4677
|
+
/**
|
|
4678
|
+
* Specifies the injector for the instantiation of the popup, giving control over the objects available
|
|
4679
|
+
* for injection in the popup component. Defaults to the application's root injector.
|
|
4680
|
+
*
|
|
4681
|
+
* @example - Creating an injector with a DI token
|
|
4682
|
+
* ```ts
|
|
4683
|
+
* Injector.create({
|
|
4684
|
+
* parent: ...,
|
|
4685
|
+
* providers: [
|
|
4686
|
+
* {provide: <TOKEN>, useValue: <VALUE>}
|
|
4687
|
+
* ],
|
|
4688
|
+
* })
|
|
4689
|
+
* ```
|
|
4690
|
+
*/
|
|
4691
|
+
injector?: Injector;
|
|
4692
|
+
/**
|
|
4693
|
+
* Specifies providers available for injection in the popup component.
|
|
4694
|
+
*
|
|
4695
|
+
* Providers can inject {@link WorkbenchPopup} to interact with the popup.
|
|
4696
|
+
*/
|
|
4697
|
+
providers?: Provider[];
|
|
4698
|
+
}
|
|
4699
|
+
/**
|
|
4700
|
+
* Specifies when to close the popup.
|
|
4701
|
+
*/
|
|
4702
|
+
interface CloseStrategy$1 {
|
|
4703
|
+
/**
|
|
4704
|
+
* Controls if to close the popup on focus loss, returning the result set via {@link WorkbenchPopup#setResult} to the popup opener.
|
|
4705
|
+
* Defaults to `true`.
|
|
4706
|
+
*/
|
|
4707
|
+
onFocusLost?: boolean;
|
|
4708
|
+
/**
|
|
4709
|
+
* Controls if to close the popup when pressing escape. Defaults to `true`.
|
|
4710
|
+
*
|
|
4711
|
+
* No return value will be returned to the popup opener.
|
|
4712
|
+
*/
|
|
4713
|
+
onEscape?: boolean;
|
|
4714
|
+
}
|
|
4715
|
+
/**
|
|
4716
|
+
* @deprecated since version 20.0.0-beta.9. Set view id directly. Migrate `{context: {viewId: 'view.x'}}` to `{context: 'view.x'}`. Marked for removal in version 22.
|
|
4717
|
+
*/
|
|
4718
|
+
interface Context$2 {
|
|
4719
|
+
/**
|
|
4720
|
+
* @deprecated since version 20.0.0-beta.9. Set view id directly. Migrate `{context: {viewId: 'view.x'}}` to `{context: 'view.x'}`. Marked for removal in version 22.
|
|
4721
|
+
*/
|
|
4722
|
+
viewId?: ViewId | null;
|
|
4723
|
+
}
|
|
4724
|
+
|
|
4725
|
+
/**
|
|
4726
|
+
* A popup is a visual workbench element for displaying content above other content. The popup is positioned relative
|
|
4727
|
+
* to an anchor based on its preferred alignment. The anchor can be an element or a coordinate.
|
|
4728
|
+
*
|
|
4729
|
+
* The popup component can inject this handle to interact with the popup.
|
|
4730
|
+
*
|
|
4731
|
+
* Popup inputs are available as input properties in the popup component.
|
|
4732
|
+
*
|
|
4733
|
+
* @see WorkbenchPopupService
|
|
4734
|
+
*
|
|
4735
|
+
* @deprecated since version 21.0.0-beta.1. Replaced by `WorkbenchPopup`. Marked for removal in version 22.
|
|
4736
|
+
*/
|
|
4737
|
+
declare abstract class Popup<T = unknown, R = unknown> extends WorkbenchPopup {
|
|
4738
|
+
/**
|
|
4739
|
+
* Input data as passed by the popup opener when opened the popup, or `undefined` if not passed.
|
|
4740
|
+
*
|
|
4741
|
+
* @deprecated since version 21.0.0-beta.1. Use `WorkbenchPopupService` to open popups. Inputs are available as input properties in the popup component. Marked for removal in version 22.
|
|
4742
|
+
*/
|
|
4743
|
+
abstract readonly input: T | undefined;
|
|
4744
|
+
/**
|
|
4745
|
+
* CSS classes associated with the popup.
|
|
4746
|
+
*
|
|
4747
|
+
* @deprecated since version 21.0.0-beta.1. Use `WorkbenchPopup.cssClass` instead. Marked for removal in version 22.
|
|
4748
|
+
*/
|
|
4749
|
+
abstract readonly cssClasses: string[];
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4846
4752
|
/** @inheritDoc */
|
|
4847
|
-
declare class ɵWorkbenchPopup
|
|
4753
|
+
declare class ɵWorkbenchPopup implements Popup, WorkbenchPopup, Blockable {
|
|
4848
4754
|
id: PopupId;
|
|
4755
|
+
component: ComponentType<unknown>;
|
|
4849
4756
|
invocationContext: WorkbenchInvocationContext | null;
|
|
4850
|
-
private
|
|
4757
|
+
private _options;
|
|
4851
4758
|
/** Injector for the popup; destroyed when the popup is closed. */
|
|
4852
4759
|
readonly injector: DestroyableInjector;
|
|
4853
4760
|
private readonly _overlayRef;
|
|
@@ -4855,27 +4762,28 @@ declare class ɵWorkbenchPopup<T = unknown, R = unknown> implements WorkbenchPop
|
|
|
4855
4762
|
private readonly _portal;
|
|
4856
4763
|
private readonly _componentRef;
|
|
4857
4764
|
private readonly _popupOrigin;
|
|
4858
|
-
readonly
|
|
4765
|
+
private readonly _cssClass;
|
|
4766
|
+
readonly size: WorkbenchPopupSize;
|
|
4859
4767
|
readonly focused: Signal<boolean>;
|
|
4860
4768
|
readonly attached: Signal<boolean>;
|
|
4861
|
-
readonly destroyed:
|
|
4769
|
+
readonly destroyed: WritableSignal<boolean>;
|
|
4862
4770
|
readonly bounds: Signal<DOMRect | undefined>;
|
|
4863
4771
|
readonly blockedBy: Signal<ɵWorkbenchDialog | null>;
|
|
4864
|
-
|
|
4865
|
-
|
|
4772
|
+
readonly input: unknown | undefined;
|
|
4773
|
+
result: unknown | Error | undefined;
|
|
4774
|
+
constructor(id: PopupId, component: ComponentType<unknown>, invocationContext: WorkbenchInvocationContext | null, _options: WorkbenchPopupOptions);
|
|
4866
4775
|
/**
|
|
4867
4776
|
* Waits for the popup to close, resolving to its result or rejecting if closed with an error.
|
|
4868
4777
|
*/
|
|
4869
|
-
waitForClose(): Promise<R | undefined>;
|
|
4778
|
+
waitForClose<R>(): Promise<R | undefined>;
|
|
4870
4779
|
/**
|
|
4871
|
-
* Creates a portal to render {@link
|
|
4780
|
+
* Creates a portal to render {@link WorkbenchPopupComponent} in the popup's injection context.
|
|
4872
4781
|
*/
|
|
4873
4782
|
private createPortal;
|
|
4874
4783
|
/**
|
|
4875
4784
|
* Creates a dedicated overlay per popup to place it on top of previously created overlays, such as dialogs, popups, dropdowns, etc.
|
|
4876
4785
|
*/
|
|
4877
4786
|
private createOverlay;
|
|
4878
|
-
private focus;
|
|
4879
4787
|
/**
|
|
4880
4788
|
* Moves the popup with the anchor.
|
|
4881
4789
|
*/
|
|
@@ -4909,15 +4817,21 @@ declare class ɵWorkbenchPopup<T = unknown, R = unknown> implements WorkbenchPop
|
|
|
4909
4817
|
*/
|
|
4910
4818
|
private trackPopupOrigin;
|
|
4911
4819
|
/** @inheritDoc */
|
|
4912
|
-
setResult(result?: R): void;
|
|
4820
|
+
setResult<R>(result?: R): void;
|
|
4913
4821
|
/** @inheritDoc */
|
|
4914
|
-
close(result?: R | Error): void;
|
|
4822
|
+
close<R>(result?: R | Error): void;
|
|
4915
4823
|
/** @inheritDoc */
|
|
4916
|
-
get
|
|
4824
|
+
get cssClass(): Signal<string[]>;
|
|
4917
4825
|
/** @inheritDoc */
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
get
|
|
4826
|
+
set cssClass(cssClass: string | string[]);
|
|
4827
|
+
set cssClasses(cssClasses: string[]);
|
|
4828
|
+
get cssClasses(): string[];
|
|
4829
|
+
/**
|
|
4830
|
+
* Inputs passed to the popup.
|
|
4831
|
+
*/
|
|
4832
|
+
get inputs(): {
|
|
4833
|
+
[name: string]: unknown;
|
|
4834
|
+
} | undefined;
|
|
4921
4835
|
/**
|
|
4922
4836
|
* Destroys this popup and associated resources.
|
|
4923
4837
|
*/
|
|
@@ -4934,15 +4848,14 @@ declare class ɵWorkbenchService implements WorkbenchService {
|
|
|
4934
4848
|
private readonly _partActionRegistry;
|
|
4935
4849
|
private readonly _viewMenuItemRegistry;
|
|
4936
4850
|
private readonly _perspectiveService;
|
|
4937
|
-
readonly layout: Signal<ɵWorkbenchLayout>;
|
|
4938
|
-
readonly perspectives: Signal<ɵWorkbenchPerspective[]>;
|
|
4939
|
-
readonly parts: Signal<ɵWorkbenchPart[]>;
|
|
4940
|
-
readonly views: Signal<ɵWorkbenchView[]>;
|
|
4941
|
-
readonly dialogs: Signal<ɵWorkbenchDialog
|
|
4942
|
-
readonly popups: Signal<ɵWorkbenchPopup
|
|
4943
|
-
readonly activePerspective: Signal<ɵWorkbenchPerspective | undefined>;
|
|
4944
|
-
readonly activeElement: Signal<_scion_workbench.WorkbenchElement | null>;
|
|
4945
|
-
readonly theme: Signal<WorkbenchTheme | null>;
|
|
4851
|
+
readonly layout: i0.Signal<ɵWorkbenchLayout>;
|
|
4852
|
+
readonly perspectives: i0.Signal<ɵWorkbenchPerspective[]>;
|
|
4853
|
+
readonly parts: i0.Signal<ɵWorkbenchPart[]>;
|
|
4854
|
+
readonly views: i0.Signal<ɵWorkbenchView[]>;
|
|
4855
|
+
readonly dialogs: i0.Signal<ɵWorkbenchDialog[]>;
|
|
4856
|
+
readonly popups: i0.Signal<ɵWorkbenchPopup[]>;
|
|
4857
|
+
readonly activePerspective: i0.Signal<ɵWorkbenchPerspective | undefined>;
|
|
4858
|
+
readonly activeElement: i0.Signal<_scion_workbench.WorkbenchElement | null>;
|
|
4946
4859
|
readonly settings: {
|
|
4947
4860
|
theme: i0.WritableSignal<string | null>;
|
|
4948
4861
|
panelAlignment: i0.WritableSignal<"justify">;
|
|
@@ -4970,9 +4883,6 @@ declare class ɵWorkbenchService implements WorkbenchService {
|
|
|
4970
4883
|
registerPartAction(fn: WorkbenchPartActionFn): Disposable;
|
|
4971
4884
|
/** @inheritDoc */
|
|
4972
4885
|
registerViewMenuItem(fn: WorkbenchViewMenuItemFn): Disposable;
|
|
4973
|
-
/** @inheritDoc */
|
|
4974
|
-
switchTheme(theme: string): Promise<void>;
|
|
4975
|
-
private computeLegacyThemeObject;
|
|
4976
4886
|
static ɵfac: i0.ɵɵFactoryDeclaration<ɵWorkbenchService, never>;
|
|
4977
4887
|
static ɵprov: i0.ɵɵInjectableDeclaration<ɵWorkbenchService>;
|
|
4978
4888
|
}
|
|
@@ -5507,16 +5417,17 @@ interface WorkbenchMessageBoxOptions {
|
|
|
5507
5417
|
*
|
|
5508
5418
|
* Set to `null` to open the message box outside a context.
|
|
5509
5419
|
*/
|
|
5510
|
-
context?: ViewId | PartId | DialogId | PopupId | Context | null;
|
|
5420
|
+
context?: ViewId | PartId | DialogId | PopupId | Context$1 | null;
|
|
5511
5421
|
/**
|
|
5512
5422
|
* Specifies if the user can select text displayed in the message box. Defaults to `false`.
|
|
5513
5423
|
*/
|
|
5514
5424
|
contentSelectable?: boolean;
|
|
5515
5425
|
/**
|
|
5516
|
-
* Specifies data available as input properties in the message component.
|
|
5426
|
+
* Specifies data to pass to the message component. Inputs are available as input properties in the message component.
|
|
5517
5427
|
*
|
|
5518
|
-
*
|
|
5428
|
+
* Has no effect if opening a plain text message.
|
|
5519
5429
|
*
|
|
5430
|
+
* @example - Reading inputs in the component
|
|
5520
5431
|
* ```ts
|
|
5521
5432
|
* public someInput = input.required<string>();
|
|
5522
5433
|
* ```
|
|
@@ -5525,12 +5436,10 @@ interface WorkbenchMessageBoxOptions {
|
|
|
5525
5436
|
[name: string]: unknown;
|
|
5526
5437
|
};
|
|
5527
5438
|
/**
|
|
5528
|
-
* Specifies the injector for the instantiation of the message
|
|
5439
|
+
* Specifies the injector for the instantiation of the message box, giving control over the objects available
|
|
5440
|
+
* for injection in the message component. Defaults to the application's root injector.
|
|
5529
5441
|
*
|
|
5530
|
-
*
|
|
5531
|
-
*
|
|
5532
|
-
* A custom injector gives control over the objects available for injection into the message component. If not specified, uses the
|
|
5533
|
-
* application's root injector, or the view's injector if opened in the context of a view.
|
|
5442
|
+
* @example - Creating an injector with a DI token
|
|
5534
5443
|
*
|
|
5535
5444
|
* ```ts
|
|
5536
5445
|
* Injector.create({
|
|
@@ -5542,6 +5451,12 @@ interface WorkbenchMessageBoxOptions {
|
|
|
5542
5451
|
* ```
|
|
5543
5452
|
*/
|
|
5544
5453
|
injector?: Injector;
|
|
5454
|
+
/**
|
|
5455
|
+
* Specifies providers available for injection in the message component.
|
|
5456
|
+
*
|
|
5457
|
+
* Providers can inject {@link WorkbenchMessageBox} to interact with the message.
|
|
5458
|
+
*/
|
|
5459
|
+
providers?: Provider[];
|
|
5545
5460
|
/**
|
|
5546
5461
|
* Specifies CSS class(es) to add to the message box, e.g., to locate the message box in tests.
|
|
5547
5462
|
*/
|
|
@@ -5554,7 +5469,7 @@ type ViewModality = 'view';
|
|
|
5554
5469
|
/**
|
|
5555
5470
|
* @deprecated since version 20.0.0-beta.9. Set view id directly. Migrate `{context: {viewId: 'view.x'}}` to `{context: 'view.x'}`. Marked for removal in version 22.
|
|
5556
5471
|
*/
|
|
5557
|
-
interface Context {
|
|
5472
|
+
interface Context$1 {
|
|
5558
5473
|
/**
|
|
5559
5474
|
* @deprecated since version 20.0.0-beta.9. Set view id directly. Migrate `{context: {viewId: 'view.x'}}` to `{context: 'view.x'}`. Marked for removal in version 22.
|
|
5560
5475
|
*/
|
|
@@ -5622,8 +5537,9 @@ declare abstract class WorkbenchMessageBoxService {
|
|
|
5622
5537
|
*
|
|
5623
5538
|
* By default, the message box is modal to the calling context. Specify a different modality in {@link WorkbenchMessageBoxOptions.modality}.
|
|
5624
5539
|
*
|
|
5625
|
-
* Data can be passed to the component as inputs via {@link WorkbenchMessageBoxOptions.inputs}
|
|
5626
|
-
*
|
|
5540
|
+
* Data can be passed to the component as inputs via {@link WorkbenchMessageBoxOptions.inputs} option. Inputs are available as input
|
|
5541
|
+
* properties in the component. Alternatively, data can be passed for injection via a custom injector ({@link WorkbenchMessageBoxOptions.injector})
|
|
5542
|
+
* or providers ({@link WorkbenchMessageBoxOptions.providers}).
|
|
5627
5543
|
*
|
|
5628
5544
|
* @example
|
|
5629
5545
|
* ```ts
|
|
@@ -5747,8 +5663,9 @@ declare abstract class WorkbenchDialogService {
|
|
|
5747
5663
|
*
|
|
5748
5664
|
* By default, the dialog is modal to the calling context. Specify a different modality in {@link WorkbenchDialogOptions.modality}.
|
|
5749
5665
|
*
|
|
5750
|
-
* Data can be passed to the component as inputs via {@link WorkbenchDialogOptions.inputs}
|
|
5751
|
-
*
|
|
5666
|
+
* Data can be passed to the component as inputs via {@link WorkbenchDialogOptions.inputs} option. Inputs are available as input
|
|
5667
|
+
* properties in the component. Alternatively, data can be passed for injection via a custom injector ({@link WorkbenchDialogOptions.injector})
|
|
5668
|
+
* or providers ({@link WorkbenchDialogOptions.providers}).
|
|
5752
5669
|
*
|
|
5753
5670
|
* @param component - Specifies the component to display in the dialog.
|
|
5754
5671
|
* @param options - Controls the appearance and behavior of the dialog.
|
|
@@ -5765,22 +5682,20 @@ declare abstract class WorkbenchDialogService {
|
|
|
5765
5682
|
*
|
|
5766
5683
|
* A notification is a closable message that appears in the upper-right corner and disappears automatically after a few seconds.
|
|
5767
5684
|
* It informs the user of a system event, e.g., that a task has been completed or an error has occurred.
|
|
5685
|
+
*
|
|
5686
|
+
* @deprecated since version 21.0.0-beta.1. Replaced by `WorkbenchNotification`. Marked for removal in version 22.
|
|
5768
5687
|
*/
|
|
5769
5688
|
declare abstract class Notification<T = any> {
|
|
5770
5689
|
/**
|
|
5771
5690
|
* Input data as passed by the notification opener, or `undefined` if not passed.
|
|
5772
5691
|
*/
|
|
5773
5692
|
readonly input: T | undefined;
|
|
5774
|
-
/**
|
|
5775
|
-
* Sets the title of the notification.
|
|
5776
|
-
*/
|
|
5777
|
-
abstract setTitle(title: Translatable | undefined): void;
|
|
5778
5693
|
/**
|
|
5779
5694
|
* Sets the title of the notification.
|
|
5780
5695
|
*
|
|
5781
|
-
*
|
|
5696
|
+
* Can be text or a translation key. A translation key starts with the percent symbol (`%`) and may include parameters in matrix notation for text interpolation.
|
|
5782
5697
|
*/
|
|
5783
|
-
abstract setTitle(title:
|
|
5698
|
+
abstract setTitle(title: Translatable | undefined): void;
|
|
5784
5699
|
/**
|
|
5785
5700
|
* Sets the severity of the notification.
|
|
5786
5701
|
*/
|
|
@@ -5801,23 +5716,17 @@ declare abstract class Notification<T = any> {
|
|
|
5801
5716
|
}
|
|
5802
5717
|
|
|
5803
5718
|
/**
|
|
5804
|
-
*
|
|
5805
|
-
*
|
|
5806
|
-
* A notification is a closable message that appears in the upper-right corner and disappears automatically after a few seconds.
|
|
5807
|
-
* It informs the user of a system event, e.g., that a task has been completed or an error has occurred.
|
|
5719
|
+
* Controls the appearance and behavior of a notification.
|
|
5808
5720
|
*
|
|
5809
|
-
*
|
|
5810
|
-
* displayed at any given time.
|
|
5721
|
+
* @deprecated since version 21.0.0-beta.1. Replaced by `WorkbenchNotificationOptions`. Use `WorkbenchNotificationService` to show notifications. Marked for removal in version 22.
|
|
5811
5722
|
*/
|
|
5812
5723
|
interface NotificationConfig {
|
|
5813
5724
|
/**
|
|
5814
5725
|
* Optional title of the notification.
|
|
5815
5726
|
*
|
|
5816
5727
|
* Can be text or a translation key. A translation key starts with the percent symbol (`%`) and may include parameters in matrix notation for text interpolation.
|
|
5817
|
-
*
|
|
5818
|
-
* TODO [Angular 21] Passing an Observable is deprecated. To migrate, pass a translatable and provide the text using a text provider registered in `WorkbenchClient.registerTextProvider`. API will be removed in version 21.
|
|
5819
5728
|
*/
|
|
5820
|
-
title?: Translatable
|
|
5729
|
+
title?: Translatable;
|
|
5821
5730
|
/**
|
|
5822
5731
|
* Content of the notification, can be either a plain text message or a component.
|
|
5823
5732
|
*
|
|
@@ -5852,7 +5761,7 @@ interface NotificationConfig {
|
|
|
5852
5761
|
viewContainerRef?: ViewContainerRef;
|
|
5853
5762
|
};
|
|
5854
5763
|
/**
|
|
5855
|
-
*
|
|
5764
|
+
* Specifies data to pass to the notification component. In the component, you can inject the notification handle {@link Notification} to
|
|
5856
5765
|
* read input data. Use only in combination with a custom notification component, has no effect otherwise.
|
|
5857
5766
|
*/
|
|
5858
5767
|
componentInput?: unknown;
|
|
@@ -5888,51 +5797,184 @@ interface NotificationConfig {
|
|
|
5888
5797
|
}
|
|
5889
5798
|
|
|
5890
5799
|
/**
|
|
5891
|
-
*
|
|
5800
|
+
* Shows a notification.
|
|
5892
5801
|
*
|
|
5893
|
-
* A notification is a closable message
|
|
5894
|
-
* It informs
|
|
5802
|
+
* A notification is a closable message displayed in the upper-right corner that disappears after a few seconds unless hovered.
|
|
5803
|
+
* It informs about system events, task completion or errors. The severity indicates importance or urgency.
|
|
5804
|
+
*
|
|
5805
|
+
* Notifications can be grouped. Only the most recent notification within a group is displayed.
|
|
5895
5806
|
*
|
|
5896
|
-
*
|
|
5897
|
-
* displayed.
|
|
5807
|
+
* Content can be plain text or structured. Pressing Escape closes the notification.
|
|
5898
5808
|
*
|
|
5899
|
-
*
|
|
5809
|
+
* @deprecated since version 21.0.0-beta.1. Use `WorkbenchNotificationService` to show notifications. Marked for removal in version 22.
|
|
5900
5810
|
*/
|
|
5901
5811
|
declare class NotificationService {
|
|
5902
|
-
private readonly
|
|
5903
|
-
private readonly _injector;
|
|
5904
|
-
private readonly _document;
|
|
5905
|
-
private readonly _notifications$;
|
|
5906
|
-
constructor();
|
|
5812
|
+
private readonly _notificationService;
|
|
5907
5813
|
/**
|
|
5908
|
-
*
|
|
5814
|
+
* Displays the specified text or component as workbench notification.
|
|
5909
5815
|
*
|
|
5910
|
-
*
|
|
5816
|
+
* @param notification - Configures content and appearance of the notification.
|
|
5911
5817
|
*
|
|
5912
|
-
*
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5818
|
+
* @deprecated since version 21.0.0-beta.1. Use `WorkbenchNotificationService` to show notifications. Marked for removal in version 22.
|
|
5819
|
+
*/
|
|
5820
|
+
notify(notification: Translatable | NotificationConfig): void;
|
|
5821
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
5822
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5825
|
+
/**
|
|
5826
|
+
* A notification is a closable message displayed in the upper-right corner that disappears after a few seconds unless hovered.
|
|
5827
|
+
* It informs about system events, task completion or errors. The severity indicates importance or urgency.
|
|
5828
|
+
*
|
|
5829
|
+
* The notification component can inject this handle to interact with the notification.
|
|
5830
|
+
*
|
|
5831
|
+
* Notification inputs are available as input properties in the notification component.
|
|
5832
|
+
*
|
|
5833
|
+
* @see WorkbenchNotificationService
|
|
5834
|
+
*/
|
|
5835
|
+
declare abstract class WorkbenchNotification {
|
|
5836
|
+
/**
|
|
5837
|
+
* Sets the title of the notification.
|
|
5838
|
+
*
|
|
5839
|
+
* Can be text or a translation key. A translation key starts with the percent symbol (`%`) and may include parameters in matrix notation for text interpolation.
|
|
5840
|
+
*/
|
|
5841
|
+
abstract get title(): Signal<Translatable | undefined>;
|
|
5842
|
+
abstract set title(title: Translatable | undefined);
|
|
5843
|
+
/**
|
|
5844
|
+
* Sets the severity of the notification to indicate importance or urgency.
|
|
5845
|
+
*/
|
|
5846
|
+
abstract get severity(): Signal<'info' | 'warn' | 'error'>;
|
|
5847
|
+
abstract set severity(severity: 'info' | 'warn' | 'error');
|
|
5848
|
+
/**
|
|
5849
|
+
* Controls how long to display the notification.
|
|
5850
|
+
*
|
|
5851
|
+
* Can be a duration alias, or milliseconds.
|
|
5852
|
+
*/
|
|
5853
|
+
abstract get duration(): Signal<'short' | 'medium' | 'long' | 'infinite' | number>;
|
|
5854
|
+
abstract set duration(duration: 'short' | 'medium' | 'long' | 'infinite' | number);
|
|
5855
|
+
/**
|
|
5856
|
+
* Specifies CSS class(es) to add to the notification, e.g., to locate the notification in tests.
|
|
5857
|
+
*/
|
|
5858
|
+
abstract get cssClass(): Signal<string[]>;
|
|
5859
|
+
abstract set cssClass(cssClass: string | string[]);
|
|
5860
|
+
/**
|
|
5861
|
+
* Closes the notification.
|
|
5862
|
+
*/
|
|
5863
|
+
abstract close(): void;
|
|
5864
|
+
}
|
|
5865
|
+
|
|
5866
|
+
/**
|
|
5867
|
+
* Controls the appearance and behavior of a notification.
|
|
5868
|
+
*/
|
|
5869
|
+
interface WorkbenchNotificationOptions {
|
|
5870
|
+
/**
|
|
5871
|
+
* Specifies the title of the notification.
|
|
5872
|
+
*
|
|
5873
|
+
* Can be text or a translation key. A translation key starts with the percent symbol (`%`) and may include parameters in matrix notation for text interpolation.
|
|
5874
|
+
*/
|
|
5875
|
+
title?: Translatable;
|
|
5876
|
+
/**
|
|
5877
|
+
* Specifies the severity of the notification. Defaults to `info`.
|
|
5878
|
+
*/
|
|
5879
|
+
severity?: 'info' | 'warn' | 'error';
|
|
5880
|
+
/**
|
|
5881
|
+
* Controls how long to display the notification.
|
|
5882
|
+
*
|
|
5883
|
+
* Can be a duration alias, or milliseconds.
|
|
5884
|
+
*/
|
|
5885
|
+
duration?: 'short' | 'medium' | 'long' | 'infinite' | number;
|
|
5886
|
+
/**
|
|
5887
|
+
* Specifies the group to which the notification belongs. Only the most recent notification within a group is displayed.
|
|
5888
|
+
*/
|
|
5889
|
+
group?: string;
|
|
5890
|
+
/**
|
|
5891
|
+
* Enables aggregation of input values of notifications of the same group.
|
|
5892
|
+
*
|
|
5893
|
+
* Use with {@link group} to combine inputs of notifications of the same group.
|
|
5894
|
+
*
|
|
5895
|
+
* The reducer is invoked with inputs of the previous notification, if still displaying, and inputs of the new notification.
|
|
5896
|
+
* The returned input is passed to the new notification.
|
|
5897
|
+
*/
|
|
5898
|
+
groupInputReduceFn?: (prevInput: {
|
|
5899
|
+
[name: string]: unknown;
|
|
5900
|
+
}, currInput: {
|
|
5901
|
+
[name: string]: unknown;
|
|
5902
|
+
}) => {
|
|
5903
|
+
[name: string]: unknown;
|
|
5904
|
+
};
|
|
5905
|
+
/**
|
|
5906
|
+
* Specifies data to pass to the notification component. Inputs are available as input properties in the notification component.
|
|
5907
|
+
*
|
|
5908
|
+
* Has no effect if opening a plain text notification.
|
|
5909
|
+
*
|
|
5910
|
+
* @example - Reading inputs in the component
|
|
5911
|
+
* ```ts
|
|
5912
|
+
* public someInput = input.required<string>();
|
|
5919
5913
|
* ```
|
|
5914
|
+
*/
|
|
5915
|
+
inputs?: {
|
|
5916
|
+
[name: string]: unknown;
|
|
5917
|
+
};
|
|
5918
|
+
/**
|
|
5919
|
+
* Specifies the injector for the instantiation of the notification, giving control over the objects available
|
|
5920
|
+
* for injection in the notification component. Defaults to the application's root injector.
|
|
5920
5921
|
*
|
|
5921
|
-
* @
|
|
5922
|
+
* @example - Creating an injector with a DI token
|
|
5923
|
+
*
|
|
5924
|
+
* ```ts
|
|
5925
|
+
* Injector.create({
|
|
5926
|
+
* parent: ...,
|
|
5927
|
+
* providers: [
|
|
5928
|
+
* {provide: <TOKEN>, useValue: <VALUE>}
|
|
5929
|
+
* ],
|
|
5930
|
+
* })
|
|
5931
|
+
* ```
|
|
5922
5932
|
*/
|
|
5923
|
-
|
|
5924
|
-
private addNotification;
|
|
5933
|
+
injector?: Injector;
|
|
5925
5934
|
/**
|
|
5926
|
-
*
|
|
5935
|
+
* Specifies providers available for injection in the notification component.
|
|
5936
|
+
*
|
|
5937
|
+
* Providers can inject {@link WorkbenchNotification} to interact with the notification.
|
|
5927
5938
|
*/
|
|
5928
|
-
|
|
5929
|
-
private get notifications();
|
|
5939
|
+
providers?: Provider[];
|
|
5930
5940
|
/**
|
|
5931
|
-
*
|
|
5941
|
+
* Specifies CSS class(es) to add to the notification, e.g., to locate the notification in tests.
|
|
5932
5942
|
*/
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5943
|
+
cssClass?: string | string[];
|
|
5944
|
+
}
|
|
5945
|
+
|
|
5946
|
+
/**
|
|
5947
|
+
* Shows a notification.
|
|
5948
|
+
*
|
|
5949
|
+
* A notification is a closable message displayed in the upper-right corner that disappears after a few seconds unless hovered.
|
|
5950
|
+
* It informs about system events, task completion or errors. The severity indicates importance or urgency.
|
|
5951
|
+
*
|
|
5952
|
+
* Notifications can be grouped. Only the most recent notification within a group is displayed.
|
|
5953
|
+
*
|
|
5954
|
+
* Content can be plain text or structured. Pressing Escape closes the notification.
|
|
5955
|
+
*/
|
|
5956
|
+
declare abstract class WorkbenchNotificationService {
|
|
5957
|
+
/**
|
|
5958
|
+
* Displays the specified message as workbench notification.
|
|
5959
|
+
*
|
|
5960
|
+
* @param message - Specifies the text to display.
|
|
5961
|
+
* Can be text or a translation key. A translation key starts with the percent symbol (`%`) and may include parameters in matrix notation for text interpolation.
|
|
5962
|
+
* @param options - Controls the appearance and behavior of the notification.
|
|
5963
|
+
*/
|
|
5964
|
+
abstract show(message: Translatable, options?: WorkbenchNotificationOptions): void;
|
|
5965
|
+
/**
|
|
5966
|
+
* Displays the specified component as workbench notification.
|
|
5967
|
+
*
|
|
5968
|
+
* Data can be passed to the component as inputs via {@link WorkbenchNotificationOptions.inputs} option. Inputs are available as input
|
|
5969
|
+
* properties in the component. Alternatively, data can be passed for injection via a custom injector ({@link WorkbenchNotificationOptions.injector})
|
|
5970
|
+
* or providers ({@link WorkbenchNotificationOptions.providers}).
|
|
5971
|
+
*
|
|
5972
|
+
* @param component - Specifies the component to render as the notification.
|
|
5973
|
+
* @param options - Controls the appearance and behavior of the notification.
|
|
5974
|
+
*/
|
|
5975
|
+
abstract show(component: ComponentType<unknown>, options?: WorkbenchNotificationOptions): void;
|
|
5976
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchNotificationService, never>;
|
|
5977
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WorkbenchNotificationService>;
|
|
5936
5978
|
}
|
|
5937
5979
|
|
|
5938
5980
|
/**
|
|
@@ -5951,197 +5993,192 @@ declare abstract class WorkbenchPopupService {
|
|
|
5951
5993
|
*
|
|
5952
5994
|
* An anchor is used to position the popup based on its preferred alignment. The anchor can be an element or a coordinate.
|
|
5953
5995
|
*
|
|
5954
|
-
* Data can be passed to the component via {@link
|
|
5955
|
-
*
|
|
5996
|
+
* Data can be passed to the component as inputs via {@link WorkbenchPopupOptions.inputs} option. Inputs are available as input
|
|
5997
|
+
* properties in the component. Alternatively, data can be passed for injection via a custom injector ({@link WorkbenchPopupOptions.injector})
|
|
5998
|
+
* or providers ({@link WorkbenchPopupOptions.providers}).
|
|
5956
5999
|
*
|
|
5957
6000
|
* By default, the popup closes on focus loss or when pressing the escape key.
|
|
5958
6001
|
*
|
|
5959
|
-
* @param
|
|
6002
|
+
* @param component - Specifies the component to display in the popup.
|
|
6003
|
+
* @param options - Controls the appearance and behavior of the popup.
|
|
5960
6004
|
* @returns Promise that resolves to the popup result, if any, or that rejects if the popup couldn't be opened or was closed with an error.
|
|
5961
6005
|
*/
|
|
5962
|
-
abstract open<R>(
|
|
6006
|
+
abstract open<R>(component: ComponentType<unknown>, options: WorkbenchPopupOptions): Promise<R | undefined>;
|
|
5963
6007
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchPopupService, never>;
|
|
5964
6008
|
static ɵprov: i0.ɵɵInjectableDeclaration<WorkbenchPopupService>;
|
|
5965
6009
|
}
|
|
5966
6010
|
|
|
5967
6011
|
/**
|
|
5968
|
-
*
|
|
6012
|
+
* Controls the appearance and behavior of a popup.
|
|
6013
|
+
*
|
|
6014
|
+
* @deprecated since version 21.0.0-beta.1. Replaced by `WorkbenchPopupOptions`. Use `WorkbenchPopupService` to open popups. Marked for removal in version 22.
|
|
5969
6015
|
*/
|
|
5970
|
-
declare
|
|
6016
|
+
declare abstract class PopupConfig {
|
|
5971
6017
|
/**
|
|
5972
|
-
*
|
|
6018
|
+
* Controls where to open the popup.
|
|
6019
|
+
*
|
|
6020
|
+
* Can be an HTML element or a coordinate. The coordinate is relative to the {@link context}, defaulting to the calling context.
|
|
6021
|
+
*
|
|
6022
|
+
* Supported coordinate pairs:
|
|
6023
|
+
* - x/y: Relative to the top/left corner of the context.
|
|
6024
|
+
* - top/left: Same as x/y.
|
|
6025
|
+
* - top/right: Relative to the top/right corner of the context.
|
|
6026
|
+
* - bottom/left: Relative to the bottom/left corner of the context.
|
|
6027
|
+
* - bottom/right: Relative to the bottom/right corner of the context.
|
|
6028
|
+
*
|
|
6029
|
+
* Passing an Observable allows for updating the coordinate.
|
|
5973
6030
|
*/
|
|
5974
|
-
readonly
|
|
5975
|
-
};
|
|
5976
|
-
|
|
5977
|
-
/**
|
|
5978
|
-
* Registers a function that is executed during the startup of the SCION Workbench.
|
|
5979
|
-
*
|
|
5980
|
-
* Initializers help to run initialization tasks (synchronous or asynchronous) during startup of the SCION Workbench.
|
|
5981
|
-
* The workbench is fully started once all initializers have completed.
|
|
5982
|
-
*
|
|
5983
|
-
* Initializers can specify a phase for execution. Initializers in lower phases execute before initializers in higher phases.
|
|
5984
|
-
* Initializers in the same phase may execute in parallel. If no phase is specified, the initializer executes in the `Startup` phase.
|
|
5985
|
-
*
|
|
5986
|
-
* Available phases, in order of execution:
|
|
5987
|
-
* - {@link WorkbenchStartupPhase.PreStartup}
|
|
5988
|
-
* - {@link WorkbenchStartupPhase.Startup}
|
|
5989
|
-
* - {@link WorkbenchStartupPhase.PostStartup}
|
|
5990
|
-
*
|
|
5991
|
-
* The function can call `inject` to get any required dependencies.
|
|
5992
|
-
*
|
|
5993
|
-
* @param initializerFn - Specifies the function to execute.
|
|
5994
|
-
* @param options - Controls execution of the function.
|
|
5995
|
-
* @return A set of dependency-injection providers to be registered in Angular.
|
|
5996
|
-
*/
|
|
5997
|
-
declare function provideWorkbenchInitializer(initializerFn: WorkbenchInitializerFn, options?: WorkbenchInitializerOptions): EnvironmentProviders;
|
|
5998
|
-
/**
|
|
5999
|
-
* Controls the execution of an initializer function during the startup of the SCION Workbench.
|
|
6000
|
-
*/
|
|
6001
|
-
interface WorkbenchInitializerOptions {
|
|
6031
|
+
abstract readonly anchor: ElementRef<Element> | Element | PopupOrigin | Observable<PopupOrigin>;
|
|
6002
6032
|
/**
|
|
6003
|
-
*
|
|
6033
|
+
* Specifies the component to display in the popup.
|
|
6034
|
+
*
|
|
6035
|
+
* In the component, you can inject the popup handle {@link WorkbenchPopup} to interact with the popup, such as to close it
|
|
6036
|
+
* or obtain its input data.
|
|
6004
6037
|
*/
|
|
6005
|
-
|
|
6006
|
-
}
|
|
6007
|
-
/**
|
|
6008
|
-
* Enumeration of phases for running a {@link WorkbenchInitializerFn} function during the startup of the SCION Workbench.
|
|
6009
|
-
*
|
|
6010
|
-
* Functions associated with the same phase may run in parallel. Defaults to {@link Startup} phase.
|
|
6011
|
-
*/
|
|
6012
|
-
declare enum WorkbenchStartupPhase {
|
|
6038
|
+
abstract readonly component: Type<any>;
|
|
6013
6039
|
/**
|
|
6014
|
-
*
|
|
6040
|
+
* Instructs Angular how to construct the component. In most cases, construct options need not to be set.
|
|
6015
6041
|
*/
|
|
6016
|
-
|
|
6042
|
+
readonly componentConstructOptions?: {
|
|
6043
|
+
/**
|
|
6044
|
+
* Sets the injector for the instantiation of the popup component, giving you control over the objects available
|
|
6045
|
+
* for injection into the popup component. If not specified, uses the application's root injector, or the view's
|
|
6046
|
+
* injector if opened in the context of a view.
|
|
6047
|
+
*
|
|
6048
|
+
* ```ts
|
|
6049
|
+
* Injector.create({
|
|
6050
|
+
* parent: ...,
|
|
6051
|
+
* providers: [
|
|
6052
|
+
* {provide: <DiToken>, useValue: <value>}
|
|
6053
|
+
* ],
|
|
6054
|
+
* })
|
|
6055
|
+
* ```
|
|
6056
|
+
*/
|
|
6057
|
+
injector?: Injector;
|
|
6058
|
+
/**
|
|
6059
|
+
* Specifies providers to be registered with the popup injector. Unlike providers that are registered via a separate {@link injector},
|
|
6060
|
+
* passed providers are registered in the same injector as the popup handle itself, allowing for dependency injection of the popup handle.
|
|
6061
|
+
*/
|
|
6062
|
+
providers?: StaticProvider[];
|
|
6063
|
+
/**
|
|
6064
|
+
* Sets the component's attachment point in Angular's logical component tree (not the DOM tree used for rendering), effecting when
|
|
6065
|
+
* Angular checks the component for changes during a change detection cycle. If not set, inserts the component at the top level
|
|
6066
|
+
* in the component tree.
|
|
6067
|
+
*
|
|
6068
|
+
* @deprecated since version 21.0.0-beta.1. Marked for removal. No replacement as not required anymore.
|
|
6069
|
+
*/
|
|
6070
|
+
viewContainerRef?: ViewContainerRef;
|
|
6071
|
+
};
|
|
6017
6072
|
/**
|
|
6018
|
-
*
|
|
6073
|
+
* Controls where to align the popup relative to the popup anchor, unless there is not enough space available in that area. By default,
|
|
6074
|
+
* if not specified, the popup opens north of the anchor.
|
|
6075
|
+
*/
|
|
6076
|
+
readonly align?: 'east' | 'west' | 'north' | 'south';
|
|
6077
|
+
/**
|
|
6078
|
+
* Specifies data to pass to the popup component. In the component, you can inject the popup handle {@link WorkbenchPopup} to read input data.
|
|
6079
|
+
*/
|
|
6080
|
+
readonly input?: any;
|
|
6081
|
+
/**
|
|
6082
|
+
* Controls when to close the popup.
|
|
6083
|
+
*/
|
|
6084
|
+
readonly closeStrategy?: CloseStrategy;
|
|
6085
|
+
/**
|
|
6086
|
+
* Specifies the preferred popup size. If not specified, the popup adjusts its size to the content size.
|
|
6087
|
+
*/
|
|
6088
|
+
readonly size?: {
|
|
6089
|
+
minHeight?: string;
|
|
6090
|
+
height?: string;
|
|
6091
|
+
maxHeight?: string;
|
|
6092
|
+
minWidth?: string;
|
|
6093
|
+
width?: string;
|
|
6094
|
+
maxWidth?: string;
|
|
6095
|
+
};
|
|
6096
|
+
/**
|
|
6097
|
+
* Specifies CSS class(es) to add to the popup, e.g., to locate the popup in tests.
|
|
6098
|
+
*/
|
|
6099
|
+
readonly cssClass?: string | string[];
|
|
6100
|
+
/**
|
|
6101
|
+
* Binds the popup to a context (e.g., a part or view). Defaults to the calling context.
|
|
6019
6102
|
*
|
|
6020
|
-
*
|
|
6103
|
+
* The popup is displayed only if the context is visible and closes when the context is disposed.
|
|
6104
|
+
*
|
|
6105
|
+
* Set to `null` to open the popup outside a context.
|
|
6021
6106
|
*/
|
|
6022
|
-
|
|
6107
|
+
abstract context?: ViewId | PartId | DialogId | PopupId | Context | null;
|
|
6108
|
+
}
|
|
6109
|
+
/**
|
|
6110
|
+
* Specifies when to close the popup.
|
|
6111
|
+
*/
|
|
6112
|
+
interface CloseStrategy {
|
|
6023
6113
|
/**
|
|
6024
|
-
*
|
|
6114
|
+
* Controls if to close the popup on focus loss, returning the result set via {@link WorkbenchPopup#setResult} to the popup opener.
|
|
6115
|
+
* Defaults to `true`.
|
|
6025
6116
|
*/
|
|
6026
|
-
|
|
6117
|
+
onFocusLost?: boolean;
|
|
6118
|
+
/**
|
|
6119
|
+
* Controls if to close the popup when pressing escape. Defaults to `true`.
|
|
6120
|
+
* No return value will be passed to the popup opener.
|
|
6121
|
+
*/
|
|
6122
|
+
onEscape?: boolean;
|
|
6027
6123
|
}
|
|
6028
6124
|
/**
|
|
6029
|
-
*
|
|
6030
|
-
*
|
|
6031
|
-
* Initializers help to run initialization tasks (synchronous or asynchronous) during startup of the SCION Workbench.
|
|
6032
|
-
* The workbench is fully started once all initializers have completed.
|
|
6033
|
-
*
|
|
6034
|
-
* Initializers are registered using the `provideWorkbenchInitializer()` function and can specify a phase for execution.
|
|
6035
|
-
* Initializers in lower phases execute before initializers in higher phases. Initializers in the same phase may
|
|
6036
|
-
* execute in parallel. If no phase is specified, the initializer executes in the `Startup` phase.
|
|
6037
|
-
*
|
|
6038
|
-
* Available phases, in order of execution:
|
|
6039
|
-
* - {@link WorkbenchStartupPhase.PreStartup}
|
|
6040
|
-
* - {@link WorkbenchStartupPhase.Startup}
|
|
6041
|
-
* - {@link WorkbenchStartupPhase.PostStartup}
|
|
6042
|
-
*
|
|
6043
|
-
* The function can call `inject` to get any required dependencies.
|
|
6044
|
-
*
|
|
6045
|
-
* ### Example:
|
|
6046
|
-
*
|
|
6047
|
-
* ```ts
|
|
6048
|
-
* import {provideWorkbench, provideWorkbenchInitializer} from '@scion/workbench';
|
|
6049
|
-
* import {bootstrapApplication} from '@angular/platform-browser';
|
|
6050
|
-
* import {inject} from '@angular/core';
|
|
6051
|
-
*
|
|
6052
|
-
* bootstrapApplication(AppComponent, {
|
|
6053
|
-
* providers: [
|
|
6054
|
-
* provideWorkbench(),
|
|
6055
|
-
* provideWorkbenchInitializer(() => inject(SomeService).init()),
|
|
6056
|
-
* ],
|
|
6057
|
-
* });
|
|
6058
|
-
* ```
|
|
6059
|
-
* @see provideWorkbenchInitializer
|
|
6125
|
+
* @deprecated since version 20.0.0-beta.9. Set view id directly. Migrate `{context: {viewId: 'view.x'}}` to `{context: 'view.x'}`. Marked for removal in version 22.
|
|
6060
6126
|
*/
|
|
6061
|
-
|
|
6127
|
+
interface Context {
|
|
6128
|
+
/**
|
|
6129
|
+
* @deprecated since version 20.0.0-beta.9. Set view id directly. Migrate `{context: {viewId: 'view.x'}}` to `{context: 'view.x'}`. Marked for removal in version 22.
|
|
6130
|
+
*/
|
|
6131
|
+
viewId?: ViewId | null;
|
|
6132
|
+
}
|
|
6133
|
+
|
|
6062
6134
|
/**
|
|
6063
|
-
*
|
|
6064
|
-
*
|
|
6065
|
-
* The SCION Workbench defines a set of DI tokens called at defined points during startup, enabling the application's controlled initialization.
|
|
6066
|
-
*
|
|
6067
|
-
* Available DI tokens, in order of execution:
|
|
6068
|
-
* - {@link WORKBENCH_PRE_STARTUP}
|
|
6069
|
-
* - {@link WORKBENCH_STARTUP}
|
|
6070
|
-
* - {@link WORKBENCH_POST_STARTUP}
|
|
6071
|
-
*
|
|
6072
|
-
* ### Example:
|
|
6073
|
-
*
|
|
6074
|
-
* ```ts
|
|
6075
|
-
* import {provideWorkbench, WORKBENCH_STARTUP, WorkbenchInitializer} from '@scion/workbench';
|
|
6076
|
-
* import {bootstrapApplication} from '@angular/platform-browser';
|
|
6077
|
-
* import {Injectable} from '@angular/core';
|
|
6135
|
+
* Enables the display of a component in a popup.
|
|
6078
6136
|
*
|
|
6079
|
-
*
|
|
6080
|
-
*
|
|
6081
|
-
*
|
|
6082
|
-
* // initialize application
|
|
6083
|
-
* }
|
|
6084
|
-
* }
|
|
6137
|
+
* A popup is a visual workbench element for displaying content above other content. It is positioned relative to an anchor,
|
|
6138
|
+
* which can be an element or a coordinate. The popup moves with the anchor. By default, the popup closes on focus loss or
|
|
6139
|
+
* when pressing the escape key.
|
|
6085
6140
|
*
|
|
6086
|
-
*
|
|
6087
|
-
*
|
|
6088
|
-
* provideWorkbench(),
|
|
6089
|
-
* {
|
|
6090
|
-
* provide: WORKBENCH_STARTUP,
|
|
6091
|
-
* multi: true,
|
|
6092
|
-
* useClass: Initializer,
|
|
6093
|
-
* },
|
|
6094
|
-
* ],
|
|
6095
|
-
* });
|
|
6096
|
-
* ```
|
|
6097
|
-
* @see WORKBENCH_PRE_STARTUP
|
|
6098
|
-
* @see WORKBENCH_STARTUP
|
|
6099
|
-
* @see WORKBENCH_POST_STARTUP
|
|
6141
|
+
* A popup can be bound to a context (e.g., a part or view), displaying the popup only if the context is visible and closing
|
|
6142
|
+
* it when the context is disposed. Defaults to the calling context.
|
|
6100
6143
|
*
|
|
6101
|
-
* @deprecated since version
|
|
6144
|
+
* @deprecated since version 21.0.0-beta.1. Use `WorkbenchPopupService` to open popups. Marked for removal in version 22.
|
|
6102
6145
|
*/
|
|
6103
|
-
|
|
6146
|
+
declare abstract class PopupService {
|
|
6104
6147
|
/**
|
|
6105
|
-
*
|
|
6148
|
+
* Opens a popup with the specified component and options.
|
|
6149
|
+
*
|
|
6150
|
+
* An anchor is used to position the popup based on its preferred alignment. The anchor can be an element or a coordinate.
|
|
6151
|
+
*
|
|
6152
|
+
* Data can be passed to the component via {@link PopupConfig.input} property. The component can inject the popup handle {@link WorkbenchPopup} to
|
|
6153
|
+
* read input data or to close the popup.
|
|
6106
6154
|
*
|
|
6107
|
-
*
|
|
6155
|
+
* By default, the popup closes on focus loss or when pressing the escape key.
|
|
6156
|
+
*
|
|
6157
|
+
* @param config - Controls the appearance and behavior of the popup.
|
|
6158
|
+
* @returns Promise that resolves to the popup result, if any, or that rejects if the popup couldn't be opened or was closed with an error.
|
|
6108
6159
|
*
|
|
6109
|
-
* @
|
|
6160
|
+
* @deprecated since version 21.0.0-beta.1. Use `WorkbenchPopupService` to open popups. Marked for removal in version 22.
|
|
6110
6161
|
*/
|
|
6111
|
-
|
|
6162
|
+
abstract open<R>(config: PopupConfig): Promise<R | undefined>;
|
|
6163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupService, never>;
|
|
6164
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PopupService>;
|
|
6112
6165
|
}
|
|
6166
|
+
|
|
6113
6167
|
/**
|
|
6114
|
-
*
|
|
6115
|
-
*
|
|
6116
|
-
* Initializers associated with this DI token are executed before starting the SCION Workbench.
|
|
6117
|
-
*
|
|
6118
|
-
* @see WorkbenchInitializerFn
|
|
6119
|
-
* @deprecated since version 19.0.0-beta.3. Register initializer using `provideWorkbenchInitializer` function. See `provideWorkbenchInitializer` for an example. API will be removed in version 21.
|
|
6120
|
-
*/
|
|
6121
|
-
declare const WORKBENCH_PRE_STARTUP: InjectionToken<object | WorkbenchInitializerFn | WorkbenchInitializer>;
|
|
6122
|
-
/**
|
|
6123
|
-
* DI token to register a {@link WorkbenchInitializerFn} as a multi-provider to hook into the startup process of the SCION Workbench.
|
|
6124
|
-
*
|
|
6125
|
-
* Initializers associated with this DI token are executed after initializers of {@link WORKBENCH_PRE_STARTUP}.
|
|
6126
|
-
*
|
|
6127
|
-
* @see WorkbenchInitializerFn
|
|
6128
|
-
* @deprecated since version 19.0.0-beta.3. Register initializer using `provideWorkbenchInitializer` function. See `provideWorkbenchInitializer` for an example. API will be removed in version 21.
|
|
6129
|
-
*/
|
|
6130
|
-
declare const WORKBENCH_STARTUP: InjectionToken<object | WorkbenchInitializerFn | WorkbenchInitializer>;
|
|
6131
|
-
/**
|
|
6132
|
-
* DI token to register a {@link WorkbenchInitializerFn} as a multi-provider to hook into the startup process of the SCION Workbench.
|
|
6133
|
-
*
|
|
6134
|
-
* Initializers associated with this DI token are executed after initializers of {@link WORKBENCH_STARTUP}.
|
|
6135
|
-
*
|
|
6136
|
-
* @see WorkbenchInitializerFn
|
|
6137
|
-
* @deprecated since version 19.0.0-beta.3. Register initializer using `provideWorkbenchInitializer` function. See `provideWorkbenchInitializer` for an example. API will be removed in version 21.
|
|
6168
|
+
* Keys for associating workbench-specific data with a perspective.
|
|
6138
6169
|
*/
|
|
6139
|
-
declare const
|
|
6170
|
+
declare const WorkbenchPerspectiveData: {
|
|
6171
|
+
/**
|
|
6172
|
+
* Property to get the capability providing the perspective.
|
|
6173
|
+
*/
|
|
6174
|
+
readonly capability: "ɵcapability";
|
|
6175
|
+
};
|
|
6140
6176
|
|
|
6141
6177
|
/**
|
|
6142
6178
|
* Registers a function that is executed during the startup of the SCION Microfrontend Platform.
|
|
6143
6179
|
*
|
|
6144
|
-
* Initializers
|
|
6180
|
+
* Initializers are used to run initialization tasks during startup of the SCION Microfrontend Platform.
|
|
6181
|
+
* The SCION Microfrontend Platform is fully started once all initializers have completed.
|
|
6145
6182
|
*
|
|
6146
6183
|
* Initializers can specify a phase for execution. Initializers in lower phases execute before initializers in higher phases.
|
|
6147
6184
|
* Initializers in the same phase may execute in parallel. If no phase is specified, the initializer executes in the `PostStartup` phase.
|
|
@@ -6150,6 +6187,8 @@ declare const WORKBENCH_POST_STARTUP: InjectionToken<object | WorkbenchInitializ
|
|
|
6150
6187
|
* - {@link MicrofrontendPlatformStartupPhase.PreStartup}
|
|
6151
6188
|
* - {@link MicrofrontendPlatformStartupPhase.PostStartup}
|
|
6152
6189
|
*
|
|
6190
|
+
* Microfrontend platform initializers run during the {@link WorkbenchStartupPhase.Startup} phase.
|
|
6191
|
+
*
|
|
6153
6192
|
* The function can call `inject` to get any required dependencies.
|
|
6154
6193
|
*
|
|
6155
6194
|
* Initializers are only called if microfrontend support is enabled.
|
|
@@ -6158,7 +6197,7 @@ declare const WORKBENCH_POST_STARTUP: InjectionToken<object | WorkbenchInitializ
|
|
|
6158
6197
|
* @param options - Controls execution of the function.
|
|
6159
6198
|
* @return A set of dependency-injection providers to be registered in Angular.
|
|
6160
6199
|
*/
|
|
6161
|
-
declare function provideMicrofrontendPlatformInitializer(initializerFn:
|
|
6200
|
+
declare function provideMicrofrontendPlatformInitializer(initializerFn: MicrofrontendPlatformInitializerFn, options?: MicrofrontendPlatformInitializerOptions): EnvironmentProviders;
|
|
6162
6201
|
/**
|
|
6163
6202
|
* Controls the execution of an initializer function during the startup of the SCION Microfrontend Platform.
|
|
6164
6203
|
*/
|
|
@@ -6169,7 +6208,7 @@ interface MicrofrontendPlatformInitializerOptions {
|
|
|
6169
6208
|
phase?: MicrofrontendPlatformStartupPhase;
|
|
6170
6209
|
}
|
|
6171
6210
|
/**
|
|
6172
|
-
* Enumeration of phases for running a {@link
|
|
6211
|
+
* Enumeration of phases for running a {@link MicrofrontendPlatformInitializerFn} function during the startup of the SCION Microfrontend Platform.
|
|
6173
6212
|
*
|
|
6174
6213
|
* Functions associated with the same phase may run in parallel. Defaults to {@link PostStartup} phase.
|
|
6175
6214
|
*/
|
|
@@ -6178,7 +6217,7 @@ declare enum MicrofrontendPlatformStartupPhase {
|
|
|
6178
6217
|
* Use to run an initializer before starting the SCION Microfrontend Platform.
|
|
6179
6218
|
*
|
|
6180
6219
|
* Typically, you would configure the SCION Microfrontend Platform in this phase, for example, register interceptors or decorators.
|
|
6181
|
-
* At this point, you cannot interact with the
|
|
6220
|
+
* At this point, you cannot interact with the Microfrontend Platform because it has not been started yet.
|
|
6182
6221
|
*
|
|
6183
6222
|
* This phase is only called if microfrontend support is enabled.
|
|
6184
6223
|
*/
|
|
@@ -6189,38 +6228,45 @@ declare enum MicrofrontendPlatformStartupPhase {
|
|
|
6189
6228
|
* Typically, you would install intent and message handlers in this phase.
|
|
6190
6229
|
* At this point, the activators of the micro applications are not yet installed.
|
|
6191
6230
|
*
|
|
6231
|
+
* This is the default phase if not specifying a phase.
|
|
6232
|
+
*
|
|
6192
6233
|
* This phase is only called if microfrontend support is enabled.
|
|
6193
6234
|
*/
|
|
6194
6235
|
PostStartup = 2
|
|
6195
6236
|
}
|
|
6196
6237
|
/**
|
|
6197
|
-
*
|
|
6198
|
-
*
|
|
6199
|
-
* Initializers associated with this DI token are executed during {@link WORKBENCH_STARTUP} before starting the SCION Microfrontend Platform.
|
|
6238
|
+
* The signature of a function executed during the startup of the SCION Microfrontend Platform.
|
|
6200
6239
|
*
|
|
6201
|
-
*
|
|
6202
|
-
* At this point, you cannot interact with the microfrontend platform because it has not been started yet.
|
|
6240
|
+
* Initializers are used to run initialization tasks during startup of the SCION Microfrontend Platform.
|
|
6203
6241
|
*
|
|
6204
|
-
*
|
|
6242
|
+
* Initializers are registered using the `provideMicrofrontendPlatformInitializer()` function and can specify a phase for execution.
|
|
6243
|
+
* Initializers in lower phases execute before initializers in higher phases. Initializers in the same phase may
|
|
6244
|
+
* execute in parallel. If no phase is specified, the initializer executes in the `PostStartup` phase.
|
|
6205
6245
|
*
|
|
6206
|
-
* @
|
|
6207
|
-
* @deprecated since version 19.0.0-beta.3. Register initializer using `provideMicrofrontendPlatformInitializer` function. See `provideMicrofrontendPlatformInitializer` for an example. API will be removed in version 21.
|
|
6208
|
-
*/
|
|
6209
|
-
declare const MICROFRONTEND_PLATFORM_PRE_STARTUP: InjectionToken<object | WorkbenchInitializerFn | WorkbenchInitializer>;
|
|
6210
|
-
/**
|
|
6211
|
-
* DI token to register a {@link WorkbenchInitializerFn} as a multi-provider to hook into the startup process of the SCION Microfrontend Platform.
|
|
6246
|
+
* Microfrontend platform initializers run during the {@link WorkbenchStartupPhase.Startup} phase.
|
|
6212
6247
|
*
|
|
6213
|
-
*
|
|
6248
|
+
* Available phases, in order of execution:
|
|
6249
|
+
* - {@link MicrofrontendPlatformStartupPhase.PreStartup}
|
|
6250
|
+
* - {@link MicrofrontendPlatformStartupPhase.PostStartup}
|
|
6214
6251
|
*
|
|
6215
|
-
*
|
|
6216
|
-
* At this point, the activators of the micro applications are not yet installed.
|
|
6252
|
+
* The function can call `inject` to get any required dependencies.
|
|
6217
6253
|
*
|
|
6218
|
-
*
|
|
6254
|
+
* @example - Registration of an initializer function
|
|
6255
|
+
* ```ts
|
|
6256
|
+
* import {provideWorkbench, provideMicrofrontendPlatformInitializer} from '@scion/workbench';
|
|
6257
|
+
* import {bootstrapApplication} from '@angular/platform-browser';
|
|
6258
|
+
* import {inject} from '@angular/core';
|
|
6219
6259
|
*
|
|
6220
|
-
*
|
|
6221
|
-
*
|
|
6260
|
+
* bootstrapApplication(AppComponent, {
|
|
6261
|
+
* providers: [
|
|
6262
|
+
* provideWorkbench(),
|
|
6263
|
+
* provideMicrofrontendPlatformInitializer(() => inject(SomeService).init()),
|
|
6264
|
+
* ],
|
|
6265
|
+
* });
|
|
6266
|
+
* ```
|
|
6267
|
+
* @see provideMicrofrontendPlatformInitializer
|
|
6222
6268
|
*/
|
|
6223
|
-
|
|
6269
|
+
type MicrofrontendPlatformInitializerFn = () => void | Promise<void>;
|
|
6224
6270
|
|
|
6225
6271
|
/**
|
|
6226
6272
|
* Patches '@scion/microfrontend-platform' typedef definition via module augmentation.
|
|
@@ -6305,6 +6351,91 @@ declare abstract class WorkbenchLauncher {
|
|
|
6305
6351
|
static ɵprov: i0.ɵɵInjectableDeclaration<WorkbenchLauncher>;
|
|
6306
6352
|
}
|
|
6307
6353
|
|
|
6354
|
+
/**
|
|
6355
|
+
* Registers a function that is executed during the startup of the SCION Workbench.
|
|
6356
|
+
*
|
|
6357
|
+
* Initializers are used to run initialization tasks during startup of the SCION Workbench.
|
|
6358
|
+
* The workbench is fully started once all initializers have completed.
|
|
6359
|
+
*
|
|
6360
|
+
* Initializers can specify a phase for execution. Initializers in lower phases execute before initializers in higher phases.
|
|
6361
|
+
* Initializers in the same phase may execute in parallel. If no phase is specified, the initializer executes in the `Startup` phase.
|
|
6362
|
+
*
|
|
6363
|
+
* Available phases, in order of execution:
|
|
6364
|
+
* - {@link WorkbenchStartupPhase.PreStartup}
|
|
6365
|
+
* - {@link WorkbenchStartupPhase.Startup}
|
|
6366
|
+
* - {@link WorkbenchStartupPhase.PostStartup}
|
|
6367
|
+
*
|
|
6368
|
+
* The function can call `inject` to get any required dependencies.
|
|
6369
|
+
*
|
|
6370
|
+
* @param initializerFn - Specifies the function to execute.
|
|
6371
|
+
* @param options - Controls execution of the function.
|
|
6372
|
+
* @return A set of dependency-injection providers to be registered in Angular.
|
|
6373
|
+
*/
|
|
6374
|
+
declare function provideWorkbenchInitializer(initializerFn: WorkbenchInitializerFn, options?: WorkbenchInitializerOptions): EnvironmentProviders;
|
|
6375
|
+
/**
|
|
6376
|
+
* Controls the execution of an initializer function during the startup of the SCION Workbench.
|
|
6377
|
+
*/
|
|
6378
|
+
interface WorkbenchInitializerOptions {
|
|
6379
|
+
/**
|
|
6380
|
+
* Controls in which phase to execute the initializer.
|
|
6381
|
+
*/
|
|
6382
|
+
phase?: WorkbenchStartupPhase;
|
|
6383
|
+
}
|
|
6384
|
+
/**
|
|
6385
|
+
* Enumeration of phases for running a {@link WorkbenchInitializerFn} function during the startup of the SCION Workbench.
|
|
6386
|
+
*
|
|
6387
|
+
* Functions associated with the same phase may run in parallel. Defaults to {@link Startup} phase.
|
|
6388
|
+
*/
|
|
6389
|
+
declare enum WorkbenchStartupPhase {
|
|
6390
|
+
/**
|
|
6391
|
+
* Use to run an initializer before starting the workbench.
|
|
6392
|
+
*/
|
|
6393
|
+
PreStartup = 0,
|
|
6394
|
+
/**
|
|
6395
|
+
* Use to run an initializer function after initializers of the {@link PreStartup} phase.
|
|
6396
|
+
*
|
|
6397
|
+
* This is the default phase if not specifying a phase.
|
|
6398
|
+
*/
|
|
6399
|
+
Startup = 1,
|
|
6400
|
+
/**
|
|
6401
|
+
* Use to run an initializer function after initializers of the {@link Startup} phase.
|
|
6402
|
+
*/
|
|
6403
|
+
PostStartup = 2
|
|
6404
|
+
}
|
|
6405
|
+
/**
|
|
6406
|
+
* The signature of a function executed during the startup of the SCION Workbench.
|
|
6407
|
+
*
|
|
6408
|
+
* Initializers are used to run initialization tasks during startup of the SCION Workbench.
|
|
6409
|
+
* The workbench is fully started once all initializers have completed.
|
|
6410
|
+
*
|
|
6411
|
+
* Initializers are registered using the `provideWorkbenchInitializer()` function and can specify a phase for execution.
|
|
6412
|
+
* Initializers in lower phases execute before initializers in higher phases. Initializers in the same phase may
|
|
6413
|
+
* execute in parallel. If no phase is specified, the initializer executes in the `Startup` phase.
|
|
6414
|
+
*
|
|
6415
|
+
* Available phases, in order of execution:
|
|
6416
|
+
* - {@link WorkbenchStartupPhase.PreStartup}
|
|
6417
|
+
* - {@link WorkbenchStartupPhase.Startup}
|
|
6418
|
+
* - {@link WorkbenchStartupPhase.PostStartup}
|
|
6419
|
+
*
|
|
6420
|
+
* The function can call `inject` to get any required dependencies.
|
|
6421
|
+
*
|
|
6422
|
+
* @example - Registration of an initializer function
|
|
6423
|
+
* ```ts
|
|
6424
|
+
* import {provideWorkbench, provideWorkbenchInitializer} from '@scion/workbench';
|
|
6425
|
+
* import {bootstrapApplication} from '@angular/platform-browser';
|
|
6426
|
+
* import {inject} from '@angular/core';
|
|
6427
|
+
*
|
|
6428
|
+
* bootstrapApplication(AppComponent, {
|
|
6429
|
+
* providers: [
|
|
6430
|
+
* provideWorkbench(),
|
|
6431
|
+
* provideWorkbenchInitializer(() => inject(SomeService).init()),
|
|
6432
|
+
* ],
|
|
6433
|
+
* });
|
|
6434
|
+
* ```
|
|
6435
|
+
* @see provideWorkbenchInitializer
|
|
6436
|
+
*/
|
|
6437
|
+
type WorkbenchInitializerFn = () => void | Promise<void>;
|
|
6438
|
+
|
|
6308
6439
|
/**
|
|
6309
6440
|
* Enables the translation of a given {@link Translatable}.
|
|
6310
6441
|
*
|
|
@@ -6388,5 +6519,5 @@ declare class IconComponent {
|
|
|
6388
6519
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "wb-icon", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6389
6520
|
}
|
|
6390
6521
|
|
|
6391
|
-
export { IconComponent, LogAppender, LogLevel, Logger, LoggerName, MAIN_AREA, MAIN_AREA_INITIAL_PART_ID,
|
|
6392
|
-
export type { ActivityId, BottomLeftPoint, BottomRightPoint, CanCloseFn, CanCloseRef, CloseStrategy, Commands, DialogId, Disposable, DockedPartExtras, DockingArea, LogEvent, MenuItemConfig, MicrofrontendPlatformInitializerOptions, NavigateFn, NavigationData, NavigationState, NotificationConfig, PartExtras, PartId, Point, PopupId, PopupOrigin,
|
|
6522
|
+
export { IconComponent, LogAppender, LogLevel, Logger, LoggerName, MAIN_AREA, MAIN_AREA_INITIAL_PART_ID, MicrofrontendPlatformConfigLoader, MicrofrontendPlatformStartupPhase, Notification, NotificationService, Popup, PopupConfig, PopupService, TextPipe, VIEW_TAB_RENDERING_CONTEXT, WORKBENCH_ID, WorkbenchComponent, WorkbenchConfig, WorkbenchDesktopDirective, WorkbenchDialog, WorkbenchDialogActionDirective, WorkbenchDialogFooterDirective, WorkbenchDialogHeaderDirective, WorkbenchDialogService, WorkbenchLauncher, WorkbenchLayoutFactory, WorkbenchMessageBoxService, WorkbenchNotification, WorkbenchNotificationService, WorkbenchPart, WorkbenchPartActionDirective, WorkbenchPerspectiveData, WorkbenchPopup, WorkbenchPopupService, WorkbenchRouteData, WorkbenchRouter, WorkbenchRouterLinkDirective, WorkbenchService, WorkbenchStartup, WorkbenchStartupPhase, WorkbenchStorage, WorkbenchView, WorkbenchViewMenuItemDirective, canMatchWorkbenchOutlet, canMatchWorkbenchPart, canMatchWorkbenchPerspective, canMatchWorkbenchView, provideMicrofrontendPlatformInitializer, provideWorkbench, provideWorkbenchInitializer, text };
|
|
6523
|
+
export type { ActivityId, BottomLeftPoint, BottomRightPoint, CanCloseFn, CanCloseRef, CloseStrategy$1 as CloseStrategy, Commands, DialogId, Disposable, DockedPartExtras, DockingArea, LogEvent, MenuItemConfig, MicrofrontendPlatformInitializerOptions, NavigateFn, NavigationData, NavigationState, NotificationConfig, PartExtras, PartId, Point, PopupId, PopupOrigin, ReferencePart, TopLeftPoint, TopRightPoint, Translatable, ViewId, ViewMenuItemsConfig, ViewTabRenderingContext, WorkbenchDialogOptions, WorkbenchDialogSize, WorkbenchElement, WorkbenchIconDescriptor, WorkbenchIconProviderFn, WorkbenchInitializerFn, WorkbenchInitializerOptions, WorkbenchLayout, WorkbenchLayoutFn, WorkbenchMenuItem, WorkbenchMessageBoxOptions, WorkbenchNavigationExtras, WorkbenchNotificationOptions, WorkbenchPartAction, WorkbenchPartActionFn, WorkbenchPartNavigation, WorkbenchPerspective, WorkbenchPerspectiveDefinition, WorkbenchPerspectiveSelectionFn, WorkbenchPerspectives, WorkbenchPopupOptions, WorkbenchPopupSize, WorkbenchTextProviderFn, WorkbenchViewMenuItemFn, WorkbenchViewNavigation };
|