@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,339 +0,0 @@
1
- import { ComponentType } from '@angular/cdk/portal';
2
- import { Signal, Type } from '@angular/core';
3
- import { LogAppender, LogLevel } from './logging';
4
- import { MicrofrontendPlatformConfig } from '@scion/microfrontend-platform';
5
- import { MicrofrontendPlatformConfigLoader } from './microfrontend-platform/microfrontend-platform-config-loader';
6
- import { WorkbenchPerspectives } from './perspective/workbench-perspective.model';
7
- import { WorkbenchStorage } from './storage/workbench-storage';
8
- import { WorkbenchTextProviderFn } from './text/workbench-text-provider.model';
9
- import { WorkbenchIconProviderFn } from './icon/workbench-icon-provider.model';
10
- import { WorkbenchLayoutFn } from './layout/workbench-layout';
11
- /**
12
- * Configuration of the SCION Workbench.
13
- */
14
- export declare abstract class WorkbenchConfig {
15
- /**
16
- * Defines the layout(s) of the application. Defaults to a single layout with only a main area.
17
- *
18
- * An application can have multiple layouts, called perspectives. A perspective defines an arrangement of parts and views.
19
- * Parts can be docked to the side or positioned relative to each other. Views are stacked in parts and can be dragged to other parts.
20
- * Content can be displayed in both parts and views.
21
- *
22
- * A perspective typically has a main area part and other parts docked to the side, providing navigation and context-sensitive assistance to support
23
- * the user's workflow. Initially empty or displaying a welcome page, the main area is where the workbench opens new views by default.
24
- * Unlike any other part, the main area is shared between perspectives, and its layout is not reset when resetting perspectives.
25
- *
26
- * See {@link WorkbenchLayoutFn} for more information and an example.
27
- */
28
- abstract layout?: WorkbenchLayoutFn | WorkbenchPerspectives;
29
- /**
30
- * Provides texts to the SCION Workbench.
31
- *
32
- * A text provider is a function that returns the text for a translation key.
33
- *
34
- * Texts starting with the percent symbol (`%`) are passed to the text provider for translation, with the percent symbol omitted.
35
- * Otherwise, the text is returned as is.
36
- *
37
- * The SCION Workbench uses the following translation keys for built-in texts:
38
- * - workbench.clear.tooltip
39
- * - workbench.close.action
40
- * - workbench.close_all_tabs.action
41
- * - workbench.close_other_tabs.action
42
- * - workbench.close_tab.action
43
- * - workbench.close_tab.tooltip
44
- * - workbench.close_tabs_to_the_left.action
45
- * - workbench.close_tabs_to_the_right.action
46
- * - workbench.close.tooltip
47
- * - workbench.dev_mode_only_hint.tooltip
48
- * - workbench.minimize.tooltip
49
- * - workbench.move_tab_down.action
50
- * - workbench.move_tab_to_new_window.action
51
- * - workbench.move_tab_to_the_left.action
52
- * - workbench.move_tab_to_the_right.action
53
- * - workbench.move_tab_up.action
54
- * - workbench.null_content.message
55
- * - workbench.null_view_developer_hint.message
56
- * - workbench.ok.action
57
- * - workbench.page_not_found.message
58
- * - workbench.page_not_found.title
59
- * - workbench.page_not_found_developer_hint.message
60
- * - workbench.show_open_tabs.tooltip
61
- *
62
- * The function:
63
- * - Can call `inject` to get any required dependencies.
64
- * - Can call `toSignal` to convert an Observable to a Signal.
65
- *
66
- * @see WorkbenchTextProviderFn
67
- */
68
- abstract textProvider?: WorkbenchTextProviderFn;
69
- /**
70
- * Provides icons to the SCION Workbench.
71
- *
72
- * An icon provider is a function that returns a component for an icon. The component renders the icon.
73
- *
74
- * Defaults to a Material icon provider, interpreting the icon as a Material icon ligature.
75
- *
76
- * The default icon provider requires the application to include the Material icon font, for example in `styles.scss`, as follows:
77
- * ```scss
78
- * @import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');
79
- * ```
80
- *
81
- * The SCION Workbench uses the following icons:
82
- * - `workbench.clear`: Clear button in input fields
83
- * - `workbench.close`: Close button in views, dialogs and notifications
84
- * - `workbench.dirty`: Visual indicator for view with unsaved content
85
- * - `workbench.menu_down`: Menu button of drop down menus
86
- * - `workbench.minimize`: Minimize button in docked parts
87
- * - `workbench.pin`: Visual indicator for a pinned view
88
- * - `workbench.search`: Visual indicator in search or filter fields
89
- *
90
- * To not replace built-in workbench icons, the icon provider can return `undefined` for icons starting with the `workbench.` prefix.
91
- *
92
- * The function can call `inject` to get any required dependencies.
93
- *
94
- * @see WorkbenchIconProviderFn
95
- */
96
- abstract iconProvider?: WorkbenchIconProviderFn;
97
- /**
98
- * Specifies the component to display in `<wb-workbench>` while the workbench is starting.
99
- *
100
- * Defaults to a splash showing a loading indicator (ellipsis throbber).
101
- *
102
- * Note: No splash screen is displayed if starting the workbench in an app initializer.
103
- */
104
- abstract splashComponent?: ComponentType<unknown>;
105
- /**
106
- * Specifies the component to display a view tab, enabling custom design or functionality.
107
- *
108
- * The component can inject {@link WorkbenchView} and {@link VIEW_TAB_RENDERING_CONTEXT} to get a reference to the view and the rendering context.
109
- */
110
- abstract viewTabComponent?: ComponentType<unknown>;
111
- /**
112
- * Defines the component to display when no route matches the requested path.
113
- *
114
- * This can happen when navigating to a non-existent route or after loading the application, if the routes have changed since the user's last session.
115
- *
116
- * The component can inject {@link WorkbenchView} to get a reference to the view, e.g., to obtain the requested URL.
117
- */
118
- abstract pageNotFoundComponent?: ComponentType<unknown>;
119
- /**
120
- * Controls which built-in menu items to display in the view context menu.
121
- *
122
- * Set to `false` to exclude all built-in menu items.
123
- */
124
- abstract viewMenuItems?: ViewMenuItemsConfig | false;
125
- /**
126
- * Configures startup of the SCION Workbench.
127
- *
128
- * The SCION Workbench starts automatically when the `<wb-workbench>` component is added to the DOM. Alternatively,
129
- * the workbench can be started manually using {@link WorkbenchLauncher.launch}, such as in an app initializer or a route guard.
130
- *
131
- * The application can hook into the startup process of the SCION Workbench by providing one or more initializers to {@link provideWorkbenchInitializer}.
132
- * Initializers execute at defined points during startup, enabling the application's controlled initialization. The workbench is fully started once
133
- * all initializers have completed.
134
- *
135
- * The application can inject {@link WorkbenchStartup} to check if the workbench has completed startup.
136
- */
137
- abstract startup?: {
138
- /**
139
- * Controls when to start the SCION Workbench. Defaults to `LAZY`.
140
- *
141
- * - **LAZY**
142
- * Starts the workbench when the `<wb-workbench>` component is added to the DOM or manually via {@link WorkbenchLauncher#launch},
143
- * e.g., from a route guard or app initializer.
144
- *
145
- * - **APP_INITIALIZER**
146
- * Starts the workbench during application bootstrapping, blocking Angular's app startup until the workbench is ready.
147
- * No splash is displayed.
148
- *
149
- * @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.
150
- */
151
- launcher?: 'LAZY' | 'APP_INITIALIZER';
152
- /**
153
- * Specifies the component to display in `<wb-workbench>` while the workbench is starting.
154
- *
155
- * Note: No splash screen is displayed when using the app initializer strategy.
156
- *
157
- * @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.
158
- */
159
- splash?: ComponentType<unknown>;
160
- };
161
- /**
162
- * Configures microfrontend support in the workbench, allowing the integration of microfrontends as workbench views or
163
- * workbench popups.
164
- *
165
- * The workbench uses the "SCION Microfrontend Platform" for providing microfrontend support. To learn more about the
166
- * "SCION Microfrontend Platform", refer to https://github.com/SchweizerischeBundesbahnen/scion-microfrontend-platform.
167
- *
168
- * The workbench allows any web page to be embedded as a workbench view or workbench popup. The web app has to provide
169
- * a manifest in which it describes its views and popups. To integrate a third-party application where customization is not
170
- * possible, the host application can provide a manifest for that application. If embedded content needs to interact with
171
- * the workbench, the web app can use the library `@scion/workbench-client`, a pure TypeScript library based on the
172
- * web stack-agnostic `@scion/microfrontend-platform` library.
173
- *
174
- * The workbench integrates microfrontends through so-called intents, a mechanism known from Android development, enabling
175
- * controlled collaboration across application boundaries. "SCION Microfrontend Platform DevTools" can help to inspect
176
- * integrated applications and dependencies. The DevTools are available in the form of a microfrontend that can be embedded
177
- * like any other microfrontend. Refer to the documentation for detailed instructions on how to integrate
178
- * "SCION Microfrontend Platform DevTools".
179
- *
180
- * Typically, the host app provides API to integrated micro apps via the intent mechanism. Consider registering intent handlers
181
- * under the DI token {@link MICROFRONTEND_PLATFORM_POST_STARTUP}.
182
- */
183
- abstract microfrontendPlatform?: MicrofrontendPlatformConfig | Type<MicrofrontendPlatformConfigLoader>;
184
- /**
185
- * Provides persistent storage to the SCION Workbench.
186
- *
187
- * If not set, the workbench uses the browser's local storage as persistent storage.
188
- */
189
- abstract storage?: Type<WorkbenchStorage>;
190
- /**
191
- * Configures the behavior of workbench dialogs.
192
- */
193
- abstract dialog?: {
194
- /**
195
- * Configures the area to block for application-modal dialogs. If not set, defaults to `workbench`.
196
- *
197
- * - **workbench:** blocks the {@link WorkbenchComponent|workbench element}, still allowing interaction with elements outside the workbench element.
198
- *
199
- * - **viewport** blocks the browser viewport, preventing interaction with the application until application-modal dialogs are closed.
200
- */
201
- modalityScope?: 'workbench' | 'viewport';
202
- };
203
- /**
204
- * Configures logging for the workbench.
205
- */
206
- abstract logging?: {
207
- /**
208
- * Sets the minimum severity level a log message must have in order to be logged. By default, if not specified, it is set to {@link LogLevel#INFO}.
209
- *
210
- * At runtime, you can change the minimum required log level by setting the `loglevel` query parameter.
211
- */
212
- logLevel?: LogLevel;
213
- /**
214
- * Registers log appenders to output log messages. Multiple appenders are allowed. By default, if not specified, log messages are written to the console.
215
- */
216
- logAppenders?: Type<LogAppender>[];
217
- };
218
- }
219
- /**
220
- * Configuration of built-in menu items in the view's context menu.
221
- *
222
- * Each property represents a menu item, allowing customization of visibility, accelerators, and more.
223
- *
224
- * Texts can be changed or localized using a {@link WorkbenchTextProviderFn text provider} passed to {@link provideWorkbench} via the workbench config object.
225
- */
226
- export interface ViewMenuItemsConfig {
227
- /**
228
- * Configures the menu item for closing a view tab.
229
- *
230
- * Set to `false` to exclude it.
231
- *
232
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
233
- * Translation key: `workbench.close_tab.action`
234
- */
235
- close?: MenuItemConfig | false;
236
- /**
237
- * Configures the menu item for closing other view tabs.
238
- *
239
- * Set to `false` to exclude it.
240
- *
241
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
242
- * Translation key: `workbench.close_other_tabs.action`
243
- */
244
- closeOthers?: MenuItemConfig | false;
245
- /**
246
- * Configures the menu item for closing all view tabs.
247
- *
248
- * Set to `false` to exclude it.
249
- *
250
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
251
- * Translation key: `workbench.close_all_tabs.action`
252
- */
253
- closeAll?: MenuItemConfig | false;
254
- /**
255
- * Configures the menu item for closing view tabs to the right.
256
- *
257
- * Set to `false` to exclude it.
258
- *
259
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
260
- * Translation key: `workbench.close_tabs_to_the_right.action`
261
- */
262
- closeToTheRight?: MenuItemConfig | false;
263
- /**
264
- * Configures the menu item for closing view tabs to the left.
265
- *
266
- * Set to `false` to exclude it.
267
- *
268
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
269
- * Translation key: `workbench.close_tabs_to_the_left.action`
270
- */
271
- closeToTheLeft?: MenuItemConfig | false;
272
- /**
273
- * Configures the menu item for moving a view up.
274
- *
275
- * Set to `false` to exclude it.
276
- *
277
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
278
- * Translation key: `workbench.move_tab_up.action`
279
- */
280
- moveUp?: MenuItemConfig | false;
281
- /**
282
- * Configures the menu item for moving a view to the right.
283
- *
284
- * Set to `false` to exclude it.
285
- *
286
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
287
- * Translation key: `workbench.move_tab_to_the_right.action`
288
- */
289
- moveRight?: MenuItemConfig | false;
290
- /**
291
- * Configures the menu item for moving a view down.
292
- *
293
- * Set to `false` to exclude it.
294
- *
295
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
296
- * Translation key: `workbenchworkbench.move_tab_down.action`
297
- */
298
- moveDown?: MenuItemConfig | false;
299
- /**
300
- * Configures the menu item for moving a view to the left.
301
- *
302
- * Set to `false` to exclude it.
303
- *
304
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
305
- * Translation key: `workbench.move_tab_to_the_left.action`
306
- */
307
- moveLeft?: MenuItemConfig | false;
308
- /**
309
- * Configures the menu item for moving a view to a new window.
310
- *
311
- * Set to `false` to exclude it.
312
- *
313
- * The menu item text can be changed or localized using a {@link WorkbenchTextProviderFn}.
314
- * Translation key: `workbench.move_tab_to_new_window.action`
315
- */
316
- moveToNewWindow?: MenuItemConfig | false;
317
- }
318
- /**
319
- * Configures a built-in menu item.
320
- */
321
- export interface MenuItemConfig {
322
- /**
323
- * @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.
324
- */
325
- visible?: boolean;
326
- /**
327
- * Specifies the text of this menu item.
328
- *
329
- * Can be a string or a function that returns a string or a {@link Signal}.
330
- *
331
- * The function can call `inject` to get any required dependencies, or use `toSignal` to convert an observable to a signal.
332
- *
333
- * @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.
334
- */
335
- text?: string | (() => string | Signal<string>);
336
- accelerator?: string[];
337
- group?: string;
338
- cssClass?: string | string[];
339
- }
@@ -1,17 +0,0 @@
1
- import { InjectionToken, TemplateRef, ViewContainerRef, WritableSignal } from '@angular/core';
2
- /**
3
- * DI token to inject the DOM location where to attach iframes.
4
- */
5
- export declare const IFRAME_OVERLAY_HOST: InjectionToken<WritableSignal<ViewContainerRef | undefined>>;
6
- /**
7
- * DI token to inject the DOM location where to attach the visual placeholder when dragging a view over a drop zone.
8
- */
9
- export declare const VIEW_DROP_ZONE_OVERLAY_HOST: InjectionToken<WritableSignal<ViewContainerRef | undefined>>;
10
- /**
11
- * DI token to inject the DOM location of the {@link WorkbenchComponent} HTML element.
12
- */
13
- export declare const WORKBENCH_ELEMENT_REF: InjectionToken<WritableSignal<ViewContainerRef | undefined>>;
14
- /**
15
- * DI token to inject the template for the desktop, if any.
16
- */
17
- export declare const DESKTOP: InjectionToken<WritableSignal<TemplateRef<void> | undefined>>;
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * DI token to get a unique id of the workbench.
4
- *
5
- * The id is different each time the app is reloaded. Different workbench windows have different ids.
6
- */
7
- export declare const WORKBENCH_ID: InjectionToken<string>;
@@ -1,41 +0,0 @@
1
- import { WorkbenchStartup } from './startup/workbench-startup.service';
2
- import { ɵWorkbenchService } from './ɵworkbench.service';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Main entry point component of the SCION Workbench.
6
- */
7
- export declare class WorkbenchComponent {
8
- private _workbenchLauncher;
9
- private _logger;
10
- private readonly _workbenchRouter;
11
- private _iframeOverlayHost;
12
- private _viewDropZoneOverlayHost;
13
- /** Splash to display during workbench startup. */
14
- protected splash: import("@angular/cdk/portal").ComponentType<unknown>;
15
- protected workbenchStartup: WorkbenchStartup;
16
- protected workbenchService: ɵWorkbenchService;
17
- constructor();
18
- /**
19
- * Toggles layout maximization by pressing Ctrl+Shift+F12.
20
- */
21
- private installMaximizeShortcutListener;
22
- /**
23
- * Starts the SCION Workbench. Has no effect if already started, e.g., in an app initializer or route guard.
24
- */
25
- private startWorkbench;
26
- /**
27
- * Disables change detection during navigation to avoid partial DOM updates of the workbench layout
28
- * if the navigation is asynchronous (e.g., because of lazy loading, async guards, or resolvers).
29
- */
30
- private disableChangeDetectionDuringNavigation;
31
- /**
32
- * Initializes tokens to inject references to workbench elements.
33
- */
34
- private provideWorkbenchElementReferences;
35
- /**
36
- * Throws if loading the workbench recursively.
37
- */
38
- private throwOnCircularLoad;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkbenchComponent, "wb-workbench", never, {}, {}, never, never, true, never>;
41
- }
@@ -1,73 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Represents the id prefix of parts.
4
- *
5
- * @see PartId
6
- */
7
- export declare const PART_ID_PREFIX = "part.";
8
- /**
9
- * Represents the id prefix of views.
10
- *
11
- * @see ViewId
12
- */
13
- export declare const VIEW_ID_PREFIX = "view.";
14
- /**
15
- * Represents the id prefix of activities.
16
- */
17
- export declare const ACTIVITY_ID_PREFIX = "activity.";
18
- /**
19
- * Represents the id prefix of popups.
20
- */
21
- export declare const POPUP_ID_PREFIX = "popup.";
22
- /**
23
- * Represents the id prefix of dialogs.
24
- */
25
- export declare const DIALOG_ID_PREFIX = "dialog.";
26
- /**
27
- * Represents the id prefix of message boxes.
28
- */
29
- export declare const MESSAGE_BOX_ID_PREFIX = "messagebox.";
30
- /**
31
- * Format of a part outlet name.
32
- */
33
- export type PartOutlet = `${typeof PART_ID_PREFIX}${string}`;
34
- /**
35
- * Format of a view outlet name.
36
- */
37
- export type ViewOutlet = `${typeof VIEW_ID_PREFIX}${number}`;
38
- /**
39
- * Format of a popup outlet name.
40
- */
41
- export type PopupOutlet = `${typeof POPUP_ID_PREFIX}${string}`;
42
- /**
43
- * Format of a dialog outlet name.
44
- */
45
- export type DialogOutlet = `${typeof DIALOG_ID_PREFIX}${string}`;
46
- /**
47
- * Format of a messagebox outlet name.
48
- */
49
- export type MessageBoxOutlet = `${typeof MESSAGE_BOX_ID_PREFIX}${string}`;
50
- /**
51
- * Union of workbench outlets.
52
- */
53
- export type WorkbenchOutlet = PartOutlet | ViewOutlet | PopupOutlet | DialogOutlet | MessageBoxOutlet;
54
- /**
55
- * Name of the query parameter that contains the layout of the main area.
56
- */
57
- export declare const MAIN_AREA_LAYOUT_QUERY_PARAM = "main_area";
58
- /**
59
- * Defines the context in which a viewtab is rendered.
60
- *
61
- * - `tab`: if rendered as view tab in the tabbar
62
- * - `list-item`: if rendered as list item in the view list menu
63
- * - `drag-image`: if rendered as drag image while dragging a view tab
64
- */
65
- export type ViewTabRenderingContext = 'tab' | 'list-item' | 'drag-image';
66
- /**
67
- * DI token to inject the context in which the view tab is rendered.
68
- */
69
- export declare const VIEW_TAB_RENDERING_CONTEXT: InjectionToken<ViewTabRenderingContext>;
70
- /**
71
- * Prefix used to identify an anonymous perspective that the workbench creates for views moved to a new window.
72
- */
73
- export declare const ANONYMOUS_PERSPECTIVE_ID_PREFIX = "anonymous.";