@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,11 +0,0 @@
1
- import { DestroyRef } from '@angular/core';
2
- /**
3
- * Implementation of {@link DestroyRef} that can be used in non-Angular managed workbench objects such as handles.
4
- */
5
- export declare class ɵDestroyRef implements DestroyRef {
6
- private _callbacks;
7
- private _destroyed;
8
- onDestroy(callback: () => void): () => void;
9
- destroy(): void;
10
- get destroyed(): boolean;
11
- }
@@ -1,26 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- /**
3
- * Allows sending events between browsing contexts of this origin.
4
- *
5
- * Like the native `BroadcastChannel`, but also receives events posted on this channel instance.
6
- */
7
- export declare class WorkbenchBroadcastChannel<T> {
8
- /**
9
- * Channel to transport events to other `BroadcastChannel` instances.
10
- */
11
- private _broadcastChannel;
12
- /**
13
- * Subject to transport events to this instance since the native `BroadcastChannel` transports events only to other `BroadcastChannel` instances.
14
- */
15
- private _localBrowsingContextEvent$;
16
- /**
17
- * Receives events posted on this broadcast channel. Events are received across app instances of the same origin.
18
- */
19
- readonly observe$: Observable<T>;
20
- constructor(name: string);
21
- /**
22
- * Posts the given event to app instances of this origin.
23
- */
24
- postMessage(event?: T): void;
25
- destroy(): void;
26
- }
@@ -1,60 +0,0 @@
1
- import { Signal, ViewContainerRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Projects `ng-content` to a top-level DOM element and aligns it with this component's bounding box.
5
- *
6
- * When this component is moved in the DOM, projected content is not moved in the DOM; only its position and size are changed.
7
- * For example, an iframe would reload when moved in the DOM.
8
- *
9
- * Style `ng-content` outside the `:host` CSS pseudo-class as not a direct child of this component.
10
- *
11
- * ---
12
- * Usage:
13
- * ```html
14
- * <wb-content-as-overlay [config]="...">
15
- * <iframe [src]="..."></iframe>
16
- * </wb-content-as-overlay>
17
- * ```
18
- *
19
- * ```scss
20
- * iframe {
21
- * background-color: gray;
22
- * }
23
- * ```
24
- */
25
- export declare class ContentAsOverlayComponent {
26
- /**
27
- * Configures content projection of `ng-content`.
28
- *
29
- * A config input is used instead of separate input properties to support updating the config if detached from the Angular change detector.
30
- */
31
- readonly config: import("@angular/core").InputSignal<ContentAsOverlayConfig>;
32
- private readonly _template;
33
- private readonly _visible;
34
- private readonly _location;
35
- private readonly _overlay;
36
- constructor();
37
- /**
38
- * Creates the overlay for rendering projected content.
39
- */
40
- private createOverlay;
41
- /**
42
- * Aligns the overlay to the bounding box of this component.
43
- */
44
- private alignOverlayToHostBounds;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentAsOverlayComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<ContentAsOverlayComponent, "wb-content-as-overlay", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
47
- }
48
- /**
49
- * Configures content projection.
50
- */
51
- export interface ContentAsOverlayConfig {
52
- /**
53
- * Specifies the location where to attach projected content in the DOM.
54
- */
55
- location: Signal<ViewContainerRef | undefined>;
56
- /**
57
- * Controls the visibility of the projected content.
58
- */
59
- visible: Signal<boolean>;
60
- }
@@ -1,37 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Directive to add a desktop to the workbench.
4
- *
5
- * The desktop is displayed when no view is open and the layout does not contain a navigated part.
6
- *
7
- * A desktop can provide instructions for working with the application, display a welcome page, or provide links to open views.
8
- *
9
- * Usage:
10
- * Add this directive to an `<ng-template>` child of the `<wb-workbench>` component. The template content is used as desktop content.
11
- *
12
- * ```html
13
- * <wb-workbench>
14
- * <ng-template wbDesktop>
15
- * Welcome
16
- * </ng-template>
17
- * </wb-workbench>
18
- * ```
19
- *
20
- * > Using `@if` allows displaying the desktop based on a condition, e.g. the active perspective.
21
- *
22
- * For layouts with a main area, it is recommended to navigate the main area part instead:
23
- * ```ts
24
- * import {MAIN_AREA, provideWorkbench} from '@scion/workbench';
25
- *
26
- * provideWorkbench({
27
- * layout: factory => factory
28
- * .addPart(MAIN_AREA)
29
- * .navigatePart(MAIN_AREA, ['path/to/desktop'])
30
- * });
31
- * ```
32
- */
33
- export declare class WorkbenchDesktopDirective {
34
- constructor();
35
- static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchDesktopDirective, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<WorkbenchDesktopDirective, "ng-template[wbDesktop]", never, {}, {}, never, never, true, never>;
37
- }
@@ -1 +0,0 @@
1
- export { WorkbenchDesktopDirective } from './desktop.directive';
@@ -1,11 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { WorkbenchDialogActionDirective } from './workbench-dialog-action.directive';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Filters actions by specified alignment.
6
- */
7
- export declare class DialogActionFilterPipe implements PipeTransform {
8
- transform(actions: WorkbenchDialogActionDirective[] | null | undefined, align: 'start' | 'end'): WorkbenchDialogActionDirective[];
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogActionFilterPipe, never>;
10
- static ɵpipe: i0.ɵɵPipeDeclaration<DialogActionFilterPipe, "wbDialogActionFilter", true>;
11
- }
@@ -1,10 +0,0 @@
1
- import { ɵWorkbenchDialog } from '../ɵworkbench-dialog';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Renders the dialog footer with actions modeled as {@link WorkbenchDialogActionDirective} templates.
5
- */
6
- export declare class DialogFooterComponent {
7
- protected readonly dialog: ɵWorkbenchDialog<any>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogFooterComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogFooterComponent, "wb-dialog-footer", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,27 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Use this directive to contribute an action to the dialog footer (only applicable if not using a custom dialog footer).
5
- *
6
- * Actions are displayed in the order as modeled in the template and can be placed either on the left or right.
7
- *
8
- * The host element of this modeling directive must be a <ng-template>. The action shares the lifecycle of the host element.
9
- *
10
- * **Example:**
11
- * ```html
12
- * <ng-template wbDialogAction>
13
- * <button (click)="dialog.close()">Close</button>
14
- * </ng-template>
15
- * ```
16
- */
17
- export declare class WorkbenchDialogActionDirective {
18
- /**
19
- * Specifies where to place this action in the dialog footer. Defaults to `end`.
20
- */
21
- readonly align: import("@angular/core").InputSignal<"start" | "end">;
22
- readonly template: TemplateRef<void>;
23
- private _action;
24
- constructor();
25
- static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchDialogActionDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<WorkbenchDialogActionDirective, "ng-template[wbDialogAction]", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
27
- }
@@ -1,26 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Use this directive to replace the default dialog footer that renders actions contributed via the {@link WorkbenchDialogActionDirective} directive.
5
- *
6
- * The host element of this modeling directive must be a <ng-template>. The footer shares the lifecycle of the host element.
7
- *
8
- * **Example:**
9
- * ```html
10
- * <ng-template wbDialogFooter>
11
- * <app-dialog-footer/>
12
- * </ng-template>
13
- * ```
14
- */
15
- export declare class WorkbenchDialogFooterDirective {
16
- /**
17
- * Specifies if to display a visual separator between the dialog content and this footer.
18
- * Defaults to `true`.
19
- */
20
- readonly divider: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
21
- readonly template: TemplateRef<void>;
22
- private _footer;
23
- constructor();
24
- static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchDialogFooterDirective, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<WorkbenchDialogFooterDirective, "ng-template[wbDialogFooter]", never, { "divider": { "alias": "divider"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
26
- }
@@ -1,12 +0,0 @@
1
- import { ɵWorkbenchDialog } from '../ɵworkbench-dialog';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Renders the dialog header with a close button and optional title.
5
- */
6
- export declare class DialogHeaderComponent {
7
- protected readonly dialog: ɵWorkbenchDialog<any>;
8
- protected onCloseClick(): void;
9
- protected onCloseMouseDown(event: Event): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogHeaderComponent, "wb-dialog-header", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,26 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Use this directive to replace the default dialog header that displays the title and a close button.
5
- *
6
- * The host element of this modeling directive must be a <ng-template>. The header shares the lifecycle of the host element.
7
- *
8
- * **Example:**
9
- * ```html
10
- * <ng-template wbDialogHeader>
11
- * <app-dialog-header/>
12
- * </ng-template>
13
- * ```
14
- */
15
- export declare class WorkbenchDialogHeaderDirective {
16
- /**
17
- * Specifies if to display a visual separator between this header and the dialog content.
18
- * Defaults to `true`.
19
- */
20
- readonly divider: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
21
- readonly template: TemplateRef<void>;
22
- private _header;
23
- constructor();
24
- static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchDialogHeaderDirective, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<WorkbenchDialogHeaderDirective, "ng-template[wbDialogHeader]", never, { "divider": { "alias": "divider"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
26
- }
@@ -1,49 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Enables moving the host element via mouse or touch gesture.
4
- *
5
- * This directive makes the specified handle 'movable', emitting an event
6
- * when moving it. The host must apply the changed position by updating
7
- * respective DOM properties.
8
- */
9
- export declare class MovableDirective {
10
- readonly wbHandleElement: import("@angular/core").InputSignal<HTMLElement>;
11
- readonly wbMove: import("@angular/core").OutputEmitterRef<WbMoveEvent>;
12
- private readonly _workbenchLayoutService;
13
- private readonly _host;
14
- private _x;
15
- private _y;
16
- constructor();
17
- /**
18
- * Installs a handle for moving the element.
19
- */
20
- private installMoveHandle;
21
- /**
22
- * Method invoked when start moving the handle.
23
- */
24
- private onMoveStart;
25
- /**
26
- * Method invoked while moving the handle.
27
- */
28
- private onMove;
29
- /**
30
- * Method invoked when end moving the handle.
31
- */
32
- private onMoveEnd;
33
- private createMoveHandle;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<MovableDirective, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<MovableDirective, "[wbMovable]", never, { "wbHandleElement": { "alias": "wbHandle"; "required": true; "isSignal": true; }; }, { "wbMove": "wbMovableMove"; }, never, never, true, never>;
36
- }
37
- /**
38
- * Event emitted when moving the handle.
39
- */
40
- export interface WbMoveEvent {
41
- /**
42
- * Specifies the new horizontal translation of the host.
43
- */
44
- translateX: number;
45
- /**
46
- * Specifies the new vertical translation of the host.
47
- */
48
- translateY: number;
49
- }
@@ -1,6 +0,0 @@
1
- export { WorkbenchDialog, type WorkbenchDialogSize } from './workbench-dialog';
2
- export { type WorkbenchDialogOptions } from './workbench-dialog.options';
3
- export { WorkbenchDialogService } from './workbench-dialog.service';
4
- export { WorkbenchDialogActionDirective } from './dialog-footer/workbench-dialog-action.directive';
5
- export { WorkbenchDialogFooterDirective } from './dialog-footer/workbench-dialog-footer.directive';
6
- export { WorkbenchDialogHeaderDirective } from './dialog-header/workbench-dialog-header.directive';
@@ -1,75 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Enables resizing the host element via mouse or touch gesture.
4
- *
5
- * This directive adds resize handles to the boundaries and corners of the host
6
- * element, emitting an event when moving the handles. The host must apply the
7
- * changed position and size by updating respective DOM properties.
8
- *
9
- * The following requirements apply for the host:
10
- * - must be positioned, either relative or absolute
11
- * - must be horizontally centered in its layout
12
- */
13
- export declare class ResizableDirective {
14
- readonly enabled: import("@angular/core").InputSignal<boolean>;
15
- readonly wbResize: import("@angular/core").OutputEmitterRef<WbResizeEvent>;
16
- private readonly _workbenchLayoutService;
17
- private readonly _host;
18
- private minHeight;
19
- private maxHeight;
20
- private minWidth;
21
- private maxWidth;
22
- constructor();
23
- /**
24
- * Installs handles for resizing the host at its edges and corners.
25
- */
26
- private installResizeHandles;
27
- private createResizeHandles;
28
- /**
29
- * Method invoked when start resizing the host.
30
- */
31
- private onResizeStart;
32
- /**
33
- * Method invoked when end resizing the host.
34
- */
35
- private onResizeEnd;
36
- /**
37
- * Method invoked when moving the top handle.
38
- */
39
- private onResizeTop;
40
- /**
41
- * Method invoked when moving the bottom handle.
42
- */
43
- private onResizeBottom;
44
- /**
45
- * Method invoked when moving the left handle.
46
- */
47
- private onResizeLeft;
48
- /**
49
- * Method invoked when moving the right handle.
50
- */
51
- private onResizeRight;
52
- static ɵfac: i0.ɵɵFactoryDeclaration<ResizableDirective, never>;
53
- static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableDirective, "[wbResizable]", never, { "enabled": { "alias": "wbResizableEnabled"; "required": false; "isSignal": true; }; }, { "wbResize": "wbResizableResize"; }, never, never, true, never>;
54
- }
55
- /**
56
- * Event emitted when resizing the host element.
57
- */
58
- export interface WbResizeEvent {
59
- /**
60
- * Specifies the new width of the host.
61
- */
62
- width?: number;
63
- /**
64
- * Specifies the new height of the host.
65
- */
66
- height?: number;
67
- /**
68
- * Specifies the new horizontal translation of the host.
69
- */
70
- translateX?: number;
71
- /**
72
- * Specifies the new vertical translation of the host.
73
- */
74
- translateY?: number;
75
- }
@@ -1,55 +0,0 @@
1
- import { ɵWorkbenchDialog } from './ɵworkbench-dialog';
2
- import { WbMoveEvent } from './movable.directive';
3
- import { WbResizeEvent } from './resizable.directive';
4
- import { SciDimension } from '@scion/components/dimension';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Renders the workbench dialog.
8
- *
9
- * This component is added to a CDK overlay aligned to the modality context defined by the dialog.
10
- * The dialog itself is rendered in the center of its modality context.
11
- */
12
- export declare class WorkbenchDialogComponent {
13
- private readonly _zone;
14
- private readonly _cdkTrapFocus;
15
- private readonly _dialogElement;
16
- /** Element of the dialog that has or last had focus */
17
- private readonly _activeElement$;
18
- protected readonly dialog: ɵWorkbenchDialog<any>;
19
- private _headerHeight;
20
- protected transformTranslateX: number;
21
- protected transformTranslateY: number;
22
- protected get minHeight(): string | undefined;
23
- protected get height(): string | undefined;
24
- protected get maxHeight(): string | undefined;
25
- protected get minWidth(): string | undefined;
26
- protected get width(): string | undefined;
27
- protected get maxWidth(): string | undefined;
28
- protected get justified(): boolean;
29
- get id(): string;
30
- constructor();
31
- private setDialogOffset;
32
- private addHostCssClasses;
33
- /**
34
- * Focuses this dialog, restoring the focus to the last element that had the focus,
35
- * or otherwise focuses the first focusable element.
36
- */
37
- focus(): void;
38
- /**
39
- * Tracks the focus of the dialog.
40
- */
41
- private trackFocus;
42
- /**
43
- * Focuses the first focusable element in the dialog. Has no effect if an element in the dialog already has the focus.
44
- *
45
- * If no focusable element can be found, the focusing will be repeated on the next DOM change until an element has the
46
- * focus, allowing delayed content to get focus.
47
- */
48
- private autoFocus;
49
- protected onEscape(event: Event): void;
50
- protected onMove(event: WbMoveEvent): void;
51
- protected onResize(event: WbResizeEvent): void;
52
- protected onHeaderDimensionChange(dimension: SciDimension): void;
53
- static ɵfac: i0.ɵɵFactoryDeclaration<WorkbenchDialogComponent, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkbenchDialogComponent, "wb-dialog", never, {}, {}, never, never, true, never>;
55
- }
@@ -1,118 +0,0 @@
1
- import { Signal } from '@angular/core';
2
- import { Translatable } from '../text/workbench-text-provider.model';
3
- /**
4
- * Handle to interact with a dialog opened via {@link WorkbenchDialogService}.
5
- *
6
- * The dialog component can inject this handle to interact with the dialog, such as setting the title or closing the dialog.
7
- *
8
- * Dialog inputs are available as input properties in the dialog component.
9
- */
10
- export declare abstract class WorkbenchDialog<R = unknown> {
11
- /**
12
- * Sets the title of the dialog.
13
- */
14
- abstract get title(): Signal<Translatable | undefined>;
15
- abstract set title(title: Translatable | undefined);
16
- /**
17
- * Specifies the preferred dialog size.
18
- */
19
- abstract readonly size: WorkbenchDialogSize;
20
- /**
21
- * Controls if to apply a padding to the content of the dialog. Defaults to `true`.
22
- *
23
- * This setting does not affect the padding of the dialog header and footer.
24
- *
25
- * The default padding can be changed via the CSS variable `--sci-workbench-dialog-padding`.
26
- */
27
- abstract get padding(): Signal<boolean>;
28
- abstract set padding(padding: boolean);
29
- /**
30
- * Specifies if to display a close button in the dialog header. Defaults to `true`.
31
- */
32
- abstract get closable(): Signal<boolean>;
33
- abstract set closable(closable: boolean);
34
- /**
35
- * Specifies if the user can resize the dialog. Defaults to `true`.
36
- */
37
- abstract get resizable(): Signal<boolean>;
38
- abstract set resizable(resizable: boolean);
39
- /**
40
- * Specifies CSS class(es) to add to the dialog, e.g., to locate the dialog in tests.
41
- */
42
- abstract get cssClass(): Signal<string[]>;
43
- abstract set cssClass(cssClass: string | string[]);
44
- /**
45
- * Closes the dialog. Optionally, pass a result or an error to the dialog opener.
46
- */
47
- abstract close(result?: R | Error): void;
48
- }
49
- /**
50
- * Represents the preferred dialog size.
51
- */
52
- export interface WorkbenchDialogSize {
53
- /**
54
- * Specifies the minimum height of the dialog.
55
- */
56
- get minHeight(): Signal<string | undefined>;
57
- set minHeight(minHeight: string | undefined);
58
- /**
59
- * Specifies the height of the dialog, displaying a vertical scrollbar if its content overflows.
60
- * If not specified, the dialog adapts its height to its context height, respecting any `minHeight' or `maxHeight' constraint.
61
- */
62
- get height(): Signal<string | undefined>;
63
- set height(height: string | undefined);
64
- /**
65
- * Specifies the maximum height of the dialog.
66
- */
67
- get maxHeight(): Signal<string | undefined>;
68
- set maxHeight(maxHeight: string | undefined);
69
- /**
70
- * Specifies the minimum width of the dialog.
71
- */
72
- get minWidth(): Signal<string | undefined>;
73
- set minWidth(minWidth: string | undefined);
74
- /**
75
- * Specifies the width of the dialog, displaying a horizontal scrollbar if its content overflows.
76
- * If not specified, the dialog adapts its width to its context width, respecting any `minWidth' or `maxWidth' constraint.
77
- */
78
- get width(): Signal<string | undefined>;
79
- set width(width: string | undefined);
80
- /**
81
- * Specifies the maximum width of the dialog.
82
- */
83
- get maxWidth(): Signal<string | undefined>;
84
- set maxWidth(maxWidth: string | undefined);
85
- }
86
- /** @inheritDoc */
87
- export declare class ɵWorkbenchDialogSize implements WorkbenchDialogSize {
88
- private readonly _minHeight;
89
- private readonly _height;
90
- private readonly _maxHeight;
91
- private readonly _minWidth;
92
- private readonly _width;
93
- private readonly _maxWidth;
94
- /** @inheritDoc */
95
- get minHeight(): Signal<string | undefined>;
96
- /** @inheritDoc */
97
- set minHeight(minHeight: string | undefined);
98
- /** @inheritDoc */
99
- get height(): Signal<string | undefined>;
100
- /** @inheritDoc */
101
- set height(height: string | undefined);
102
- /** @inheritDoc */
103
- get maxHeight(): Signal<string | undefined>;
104
- /** @inheritDoc */
105
- set maxHeight(maxHeight: string | undefined);
106
- /** @inheritDoc */
107
- get minWidth(): Signal<string | undefined>;
108
- /** @inheritDoc */
109
- set minWidth(minWidth: string | undefined);
110
- /** @inheritDoc */
111
- get width(): Signal<string | undefined>;
112
- /** @inheritDoc */
113
- set width(width: string | undefined);
114
- /** @inheritDoc */
115
- get maxWidth(): Signal<string | undefined>;
116
- /** @inheritDoc */
117
- set maxWidth(maxWidth: string | undefined);
118
- }
@@ -1,64 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { ViewId } from '../view/workbench-view.model';
3
- /**
4
- * Controls how to open a dialog.
5
- */
6
- export interface WorkbenchDialogOptions {
7
- /**
8
- * Optional data to pass to the dialog component. Inputs are available as input properties in the dialog component.
9
- *
10
- * **Example:**
11
- * ```ts
12
- * public someInput = input.required<string>();
13
- * ```
14
- */
15
- inputs?: {
16
- [name: string]: unknown;
17
- };
18
- /**
19
- * Controls which area of the application to block by the dialog.
20
- *
21
- * - **Application-modal:**
22
- * Use to block the workbench, or the browser's viewport if configured in {@link WorkbenchConfig.dialog.modalityScope}.
23
- *
24
- * - **View-modal:**
25
- * Use to block only the contextual view of the dialog, allowing the user to interact with other views.
26
- * This is the default if opening the dialog in the context of a view.
27
- */
28
- modality?: 'application' | 'view';
29
- /**
30
- * Sets the injector for the instantiation of the dialog component, giving control over the objects available
31
- * for injection into the dialog component. If not specified, uses the application's root injector, or the view's
32
- * injector if opened in the context of a view.
33
- *
34
- * **Example:**
35
- * ```ts
36
- * Injector.create({
37
- * parent: ...,
38
- * providers: [
39
- * {provide: <TOKEN>, useValue: <VALUE>}
40
- * ],
41
- * })
42
- * ```
43
- */
44
- injector?: Injector;
45
- /**
46
- * Specifies CSS class(es) to add to the dialog, e.g., to locate the dialog in tests.
47
- */
48
- cssClass?: string | string[];
49
- /**
50
- * Controls whether to animate the opening of the dialog. Defaults to `false`.
51
- */
52
- animate?: boolean;
53
- /**
54
- * Specifies the context in which to open the dialog.
55
- */
56
- context?: {
57
- /**
58
- * Controls which view to block when opening a dialog view-modal.
59
- *
60
- * By default, if opening the dialog in the context of a view, that view is used as the contextual view.
61
- */
62
- viewId?: ViewId;
63
- };
64
- }