@noldova/desktop.window 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +80 -2
- package/api/build.d.ts +13 -0
- package/api/build.js +10 -0
- package/api/build.js.map +1 -0
- package/api/index.d.ts +68 -0
- package/api/index.js +42 -0
- package/api/index.js.map +1 -0
- package/api/testing.d.ts +10 -0
- package/api/testing.js +11 -0
- package/api/testing.js.map +1 -0
- package/app/components/about/about.component.d.ts +50 -0
- package/app/components/about/about.component.js +125 -0
- package/app/components/about/about.component.js.map +1 -0
- package/app/components/dock/dock.component.d.ts +56 -0
- package/app/components/dock/dock.component.js +117 -0
- package/app/components/dock/dock.component.js.map +1 -0
- package/app/components/docking-guides/docking-guides.component.d.ts +35 -0
- package/app/components/docking-guides/docking-guides.component.js +61 -0
- package/app/components/docking-guides/docking-guides.component.js.map +1 -0
- package/app/components/empty-window/empty-window.component.d.ts +8 -0
- package/app/components/empty-window/empty-window.component.js +22 -0
- package/app/components/empty-window/empty-window.component.js.map +1 -0
- package/app/components/field-menu/field-menu.component.d.ts +30 -0
- package/app/components/field-menu/field-menu.component.js +92 -0
- package/app/components/field-menu/field-menu.component.js.map +1 -0
- package/app/components/highlighted-text/highlighted-text.component.d.ts +19 -0
- package/app/components/highlighted-text/highlighted-text.component.js +33 -0
- package/app/components/highlighted-text/highlighted-text.component.js.map +1 -0
- package/app/components/link-menu/link-menu.component.d.ts +22 -0
- package/app/components/link-menu/link-menu.component.js +46 -0
- package/app/components/link-menu/link-menu.component.js.map +1 -0
- package/app/components/module-actions/module-actions.component.d.ts +31 -0
- package/app/components/module-actions/module-actions.component.js +64 -0
- package/app/components/module-actions/module-actions.component.js.map +1 -0
- package/app/components/module-failure-card/module-failure-card.component.d.ts +17 -0
- package/app/components/module-failure-card/module-failure-card.component.js +24 -0
- package/app/components/module-failure-card/module-failure-card.component.js.map +1 -0
- package/app/components/module-failures/module-failures.component.d.ts +20 -0
- package/app/components/module-failures/module-failures.component.js +28 -0
- package/app/components/module-failures/module-failures.component.js.map +1 -0
- package/app/components/module-switch/module-switch.component.d.ts +22 -0
- package/app/components/module-switch/module-switch.component.js +40 -0
- package/app/components/module-switch/module-switch.component.js.map +1 -0
- package/app/components/modules/modules.component.d.ts +48 -0
- package/app/components/modules/modules.component.js +132 -0
- package/app/components/modules/modules.component.js.map +1 -0
- package/app/components/notifications/notifications.component.d.ts +23 -0
- package/app/components/notifications/notifications.component.js +35 -0
- package/app/components/notifications/notifications.component.js.map +1 -0
- package/app/components/notifications-popover/notifications-popover.component.d.ts +40 -0
- package/app/components/notifications-popover/notifications-popover.component.js +78 -0
- package/app/components/notifications-popover/notifications-popover.component.js.map +1 -0
- package/app/components/place-menu/place-menu.component.d.ts +27 -0
- package/app/components/place-menu/place-menu.component.js +40 -0
- package/app/components/place-menu/place-menu.component.js.map +1 -0
- package/app/components/placeholder-content/placeholder-content.component.d.ts +16 -0
- package/app/components/placeholder-content/placeholder-content.component.js +54 -0
- package/app/components/placeholder-content/placeholder-content.component.js.map +1 -0
- package/app/components/quit-dialog/quit-dialog.component.d.ts +17 -0
- package/app/components/quit-dialog/quit-dialog.component.js +38 -0
- package/app/components/quit-dialog/quit-dialog.component.js.map +1 -0
- package/app/components/runtime-status/runtime-status.component.d.ts +18 -0
- package/app/components/runtime-status/runtime-status.component.js +49 -0
- package/app/components/runtime-status/runtime-status.component.js.map +1 -0
- package/app/components/search-palette/search-palette.component.d.ts +35 -0
- package/app/components/search-palette/search-palette.component.js +66 -0
- package/app/components/search-palette/search-palette.component.js.map +1 -0
- package/app/components/setting-row/setting-row.component.d.ts +62 -0
- package/app/components/setting-row/setting-row.component.js +176 -0
- package/app/components/setting-row/setting-row.component.js.map +1 -0
- package/app/components/settings/settings.component.d.ts +84 -0
- package/app/components/settings/settings.component.js +273 -0
- package/app/components/settings/settings.component.js.map +1 -0
- package/app/components/settings-page-host/settings-page-host.component.d.ts +19 -0
- package/app/components/settings-page-host/settings-page-host.component.js +54 -0
- package/app/components/settings-page-host/settings-page-host.component.js.map +1 -0
- package/app/components/shortcuts/shortcuts.component.d.ts +59 -0
- package/app/components/shortcuts/shortcuts.component.js +175 -0
- package/app/components/shortcuts/shortcuts.component.js.map +1 -0
- package/app/components/split-sash/split-sash.component.d.ts +24 -0
- package/app/components/split-sash/split-sash.component.js +44 -0
- package/app/components/split-sash/split-sash.component.js.map +1 -0
- package/app/components/startup/startup.component.d.ts +25 -0
- package/app/components/startup/startup.component.js +33 -0
- package/app/components/startup/startup.component.js.map +1 -0
- package/app/components/status-bar/status-bar.component.d.ts +9 -0
- package/app/components/status-bar/status-bar.component.js +28 -0
- package/app/components/status-bar/status-bar.component.js.map +1 -0
- package/app/components/status-bar-item/status-bar-item.component.d.ts +23 -0
- package/app/components/status-bar-item/status-bar-item.component.js +39 -0
- package/app/components/status-bar-item/status-bar-item.component.js.map +1 -0
- package/app/components/tab-content/tab-content.component.d.ts +35 -0
- package/app/components/tab-content/tab-content.component.js +139 -0
- package/app/components/tab-content/tab-content.component.js.map +1 -0
- package/app/components/tab-group/tab-group.component.d.ts +54 -0
- package/app/components/tab-group/tab-group.component.js +176 -0
- package/app/components/tab-group/tab-group.component.js.map +1 -0
- package/app/components/tab-row-actions/tab-row-actions.component.d.ts +27 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js +37 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js.map +1 -0
- package/app/components/tab-slot/tab-slot.component.d.ts +35 -0
- package/app/components/tab-slot/tab-slot.component.js +70 -0
- package/app/components/tab-slot/tab-slot.component.js.map +1 -0
- package/app/components/toasts/toasts.component.d.ts +36 -0
- package/app/components/toasts/toasts.component.js +68 -0
- package/app/components/toasts/toasts.component.js.map +1 -0
- package/app/components/toolbar/toolbar.component.d.ts +49 -0
- package/app/components/toolbar/toolbar.component.js +129 -0
- package/app/components/toolbar/toolbar.component.js.map +1 -0
- package/app/components/toolbar-band/toolbar-band.component.d.ts +14 -0
- package/app/components/toolbar-band/toolbar-band.component.js +32 -0
- package/app/components/toolbar-band/toolbar-band.component.js.map +1 -0
- package/app/components/update-item/update-item.component.d.ts +22 -0
- package/app/components/update-item/update-item.component.js +32 -0
- package/app/components/update-item/update-item.component.js.map +1 -0
- package/app/components/view-dialog/view-dialog.component.d.ts +17 -0
- package/app/components/view-dialog/view-dialog.component.js +46 -0
- package/app/components/view-dialog/view-dialog.component.js.map +1 -0
- package/app/components/window/window.component.d.ts +30 -0
- package/app/components/window/window.component.js +107 -0
- package/app/components/window/window.component.js.map +1 -0
- package/app/components/window-controls/window-controls.component.d.ts +27 -0
- package/app/components/window-controls/window-controls.component.js +55 -0
- package/app/components/window-controls/window-controls.component.js.map +1 -0
- package/app/components/window-row/window-row.component.d.ts +78 -0
- package/app/components/window-row/window-row.component.js +260 -0
- package/app/components/window-row/window-row.component.js.map +1 -0
- package/app/components/workspace/workspace.component.d.ts +32 -0
- package/app/components/workspace/workspace.component.js +134 -0
- package/app/components/workspace/workspace.component.js.map +1 -0
- package/app/directives/keeps-ctrl-keys.directive.d.ts +31 -0
- package/app/directives/keeps-ctrl-keys.directive.js +21 -0
- package/app/directives/keeps-ctrl-keys.directive.js.map +1 -0
- package/app/directives/tab-scroller.directive.d.ts +29 -0
- package/app/directives/tab-scroller.directive.js +88 -0
- package/app/directives/tab-scroller.directive.js.map +1 -0
- package/app/enums/bottom-dock-span.d.ts +11 -0
- package/app/enums/bottom-dock-span.js +13 -0
- package/app/enums/bottom-dock-span.js.map +1 -0
- package/app/enums/clock-choice.d.ts +11 -0
- package/app/enums/clock-choice.js +13 -0
- package/app/enums/clock-choice.js.map +1 -0
- package/app/enums/content-padding.d.ts +28 -0
- package/app/enums/content-padding.js +13 -0
- package/app/enums/content-padding.js.map +1 -0
- package/app/enums/dock-side.d.ts +24 -0
- package/app/enums/dock-side.js +14 -0
- package/app/enums/dock-side.js.map +1 -0
- package/app/enums/dock-style.d.ts +11 -0
- package/app/enums/dock-style.js +13 -0
- package/app/enums/dock-style.js.map +1 -0
- package/app/enums/document-tone.d.ts +24 -0
- package/app/enums/document-tone.js +14 -0
- package/app/enums/document-tone.js.map +1 -0
- package/app/enums/file-save-outcome.d.ts +26 -0
- package/app/enums/file-save-outcome.js +14 -0
- package/app/enums/file-save-outcome.js.map +1 -0
- package/app/enums/link-place.d.ts +23 -0
- package/app/enums/link-place.js +13 -0
- package/app/enums/link-place.js.map +1 -0
- package/app/enums/menu-bar-style.d.ts +12 -0
- package/app/enums/menu-bar-style.js +14 -0
- package/app/enums/menu-bar-style.js.map +1 -0
- package/app/enums/menu-check.d.ts +12 -0
- package/app/enums/menu-check.js +14 -0
- package/app/enums/menu-check.js.map +1 -0
- package/app/enums/panel-edge.d.ts +13 -0
- package/app/enums/panel-edge.js +15 -0
- package/app/enums/panel-edge.js.map +1 -0
- package/app/enums/part-save-outcome.d.ts +12 -0
- package/app/enums/part-save-outcome.js +14 -0
- package/app/enums/part-save-outcome.js.map +1 -0
- package/app/enums/quit-choice.d.ts +12 -0
- package/app/enums/quit-choice.js +14 -0
- package/app/enums/quit-choice.js.map +1 -0
- package/app/enums/split-axis.d.ts +11 -0
- package/app/enums/split-axis.js +13 -0
- package/app/enums/split-axis.js.map +1 -0
- package/app/enums/startup-state-kind.d.ts +17 -0
- package/app/enums/startup-state-kind.js +19 -0
- package/app/enums/startup-state-kind.js.map +1 -0
- package/app/enums/status-bar-item-tone.d.ts +21 -0
- package/app/enums/status-bar-item-tone.js +13 -0
- package/app/enums/status-bar-item-tone.js.map +1 -0
- package/app/enums/status-bar-side.d.ts +20 -0
- package/app/enums/status-bar-side.js +13 -0
- package/app/enums/status-bar-side.js.map +1 -0
- package/app/enums/toolbar-move.d.ts +13 -0
- package/app/enums/toolbar-move.js +15 -0
- package/app/enums/toolbar-move.js.map +1 -0
- package/app/enums/top-bar-side.d.ts +21 -0
- package/app/enums/top-bar-side.js +13 -0
- package/app/enums/top-bar-side.js.map +1 -0
- package/app/enums/unconfirmed-action.d.ts +12 -0
- package/app/enums/unconfirmed-action.js +14 -0
- package/app/enums/unconfirmed-action.js.map +1 -0
- package/app/enums/update-action.d.ts +11 -0
- package/app/enums/update-action.js +13 -0
- package/app/enums/update-action.js.map +1 -0
- package/app/enums/update-state-kind.d.ts +16 -0
- package/app/enums/update-state-kind.js +18 -0
- package/app/enums/update-state-kind.js.map +1 -0
- package/app/enums/view-dialog-refusal.d.ts +11 -0
- package/app/enums/view-dialog-refusal.js +13 -0
- package/app/enums/view-dialog-refusal.js.map +1 -0
- package/app/exceptions/action-not-confirmed.exception.d.ts +17 -0
- package/app/exceptions/action-not-confirmed.exception.js +36 -0
- package/app/exceptions/action-not-confirmed.exception.js.map +1 -0
- package/app/exceptions/command-already-registered.exception.d.ts +13 -0
- package/app/exceptions/command-already-registered.exception.js +18 -0
- package/app/exceptions/command-already-registered.exception.js.map +1 -0
- package/app/exceptions/command-not-declared.exception.d.ts +13 -0
- package/app/exceptions/command-not-declared.exception.js +18 -0
- package/app/exceptions/command-not-declared.exception.js.map +1 -0
- package/app/exceptions/command-not-found.exception.d.ts +13 -0
- package/app/exceptions/command-not-found.exception.js +18 -0
- package/app/exceptions/command-not-found.exception.js.map +1 -0
- package/app/exceptions/contribution-not-declared.exception.d.ts +14 -0
- package/app/exceptions/contribution-not-declared.exception.js +20 -0
- package/app/exceptions/contribution-not-declared.exception.js.map +1 -0
- package/app/exceptions/contribution-registered.exception.d.ts +14 -0
- package/app/exceptions/contribution-registered.exception.js +20 -0
- package/app/exceptions/contribution-registered.exception.js.map +1 -0
- package/app/exceptions/dependency-not-followed.exception.d.ts +12 -0
- package/app/exceptions/dependency-not-followed.exception.js +17 -0
- package/app/exceptions/dependency-not-followed.exception.js.map +1 -0
- package/app/exceptions/file-not-opened.exception.d.ts +13 -0
- package/app/exceptions/file-not-opened.exception.js +18 -0
- package/app/exceptions/file-not-opened.exception.js.map +1 -0
- package/app/exceptions/file-not-shown.exception.d.ts +13 -0
- package/app/exceptions/file-not-shown.exception.js +18 -0
- package/app/exceptions/file-not-shown.exception.js.map +1 -0
- package/app/exceptions/foreign-contribution.exception.d.ts +13 -0
- package/app/exceptions/foreign-contribution.exception.js +18 -0
- package/app/exceptions/foreign-contribution.exception.js.map +1 -0
- package/app/exceptions/foreign-name.exception.d.ts +13 -0
- package/app/exceptions/foreign-name.exception.js +18 -0
- package/app/exceptions/foreign-name.exception.js.map +1 -0
- package/app/exceptions/foreign-secret.exception.d.ts +13 -0
- package/app/exceptions/foreign-secret.exception.js +18 -0
- package/app/exceptions/foreign-secret.exception.js.map +1 -0
- package/app/exceptions/in-app-browser-taken.exception.d.ts +12 -0
- package/app/exceptions/in-app-browser-taken.exception.js +16 -0
- package/app/exceptions/in-app-browser-taken.exception.js.map +1 -0
- package/app/exceptions/link-not-opened.exception.d.ts +12 -0
- package/app/exceptions/link-not-opened.exception.js +16 -0
- package/app/exceptions/link-not-opened.exception.js.map +1 -0
- package/app/exceptions/placeholder-shown.exception.d.ts +14 -0
- package/app/exceptions/placeholder-shown.exception.js +20 -0
- package/app/exceptions/placeholder-shown.exception.js.map +1 -0
- package/app/exceptions/preload-bridge.exception.d.ts +12 -0
- package/app/exceptions/preload-bridge.exception.js +16 -0
- package/app/exceptions/preload-bridge.exception.js.map +1 -0
- package/app/exceptions/product-name.exception.d.ts +12 -0
- package/app/exceptions/product-name.exception.js +16 -0
- package/app/exceptions/product-name.exception.js.map +1 -0
- package/app/exceptions/runtime-disconnected.exception.d.ts +13 -0
- package/app/exceptions/runtime-disconnected.exception.js +25 -0
- package/app/exceptions/runtime-disconnected.exception.js.map +1 -0
- package/app/exceptions/runtime-request.exception.d.ts +15 -0
- package/app/exceptions/runtime-request.exception.js +19 -0
- package/app/exceptions/runtime-request.exception.js.map +1 -0
- package/app/exceptions/search-source-registered.exception.d.ts +13 -0
- package/app/exceptions/search-source-registered.exception.js +18 -0
- package/app/exceptions/search-source-registered.exception.js.map +1 -0
- package/app/exceptions/setting-options-failed.exception.d.ts +13 -0
- package/app/exceptions/setting-options-failed.exception.js +19 -0
- package/app/exceptions/setting-options-failed.exception.js.map +1 -0
- package/app/exceptions/setting-options-repeated.exception.d.ts +13 -0
- package/app/exceptions/setting-options-repeated.exception.js +18 -0
- package/app/exceptions/setting-options-repeated.exception.js.map +1 -0
- package/app/exceptions/settings-page-not-loaded.exception.d.ts +12 -0
- package/app/exceptions/settings-page-not-loaded.exception.js +17 -0
- package/app/exceptions/settings-page-not-loaded.exception.js.map +1 -0
- package/app/exceptions/view-dialog.exception.d.ts +15 -0
- package/app/exceptions/view-dialog.exception.js +27 -0
- package/app/exceptions/view-dialog.exception.js.map +1 -0
- package/app/exceptions/web-view-closed.exception.d.ts +12 -0
- package/app/exceptions/web-view-closed.exception.js +16 -0
- package/app/exceptions/web-view-closed.exception.js.map +1 -0
- package/app/exceptions/web-view-not-opened.exception.d.ts +12 -0
- package/app/exceptions/web-view-not-opened.exception.js +16 -0
- package/app/exceptions/web-view-not-opened.exception.js.map +1 -0
- package/app/exceptions/window-part-access.exception.d.ts +13 -0
- package/app/exceptions/window-part-access.exception.js +17 -0
- package/app/exceptions/window-part-access.exception.js.map +1 -0
- package/app/exceptions/window-part-activation-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-activation-failed.exception.js +17 -0
- package/app/exceptions/window-part-activation-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-failure.exception.d.ts +14 -0
- package/app/exceptions/window-part-failure.exception.js +17 -0
- package/app/exceptions/window-part-failure.exception.js.map +1 -0
- package/app/exceptions/window-part-load-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-load-failed.exception.js +17 -0
- package/app/exceptions/window-part-load-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-reconnection-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js +17 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-late.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-late.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-late.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed.exception.js +19 -0
- package/app/exceptions/window-part-save-failed.exception.js.map +1 -0
- package/app/exceptions/window.exception.d.ts +21 -0
- package/app/exceptions/window.exception.js +15 -0
- package/app/exceptions/window.exception.js.map +1 -0
- package/app/interfaces/i-command-key.d.ts +22 -0
- package/app/interfaces/i-command-key.js +8 -0
- package/app/interfaces/i-command-key.js.map +1 -0
- package/app/interfaces/i-document-contribution-options.d.ts +34 -0
- package/app/interfaces/i-document-contribution-options.js +8 -0
- package/app/interfaces/i-document-contribution-options.js.map +1 -0
- package/app/interfaces/i-document-marker.d.ts +23 -0
- package/app/interfaces/i-document-marker.js +8 -0
- package/app/interfaces/i-document-marker.js.map +1 -0
- package/app/interfaces/i-document-options.d.ts +79 -0
- package/app/interfaces/i-document-options.js +8 -0
- package/app/interfaces/i-document-options.js.map +1 -0
- package/app/interfaces/i-document-status.d.ts +28 -0
- package/app/interfaces/i-document-status.js +8 -0
- package/app/interfaces/i-document-status.js.map +1 -0
- package/app/interfaces/i-document-update.d.ts +58 -0
- package/app/interfaces/i-document-update.js +8 -0
- package/app/interfaces/i-document-update.js.map +1 -0
- package/app/interfaces/i-file-choice-options.d.ts +18 -0
- package/app/interfaces/i-file-choice-options.js +8 -0
- package/app/interfaces/i-file-choice-options.js.map +1 -0
- package/app/interfaces/i-file-grant-options.d.ts +17 -0
- package/app/interfaces/i-file-grant-options.js +8 -0
- package/app/interfaces/i-file-grant-options.js.map +1 -0
- package/app/interfaces/i-file-path-choice-options.d.ts +24 -0
- package/app/interfaces/i-file-path-choice-options.js +8 -0
- package/app/interfaces/i-file-path-choice-options.js.map +1 -0
- package/app/interfaces/i-in-app-browser.d.ts +36 -0
- package/app/interfaces/i-in-app-browser.js +8 -0
- package/app/interfaces/i-in-app-browser.js.map +1 -0
- package/app/interfaces/i-layout-store.d.ts +12 -0
- package/app/interfaces/i-layout-store.js +8 -0
- package/app/interfaces/i-layout-store.js.map +1 -0
- package/app/interfaces/i-link-open-options.d.ts +26 -0
- package/app/interfaces/i-link-open-options.js +8 -0
- package/app/interfaces/i-link-open-options.js.map +1 -0
- package/app/interfaces/i-module-saver.d.ts +10 -0
- package/app/interfaces/i-module-saver.js +8 -0
- package/app/interfaces/i-module-saver.js.map +1 -0
- package/app/interfaces/i-opened-web-view.d.ts +12 -0
- package/app/interfaces/i-opened-web-view.js +8 -0
- package/app/interfaces/i-opened-web-view.js.map +1 -0
- package/app/interfaces/i-preload-bridge.d.ts +75 -0
- package/app/interfaces/i-preload-bridge.js +8 -0
- package/app/interfaces/i-preload-bridge.js.map +1 -0
- package/app/interfaces/i-product-about.d.ts +38 -0
- package/app/interfaces/i-product-about.js +8 -0
- package/app/interfaces/i-product-about.js.map +1 -0
- package/app/interfaces/i-product-logo.d.ts +23 -0
- package/app/interfaces/i-product-logo.js +8 -0
- package/app/interfaces/i-product-logo.js.map +1 -0
- package/app/interfaces/i-selection-source.d.ts +24 -0
- package/app/interfaces/i-selection-source.js +8 -0
- package/app/interfaces/i-selection-source.js.map +1 -0
- package/app/interfaces/i-settings-page-declaration.d.ts +22 -0
- package/app/interfaces/i-settings-page-declaration.js +8 -0
- package/app/interfaces/i-settings-page-declaration.js.map +1 -0
- package/app/interfaces/i-settings-page-row.d.ts +12 -0
- package/app/interfaces/i-settings-page-row.js +8 -0
- package/app/interfaces/i-settings-page-row.js.map +1 -0
- package/app/interfaces/i-status-bar-item-options.d.ts +42 -0
- package/app/interfaces/i-status-bar-item-options.js +8 -0
- package/app/interfaces/i-status-bar-item-options.js.map +1 -0
- package/app/interfaces/i-top-bar-action-options.d.ts +21 -0
- package/app/interfaces/i-top-bar-action-options.js +8 -0
- package/app/interfaces/i-top-bar-action-options.js.map +1 -0
- package/app/interfaces/i-view-dialog-options.d.ts +22 -0
- package/app/interfaces/i-view-dialog-options.js +8 -0
- package/app/interfaces/i-view-dialog-options.js.map +1 -0
- package/app/interfaces/i-view-instance-options.d.ts +37 -0
- package/app/interfaces/i-view-instance-options.js +8 -0
- package/app/interfaces/i-view-instance-options.js.map +1 -0
- package/app/interfaces/i-view-options.d.ts +41 -0
- package/app/interfaces/i-view-options.js +8 -0
- package/app/interfaces/i-view-options.js.map +1 -0
- package/app/interfaces/i-view-update.d.ts +31 -0
- package/app/interfaces/i-view-update.js +8 -0
- package/app/interfaces/i-view-update.js.map +1 -0
- package/app/interfaces/i-web-view-find-options.d.ts +16 -0
- package/app/interfaces/i-web-view-find-options.js +8 -0
- package/app/interfaces/i-web-view-find-options.js.map +1 -0
- package/app/interfaces/i-web-view-found.d.ts +33 -0
- package/app/interfaces/i-web-view-found.js +8 -0
- package/app/interfaces/i-web-view-found.js.map +1 -0
- package/app/interfaces/i-web-view-guest.d.ts +15 -0
- package/app/interfaces/i-web-view-guest.js +8 -0
- package/app/interfaces/i-web-view-guest.js.map +1 -0
- package/app/interfaces/i-web-view-handle.d.ts +370 -0
- package/app/interfaces/i-web-view-handle.js +8 -0
- package/app/interfaces/i-web-view-handle.js.map +1 -0
- package/app/interfaces/i-web-view-layer.d.ts +29 -0
- package/app/interfaces/i-web-view-layer.js +8 -0
- package/app/interfaces/i-web-view-layer.js.map +1 -0
- package/app/interfaces/i-window-inputs.d.ts +72 -0
- package/app/interfaces/i-window-inputs.js +8 -0
- package/app/interfaces/i-window-inputs.js.map +1 -0
- package/app/interfaces/i-window-palette.d.ts +32 -0
- package/app/interfaces/i-window-palette.js +8 -0
- package/app/interfaces/i-window-palette.js.map +1 -0
- package/app/interfaces/i-window-part-context.d.ts +1622 -0
- package/app/interfaces/i-window-part-context.js +8 -0
- package/app/interfaces/i-window-part-context.js.map +1 -0
- package/app/interfaces/i-window-part-host.d.ts +89 -0
- package/app/interfaces/i-window-part-host.js +8 -0
- package/app/interfaces/i-window-part-host.js.map +1 -0
- package/app/interfaces/i-window-part.d.ts +160 -0
- package/app/interfaces/i-window-part.js +8 -0
- package/app/interfaces/i-window-part.js.map +1 -0
- package/app/interfaces/i-window-secrets.d.ts +69 -0
- package/app/interfaces/i-window-secrets.js +8 -0
- package/app/interfaces/i-window-secrets.js.map +1 -0
- package/app/interfaces/i-window-web-views.d.ts +39 -0
- package/app/interfaces/i-window-web-views.js +8 -0
- package/app/interfaces/i-window-web-views.js.map +1 -0
- package/app/models/appearance-preferences.d.ts +22 -0
- package/app/models/appearance-preferences.js +51 -0
- package/app/models/appearance-preferences.js.map +1 -0
- package/app/models/build-info.d.ts +13 -0
- package/app/models/build-info.js +22 -0
- package/app/models/build-info.js.map +1 -0
- package/app/models/build-tokens.d.ts +17 -0
- package/app/models/build-tokens.js +16 -0
- package/app/models/build-tokens.js.map +1 -0
- package/app/models/clipboard-image.d.ts +22 -0
- package/app/models/clipboard-image.js +128 -0
- package/app/models/clipboard-image.js.map +1 -0
- package/app/models/clipboard-image.resources.d.ts +43 -0
- package/app/models/clipboard-image.resources.js +44 -0
- package/app/models/clipboard-image.resources.js.map +1 -0
- package/app/models/command-contribution.d.ts +95 -0
- package/app/models/command-contribution.js +38 -0
- package/app/models/command-contribution.js.map +1 -0
- package/app/models/command-match.d.ts +13 -0
- package/app/models/command-match.js +17 -0
- package/app/models/command-match.js.map +1 -0
- package/app/models/command-matcher.d.ts +11 -0
- package/app/models/command-matcher.js +23 -0
- package/app/models/command-matcher.js.map +1 -0
- package/app/models/command-row.d.ts +20 -0
- package/app/models/command-row.js +27 -0
- package/app/models/command-row.js.map +1 -0
- package/app/models/command-search-entry.d.ts +15 -0
- package/app/models/command-search-entry.js +20 -0
- package/app/models/command-search-entry.js.map +1 -0
- package/app/models/content-padding-ref.d.ts +66 -0
- package/app/models/content-padding-ref.js +20 -0
- package/app/models/content-padding-ref.js.map +1 -0
- package/app/models/contribution-match.d.ts +16 -0
- package/app/models/contribution-match.js +18 -0
- package/app/models/contribution-match.js.map +1 -0
- package/app/models/document-contribution.d.ts +63 -0
- package/app/models/document-contribution.js +28 -0
- package/app/models/document-contribution.js.map +1 -0
- package/app/models/document-heading.d.ts +21 -0
- package/app/models/document-heading.js +50 -0
- package/app/models/document-heading.js.map +1 -0
- package/app/models/document-look.d.ts +27 -0
- package/app/models/document-look.js +66 -0
- package/app/models/document-look.js.map +1 -0
- package/app/models/edit-target.d.ts +22 -0
- package/app/models/edit-target.js +58 -0
- package/app/models/edit-target.js.map +1 -0
- package/app/models/field-menu-request.d.ts +19 -0
- package/app/models/field-menu-request.js +32 -0
- package/app/models/field-menu-request.js.map +1 -0
- package/app/models/gallery-tokens.d.ts +11 -0
- package/app/models/gallery-tokens.js +13 -0
- package/app/models/gallery-tokens.js.map +1 -0
- package/app/models/issued-file-grant.d.ts +45 -0
- package/app/models/issued-file-grant.js +20 -0
- package/app/models/issued-file-grant.js.map +1 -0
- package/app/models/issued-file-grants.d.ts +40 -0
- package/app/models/issued-file-grants.js +17 -0
- package/app/models/issued-file-grants.js.map +1 -0
- package/app/models/key-bindings.d.ts +24 -0
- package/app/models/key-bindings.js +66 -0
- package/app/models/key-bindings.js.map +1 -0
- package/app/models/layout/bounds.d.ts +24 -0
- package/app/models/layout/bounds.js +53 -0
- package/app/models/layout/bounds.js.map +1 -0
- package/app/models/layout/closed-tabs.d.ts +28 -0
- package/app/models/layout/closed-tabs.js +72 -0
- package/app/models/layout/closed-tabs.js.map +1 -0
- package/app/models/layout/dock-growth.d.ts +18 -0
- package/app/models/layout/dock-growth.js +27 -0
- package/app/models/layout/dock-growth.js.map +1 -0
- package/app/models/layout/dock-strip-icon.d.ts +17 -0
- package/app/models/layout/dock-strip-icon.js +20 -0
- package/app/models/layout/dock-strip-icon.js.map +1 -0
- package/app/models/layout/dock-yield.d.ts +15 -0
- package/app/models/layout/dock-yield.js +19 -0
- package/app/models/layout/dock-yield.js.map +1 -0
- package/app/models/layout/dock.d.ts +33 -0
- package/app/models/layout/dock.js +65 -0
- package/app/models/layout/dock.js.map +1 -0
- package/app/models/layout/docking-overlay.d.ts +20 -0
- package/app/models/layout/docking-overlay.js +52 -0
- package/app/models/layout/docking-overlay.js.map +1 -0
- package/app/models/layout/document-group.d.ts +22 -0
- package/app/models/layout/document-group.js +36 -0
- package/app/models/layout/document-group.js.map +1 -0
- package/app/models/layout/document-tab.d.ts +19 -0
- package/app/models/layout/document-tab.js +33 -0
- package/app/models/layout/document-tab.js.map +1 -0
- package/app/models/layout/drop-target.d.ts +16 -0
- package/app/models/layout/drop-target.js +10 -0
- package/app/models/layout/drop-target.js.map +1 -0
- package/app/models/layout/early-document.d.ts +14 -0
- package/app/models/layout/early-document.js +18 -0
- package/app/models/layout/early-document.js.map +1 -0
- package/app/models/layout/group-drop-target.d.ts +19 -0
- package/app/models/layout/group-drop-target.js +25 -0
- package/app/models/layout/group-drop-target.js.map +1 -0
- package/app/models/layout/group-frame.d.ts +16 -0
- package/app/models/layout/group-frame.js +18 -0
- package/app/models/layout/group-frame.js.map +1 -0
- package/app/models/layout/layout-fit.d.ts +25 -0
- package/app/models/layout/layout-fit.js +61 -0
- package/app/models/layout/layout-fit.js.map +1 -0
- package/app/models/layout/layout-geometry.d.ts +49 -0
- package/app/models/layout/layout-geometry.js +129 -0
- package/app/models/layout/layout-geometry.js.map +1 -0
- package/app/models/layout/layout-metrics.d.ts +21 -0
- package/app/models/layout/layout-metrics.js +39 -0
- package/app/models/layout/layout-metrics.js.map +1 -0
- package/app/models/layout/layout.d.ts +71 -0
- package/app/models/layout/layout.js +241 -0
- package/app/models/layout/layout.js.map +1 -0
- package/app/models/layout/layout.node.d.ts +33 -0
- package/app/models/layout/layout.node.js +18 -0
- package/app/models/layout/layout.node.js.map +1 -0
- package/app/models/layout/side-drop-target.d.ts +23 -0
- package/app/models/layout/side-drop-target.js +29 -0
- package/app/models/layout/side-drop-target.js.map +1 -0
- package/app/models/layout/split-drop-target.d.ts +21 -0
- package/app/models/layout/split-drop-target.js +27 -0
- package/app/models/layout/split-drop-target.js.map +1 -0
- package/app/models/layout/split-handle.d.ts +22 -0
- package/app/models/layout/split-handle.js +43 -0
- package/app/models/layout/split-handle.js.map +1 -0
- package/app/models/layout/split-part.d.ts +13 -0
- package/app/models/layout/split-part.js +16 -0
- package/app/models/layout/split-part.js.map +1 -0
- package/app/models/layout/split.node.d.ts +42 -0
- package/app/models/layout/split.node.js +119 -0
- package/app/models/layout/split.node.js.map +1 -0
- package/app/models/layout/tab-drop-target.d.ts +18 -0
- package/app/models/layout/tab-drop-target.js +27 -0
- package/app/models/layout/tab-drop-target.js.map +1 -0
- package/app/models/layout/tab-group.d.ts +46 -0
- package/app/models/layout/tab-group.js +134 -0
- package/app/models/layout/tab-group.js.map +1 -0
- package/app/models/layout/tab-key.d.ts +12 -0
- package/app/models/layout/tab-key.js +22 -0
- package/app/models/layout/tab-key.js.map +1 -0
- package/app/models/layout/tab-label.d.ts +12 -0
- package/app/models/layout/tab-label.js +20 -0
- package/app/models/layout/tab-label.js.map +1 -0
- package/app/models/layout/tab-reveal.d.ts +13 -0
- package/app/models/layout/tab-reveal.js +16 -0
- package/app/models/layout/tab-reveal.js.map +1 -0
- package/app/models/layout/tab.d.ts +24 -0
- package/app/models/layout/tab.js +34 -0
- package/app/models/layout/tab.js.map +1 -0
- package/app/models/layout/toolbar-layout.d.ts +28 -0
- package/app/models/layout/toolbar-layout.js +116 -0
- package/app/models/layout/toolbar-layout.js.map +1 -0
- package/app/models/layout/view-registry.d.ts +24 -0
- package/app/models/layout/view-registry.js +58 -0
- package/app/models/layout/view-registry.js.map +1 -0
- package/app/models/layout/view-tab.d.ts +19 -0
- package/app/models/layout/view-tab.js +33 -0
- package/app/models/layout/view-tab.js.map +1 -0
- package/app/models/layout/view-type.d.ts +17 -0
- package/app/models/layout/view-type.js +28 -0
- package/app/models/layout/view-type.js.map +1 -0
- package/app/models/live-view.d.ts +32 -0
- package/app/models/live-view.js +90 -0
- package/app/models/live-view.js.map +1 -0
- package/app/models/menu-declarations.d.ts +20 -0
- package/app/models/menu-declarations.js +50 -0
- package/app/models/menu-declarations.js.map +1 -0
- package/app/models/menu-group.d.ts +17 -0
- package/app/models/menu-group.js +32 -0
- package/app/models/menu-group.js.map +1 -0
- package/app/models/menu-item.d.ts +20 -0
- package/app/models/menu-item.js +40 -0
- package/app/models/menu-item.js.map +1 -0
- package/app/models/menu-place.d.ts +16 -0
- package/app/models/menu-place.js +28 -0
- package/app/models/menu-place.js.map +1 -0
- package/app/models/menu-row-contribution.d.ts +52 -0
- package/app/models/menu-row-contribution.js +27 -0
- package/app/models/menu-row-contribution.js.map +1 -0
- package/app/models/menu-row.d.ts +12 -0
- package/app/models/menu-row.js +16 -0
- package/app/models/menu-row.js.map +1 -0
- package/app/models/menu-search-row.d.ts +14 -0
- package/app/models/menu-search-row.js +20 -0
- package/app/models/menu-search-row.js.map +1 -0
- package/app/models/menu-section.d.ts +14 -0
- package/app/models/menu-section.js +16 -0
- package/app/models/menu-section.js.map +1 -0
- package/app/models/module-failure.d.ts +20 -0
- package/app/models/module-failure.js +35 -0
- package/app/models/module-failure.js.map +1 -0
- package/app/models/module-switch-tokens.d.ts +12 -0
- package/app/models/module-switch-tokens.js +13 -0
- package/app/models/module-switch-tokens.js.map +1 -0
- package/app/models/modules/contribution-group.d.ts +14 -0
- package/app/models/modules/contribution-group.js +18 -0
- package/app/models/modules/contribution-group.js.map +1 -0
- package/app/models/modules/contribution-row.d.ts +12 -0
- package/app/models/modules/contribution-row.js +16 -0
- package/app/models/modules/contribution-row.js.map +1 -0
- package/app/models/modules/module-overview.d.ts +21 -0
- package/app/models/modules/module-overview.js +41 -0
- package/app/models/modules/module-overview.js.map +1 -0
- package/app/models/modules/module-reference.d.ts +13 -0
- package/app/models/modules/module-reference.js +16 -0
- package/app/models/modules/module-reference.js.map +1 -0
- package/app/models/modules/program-row.d.ts +17 -0
- package/app/models/modules/program-row.js +28 -0
- package/app/models/modules/program-row.js.map +1 -0
- package/app/models/notification-handle.d.ts +45 -0
- package/app/models/notification-handle.js +19 -0
- package/app/models/notification-handle.js.map +1 -0
- package/app/models/pending-document.d.ts +21 -0
- package/app/models/pending-document.js +35 -0
- package/app/models/pending-document.js.map +1 -0
- package/app/models/pending-view-change.d.ts +14 -0
- package/app/models/pending-view-change.js +20 -0
- package/app/models/pending-view-change.js.map +1 -0
- package/app/models/placeholder-contribution.d.ts +49 -0
- package/app/models/placeholder-contribution.js +22 -0
- package/app/models/placeholder-contribution.js.map +1 -0
- package/app/models/product-name.d.ts +13 -0
- package/app/models/product-name.js +18 -0
- package/app/models/product-name.js.map +1 -0
- package/app/models/quit-question.d.ts +16 -0
- package/app/models/quit-question.js +30 -0
- package/app/models/quit-question.js.map +1 -0
- package/app/models/scroll-offset.d.ts +15 -0
- package/app/models/scroll-offset.js +25 -0
- package/app/models/scroll-offset.js.map +1 -0
- package/app/models/search-answer.d.ts +39 -0
- package/app/models/search-answer.js +20 -0
- package/app/models/search-answer.js.map +1 -0
- package/app/models/search-filter.d.ts +14 -0
- package/app/models/search-filter.js +20 -0
- package/app/models/search-filter.js.map +1 -0
- package/app/models/search-group.d.ts +14 -0
- package/app/models/search-group.js +18 -0
- package/app/models/search-group.js.map +1 -0
- package/app/models/search-query.d.ts +17 -0
- package/app/models/search-query.js +30 -0
- package/app/models/search-query.js.map +1 -0
- package/app/models/search-rank.d.ts +14 -0
- package/app/models/search-rank.js +32 -0
- package/app/models/search-rank.js.map +1 -0
- package/app/models/search-request.d.ts +15 -0
- package/app/models/search-request.js +20 -0
- package/app/models/search-request.js.map +1 -0
- package/app/models/search-result.d.ts +65 -0
- package/app/models/search-result.js +38 -0
- package/app/models/search-result.js.map +1 -0
- package/app/models/search-row.d.ts +15 -0
- package/app/models/search-row.js +20 -0
- package/app/models/search-row.js.map +1 -0
- package/app/models/search-session.d.ts +38 -0
- package/app/models/search-session.js +140 -0
- package/app/models/search-session.js.map +1 -0
- package/app/models/search-source-contribution.d.ts +75 -0
- package/app/models/search-source-contribution.js +38 -0
- package/app/models/search-source-contribution.js.map +1 -0
- package/app/models/settings/setting-options-supply.d.ts +18 -0
- package/app/models/settings/setting-options-supply.js +46 -0
- package/app/models/settings/setting-options-supply.js.map +1 -0
- package/app/models/settings/settings-group.d.ts +13 -0
- package/app/models/settings/settings-group.js +16 -0
- package/app/models/settings/settings-group.js.map +1 -0
- package/app/models/settings/settings-page-entry.d.ts +22 -0
- package/app/models/settings/settings-page-entry.js +30 -0
- package/app/models/settings/settings-page-entry.js.map +1 -0
- package/app/models/settings/settings-page.d.ts +26 -0
- package/app/models/settings/settings-page.js +62 -0
- package/app/models/settings/settings-page.js.map +1 -0
- package/app/models/settings/settings-row.d.ts +42 -0
- package/app/models/settings/settings-row.js +24 -0
- package/app/models/settings/settings-row.js.map +1 -0
- package/app/models/settings/shortcut-notice.d.ts +15 -0
- package/app/models/settings/shortcut-notice.js +20 -0
- package/app/models/settings/shortcut-notice.js.map +1 -0
- package/app/models/settings/shortcut-row.d.ts +17 -0
- package/app/models/settings/shortcut-row.js +26 -0
- package/app/models/settings/shortcut-row.js.map +1 -0
- package/app/models/settings/text-match.d.ts +16 -0
- package/app/models/settings/text-match.js +41 -0
- package/app/models/settings/text-match.js.map +1 -0
- package/app/models/settings/word-breaks.d.ts +13 -0
- package/app/models/settings/word-breaks.js +34 -0
- package/app/models/settings/word-breaks.js.map +1 -0
- package/app/models/settings-page-contribution.d.ts +46 -0
- package/app/models/settings-page-contribution.js +20 -0
- package/app/models/settings-page-contribution.js.map +1 -0
- package/app/models/shell-documents.d.ts +21 -0
- package/app/models/shell-documents.js +25 -0
- package/app/models/shell-documents.js.map +1 -0
- package/app/models/shell-menus.d.ts +16 -0
- package/app/models/shell-menus.js +97 -0
- package/app/models/shell-menus.js.map +1 -0
- package/app/models/shortcut-binding.d.ts +13 -0
- package/app/models/shortcut-binding.js +16 -0
- package/app/models/shortcut-binding.js.map +1 -0
- package/app/models/shortcut-collision.d.ts +14 -0
- package/app/models/shortcut-collision.js +18 -0
- package/app/models/shortcut-collision.js.map +1 -0
- package/app/models/shortcut-map.d.ts +27 -0
- package/app/models/shortcut-map.js +64 -0
- package/app/models/shortcut-map.js.map +1 -0
- package/app/models/spelling-offer.d.ts +15 -0
- package/app/models/spelling-offer.js +24 -0
- package/app/models/spelling-offer.js.map +1 -0
- package/app/models/startup-state.d.ts +17 -0
- package/app/models/startup-state.js +35 -0
- package/app/models/startup-state.js.map +1 -0
- package/app/models/status-bar-item-contribution.d.ts +45 -0
- package/app/models/status-bar-item-contribution.js +20 -0
- package/app/models/status-bar-item-contribution.js.map +1 -0
- package/app/models/status-bar-item-state.d.ts +82 -0
- package/app/models/status-bar-item-state.js +43 -0
- package/app/models/status-bar-item-state.js.map +1 -0
- package/app/models/status-bar-item.d.ts +62 -0
- package/app/models/status-bar-item.js +29 -0
- package/app/models/status-bar-item.js.map +1 -0
- package/app/models/submenu-row.d.ts +15 -0
- package/app/models/submenu-row.js +19 -0
- package/app/models/submenu-row.js.map +1 -0
- package/app/models/tab-content.d.ts +18 -0
- package/app/models/tab-content.js +22 -0
- package/app/models/tab-content.js.map +1 -0
- package/app/models/tab-target.d.ts +19 -0
- package/app/models/tab-target.js +30 -0
- package/app/models/tab-target.js.map +1 -0
- package/app/models/text-range.d.ts +40 -0
- package/app/models/text-range.js +25 -0
- package/app/models/text-range.js.map +1 -0
- package/app/models/toolbar-drop-target.d.ts +17 -0
- package/app/models/toolbar-drop-target.js +28 -0
- package/app/models/toolbar-drop-target.js.map +1 -0
- package/app/models/toolbar-fit.d.ts +10 -0
- package/app/models/toolbar-fit.js +17 -0
- package/app/models/toolbar-fit.js.map +1 -0
- package/app/models/toolbar-placement.d.ts +14 -0
- package/app/models/toolbar-placement.js +24 -0
- package/app/models/toolbar-placement.js.map +1 -0
- package/app/models/toolbar.d.ts +14 -0
- package/app/models/toolbar.js +18 -0
- package/app/models/toolbar.js.map +1 -0
- package/app/models/top-bar-action-contribution.d.ts +44 -0
- package/app/models/top-bar-action-contribution.js +21 -0
- package/app/models/top-bar-action-contribution.js.map +1 -0
- package/app/models/top-bar-action-state.d.ts +51 -0
- package/app/models/top-bar-action-state.js +27 -0
- package/app/models/top-bar-action-state.js.map +1 -0
- package/app/models/top-bar-action.d.ts +62 -0
- package/app/models/top-bar-action.js +29 -0
- package/app/models/top-bar-action.js.map +1 -0
- package/app/models/update-state.d.ts +23 -0
- package/app/models/update-state.js +56 -0
- package/app/models/update-state.js.map +1 -0
- package/app/models/view-badge.d.ts +37 -0
- package/app/models/view-badge.js +22 -0
- package/app/models/view-badge.js.map +1 -0
- package/app/models/view-contribution.d.ts +91 -0
- package/app/models/view-contribution.js +42 -0
- package/app/models/view-contribution.js.map +1 -0
- package/app/models/web-view-handle.d.ts +56 -0
- package/app/models/web-view-handle.js +118 -0
- package/app/models/web-view-handle.js.map +1 -0
- package/app/models/web-view-layer.d.ts +20 -0
- package/app/models/web-view-layer.js +45 -0
- package/app/models/web-view-layer.js.map +1 -0
- package/app/models/window-appearance.d.ts +18 -0
- package/app/models/window-appearance.js +61 -0
- package/app/models/window-appearance.js.map +1 -0
- package/app/models/window-application.d.ts +32 -0
- package/app/models/window-application.js +45 -0
- package/app/models/window-application.js.map +1 -0
- package/app/models/window-palette.d.ts +18 -0
- package/app/models/window-palette.js +26 -0
- package/app/models/window-palette.js.map +1 -0
- package/app/models/window-part-activation.d.ts +16 -0
- package/app/models/window-part-activation.js +18 -0
- package/app/models/window-part-activation.js.map +1 -0
- package/app/models/window-part-context.d.ts +171 -0
- package/app/models/window-part-context.js +708 -0
- package/app/models/window-part-context.js.map +1 -0
- package/app/models/window-part-source.d.ts +95 -0
- package/app/models/window-part-source.js +40 -0
- package/app/models/window-part-source.js.map +1 -0
- package/app/models/window-part-tokens.d.ts +32 -0
- package/app/models/window-part-tokens.js +15 -0
- package/app/models/window-part-tokens.js.map +1 -0
- package/app/models/window-secrets.d.ts +18 -0
- package/app/models/window-secrets.js +33 -0
- package/app/models/window-secrets.js.map +1 -0
- package/app/models/window-web-views.d.ts +18 -0
- package/app/models/window-web-views.js +34 -0
- package/app/models/window-web-views.js.map +1 -0
- package/app/services/agent-control.service.d.ts +24 -0
- package/app/services/agent-control.service.js +58 -0
- package/app/services/agent-control.service.js.map +1 -0
- package/app/services/appearance-settings.service.d.ts +12 -0
- package/app/services/appearance-settings.service.js +50 -0
- package/app/services/appearance-settings.service.js.map +1 -0
- package/app/services/bar-items.service.d.ts +22 -0
- package/app/services/bar-items.service.js +36 -0
- package/app/services/bar-items.service.js.map +1 -0
- package/app/services/clock-setting.service.d.ts +26 -0
- package/app/services/clock-setting.service.js +43 -0
- package/app/services/clock-setting.service.js.map +1 -0
- package/app/services/closing.service.d.ts +19 -0
- package/app/services/closing.service.js +99 -0
- package/app/services/closing.service.js.map +1 -0
- package/app/services/command.service.d.ts +51 -0
- package/app/services/command.service.js +178 -0
- package/app/services/command.service.js.map +1 -0
- package/app/services/details.service.d.ts +8 -0
- package/app/services/details.service.js +28 -0
- package/app/services/details.service.js.map +1 -0
- package/app/services/dialog-cover.service.d.ts +32 -0
- package/app/services/dialog-cover.service.js +102 -0
- package/app/services/dialog-cover.service.js.map +1 -0
- package/app/services/dock-growth.service.d.ts +15 -0
- package/app/services/dock-growth.service.js +63 -0
- package/app/services/dock-growth.service.js.map +1 -0
- package/app/services/document-history.service.d.ts +24 -0
- package/app/services/document-history.service.js +68 -0
- package/app/services/document-history.service.js.map +1 -0
- package/app/services/document-instances.service.d.ts +15 -0
- package/app/services/document-instances.service.js +47 -0
- package/app/services/document-instances.service.js.map +1 -0
- package/app/services/document-opener.service.d.ts +18 -0
- package/app/services/document-opener.service.js +75 -0
- package/app/services/document-opener.service.js.map +1 -0
- package/app/services/edit-target.service.d.ts +23 -0
- package/app/services/edit-target.service.js +93 -0
- package/app/services/edit-target.service.js.map +1 -0
- package/app/services/issued-file-grants.reader.d.ts +13 -0
- package/app/services/issued-file-grants.reader.js +24 -0
- package/app/services/issued-file-grants.reader.js.map +1 -0
- package/app/services/layout-menu.service.d.ts +9 -0
- package/app/services/layout-menu.service.js +32 -0
- package/app/services/layout-menu.service.js.map +1 -0
- package/app/services/layout-store.service.d.ts +10 -0
- package/app/services/layout-store.service.js +35 -0
- package/app/services/layout-store.service.js.map +1 -0
- package/app/services/layout.reader.d.ts +23 -0
- package/app/services/layout.reader.js +113 -0
- package/app/services/layout.reader.js.map +1 -0
- package/app/services/layout.service.d.ts +96 -0
- package/app/services/layout.service.js +301 -0
- package/app/services/layout.service.js.map +1 -0
- package/app/services/link.service.d.ts +34 -0
- package/app/services/link.service.js +116 -0
- package/app/services/link.service.js.map +1 -0
- package/app/services/live-view.service.d.ts +32 -0
- package/app/services/live-view.service.js +104 -0
- package/app/services/live-view.service.js.map +1 -0
- package/app/services/menu-bar.service.d.ts +28 -0
- package/app/services/menu-bar.service.js +89 -0
- package/app/services/menu-bar.service.js.map +1 -0
- package/app/services/menu.service.d.ts +34 -0
- package/app/services/menu.service.js +96 -0
- package/app/services/menu.service.js.map +1 -0
- package/app/services/module-selection.service.d.ts +18 -0
- package/app/services/module-selection.service.js +31 -0
- package/app/services/module-selection.service.js.map +1 -0
- package/app/services/module-status.service.d.ts +22 -0
- package/app/services/module-status.service.js +39 -0
- package/app/services/module-status.service.js.map +1 -0
- package/app/services/module-switch.service.d.ts +16 -0
- package/app/services/module-switch.service.js +56 -0
- package/app/services/module-switch.service.js.map +1 -0
- package/app/services/notification.service.d.ts +38 -0
- package/app/services/notification.service.js +103 -0
- package/app/services/notification.service.js.map +1 -0
- package/app/services/preload-bridge.service.d.ts +108 -0
- package/app/services/preload-bridge.service.js +461 -0
- package/app/services/preload-bridge.service.js.map +1 -0
- package/app/services/program-status.service.d.ts +27 -0
- package/app/services/program-status.service.js +75 -0
- package/app/services/program-status.service.js.map +1 -0
- package/app/services/quit.service.d.ts +17 -0
- package/app/services/quit.service.js +37 -0
- package/app/services/quit.service.js.map +1 -0
- package/app/services/recent-commands.service.d.ts +24 -0
- package/app/services/recent-commands.service.js +63 -0
- package/app/services/recent-commands.service.js.map +1 -0
- package/app/services/search-palette.service.d.ts +20 -0
- package/app/services/search-palette.service.js +66 -0
- package/app/services/search-palette.service.js.map +1 -0
- package/app/services/search.service.d.ts +20 -0
- package/app/services/search.service.js +31 -0
- package/app/services/search.service.js.map +1 -0
- package/app/services/setting-check.service.d.ts +10 -0
- package/app/services/setting-check.service.js +32 -0
- package/app/services/setting-check.service.js.map +1 -0
- package/app/services/setting-options.service.d.ts +14 -0
- package/app/services/setting-options.service.js +38 -0
- package/app/services/setting-options.service.js.map +1 -0
- package/app/services/settings-page.service.d.ts +19 -0
- package/app/services/settings-page.service.js +35 -0
- package/app/services/settings-page.service.js.map +1 -0
- package/app/services/settings-rows.service.d.ts +17 -0
- package/app/services/settings-rows.service.js +29 -0
- package/app/services/settings-rows.service.js.map +1 -0
- package/app/services/settings.service.d.ts +38 -0
- package/app/services/settings.service.js +104 -0
- package/app/services/settings.service.js.map +1 -0
- package/app/services/shell-commands.service.d.ts +61 -0
- package/app/services/shell-commands.service.js +346 -0
- package/app/services/shell-commands.service.js.map +1 -0
- package/app/services/shell-search-sources.service.d.ts +26 -0
- package/app/services/shell-search-sources.service.js +102 -0
- package/app/services/shell-search-sources.service.js.map +1 -0
- package/app/services/spelling.service.d.ts +26 -0
- package/app/services/spelling.service.js +75 -0
- package/app/services/spelling.service.js.map +1 -0
- package/app/services/startup.service.d.ts +19 -0
- package/app/services/startup.service.js +62 -0
- package/app/services/startup.service.js.map +1 -0
- package/app/services/support.service.d.ts +18 -0
- package/app/services/support.service.js +79 -0
- package/app/services/support.service.js.map +1 -0
- package/app/services/tab-destinations.service.d.ts +10 -0
- package/app/services/tab-destinations.service.js +41 -0
- package/app/services/tab-destinations.service.js.map +1 -0
- package/app/services/tab-drag.service.d.ts +33 -0
- package/app/services/tab-drag.service.js +138 -0
- package/app/services/tab-drag.service.js.map +1 -0
- package/app/services/tab-focus.service.d.ts +24 -0
- package/app/services/tab-focus.service.js +93 -0
- package/app/services/tab-focus.service.js.map +1 -0
- package/app/services/tab-label.service.d.ts +37 -0
- package/app/services/tab-label.service.js +104 -0
- package/app/services/tab-label.service.js.map +1 -0
- package/app/services/tab-rename.service.d.ts +30 -0
- package/app/services/tab-rename.service.js +82 -0
- package/app/services/tab-rename.service.js.map +1 -0
- package/app/services/tab-row.service.d.ts +16 -0
- package/app/services/tab-row.service.js +50 -0
- package/app/services/tab-row.service.js.map +1 -0
- package/app/services/tab-strip.service.d.ts +11 -0
- package/app/services/tab-strip.service.js +44 -0
- package/app/services/tab-strip.service.js.map +1 -0
- package/app/services/time-formats.service.d.ts +20 -0
- package/app/services/time-formats.service.js +40 -0
- package/app/services/time-formats.service.js.map +1 -0
- package/app/services/toast.service.d.ts +31 -0
- package/app/services/toast.service.js +143 -0
- package/app/services/toast.service.js.map +1 -0
- package/app/services/toolbar-drag.service.d.ts +21 -0
- package/app/services/toolbar-drag.service.js +105 -0
- package/app/services/toolbar-drag.service.js.map +1 -0
- package/app/services/toolbar.service.d.ts +34 -0
- package/app/services/toolbar.service.js +89 -0
- package/app/services/toolbar.service.js.map +1 -0
- package/app/services/update.service.d.ts +25 -0
- package/app/services/update.service.js +47 -0
- package/app/services/update.service.js.map +1 -0
- package/app/services/view-dialog.service.d.ts +27 -0
- package/app/services/view-dialog.service.js +107 -0
- package/app/services/view-dialog.service.js.map +1 -0
- package/app/services/view-instances.service.d.ts +27 -0
- package/app/services/view-instances.service.js +129 -0
- package/app/services/view-instances.service.js.map +1 -0
- package/app/services/web-view.service.d.ts +47 -0
- package/app/services/web-view.service.js +222 -0
- package/app/services/web-view.service.js.map +1 -0
- package/app/services/window-error-handler.d.ts +18 -0
- package/app/services/window-error-handler.js +43 -0
- package/app/services/window-error-handler.js.map +1 -0
- package/app/services/window-part-host.service.d.ts +199 -0
- package/app/services/window-part-host.service.js +793 -0
- package/app/services/window-part-host.service.js.map +1 -0
- package/app/services/window-row-overlay.service.d.ts +15 -0
- package/app/services/window-row-overlay.service.js +79 -0
- package/app/services/window-row-overlay.service.js.map +1 -0
- package/package.json +49 -3
- package/resources.d.ts +1039 -0
- package/resources.js +1451 -0
- package/resources.js.map +1 -0
- package/testing/models/fake-window-part-context.d.ts +1402 -0
- package/testing/models/fake-window-part-context.js +109 -0
- package/testing/models/fake-window-part-context.js.map +1 -0
- package/testing/models/fake-window-secrets.d.ts +109 -0
- package/testing/models/fake-window-secrets.js +14 -0
- package/testing/models/fake-window-secrets.js.map +1 -0
- package/testing/models/fake-window-web-views.d.ts +66 -0
- package/testing/models/fake-window-web-views.js +12 -0
- package/testing/models/fake-window-web-views.js.map +1 -0
|
@@ -0,0 +1,793 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { DestroyRef, ErrorHandler, Injectable, Injector, computed, inject, signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { CommandList, CommandRun, ModuleState, ModuleStatusList, NotificationReference, ShellEvents, ShellMethods } from "@noldova/desktop.protocol";
|
|
11
|
+
import { ContentPadding } from "../enums/content-padding.js";
|
|
12
|
+
import { DockSide } from "../enums/dock-side.js";
|
|
13
|
+
import { DependencyNotFollowedException } from "../exceptions/dependency-not-followed.exception.js";
|
|
14
|
+
import { FileNotOpenedException } from "../exceptions/file-not-opened.exception.js";
|
|
15
|
+
import { FileNotShownException } from "../exceptions/file-not-shown.exception.js";
|
|
16
|
+
import { RuntimeDisconnectedException } from "../exceptions/runtime-disconnected.exception.js";
|
|
17
|
+
import { WindowPartActivationFailedException } from "../exceptions/window-part-activation-failed.exception.js";
|
|
18
|
+
import { WindowPartLoadFailedException } from "../exceptions/window-part-load-failed.exception.js";
|
|
19
|
+
import { WindowPartReconnectionFailedException } from "../exceptions/window-part-reconnection-failed.exception.js";
|
|
20
|
+
import { BuildTokens } from "../models/build-tokens.js";
|
|
21
|
+
import { CommandContribution } from "../models/command-contribution.js";
|
|
22
|
+
import { ContentPaddingRef } from "../models/content-padding-ref.js";
|
|
23
|
+
import { ContributionMatch } from "../models/contribution-match.js";
|
|
24
|
+
import { DocumentLook } from "../models/document-look.js";
|
|
25
|
+
import { DocumentTab } from "../models/layout/document-tab.js";
|
|
26
|
+
import { TabLabel } from "../models/layout/tab-label.js";
|
|
27
|
+
import { ViewRegistry } from "../models/layout/view-registry.js";
|
|
28
|
+
import { ViewTab } from "../models/layout/view-tab.js";
|
|
29
|
+
import { ViewType } from "../models/layout/view-type.js";
|
|
30
|
+
import { ShellDocuments } from "../models/shell-documents.js";
|
|
31
|
+
import { ModuleFailure } from "../models/module-failure.js";
|
|
32
|
+
import { PendingDocument } from "../models/pending-document.js";
|
|
33
|
+
import { PendingViewChange } from "../models/pending-view-change.js";
|
|
34
|
+
import { ProductName } from "../models/product-name.js";
|
|
35
|
+
import { SettingsPageEntry } from "../models/settings/settings-page-entry.js";
|
|
36
|
+
import { WindowPartActivation } from "../models/window-part-activation.js";
|
|
37
|
+
import { WindowPartContext } from "../models/window-part-context.js";
|
|
38
|
+
import { WindowPartTokens } from "../models/window-part-tokens.js";
|
|
39
|
+
import { Resources } from "../../resources.js";
|
|
40
|
+
import { AgentControlService } from "./agent-control.service.js";
|
|
41
|
+
import { BarItemsService } from "./bar-items.service.js";
|
|
42
|
+
import { ClosingService } from "./closing.service.js";
|
|
43
|
+
import { CommandService } from "./command.service.js";
|
|
44
|
+
import { PreloadBridgeService } from "./preload-bridge.service.js";
|
|
45
|
+
import { DockGrowthService } from "./dock-growth.service.js";
|
|
46
|
+
import { DocumentHistoryService } from "./document-history.service.js";
|
|
47
|
+
import { DocumentInstancesService } from "./document-instances.service.js";
|
|
48
|
+
import { DocumentOpenerService } from "./document-opener.service.js";
|
|
49
|
+
import { EditTargetService } from "./edit-target.service.js";
|
|
50
|
+
import { LayoutService } from "./layout.service.js";
|
|
51
|
+
import { LinkService } from "./link.service.js";
|
|
52
|
+
import { LiveViewService } from "./live-view.service.js";
|
|
53
|
+
import { MenuService } from "./menu.service.js";
|
|
54
|
+
import { ModuleStatusService } from "./module-status.service.js";
|
|
55
|
+
import { SettingCheckService } from "./setting-check.service.js";
|
|
56
|
+
import { SettingOptionsService } from "./setting-options.service.js";
|
|
57
|
+
import { SettingsService } from "./settings.service.js";
|
|
58
|
+
import { TabLabelService } from "./tab-label.service.js";
|
|
59
|
+
import { TabRenameService } from "./tab-rename.service.js";
|
|
60
|
+
import { ViewDialogService } from "./view-dialog.service.js";
|
|
61
|
+
import { ViewInstancesService } from "./view-instances.service.js";
|
|
62
|
+
import { WebViewService } from "./web-view.service.js";
|
|
63
|
+
import { WindowRowOverlayService } from "./window-row-overlay.service.js";
|
|
64
|
+
import * as i0 from "@angular/core";
|
|
65
|
+
export class WindowPartHostService {
|
|
66
|
+
bridge = inject(PreloadBridgeService);
|
|
67
|
+
links = inject(LinkService);
|
|
68
|
+
layout = inject(LayoutService);
|
|
69
|
+
liveViews = inject(LiveViewService);
|
|
70
|
+
opener = inject(DocumentOpenerService);
|
|
71
|
+
documentInstances = inject(DocumentInstancesService);
|
|
72
|
+
history = inject(DocumentHistoryService);
|
|
73
|
+
edits = inject(EditTargetService);
|
|
74
|
+
labels = inject(TabLabelService);
|
|
75
|
+
renames = inject(TabRenameService);
|
|
76
|
+
commands = inject(CommandService);
|
|
77
|
+
bars = inject(BarItemsService);
|
|
78
|
+
menus = inject(MenuService);
|
|
79
|
+
statuses = inject(ModuleStatusService);
|
|
80
|
+
settings = inject(SettingsService);
|
|
81
|
+
settingOptions = inject(SettingOptionsService);
|
|
82
|
+
settingChecks = inject(SettingCheckService);
|
|
83
|
+
viewDialogs = inject(ViewDialogService);
|
|
84
|
+
webViews = inject(WebViewService);
|
|
85
|
+
instances = inject(ViewInstancesService);
|
|
86
|
+
growth = inject(DockGrowthService);
|
|
87
|
+
overlays = inject(WindowRowOverlayService);
|
|
88
|
+
injector = inject(Injector);
|
|
89
|
+
errors = inject(ErrorHandler);
|
|
90
|
+
sources = inject(BuildTokens.sources);
|
|
91
|
+
activations = [];
|
|
92
|
+
posting = new Set();
|
|
93
|
+
startOpens = [];
|
|
94
|
+
pendingOpens = [];
|
|
95
|
+
pendingCloses = [];
|
|
96
|
+
pendingUpdates = [];
|
|
97
|
+
viewChanges = [];
|
|
98
|
+
documentLists = [];
|
|
99
|
+
activatingModules = new Set();
|
|
100
|
+
startedModules = new Set();
|
|
101
|
+
moduleOrder = [];
|
|
102
|
+
runtimeActive = new Set();
|
|
103
|
+
runtimeCommands = [];
|
|
104
|
+
runtimeStates = signal(null, /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "runtimeStates" }] : /* istanbul ignore next */ []));
|
|
106
|
+
failuresValue = signal([], /* @ts-ignore */
|
|
107
|
+
...(ngDevMode ? [{ debugName: "failuresValue" }] : /* istanbul ignore next */ []));
|
|
108
|
+
generationValue = signal(0, /* @ts-ignore */
|
|
109
|
+
...(ngDevMode ? [{ debugName: "generationValue" }] : /* istanbul ignore next */ []));
|
|
110
|
+
placeholderValue = signal(null, /* @ts-ignore */
|
|
111
|
+
...(ngDevMode ? [{ debugName: "placeholderValue" }] : /* istanbul ignore next */ []));
|
|
112
|
+
placeholderMatches = new WeakMap();
|
|
113
|
+
settingsPagesValue = signal([], /* @ts-ignore */
|
|
114
|
+
...(ngDevMode ? [{ debugName: "settingsPagesValue" }] : /* istanbul ignore next */ []));
|
|
115
|
+
searchSourcesValue = signal([], /* @ts-ignore */
|
|
116
|
+
...(ngDevMode ? [{ debugName: "searchSourcesValue" }] : /* istanbul ignore next */ []));
|
|
117
|
+
revisionsValue = signal(new Map(), /* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [{ debugName: "revisionsValue" }] : /* istanbul ignore next */ []));
|
|
119
|
+
changedModules = new Set();
|
|
120
|
+
connection = 0;
|
|
121
|
+
isReady = false;
|
|
122
|
+
isLayoutLoaded = false;
|
|
123
|
+
isActivating = true;
|
|
124
|
+
reloading = Promise.resolve();
|
|
125
|
+
failures = computed(() => this.failuresValue().filter(t => !t.isTurnedOff), /* @ts-ignore */
|
|
126
|
+
...(ngDevMode ? [{ debugName: "failures" }] : /* istanbul ignore next */ []));
|
|
127
|
+
generation = this.generationValue.asReadonly();
|
|
128
|
+
agentControl = computed(() => this.injector.get(AgentControlService).state(), /* @ts-ignore */
|
|
129
|
+
...(ngDevMode ? [{ debugName: "agentControl" }] : /* istanbul ignore next */ []));
|
|
130
|
+
placeholder = this.placeholderValue.asReadonly();
|
|
131
|
+
settingsPages = this.settingsPagesValue.asReadonly();
|
|
132
|
+
searchSources = this.searchSourcesValue.asReadonly();
|
|
133
|
+
constructor() {
|
|
134
|
+
this.labels.register(ShellDocuments.settings.name, ShellDocuments.settingsLabel);
|
|
135
|
+
this.labels.register(ShellDocuments.modules.name, ShellDocuments.modulesLabel);
|
|
136
|
+
const destroyRef = inject(DestroyRef);
|
|
137
|
+
destroyRef.onDestroy(this.bridge.onStartup(t => this.follow(t)));
|
|
138
|
+
destroyRef.onDestroy(this.bridge.onEvent((name, payload) => this.receiveCommands(name, payload)));
|
|
139
|
+
destroyRef.onDestroy(this.bridge.onNamedEvent(ShellEvents.modulesChanged.text, t => this.followModules(t)));
|
|
140
|
+
void this.bridge.readStartupAsync().then(t => this.follow(t));
|
|
141
|
+
}
|
|
142
|
+
get platform() {
|
|
143
|
+
return this.bridge.platform;
|
|
144
|
+
}
|
|
145
|
+
findContribution(tab) {
|
|
146
|
+
const shellDocument = ShellDocuments.find(tab);
|
|
147
|
+
if (!Object.isNull(shellDocument))
|
|
148
|
+
return WindowPartHostService.match(shellDocument, null);
|
|
149
|
+
for (const activation of this.activations) {
|
|
150
|
+
const contributions = tab instanceof DocumentTab ? activation.context.documents : activation.context.views;
|
|
151
|
+
const contribution = contributions.find(t => t.name === tab.name);
|
|
152
|
+
if (!Object.isUndefined(contribution))
|
|
153
|
+
return WindowPartHostService.match(contribution, activation.context, activation.part.padding);
|
|
154
|
+
}
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
findFailure(tab) {
|
|
158
|
+
return this.findFailures().find(t => (tab instanceof ViewTab ? t.viewNames : t.documentNames).includes(tab.name)) ?? null;
|
|
159
|
+
}
|
|
160
|
+
revisionOf(tab) {
|
|
161
|
+
const revisions = this.revisionsValue();
|
|
162
|
+
const owner = this.findContribution(tab)?.context?.moduleId ?? this.findFailure(tab)?.moduleId;
|
|
163
|
+
return Object.isUndefined(owner) ? 0 : revisions.get(owner) ?? 0;
|
|
164
|
+
}
|
|
165
|
+
requestAsync(method, payload) {
|
|
166
|
+
return this.bridge.requestAsync(method, payload);
|
|
167
|
+
}
|
|
168
|
+
onEvent(name, listener) {
|
|
169
|
+
return this.bridge.onNamedEvent(name, listener);
|
|
170
|
+
}
|
|
171
|
+
readSetting(name) {
|
|
172
|
+
return this.settings.read(name);
|
|
173
|
+
}
|
|
174
|
+
readSettingAsync(name, scope) {
|
|
175
|
+
return this.settings.readAsync(name, scope);
|
|
176
|
+
}
|
|
177
|
+
writeSettingAsync(name, value, scope) {
|
|
178
|
+
return this.settings.setAsync(name, value, scope);
|
|
179
|
+
}
|
|
180
|
+
resetSettingAsync(name, scope) {
|
|
181
|
+
return this.settings.resetAsync(name, scope);
|
|
182
|
+
}
|
|
183
|
+
onSettingChanged(listener) {
|
|
184
|
+
return this.settings.onChanged(listener);
|
|
185
|
+
}
|
|
186
|
+
openDocument(moduleId, name, instance, heading, isPreview, after = null) {
|
|
187
|
+
this.pendingCloses = this.pendingCloses.filter(([owner, contribution, key]) => owner !== moduleId || contribution !== name || key !== instance);
|
|
188
|
+
this.pendingUpdates = this.pendingUpdates.filter(([owner, contribution, key]) => owner !== moduleId || contribution !== name || key !== instance);
|
|
189
|
+
if (this.activatingModules.has(moduleId) && this.documentInstances.isUnheard(name, instance))
|
|
190
|
+
return;
|
|
191
|
+
this.documentInstances.reopen(name, instance);
|
|
192
|
+
if (this.isActivating)
|
|
193
|
+
this.pendingOpens.push(new PendingDocument(moduleId, name, instance, heading, isPreview, after, this.activatingModules.has(moduleId)));
|
|
194
|
+
else
|
|
195
|
+
this.opener.open(moduleId, name, instance, heading, isPreview, after);
|
|
196
|
+
}
|
|
197
|
+
listSaves() {
|
|
198
|
+
return new Map(this.activations.filter(t => t.context.saves.length > 0).map(t => [t.context.moduleId, [...t.context.saves]]));
|
|
199
|
+
}
|
|
200
|
+
log(moduleId, message) {
|
|
201
|
+
this.bridge.logModule(moduleId, message);
|
|
202
|
+
}
|
|
203
|
+
openLinkAsync(url, options) {
|
|
204
|
+
return this.links.openAsync(url, options);
|
|
205
|
+
}
|
|
206
|
+
showLinkMenu(url, event) {
|
|
207
|
+
this.links.showMenu(url, event);
|
|
208
|
+
}
|
|
209
|
+
registerInAppBrowser(browser, log) {
|
|
210
|
+
return this.links.register(browser, log);
|
|
211
|
+
}
|
|
212
|
+
async showInFolderAsync(path) {
|
|
213
|
+
const refusal = await this.bridge.showInFolderAsync(path);
|
|
214
|
+
if (!Object.isNull(refusal))
|
|
215
|
+
throw new FileNotShownException(ProductName.current, refusal);
|
|
216
|
+
}
|
|
217
|
+
async openFileAsync(path) {
|
|
218
|
+
const refusal = await this.bridge.openFileAsync(path);
|
|
219
|
+
if (!Object.isNull(refusal))
|
|
220
|
+
throw new FileNotOpenedException(ProductName.current, refusal);
|
|
221
|
+
}
|
|
222
|
+
openWebViewAsync(context, moduleId, pane, tab, profileKey) {
|
|
223
|
+
return this.webViews.openAsync(moduleId, pane, tab, profileKey, this.createPartInjector(context));
|
|
224
|
+
}
|
|
225
|
+
chooseFolderAsync() {
|
|
226
|
+
return this.bridge.chooseFolderAsync();
|
|
227
|
+
}
|
|
228
|
+
chooseFilePathAsync(options) {
|
|
229
|
+
return this.bridge.chooseFilePathAsync(options);
|
|
230
|
+
}
|
|
231
|
+
saveFileAsync(name, bytes) {
|
|
232
|
+
return this.bridge.saveFileAsync(name, bytes);
|
|
233
|
+
}
|
|
234
|
+
chooseFilesAsync(moduleId, options) {
|
|
235
|
+
return this.bridge.chooseFilesAsync(moduleId, options);
|
|
236
|
+
}
|
|
237
|
+
grantFilesAsync(moduleId, files, options) {
|
|
238
|
+
return this.bridge.grantFilesAsync(moduleId, files, options);
|
|
239
|
+
}
|
|
240
|
+
discardFileGrants(grants) {
|
|
241
|
+
this.bridge.discardFileGrantsAsync(grants).catch((error) => this.errors.handleError(error));
|
|
242
|
+
}
|
|
243
|
+
keepDocument(moduleId, name, instance) {
|
|
244
|
+
this.startOpens = this.startOpens.map(t => t.kept(moduleId, name, instance));
|
|
245
|
+
this.pendingOpens = this.pendingOpens.map(t => t.kept(moduleId, name, instance));
|
|
246
|
+
if (this.isLayoutLoaded)
|
|
247
|
+
this.opener.keep(moduleId, name, instance);
|
|
248
|
+
}
|
|
249
|
+
closeDocument(moduleId, name, instance) {
|
|
250
|
+
this.endDocument(moduleId, name, instance, false);
|
|
251
|
+
}
|
|
252
|
+
forgetDocument(moduleId, name, instance) {
|
|
253
|
+
this.endDocument(moduleId, name, instance, true);
|
|
254
|
+
}
|
|
255
|
+
onDocumentClosed(name, listener) {
|
|
256
|
+
return this.documentInstances.onClosed(name, listener);
|
|
257
|
+
}
|
|
258
|
+
onTabRenamed(name, listener) {
|
|
259
|
+
return this.renames.onRenamed(name, listener);
|
|
260
|
+
}
|
|
261
|
+
listOpenDocumentsAsync(moduleId, name) {
|
|
262
|
+
if (!this.isActivating)
|
|
263
|
+
return Promise.resolve(this.documentInstances.instancesOf(name));
|
|
264
|
+
return new Promise(resolve => this.documentLists.push([moduleId, name, resolve]));
|
|
265
|
+
}
|
|
266
|
+
openDocumentLook(moduleId, name, instance, change) {
|
|
267
|
+
const tab = new DocumentTab(name, instance);
|
|
268
|
+
const isOpen = this.documentInstances.instancesOf(name).includes(instance) || [...this.startOpens, ...this.pendingOpens].some(t => t.isFor(moduleId, name, instance));
|
|
269
|
+
const look = isOpen ? this.labels.lookOf(tab) : DocumentLook.none;
|
|
270
|
+
this.labels.setLook(tab, look.updated(change));
|
|
271
|
+
}
|
|
272
|
+
updateDocumentLook(name, instance, change) {
|
|
273
|
+
const tab = new DocumentTab(name, instance);
|
|
274
|
+
this.labels.setLook(tab, this.labels.lookOf(tab).updated(change));
|
|
275
|
+
}
|
|
276
|
+
updateDocument(moduleId, name, instance, title, breadcrumb, breadcrumbIcon = null) {
|
|
277
|
+
this.startOpens = this.startOpens.map(t => t.updated(moduleId, name, instance, title, breadcrumb, breadcrumbIcon));
|
|
278
|
+
this.pendingOpens = this.pendingOpens.map(t => t.updated(moduleId, name, instance, title, breadcrumb, breadcrumbIcon));
|
|
279
|
+
if (this.isLayoutLoaded)
|
|
280
|
+
this.opener.update(moduleId, name, instance, title, breadcrumb, breadcrumbIcon);
|
|
281
|
+
else
|
|
282
|
+
this.pendingUpdates.push([moduleId, name, instance, title, breadcrumb, breadcrumbIcon]);
|
|
283
|
+
}
|
|
284
|
+
openView(moduleId, name, instance, heading, icon, tabGroup) {
|
|
285
|
+
const isEarly = this.activatingModules.has(moduleId);
|
|
286
|
+
this.changeView(new PendingViewChange(moduleId, isEarly, new ViewTab(name, instance).key, () => isEarly
|
|
287
|
+
? this.instances.restore(name, instance, heading, icon, tabGroup)
|
|
288
|
+
: this.instances.openInstance(name, instance, heading, icon, tabGroup)));
|
|
289
|
+
}
|
|
290
|
+
updateView(moduleId, name, instance, title, icon, breadcrumb, breadcrumbIcon = null) {
|
|
291
|
+
this.changeView(new PendingViewChange(moduleId, this.activatingModules.has(moduleId), null, () => this.instances.update(name, instance, title, icon, breadcrumb, breadcrumbIcon)));
|
|
292
|
+
}
|
|
293
|
+
closeView(moduleId, name, instance) {
|
|
294
|
+
this.changeView(new PendingViewChange(moduleId, this.activatingModules.has(moduleId), null, () => this.instances.close(name, instance)));
|
|
295
|
+
}
|
|
296
|
+
showView(moduleId, name) {
|
|
297
|
+
this.changeView(new PendingViewChange(moduleId, this.activatingModules.has(moduleId), null, () => this.instances.show(new ViewTab(name))));
|
|
298
|
+
}
|
|
299
|
+
hideViewDock(moduleId, name, instance) {
|
|
300
|
+
this.changeView(new PendingViewChange(moduleId, this.activatingModules.has(moduleId), null, () => this.instances.hideDock(new ViewTab(name, instance ?? undefined))));
|
|
301
|
+
}
|
|
302
|
+
growViewDock(name, instance, minimum) {
|
|
303
|
+
return this.growth.grow(new ViewTab(name, instance ?? undefined), minimum);
|
|
304
|
+
}
|
|
305
|
+
onViewClosed(name, listener) {
|
|
306
|
+
return this.instances.onClosed(name, listener);
|
|
307
|
+
}
|
|
308
|
+
async showInDialogAsync(name, instance, title) {
|
|
309
|
+
const tab = this.layout.registry().hasDocument(name) ? new DocumentTab(name, instance ?? undefined) : new ViewTab(name, instance ?? undefined);
|
|
310
|
+
await this.viewDialogs.showAsync(tab, title);
|
|
311
|
+
}
|
|
312
|
+
openBelowWindowRow(context, component) {
|
|
313
|
+
return this.overlays.open(component, this.createPartInjector(context), Resources.windowPalettePaneClass);
|
|
314
|
+
}
|
|
315
|
+
declaresDynamicMenuGroup(moduleId, group) {
|
|
316
|
+
return this.menus.declaresDynamicGroup(moduleId, group);
|
|
317
|
+
}
|
|
318
|
+
provideMenuGroup(group, provider) {
|
|
319
|
+
return this.menus.provideGroup(group, provider);
|
|
320
|
+
}
|
|
321
|
+
declaresDynamicSetting(setting) {
|
|
322
|
+
return this.settingOptions.isDynamic(setting);
|
|
323
|
+
}
|
|
324
|
+
provideSettingOptions(setting, provider) {
|
|
325
|
+
return this.settingOptions.provide(setting, provider);
|
|
326
|
+
}
|
|
327
|
+
refreshSettingOptions(setting) {
|
|
328
|
+
this.settingOptions.refresh(setting);
|
|
329
|
+
}
|
|
330
|
+
declaresCheckedSetting(setting) {
|
|
331
|
+
return this.settingChecks.isChecked(setting);
|
|
332
|
+
}
|
|
333
|
+
provideSettingCheck(setting, check) {
|
|
334
|
+
return this.settingChecks.provide(setting, check);
|
|
335
|
+
}
|
|
336
|
+
findPlaceholderName() {
|
|
337
|
+
return this.activations.flatMap(t => t.context.placeholders)[0]?.name ?? null;
|
|
338
|
+
}
|
|
339
|
+
isCommandRegistered(name) {
|
|
340
|
+
return this.runtimeCommands.some(t => t.name === name) || this.activations.some(t => t.context.commands.some(u => u.name === name));
|
|
341
|
+
}
|
|
342
|
+
runCommandAsync(name, commandArguments) {
|
|
343
|
+
return this.commands.runAsync(name, commandArguments);
|
|
344
|
+
}
|
|
345
|
+
findWindowCommand(event) {
|
|
346
|
+
return this.commands.findWindowCommand(event);
|
|
347
|
+
}
|
|
348
|
+
keyOf(name) {
|
|
349
|
+
return computed(() => this.commands.keyOf(name), { equal: (first, second) => first?.label === second?.label && first?.ariaKeyShortcuts === second?.ariaKeyShortcuts });
|
|
350
|
+
}
|
|
351
|
+
async postNotificationAsync(post) {
|
|
352
|
+
const request = this.bridge.requestAsync(ShellMethods.postNotification.text, post.toJson());
|
|
353
|
+
this.posting.add(request);
|
|
354
|
+
try {
|
|
355
|
+
return NotificationReference.fromJson(await request).id;
|
|
356
|
+
}
|
|
357
|
+
finally {
|
|
358
|
+
this.posting.delete(request);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
dismissNotification(id) {
|
|
362
|
+
this.bridge.requestAsync(ShellMethods.dismissNotification.text, new NotificationReference(id).toJson()).catch((error) => this.errors.handleError(error));
|
|
363
|
+
}
|
|
364
|
+
setViewBadge(view, badge) {
|
|
365
|
+
this.labels.setBadge(view, badge);
|
|
366
|
+
}
|
|
367
|
+
setTabWorking(tabKey, isWorking) {
|
|
368
|
+
this.labels.setWorking(tabKey, isWorking);
|
|
369
|
+
}
|
|
370
|
+
setTabWaiting(tabKey, isWaiting) {
|
|
371
|
+
this.labels.setWaiting(tabKey, isWaiting);
|
|
372
|
+
}
|
|
373
|
+
registerSelectionSource(element, source) {
|
|
374
|
+
return this.edits.registerSource(element, source);
|
|
375
|
+
}
|
|
376
|
+
refresh() {
|
|
377
|
+
this.commands.setCommands([Resources.shellOwner, ...this.moduleOrder].flatMap(t => [
|
|
378
|
+
...this.runtimeCommands.filter(u => u.name.startsWith(`${t}${Resources.contributionSeparator}`)),
|
|
379
|
+
...this.activations.find(u => u.context.moduleId === t)?.context.commands ?? []
|
|
380
|
+
]));
|
|
381
|
+
const ordered = this.moduleOrder.flatMap(t => this.activations.filter(u => u.context.moduleId === t));
|
|
382
|
+
this.bars.set(ordered.flatMap(t => t.context.statusBarItems), ordered.flatMap(t => t.context.topBarActions));
|
|
383
|
+
this.placeholderValue.set(ordered.flatMap(t => t.context.placeholders.map(u => this.matchPlaceholder(u, t)))[0] ?? null);
|
|
384
|
+
this.searchSourcesValue.set(ordered.flatMap(t => t.context.searchSources));
|
|
385
|
+
this.setSettingsPages(this.moduleOrder.flatMap(t => this.settingsPagesOf(t)));
|
|
386
|
+
const failures = this.findFailures();
|
|
387
|
+
const notStarted = new Set(failures.map(t => t.moduleId));
|
|
388
|
+
this.menus.setActiveModules(this.moduleOrder.filter(t => !notStarted.has(t)));
|
|
389
|
+
const views = this.activations.flatMap(t => t.context.views);
|
|
390
|
+
for (const view of views)
|
|
391
|
+
this.labels.register(view.name, new TabLabel(view.title, view.icon));
|
|
392
|
+
const failed = failures.flatMap(t => t.viewNames.map(u => ({ name: u, failure: t })));
|
|
393
|
+
for (const view of failed)
|
|
394
|
+
this.labels.register(view.name, new TabLabel(view.failure.displayName, view.failure.glyph));
|
|
395
|
+
this.layout.setRegistry(new ViewRegistry([...views.map(t => new ViewType(t.name, t.defaultSide, t.isShownByDefault, t.hasInstances, t.tabRowPlace, t.isRenamable)), ...failed.map(t => new ViewType(t.name, DockSide.Left, false))], [...ShellDocuments.all.map(t => t.name), ...this.activations.flatMap(t => t.context.documents.map(u => u.name))], new Map(this.activations.flatMap(t => t.context.documents.flatMap((u) => Object.isNull(u.tabRowPlace) ? [] : [[u.name, u.tabRowPlace]]))), new Set(this.activations.flatMap(t => t.context.documents.filter(u => u.isRenamable).map(u => u.name)))));
|
|
396
|
+
}
|
|
397
|
+
createPartInjector(context) {
|
|
398
|
+
return Injector.create({
|
|
399
|
+
providers: [
|
|
400
|
+
{ provide: WindowPartTokens.context, useValue: context },
|
|
401
|
+
{ provide: WindowPartTokens.contentPadding, useValue: new ContentPaddingRef() },
|
|
402
|
+
{ provide: WindowPartTokens.shown, useValue: signal(true).asReadonly() }
|
|
403
|
+
],
|
|
404
|
+
parent: this.injector
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
follow(state) {
|
|
408
|
+
if (!state.isReady)
|
|
409
|
+
this.runtimeStates.set(null);
|
|
410
|
+
if (state.isReady && !this.isReady) {
|
|
411
|
+
const connection = ++this.connection;
|
|
412
|
+
this.reloading = this.reloading.then(() => this.reloadAsync(connection)).catch((error) => this.errors.handleError(error));
|
|
413
|
+
}
|
|
414
|
+
this.isReady = state.isReady;
|
|
415
|
+
}
|
|
416
|
+
followModules(payload) {
|
|
417
|
+
const connection = this.connection;
|
|
418
|
+
this.reloading = this.reloading.then(() => this.reloadAsync(connection, ModuleStatusList.fromJson(payload))).catch((error) => this.errors.handleError(error));
|
|
419
|
+
}
|
|
420
|
+
isConnected(connection) {
|
|
421
|
+
return this.isReady && this.connection === connection;
|
|
422
|
+
}
|
|
423
|
+
async reloadAsync(connection, report = null) {
|
|
424
|
+
if (!this.isConnected(connection))
|
|
425
|
+
return;
|
|
426
|
+
this.isActivating = true;
|
|
427
|
+
try {
|
|
428
|
+
if (!await (Object.isNull(report) ? this.activateReportedAsync(connection) : this.switchModulesAsync(report, connection)))
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
catch (error) {
|
|
432
|
+
if (!this.isConnected(connection) || RuntimeDisconnectedException.isIn(error))
|
|
433
|
+
return;
|
|
434
|
+
this.errors.handleError(error);
|
|
435
|
+
await this.deactivateAsync(this.activations.slice());
|
|
436
|
+
this.setFailures([]);
|
|
437
|
+
this.moduleOrder = [];
|
|
438
|
+
this.runtimeCommands = [];
|
|
439
|
+
}
|
|
440
|
+
const isReconnect = this.isLayoutLoaded;
|
|
441
|
+
this.startOpens = this.pendingOpens.splice(0);
|
|
442
|
+
const restore = (pending) => this.opener.restore(pending.moduleId, pending.name, pending.instance, pending.heading, pending.isPreview);
|
|
443
|
+
const restoreEarly = (pending) => pending.isEarly ? restore(pending) : this.openPending(pending);
|
|
444
|
+
let openAtStart = !isReconnect ? t => this.openPending(t) : Object.isNull(report) ? restore : restoreEarly;
|
|
445
|
+
try {
|
|
446
|
+
await Promise.allSettled(this.posting);
|
|
447
|
+
this.refresh();
|
|
448
|
+
this.revise();
|
|
449
|
+
if (Object.isNull(report))
|
|
450
|
+
this.generationValue.update(t => t + 1);
|
|
451
|
+
if (!isReconnect && await this.loadLayoutAsync())
|
|
452
|
+
openAtStart = t => this.opener.restoreSaved(t.moduleId, t.name, t.instance, t.heading, t.isPreview);
|
|
453
|
+
}
|
|
454
|
+
catch (error) {
|
|
455
|
+
if (this.isLayoutLoaded || !RuntimeDisconnectedException.isIn(error))
|
|
456
|
+
this.replayPending(openAtStart);
|
|
457
|
+
else
|
|
458
|
+
this.pendingOpens.unshift(...this.startOpens.splice(0));
|
|
459
|
+
throw error;
|
|
460
|
+
}
|
|
461
|
+
this.replayPending(openAtStart);
|
|
462
|
+
}
|
|
463
|
+
async activateReportedAsync(connection) {
|
|
464
|
+
await this.settings.loadAsync();
|
|
465
|
+
const report = ModuleStatusList.fromJson(await this.bridge.requestAsync(ShellMethods.modules.text, null));
|
|
466
|
+
this.statuses.report(report.modules);
|
|
467
|
+
const commands = CommandList.fromJson(await this.bridge.requestAsync(ShellMethods.commands.text, null));
|
|
468
|
+
const kept = await this.reconnectPartsAsync(report.modules, connection);
|
|
469
|
+
if (!this.isConnected(connection))
|
|
470
|
+
return false;
|
|
471
|
+
this.moduleOrder = report.modules.map(t => t.id);
|
|
472
|
+
this.takeRuntimeCommands(commands);
|
|
473
|
+
return await this.applyReportAsync(report, kept, connection);
|
|
474
|
+
}
|
|
475
|
+
async switchModulesAsync(report, connection) {
|
|
476
|
+
const held = this.statuses.modules();
|
|
477
|
+
const kept = new Map(report.modules
|
|
478
|
+
.filter(t => t.state === ModuleState.Active && this.runtimeActive.has(t.id))
|
|
479
|
+
.flatMap(t => held.filter(u => u.id === t.id))
|
|
480
|
+
.map(t => [t.id, t]));
|
|
481
|
+
this.statuses.report(report.modules);
|
|
482
|
+
const commands = CommandList.fromJson(await this.bridge.requestAsync(ShellMethods.commands.text, null));
|
|
483
|
+
if (!this.isConnected(connection))
|
|
484
|
+
return false;
|
|
485
|
+
this.takeRuntimeCommands(commands);
|
|
486
|
+
await this.injector.get(ClosingService).saveModulesAsync(new Set(this.activations.map(t => t.context.moduleId).filter(t => !kept.has(t))), t => Resources.formatPartSaveFailedBeforeStop(t));
|
|
487
|
+
return await this.applyReportAsync(report, kept, connection);
|
|
488
|
+
}
|
|
489
|
+
async applyReportAsync(report, kept, connection) {
|
|
490
|
+
this.runtimeActive = new Set(report.modules.filter(t => t.state === ModuleState.Active).map(t => t.id));
|
|
491
|
+
await this.deactivateAsync(this.activations.filter(t => !kept.has(t.context.moduleId)));
|
|
492
|
+
this.announceWithdrawn(t => !this.runtimeActive.has(t));
|
|
493
|
+
const active = new Set();
|
|
494
|
+
const statuses = [];
|
|
495
|
+
for (const status of report.modules) {
|
|
496
|
+
if (!this.isConnected(connection))
|
|
497
|
+
return false;
|
|
498
|
+
const keptStatus = kept.get(status.id);
|
|
499
|
+
const result = status.state === ModuleState.Active && Object.isUndefined(keptStatus) ? await this.activateAsync(status, active) : keptStatus ?? status;
|
|
500
|
+
if (result.state === ModuleState.Active)
|
|
501
|
+
active.add(result.id);
|
|
502
|
+
statuses.push(result);
|
|
503
|
+
}
|
|
504
|
+
this.statuses.set(statuses);
|
|
505
|
+
this.announceDependencies(kept, active);
|
|
506
|
+
const turnedOff = new Set();
|
|
507
|
+
for (const status of statuses)
|
|
508
|
+
if (status.state === ModuleState.Off || status.state === ModuleState.Unavailable || (status.state === ModuleState.Blocked && turnedOff.has(String(status.blockedBy))))
|
|
509
|
+
turnedOff.add(status.id);
|
|
510
|
+
this.setFailures(statuses.filter(t => t.state !== ModuleState.Active).map(t => this.describeFailure(t, turnedOff.has(t.id))));
|
|
511
|
+
return this.isConnected(connection);
|
|
512
|
+
}
|
|
513
|
+
async reconnectPartsAsync(modules, connection) {
|
|
514
|
+
const kept = new Map();
|
|
515
|
+
for (const status of modules) {
|
|
516
|
+
if (!this.isConnected(connection))
|
|
517
|
+
break;
|
|
518
|
+
const activation = this.activations.find(t => t.context.moduleId === status.id);
|
|
519
|
+
if (Object.isUndefined(activation) || status.state !== ModuleState.Active)
|
|
520
|
+
continue;
|
|
521
|
+
if (activation.source.dependencies.every(t => kept.has(t) || !this.sources.some(u => u.moduleId === t)) && await this.reconnectPartAsync(activation))
|
|
522
|
+
kept.set(status.id, status);
|
|
523
|
+
}
|
|
524
|
+
return kept;
|
|
525
|
+
}
|
|
526
|
+
announceDependencies(kept, active) {
|
|
527
|
+
for (const activation of this.activations.filter(t => kept.has(t.context.moduleId)))
|
|
528
|
+
for (const dependency of activation.source.optionalDependencies.filter(t => activation.context.isDependencyActive(t) !== active.has(t)))
|
|
529
|
+
activation.context.announceDependency(dependency, active.has(dependency), this.dependencyListenerFailure(activation.context.moduleId));
|
|
530
|
+
}
|
|
531
|
+
dependencyListenerFailure(moduleId) {
|
|
532
|
+
return error => this.errors.handleError(new DependencyNotFollowedException(moduleId, error));
|
|
533
|
+
}
|
|
534
|
+
async reconnectPartAsync(activation) {
|
|
535
|
+
try {
|
|
536
|
+
return await activation.part.reconnectAsync();
|
|
537
|
+
}
|
|
538
|
+
catch (error) {
|
|
539
|
+
if (RuntimeDisconnectedException.isIn(error))
|
|
540
|
+
throw error;
|
|
541
|
+
this.errors.handleError(new WindowPartReconnectionFailedException(activation.context.moduleId, error));
|
|
542
|
+
return false;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
settingsPagesOf(moduleId) {
|
|
546
|
+
const context = this.activations.find(t => t.context.moduleId === moduleId)?.context ?? null;
|
|
547
|
+
const failure = Object.isNull(context) ? this.failuresValue().find(t => t.moduleId === moduleId) ?? null : null;
|
|
548
|
+
if (failure?.isTurnedOff === true)
|
|
549
|
+
return [];
|
|
550
|
+
const isSettled = !Object.isNull(context) && !this.activatingModules.has(moduleId);
|
|
551
|
+
return (this.sources.find(t => t.moduleId === moduleId)?.settingsPages ?? [])
|
|
552
|
+
.map(t => new SettingsPageEntry(t.name, t.title, moduleId, context?.settingsPages.find(u => u.name === t.name) ?? null, context, failure))
|
|
553
|
+
.filter(t => !isSettled || !Object.isNull(t.page));
|
|
554
|
+
}
|
|
555
|
+
setSettingsPages(pages) {
|
|
556
|
+
const previous = this.settingsPagesValue();
|
|
557
|
+
const kept = pages.map(t => previous.find(u => u.isSame(t)) ?? t);
|
|
558
|
+
if (kept.length !== previous.length || kept.some((t, index) => t !== previous[index]))
|
|
559
|
+
this.settingsPagesValue.set(kept);
|
|
560
|
+
}
|
|
561
|
+
findFailures() {
|
|
562
|
+
return this.failuresValue().filter(t => !this.activations.some(u => u.context.moduleId === t.moduleId));
|
|
563
|
+
}
|
|
564
|
+
setFailures(failures) {
|
|
565
|
+
const previous = this.failuresValue();
|
|
566
|
+
for (const id of new Set([...previous, ...failures].map(t => t.moduleId))) {
|
|
567
|
+
const before = previous.find(t => t.moduleId === id);
|
|
568
|
+
const after = failures.find(t => t.moduleId === id);
|
|
569
|
+
if (before?.state !== after?.state || before?.cause !== after?.cause)
|
|
570
|
+
this.changedModules.add(id);
|
|
571
|
+
}
|
|
572
|
+
this.failuresValue.set(failures);
|
|
573
|
+
}
|
|
574
|
+
revise() {
|
|
575
|
+
const changed = [...this.changedModules];
|
|
576
|
+
this.changedModules.clear();
|
|
577
|
+
if (changed.length > 0)
|
|
578
|
+
this.revisionsValue.update(t => new Map([...t, ...changed.map(u => [u, (t.get(u) ?? 0) + 1])]));
|
|
579
|
+
}
|
|
580
|
+
async loadLayoutAsync() {
|
|
581
|
+
try {
|
|
582
|
+
const isRestored = await this.layout.loadAsync();
|
|
583
|
+
this.isLayoutLoaded = true;
|
|
584
|
+
return isRestored;
|
|
585
|
+
}
|
|
586
|
+
catch (error) {
|
|
587
|
+
this.isLayoutLoaded = !RuntimeDisconnectedException.isIn(error);
|
|
588
|
+
throw error;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
replayPending(openAtStart) {
|
|
592
|
+
this.isActivating = false;
|
|
593
|
+
for (const pending of this.startOpens.splice(0))
|
|
594
|
+
this.replay(pending, openAtStart);
|
|
595
|
+
for (const pending of this.pendingOpens.splice(0))
|
|
596
|
+
this.replay(pending, t => this.openPending(t));
|
|
597
|
+
this.layout.reopenEarlyDocuments();
|
|
598
|
+
for (const [moduleId, name, instance, title, breadcrumb, breadcrumbIcon] of this.pendingUpdates.splice(0))
|
|
599
|
+
this.later(() => this.opener.update(moduleId, name, instance, title, breadcrumb, breadcrumbIcon));
|
|
600
|
+
for (const [moduleId, name, instance, isForgotten] of this.pendingCloses.splice(0))
|
|
601
|
+
this.later(() => this.closeNow(moduleId, name, instance, isForgotten));
|
|
602
|
+
const started = new Set(this.activations.filter(t => this.startedModules.has(t.context.moduleId)).flatMap(t => t.context.documents).map(t => t.name));
|
|
603
|
+
this.replayViews();
|
|
604
|
+
this.documentInstances.reconcile(started);
|
|
605
|
+
for (const [, name, resolve] of this.documentLists.splice(0))
|
|
606
|
+
resolve(this.documentInstances.instancesOf(name));
|
|
607
|
+
}
|
|
608
|
+
endDocument(moduleId, name, instance, isForgotten) {
|
|
609
|
+
this.startOpens = this.startOpens.filter(t => !t.isFor(moduleId, name, instance));
|
|
610
|
+
this.pendingOpens = this.pendingOpens.filter(t => !t.isFor(moduleId, name, instance));
|
|
611
|
+
this.pendingUpdates = this.pendingUpdates.filter(([owner, contribution, key]) => owner !== moduleId || contribution !== name || key !== instance);
|
|
612
|
+
if (this.isLayoutLoaded)
|
|
613
|
+
this.closeNow(moduleId, name, instance, isForgotten);
|
|
614
|
+
else
|
|
615
|
+
this.pendingCloses.push([moduleId, name, instance, isForgotten]);
|
|
616
|
+
}
|
|
617
|
+
closeNow(moduleId, name, instance, isForgotten) {
|
|
618
|
+
try {
|
|
619
|
+
this.opener.close(moduleId, name, instance);
|
|
620
|
+
this.documentInstances.hush(name, instance);
|
|
621
|
+
}
|
|
622
|
+
finally {
|
|
623
|
+
if (isForgotten)
|
|
624
|
+
this.history.forget(new DocumentTab(name, instance));
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
dropPending(moduleId) {
|
|
628
|
+
this.pendingOpens = this.pendingOpens.filter(t => t.moduleId !== moduleId);
|
|
629
|
+
this.pendingUpdates = this.pendingUpdates.filter(([owner]) => owner !== moduleId);
|
|
630
|
+
this.pendingCloses = this.pendingCloses.filter(([owner]) => owner !== moduleId);
|
|
631
|
+
this.viewChanges = this.viewChanges.filter(t => t.moduleId !== moduleId);
|
|
632
|
+
for (const [, , resolve] of this.documentLists.filter(([owner]) => owner === moduleId))
|
|
633
|
+
resolve(null);
|
|
634
|
+
this.documentLists = this.documentLists.filter(([owner]) => owner !== moduleId);
|
|
635
|
+
}
|
|
636
|
+
changeView(change) {
|
|
637
|
+
if (this.isActivating)
|
|
638
|
+
this.viewChanges.push(change);
|
|
639
|
+
else
|
|
640
|
+
change.apply();
|
|
641
|
+
}
|
|
642
|
+
replayViews() {
|
|
643
|
+
const active = new Set(this.activations.map(t => t.context.moduleId));
|
|
644
|
+
const changes = this.viewChanges.splice(0);
|
|
645
|
+
const started = [...this.startedModules].filter(t => active.has(t));
|
|
646
|
+
this.startedModules.clear();
|
|
647
|
+
const early = changes.filter(t => t.isEarly);
|
|
648
|
+
for (const change of early)
|
|
649
|
+
change.apply();
|
|
650
|
+
for (const moduleId of started) {
|
|
651
|
+
const views = this.activations.filter(t => t.context.moduleId === moduleId).flatMap(t => t.context.views).filter(t => t.hasInstances).map(t => t.name);
|
|
652
|
+
const kept = early.filter(t => t.moduleId === moduleId).flatMap(t => Object.isNull(t.opened) ? [] : [t.opened]);
|
|
653
|
+
this.instances.reconcile(new Set(views), new Set(kept));
|
|
654
|
+
}
|
|
655
|
+
for (const change of changes.filter(t => !t.isEarly))
|
|
656
|
+
change.apply();
|
|
657
|
+
}
|
|
658
|
+
later(action) {
|
|
659
|
+
try {
|
|
660
|
+
action();
|
|
661
|
+
}
|
|
662
|
+
catch (error) {
|
|
663
|
+
this.errors.handleError(error);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
replay(pending, open) {
|
|
667
|
+
try {
|
|
668
|
+
open(pending);
|
|
669
|
+
}
|
|
670
|
+
catch (error) {
|
|
671
|
+
this.errors.handleError(error);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
openPending(pending) {
|
|
675
|
+
this.opener.open(pending.moduleId, pending.name, pending.instance, pending.heading, pending.isPreview, pending.after);
|
|
676
|
+
}
|
|
677
|
+
describeRuntimeCommand(info) {
|
|
678
|
+
return new CommandContribution(info.name.text, info.title, info.icon, info.defaultKey?.text ?? null, t => this.bridge.requestAsync(ShellMethods.runCommand.text, new CommandRun(info.name, t).toJson()), () => this.findRuntimeState(info)?.isEnabled ?? false, Object.isNull(info.isChecked) ? null : () => this.findRuntimeState(info)?.isChecked === true);
|
|
679
|
+
}
|
|
680
|
+
findRuntimeState(info) {
|
|
681
|
+
return this.runtimeStates()?.commands.find(t => t.name.text === info.name.text);
|
|
682
|
+
}
|
|
683
|
+
receiveCommands(name, payload) {
|
|
684
|
+
if (name !== ShellEvents.commandsChanged.text)
|
|
685
|
+
return;
|
|
686
|
+
try {
|
|
687
|
+
this.applyCommands(CommandList.fromJson(payload));
|
|
688
|
+
}
|
|
689
|
+
catch (error) {
|
|
690
|
+
this.errors.handleError(error);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
takeRuntimeCommands(commands) {
|
|
694
|
+
this.applyCommands(commands);
|
|
695
|
+
this.runtimeCommands = commands.commands.map(t => this.describeRuntimeCommand(t));
|
|
696
|
+
}
|
|
697
|
+
applyCommands(commands) {
|
|
698
|
+
const current = this.runtimeStates();
|
|
699
|
+
if (Object.isNull(current) || commands.sequence > current.sequence)
|
|
700
|
+
this.runtimeStates.set(commands);
|
|
701
|
+
}
|
|
702
|
+
describeFailure(status, isTurnedOff) {
|
|
703
|
+
const source = this.sources.find(t => t.moduleId === status.id);
|
|
704
|
+
const isOff = status.state === ModuleState.Off;
|
|
705
|
+
const keepsDocuments = isOff || status.state === ModuleState.Unavailable;
|
|
706
|
+
return new ModuleFailure(status.id, status.displayName, status.state, status.cause, source?.viewNames ?? [], keepsDocuments ? source?.documentNames : [], isOff ? status.switchSetting : null, isTurnedOff);
|
|
707
|
+
}
|
|
708
|
+
async activateAsync(status, active) {
|
|
709
|
+
const source = this.sources.find(t => t.moduleId === status.id);
|
|
710
|
+
if (Object.isUndefined(source))
|
|
711
|
+
return status;
|
|
712
|
+
const blocker = source.dependencies.find(t => !active.has(t));
|
|
713
|
+
if (!Object.isUndefined(blocker))
|
|
714
|
+
return status.withState(ModuleState.Blocked, Resources.formatModuleBlocked(blocker), blocker);
|
|
715
|
+
let part;
|
|
716
|
+
try {
|
|
717
|
+
part = await source.load();
|
|
718
|
+
}
|
|
719
|
+
catch (error) {
|
|
720
|
+
this.errors.handleError(new WindowPartLoadFailedException(status.id, error));
|
|
721
|
+
return status.withState(ModuleState.Failed, Resources.windowPartLoadFailed);
|
|
722
|
+
}
|
|
723
|
+
const activation = new WindowPartActivation(source, new WindowPartContext(source, this), part);
|
|
724
|
+
for (const dependency of source.optionalDependencies.filter(t => active.has(t)))
|
|
725
|
+
activation.context.announceDependency(dependency, true, this.dependencyListenerFailure(status.id));
|
|
726
|
+
this.activations.push(activation);
|
|
727
|
+
this.changedModules.add(status.id);
|
|
728
|
+
this.activatingModules.add(status.id);
|
|
729
|
+
try {
|
|
730
|
+
await part.activateAsync(activation.context);
|
|
731
|
+
}
|
|
732
|
+
catch (error) {
|
|
733
|
+
this.activatingModules.delete(status.id);
|
|
734
|
+
this.activations.splice(this.activations.indexOf(activation), 1);
|
|
735
|
+
this.labels.dropLooks(t => WindowPartHostService.owns(activation.context, t));
|
|
736
|
+
activation.context.withdraw();
|
|
737
|
+
this.dropPending(status.id);
|
|
738
|
+
if (RuntimeDisconnectedException.isIn(error))
|
|
739
|
+
throw error;
|
|
740
|
+
this.errors.handleError(new WindowPartActivationFailedException(status.id, error));
|
|
741
|
+
return status.withState(ModuleState.Failed, Resources.windowPartActivationFailed);
|
|
742
|
+
}
|
|
743
|
+
this.activatingModules.delete(status.id);
|
|
744
|
+
this.startedModules.add(status.id);
|
|
745
|
+
return status;
|
|
746
|
+
}
|
|
747
|
+
async deactivateAsync(activations) {
|
|
748
|
+
for (const activation of [...activations].reverse()) {
|
|
749
|
+
this.liveViews.destroy(t => WindowPartHostService.owns(activation.context, t));
|
|
750
|
+
this.activations.splice(this.activations.indexOf(activation), 1);
|
|
751
|
+
this.changedModules.add(activation.context.moduleId);
|
|
752
|
+
try {
|
|
753
|
+
await activation.part.deactivateAsync();
|
|
754
|
+
}
|
|
755
|
+
catch (error) {
|
|
756
|
+
this.errors.handleError(error);
|
|
757
|
+
}
|
|
758
|
+
finally {
|
|
759
|
+
this.labels.dropLooks(t => WindowPartHostService.owns(activation.context, t));
|
|
760
|
+
activation.context.withdraw();
|
|
761
|
+
this.dropPending(activation.context.moduleId);
|
|
762
|
+
this.announceWithdrawn(t => t === activation.context.moduleId);
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
announceWithdrawn(isWithdrawn) {
|
|
767
|
+
for (const activation of this.activations)
|
|
768
|
+
for (const dependency of activation.source.optionalDependencies.filter(t => activation.context.isDependencyActive(t) && isWithdrawn(t)))
|
|
769
|
+
activation.context.announceDependency(dependency, false, this.dependencyListenerFailure(activation.context.moduleId));
|
|
770
|
+
}
|
|
771
|
+
static owns(context, tab) {
|
|
772
|
+
const contributions = tab instanceof DocumentTab ? context.documents : context.views;
|
|
773
|
+
return contributions.some(t => t.name === tab.name);
|
|
774
|
+
}
|
|
775
|
+
matchPlaceholder(placeholder, activation) {
|
|
776
|
+
const known = this.placeholderMatches.get(placeholder);
|
|
777
|
+
if (!Object.isUndefined(known))
|
|
778
|
+
return known;
|
|
779
|
+
const match = WindowPartHostService.match(placeholder, activation.context, activation.part.padding);
|
|
780
|
+
this.placeholderMatches.set(placeholder, match);
|
|
781
|
+
return match;
|
|
782
|
+
}
|
|
783
|
+
static match(contribution, context, modulePadding) {
|
|
784
|
+
return new ContributionMatch(contribution.loadComponent, context, contribution.padding ?? modulePadding ?? ContentPadding.Default);
|
|
785
|
+
}
|
|
786
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WindowPartHostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
787
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WindowPartHostService, providedIn: "root" });
|
|
788
|
+
}
|
|
789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WindowPartHostService, decorators: [{
|
|
790
|
+
type: Injectable,
|
|
791
|
+
args: [{ providedIn: "root" }]
|
|
792
|
+
}], ctorParameters: () => [] });
|
|
793
|
+
//# sourceMappingURL=window-part-host.service.js.map
|