@scion/workbench 19.0.0-beta.2 → 20.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.
Files changed (237) hide show
  1. package/README.md +6 -4
  2. package/_index.scss +2 -2
  3. package/design/_workbench-dark-theme-design-tokens.scss +52 -12
  4. package/design/_workbench-icon-font.scss +1 -1
  5. package/design/_workbench-light-theme-design-tokens.scss +54 -14
  6. package/fesm2022/scion-workbench.mjs +8478 -6545
  7. package/fesm2022/scion-workbench.mjs.map +1 -1
  8. package/index.d.ts +5465 -3
  9. package/package.json +23 -19
  10. package/lib/activation-instant.provider.d.ts +0 -12
  11. package/lib/common/asserts.util.d.ts +0 -13
  12. package/lib/common/class-list.d.ts +0 -64
  13. package/lib/common/coerce-observable.pipe.d.ts +0 -12
  14. package/lib/common/css-class.util.d.ts +0 -5
  15. package/lib/common/disposable.d.ts +0 -9
  16. package/lib/common/dom.util.d.ts +0 -66
  17. package/lib/common/grid-element-if-visible.pipe.d.ts +0 -13
  18. package/lib/common/instanceof.pipe.d.ts +0 -10
  19. package/lib/common/math.util.d.ts +0 -7
  20. package/lib/common/null-if-empty.pipe.d.ts +0 -10
  21. package/lib/common/objects.util.d.ts +0 -21
  22. package/lib/common/observables.d.ts +0 -26
  23. package/lib/common/operators.d.ts +0 -13
  24. package/lib/common/public_api.d.ts +0 -1
  25. package/lib/common/stringify-error.util.d.ts +0 -4
  26. package/lib/common/throw-error.util.d.ts +0 -4
  27. package/lib/common/typeof.pipe.d.ts +0 -10
  28. package/lib/common/uid.util.d.ts +0 -9
  29. package/lib/common//311/265destroy-ref.d.ts +0 -11
  30. package/lib/communication/workbench-broadcast-channel.d.ts +0 -26
  31. package/lib/content-projection/content-as-overlay.component.d.ts +0 -60
  32. package/lib/desktop/desktop.directive.d.ts +0 -37
  33. package/lib/desktop/public_api.d.ts +0 -1
  34. package/lib/dialog/dialog-footer/dialog-action-filter.pipe.d.ts +0 -11
  35. package/lib/dialog/dialog-footer/dialog-footer.component.d.ts +0 -11
  36. package/lib/dialog/dialog-footer/workbench-dialog-action.directive.d.ts +0 -29
  37. package/lib/dialog/dialog-footer/workbench-dialog-footer.directive.d.ts +0 -29
  38. package/lib/dialog/dialog-header/dialog-header.component.d.ts +0 -13
  39. package/lib/dialog/dialog-header/workbench-dialog-header.directive.d.ts +0 -29
  40. package/lib/dialog/movable.directive.d.ts +0 -50
  41. package/lib/dialog/public_api.d.ts +0 -6
  42. package/lib/dialog/resizable.directive.d.ts +0 -83
  43. package/lib/dialog/workbench-dialog.component.d.ts +0 -60
  44. package/lib/dialog/workbench-dialog.d.ts +0 -117
  45. package/lib/dialog/workbench-dialog.options.d.ts +0 -64
  46. package/lib/dialog/workbench-dialog.registry.d.ts +0 -43
  47. package/lib/dialog/workbench-dialog.service.d.ts +0 -96
  48. package/lib/dialog//311/265workbench-dialog.d.ts +0 -127
  49. package/lib/dialog//311/265workbench-dialog.service.d.ts +0 -29
  50. package/lib/executor/latest-task-executor.d.ts +0 -26
  51. package/lib/executor/single-task-executor.d.ts +0 -23
  52. package/lib/filter-field/filter-field.component.d.ts +0 -60
  53. package/lib/glass-pane/blockable.d.ts +0 -11
  54. package/lib/glass-pane/blocking.d.ts +0 -17
  55. package/lib/glass-pane/glass-pane.directive.d.ts +0 -52
  56. package/lib/layout/grid-element/grid-element.component.d.ts +0 -41
  57. package/lib/layout/migration/model/workbench-layout-migration-v2.model.d.ts +0 -22
  58. package/lib/layout/migration/model/workbench-layout-migration-v3.model.d.ts +0 -30
  59. package/lib/layout/migration/model/workbench-layout-migration-v4.model.d.ts +0 -31
  60. package/lib/layout/migration/model/workbench-layout-migration-v5.model.d.ts +0 -36
  61. package/lib/layout/migration/model/workbench-layout-migration-v6.model.d.ts +0 -35
  62. package/lib/layout/migration/model/workbench-layout-migration-v7.model.d.ts +0 -37
  63. package/lib/layout/migration/workbench-layout-migration-v3.service.d.ts +0 -16
  64. package/lib/layout/migration/workbench-layout-migration-v4.service.d.ts +0 -12
  65. package/lib/layout/migration/workbench-layout-migration-v5.service.d.ts +0 -12
  66. package/lib/layout/migration/workbench-layout-migration-v6.service.d.ts +0 -12
  67. package/lib/layout/migration/workbench-layout-migration-v7.service.d.ts +0 -10
  68. package/lib/layout/public_api.d.ts +0 -3
  69. package/lib/layout/stringifier.d.ts +0 -33
  70. package/lib/layout/workbench-layout.component.d.ts +0 -37
  71. package/lib/layout/workbench-layout.d.ts +0 -257
  72. package/lib/layout/workbench-layout.factory.d.ts +0 -20
  73. package/lib/layout/workbench-layout.model.d.ts +0 -93
  74. package/lib/layout/workbench-layout.service.d.ts +0 -46
  75. package/lib/layout/workbench-layouts.util.d.ts +0 -27
  76. package/lib/layout/workench-layout-serializer.service.d.ts +0 -72
  77. package/lib/layout//311/265workbench-layout.d.ts +0 -477
  78. package/lib/layout//311/265workbench-layout.factory.d.ts +0 -37
  79. package/lib/logging/console-appender.service.d.ts +0 -11
  80. package/lib/logging/index.d.ts +0 -5
  81. package/lib/logging/logger-names.d.ts +0 -22
  82. package/lib/logging/logger.d.ts +0 -69
  83. package/lib/logging/logging-support.d.ts +0 -6
  84. package/lib/logging/logging.model.d.ts +0 -52
  85. package/lib/logging/public_api.d.ts +0 -2
  86. package/lib/logging//311/265logger.d.ts +0 -21
  87. package/lib/message-box/message-box-footer/message-box-footer.component.d.ts +0 -18
  88. package/lib/message-box/message-box-header/message-box-header.component.d.ts +0 -7
  89. package/lib/message-box/public_api.d.ts +0 -2
  90. package/lib/message-box/workbench-message-box.component.d.ts +0 -28
  91. package/lib/message-box/workbench-message-box.options.d.ts +0 -95
  92. package/lib/message-box/workbench-message-box.service.d.ts +0 -99
  93. package/lib/message-box//311/265workbench-message-box.service.d.ts +0 -18
  94. package/lib/microfrontend-platform/common/microfrontend.util.d.ts +0 -26
  95. package/lib/microfrontend-platform/initialization/microfrontend-platform-initializer.service.d.ts +0 -49
  96. package/lib/microfrontend-platform/initialization/ng-zone-observable-decorator.d.ts +0 -14
  97. package/lib/microfrontend-platform/initialization/workbench-host-manifest-interceptor.service.d.ts +0 -1
  98. package/lib/microfrontend-platform/manifest-object-cache.service.d.ts +0 -33
  99. package/lib/microfrontend-platform/microfrontend-dialog/microfrontend-dialog-capability-validator.interceptor.d.ts +0 -11
  100. package/lib/microfrontend-platform/microfrontend-dialog/microfrontend-dialog-intent-handler.interceptor.d.ts +0 -28
  101. package/lib/microfrontend-platform/microfrontend-dialog/microfrontend-dialog.component.d.ts +0 -52
  102. package/lib/microfrontend-platform/microfrontend-host-dialog/microfrontend-host-dialog.component.d.ts +0 -35
  103. package/lib/microfrontend-platform/microfrontend-host-message-box/microfrontend-host-message-box.component.d.ts +0 -40
  104. package/lib/microfrontend-platform/microfrontend-host-message-box/text-message/text-message.component.d.ts +0 -25
  105. package/lib/microfrontend-platform/microfrontend-host-popup/microfrontend-host-popup.component.d.ts +0 -27
  106. package/lib/microfrontend-platform/microfrontend-message-box/microfrontend-message-box-capability-validator.interceptor.d.ts +0 -10
  107. package/lib/microfrontend-platform/microfrontend-message-box/microfrontend-message-box-intent-handler.interceptor.d.ts +0 -28
  108. package/lib/microfrontend-platform/microfrontend-message-box/microfrontend-message-box-legacy-intent-translator.interceptor.d.ts +0 -11
  109. package/lib/microfrontend-platform/microfrontend-message-box/microfrontend-message-box.component.d.ts +0 -48
  110. package/lib/microfrontend-platform/microfrontend-notification/microfrontend-notification-intent-handler.service.d.ts +0 -17
  111. package/lib/microfrontend-platform/microfrontend-perspective/microfrontend-perspective-capability-validator.interceptor.d.ts +0 -10
  112. package/lib/microfrontend-platform/microfrontend-perspective/microfrontend-perspective-installer.service.d.ts +0 -24
  113. package/lib/microfrontend-platform/microfrontend-perspective/microfrontend-perspective-intent-handler.interceptor.d.ts +0 -20
  114. package/lib/microfrontend-platform/microfrontend-perspective/workbench-perspective-data.d.ts +0 -9
  115. package/lib/microfrontend-platform/microfrontend-platform-config-loader.d.ts +0 -13
  116. package/lib/microfrontend-platform/microfrontend-platform.config.d.ts +0 -20
  117. package/lib/microfrontend-platform/microfrontend-popup/microfrontend-popup-capability-validator.interceptor.d.ts +0 -10
  118. package/lib/microfrontend-platform/microfrontend-popup/microfrontend-popup-intent-handler.interceptor.d.ts +0 -35
  119. package/lib/microfrontend-platform/microfrontend-popup/microfrontend-popup.component.d.ts +0 -47
  120. package/lib/microfrontend-platform/microfrontend-splash/microfrontend-splash.component.d.ts +0 -5
  121. package/lib/microfrontend-platform/microfrontend-view/microfrontend-view-command-handler.service.d.ts +0 -42
  122. package/lib/microfrontend-platform/microfrontend-view/microfrontend-view.component.d.ts +0 -72
  123. package/lib/microfrontend-platform/microfrontend-view/microfrontend-workbench-view.model.d.ts +0 -14
  124. package/lib/microfrontend-platform/public_api.d.ts +0 -3
  125. package/lib/microfrontend-platform/routing/microfrontend-view-capability-validator.interceptor.d.ts +0 -10
  126. package/lib/microfrontend-platform/routing/microfrontend-view-intent-handler.interceptor.d.ts +0 -32
  127. package/lib/microfrontend-platform/routing/microfrontend-view-routes.d.ts +0 -56
  128. package/lib/microfrontend-platform/stable-capability-id-assigner.interceptor.d.ts +0 -11
  129. package/lib/microfrontend-platform/workbench-microfrontend-support.d.ts +0 -7
  130. package/lib/migration/workbench-migration.d.ts +0 -9
  131. package/lib/migration/workbench-migrator.d.ts +0 -18
  132. package/lib/notification/notification-css-classes.pipe.d.ts +0 -13
  133. package/lib/notification/notification-list.component.d.ts +0 -19
  134. package/lib/notification/notification.component.d.ts +0 -29
  135. package/lib/notification/notification.config.d.ts +0 -85
  136. package/lib/notification/notification.d.ts +0 -31
  137. package/lib/notification/notification.service.d.ts +0 -49
  138. package/lib/notification/public_api.d.ts +0 -3
  139. package/lib/notification/text-notification.component.d.ts +0 -11
  140. package/lib/notification//311/265notification.d.ts +0 -18
  141. package/lib/page-not-found/page-not-found.component.d.ts +0 -11
  142. package/lib/part/main-area-part/main-area-part.component.d.ts +0 -37
  143. package/lib/part/part-action/part-action.component.d.ts +0 -39
  144. package/lib/part/part-action-bar/part-action.directive.d.ts +0 -62
  145. package/lib/part/part-bar/part-bar.component.d.ts +0 -24
  146. package/lib/part/part-portal.pipe.d.ts +0 -17
  147. package/lib/part/part.component.d.ts +0 -38
  148. package/lib/part/public_api.d.ts +0 -3
  149. package/lib/part/view-context-menu/accelerator-format.pipe.d.ts +0 -10
  150. package/lib/part/view-context-menu/menu-item/menu-item.component.d.ts +0 -39
  151. package/lib/part/view-context-menu/text/text.component.d.ts +0 -6
  152. package/lib/part/view-context-menu/view-menu-item.directive.d.ts +0 -75
  153. package/lib/part/view-context-menu/view-menu.component.d.ts +0 -22
  154. package/lib/part/view-context-menu/view-menu.service.d.ts +0 -51
  155. package/lib/part/view-list/view-list.component.d.ts +0 -32
  156. package/lib/part/view-list-button/view-list-button.component.d.ts +0 -22
  157. package/lib/part/view-list-item/view-list-item.component.d.ts +0 -17
  158. package/lib/part/view-tab/view-tab.component.d.ts +0 -51
  159. package/lib/part/view-tab-bar/view-tab-bar.component.d.ts +0 -163
  160. package/lib/part/view-tab-content/view-tab-content.component.d.ts +0 -10
  161. package/lib/part/view-tab-drag-image/view-tab-drag-image.component.d.ts +0 -36
  162. package/lib/part/workbench-part-action.registry.d.ts +0 -7
  163. package/lib/part/workbench-part.model.d.ts +0 -91
  164. package/lib/part/workbench-part.registry.d.ts +0 -7
  165. package/lib/part//311/265workbench-part.model.d.ts +0 -84
  166. package/lib/perspective/migration/model/workbench-perspective-migration-v1.model.d.ts +0 -8
  167. package/lib/perspective/migration/model/workbench-perspective-migration-v2.model.d.ts +0 -10
  168. package/lib/perspective/migration/model/workbench-perspective-migration-v3.model.d.ts +0 -10
  169. package/lib/perspective/migration/workbench-perspective-migration-v2.service.d.ts +0 -13
  170. package/lib/perspective/migration/workbench-perspective-migration-v3.service.d.ts +0 -12
  171. package/lib/perspective/public_api.d.ts +0 -1
  172. package/lib/perspective/workbench-grid-merger.service.d.ts +0 -19
  173. package/lib/perspective/workbench-perspective-storage.service.d.ts +0 -32
  174. package/lib/perspective/workbench-perspective-view-conflict-resolver.service.d.ts +0 -18
  175. package/lib/perspective/workbench-perspective.model.d.ts +0 -215
  176. package/lib/perspective/workbench-perspective.registry.d.ts +0 -7
  177. package/lib/perspective/workbench-perspective.service.d.ts +0 -63
  178. package/lib/perspective/workench-perspective-serializer.service.d.ts +0 -26
  179. package/lib/perspective//311/265workbench-perspective.model.d.ts +0 -71
  180. package/lib/popup/popup.component.d.ts +0 -28
  181. package/lib/popup/popup.config.d.ts +0 -193
  182. package/lib/popup/popup.origin.d.ts +0 -44
  183. package/lib/popup/popup.service.d.ts +0 -68
  184. package/lib/popup/public_api.d.ts +0 -3
  185. package/lib/portal/wb-component-portal.d.ts +0 -81
  186. package/lib/portal/workbench-portal-outlet.directive.d.ts +0 -30
  187. package/lib/public_api.d.ts +0 -22
  188. package/lib/registry/workbench-object-registry.d.ts +0 -51
  189. package/lib/routing/empty-outlet/empty-outlet.component.d.ts +0 -15
  190. package/lib/routing/public_api.d.ts +0 -5
  191. package/lib/routing/router-outlet-root-context.directive.d.ts +0 -10
  192. package/lib/routing/routing.model.d.ts +0 -155
  193. package/lib/routing/routing.util.d.ts +0 -116
  194. package/lib/routing/url-segment-matcher.d.ts +0 -20
  195. package/lib/routing/workbench-auxiliary-route-installer.service.d.ts +0 -53
  196. package/lib/routing/workbench-layout-differ.d.ts +0 -33
  197. package/lib/routing/workbench-navigational-states.d.ts +0 -40
  198. package/lib/routing/workbench-outlet-differ.d.ts +0 -48
  199. package/lib/routing/workbench-route-data.d.ts +0 -29
  200. package/lib/routing/workbench-route-guards.d.ts +0 -62
  201. package/lib/routing/workbench-router-link.directive.d.ts +0 -59
  202. package/lib/routing/workbench-router.service.d.ts +0 -65
  203. package/lib/routing/workbench-url-observer.service.d.ts +0 -73
  204. package/lib/routing//311/265location.d.ts +0 -8
  205. package/lib/routing//311/265workbench-router.service.d.ts +0 -78
  206. package/lib/startup/public_api.d.ts +0 -2
  207. package/lib/startup/splash/splash.component.d.ts +0 -8
  208. package/lib/startup/workbench-initializer.d.ts +0 -127
  209. package/lib/startup/workbench-launcher.service.d.ts +0 -99
  210. package/lib/storage/public_api.d.ts +0 -1
  211. package/lib/storage/workbench-storage.d.ts +0 -16
  212. package/lib/theme/workbench-theme-switcher.service.d.ts +0 -32
  213. package/lib/view/public_api.d.ts +0 -1
  214. package/lib/view/view-context-provider.d.ts +0 -6
  215. package/lib/view/view-move-handler.service.d.ts +0 -27
  216. package/lib/view/view-portal.pipe.d.ts +0 -14
  217. package/lib/view/view.component.d.ts +0 -32
  218. package/lib/view/workbench-view-menu-item.registry.d.ts +0 -7
  219. package/lib/view/workbench-view.model.d.ts +0 -225
  220. package/lib/view/workbench-view.registry.d.ts +0 -7
  221. package/lib/view//311/265workbench-view.model.d.ts +0 -154
  222. package/lib/view-dnd/grid-drop-targets.util.d.ts +0 -22
  223. package/lib/view-dnd/requires-drop-zone.pipe.d.ts +0 -13
  224. package/lib/view-dnd/view-drag.service.d.ts +0 -237
  225. package/lib/view-dnd/view-drop-placeholder-renderer.service.d.ts +0 -27
  226. package/lib/view-dnd/view-drop-zone.directive.d.ts +0 -115
  227. package/lib/view-dnd/view-tab-drag-image-renderer.service.d.ts +0 -57
  228. package/lib/workbench-config.d.ts +0 -168
  229. package/lib/workbench-element-references.d.ts +0 -17
  230. package/lib/workbench-id.d.ts +0 -7
  231. package/lib/workbench.component.d.ts +0 -34
  232. package/lib/workbench.constants.d.ts +0 -69
  233. package/lib/workbench.model.d.ts +0 -218
  234. package/lib/workbench.provider.d.ts +0 -38
  235. package/lib/workbench.service.d.ts +0 -158
  236. package/lib//311/265workbench.service.d.ts +0 -52
  237. package/public-api.d.ts +0 -4
@@ -1,193 +0,0 @@
1
- import { ElementRef, Injector, StaticProvider, Type, ViewContainerRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { PopupOrigin } from './popup.origin';
4
- import { ViewId } from '../view/workbench-view.model';
5
- /**
6
- * Configures the content to be displayed in a popup.
7
- *
8
- * A popup is a visual workbench component for displaying content above other content. It is positioned relative to an anchor,
9
- * which can be either a page coordinate (x/y) or an HTML element. When using an element as the popup anchor, the popup also
10
- * moves when the anchor element moves.
11
- */
12
- export declare abstract class PopupConfig {
13
- /**
14
- * Controls where to open the popup.
15
- *
16
- * Provide either a coordinate or an element to serve as the popup anchor. The align setting can be used to control
17
- * the region where to open the popup relative to the anchor.
18
- *
19
- * If you use an element as the popup anchor, the popup also moves when the anchor element moves. If you use a coordinate
20
- * and open the popup in the context of a view, the popup opens relative to the bounds of that view. Otherwise, it
21
- * is positioned relative to the page viewport. If you move or resize the view or the page, the popup will also be moved
22
- * depending on the pair of coordinates used.
23
- *
24
- * The following coordinate pairs are supported:
25
- * - x/y: relative to the "top/left" corner of the view or page viewport
26
- * - top/left: equivalent to passing a "x/y" coordinate
27
- * - top/right: relative to the "top/right" corner of the view or page viewport
28
- * - bottom/left: relative to the "bottom/left" corner of the view or page viewport
29
- * - bottom/right: relative to the "bottom/right" corner of the view or page viewport
30
- *
31
- * Positioning the popup using coordinates allows to pass an Observable to update the popup position. Note that the popup
32
- * will not display until the Observable emits the first coordinate.
33
- */
34
- abstract readonly anchor: ElementRef<Element> | Element | PopupOrigin | Observable<PopupOrigin>;
35
- /**
36
- * Specifies the component to display in the popup.
37
- *
38
- * In the component, you can inject the popup handle {@link Popup} to interact with the popup, such as to close it
39
- * or obtain its input data.
40
- */
41
- abstract readonly component: Type<any>;
42
- /**
43
- * Instructs Angular how to construct the component. In most cases, construct options need not to be set.
44
- */
45
- readonly componentConstructOptions?: {
46
- /**
47
- * Sets the injector for the instantiation of the popup component, giving you control over the objects available
48
- * for injection into the popup component. If not specified, uses the application's root injector, or the view's
49
- * injector if opened in the context of a view.
50
- *
51
- * ```ts
52
- * Injector.create({
53
- * parent: ...,
54
- * providers: [
55
- * {provide: <DiToken>, useValue: <value>}
56
- * ],
57
- * })
58
- * ```
59
- */
60
- injector?: Injector;
61
- /**
62
- * Specifies providers to be registered with the popup injector. Unlike providers that are registered via a separate {@link injector},
63
- * passed providers are registered in the same injector as the popup handle itself, allowing for dependency injection of the popup handle.
64
- */
65
- providers?: StaticProvider[];
66
- /**
67
- * Sets the component's attachment point in Angular's logical component tree (not the DOM tree used for rendering), effecting when
68
- * Angular checks the component for changes during a change detection cycle. If not set, inserts the component at the top level
69
- * in the component tree.
70
- */
71
- viewContainerRef?: ViewContainerRef;
72
- };
73
- /**
74
- * Hint where to align the popup relative to the popup anchor, unless there is not enough space available in that area. By default,
75
- * if not specified, the popup opens north of the anchor.
76
- */
77
- readonly align?: 'east' | 'west' | 'north' | 'south';
78
- /**
79
- * Optional data to pass to the popup component. In the component, you can inject the popup handle {@link Popup} to read input data.
80
- */
81
- readonly input?: any;
82
- /**
83
- * Controls when to close the popup.
84
- */
85
- readonly closeStrategy?: CloseStrategy;
86
- /**
87
- * Specifies the preferred popup size. If not specified, the popup adjusts its size to the content size.
88
- */
89
- readonly size?: PopupSize;
90
- /**
91
- * Specifies CSS class(es) to add to the popup, e.g., to locate the popup in tests.
92
- */
93
- readonly cssClass?: string | string[];
94
- /**
95
- * Specifies the context in which to open the popup.
96
- */
97
- readonly context?: {
98
- /**
99
- * Specifies the view the popup belongs to.
100
- *
101
- * Binds the popup to the lifecycle of a view so that it displays only if the view is active and closes when the view is closed.
102
- *
103
- * By default, if opening the popup in the context of a view, that view is used as the popup's contextual view.
104
- * If you set the view id to `null`, the popup will open without referring to the contextual view.
105
- */
106
- viewId?: ViewId | null;
107
- };
108
- }
109
- /**
110
- * Specifies when to close the popup.
111
- */
112
- export interface CloseStrategy {
113
- /**
114
- * Controls if to close the popup on focus loss, returning the result set via {@link Popup#setResult} to the popup opener.
115
- * Defaults to `true`.
116
- */
117
- onFocusLost?: boolean;
118
- /**
119
- * Controls if to close the popup when pressing escape. Defaults to `true`.
120
- * No return value will be passed to the popup opener.
121
- */
122
- onEscape?: boolean;
123
- }
124
- /**
125
- * Represents the preferred popup size as specified by the popup opener.
126
- */
127
- export interface PopupSize {
128
- /**
129
- * Specifies the min-height of the popup.
130
- */
131
- minHeight?: string;
132
- /**
133
- * Specifies the height of the popup.
134
- */
135
- height?: string;
136
- /**
137
- * Specifies the max-height of the popup.
138
- */
139
- maxHeight?: string;
140
- /**
141
- * Specifies the min-width of the popup.
142
- */
143
- minWidth?: string;
144
- /**
145
- * Specifies the width of the popup.
146
- */
147
- width?: string;
148
- /**
149
- * Specifies the max-width of the popup.
150
- */
151
- maxWidth?: string;
152
- }
153
- /**
154
- * Represents a handle that a popup component can inject to interact with the popup, for example,
155
- * to read input data or the configured size, or to close the popup.
156
- */
157
- export declare abstract class Popup<T = unknown, R = unknown> {
158
- /**
159
- * Input data as passed by the popup opener when opened the popup, or `undefined` if not passed.
160
- */
161
- abstract readonly input: T | undefined;
162
- /**
163
- * Preferred popup size as specified by the popup opener, or `undefined` if not set.
164
- */
165
- abstract readonly size: PopupSize | undefined;
166
- /**
167
- * Provides information about the context in which this popup was opened.
168
- *
169
- * @deprecated since version 18.0.0-beta.4; Inject {@link WorkbenchView} instead.
170
- */
171
- abstract readonly referrer: PopupReferrer;
172
- /**
173
- * CSS classes associated with the popup.
174
- */
175
- abstract readonly cssClasses: string[];
176
- /**
177
- * Sets a result that will be passed to the popup opener when the popup is closed on focus loss {@link CloseStrategy#onFocusLost}.
178
- */
179
- abstract setResult(result?: R): void;
180
- /**
181
- * Closes the popup. Optionally, pass a result or an error to the popup opener.
182
- */
183
- abstract close(result?: R | Error): void;
184
- }
185
- /**
186
- * Information about the context in which a popup was opened.
187
- */
188
- export interface PopupReferrer {
189
- /**
190
- * Identity of the view if opened in the context of a view.
191
- */
192
- viewId?: ViewId;
193
- }
@@ -1,44 +0,0 @@
1
- /**
2
- * Represents a point on the page or view, optionally with a dimension, where a workbench popup should be attached.
3
- */
4
- export type PopupOrigin = (Point | TopLeftPoint | TopRightPoint | BottomLeftPoint | BottomRightPoint) & {
5
- width?: number;
6
- height?: number;
7
- };
8
- /**
9
- * Coordinate relative to the "x/y" corner of the view or page viewport.
10
- */
11
- export interface Point {
12
- x: number;
13
- y: number;
14
- }
15
- /**
16
- * Coordinate relative to the "top/left" corner of the view or page viewport.
17
- *
18
- * This is equivalent to passing a "x/y" coordinate as {@link Point}.
19
- */
20
- export interface TopLeftPoint {
21
- top: number;
22
- left: number;
23
- }
24
- /**
25
- * Coordinate relative to the "top/right" corner of the view or page viewport.
26
- */
27
- export interface TopRightPoint {
28
- top: number;
29
- right: number;
30
- }
31
- /**
32
- * Coordinate relative to the "bottom/left" corner of the view or page viewport.
33
- */
34
- export interface BottomLeftPoint {
35
- bottom: number;
36
- left: number;
37
- }
38
- /**
39
- * Coordinate relative to the "bottom/right" corner of the view or page viewport.
40
- */
41
- export interface BottomRightPoint {
42
- bottom: number;
43
- right: number;
44
- }
@@ -1,68 +0,0 @@
1
- import { PopupConfig } from './popup.config';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Allows displaying a component in a workbench popup.
5
- *
6
- * A popup is a visual workbench component for displaying content above other content. It is positioned relative to an anchor,
7
- * which can be either a coordinate or an HTML element. The popup moves when the anchor moves.
8
- *
9
- * Unlike views, popups are not part of the persistent Workbench navigation, meaning that popups do not survive a page reload.
10
- */
11
- export declare class PopupService {
12
- private readonly _environmentInjector;
13
- private readonly _overlay;
14
- private readonly _focusManager;
15
- private readonly _viewRegistry;
16
- private readonly _zone;
17
- private readonly _document;
18
- private readonly _view;
19
- /**
20
- * Displays the specified component in a popup.
21
- *
22
- * To position the popup, provide either a coordinate or an element to serve as the popup anchor.
23
- *
24
- * If you use an element as the popup anchor, the popup also moves when the anchor element moves. If you use a coordinate
25
- * and open the popup in the context of a view, the popup opens relative to the bounds of that view. Otherwise, it
26
- * is positioned relative to the page viewport. If you move or resize the view or the page, the popup will also be moved
27
- * depending on the pair of coordinates used.
28
- *
29
- * By setting the alignment of the popup, you can control the region where to open the popup relative to its anchor.
30
- *
31
- * Optionally, you can pass data to the popup component. The component can inject the popup handle {@link Popup} to
32
- * read input data or to close the popup.
33
- *
34
- * By default, the popup will close on focus loss, or when the user hits the escape key.
35
- *
36
- * If opening the popup in the context of a view, the popup is bound to the lifecycle of the view, that is, the popup
37
- * is displayed only if the view is active and is closed when the view is closed.
38
- *
39
- * @param config - Controls popup behavior
40
- * @returns a promise that:
41
- * - resolves to the result if closed with a result
42
- * - resolves to `undefined` if closed without a result
43
- */
44
- open<R>(config: PopupConfig): Promise<R | undefined>;
45
- /**
46
- * Creates the popup handle.
47
- */
48
- private createPopup;
49
- /**
50
- * Closes the popup depending on the configured popup closing strategy.
51
- */
52
- private installPopupCloser;
53
- /**
54
- * Hides the popup when its contextual view is detached, and displays it when it is reattached. Also restores the focus on re-activation.
55
- * The contextual view is detached if not active, or located in the peripheral area and the main area is maximized.
56
- */
57
- private hidePopupOnViewDetach;
58
- /**
59
- * Creates a signal that tracks the position of the popup anchor.
60
- */
61
- private trackPopupOrigin;
62
- /**
63
- * Resolves the contextual view to which the popup is bound.
64
- */
65
- private resolveContextualView;
66
- static ɵfac: i0.ɵɵFactoryDeclaration<PopupService, never>;
67
- static ɵprov: i0.ɵɵInjectableDeclaration<PopupService>;
68
- }
@@ -1,3 +0,0 @@
1
- export { PopupService } from './popup.service';
2
- export { Popup, PopupConfig, CloseStrategy, PopupSize, PopupReferrer } from './popup.config';
3
- export { Point, TopLeftPoint, TopRightPoint, BottomLeftPoint, BottomRightPoint, PopupOrigin } from './popup.origin';
@@ -1,81 +0,0 @@
1
- import { ComponentType } from '@angular/cdk/portal';
2
- import { ComponentRef, Injector, Provider, Signal, ViewContainerRef } from '@angular/core';
3
- /**
4
- * Like the Angular CDK 'ComponentPortal' but does not destroy the component on detach.
5
- *
6
- * IMPORTANT: In order for the component to have the "correct" injection context, construct it the time attaching it to the Angular component tree,
7
- * or by calling {@link createComponentFromInjectionContext}. The "correct" injection context is crucial, for example, if the portal is displayed
8
- * in a router outlet, so that child outlets can register with their logical parent outlet. The Angular router uses the logical outlet hierarchy to
9
- * resolve and activate child routes.
10
- *
11
- * @see WbComponentPortal
12
- */
13
- export declare class WbComponentPortal<T = any> {
14
- private _componentType;
15
- private _options?;
16
- private _viewContainerRef;
17
- private _componentRef;
18
- private _logger;
19
- private _attached;
20
- constructor(_componentType: ComponentType<T>, _options?: PortalOptions | undefined);
21
- /**
22
- * Constructs the portal's component using given injection context.
23
- */
24
- private createComponent;
25
- /**
26
- * Constructs the portal's component using the given injection context.
27
- */
28
- createComponentFromInjectionContext(injectionContext: Injector): void;
29
- /**
30
- * Attaches this portal to the given {@link ViewContainerRef} according to the following rules:
31
- *
32
- * - If the component is not yet constructed, constructs it based on the given view container's injection context.
33
- * - If already attached to the given view container, does nothing.
34
- * - If already attached to a different view container, detaches it first.
35
- */
36
- attach(viewContainerRef: ViewContainerRef): void;
37
- /**
38
- * Detaches this portal from its view container without destroying it. Does nothing if not attached.
39
- *
40
- * The portal is removed from the DOM and its change detector detached from the Angular change detector tree,
41
- * so it will not be checked for changes until it is reattached.
42
- */
43
- detach(): void;
44
- get isConstructed(): boolean;
45
- isAttachedTo(viewContainerRef: ViewContainerRef): boolean;
46
- get isDestroyed(): boolean;
47
- get componentRef(): ComponentRef<T>;
48
- get attached(): Signal<boolean>;
49
- private onDestroy;
50
- /**
51
- * Destroys the component instance and all the data structures associated with it.
52
- */
53
- destroy(): void;
54
- }
55
- /**
56
- * Controls instantiation of the component.
57
- */
58
- export interface PortalOptions {
59
- /**
60
- * Providers registered with the injector for the instantiation of the component.
61
- */
62
- providers?: Provider[];
63
- }
64
- /**
65
- * Lifecycle hook for component rendered by {@link WbComponentPortal} when attaching to the DOM.
66
- */
67
- export interface OnAttach {
68
- /**
69
- * Method invoked after attached this component to the DOM.
70
- */
71
- onAttach(): void;
72
- }
73
- /**
74
- * Lifecycle hook for component rendered by {@link WbComponentPortal} when detaching from the DOM.
75
- */
76
- export interface OnDetach {
77
- /**
78
- * Method invoked before detaching this component from the DOM.
79
- */
80
- onDetach(): void;
81
- }
@@ -1,30 +0,0 @@
1
- import { OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { WbComponentPortal } from './wb-component-portal';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Directive version of {@link WbComponentPortal}, enabling declarative use in templates.
6
- *
7
- * Unlike `CdkPortalOutlet` the portal is not destroyed on detach.
8
- *
9
- * ---
10
- * Usage:
11
- *
12
- * ```html
13
- * <ng-container *wbPortalOutlet="greeting"/>
14
- * <!-- or -->
15
- * <ng-template [wbPortalOutlet]="greeting"/>
16
- * ````
17
- *
18
- * @see WbComponentPortal
19
- */
20
- export declare class WorkbenchPortalOutletDirective implements OnDestroy {
21
- private _viewContainerRef;
22
- private _portal;
23
- constructor(_viewContainerRef: ViewContainerRef, nullTemplate: TemplateRef<void>);
24
- set portal(portal: WbComponentPortal | null);
25
- private attach;
26
- private detach;
27
- ngOnDestroy(): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchPortalOutletDirective, never>;
29
- static ɵdir: i0.ɵɵDirectiveDeclaration<WorkbenchPortalOutletDirective, "ng-template[wbPortalOutlet]", never, { "portal": { "alias": "wbPortalOutlet"; "required": true; }; }, {}, never, never, true, never>;
30
- }
@@ -1,22 +0,0 @@
1
- export { WorkbenchConfig, MenuItemConfig, ViewMenuItemsConfig } from './workbench-config';
2
- export { provideWorkbench } from './workbench.provider';
3
- export { WorkbenchService } from './workbench.service';
4
- export { WORKBENCH_ID } from './workbench-id';
5
- export { WorkbenchPartAction, WorkbenchPartActionFn, WorkbenchMenuItem, WorkbenchViewMenuItemFn, WorkbenchTheme, CanClose, CanCloseFn, CanCloseRef } from './workbench.model';
6
- export { WorkbenchComponent } from './workbench.component';
7
- export { VIEW_TAB_RENDERING_CONTEXT, ViewTabRenderingContext } from './workbench.constants';
8
- export * from './layout/public_api';
9
- export * from './desktop/public_api';
10
- export * from './perspective/public_api';
11
- export * from './part/public_api';
12
- export * from './view/public_api';
13
- export * from './routing/public_api';
14
- export * from './message-box/public_api';
15
- export * from './dialog/public_api';
16
- export * from './notification/public_api';
17
- export * from './popup/public_api';
18
- export * from './common/public_api';
19
- export * from './microfrontend-platform/public_api';
20
- export * from './startup/public_api';
21
- export * from './logging/public_api';
22
- export * from './storage/public_api';
@@ -1,51 +0,0 @@
1
- /**
2
- * Provides a registry for workbench model objects.
3
- */
4
- export declare class WorkbenchObjectRegistry<KEY, T> {
5
- private readonly _objects;
6
- private readonly _objectsById;
7
- private readonly _nullObjectErrorFn;
8
- private readonly _onUnregister;
9
- readonly objects: import("@angular/core").Signal<T[]>;
10
- /**
11
- * Creates an instance of the registry.
12
- *
13
- * This registry must be constructed within an injection context. Destroying the injection context will also destroy the registry,
14
- * invoking the specified `onUnregister` function for each object in the registry.
15
- *
16
- * @param config - Configures the registry.
17
- * @param config.nullObjectErrorFn - Function to provide an error when looking up an object not contained in the registry.
18
- * @param config.onUnregister - Function invoked when an object is unregistered.
19
- */
20
- constructor(config?: {
21
- nullObjectErrorFn?: (key: KEY) => Error;
22
- onUnregister?: (object: T) => void;
23
- });
24
- /**
25
- * Registers an object under given key, replacing any previously registered object with the same key.
26
- */
27
- register(key: KEY, object: T): void;
28
- /**
29
- * Unregisters specified object.
30
- */
31
- unregister(key: KEY): T | null;
32
- /**
33
- * Returns the object of the given identity. If not found, by default, throws an error unless setting the `orElseNull` option.
34
- */
35
- get(key: KEY): T;
36
- get(key: KEY, options?: {
37
- orElse: null;
38
- }): T | null;
39
- /**
40
- * Indicates whether an object with the specified key exists or not.
41
- */
42
- has(key: KEY): boolean;
43
- /**
44
- * Indicates whether this registry is empty.
45
- */
46
- isEmpty(): boolean;
47
- /**
48
- * Clears this registry.
49
- */
50
- clear(): void;
51
- }
@@ -1,15 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Angular standardizes component-less auxiliary routes by adding the `ɵEmptyOutletComponent` component,
4
- * but only for routes registered via {@link ROUTES} DI token or passed to {@link Router#resetConfig}.
5
- *
6
- * Consequently, auxiliary routes that the workbench dynamically registers based on the current workbench
7
- * state must also be standardized. However, we do not use Angular's {@link ɵEmptyOutletComponent} component
8
- * as it does not fill the content to the available space, required for view content.
9
- *
10
- * For more information, see the `standardizeConfig` function in Angular.
11
- */
12
- export declare class ɵEmptyOutletComponent {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵEmptyOutletComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<ɵEmptyOutletComponent, "ng-component", never, {}, {}, never, never, true, never>;
15
- }
@@ -1,5 +0,0 @@
1
- export { WorkbenchRouter } from './workbench-router.service';
2
- export { WorkbenchRouterLinkDirective } from './workbench-router-link.directive';
3
- export { WorkbenchRouteData } from './workbench-route-data';
4
- export { Commands, NavigationData, NavigationState, WorkbenchNavigationExtras, NavigateFn } from './routing.model';
5
- export { canMatchWorkbenchView, canMatchWorkbenchPerspective, canMatchWorkbenchPart } from './workbench-route-guards';
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Pretends the router outlet to be a top-level router outlet.
4
- *
5
- * Use this directive on nested router outlets to be the target of top-level routes, i.e., routes registered by the workbench for each part and view.
6
- */
7
- export declare class RouterOutletRootContextDirective {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterOutletRootContextDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<RouterOutletRootContextDirective, "router-outlet[wbRouterOutletRootContext]", never, {}, {}, never, never, true, never>;
10
- }