@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,1402 @@
|
|
|
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 type { Signal, Type } from "@angular/core";
|
|
9
|
+
import type { JsonValue } from "@noldova/context.json";
|
|
10
|
+
import type { AgentControlState, SettingScope } from "@noldova/desktop.protocol";
|
|
11
|
+
import { Fake } from "@noldova/desktop.protocol/testing";
|
|
12
|
+
import type { IWindowPalette } from "../../app/interfaces/i-window-palette.js";
|
|
13
|
+
import type { IWindowPartContext } from "../../app/interfaces/i-window-part-context.js";
|
|
14
|
+
import { FakeWindowSecrets } from "./fake-window-secrets.js";
|
|
15
|
+
import { FakeWindowWebViews } from "./fake-window-web-views.js";
|
|
16
|
+
/**
|
|
17
|
+
* A fake of the {@link IWindowPartContext} that the window hands a module's
|
|
18
|
+
* window part, for the module's tests: it records every call, a test answers
|
|
19
|
+
* each member that returns a value with {@link Fake.answer}, and its raisers
|
|
20
|
+
* call the listeners the module added, as the window would.
|
|
21
|
+
*
|
|
22
|
+
* A member that returns a value, or a property, throws
|
|
23
|
+
* {@link UnansweredCallException}, naming it, until the test answers it, so
|
|
24
|
+
* that no test passes on a value the fake made up.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
29
|
+
*
|
|
30
|
+
* export function startNotes(): FakeWindowPartContext {
|
|
31
|
+
* const context = new FakeWindowPartContext();
|
|
32
|
+
* context.answer("readSetting", () => "dark");
|
|
33
|
+
* context.answer("requestAsync", () => Promise.resolve([]));
|
|
34
|
+
* return context;
|
|
35
|
+
* }
|
|
36
|
+
*
|
|
37
|
+
* export function registeredViews(context: FakeWindowPartContext): number {
|
|
38
|
+
* return context.callsOf("registerView").length;
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* import { UnansweredCallException } from "@noldova/desktop.protocol/testing";
|
|
45
|
+
* import { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
46
|
+
*
|
|
47
|
+
* export function isUnanswered(): boolean {
|
|
48
|
+
* const fake = new FakeWindowPartContext();
|
|
49
|
+
* try {
|
|
50
|
+
* fake.readSetting("notes.theme");
|
|
51
|
+
* } catch (error) {
|
|
52
|
+
* return error instanceof UnansweredCallException;
|
|
53
|
+
* }
|
|
54
|
+
* return false;
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare class FakeWindowPartContext extends Fake<IWindowPartContext> implements IWindowPartContext {
|
|
59
|
+
private readonly documentClosed;
|
|
60
|
+
private readonly tabRenamed;
|
|
61
|
+
private readonly viewClosed;
|
|
62
|
+
private readonly events;
|
|
63
|
+
private readonly settingChanged;
|
|
64
|
+
private readonly dependencyChanged;
|
|
65
|
+
/**
|
|
66
|
+
* The fake that stands in for {@link IWindowPartContext.webViews}, with calls
|
|
67
|
+
* and answers of its own.
|
|
68
|
+
*/
|
|
69
|
+
readonly webViews: FakeWindowWebViews;
|
|
70
|
+
/**
|
|
71
|
+
* The fake that stands in for {@link IWindowPartContext.secrets}, with calls
|
|
72
|
+
* and answers of its own.
|
|
73
|
+
*/
|
|
74
|
+
readonly secrets: FakeWindowSecrets;
|
|
75
|
+
/**
|
|
76
|
+
* Stands in for {@link IWindowPartContext.registerView}. Records each call,
|
|
77
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
78
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
83
|
+
*
|
|
84
|
+
* export function heardRegisterView(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
85
|
+
* const heard: unknown[][] = [];
|
|
86
|
+
* fake.answer("registerView", (...args) => {
|
|
87
|
+
* heard.push(args);
|
|
88
|
+
* });
|
|
89
|
+
* return heard;
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
readonly registerView: IWindowPartContext["registerView"];
|
|
94
|
+
/**
|
|
95
|
+
* Stands in for {@link IWindowPartContext.registerDocument}. Records each
|
|
96
|
+
* call, which {@link Fake.callsOf} reads, and calls the answer that
|
|
97
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
102
|
+
*
|
|
103
|
+
* export function heardRegisterDocument(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
104
|
+
* const heard: unknown[][] = [];
|
|
105
|
+
* fake.answer("registerDocument", (...args) => {
|
|
106
|
+
* heard.push(args);
|
|
107
|
+
* });
|
|
108
|
+
* return heard;
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
readonly registerDocument: IWindowPartContext["registerDocument"];
|
|
113
|
+
/**
|
|
114
|
+
* Stands in for {@link IWindowPartContext.registerPlaceholder}. Records each
|
|
115
|
+
* call, which {@link Fake.callsOf} reads, and calls the answer that
|
|
116
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```ts
|
|
120
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
121
|
+
*
|
|
122
|
+
* export function heardRegisterPlaceholder(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
123
|
+
* const heard: unknown[][] = [];
|
|
124
|
+
* fake.answer("registerPlaceholder", (...args) => {
|
|
125
|
+
* heard.push(args);
|
|
126
|
+
* });
|
|
127
|
+
* return heard;
|
|
128
|
+
* }
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
readonly registerPlaceholder: IWindowPartContext["registerPlaceholder"];
|
|
132
|
+
/**
|
|
133
|
+
* Stands in for {@link IWindowPartContext.registerSettingsPage}. Records each
|
|
134
|
+
* call, which {@link Fake.callsOf} reads, and calls the answer that
|
|
135
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
140
|
+
*
|
|
141
|
+
* export function heardRegisterSettingsPage(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
142
|
+
* const heard: unknown[][] = [];
|
|
143
|
+
* fake.answer("registerSettingsPage", (...args) => {
|
|
144
|
+
* heard.push(args);
|
|
145
|
+
* });
|
|
146
|
+
* return heard;
|
|
147
|
+
* }
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
readonly registerSettingsPage: IWindowPartContext["registerSettingsPage"];
|
|
151
|
+
/**
|
|
152
|
+
* Stands in for {@link IWindowPartContext.setSettingsRows}. Records each
|
|
153
|
+
* call, which {@link Fake.callsOf} reads, and calls the answer that
|
|
154
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```ts
|
|
158
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
159
|
+
*
|
|
160
|
+
* export function heardSetSettingsRows(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
161
|
+
* const heard: unknown[][] = [];
|
|
162
|
+
* fake.answer("setSettingsRows", (...args) => {
|
|
163
|
+
* heard.push(args);
|
|
164
|
+
* });
|
|
165
|
+
* return heard;
|
|
166
|
+
* }
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
readonly setSettingsRows: IWindowPartContext["setSettingsRows"];
|
|
170
|
+
/**
|
|
171
|
+
* Stands in for {@link IWindowPartContext.registerCommand}. Records each
|
|
172
|
+
* call, which {@link Fake.callsOf} reads, and calls the answer that
|
|
173
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* ```ts
|
|
177
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
178
|
+
*
|
|
179
|
+
* export function heardRegisterCommand(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
180
|
+
* const heard: unknown[][] = [];
|
|
181
|
+
* fake.answer("registerCommand", (...args) => {
|
|
182
|
+
* heard.push(args);
|
|
183
|
+
* });
|
|
184
|
+
* return heard;
|
|
185
|
+
* }
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
readonly registerCommand: IWindowPartContext["registerCommand"];
|
|
189
|
+
/**
|
|
190
|
+
* Stands in for {@link IWindowPartContext.registerSearchSource}. Records each
|
|
191
|
+
* call, which {@link Fake.callsOf} reads, and calls the answer that
|
|
192
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* ```ts
|
|
196
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
197
|
+
*
|
|
198
|
+
* export function heardRegisterSearchSource(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
199
|
+
* const heard: unknown[][] = [];
|
|
200
|
+
* fake.answer("registerSearchSource", (...args) => {
|
|
201
|
+
* heard.push(args);
|
|
202
|
+
* });
|
|
203
|
+
* return heard;
|
|
204
|
+
* }
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
readonly registerSearchSource: IWindowPartContext["registerSearchSource"];
|
|
208
|
+
/**
|
|
209
|
+
* Stands in for {@link IWindowPartContext.registerStatusBarItem}. Records
|
|
210
|
+
* each call, which {@link Fake.callsOf} reads, and returns what the answer
|
|
211
|
+
* that {@link Fake.answer} gives returns.
|
|
212
|
+
*
|
|
213
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
214
|
+
* the test has given it no answer.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* ```ts
|
|
218
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
219
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
220
|
+
*
|
|
221
|
+
* export function answerRegisterStatusBarItem(fake: FakeWindowPartContext, value: ReturnType<IWindowPartContext["registerStatusBarItem"]>): void {
|
|
222
|
+
* fake.answer("registerStatusBarItem", () => value);
|
|
223
|
+
* }
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
226
|
+
readonly registerStatusBarItem: IWindowPartContext["registerStatusBarItem"];
|
|
227
|
+
/**
|
|
228
|
+
* Stands in for {@link IWindowPartContext.registerTopBarAction}. Records each
|
|
229
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
230
|
+
* {@link Fake.answer} gives returns.
|
|
231
|
+
*
|
|
232
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
233
|
+
* the test has given it no answer.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```ts
|
|
237
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
238
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
239
|
+
*
|
|
240
|
+
* export function answerRegisterTopBarAction(fake: FakeWindowPartContext, value: ReturnType<IWindowPartContext["registerTopBarAction"]>): void {
|
|
241
|
+
* fake.answer("registerTopBarAction", () => value);
|
|
242
|
+
* }
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
245
|
+
readonly registerTopBarAction: IWindowPartContext["registerTopBarAction"];
|
|
246
|
+
/**
|
|
247
|
+
* Stands in for {@link IWindowPartContext.registerSave}. Records each
|
|
248
|
+
* registration, which {@link Fake.activeCallsOf} lists until the disposer it
|
|
249
|
+
* returns runs; it takes no answer.
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* ```ts
|
|
253
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
254
|
+
*
|
|
255
|
+
* export function activeRegisterSave(fake: FakeWindowPartContext): number {
|
|
256
|
+
* return fake.activeCallsOf("registerSave").length;
|
|
257
|
+
* }
|
|
258
|
+
* ```
|
|
259
|
+
*/
|
|
260
|
+
readonly registerSave: IWindowPartContext["registerSave"];
|
|
261
|
+
/**
|
|
262
|
+
* Stands in for {@link IWindowPartContext.registerSelectionSource}. Records
|
|
263
|
+
* each registration, which {@link Fake.activeCallsOf} lists until the
|
|
264
|
+
* disposer it returns runs; it takes no answer.
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* ```ts
|
|
268
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
269
|
+
*
|
|
270
|
+
* export function activeRegisterSelectionSource(fake: FakeWindowPartContext): number {
|
|
271
|
+
* return fake.activeCallsOf("registerSelectionSource").length;
|
|
272
|
+
* }
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
readonly registerSelectionSource: IWindowPartContext["registerSelectionSource"];
|
|
276
|
+
/**
|
|
277
|
+
* Stands in for {@link IWindowPartContext.provideMenuGroup}. Records each
|
|
278
|
+
* registration, which {@link Fake.activeCallsOf} lists until the disposer it
|
|
279
|
+
* returns runs; it takes no answer.
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* ```ts
|
|
283
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
284
|
+
*
|
|
285
|
+
* export function activeProvideMenuGroup(fake: FakeWindowPartContext): number {
|
|
286
|
+
* return fake.activeCallsOf("provideMenuGroup").length;
|
|
287
|
+
* }
|
|
288
|
+
* ```
|
|
289
|
+
*/
|
|
290
|
+
readonly provideMenuGroup: IWindowPartContext["provideMenuGroup"];
|
|
291
|
+
/**
|
|
292
|
+
* Stands in for {@link IWindowPartContext.provideSettingOptions}. Records
|
|
293
|
+
* each registration, which {@link Fake.activeCallsOf} lists until the
|
|
294
|
+
* disposer it returns runs; it takes no answer.
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* ```ts
|
|
298
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
299
|
+
*
|
|
300
|
+
* export function activeProvideSettingOptions(fake: FakeWindowPartContext): number {
|
|
301
|
+
* return fake.activeCallsOf("provideSettingOptions").length;
|
|
302
|
+
* }
|
|
303
|
+
* ```
|
|
304
|
+
*/
|
|
305
|
+
readonly provideSettingOptions: IWindowPartContext["provideSettingOptions"];
|
|
306
|
+
/**
|
|
307
|
+
* Stands in for {@link IWindowPartContext.refreshSettingOptions}. Records
|
|
308
|
+
* each call, which {@link Fake.callsOf} reads, and calls the answer that
|
|
309
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
310
|
+
*
|
|
311
|
+
* @example
|
|
312
|
+
* ```ts
|
|
313
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
314
|
+
*
|
|
315
|
+
* export function heardRefreshSettingOptions(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
316
|
+
* const heard: unknown[][] = [];
|
|
317
|
+
* fake.answer("refreshSettingOptions", (...args) => {
|
|
318
|
+
* heard.push(args);
|
|
319
|
+
* });
|
|
320
|
+
* return heard;
|
|
321
|
+
* }
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
readonly refreshSettingOptions: IWindowPartContext["refreshSettingOptions"];
|
|
325
|
+
/**
|
|
326
|
+
* Stands in for {@link IWindowPartContext.provideSettingCheck}. Records each
|
|
327
|
+
* registration, which {@link Fake.activeCallsOf} lists until the disposer it
|
|
328
|
+
* returns runs; it takes no answer.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* ```ts
|
|
332
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
333
|
+
*
|
|
334
|
+
* export function activeProvideSettingCheck(fake: FakeWindowPartContext): number {
|
|
335
|
+
* return fake.activeCallsOf("provideSettingCheck").length;
|
|
336
|
+
* }
|
|
337
|
+
* ```
|
|
338
|
+
*/
|
|
339
|
+
readonly provideSettingCheck: IWindowPartContext["provideSettingCheck"];
|
|
340
|
+
/**
|
|
341
|
+
* Stands in for {@link IWindowPartContext.setViewBadge}. Records each call,
|
|
342
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
343
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
344
|
+
*
|
|
345
|
+
* @example
|
|
346
|
+
* ```ts
|
|
347
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
348
|
+
*
|
|
349
|
+
* export function heardSetViewBadge(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
350
|
+
* const heard: unknown[][] = [];
|
|
351
|
+
* fake.answer("setViewBadge", (...args) => {
|
|
352
|
+
* heard.push(args);
|
|
353
|
+
* });
|
|
354
|
+
* return heard;
|
|
355
|
+
* }
|
|
356
|
+
* ```
|
|
357
|
+
*/
|
|
358
|
+
readonly setViewBadge: IWindowPartContext["setViewBadge"];
|
|
359
|
+
/**
|
|
360
|
+
* Stands in for {@link IWindowPartContext.markWorking}. Records each
|
|
361
|
+
* registration, which {@link Fake.activeCallsOf} lists until the disposer it
|
|
362
|
+
* returns runs; it takes no answer.
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* ```ts
|
|
366
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
367
|
+
*
|
|
368
|
+
* export function activeMarkWorking(fake: FakeWindowPartContext): number {
|
|
369
|
+
* return fake.activeCallsOf("markWorking").length;
|
|
370
|
+
* }
|
|
371
|
+
* ```
|
|
372
|
+
*/
|
|
373
|
+
readonly markWorking: IWindowPartContext["markWorking"];
|
|
374
|
+
/**
|
|
375
|
+
* Stands in for {@link IWindowPartContext.markWaiting}. Records each
|
|
376
|
+
* registration, which {@link Fake.activeCallsOf} lists until the disposer it
|
|
377
|
+
* returns runs; it takes no answer.
|
|
378
|
+
*
|
|
379
|
+
* @example
|
|
380
|
+
* ```ts
|
|
381
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
382
|
+
*
|
|
383
|
+
* export function activeMarkWaiting(fake: FakeWindowPartContext): number {
|
|
384
|
+
* return fake.activeCallsOf("markWaiting").length;
|
|
385
|
+
* }
|
|
386
|
+
* ```
|
|
387
|
+
*/
|
|
388
|
+
readonly markWaiting: IWindowPartContext["markWaiting"];
|
|
389
|
+
/**
|
|
390
|
+
* Stands in for {@link IWindowPartContext.isAllowed}. Records each call,
|
|
391
|
+
* which {@link Fake.callsOf} reads, and returns what the answer that
|
|
392
|
+
* {@link Fake.answer} gives returns.
|
|
393
|
+
*
|
|
394
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
395
|
+
* the test has given it no answer.
|
|
396
|
+
*
|
|
397
|
+
* @example
|
|
398
|
+
* ```ts
|
|
399
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
400
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
401
|
+
*
|
|
402
|
+
* export function answerIsAllowed(fake: FakeWindowPartContext, value: ReturnType<IWindowPartContext["isAllowed"]>): void {
|
|
403
|
+
* fake.answer("isAllowed", () => value);
|
|
404
|
+
* }
|
|
405
|
+
* ```
|
|
406
|
+
*/
|
|
407
|
+
readonly isAllowed: IWindowPartContext["isAllowed"];
|
|
408
|
+
/**
|
|
409
|
+
* Stands in for {@link IWindowPartContext.runCommandAsync}. Records each
|
|
410
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
411
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
412
|
+
* rejects rather than the call throwing.
|
|
413
|
+
*
|
|
414
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
415
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
416
|
+
* real member fails.
|
|
417
|
+
*
|
|
418
|
+
* @example
|
|
419
|
+
* ```ts
|
|
420
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
421
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
422
|
+
*
|
|
423
|
+
* export function answerRunCommandAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["runCommandAsync"]>>): void {
|
|
424
|
+
* fake.answer("runCommandAsync", () => Promise.resolve(value));
|
|
425
|
+
* }
|
|
426
|
+
* ```
|
|
427
|
+
*/
|
|
428
|
+
readonly runCommandAsync: IWindowPartContext["runCommandAsync"];
|
|
429
|
+
/**
|
|
430
|
+
* Stands in for {@link IWindowPartContext.findWindowCommand}. Records each
|
|
431
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
432
|
+
* {@link Fake.answer} gives returns.
|
|
433
|
+
*
|
|
434
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
435
|
+
* the test has given it no answer.
|
|
436
|
+
*
|
|
437
|
+
* @example
|
|
438
|
+
* ```ts
|
|
439
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
440
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
441
|
+
*
|
|
442
|
+
* export function answerFindWindowCommand(fake: FakeWindowPartContext, value: ReturnType<IWindowPartContext["findWindowCommand"]>): void {
|
|
443
|
+
* fake.answer("findWindowCommand", () => value);
|
|
444
|
+
* }
|
|
445
|
+
* ```
|
|
446
|
+
*/
|
|
447
|
+
readonly findWindowCommand: IWindowPartContext["findWindowCommand"];
|
|
448
|
+
/**
|
|
449
|
+
* Stands in for {@link IWindowPartContext.keyOf}. Records each call, which
|
|
450
|
+
* {@link Fake.callsOf} reads, and returns what the answer that
|
|
451
|
+
* {@link Fake.answer} gives returns.
|
|
452
|
+
*
|
|
453
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
454
|
+
* the test has given it no answer.
|
|
455
|
+
*
|
|
456
|
+
* @example
|
|
457
|
+
* ```ts
|
|
458
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
459
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
460
|
+
*
|
|
461
|
+
* export function answerKeyOf(fake: FakeWindowPartContext, value: ReturnType<IWindowPartContext["keyOf"]>): void {
|
|
462
|
+
* fake.answer("keyOf", () => value);
|
|
463
|
+
* }
|
|
464
|
+
* ```
|
|
465
|
+
*/
|
|
466
|
+
readonly keyOf: IWindowPartContext["keyOf"];
|
|
467
|
+
/**
|
|
468
|
+
* Stands in for {@link IWindowPartContext.postNotificationAsync}. Records
|
|
469
|
+
* each call, which {@link Fake.callsOf} reads, and returns what the answer
|
|
470
|
+
* that {@link Fake.answer} gives returns; while unanswered, the promise it
|
|
471
|
+
* returns rejects rather than the call throwing.
|
|
472
|
+
*
|
|
473
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
474
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
475
|
+
* real member fails.
|
|
476
|
+
*
|
|
477
|
+
* @example
|
|
478
|
+
* ```ts
|
|
479
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
480
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
481
|
+
*
|
|
482
|
+
* export function answerPostNotificationAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["postNotificationAsync"]>>): void {
|
|
483
|
+
* fake.answer("postNotificationAsync", () => Promise.resolve(value));
|
|
484
|
+
* }
|
|
485
|
+
* ```
|
|
486
|
+
*/
|
|
487
|
+
readonly postNotificationAsync: IWindowPartContext["postNotificationAsync"];
|
|
488
|
+
/**
|
|
489
|
+
* Stands in for {@link IWindowPartContext.openDocument}. Records each call,
|
|
490
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
491
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
492
|
+
*
|
|
493
|
+
* @example
|
|
494
|
+
* ```ts
|
|
495
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
496
|
+
*
|
|
497
|
+
* export function heardOpenDocument(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
498
|
+
* const heard: unknown[][] = [];
|
|
499
|
+
* fake.answer("openDocument", (...args) => {
|
|
500
|
+
* heard.push(args);
|
|
501
|
+
* });
|
|
502
|
+
* return heard;
|
|
503
|
+
* }
|
|
504
|
+
* ```
|
|
505
|
+
*/
|
|
506
|
+
readonly openDocument: IWindowPartContext["openDocument"];
|
|
507
|
+
/**
|
|
508
|
+
* Stands in for {@link IWindowPartContext.keepDocument}. Records each call,
|
|
509
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
510
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
511
|
+
*
|
|
512
|
+
* @example
|
|
513
|
+
* ```ts
|
|
514
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
515
|
+
*
|
|
516
|
+
* export function heardKeepDocument(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
517
|
+
* const heard: unknown[][] = [];
|
|
518
|
+
* fake.answer("keepDocument", (...args) => {
|
|
519
|
+
* heard.push(args);
|
|
520
|
+
* });
|
|
521
|
+
* return heard;
|
|
522
|
+
* }
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
readonly keepDocument: IWindowPartContext["keepDocument"];
|
|
526
|
+
/**
|
|
527
|
+
* Stands in for {@link IWindowPartContext.closeDocument}. Records each call,
|
|
528
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
529
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
530
|
+
*
|
|
531
|
+
* @example
|
|
532
|
+
* ```ts
|
|
533
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
534
|
+
*
|
|
535
|
+
* export function heardCloseDocument(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
536
|
+
* const heard: unknown[][] = [];
|
|
537
|
+
* fake.answer("closeDocument", (...args) => {
|
|
538
|
+
* heard.push(args);
|
|
539
|
+
* });
|
|
540
|
+
* return heard;
|
|
541
|
+
* }
|
|
542
|
+
* ```
|
|
543
|
+
*/
|
|
544
|
+
readonly closeDocument: IWindowPartContext["closeDocument"];
|
|
545
|
+
/**
|
|
546
|
+
* Stands in for {@link IWindowPartContext.forgetDocument}. Records each call,
|
|
547
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
548
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
549
|
+
*
|
|
550
|
+
* @example
|
|
551
|
+
* ```ts
|
|
552
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
553
|
+
*
|
|
554
|
+
* export function heardForgetDocument(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
555
|
+
* const heard: unknown[][] = [];
|
|
556
|
+
* fake.answer("forgetDocument", (...args) => {
|
|
557
|
+
* heard.push(args);
|
|
558
|
+
* });
|
|
559
|
+
* return heard;
|
|
560
|
+
* }
|
|
561
|
+
* ```
|
|
562
|
+
*/
|
|
563
|
+
readonly forgetDocument: IWindowPartContext["forgetDocument"];
|
|
564
|
+
/**
|
|
565
|
+
* Stands in for {@link IWindowPartContext.updateDocument}. Records each call,
|
|
566
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
567
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
568
|
+
*
|
|
569
|
+
* @example
|
|
570
|
+
* ```ts
|
|
571
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
572
|
+
*
|
|
573
|
+
* export function heardUpdateDocument(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
574
|
+
* const heard: unknown[][] = [];
|
|
575
|
+
* fake.answer("updateDocument", (...args) => {
|
|
576
|
+
* heard.push(args);
|
|
577
|
+
* });
|
|
578
|
+
* return heard;
|
|
579
|
+
* }
|
|
580
|
+
* ```
|
|
581
|
+
*/
|
|
582
|
+
readonly updateDocument: IWindowPartContext["updateDocument"];
|
|
583
|
+
/**
|
|
584
|
+
* Stands in for {@link IWindowPartContext.onDocumentClosed}. Records each
|
|
585
|
+
* listener, which {@link FakeWindowPartContext.raiseDocumentClosed} calls and
|
|
586
|
+
* {@link Fake.activeCallsOf} lists until the disposer it returns runs; it
|
|
587
|
+
* takes no answer.
|
|
588
|
+
*
|
|
589
|
+
* @example
|
|
590
|
+
* ```ts
|
|
591
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
592
|
+
*
|
|
593
|
+
* export function activeOnDocumentClosed(fake: FakeWindowPartContext): number {
|
|
594
|
+
* return fake.activeCallsOf("onDocumentClosed").length;
|
|
595
|
+
* }
|
|
596
|
+
* ```
|
|
597
|
+
*/
|
|
598
|
+
readonly onDocumentClosed: IWindowPartContext["onDocumentClosed"];
|
|
599
|
+
/**
|
|
600
|
+
* Stands in for {@link IWindowPartContext.onTabRenamed}. Records each
|
|
601
|
+
* listener, which {@link FakeWindowPartContext.raiseTabRenamed} calls and
|
|
602
|
+
* {@link Fake.activeCallsOf} lists until the disposer it returns runs; it
|
|
603
|
+
* takes no answer.
|
|
604
|
+
*
|
|
605
|
+
* @example
|
|
606
|
+
* ```ts
|
|
607
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
608
|
+
*
|
|
609
|
+
* export function activeOnTabRenamed(fake: FakeWindowPartContext): number {
|
|
610
|
+
* return fake.activeCallsOf("onTabRenamed").length;
|
|
611
|
+
* }
|
|
612
|
+
* ```
|
|
613
|
+
*/
|
|
614
|
+
readonly onTabRenamed: IWindowPartContext["onTabRenamed"];
|
|
615
|
+
/**
|
|
616
|
+
* Stands in for {@link IWindowPartContext.listOpenDocumentsAsync}. Records
|
|
617
|
+
* each call, which {@link Fake.callsOf} reads, and returns what the answer
|
|
618
|
+
* that {@link Fake.answer} gives returns; while unanswered, the promise it
|
|
619
|
+
* returns rejects rather than the call throwing.
|
|
620
|
+
*
|
|
621
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
622
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
623
|
+
* real member fails.
|
|
624
|
+
*
|
|
625
|
+
* @example
|
|
626
|
+
* ```ts
|
|
627
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
628
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
629
|
+
*
|
|
630
|
+
* export function answerListOpenDocumentsAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["listOpenDocumentsAsync"]>>): void {
|
|
631
|
+
* fake.answer("listOpenDocumentsAsync", () => Promise.resolve(value));
|
|
632
|
+
* }
|
|
633
|
+
* ```
|
|
634
|
+
*/
|
|
635
|
+
readonly listOpenDocumentsAsync: IWindowPartContext["listOpenDocumentsAsync"];
|
|
636
|
+
/**
|
|
637
|
+
* Stands in for {@link IWindowPartContext.openView}. Records each call, which
|
|
638
|
+
* {@link Fake.callsOf} reads, and calls the answer that {@link Fake.answer}
|
|
639
|
+
* gives; while unanswered, it only records the call.
|
|
640
|
+
*
|
|
641
|
+
* @example
|
|
642
|
+
* ```ts
|
|
643
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
644
|
+
*
|
|
645
|
+
* export function heardOpenView(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
646
|
+
* const heard: unknown[][] = [];
|
|
647
|
+
* fake.answer("openView", (...args) => {
|
|
648
|
+
* heard.push(args);
|
|
649
|
+
* });
|
|
650
|
+
* return heard;
|
|
651
|
+
* }
|
|
652
|
+
* ```
|
|
653
|
+
*/
|
|
654
|
+
readonly openView: IWindowPartContext["openView"];
|
|
655
|
+
/**
|
|
656
|
+
* Stands in for {@link IWindowPartContext.updateView}. Records each call,
|
|
657
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
658
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* ```ts
|
|
662
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
663
|
+
*
|
|
664
|
+
* export function heardUpdateView(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
665
|
+
* const heard: unknown[][] = [];
|
|
666
|
+
* fake.answer("updateView", (...args) => {
|
|
667
|
+
* heard.push(args);
|
|
668
|
+
* });
|
|
669
|
+
* return heard;
|
|
670
|
+
* }
|
|
671
|
+
* ```
|
|
672
|
+
*/
|
|
673
|
+
readonly updateView: IWindowPartContext["updateView"];
|
|
674
|
+
/**
|
|
675
|
+
* Stands in for {@link IWindowPartContext.closeView}. Records each call,
|
|
676
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
677
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
678
|
+
*
|
|
679
|
+
* @example
|
|
680
|
+
* ```ts
|
|
681
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
682
|
+
*
|
|
683
|
+
* export function heardCloseView(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
684
|
+
* const heard: unknown[][] = [];
|
|
685
|
+
* fake.answer("closeView", (...args) => {
|
|
686
|
+
* heard.push(args);
|
|
687
|
+
* });
|
|
688
|
+
* return heard;
|
|
689
|
+
* }
|
|
690
|
+
* ```
|
|
691
|
+
*/
|
|
692
|
+
readonly closeView: IWindowPartContext["closeView"];
|
|
693
|
+
/**
|
|
694
|
+
* Stands in for {@link IWindowPartContext.showView}. Records each call, which
|
|
695
|
+
* {@link Fake.callsOf} reads, and calls the answer that {@link Fake.answer}
|
|
696
|
+
* gives; while unanswered, it only records the call.
|
|
697
|
+
*
|
|
698
|
+
* @example
|
|
699
|
+
* ```ts
|
|
700
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
701
|
+
*
|
|
702
|
+
* export function heardShowView(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
703
|
+
* const heard: unknown[][] = [];
|
|
704
|
+
* fake.answer("showView", (...args) => {
|
|
705
|
+
* heard.push(args);
|
|
706
|
+
* });
|
|
707
|
+
* return heard;
|
|
708
|
+
* }
|
|
709
|
+
* ```
|
|
710
|
+
*/
|
|
711
|
+
readonly showView: IWindowPartContext["showView"];
|
|
712
|
+
/**
|
|
713
|
+
* Stands in for {@link IWindowPartContext.hideViewDock}. Records each call,
|
|
714
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
715
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
716
|
+
*
|
|
717
|
+
* @example
|
|
718
|
+
* ```ts
|
|
719
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
720
|
+
*
|
|
721
|
+
* export function heardHideViewDock(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
722
|
+
* const heard: unknown[][] = [];
|
|
723
|
+
* fake.answer("hideViewDock", (...args) => {
|
|
724
|
+
* heard.push(args);
|
|
725
|
+
* });
|
|
726
|
+
* return heard;
|
|
727
|
+
* }
|
|
728
|
+
* ```
|
|
729
|
+
*/
|
|
730
|
+
readonly hideViewDock: IWindowPartContext["hideViewDock"];
|
|
731
|
+
/**
|
|
732
|
+
* Stands in for {@link IWindowPartContext.growViewDock}. Records each
|
|
733
|
+
* registration, which {@link Fake.activeCallsOf} lists until the disposer it
|
|
734
|
+
* returns runs; it takes no answer.
|
|
735
|
+
*
|
|
736
|
+
* @example
|
|
737
|
+
* ```ts
|
|
738
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
739
|
+
*
|
|
740
|
+
* export function activeGrowViewDock(fake: FakeWindowPartContext): number {
|
|
741
|
+
* return fake.activeCallsOf("growViewDock").length;
|
|
742
|
+
* }
|
|
743
|
+
* ```
|
|
744
|
+
*/
|
|
745
|
+
readonly growViewDock: IWindowPartContext["growViewDock"];
|
|
746
|
+
/**
|
|
747
|
+
* Stands in for {@link IWindowPartContext.onViewClosed}. Records each
|
|
748
|
+
* listener, which {@link FakeWindowPartContext.raiseViewClosed} calls and
|
|
749
|
+
* {@link Fake.activeCallsOf} lists until the disposer it returns runs; it
|
|
750
|
+
* takes no answer.
|
|
751
|
+
*
|
|
752
|
+
* @example
|
|
753
|
+
* ```ts
|
|
754
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
755
|
+
*
|
|
756
|
+
* export function activeOnViewClosed(fake: FakeWindowPartContext): number {
|
|
757
|
+
* return fake.activeCallsOf("onViewClosed").length;
|
|
758
|
+
* }
|
|
759
|
+
* ```
|
|
760
|
+
*/
|
|
761
|
+
readonly onViewClosed: IWindowPartContext["onViewClosed"];
|
|
762
|
+
/**
|
|
763
|
+
* Stands in for {@link IWindowPartContext.showInDialogAsync}. Records each
|
|
764
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
765
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
766
|
+
* rejects rather than the call throwing.
|
|
767
|
+
*
|
|
768
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
769
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
770
|
+
* real member fails.
|
|
771
|
+
*
|
|
772
|
+
* @example
|
|
773
|
+
* ```ts
|
|
774
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
775
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
776
|
+
*
|
|
777
|
+
* export function answerShowInDialogAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["showInDialogAsync"]>>): void {
|
|
778
|
+
* fake.answer("showInDialogAsync", () => Promise.resolve(value));
|
|
779
|
+
* }
|
|
780
|
+
* ```
|
|
781
|
+
*/
|
|
782
|
+
readonly showInDialogAsync: IWindowPartContext["showInDialogAsync"];
|
|
783
|
+
/**
|
|
784
|
+
* Stands in for {@link IWindowPartContext.log}. Records each call, which
|
|
785
|
+
* {@link Fake.callsOf} reads, and calls the answer that {@link Fake.answer}
|
|
786
|
+
* gives; while unanswered, it only records the call.
|
|
787
|
+
*
|
|
788
|
+
* @example
|
|
789
|
+
* ```ts
|
|
790
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
791
|
+
*
|
|
792
|
+
* export function heardLog(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
793
|
+
* const heard: unknown[][] = [];
|
|
794
|
+
* fake.answer("log", (...args) => {
|
|
795
|
+
* heard.push(args);
|
|
796
|
+
* });
|
|
797
|
+
* return heard;
|
|
798
|
+
* }
|
|
799
|
+
* ```
|
|
800
|
+
*/
|
|
801
|
+
readonly log: IWindowPartContext["log"];
|
|
802
|
+
/**
|
|
803
|
+
* Stands in for {@link IWindowPartContext.openLinkAsync}. Records each call,
|
|
804
|
+
* which {@link Fake.callsOf} reads, and returns what the answer that
|
|
805
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
806
|
+
* rejects rather than the call throwing.
|
|
807
|
+
*
|
|
808
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
809
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
810
|
+
* real member fails.
|
|
811
|
+
*
|
|
812
|
+
* @example
|
|
813
|
+
* ```ts
|
|
814
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
815
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
816
|
+
*
|
|
817
|
+
* export function answerOpenLinkAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["openLinkAsync"]>>): void {
|
|
818
|
+
* fake.answer("openLinkAsync", () => Promise.resolve(value));
|
|
819
|
+
* }
|
|
820
|
+
* ```
|
|
821
|
+
*/
|
|
822
|
+
readonly openLinkAsync: IWindowPartContext["openLinkAsync"];
|
|
823
|
+
/**
|
|
824
|
+
* Stands in for {@link IWindowPartContext.showLinkMenu}. Records each call,
|
|
825
|
+
* which {@link Fake.callsOf} reads, and calls the answer that
|
|
826
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
827
|
+
*
|
|
828
|
+
* @example
|
|
829
|
+
* ```ts
|
|
830
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
831
|
+
*
|
|
832
|
+
* export function heardShowLinkMenu(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
833
|
+
* const heard: unknown[][] = [];
|
|
834
|
+
* fake.answer("showLinkMenu", (...args) => {
|
|
835
|
+
* heard.push(args);
|
|
836
|
+
* });
|
|
837
|
+
* return heard;
|
|
838
|
+
* }
|
|
839
|
+
* ```
|
|
840
|
+
*/
|
|
841
|
+
readonly showLinkMenu: IWindowPartContext["showLinkMenu"];
|
|
842
|
+
/**
|
|
843
|
+
* Stands in for {@link IWindowPartContext.registerInAppBrowser}. Records each
|
|
844
|
+
* registration, which {@link Fake.activeCallsOf} lists until the disposer it
|
|
845
|
+
* returns runs; it takes no answer.
|
|
846
|
+
*
|
|
847
|
+
* @example
|
|
848
|
+
* ```ts
|
|
849
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
850
|
+
*
|
|
851
|
+
* export function activeRegisterInAppBrowser(fake: FakeWindowPartContext): number {
|
|
852
|
+
* return fake.activeCallsOf("registerInAppBrowser").length;
|
|
853
|
+
* }
|
|
854
|
+
* ```
|
|
855
|
+
*/
|
|
856
|
+
readonly registerInAppBrowser: IWindowPartContext["registerInAppBrowser"];
|
|
857
|
+
/**
|
|
858
|
+
* Stands in for {@link IWindowPartContext.showInFolderAsync}. Records each
|
|
859
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
860
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
861
|
+
* rejects rather than the call throwing.
|
|
862
|
+
*
|
|
863
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
864
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
865
|
+
* real member fails.
|
|
866
|
+
*
|
|
867
|
+
* @example
|
|
868
|
+
* ```ts
|
|
869
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
870
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
871
|
+
*
|
|
872
|
+
* export function answerShowInFolderAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["showInFolderAsync"]>>): void {
|
|
873
|
+
* fake.answer("showInFolderAsync", () => Promise.resolve(value));
|
|
874
|
+
* }
|
|
875
|
+
* ```
|
|
876
|
+
*/
|
|
877
|
+
readonly showInFolderAsync: IWindowPartContext["showInFolderAsync"];
|
|
878
|
+
/**
|
|
879
|
+
* Stands in for {@link IWindowPartContext.openFileAsync}. Records each call,
|
|
880
|
+
* which {@link Fake.callsOf} reads, and returns what the answer that
|
|
881
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
882
|
+
* rejects rather than the call throwing.
|
|
883
|
+
*
|
|
884
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
885
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
886
|
+
* real member fails.
|
|
887
|
+
*
|
|
888
|
+
* @example
|
|
889
|
+
* ```ts
|
|
890
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
891
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
892
|
+
*
|
|
893
|
+
* export function answerOpenFileAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["openFileAsync"]>>): void {
|
|
894
|
+
* fake.answer("openFileAsync", () => Promise.resolve(value));
|
|
895
|
+
* }
|
|
896
|
+
* ```
|
|
897
|
+
*/
|
|
898
|
+
readonly openFileAsync: IWindowPartContext["openFileAsync"];
|
|
899
|
+
/**
|
|
900
|
+
* Stands in for {@link IWindowPartContext.chooseFolderAsync}. Records each
|
|
901
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
902
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
903
|
+
* rejects rather than the call throwing.
|
|
904
|
+
*
|
|
905
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
906
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
907
|
+
* real member fails.
|
|
908
|
+
*
|
|
909
|
+
* @example
|
|
910
|
+
* ```ts
|
|
911
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
912
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
913
|
+
*
|
|
914
|
+
* export function answerChooseFolderAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["chooseFolderAsync"]>>): void {
|
|
915
|
+
* fake.answer("chooseFolderAsync", () => Promise.resolve(value));
|
|
916
|
+
* }
|
|
917
|
+
* ```
|
|
918
|
+
*/
|
|
919
|
+
readonly chooseFolderAsync: IWindowPartContext["chooseFolderAsync"];
|
|
920
|
+
/**
|
|
921
|
+
* Stands in for {@link IWindowPartContext.chooseFilePathAsync}. Records each
|
|
922
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
923
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
924
|
+
* rejects rather than the call throwing.
|
|
925
|
+
*
|
|
926
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
927
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
928
|
+
* real member fails.
|
|
929
|
+
*
|
|
930
|
+
* @example
|
|
931
|
+
* ```ts
|
|
932
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
933
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
934
|
+
*
|
|
935
|
+
* export function answerChooseFilePathAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["chooseFilePathAsync"]>>): void {
|
|
936
|
+
* fake.answer("chooseFilePathAsync", () => Promise.resolve(value));
|
|
937
|
+
* }
|
|
938
|
+
* ```
|
|
939
|
+
*/
|
|
940
|
+
readonly chooseFilePathAsync: IWindowPartContext["chooseFilePathAsync"];
|
|
941
|
+
/**
|
|
942
|
+
* Stands in for {@link IWindowPartContext.saveFileAsync}. Records each call,
|
|
943
|
+
* which {@link Fake.callsOf} reads, and returns what the answer that
|
|
944
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
945
|
+
* rejects rather than the call throwing.
|
|
946
|
+
*
|
|
947
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
948
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
949
|
+
* real member fails.
|
|
950
|
+
*
|
|
951
|
+
* @example
|
|
952
|
+
* ```ts
|
|
953
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
954
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
955
|
+
*
|
|
956
|
+
* export function answerSaveFileAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["saveFileAsync"]>>): void {
|
|
957
|
+
* fake.answer("saveFileAsync", () => Promise.resolve(value));
|
|
958
|
+
* }
|
|
959
|
+
* ```
|
|
960
|
+
*/
|
|
961
|
+
readonly saveFileAsync: IWindowPartContext["saveFileAsync"];
|
|
962
|
+
/**
|
|
963
|
+
* Stands in for {@link IWindowPartContext.chooseFilesAsync}. Records each
|
|
964
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
965
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
966
|
+
* rejects rather than the call throwing.
|
|
967
|
+
*
|
|
968
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
969
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
970
|
+
* real member fails.
|
|
971
|
+
*
|
|
972
|
+
* @example
|
|
973
|
+
* ```ts
|
|
974
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
975
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
976
|
+
*
|
|
977
|
+
* export function answerChooseFilesAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["chooseFilesAsync"]>>): void {
|
|
978
|
+
* fake.answer("chooseFilesAsync", () => Promise.resolve(value));
|
|
979
|
+
* }
|
|
980
|
+
* ```
|
|
981
|
+
*/
|
|
982
|
+
readonly chooseFilesAsync: IWindowPartContext["chooseFilesAsync"];
|
|
983
|
+
/**
|
|
984
|
+
* Stands in for {@link IWindowPartContext.grantFilesAsync}. Records each
|
|
985
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
986
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
987
|
+
* rejects rather than the call throwing.
|
|
988
|
+
*
|
|
989
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
990
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
991
|
+
* real member fails.
|
|
992
|
+
*
|
|
993
|
+
* @example
|
|
994
|
+
* ```ts
|
|
995
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
996
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
997
|
+
*
|
|
998
|
+
* export function answerGrantFilesAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["grantFilesAsync"]>>): void {
|
|
999
|
+
* fake.answer("grantFilesAsync", () => Promise.resolve(value));
|
|
1000
|
+
* }
|
|
1001
|
+
* ```
|
|
1002
|
+
*/
|
|
1003
|
+
readonly grantFilesAsync: IWindowPartContext["grantFilesAsync"];
|
|
1004
|
+
/**
|
|
1005
|
+
* Stands in for {@link IWindowPartContext.discardFileGrants}. Records each
|
|
1006
|
+
* call, which {@link Fake.callsOf} reads, and calls the answer that
|
|
1007
|
+
* {@link Fake.answer} gives; while unanswered, it only records the call.
|
|
1008
|
+
*
|
|
1009
|
+
* @example
|
|
1010
|
+
* ```ts
|
|
1011
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1012
|
+
*
|
|
1013
|
+
* export function heardDiscardFileGrants(fake: FakeWindowPartContext): readonly unknown[][] {
|
|
1014
|
+
* const heard: unknown[][] = [];
|
|
1015
|
+
* fake.answer("discardFileGrants", (...args) => {
|
|
1016
|
+
* heard.push(args);
|
|
1017
|
+
* });
|
|
1018
|
+
* return heard;
|
|
1019
|
+
* }
|
|
1020
|
+
* ```
|
|
1021
|
+
*/
|
|
1022
|
+
readonly discardFileGrants: IWindowPartContext["discardFileGrants"];
|
|
1023
|
+
/**
|
|
1024
|
+
* Stands in for {@link IWindowPartContext.fileAddressOf}. Records each call,
|
|
1025
|
+
* which {@link Fake.callsOf} reads, and returns what the answer that
|
|
1026
|
+
* {@link Fake.answer} gives returns.
|
|
1027
|
+
*
|
|
1028
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
1029
|
+
* the test has given it no answer.
|
|
1030
|
+
*
|
|
1031
|
+
* @example
|
|
1032
|
+
* ```ts
|
|
1033
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1034
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1035
|
+
*
|
|
1036
|
+
* export function answerFileAddressOf(fake: FakeWindowPartContext, value: ReturnType<IWindowPartContext["fileAddressOf"]>): void {
|
|
1037
|
+
* fake.answer("fileAddressOf", () => value);
|
|
1038
|
+
* }
|
|
1039
|
+
* ```
|
|
1040
|
+
*/
|
|
1041
|
+
readonly fileAddressOf: IWindowPartContext["fileAddressOf"];
|
|
1042
|
+
/**
|
|
1043
|
+
* Stands in for {@link IWindowPartContext.requestAsync}. Records each call,
|
|
1044
|
+
* which {@link Fake.callsOf} reads, and returns what the answer that
|
|
1045
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
1046
|
+
* rejects rather than the call throwing.
|
|
1047
|
+
*
|
|
1048
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
1049
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
1050
|
+
* real member fails.
|
|
1051
|
+
*
|
|
1052
|
+
* @example
|
|
1053
|
+
* ```ts
|
|
1054
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1055
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1056
|
+
*
|
|
1057
|
+
* export function answerRequestAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["requestAsync"]>>): void {
|
|
1058
|
+
* fake.answer("requestAsync", () => Promise.resolve(value));
|
|
1059
|
+
* }
|
|
1060
|
+
* ```
|
|
1061
|
+
*/
|
|
1062
|
+
readonly requestAsync: IWindowPartContext["requestAsync"];
|
|
1063
|
+
/**
|
|
1064
|
+
* Stands in for {@link IWindowPartContext.onEvent}. Records each listener,
|
|
1065
|
+
* which {@link FakeWindowPartContext.raiseEvent} calls and
|
|
1066
|
+
* {@link Fake.activeCallsOf} lists until the disposer it returns runs; it
|
|
1067
|
+
* takes no answer.
|
|
1068
|
+
*
|
|
1069
|
+
* @example
|
|
1070
|
+
* ```ts
|
|
1071
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1072
|
+
*
|
|
1073
|
+
* export function activeOnEvent(fake: FakeWindowPartContext): number {
|
|
1074
|
+
* return fake.activeCallsOf("onEvent").length;
|
|
1075
|
+
* }
|
|
1076
|
+
* ```
|
|
1077
|
+
*/
|
|
1078
|
+
readonly onEvent: IWindowPartContext["onEvent"];
|
|
1079
|
+
/**
|
|
1080
|
+
* Stands in for {@link IWindowPartContext.readSetting}. Records each call,
|
|
1081
|
+
* which {@link Fake.callsOf} reads, and returns what the answer that
|
|
1082
|
+
* {@link Fake.answer} gives returns.
|
|
1083
|
+
*
|
|
1084
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
1085
|
+
* the test has given it no answer.
|
|
1086
|
+
*
|
|
1087
|
+
* @example
|
|
1088
|
+
* ```ts
|
|
1089
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1090
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1091
|
+
*
|
|
1092
|
+
* export function answerReadSetting(fake: FakeWindowPartContext, value: ReturnType<IWindowPartContext["readSetting"]>): void {
|
|
1093
|
+
* fake.answer("readSetting", () => value);
|
|
1094
|
+
* }
|
|
1095
|
+
* ```
|
|
1096
|
+
*/
|
|
1097
|
+
readonly readSetting: IWindowPartContext["readSetting"];
|
|
1098
|
+
/**
|
|
1099
|
+
* Stands in for {@link IWindowPartContext.readSettingAsync}. Records each
|
|
1100
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
1101
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
1102
|
+
* rejects rather than the call throwing.
|
|
1103
|
+
*
|
|
1104
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
1105
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
1106
|
+
* real member fails.
|
|
1107
|
+
*
|
|
1108
|
+
* @example
|
|
1109
|
+
* ```ts
|
|
1110
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1111
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1112
|
+
*
|
|
1113
|
+
* export function answerReadSettingAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["readSettingAsync"]>>): void {
|
|
1114
|
+
* fake.answer("readSettingAsync", () => Promise.resolve(value));
|
|
1115
|
+
* }
|
|
1116
|
+
* ```
|
|
1117
|
+
*/
|
|
1118
|
+
readonly readSettingAsync: IWindowPartContext["readSettingAsync"];
|
|
1119
|
+
/**
|
|
1120
|
+
* Stands in for {@link IWindowPartContext.writeSettingAsync}. Records each
|
|
1121
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
1122
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
1123
|
+
* rejects rather than the call throwing.
|
|
1124
|
+
*
|
|
1125
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
1126
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
1127
|
+
* real member fails.
|
|
1128
|
+
*
|
|
1129
|
+
* @example
|
|
1130
|
+
* ```ts
|
|
1131
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1132
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1133
|
+
*
|
|
1134
|
+
* export function answerWriteSettingAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["writeSettingAsync"]>>): void {
|
|
1135
|
+
* fake.answer("writeSettingAsync", () => Promise.resolve(value));
|
|
1136
|
+
* }
|
|
1137
|
+
* ```
|
|
1138
|
+
*/
|
|
1139
|
+
readonly writeSettingAsync: IWindowPartContext["writeSettingAsync"];
|
|
1140
|
+
/**
|
|
1141
|
+
* Stands in for {@link IWindowPartContext.resetSettingAsync}. Records each
|
|
1142
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
1143
|
+
* {@link Fake.answer} gives returns; while unanswered, the promise it returns
|
|
1144
|
+
* rejects rather than the call throwing.
|
|
1145
|
+
*
|
|
1146
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
1147
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
1148
|
+
* real member fails.
|
|
1149
|
+
*
|
|
1150
|
+
* @example
|
|
1151
|
+
* ```ts
|
|
1152
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1153
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1154
|
+
*
|
|
1155
|
+
* export function answerResetSettingAsync(fake: FakeWindowPartContext, value: Awaited<ReturnType<IWindowPartContext["resetSettingAsync"]>>): void {
|
|
1156
|
+
* fake.answer("resetSettingAsync", () => Promise.resolve(value));
|
|
1157
|
+
* }
|
|
1158
|
+
* ```
|
|
1159
|
+
*/
|
|
1160
|
+
readonly resetSettingAsync: IWindowPartContext["resetSettingAsync"];
|
|
1161
|
+
/**
|
|
1162
|
+
* Stands in for {@link IWindowPartContext.onSettingChanged}. Records each
|
|
1163
|
+
* listener, which {@link FakeWindowPartContext.raiseSettingChanged} calls and
|
|
1164
|
+
* {@link Fake.activeCallsOf} lists until the disposer it returns runs; it
|
|
1165
|
+
* takes no answer.
|
|
1166
|
+
*
|
|
1167
|
+
* @example
|
|
1168
|
+
* ```ts
|
|
1169
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1170
|
+
*
|
|
1171
|
+
* export function activeOnSettingChanged(fake: FakeWindowPartContext): number {
|
|
1172
|
+
* return fake.activeCallsOf("onSettingChanged").length;
|
|
1173
|
+
* }
|
|
1174
|
+
* ```
|
|
1175
|
+
*/
|
|
1176
|
+
readonly onSettingChanged: IWindowPartContext["onSettingChanged"];
|
|
1177
|
+
/**
|
|
1178
|
+
* Stands in for {@link IWindowPartContext.isDependencyActive}. Records each
|
|
1179
|
+
* call, which {@link Fake.callsOf} reads, and returns what the answer that
|
|
1180
|
+
* {@link Fake.answer} gives returns.
|
|
1181
|
+
*
|
|
1182
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
1183
|
+
* the test has given it no answer.
|
|
1184
|
+
*
|
|
1185
|
+
* @example
|
|
1186
|
+
* ```ts
|
|
1187
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1188
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1189
|
+
*
|
|
1190
|
+
* export function answerIsDependencyActive(fake: FakeWindowPartContext, value: ReturnType<IWindowPartContext["isDependencyActive"]>): void {
|
|
1191
|
+
* fake.answer("isDependencyActive", () => value);
|
|
1192
|
+
* }
|
|
1193
|
+
* ```
|
|
1194
|
+
*/
|
|
1195
|
+
readonly isDependencyActive: IWindowPartContext["isDependencyActive"];
|
|
1196
|
+
/**
|
|
1197
|
+
* Stands in for {@link IWindowPartContext.onDependencyChanged}. Records each
|
|
1198
|
+
* listener, which {@link FakeWindowPartContext.raiseDependencyChanged} calls
|
|
1199
|
+
* and {@link Fake.activeCallsOf} lists until the disposer it returns runs; it
|
|
1200
|
+
* takes no answer.
|
|
1201
|
+
*
|
|
1202
|
+
* @example
|
|
1203
|
+
* ```ts
|
|
1204
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1205
|
+
*
|
|
1206
|
+
* export function activeOnDependencyChanged(fake: FakeWindowPartContext): number {
|
|
1207
|
+
* return fake.activeCallsOf("onDependencyChanged").length;
|
|
1208
|
+
* }
|
|
1209
|
+
* ```
|
|
1210
|
+
*/
|
|
1211
|
+
readonly onDependencyChanged: IWindowPartContext["onDependencyChanged"];
|
|
1212
|
+
/**
|
|
1213
|
+
* Stands in for {@link IWindowPartContext.agentControl}. Reads the value that
|
|
1214
|
+
* {@link Fake.answer} gives.
|
|
1215
|
+
*
|
|
1216
|
+
* @throws {UnansweredCallException} Synchronously, naming the member, while
|
|
1217
|
+
* the test has given it no answer.
|
|
1218
|
+
*
|
|
1219
|
+
* @example
|
|
1220
|
+
* ```ts
|
|
1221
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1222
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1223
|
+
*
|
|
1224
|
+
* export function answerAgentControl(fake: FakeWindowPartContext, value: IWindowPartContext["agentControl"]): void {
|
|
1225
|
+
* fake.answer("agentControl", value);
|
|
1226
|
+
* }
|
|
1227
|
+
* ```
|
|
1228
|
+
*/
|
|
1229
|
+
get agentControl(): Signal<AgentControlState | null>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Stands in for {@link IWindowPartContext.openBelowWindowRowAsync}. Records
|
|
1232
|
+
* each call, which {@link Fake.callsOf} reads, and returns what the answer
|
|
1233
|
+
* that {@link Fake.answer} gives returns; while unanswered, the promise it
|
|
1234
|
+
* returns rejects rather than the call throwing.
|
|
1235
|
+
*
|
|
1236
|
+
* @typeParam T The palette component's type.
|
|
1237
|
+
*
|
|
1238
|
+
* @param load Loads the palette component's type.
|
|
1239
|
+
*
|
|
1240
|
+
* @returns What the answer returns.
|
|
1241
|
+
*
|
|
1242
|
+
* @throws {UnansweredCallException} As the rejection of the promise it
|
|
1243
|
+
* returns, naming the member, while the test has given it no answer, as the
|
|
1244
|
+
* real member fails.
|
|
1245
|
+
*
|
|
1246
|
+
* @example
|
|
1247
|
+
* ```ts
|
|
1248
|
+
* import type { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1249
|
+
*
|
|
1250
|
+
* export function answerOpenBelowWindowRowAsync(fake: FakeWindowPartContext): void {
|
|
1251
|
+
* fake.answer("openBelowWindowRowAsync", () => Promise.resolve(null));
|
|
1252
|
+
* }
|
|
1253
|
+
* ```
|
|
1254
|
+
*/
|
|
1255
|
+
openBelowWindowRowAsync<T>(load: () => Promise<Type<T>>): Promise<IWindowPalette<T> | null>;
|
|
1256
|
+
/**
|
|
1257
|
+
* Tells each listener of {@link IWindowPartContext.onDocumentClosed} for the
|
|
1258
|
+
* document that one of its instances closed.
|
|
1259
|
+
*
|
|
1260
|
+
* As Noldova Desktop's own dispatch does, it calls each listener in place when
|
|
1261
|
+
* the call starts: one that an earlier one removes during the call is still
|
|
1262
|
+
* called, and one that throws stops no other: {@link Fake.errors} keeps what
|
|
1263
|
+
* it threw, where Noldova Desktop reports it in a place a test can't read.
|
|
1264
|
+
*
|
|
1265
|
+
* @param name The document's name.
|
|
1266
|
+
*
|
|
1267
|
+
* @param instance The instance that closed.
|
|
1268
|
+
*
|
|
1269
|
+
* @example
|
|
1270
|
+
* ```ts
|
|
1271
|
+
* import { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1272
|
+
*
|
|
1273
|
+
* export function closeNote(context: FakeWindowPartContext): void {
|
|
1274
|
+
* context.raiseDocumentClosed("notes.note", "note-1");
|
|
1275
|
+
* }
|
|
1276
|
+
* ```
|
|
1277
|
+
*/
|
|
1278
|
+
raiseDocumentClosed(name: string, instance: string): void;
|
|
1279
|
+
/**
|
|
1280
|
+
* Tells each listener of {@link IWindowPartContext.onTabRenamed} for the
|
|
1281
|
+
* document or view that the person renamed the tab of one of its instances.
|
|
1282
|
+
*
|
|
1283
|
+
* As Noldova Desktop's own dispatch does, it calls each listener in place when
|
|
1284
|
+
* the call starts: one that an earlier one removes during the call is still
|
|
1285
|
+
* called, and one that throws stops no other: {@link Fake.errors} keeps what
|
|
1286
|
+
* it threw, where Noldova Desktop reports it in a place a test can't read.
|
|
1287
|
+
*
|
|
1288
|
+
* @param name The document's or view's name.
|
|
1289
|
+
*
|
|
1290
|
+
* @param instance The instance whose tab was renamed.
|
|
1291
|
+
*
|
|
1292
|
+
* @param title The new title.
|
|
1293
|
+
*
|
|
1294
|
+
* @example
|
|
1295
|
+
* ```ts
|
|
1296
|
+
* import { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1297
|
+
*
|
|
1298
|
+
* export function renameSession(context: FakeWindowPartContext): void {
|
|
1299
|
+
* context.raiseTabRenamed("terminal.session", "session-1", "Build");
|
|
1300
|
+
* }
|
|
1301
|
+
* ```
|
|
1302
|
+
*/
|
|
1303
|
+
raiseTabRenamed(name: string, instance: string, title: string): void;
|
|
1304
|
+
/**
|
|
1305
|
+
* Tells each listener of {@link IWindowPartContext.onViewClosed} for the view
|
|
1306
|
+
* that one of its instances closed.
|
|
1307
|
+
*
|
|
1308
|
+
* As Noldova Desktop's own dispatch does, it calls each listener in place when
|
|
1309
|
+
* the call starts: one that an earlier one removes during the call is still
|
|
1310
|
+
* called, and one that throws stops no other: {@link Fake.errors} keeps what
|
|
1311
|
+
* it threw, where Noldova Desktop reports it in a place a test can't read.
|
|
1312
|
+
*
|
|
1313
|
+
* @param name The view's name.
|
|
1314
|
+
*
|
|
1315
|
+
* @param instance The instance that closed.
|
|
1316
|
+
*
|
|
1317
|
+
* @example
|
|
1318
|
+
* ```ts
|
|
1319
|
+
* import { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1320
|
+
*
|
|
1321
|
+
* export function closeSession(context: FakeWindowPartContext): void {
|
|
1322
|
+
* context.raiseViewClosed("terminal.session", "session-1");
|
|
1323
|
+
* }
|
|
1324
|
+
* ```
|
|
1325
|
+
*/
|
|
1326
|
+
raiseViewClosed(name: string, instance: string): void;
|
|
1327
|
+
/**
|
|
1328
|
+
* Tells each listener of {@link IWindowPartContext.onEvent} for the event
|
|
1329
|
+
* that the module's runtime part posted it.
|
|
1330
|
+
*
|
|
1331
|
+
* As Noldova Desktop's own dispatch does, it calls each listener in place when
|
|
1332
|
+
* the call starts: one that an earlier one removes during the call is still
|
|
1333
|
+
* called, and one that throws stops the rest, and its error comes out of this
|
|
1334
|
+
* call.
|
|
1335
|
+
*
|
|
1336
|
+
* @param name The event's name.
|
|
1337
|
+
*
|
|
1338
|
+
* @param payload What the event carries.
|
|
1339
|
+
*
|
|
1340
|
+
* @example
|
|
1341
|
+
* ```ts
|
|
1342
|
+
* import { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1343
|
+
*
|
|
1344
|
+
* export function postChanged(context: FakeWindowPartContext): void {
|
|
1345
|
+
* context.raiseEvent("git.changed", { folder: "/work" });
|
|
1346
|
+
* }
|
|
1347
|
+
* ```
|
|
1348
|
+
*/
|
|
1349
|
+
raiseEvent(name: string, payload: JsonValue): void;
|
|
1350
|
+
/**
|
|
1351
|
+
* Tells each listener of {@link IWindowPartContext.onSettingChanged} for the
|
|
1352
|
+
* setting that its value changed.
|
|
1353
|
+
*
|
|
1354
|
+
* As Noldova Desktop's own dispatch does, it calls each listener in place when
|
|
1355
|
+
* the call starts: one that an earlier one removes during the call is still
|
|
1356
|
+
* called, and one that throws stops the rest, and its error comes out of this
|
|
1357
|
+
* call.
|
|
1358
|
+
*
|
|
1359
|
+
* @param name The setting's name.
|
|
1360
|
+
*
|
|
1361
|
+
* @param value The setting's value now.
|
|
1362
|
+
*
|
|
1363
|
+
* @param scope The scope whose value changed, or null for the person's own.
|
|
1364
|
+
*
|
|
1365
|
+
* @param isSet Whether the scope sets the value itself, rather than taking
|
|
1366
|
+
* its parent's.
|
|
1367
|
+
*
|
|
1368
|
+
* @example
|
|
1369
|
+
* ```ts
|
|
1370
|
+
* import { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1371
|
+
*
|
|
1372
|
+
* export function chooseDark(context: FakeWindowPartContext): void {
|
|
1373
|
+
* context.raiseSettingChanged("terminal.theme", "dark", null, true);
|
|
1374
|
+
* }
|
|
1375
|
+
* ```
|
|
1376
|
+
*/
|
|
1377
|
+
raiseSettingChanged(name: string, value: JsonValue, scope: SettingScope | null, isSet: boolean): void;
|
|
1378
|
+
/**
|
|
1379
|
+
* Tells each listener of {@link IWindowPartContext.onDependencyChanged} that
|
|
1380
|
+
* an optional dependency became active or stopped.
|
|
1381
|
+
*
|
|
1382
|
+
* As Noldova Desktop's own dispatch does, it skips a listener that an earlier
|
|
1383
|
+
* one removes during the call, and one that throws stops no other:
|
|
1384
|
+
* {@link Fake.errors} keeps what it threw, where Noldova Desktop reports it in a
|
|
1385
|
+
* place a test can't read.
|
|
1386
|
+
*
|
|
1387
|
+
* @param moduleId The dependency's id.
|
|
1388
|
+
*
|
|
1389
|
+
* @param isActive Whether it is active now.
|
|
1390
|
+
*
|
|
1391
|
+
* @example
|
|
1392
|
+
* ```ts
|
|
1393
|
+
* import { FakeWindowPartContext } from "@noldova/desktop.window/testing";
|
|
1394
|
+
*
|
|
1395
|
+
* export function stopGit(context: FakeWindowPartContext): void {
|
|
1396
|
+
* context.raiseDependencyChanged("git", false);
|
|
1397
|
+
* }
|
|
1398
|
+
* ```
|
|
1399
|
+
*/
|
|
1400
|
+
raiseDependencyChanged(moduleId: string, isActive: boolean): void;
|
|
1401
|
+
protected parts(): readonly Pick<Fake<object>, "beStrict">[];
|
|
1402
|
+
}
|