@scion/workbench 19.0.0-beta.3 → 20.0.0-beta.2

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 (263) hide show
  1. package/_index.scss +2 -2
  2. package/fesm2022/scion-workbench.mjs +1411 -1330
  3. package/fesm2022/scion-workbench.mjs.map +1 -1
  4. package/index.d.ts +5519 -3
  5. package/package.json +22 -18
  6. package/lib/activation-instant.provider.d.ts +0 -12
  7. package/lib/activity/activity-bar/activity-bar.component.d.ts +0 -10
  8. package/lib/activity/activity-bar/activity-item/activity-item.component.d.ts +0 -16
  9. package/lib/activity/activity-bar/activity-stack/activity-stack.component.d.ts +0 -10
  10. package/lib/activity/activity-panel/activity-panel.component.d.ts +0 -41
  11. package/lib/activity/public_api.d.ts +0 -1
  12. package/lib/activity/workbench-activity.model.d.ts +0 -110
  13. package/lib/common/asserts.util.d.ts +0 -13
  14. package/lib/common/class-list.d.ts +0 -64
  15. package/lib/common/coerce-observable.pipe.d.ts +0 -12
  16. package/lib/common/css-class.util.d.ts +0 -5
  17. package/lib/common/dasherize.util.d.ts +0 -4
  18. package/lib/common/disposable.d.ts +0 -13
  19. package/lib/common/dom.util.d.ts +0 -84
  20. package/lib/common/grid-if-visible.pipe.d.ts +0 -13
  21. package/lib/common/instanceof.pipe.d.ts +0 -10
  22. package/lib/common/math.util.d.ts +0 -7
  23. package/lib/common/null-if-empty.pipe.d.ts +0 -10
  24. package/lib/common/objects.util.d.ts +0 -29
  25. package/lib/common/observables.d.ts +0 -26
  26. package/lib/common/operators.d.ts +0 -13
  27. package/lib/common/public_api.d.ts +0 -1
  28. package/lib/common/resolve-when.util.d.ts +0 -9
  29. package/lib/common/stringify-error.util.d.ts +0 -4
  30. package/lib/common/throw-error.util.d.ts +0 -4
  31. package/lib/common/typeof.pipe.d.ts +0 -10
  32. package/lib/common/uid.util.d.ts +0 -9
  33. package/lib/common/utility-types.d.ts +0 -6
  34. package/lib/common//311/265destroy-ref.d.ts +0 -11
  35. package/lib/communication/workbench-broadcast-channel.d.ts +0 -26
  36. package/lib/content-projection/content-as-overlay.component.d.ts +0 -60
  37. package/lib/desktop/desktop.directive.d.ts +0 -37
  38. package/lib/desktop/public_api.d.ts +0 -1
  39. package/lib/dialog/dialog-footer/dialog-action-filter.pipe.d.ts +0 -11
  40. package/lib/dialog/dialog-footer/dialog-footer.component.d.ts +0 -10
  41. package/lib/dialog/dialog-footer/workbench-dialog-action.directive.d.ts +0 -27
  42. package/lib/dialog/dialog-footer/workbench-dialog-footer.directive.d.ts +0 -26
  43. package/lib/dialog/dialog-header/dialog-header.component.d.ts +0 -12
  44. package/lib/dialog/dialog-header/workbench-dialog-header.directive.d.ts +0 -26
  45. package/lib/dialog/movable.directive.d.ts +0 -49
  46. package/lib/dialog/public_api.d.ts +0 -6
  47. package/lib/dialog/resizable.directive.d.ts +0 -75
  48. package/lib/dialog/workbench-dialog.component.d.ts +0 -55
  49. package/lib/dialog/workbench-dialog.d.ts +0 -118
  50. package/lib/dialog/workbench-dialog.options.d.ts +0 -64
  51. package/lib/dialog/workbench-dialog.registry.d.ts +0 -43
  52. package/lib/dialog/workbench-dialog.service.d.ts +0 -96
  53. package/lib/dialog//311/265workbench-dialog.d.ts +0 -128
  54. package/lib/dialog//311/265workbench-dialog.service.d.ts +0 -29
  55. package/lib/executor/latest-task-executor.d.ts +0 -26
  56. package/lib/executor/single-task-executor.d.ts +0 -23
  57. package/lib/filter-field/filter-field.component.d.ts +0 -57
  58. package/lib/glass-pane/blockable.d.ts +0 -11
  59. package/lib/glass-pane/blocking.d.ts +0 -17
  60. package/lib/glass-pane/glass-pane.directive.d.ts +0 -51
  61. package/lib/icon/icon-providers.d.ts +0 -6
  62. package/lib/icon/icon.component.d.ts +0 -33
  63. package/lib/icon/material-icon-provider.d.ts +0 -25
  64. package/lib/icon/public_api.d.ts +0 -1
  65. package/lib/icon/workbench-icon-provider.d.ts +0 -30
  66. package/lib/icon/workbench-icon-provider.model.d.ts +0 -64
  67. package/lib/layout/grid/grid.component.d.ts +0 -65
  68. package/lib/layout/grid-element/grid-element.component.d.ts +0 -37
  69. package/lib/layout/layout.component.d.ts +0 -60
  70. package/lib/layout/migration/model/workbench-grid-migration-v2.model.d.ts +0 -22
  71. package/lib/layout/migration/model/workbench-grid-migration-v3.model.d.ts +0 -30
  72. package/lib/layout/migration/model/workbench-grid-migration-v4.model.d.ts +0 -31
  73. package/lib/layout/migration/model/workbench-grid-migration-v5.model.d.ts +0 -36
  74. package/lib/layout/migration/model/workbench-grid-migration-v6.model.d.ts +0 -35
  75. package/lib/layout/migration/model/workbench-grid-migration-v7.model.d.ts +0 -37
  76. package/lib/layout/migration/model/workbench-layout-migration-v1.model.d.ts +0 -8
  77. package/lib/layout/migration/model/workbench-layout-migration-v2.model.d.ts +0 -10
  78. package/lib/layout/migration/model/workbench-layout-migration-v3.model.d.ts +0 -10
  79. package/lib/layout/migration/model/workbench-layout-migration-v4.model.d.ts +0 -20
  80. package/lib/layout/migration/workbench-grid-migration-v3.service.d.ts +0 -14
  81. package/lib/layout/migration/workbench-grid-migration-v4.service.d.ts +0 -12
  82. package/lib/layout/migration/workbench-grid-migration-v5.service.d.ts +0 -12
  83. package/lib/layout/migration/workbench-grid-migration-v6.service.d.ts +0 -12
  84. package/lib/layout/migration/workbench-grid-migration-v7.service.d.ts +0 -10
  85. package/lib/layout/migration/workbench-layout-migration-v2.service.d.ts +0 -13
  86. package/lib/layout/migration/workbench-layout-migration-v3.service.d.ts +0 -12
  87. package/lib/layout/migration/workbench-layout-migration-v4.service.d.ts +0 -12
  88. package/lib/layout/public_api.d.ts +0 -3
  89. package/lib/layout/rendering-flag.d.ts +0 -7
  90. package/lib/layout/stringifier.d.ts +0 -33
  91. package/lib/layout/workbench-grid.model.d.ts +0 -116
  92. package/lib/layout/workbench-layout-merger.service.d.ts +0 -19
  93. package/lib/layout/workbench-layout-storage.service.d.ts +0 -28
  94. package/lib/layout/workbench-layout.d.ts +0 -518
  95. package/lib/layout/workbench-layout.factory.d.ts +0 -18
  96. package/lib/layout/workbench-layout.service.d.ts +0 -57
  97. package/lib/layout/workbench-layouts.util.d.ts +0 -51
  98. package/lib/layout/workench-layout-serializer.service.d.ts +0 -110
  99. package/lib/layout//311/265workbench-layout.d.ts +0 -745
  100. package/lib/layout//311/265workbench-layout.factory.d.ts +0 -22
  101. package/lib/logging/console-appender.service.d.ts +0 -10
  102. package/lib/logging/index.d.ts +0 -5
  103. package/lib/logging/logger-names.d.ts +0 -22
  104. package/lib/logging/logger.d.ts +0 -69
  105. package/lib/logging/logging-support.d.ts +0 -6
  106. package/lib/logging/logging.model.d.ts +0 -52
  107. package/lib/logging/public_api.d.ts +0 -2
  108. package/lib/logging//311/265logger.d.ts +0 -21
  109. package/lib/message-box/message-box-footer/message-box-footer.component.d.ts +0 -17
  110. package/lib/message-box/message-box-header/message-box-header.component.d.ts +0 -7
  111. package/lib/message-box/public_api.d.ts +0 -2
  112. package/lib/message-box/workbench-message-box.component.d.ts +0 -25
  113. package/lib/message-box/workbench-message-box.options.d.ts +0 -96
  114. package/lib/message-box/workbench-message-box.service.d.ts +0 -100
  115. package/lib/message-box//311/265workbench-message-box.service.d.ts +0 -16
  116. package/lib/microfrontend-platform/common/microfrontend.util.d.ts +0 -39
  117. package/lib/microfrontend-platform/initialization/microfrontend-platform-initializer.service.d.ts +0 -31
  118. package/lib/microfrontend-platform/initialization/ng-zone-observable-decorator.d.ts +0 -12
  119. package/lib/microfrontend-platform/initialization/workbench-host-manifest-interceptor.service.d.ts +0 -1
  120. package/lib/microfrontend-platform/manifest-object-cache.service.d.ts +0 -32
  121. package/lib/microfrontend-platform/microfrontend-dialog/microfrontend-dialog-capability-validator.interceptor.d.ts +0 -11
  122. package/lib/microfrontend-platform/microfrontend-dialog/microfrontend-dialog-intent-handler.interceptor.d.ts +0 -25
  123. package/lib/microfrontend-platform/microfrontend-dialog/microfrontend-dialog.component.d.ts +0 -32
  124. package/lib/microfrontend-platform/microfrontend-host-dialog/microfrontend-host-dialog.component.d.ts +0 -32
  125. package/lib/microfrontend-platform/microfrontend-host-message-box/microfrontend-host-message-box.component.d.ts +0 -37
  126. package/lib/microfrontend-platform/microfrontend-host-message-box/text-message/text-message.component.d.ts +0 -23
  127. package/lib/microfrontend-platform/microfrontend-host-popup/microfrontend-host-popup.component.d.ts +0 -23
  128. package/lib/microfrontend-platform/microfrontend-message-box/microfrontend-message-box-capability-validator.interceptor.d.ts +0 -10
  129. package/lib/microfrontend-platform/microfrontend-message-box/microfrontend-message-box-intent-handler.interceptor.d.ts +0 -25
  130. package/lib/microfrontend-platform/microfrontend-message-box/microfrontend-message-box-legacy-intent-translator.interceptor.d.ts +0 -11
  131. package/lib/microfrontend-platform/microfrontend-message-box/microfrontend-message-box.component.d.ts +0 -29
  132. package/lib/microfrontend-platform/microfrontend-notification/microfrontend-notification-intent-handler.d.ts +0 -7
  133. package/lib/microfrontend-platform/microfrontend-perspective/microfrontend-perspective-capability-validator.interceptor.d.ts +0 -10
  134. package/lib/microfrontend-platform/microfrontend-perspective/microfrontend-perspective-installer.service.d.ts +0 -5
  135. package/lib/microfrontend-platform/microfrontend-perspective/microfrontend-perspective-intent-handler.interceptor.d.ts +0 -17
  136. package/lib/microfrontend-platform/microfrontend-perspective/workbench-perspective-data.d.ts +0 -9
  137. package/lib/microfrontend-platform/microfrontend-platform-config-loader.d.ts +0 -13
  138. package/lib/microfrontend-platform/microfrontend-platform-initializer.provider.d.ts +0 -85
  139. package/lib/microfrontend-platform/microfrontend-platform.config.d.ts +0 -20
  140. package/lib/microfrontend-platform/microfrontend-popup/microfrontend-popup-capability-validator.interceptor.d.ts +0 -10
  141. package/lib/microfrontend-platform/microfrontend-popup/microfrontend-popup-intent-handler.interceptor.d.ts +0 -35
  142. package/lib/microfrontend-platform/microfrontend-popup/microfrontend-popup.component.d.ts +0 -33
  143. package/lib/microfrontend-platform/microfrontend-splash/microfrontend-splash.component.d.ts +0 -5
  144. package/lib/microfrontend-platform/microfrontend-view/microfrontend-view-capability-validator.interceptor.d.ts +0 -10
  145. package/lib/microfrontend-platform/microfrontend-view/microfrontend-view-command-handler.service.d.ts +0 -5
  146. package/lib/microfrontend-platform/microfrontend-view/microfrontend-view-intent-handler.interceptor.d.ts +0 -33
  147. package/lib/microfrontend-platform/microfrontend-view/microfrontend-view-routes.d.ts +0 -56
  148. package/lib/microfrontend-platform/microfrontend-view/microfrontend-view.component.d.ts +0 -67
  149. package/lib/microfrontend-platform/microfrontend-view/microfrontend-workbench-view.model.d.ts +0 -14
  150. package/lib/microfrontend-platform/public_api.d.ts +0 -5
  151. package/lib/microfrontend-platform/stable-capability-id-assigner.interceptor.d.ts +0 -11
  152. package/lib/microfrontend-platform/workbench-microfrontend-support.d.ts +0 -7
  153. package/lib/migration/workbench-migration.d.ts +0 -9
  154. package/lib/migration/workbench-migrator.d.ts +0 -18
  155. package/lib/notification/notification-css-classes.pipe.d.ts +0 -13
  156. package/lib/notification/notification-list.component.d.ts +0 -16
  157. package/lib/notification/notification.component.d.ts +0 -27
  158. package/lib/notification/notification.config.d.ts +0 -86
  159. package/lib/notification/notification.d.ts +0 -32
  160. package/lib/notification/notification.service.d.ts +0 -49
  161. package/lib/notification/public_api.d.ts +0 -3
  162. package/lib/notification/text-notification.component.d.ts +0 -10
  163. package/lib/notification//311/265notification.d.ts +0 -19
  164. package/lib/null-content/null-content.component.d.ts +0 -11
  165. package/lib/page-not-found/page-not-found.component.d.ts +0 -11
  166. package/lib/part/main-area-part/main-area-part.component.d.ts +0 -41
  167. package/lib/part/part-action/part-action.component.d.ts +0 -39
  168. package/lib/part/part-action-bar/part-action.directive.d.ts +0 -62
  169. package/lib/part/part-bar/part-bar.component.d.ts +0 -29
  170. package/lib/part/part-portal.pipe.d.ts +0 -17
  171. package/lib/part/part.component.d.ts +0 -37
  172. package/lib/part/public_api.d.ts +0 -3
  173. package/lib/part/view-context-menu/accelerator-format.pipe.d.ts +0 -10
  174. package/lib/part/view-context-menu/menu-item/menu-item.component.d.ts +0 -39
  175. package/lib/part/view-context-menu/text/text.component.d.ts +0 -6
  176. package/lib/part/view-context-menu/view-menu-item.directive.d.ts +0 -75
  177. package/lib/part/view-context-menu/view-menu.component.d.ts +0 -22
  178. package/lib/part/view-context-menu/view-menu.service.d.ts +0 -53
  179. package/lib/part/view-list/view-list.component.d.ts +0 -22
  180. package/lib/part/view-list-button/view-list-button.component.d.ts +0 -18
  181. package/lib/part/view-list-item/view-list-item.component.d.ts +0 -13
  182. package/lib/part/view-tab/view-tab.component.d.ts +0 -35
  183. package/lib/part/view-tab-bar/view-tab-bar.component.d.ts +0 -164
  184. package/lib/part/view-tab-content/view-tab-content.component.d.ts +0 -7
  185. package/lib/part/view-tab-drag-image/view-tab-drag-image.component.d.ts +0 -38
  186. package/lib/part/workbench-part-action.registry.d.ts +0 -7
  187. package/lib/part/workbench-part.model.d.ts +0 -111
  188. package/lib/part/workbench-part.registry.d.ts +0 -7
  189. package/lib/part//311/265workbench-part.model.d.ts +0 -104
  190. package/lib/perspective/public_api.d.ts +0 -1
  191. package/lib/perspective/workbench-perspective-view-conflict-resolver.service.d.ts +0 -18
  192. package/lib/perspective/workbench-perspective.model.d.ts +0 -91
  193. package/lib/perspective/workbench-perspective.registry.d.ts +0 -7
  194. package/lib/perspective/workbench-perspective.service.d.ts +0 -73
  195. package/lib/perspective//311/265workbench-perspective.model.d.ts +0 -72
  196. package/lib/popup/popup.component.d.ts +0 -26
  197. package/lib/popup/popup.config.d.ts +0 -188
  198. package/lib/popup/popup.origin.d.ts +0 -44
  199. package/lib/popup/popup.service.d.ts +0 -58
  200. package/lib/popup/public_api.d.ts +0 -3
  201. package/lib/portal/wb-component-portal.d.ts +0 -81
  202. package/lib/portal/workbench-portal-outlet.directive.d.ts +0 -32
  203. package/lib/public_api.d.ts +0 -25
  204. package/lib/registry/workbench-object-registry.d.ts +0 -51
  205. package/lib/routing/empty-outlet/empty-outlet.component.d.ts +0 -15
  206. package/lib/routing/public_api.d.ts +0 -5
  207. package/lib/routing/router-outlet-root-context.directive.d.ts +0 -10
  208. package/lib/routing/routing.model.d.ts +0 -156
  209. package/lib/routing/routing.util.d.ts +0 -116
  210. package/lib/routing/url-segment-matcher.d.ts +0 -20
  211. package/lib/routing/workbench-auxiliary-route-installer.service.d.ts +0 -44
  212. package/lib/routing/workbench-layout-differ.d.ts +0 -33
  213. package/lib/routing/workbench-navigational-states.d.ts +0 -48
  214. package/lib/routing/workbench-outlet-differ.d.ts +0 -48
  215. package/lib/routing/workbench-route-data.d.ts +0 -33
  216. package/lib/routing/workbench-route-guards.d.ts +0 -62
  217. package/lib/routing/workbench-router-link.directive.d.ts +0 -46
  218. package/lib/routing/workbench-router.service.d.ts +0 -66
  219. package/lib/routing/workbench-url-observer.service.d.ts +0 -73
  220. package/lib/routing//311/265location.d.ts +0 -8
  221. package/lib/routing//311/265workbench-router.service.d.ts +0 -78
  222. package/lib/startup/public_api.d.ts +0 -4
  223. package/lib/startup/splash/splash.component.d.ts +0 -8
  224. package/lib/startup/workbench-initializer.d.ts +0 -168
  225. package/lib/startup/workbench-launcher.service.d.ts +0 -63
  226. package/lib/startup/workbench-startup.service.d.ts +0 -37
  227. package/lib/startup//311/265workbench-launcher.service.d.ts +0 -19
  228. package/lib/startup//311/265workbench-startup.service.d.ts +0 -16
  229. package/lib/storage/public_api.d.ts +0 -1
  230. package/lib/storage/workbench-storage.d.ts +0 -16
  231. package/lib/text/public_api.d.ts +0 -1
  232. package/lib/text/text-providers.d.ts +0 -6
  233. package/lib/text/text.d.ts +0 -30
  234. package/lib/text/text.pipe.d.ts +0 -24
  235. package/lib/text/workbench-text-provider.d.ts +0 -7
  236. package/lib/text/workbench-text-provider.model.d.ts +0 -40
  237. package/lib/text/workbench-view-menu-config-text-provider.d.ts +0 -8
  238. package/lib/theme/workbench-theme-switcher.service.d.ts +0 -27
  239. package/lib/view/public_api.d.ts +0 -1
  240. package/lib/view/view-context-provider.d.ts +0 -6
  241. package/lib/view/view-move-handler.service.d.ts +0 -27
  242. package/lib/view/view-portal.pipe.d.ts +0 -14
  243. package/lib/view/view.component.d.ts +0 -32
  244. package/lib/view/workbench-view-menu-item.registry.d.ts +0 -7
  245. package/lib/view/workbench-view.model.d.ts +0 -226
  246. package/lib/view/workbench-view.registry.d.ts +0 -7
  247. package/lib/view//311/265workbench-view.model.d.ts +0 -156
  248. package/lib/view-dnd/grid-drop-targets.util.d.ts +0 -22
  249. package/lib/view-dnd/requires-drop-zone.pipe.d.ts +0 -13
  250. package/lib/view-dnd/view-drag.service.d.ts +0 -254
  251. package/lib/view-dnd/view-drop-placeholder-renderer.service.d.ts +0 -27
  252. package/lib/view-dnd/view-drop-zone.directive.d.ts +0 -112
  253. package/lib/view-dnd/view-tab-drag-image-renderer.service.d.ts +0 -57
  254. package/lib/workbench-config.d.ts +0 -339
  255. package/lib/workbench-element-references.d.ts +0 -17
  256. package/lib/workbench-id.d.ts +0 -7
  257. package/lib/workbench.component.d.ts +0 -41
  258. package/lib/workbench.constants.d.ts +0 -73
  259. package/lib/workbench.model.d.ts +0 -220
  260. package/lib/workbench.provider.d.ts +0 -89
  261. package/lib/workbench.service.d.ts +0 -193
  262. package/lib//311/265workbench.service.d.ts +0 -54
  263. package/public-api.d.ts +0 -4
@@ -1,745 +0,0 @@
1
- import { MPart, MPartGrid, MView, WorkbenchGrids } from './workbench-grid.model';
2
- import { DockedPartExtras, DockingArea, MAIN_AREA, PartExtras, ReferencePart, WorkbenchLayout } from './workbench-layout';
3
- import { LayoutSerializationFlags } from './workench-layout-serializer.service';
4
- import { InjectionToken } from '@angular/core';
5
- import { Commands, NavigationData, NavigationState, NavigationStates, Outlets } from '../routing/routing.model';
6
- import { ActivatedRoute, UrlSegment } from '@angular/router';
7
- import { ViewId } from '../view/workbench-view.model';
8
- import { UrlSegmentMatcher } from '../routing/url-segment-matcher';
9
- import { WorkbenchOutlet } from '../workbench.constants';
10
- import { PartId } from '../part/workbench-part.model';
11
- import { ActivityId, MActivity, MActivityLayout, MActivityStack } from '../activity/workbench-activity.model';
12
- import { RequireOne } from '../common/utility-types';
13
- import * as i0 from "@angular/core";
14
- /**
15
- * @inheritDoc
16
- *
17
- * IMPORTANT: Methods starting with an underscore indicate they are not working on a working copy, but modifying the layout instance.
18
- */
19
- export declare class ɵWorkbenchLayout implements WorkbenchLayout {
20
- private readonly _grids;
21
- private readonly _activityLayout;
22
- private readonly _outlets;
23
- private readonly _navigationStates;
24
- private readonly _partActivationInstantProvider;
25
- private readonly _viewActivationInstantProvider;
26
- private readonly _workbenchLayoutSerializer;
27
- private readonly _injector;
28
- /** Identifies the perspective of this layout, if any. */
29
- readonly perspectiveId: string | undefined;
30
- /**
31
- * Creates a workbench layout based on given config.
32
- *
33
- * @see WorkbenchLayoutConstructConfig
34
- */
35
- constructor(config?: WorkbenchLayoutConstructConfig);
36
- get activityLayout(): MActivityLayout;
37
- get grids(): WorkbenchGrids;
38
- /**
39
- * Tests if given activity is contained in this layout.
40
- */
41
- hasActivity(id: ActivityId): boolean;
42
- /**
43
- * Indicates if this layout contains activities.
44
- */
45
- hasActivities(): boolean;
46
- /**
47
- * Tests if given part is contained in the specified grid.
48
- */
49
- hasPart(id: string, options?: {
50
- grid?: keyof WorkbenchGrids;
51
- }): boolean;
52
- /**
53
- * Tests if given view is contained in the specified grid.
54
- */
55
- hasView(id: string, options?: {
56
- grid?: keyof WorkbenchGrids;
57
- }): boolean;
58
- /**
59
- * Finds the URL of outlets based on the specified filter.
60
- *
61
- * @param selector - Defines the search scope.
62
- * @return outlets matching the filter criteria.
63
- */
64
- outlets(selector: RequireOne<{
65
- mainGrid: true;
66
- mainAreaGrid: true;
67
- activityGrids: true;
68
- }>): Outlets;
69
- /**
70
- * Finds navigational state based on the specified filter.
71
- *
72
- * @param findBy - Defines the search scope.
73
- * @param findBy.grid - Searches outlets in the specified grid.
74
- * @return state matching the filter criteria.
75
- */
76
- navigationStates(findBy?: {
77
- grid?: keyof WorkbenchGrids;
78
- }): NavigationStates;
79
- /**
80
- * Finds the navigational state of specified outlet.
81
- */
82
- navigationState(findBy: {
83
- outlet: WorkbenchOutlet;
84
- }): NavigationState;
85
- /**
86
- * Finds the URL of specified outlet.
87
- */
88
- urlSegments(findBy: {
89
- outlet: WorkbenchOutlet;
90
- }): UrlSegment[];
91
- /**
92
- * Maximizes the main content by minimizing activities, or restores activities to the state prior to the last minimization otherwise.
93
- *
94
- * Has no effect for layouts without activities.
95
- *
96
- * @return a copy of this layout with the maximization changed.
97
- */
98
- toggleMaximized(): ɵWorkbenchLayout;
99
- /**
100
- * Finds activities based on the specified filter.
101
- *
102
- * @param findBy - Defines the search scope.
103
- * @param findBy.id - Searches for activities with the specified id.
104
- * @param findBy.active - Searches for activities which are active.
105
- * @param findBy.partId - Searches for activities that contain the specified part.
106
- * @param findBy.viewId - Searches for activities that contain the specified view.
107
- * @param options - Controls the search.
108
- * @param options.throwIfEmpty - Controls to error if no activity is found.
109
- * @param options.throwIfMulti - Controls to error if multiple activities are found.
110
- * @return activities matching the filter criteria.
111
- */
112
- activities(findBy: {
113
- id?: ActivityId;
114
- active?: boolean;
115
- partId?: PartId;
116
- viewId?: ViewId;
117
- }, options: {
118
- throwIfEmpty: (() => Error) | true;
119
- throwIfMulti: (() => Error) | true;
120
- }): readonly [MActivity];
121
- activities(findBy: {
122
- id?: ActivityId;
123
- active?: boolean;
124
- partId?: PartId;
125
- viewId?: ViewId;
126
- }, options: {
127
- throwIfEmpty: (() => Error) | true;
128
- throwIfMulti?: (() => Error) | true;
129
- }): readonly [MActivity, ...MActivity[]];
130
- activities(findBy?: {
131
- id?: ActivityId;
132
- active?: boolean;
133
- partId?: PartId;
134
- viewId?: ViewId;
135
- }, options?: {
136
- throwIfEmpty?: (() => Error) | true;
137
- throwIfMulti?: (() => Error) | true;
138
- }): readonly MActivity[];
139
- /**
140
- * Finds an activity based on the specified filter. If not found, by default, throws an error unless setting the `orElseNull` option.
141
- *
142
- * @param findBy - Defines the search scope.
143
- * @param findBy.id - Searches for an activity with the specified id.
144
- * @param findBy.active - Searches for an activity which is active.
145
- * @param findBy.partId - Searches for an activity that contains the specified part.
146
- * @param findBy.viewId - Searches for an activity that contains the specified view.
147
- * @param options - Controls the search.
148
- * @param options.orElse - Controls to return `null` instead of throwing an error if no activity is found.
149
- * @return activity matching the filter criteria.
150
- */
151
- activity(findBy: RequireOne<{
152
- id: ActivityId;
153
- active: boolean;
154
- partId: PartId;
155
- viewId: ViewId;
156
- }>): MActivity;
157
- activity(findBy: RequireOne<{
158
- id: ActivityId;
159
- active: boolean;
160
- partId: PartId;
161
- viewId: ViewId;
162
- }>, options: {
163
- orElse: null;
164
- }): MActivity | null;
165
- /**
166
- * Finds activity stacks based on the specified filter.
167
- *
168
- * @param findBy - Defines the search scope.
169
- * @param findBy.activityId - Searches for an activity stack that contains the specified activity.
170
- * @param findBy.dockTo - Searches for an activity stack in the specified docking area.
171
- * @param findBy.partId - Searches for an activity stack that contains the specified part.
172
- * @param options - Controls the search.
173
- * @param options.throwIfEmpty - Controls to error if no activity stack is found.
174
- * @param options.throwIfMulti - Controls to error if multiple activity stacks are found.
175
- * @return activity stacks matching the filter criteria.
176
- */
177
- activityStacks(findBy: {
178
- activityId?: ActivityId;
179
- dockTo?: DockingArea;
180
- partId?: PartId;
181
- }, options: {
182
- throwIfEmpty: (() => Error) | true;
183
- throwIfMulti: (() => Error) | true;
184
- }): readonly [MActivityStack];
185
- activityStacks(findBy: {
186
- activityId?: ActivityId;
187
- dockTo?: DockingArea;
188
- partId?: PartId;
189
- }, options: {
190
- throwIfEmpty: (() => Error) | true;
191
- throwIfMulti?: (() => Error) | true;
192
- }): readonly [MActivityStack, ...MActivityStack[]];
193
- activityStacks(findBy?: {
194
- activityId?: ActivityId;
195
- dockTo?: DockingArea;
196
- partId?: PartId;
197
- }, options?: {
198
- throwIfEmpty?: (() => Error) | true;
199
- throwIfMulti?: (() => Error) | true;
200
- }): readonly MActivityStack[];
201
- /**
202
- * Finds an activity stack based on the specified filter. If not found, by default, throws an error unless setting the `orElseNull` option.
203
- *
204
- * @param findBy - Defines the search scope.
205
- * @param findBy.activityId - Searches for an activity stack that contains the specified activity.
206
- * @param findBy.dockTo - Searches for an activity stack in the specified docking area.
207
- * @param findBy.partId - Searches for an activity stack that contains the specified part.
208
- * @param options - Controls the search.
209
- * @param options.orElse - Controls to return `null` instead of throwing an error if no activity stack is found.
210
- * @return activity stack matching the filter criteria.
211
- */
212
- activityStack(findBy: RequireOne<{
213
- activityId: ActivityId;
214
- dockTo: DockingArea;
215
- partId: PartId;
216
- }>): MActivityStack;
217
- activityStack(findBy: RequireOne<{
218
- activityId: ActivityId;
219
- dockTo: DockingArea;
220
- partId: PartId;
221
- }>, options: {
222
- orElse: null;
223
- }): MActivityStack | null;
224
- /**
225
- * Toggles the visibility of specified activity.
226
- */
227
- toggleActivity(id: ActivityId): ɵWorkbenchLayout;
228
- /**
229
- * Sets the size of the specified activity panel.
230
- */
231
- setActivityPanelSize(panel: 'left' | 'right' | 'bottom', size: number): ɵWorkbenchLayout;
232
- /**
233
- * Sets the split ratio of two activities displayed in the specified panel.
234
- */
235
- setActivityPanelSplitRatio(panel: 'left' | 'right' | 'bottom', ratio: number): ɵWorkbenchLayout;
236
- /**
237
- * Finds parts based on the specified filter.
238
- *
239
- * @param findBy - Defines the search scope.
240
- * @param findBy.id - Searches for parts with the specified id.
241
- * @param findBy.viewId - Searches for parts that contain the specified view.
242
- * @param findBy.peripheral - Searches for parts located in or out of the peripheral area.
243
- * @param findBy.grid - Searches for parts contained in the specified grid.
244
- * @param options - Controls the search.
245
- * @param options.throwIfEmpty - Controls to error if no part is found.
246
- * @param options.throwIfMulti - Controls to error if multiple parts are found.
247
- * @return parts matching the filter criteria.
248
- */
249
- parts(findBy: {
250
- id?: string;
251
- viewId?: string;
252
- peripheral?: boolean;
253
- grid?: keyof WorkbenchGrids | Array<keyof WorkbenchGrids>;
254
- }, options: {
255
- throwIfEmpty: (() => Error) | true;
256
- throwIfMulti: (() => Error) | true;
257
- }): readonly [MPart];
258
- parts(findBy: {
259
- id?: string;
260
- viewId?: string;
261
- peripheral?: boolean;
262
- grid?: keyof WorkbenchGrids | Array<keyof WorkbenchGrids>;
263
- }, options: {
264
- throwIfEmpty: (() => Error) | true;
265
- throwIfMulti?: (() => Error) | true;
266
- }): readonly [MPart, ...MPart[]];
267
- parts(findBy?: {
268
- id?: string;
269
- viewId?: string;
270
- peripheral?: boolean;
271
- grid?: keyof WorkbenchGrids | Array<keyof WorkbenchGrids>;
272
- }, options?: {
273
- throwIfEmpty?: (() => Error) | true;
274
- throwIfMulti?: (() => Error) | true;
275
- }): readonly MPart[];
276
- /**
277
- * Finds a part based on the specified filter. If not found, by default, throws an error unless setting the `orElseNull` option.
278
- *
279
- * @param findBy - Defines the search scope.
280
- * @param findBy.partId - Searches for a part with the specified id.
281
- * @param findBy.viewId - Searches for a part that contains the specified view.
282
- * @param findBy.grid - Searches for a part contained in the specified grid.
283
- * @param options - Controls the search.
284
- * @param options.orElse - Controls to return `null` instead of throwing an error if no part is found.
285
- * @return part matching the filter criteria.
286
- */
287
- part(findBy: RequireOne<{
288
- partId: PartId;
289
- viewId: string;
290
- }> & {
291
- grid?: keyof WorkbenchGrids;
292
- }): MPart;
293
- part(findBy: RequireOne<{
294
- partId: PartId;
295
- viewId: string;
296
- }> & {
297
- grid?: keyof WorkbenchGrids;
298
- }, options: {
299
- orElse: null;
300
- }): MPart | null;
301
- /**
302
- * @inheritDoc
303
- *
304
- * @param id - @inheritDoc
305
- * @param relativeTo - @inheritDoc
306
- * @param extras - @inheritDoc
307
- * @param extras.activate - @inheritDoc
308
- * @param extras.structural - Specifies if this is a structural part. A structural part will not be removed when removing its last view. Defaults to `true`.
309
- */
310
- addPart(id: string | MAIN_AREA, relativeTo: ReferenceElement, extras?: PartExtras & {
311
- structural?: boolean;
312
- }): ɵWorkbenchLayout;
313
- addPart(id: string, dockTo: DockingArea, extras: DockedPartExtras): ɵWorkbenchLayout;
314
- /** @inheritDoc */
315
- removePart(id: string): ɵWorkbenchLayout;
316
- /**
317
- * Renames a part.
318
- *
319
- * @param id - Identifies the part to rename.
320
- * @param newPartId - The new identity of the part.
321
- * @return a copy of this layout with the part renamed.
322
- */
323
- renamePart(id: PartId, newPartId: PartId): ɵWorkbenchLayout;
324
- /** @inheritDoc */
325
- navigatePart(id: string, commands: Commands, extras?: {
326
- hint?: string;
327
- relativeTo?: ActivatedRoute | null;
328
- data?: NavigationData;
329
- state?: NavigationState;
330
- cssClass?: string | string[];
331
- }): ɵWorkbenchLayout;
332
- /**
333
- * Returns the active part of the specified grid, or `null` if specified grid is not present.
334
- */
335
- activePart(find: {
336
- grid: 'main';
337
- }): Readonly<MPart>;
338
- activePart(find: {
339
- grid: keyof WorkbenchGrids;
340
- }): Readonly<MPart> | null;
341
- /** @inheritDoc */
342
- activatePart(id: string): ɵWorkbenchLayout;
343
- /**
344
- * Finds a view based on the specified filter. If not found, by default, throws an error unless setting the `orElseNull` option.
345
- *
346
- * @param findBy - Defines the search scope.
347
- * @param findBy.viewId - Searches for a view with the specified id.
348
- * @param options - Controls the search.
349
- * @param options.orElse - Controls to return `null` instead of throwing an error if no view is found.
350
- * @return view matching the filter criteria.
351
- */
352
- view(findBy: {
353
- viewId: ViewId;
354
- }): MView;
355
- view(findBy: {
356
- viewId: ViewId;
357
- }, options: {
358
- orElse: null;
359
- }): MView | null;
360
- /**
361
- * Finds views based on the specified filter.
362
- *
363
- * @param findBy - Defines the search scope.
364
- * @param findBy.id - Searches for views with the specified id.
365
- * @param findBy.partId - Searches for views contained in the specified part.
366
- * @param findBy.segments - Searches for views navigated to the specified URL.
367
- * @param findBy.navigationHint - Searches for views navigated with given hint. Passing `null` searches for views navigated without a hint.
368
- * @param findBy.markedForRemoval - Searches for views marked (or not marked) for removal.
369
- * @param findBy.grid - Searches for views contained in the specified grid.
370
- * @param options - Controls the search.
371
- * @param options.throwIfEmpty - Controls to error if no view is found.
372
- * @param options.throwIfMulti - Controls to error if multiple views are found.
373
- * @return views matching the filter criteria.
374
- */
375
- views(findBy: {
376
- id?: string;
377
- partId?: string;
378
- peripheral?: boolean;
379
- segments?: UrlSegmentMatcher;
380
- navigationHint?: string | null;
381
- markedForRemoval?: boolean;
382
- grid?: keyof WorkbenchGrids | Array<keyof WorkbenchGrids>;
383
- }, options: {
384
- throwIfEmpty: (() => Error) | true;
385
- throwIfMulti: (() => Error) | true;
386
- }): readonly [MView];
387
- views(findBy: {
388
- id?: string;
389
- partId?: string;
390
- peripheral?: boolean;
391
- segments?: UrlSegmentMatcher;
392
- navigationHint?: string | null;
393
- markedForRemoval?: boolean;
394
- grid?: keyof WorkbenchGrids | Array<keyof WorkbenchGrids>;
395
- }, options: {
396
- throwIfEmpty: (() => Error) | true;
397
- throwIfMulti?: (() => Error) | true;
398
- }): readonly [MView, ...MView[]];
399
- views(findBy?: {
400
- id?: string;
401
- partId?: string;
402
- peripheral?: boolean;
403
- segments?: UrlSegmentMatcher;
404
- navigationHint?: string | null;
405
- markedForRemoval?: boolean;
406
- grid?: keyof WorkbenchGrids | Array<keyof WorkbenchGrids>;
407
- }, options?: {
408
- throwIfEmpty?: (() => Error) | true;
409
- throwIfMulti?: (() => Error) | true;
410
- }): readonly MView[];
411
- /** @inheritDoc */
412
- addView(id: string, extras: {
413
- partId: string;
414
- position?: number | 'start' | 'end' | 'before-active-view' | 'after-active-view';
415
- activateView?: boolean;
416
- activatePart?: boolean;
417
- cssClass?: string | string[];
418
- }): ɵWorkbenchLayout;
419
- /** @inheritDoc */
420
- navigateView(id: string, commands: Commands, extras?: {
421
- hint?: string;
422
- relativeTo?: ActivatedRoute | null;
423
- data?: NavigationData;
424
- state?: NavigationState;
425
- cssClass?: string | string[];
426
- }): ɵWorkbenchLayout;
427
- /**
428
- * @inheritDoc
429
- *
430
- * @param id - @inheritDoc
431
- * @param options - Controls removal of the view.
432
- * @param options.force - Specifies whether to force remove the view, bypassing `CanClose` guard.
433
- */
434
- removeView(id: string, options?: {
435
- force?: boolean;
436
- }): ɵWorkbenchLayout;
437
- /** @inheritDoc */
438
- moveView(id: string, targetPartId: string, options?: {
439
- position?: number | 'start' | 'end' | 'before-active-view' | 'after-active-view';
440
- activateView?: boolean;
441
- activatePart?: boolean;
442
- }): ɵWorkbenchLayout;
443
- /** @inheritDoc */
444
- activateView(id: string, options?: {
445
- activatePart?: boolean;
446
- }): ɵWorkbenchLayout;
447
- /**
448
- * Activates the preceding view if it exists, or the subsequent view otherwise.
449
- *
450
- * @param id - The id of the view to activate its adjacent view.
451
- * @param options - Controls view activation.
452
- * @param options.activatePart - Controls if to activate the part. Defaults to `false`.
453
- * @return a copy of this layout with the adjacent view activated.
454
- */
455
- activateAdjacentView(id: string, options?: {
456
- activatePart?: boolean;
457
- }): ɵWorkbenchLayout;
458
- /**
459
- * Renames a view.
460
- *
461
- * @param id - Identifies the view to rename.
462
- * @param newViewId - The new identity of the view.
463
- * @return a copy of this layout with the view renamed.
464
- */
465
- renameView(id: ViewId, newViewId: ViewId): ɵWorkbenchLayout;
466
- /**
467
- * Renames an activity.
468
- *
469
- * @param id - Identifies the activity to rename.
470
- * @param newActivityId - The new identity of the activity.
471
- * @return a copy of this layout with the part renamed.
472
- */
473
- renameActivity(id: ActivityId, newActivityId: ActivityId): ɵWorkbenchLayout;
474
- /** @inheritDoc */
475
- modify(modifyFn: (layout: ɵWorkbenchLayout) => ɵWorkbenchLayout): ɵWorkbenchLayout;
476
- /**
477
- * Sets the split ratio for the two children of a {@link MTreeNode}.
478
- *
479
- * @param nodeId - The id of the node to set the split ratio for.
480
- * @param ratio - The proportional size between the two children, expressed as closed interval [0,1].
481
- * Example: To give 1/3 of the space to the first child, set the ratio to `0.3`.
482
- * @return a copy of this layout with the split ratio set.
483
- */
484
- setTreeNodeSplitRatio(nodeId: string, ratio: number): ɵWorkbenchLayout;
485
- /**
486
- * Serializes this layout into a URL-safe base64 string.
487
- */
488
- serialize(flags?: LayoutSerializationFlags): SerializedWorkbenchLayout;
489
- /**
490
- * Tests if the current layout is equal to another layout based on provided flags.
491
- */
492
- equals(other: ɵWorkbenchLayout, flags?: LayoutSerializationFlags): boolean;
493
- /**
494
- * Computes the next available view id.
495
- */
496
- computeNextViewId(): ViewId;
497
- /**
498
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
499
- */
500
- private __addActivity;
501
- /**
502
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
503
- */
504
- private __removeActivity;
505
- /**
506
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
507
- */
508
- private __toggleActivity;
509
- /**
510
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
511
- */
512
- private __assignStableActivityIdentifier;
513
- /**
514
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
515
- */
516
- private __renameActivity;
517
- /**
518
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
519
- */
520
- private __toggleMaximized;
521
- /**
522
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
523
- */
524
- private __setActivityPanelSize;
525
- /**
526
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
527
- */
528
- private __setActivityPanelSplitRatio;
529
- /**
530
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
531
- */
532
- private __addPart;
533
- /**
534
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
535
- */
536
- private __removePart;
537
- /**
538
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
539
- */
540
- private __navigatePart;
541
- /**
542
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
543
- */
544
- private __renamePart;
545
- /**
546
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
547
- */
548
- private __assignStablePartIdentifier;
549
- /**
550
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
551
- */
552
- private __addView;
553
- /**
554
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
555
- */
556
- private __navigateView;
557
- /**
558
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
559
- */
560
- private __moveView;
561
- /**
562
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
563
- */
564
- private __removeView;
565
- /**
566
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
567
- */
568
- private __activateView;
569
- /**
570
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
571
- */
572
- private __activateAdjacentView;
573
- /**
574
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
575
- */
576
- private __setTreeNodeSplitRatio;
577
- /**
578
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
579
- */
580
- private __activatePart;
581
- /**
582
- * Note: This method name begins with underscores, indicating that it does not operate on a working copy, but modifies this layout instead.
583
- */
584
- private __renameView;
585
- /**
586
- * Finds a grid based on the specified filter. If not found, by default, throws an error unless setting the `orElseNull` option.
587
- *
588
- * @param findBy - Defines the search scope.
589
- * @param findBy.partId - Searches for a grid that contains the specified part.
590
- * @param findBy.viewId - Searches for a grid that contains the specified view.
591
- * @param findBy.nodeId - Searches for a grid that contains the specified node.
592
- * @param findBy.grid - Searches for specified grid.
593
- * @param options - Controls the search.
594
- * @param options.orElse - Controls to return `null` instead of throwing an error if no grid is found.
595
- * @return grid matching the filter criteria.
596
- */
597
- grid(findBy: RequireOne<{
598
- partId: PartId;
599
- viewId: ViewId;
600
- nodeId: string;
601
- grid: MPartGrid;
602
- }>): {
603
- gridName: keyof WorkbenchGrids;
604
- grid: MPartGrid;
605
- };
606
- grid(findBy: RequireOne<{
607
- partId: PartId;
608
- viewId: ViewId;
609
- nodeId: string;
610
- grid: MPartGrid;
611
- }>, options: {
612
- orElse: null;
613
- }): {
614
- gridName: keyof WorkbenchGrids;
615
- grid: MPartGrid;
616
- } | null;
617
- /**
618
- * Computes if the specified part is located in the peripheral area.
619
- */
620
- isPeripheralPart(partId: PartId): boolean;
621
- /**
622
- * Traverses the tree to find an element that matches the given predicate.
623
- *
624
- * @param findBy - Defines the search scope.
625
- * @param findBy.id - Searches for an element with the specified id.
626
- * @return Element matching the filter criteria.
627
- */
628
- private findTreeElement;
629
- /**
630
- * Traverses the tree to find elements that match the given predicate.
631
- *
632
- * @param predicateFn - Predicate function to match.
633
- * @param options - Defines search scope and options.
634
- * @param options.findFirst - If specified, stops traversing on first match. If not set, defaults to `false`.
635
- * @param options.grid - Searches for an element contained in the specified grid.
636
- * @return Elements matching the filter criteria.
637
- */
638
- private findTreeElements;
639
- /**
640
- * Asserts each activity to have a grid.
641
- */
642
- private assertActivities;
643
- /**
644
- * Creates a copy of this layout.
645
- */
646
- private workingCopy;
647
- }
648
- /**
649
- * Describes how to lay out a part relative to another part or node.
650
- */
651
- export interface ReferenceElement extends ReferencePart {
652
- /**
653
- * Specifies the part or node which to use as the reference element to lay out the part.
654
- * If not set, the part will be aligned relative to the root of the workbench layout.
655
- */
656
- relativeTo?: string;
657
- }
658
- /**
659
- * DI token to control the identity of the initial part in the main area.
660
- *
661
- * The initial part is automatically created by the workbench if the main area has no part, but it has no
662
- * special meaning to the workbench and can be removed by the user. If not set, a UUID is assigned.
663
- *
664
- * Overwrite this DI token in tests to control the identity of the initial part.
665
- *
666
- * ```ts
667
- * TestBed.overrideProvider(MAIN_AREA_INITIAL_PART_ID, {useValue: 'part.initial'})
668
- * ```
669
- *
670
- * @docs-private Not public API, intended for internal use only.
671
- */
672
- export declare const MAIN_AREA_INITIAL_PART_ID: InjectionToken<`part.${string}`>;
673
- /**
674
- * Provides the instant when a part was last activated.
675
- *
676
- * Overwrite DI token in tests to control part activation instants.
677
- * ```
678
- * TestBed.overrideProvider(PartActivationInstantProvider, {useValue: ...});
679
- * ```
680
- */
681
- export declare class PartActivationInstantProvider {
682
- private _partRegistry;
683
- /**
684
- * Returns the instant when the specified part was last activated.
685
- */
686
- getActivationInstant(partId: PartId): number;
687
- static ɵfac: i0.ɵɵFactoryDeclaration<PartActivationInstantProvider, never>;
688
- static ɵprov: i0.ɵɵInjectableDeclaration<PartActivationInstantProvider>;
689
- }
690
- /**
691
- * Provides the instant when a view was last activated.
692
- *
693
- * Overwrite DI token in tests to control view activation instants.
694
- * ```
695
- * TestBed.overrideProvider(ViewActivationInstantProvider, {useValue: ...});
696
- * ```
697
- */
698
- export declare class ViewActivationInstantProvider {
699
- private _viewRegistry;
700
- /**
701
- * Returns the instant when the specified view was last activated.
702
- */
703
- getActivationInstant(viewId: ViewId): number;
704
- static ɵfac: i0.ɵɵFactoryDeclaration<ViewActivationInstantProvider, never>;
705
- static ɵprov: i0.ɵɵInjectableDeclaration<ViewActivationInstantProvider>;
706
- }
707
- /**
708
- * Tests if the given id matches the format of an activity identifier.
709
- */
710
- export declare function isActivityId(activityId: string | undefined | null): activityId is ActivityId;
711
- /**
712
- * Tests if the given id matches the format of a part identifier.
713
- */
714
- export declare function isPartId(partId: string | undefined | null): partId is PartId;
715
- /**
716
- * Serialized artifacts of the workbench layout.
717
- */
718
- export interface SerializedWorkbenchLayout {
719
- grids: WorkbenchGrids<string>;
720
- activityLayout: string;
721
- outlets: (selector: RequireOne<{
722
- mainGrid: true;
723
- mainAreaGrid: true;
724
- activityGrids: true;
725
- }>) => string;
726
- }
727
- /**
728
- * Configuration for constructing the workbench layout.
729
- *
730
- * Grids and the activity layout can be passed in serialized or deserialized form.
731
- * If they are not provided, default layouts will be created.
732
- *
733
- * The following rules apply:
734
- * - If the main grid is not provided, it defaults to a layout with a main area.
735
- * - If the grid for the main area is not provided, but the main grid has a main area part,
736
- * it defaults to a main area grid with an initial part. The DI token {@link MAIN_AREA_INITIAL_PART_ID}
737
- * can be used to assign the initial part its identity.
738
- */
739
- export interface WorkbenchLayoutConstructConfig {
740
- grids?: Partial<WorkbenchGrids<MPartGrid | string>>;
741
- activityLayout?: MActivityLayout | string;
742
- perspectiveId?: string;
743
- outlets?: Outlets | string;
744
- navigationStates?: NavigationStates;
745
- }