@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,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { DestroyRef, ErrorHandler, Injectable, inject, signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { UpdateState } from "../models/update-state.js";
|
|
11
|
+
import { Resources } from "../../resources.js";
|
|
12
|
+
import { PreloadBridgeService } from "./preload-bridge.service.js";
|
|
13
|
+
import { SettingsPageService } from "./settings-page.service.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class UpdateService {
|
|
16
|
+
bridge = inject(PreloadBridgeService);
|
|
17
|
+
errors = inject(ErrorHandler);
|
|
18
|
+
pages = inject(SettingsPageService);
|
|
19
|
+
stateValue = signal(UpdateState.off, /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "stateValue" }] : /* istanbul ignore next */ []));
|
|
21
|
+
updatesSeen = 0;
|
|
22
|
+
state = this.stateValue.asReadonly();
|
|
23
|
+
constructor() {
|
|
24
|
+
inject(DestroyRef).onDestroy(this.bridge.onUpdate(t => {
|
|
25
|
+
this.updatesSeen++;
|
|
26
|
+
this.stateValue.set(t);
|
|
27
|
+
}));
|
|
28
|
+
const seen = this.updatesSeen;
|
|
29
|
+
this.bridge.readUpdateAsync().then(t => {
|
|
30
|
+
if (this.updatesSeen === seen)
|
|
31
|
+
this.stateValue.set(t);
|
|
32
|
+
}).catch((error) => this.errors.handleError(error));
|
|
33
|
+
}
|
|
34
|
+
act(action) {
|
|
35
|
+
this.bridge.actOnUpdateAsync(action).catch((error) => this.errors.handleError(error));
|
|
36
|
+
}
|
|
37
|
+
openAbout() {
|
|
38
|
+
this.pages.open(Resources.aboutPage);
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: UpdateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
41
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: UpdateService, providedIn: "root" });
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: UpdateService, decorators: [{
|
|
44
|
+
type: Injectable,
|
|
45
|
+
args: [{ providedIn: "root" }]
|
|
46
|
+
}], ctorParameters: () => [] });
|
|
47
|
+
//# sourceMappingURL=update.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/update.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAoC,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvH,OAAO,uBAAuB,CAAC;AAG/B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAA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AAS;QACd,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;uGA3BU,aAAa;2GAAb,aAAa,cADA,MAAM;;2FACnB,aAAa;kBADzB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Signal } from "@angular/core";
|
|
2
|
+
import "@noldova/context.core";
|
|
3
|
+
import type { Tab } from "../models/layout/tab.js";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ViewDialogService {
|
|
6
|
+
private readonly dialogs;
|
|
7
|
+
private readonly layout;
|
|
8
|
+
private readonly labels;
|
|
9
|
+
private readonly tabFocus;
|
|
10
|
+
private readonly startup;
|
|
11
|
+
private readonly shownValue;
|
|
12
|
+
private dialog;
|
|
13
|
+
private wasOpen;
|
|
14
|
+
private shownAfter;
|
|
15
|
+
private focusedAfter;
|
|
16
|
+
readonly shown: Signal<Tab | null>;
|
|
17
|
+
constructor();
|
|
18
|
+
canShow(tab: Tab): boolean;
|
|
19
|
+
showAsync(tab: Tab, title?: string | null): Promise<void>;
|
|
20
|
+
ownsCommand(name: string): boolean;
|
|
21
|
+
close(): void;
|
|
22
|
+
openInMainWindow(tab: Tab): void;
|
|
23
|
+
private leaveFor;
|
|
24
|
+
private isShowable;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewDialogService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Injectable, effect, inject, signal, untracked } from "@angular/core";
|
|
2
|
+
import "@noldova/context.core";
|
|
3
|
+
import { DialogService } from "@noldova/ui.components.angular";
|
|
4
|
+
import { ArgumentException } from "@noldova/context.exceptions";
|
|
5
|
+
import { QualifiedName } from "@noldova/desktop.protocol";
|
|
6
|
+
import { ViewDialogComponent } from "../components/view-dialog/view-dialog.component.js";
|
|
7
|
+
import { ViewDialogRefusal } from "../enums/view-dialog-refusal.js";
|
|
8
|
+
import { ViewDialogException } from "../exceptions/view-dialog.exception.js";
|
|
9
|
+
import { DocumentTab } from "../models/layout/document-tab.js";
|
|
10
|
+
import { Resources } from "../../resources.js";
|
|
11
|
+
import { LayoutService } from "./layout.service.js";
|
|
12
|
+
import { StartupService } from "./startup.service.js";
|
|
13
|
+
import { TabFocusService } from "./tab-focus.service.js";
|
|
14
|
+
import { TabLabelService } from "./tab-label.service.js";
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export class ViewDialogService {
|
|
17
|
+
dialogs = inject(DialogService);
|
|
18
|
+
layout = inject(LayoutService);
|
|
19
|
+
labels = inject(TabLabelService);
|
|
20
|
+
tabFocus = inject(TabFocusService);
|
|
21
|
+
startup = inject(StartupService);
|
|
22
|
+
shownValue = signal(null, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "shownValue" }] : /* istanbul ignore next */ []));
|
|
24
|
+
dialog = null;
|
|
25
|
+
wasOpen = false;
|
|
26
|
+
shownAfter = 0;
|
|
27
|
+
focusedAfter = null;
|
|
28
|
+
shown = this.shownValue.asReadonly();
|
|
29
|
+
constructor() {
|
|
30
|
+
effect(() => {
|
|
31
|
+
const tab = this.shownValue();
|
|
32
|
+
if (!Object.isNull(tab) && !this.isShowable(tab))
|
|
33
|
+
untracked(() => this.close());
|
|
34
|
+
});
|
|
35
|
+
effect(() => {
|
|
36
|
+
const reveal = this.layout.revealed();
|
|
37
|
+
if (!Object.isNull(reveal))
|
|
38
|
+
untracked(() => this.leaveFor(reveal));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
canShow(tab) {
|
|
42
|
+
return !this.dialogs.isOpen && !this.startup.isReconnecting() && tab.isAvailable(this.layout.registry());
|
|
43
|
+
}
|
|
44
|
+
showAsync(tab, title = null) {
|
|
45
|
+
if (this.dialogs.isOpen)
|
|
46
|
+
return Promise.reject(new ViewDialogException(ViewDialogRefusal.AlreadyOpen));
|
|
47
|
+
if (this.startup.isReconnecting())
|
|
48
|
+
return Promise.reject(new ViewDialogException(ViewDialogRefusal.Reconnecting));
|
|
49
|
+
if (!tab.isAvailable(this.layout.registry()))
|
|
50
|
+
return Promise.reject(new ArgumentException(tab instanceof DocumentTab ? Resources.formatUnregisteredDocument(tab.name) : Resources.formatUnregisteredView(tab.name), Resources.tabParameterName));
|
|
51
|
+
if (!Object.isNull(title))
|
|
52
|
+
this.labels.setTitle(tab, title);
|
|
53
|
+
this.wasOpen = this.layout.layout().isOpen(tab);
|
|
54
|
+
this.shownAfter = this.layout.revealed()?.sequence ?? 0;
|
|
55
|
+
this.shownValue.set(tab);
|
|
56
|
+
this.layout.hide(tab);
|
|
57
|
+
const dialog = this.dialogs.open(ViewDialogComponent);
|
|
58
|
+
this.dialog = dialog;
|
|
59
|
+
return new Promise(resolve => dialog.closed.subscribe(() => {
|
|
60
|
+
this.dialog = null;
|
|
61
|
+
this.shownValue.set(null);
|
|
62
|
+
this.layout.hide(null);
|
|
63
|
+
const focused = this.focusedAfter;
|
|
64
|
+
this.focusedAfter = null;
|
|
65
|
+
if (Object.isNull(focused))
|
|
66
|
+
this.tabFocus.focusIfLost(tab);
|
|
67
|
+
else
|
|
68
|
+
this.tabFocus.focus(focused);
|
|
69
|
+
resolve();
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
ownsCommand(name) {
|
|
73
|
+
const tab = this.shownValue();
|
|
74
|
+
if (Object.isNull(tab) || Object.isNull(this.dialog) || !this.dialogs.isTopmost(this.dialog))
|
|
75
|
+
return false;
|
|
76
|
+
const owner = QualifiedName.parse(tab.name);
|
|
77
|
+
return !owner.isShell && owner.owner === QualifiedName.parse(name).owner;
|
|
78
|
+
}
|
|
79
|
+
close() {
|
|
80
|
+
this.dialog?.close();
|
|
81
|
+
}
|
|
82
|
+
openInMainWindow(tab) {
|
|
83
|
+
if (this.layout.layout().isOpen(tab))
|
|
84
|
+
this.layout.activate(tab);
|
|
85
|
+
else
|
|
86
|
+
this.layout.openInCurrentGroup(tab);
|
|
87
|
+
this.focusedAfter = tab;
|
|
88
|
+
this.close();
|
|
89
|
+
}
|
|
90
|
+
leaveFor(reveal) {
|
|
91
|
+
if (Object.isNull(this.dialog) || reveal.sequence <= this.shownAfter || !(reveal.tab instanceof DocumentTab) || reveal.tab.equals(this.shownValue())
|
|
92
|
+
|| !this.layout.layout().isOpen(reveal.tab))
|
|
93
|
+
return;
|
|
94
|
+
this.focusedAfter = reveal.tab;
|
|
95
|
+
this.close();
|
|
96
|
+
}
|
|
97
|
+
isShowable(tab) {
|
|
98
|
+
return !this.startup.isReconnecting() && tab.isAvailable(this.layout.registry()) && (!this.wasOpen || this.layout.layout().isOpen(tab));
|
|
99
|
+
}
|
|
100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ViewDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
101
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ViewDialogService, providedIn: "root" });
|
|
102
|
+
}
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ViewDialogService, decorators: [{
|
|
104
|
+
type: Injectable,
|
|
105
|
+
args: [{ providedIn: "root" }]
|
|
106
|
+
}], ctorParameters: () => [] });
|
|
107
|
+
//# sourceMappingURL=view-dialog.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-dialog.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/view-dialog.service.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAoC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEhH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aA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CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;YAC3C,OAAO;QACT,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC;QAC/B,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAEO,UAAU,CAAC,GAAQ;QACzB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1I,CAAC;uGA3FU,iBAAiB;2GAAjB,iBAAiB,cADJ,MAAM;;2FACnB,iBAAiB;kBAD7B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "@noldova/context.core";
|
|
2
|
+
import type { DocumentHeading } from "../models/document-heading.js";
|
|
3
|
+
import { ViewTab } from "../models/layout/view-tab.js";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ViewInstancesService {
|
|
6
|
+
private readonly layout;
|
|
7
|
+
private readonly labels;
|
|
8
|
+
private readonly tabFocus;
|
|
9
|
+
private readonly viewDialogs;
|
|
10
|
+
private readonly closed;
|
|
11
|
+
constructor();
|
|
12
|
+
openInstance(name: string, instance: string, heading: DocumentHeading, icon: string | null, tabGroup: string | null): void;
|
|
13
|
+
restore(name: string, instance: string, heading: DocumentHeading, icon: string | null, tabGroup: string | null): void;
|
|
14
|
+
update(name: string, instance: string, title: string | null, icon: string | null, breadcrumb: readonly string[] | null, breadcrumbIcon?: string | null): void;
|
|
15
|
+
close(name: string, instance: string): void;
|
|
16
|
+
reconcile(names: ReadonlySet<string>, kept: ReadonlySet<string>): void;
|
|
17
|
+
reveal(tab: ViewTab): void;
|
|
18
|
+
show(tab: ViewTab): void;
|
|
19
|
+
hideDock(tab: ViewTab): void;
|
|
20
|
+
onClosed(name: string, listener: (instance: string) => void): () => void;
|
|
21
|
+
private label;
|
|
22
|
+
private sideOf;
|
|
23
|
+
private groupFor;
|
|
24
|
+
private closeQuietly;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewInstancesService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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 { ErrorHandler, Injectable, effect, inject } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { ClosedTabs } from "../models/layout/closed-tabs.js";
|
|
11
|
+
import { TabDropTarget } from "../models/layout/tab-drop-target.js";
|
|
12
|
+
import { ViewTab } from "../models/layout/view-tab.js";
|
|
13
|
+
import { LayoutService } from "./layout.service.js";
|
|
14
|
+
import { TabFocusService } from "./tab-focus.service.js";
|
|
15
|
+
import { TabLabelService } from "./tab-label.service.js";
|
|
16
|
+
import { ViewDialogService } from "./view-dialog.service.js";
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
export class ViewInstancesService {
|
|
19
|
+
layout = inject(LayoutService);
|
|
20
|
+
labels = inject(TabLabelService);
|
|
21
|
+
tabFocus = inject(TabFocusService);
|
|
22
|
+
viewDialogs = inject(ViewDialogService);
|
|
23
|
+
closed = new ClosedTabs(ViewTab, inject(ErrorHandler));
|
|
24
|
+
constructor() {
|
|
25
|
+
effect(() => {
|
|
26
|
+
for (const key of this.closed.notice(this.layout.layout().groups.flatMap(t => t.tabs)))
|
|
27
|
+
this.labels.forget(key);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
openInstance(name, instance, heading, icon, tabGroup) {
|
|
31
|
+
const tab = this.label(name, instance, heading, icon);
|
|
32
|
+
this.closed.reopen(tab);
|
|
33
|
+
if (this.layout.layout().isOpen(tab)) {
|
|
34
|
+
this.layout.activate(tab);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const group = this.groupFor(tab, tabGroup);
|
|
38
|
+
if (Object.isNull(group))
|
|
39
|
+
this.layout.openView(tab);
|
|
40
|
+
else
|
|
41
|
+
this.layout.place(tab, new TabDropTarget(group.id, group.tabs.length));
|
|
42
|
+
this.layout.activate(tab);
|
|
43
|
+
}
|
|
44
|
+
restore(name, instance, heading, icon, tabGroup) {
|
|
45
|
+
const tab = new ViewTab(name, instance);
|
|
46
|
+
if (this.layout.layout().isOpen(tab))
|
|
47
|
+
this.label(name, instance, heading, icon);
|
|
48
|
+
else if (!this.closed.isUnheard(tab))
|
|
49
|
+
this.openInstance(name, instance, heading, icon, tabGroup);
|
|
50
|
+
}
|
|
51
|
+
update(name, instance, title, icon, breadcrumb, breadcrumbIcon = null) {
|
|
52
|
+
const tab = new ViewTab(name, instance);
|
|
53
|
+
if (!this.layout.layout().isOpen(tab))
|
|
54
|
+
return;
|
|
55
|
+
if (!Object.isNull(title) || !Object.isNull(breadcrumb))
|
|
56
|
+
this.labels.setHeading(tab, this.labels.headingOf(tab).with(title, breadcrumb, breadcrumbIcon));
|
|
57
|
+
if (!Object.isNull(icon))
|
|
58
|
+
this.labels.setIcon(tab, icon);
|
|
59
|
+
}
|
|
60
|
+
close(name, instance) {
|
|
61
|
+
this.closeQuietly(new ViewTab(name, instance));
|
|
62
|
+
}
|
|
63
|
+
reconcile(names, kept) {
|
|
64
|
+
for (const tab of this.layout.layout().groups.flatMap(t => t.tabs))
|
|
65
|
+
if (tab instanceof ViewTab && names.has(tab.name) && !kept.has(tab.key))
|
|
66
|
+
this.closeQuietly(tab);
|
|
67
|
+
this.closed.reconcile(names);
|
|
68
|
+
}
|
|
69
|
+
reveal(tab) {
|
|
70
|
+
if (!this.layout.layout().isOpen(tab))
|
|
71
|
+
this.layout.openView(tab);
|
|
72
|
+
this.layout.activate(tab);
|
|
73
|
+
const side = this.sideOf(tab);
|
|
74
|
+
if (!Object.isNull(side))
|
|
75
|
+
this.layout.keepOpen(side);
|
|
76
|
+
this.tabFocus.focus(tab);
|
|
77
|
+
}
|
|
78
|
+
show(tab) {
|
|
79
|
+
this.reveal(tab);
|
|
80
|
+
this.tabFocus.focusContent(tab);
|
|
81
|
+
}
|
|
82
|
+
hideDock(tab) {
|
|
83
|
+
const side = this.sideOf(tab);
|
|
84
|
+
if (!Object.isNull(side))
|
|
85
|
+
this.layout.hideDock(side);
|
|
86
|
+
}
|
|
87
|
+
onClosed(name, listener) {
|
|
88
|
+
return this.closed.onClosed(name, listener);
|
|
89
|
+
}
|
|
90
|
+
label(name, instance, heading, icon) {
|
|
91
|
+
const tab = new ViewTab(name, instance);
|
|
92
|
+
this.labels.setHeading(tab, heading);
|
|
93
|
+
if (!Object.isNull(icon))
|
|
94
|
+
this.labels.setIcon(tab, icon);
|
|
95
|
+
return tab;
|
|
96
|
+
}
|
|
97
|
+
sideOf(tab) {
|
|
98
|
+
const group = this.layout.layout().groupOf(tab);
|
|
99
|
+
return Object.isNull(group) ? null : this.layout.layout().sideOf(group.id);
|
|
100
|
+
}
|
|
101
|
+
groupFor(tab, tabGroup) {
|
|
102
|
+
const layout = this.layout.layout();
|
|
103
|
+
const given = layout.groups.find(t => t.id.toString() === tabGroup);
|
|
104
|
+
if (!Object.isUndefined(given))
|
|
105
|
+
return given;
|
|
106
|
+
const holders = layout.groups.filter(t => t.tabs.some(u => u instanceof ViewTab && u.name === tab.name));
|
|
107
|
+
const current = this.layout.currentGroup();
|
|
108
|
+
return holders.find(t => t.id === current.id) ?? holders[0] ?? null;
|
|
109
|
+
}
|
|
110
|
+
closeQuietly(tab) {
|
|
111
|
+
if (tab.equals(this.viewDialogs.shown()))
|
|
112
|
+
this.viewDialogs.close();
|
|
113
|
+
const group = this.layout.layout().groupOf(tab);
|
|
114
|
+
if (Object.isNull(group))
|
|
115
|
+
return;
|
|
116
|
+
this.closed.hush(tab);
|
|
117
|
+
this.layout.close(tab);
|
|
118
|
+
const next = this.layout.layout().group(group.id)?.active ?? this.layout.currentGroup().active;
|
|
119
|
+
if (!Object.isNull(next))
|
|
120
|
+
this.tabFocus.focusIfLost(next);
|
|
121
|
+
}
|
|
122
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ViewInstancesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
123
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ViewInstancesService, providedIn: "root" });
|
|
124
|
+
}
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ViewInstancesService, decorators: [{
|
|
126
|
+
type: Injectable,
|
|
127
|
+
args: [{ providedIn: "root" }]
|
|
128
|
+
}], ctorParameters: () => [] });
|
|
129
|
+
//# sourceMappingURL=view-instances.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-instances.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/view-instances.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,uBAAuB,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,O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C,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACvB,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC;QAC/F,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;uGArHU,oBAAoB;2GAApB,oBAAoB,cADP,MAAM;;2FACnB,oBAAoB;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Injector, type Type } from "@angular/core";
|
|
2
|
+
import "@noldova/context.core";
|
|
3
|
+
import type { JsonObject } from "@noldova/context.json";
|
|
4
|
+
import { type WebViewAction, type WebViewNavigation, type WebViewPane } from "@noldova/desktop.protocol";
|
|
5
|
+
import type { IWebViewFound } from "../interfaces/i-web-view-found.js";
|
|
6
|
+
import type { IWebViewLayer } from "../interfaces/i-web-view-layer.js";
|
|
7
|
+
import type { Tab } from "../models/layout/tab.js";
|
|
8
|
+
import { WebViewHandle } from "../models/web-view-handle.js";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class WebViewService {
|
|
11
|
+
private readonly bridge;
|
|
12
|
+
private readonly layout;
|
|
13
|
+
private readonly liveViews;
|
|
14
|
+
private readonly errors;
|
|
15
|
+
private readonly document;
|
|
16
|
+
private readonly application;
|
|
17
|
+
private readonly handles;
|
|
18
|
+
private shownTabs;
|
|
19
|
+
private isDragging;
|
|
20
|
+
constructor();
|
|
21
|
+
openAsync(moduleId: string, pane: WebViewPane, tab: Tab, profileKey: string, injector: Injector): Promise<WebViewHandle>;
|
|
22
|
+
mount(handle: WebViewHandle, host: HTMLElement): void;
|
|
23
|
+
show(handle: WebViewHandle): void;
|
|
24
|
+
hide(handle: WebViewHandle): void;
|
|
25
|
+
openLayerAsync<T>(handle: WebViewHandle, load: () => Promise<Type<T>>): Promise<IWebViewLayer<T>>;
|
|
26
|
+
navigateAsync(handle: WebViewHandle, url: string): Promise<WebViewNavigation>;
|
|
27
|
+
actAsync(handle: WebViewHandle, action: WebViewAction): Promise<WebViewNavigation>;
|
|
28
|
+
zoomAsync(handle: WebViewHandle, change: string | number | null): Promise<number>;
|
|
29
|
+
findAsync(handle: WebViewHandle, request: string | JsonObject): Promise<IWebViewFound>;
|
|
30
|
+
endFind(handle: WebViewHandle): void;
|
|
31
|
+
close(handle: WebViewHandle): void;
|
|
32
|
+
private createFrame;
|
|
33
|
+
private createGuest;
|
|
34
|
+
private attach;
|
|
35
|
+
private receive;
|
|
36
|
+
private follow;
|
|
37
|
+
private apply;
|
|
38
|
+
private applyVisibility;
|
|
39
|
+
private passThrough;
|
|
40
|
+
private applyPointerEvents;
|
|
41
|
+
private forget;
|
|
42
|
+
private remove;
|
|
43
|
+
private static style;
|
|
44
|
+
private static require;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebViewService, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,222 @@
|
|
|
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 { DOCUMENT } from "@angular/common";
|
|
9
|
+
import { ApplicationRef, DestroyRef, ErrorHandler, Injectable, effect, inject, untracked } from "@angular/core";
|
|
10
|
+
import "@noldova/context.core";
|
|
11
|
+
import { WebViewEventKind } from "@noldova/desktop.protocol";
|
|
12
|
+
import { WebViewClosedException } from "../exceptions/web-view-closed.exception.js";
|
|
13
|
+
import { WebViewNotOpenedException } from "../exceptions/web-view-not-opened.exception.js";
|
|
14
|
+
import { WebViewHandle } from "../models/web-view-handle.js";
|
|
15
|
+
import { WebViewLayer } from "../models/web-view-layer.js";
|
|
16
|
+
import { CommandService } from "./command.service.js";
|
|
17
|
+
import { LayoutService } from "./layout.service.js";
|
|
18
|
+
import { LiveViewService } from "./live-view.service.js";
|
|
19
|
+
import { PreloadBridgeService } from "./preload-bridge.service.js";
|
|
20
|
+
import { TabDragService } from "./tab-drag.service.js";
|
|
21
|
+
import { ToolbarDragService } from "./toolbar-drag.service.js";
|
|
22
|
+
import { Resources } from "../../resources.js";
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
export class WebViewService {
|
|
25
|
+
bridge = inject(PreloadBridgeService);
|
|
26
|
+
layout = inject(LayoutService);
|
|
27
|
+
liveViews = inject(LiveViewService);
|
|
28
|
+
errors = inject(ErrorHandler);
|
|
29
|
+
document = inject(DOCUMENT);
|
|
30
|
+
application = inject(ApplicationRef);
|
|
31
|
+
handles = new Map();
|
|
32
|
+
shownTabs = new Set();
|
|
33
|
+
isDragging = false;
|
|
34
|
+
constructor() {
|
|
35
|
+
const commands = inject(CommandService);
|
|
36
|
+
const tabDrag = inject(TabDragService);
|
|
37
|
+
const toolbarDrag = inject(ToolbarDragService);
|
|
38
|
+
const destroyRef = inject(DestroyRef);
|
|
39
|
+
destroyRef.onDestroy(this.bridge.onWebViewEvent(t => this.receive(t)));
|
|
40
|
+
destroyRef.onDestroy(this.bridge.onWebViewShortcut(t => commands.dispatch(t)));
|
|
41
|
+
effect(() => {
|
|
42
|
+
const keys = commands.shortcuts().viewKeys;
|
|
43
|
+
untracked(() => this.bridge.setWebViewShortcuts(keys));
|
|
44
|
+
});
|
|
45
|
+
effect(() => {
|
|
46
|
+
const layout = this.layout.layout();
|
|
47
|
+
const shown = this.liveViews.shownTabs();
|
|
48
|
+
untracked(() => this.follow(layout, shown));
|
|
49
|
+
});
|
|
50
|
+
effect(() => {
|
|
51
|
+
const isDragging = !Object.isNull(tabDrag.dragging()) || !Object.isNull(toolbarDrag.dragging());
|
|
52
|
+
untracked(() => this.passThrough(isDragging));
|
|
53
|
+
});
|
|
54
|
+
destroyRef.onDestroy(() => {
|
|
55
|
+
for (const handle of [...this.handles.values()])
|
|
56
|
+
this.close(handle);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async openAsync(moduleId, pane, tab, profileKey, injector) {
|
|
60
|
+
if (!this.layout.layout().isOpen(tab))
|
|
61
|
+
throw new WebViewNotOpenedException();
|
|
62
|
+
const opened = await this.bridge.openWebViewAsync(moduleId, pane, profileKey);
|
|
63
|
+
if (Object.isNull(opened))
|
|
64
|
+
throw new WebViewNotOpenedException();
|
|
65
|
+
const handle = new WebViewHandle(opened.view, tab, injector, this, this.createFrame(), this.createGuest(opened.partition));
|
|
66
|
+
handle.frame.append(handle.guest);
|
|
67
|
+
handle.guest.addEventListener(Resources.webViewAttachEvent, () => this.attach(handle));
|
|
68
|
+
this.handles.set(handle.id, handle);
|
|
69
|
+
this.applyVisibility(handle);
|
|
70
|
+
this.applyPointerEvents(handle);
|
|
71
|
+
if (!this.layout.layout().isOpen(tab)) {
|
|
72
|
+
this.close(handle);
|
|
73
|
+
throw new WebViewNotOpenedException();
|
|
74
|
+
}
|
|
75
|
+
return handle;
|
|
76
|
+
}
|
|
77
|
+
mount(handle, host) {
|
|
78
|
+
if (handle.frame.parentElement !== host)
|
|
79
|
+
host.append(handle.frame);
|
|
80
|
+
}
|
|
81
|
+
show(handle) {
|
|
82
|
+
for (const other of [...this.handles.values()].filter(t => t !== handle && t.moduleId === handle.moduleId && t.pane.equals(handle.pane))) {
|
|
83
|
+
other.isWanted = false;
|
|
84
|
+
this.apply(other);
|
|
85
|
+
}
|
|
86
|
+
handle.isWanted = true;
|
|
87
|
+
this.apply(handle);
|
|
88
|
+
}
|
|
89
|
+
hide(handle) {
|
|
90
|
+
handle.isWanted = false;
|
|
91
|
+
this.apply(handle);
|
|
92
|
+
}
|
|
93
|
+
async openLayerAsync(handle, load) {
|
|
94
|
+
const component = await load();
|
|
95
|
+
handle.layer?.close();
|
|
96
|
+
if (handle.isClosed)
|
|
97
|
+
throw new WebViewClosedException();
|
|
98
|
+
const layer = new WebViewLayer(handle.frame, component, handle.injector, this.application, () => {
|
|
99
|
+
handle.layer = null;
|
|
100
|
+
});
|
|
101
|
+
handle.layer = layer;
|
|
102
|
+
return layer;
|
|
103
|
+
}
|
|
104
|
+
async navigateAsync(handle, url) {
|
|
105
|
+
return WebViewService.require(handle.isClosed ? null : await this.bridge.navigateWebViewAsync(handle.moduleId, handle.id, url));
|
|
106
|
+
}
|
|
107
|
+
async actAsync(handle, action) {
|
|
108
|
+
return WebViewService.require(handle.isClosed ? null : await this.bridge.actOnWebViewAsync(handle.moduleId, handle.id, action));
|
|
109
|
+
}
|
|
110
|
+
async zoomAsync(handle, change) {
|
|
111
|
+
return WebViewService.require(handle.isClosed ? null : await this.bridge.zoomWebViewAsync(handle.moduleId, handle.id, change));
|
|
112
|
+
}
|
|
113
|
+
async findAsync(handle, request) {
|
|
114
|
+
return WebViewService.require(handle.isClosed ? null : await this.bridge.findInWebViewAsync(handle.moduleId, handle.id, request));
|
|
115
|
+
}
|
|
116
|
+
endFind(handle) {
|
|
117
|
+
if (handle.isClosed)
|
|
118
|
+
return;
|
|
119
|
+
const request = { [Resources.webViewTextField]: String.empty, [Resources.webViewMatchCaseField]: false };
|
|
120
|
+
void this.bridge.findInWebViewAsync(handle.moduleId, handle.id, request).catch((error) => this.errors.handleError(error));
|
|
121
|
+
}
|
|
122
|
+
close(handle) {
|
|
123
|
+
if (!handle.end())
|
|
124
|
+
return;
|
|
125
|
+
this.bridge.closeWebView(handle.moduleId, handle.id);
|
|
126
|
+
this.remove(handle);
|
|
127
|
+
}
|
|
128
|
+
createFrame() {
|
|
129
|
+
const frame = this.document.createElement(Resources.divElement);
|
|
130
|
+
frame.className = Resources.webViewFrameClass;
|
|
131
|
+
WebViewService.style(frame, Resources.webViewFrameStyle);
|
|
132
|
+
return frame;
|
|
133
|
+
}
|
|
134
|
+
createGuest(partition) {
|
|
135
|
+
const guest = this.document.createElement(Resources.webViewElement);
|
|
136
|
+
guest.className = Resources.webViewGuestClass;
|
|
137
|
+
WebViewService.style(guest, Resources.webViewGuestStyle);
|
|
138
|
+
guest.setAttribute(Resources.webViewPartitionAttribute, partition);
|
|
139
|
+
guest.setAttribute(Resources.webViewSourceAttribute, Resources.webViewStartAddress);
|
|
140
|
+
guest.setAttribute(Resources.webViewPopupsAttribute, String.empty);
|
|
141
|
+
return guest;
|
|
142
|
+
}
|
|
143
|
+
attach(handle) {
|
|
144
|
+
if (handle.isClosed)
|
|
145
|
+
return;
|
|
146
|
+
void this.bridge.attachWebViewAsync(handle.moduleId, handle.id, handle.guest.getWebContentsId()).then(isAttached => {
|
|
147
|
+
if (!isAttached)
|
|
148
|
+
this.close(handle);
|
|
149
|
+
}).catch((error) => this.errors.handleError(error));
|
|
150
|
+
}
|
|
151
|
+
receive(event) {
|
|
152
|
+
const handle = this.handles.get(event.view);
|
|
153
|
+
if (Object.isUndefined(handle) || handle.moduleId !== event.module)
|
|
154
|
+
return;
|
|
155
|
+
try {
|
|
156
|
+
handle.receive(event);
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
this.errors.handleError(error);
|
|
160
|
+
}
|
|
161
|
+
if (event.kind === WebViewEventKind.Closed)
|
|
162
|
+
this.forget(handle);
|
|
163
|
+
}
|
|
164
|
+
follow(layout, shownTabs) {
|
|
165
|
+
this.shownTabs = shownTabs;
|
|
166
|
+
for (const handle of [...this.handles.values()]) {
|
|
167
|
+
if (layout.isOpen(handle.tab))
|
|
168
|
+
this.apply(handle);
|
|
169
|
+
else
|
|
170
|
+
this.close(handle);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
apply(handle) {
|
|
174
|
+
const isShown = handle.isWanted && this.shownTabs.has(handle.tab.key);
|
|
175
|
+
if (isShown === handle.isShown)
|
|
176
|
+
return;
|
|
177
|
+
handle.isShown = isShown;
|
|
178
|
+
this.applyVisibility(handle);
|
|
179
|
+
}
|
|
180
|
+
applyVisibility(handle) {
|
|
181
|
+
if (handle.isShown)
|
|
182
|
+
handle.frame.style.removeProperty(Resources.visibilityProperty);
|
|
183
|
+
else
|
|
184
|
+
handle.frame.style.setProperty(Resources.visibilityProperty, Resources.hiddenVisibility);
|
|
185
|
+
}
|
|
186
|
+
passThrough(isDragging) {
|
|
187
|
+
this.isDragging = isDragging;
|
|
188
|
+
for (const handle of [...this.handles.values()])
|
|
189
|
+
this.applyPointerEvents(handle);
|
|
190
|
+
}
|
|
191
|
+
applyPointerEvents(handle) {
|
|
192
|
+
if (this.isDragging)
|
|
193
|
+
handle.guest.style.setProperty(Resources.pointerEventsProperty, Resources.noPointerEvents);
|
|
194
|
+
else
|
|
195
|
+
handle.guest.style.removeProperty(Resources.pointerEventsProperty);
|
|
196
|
+
}
|
|
197
|
+
forget(handle) {
|
|
198
|
+
if (handle.end())
|
|
199
|
+
this.remove(handle);
|
|
200
|
+
}
|
|
201
|
+
remove(handle) {
|
|
202
|
+
this.handles.delete(handle.id);
|
|
203
|
+
handle.layer?.close();
|
|
204
|
+
handle.frame.remove();
|
|
205
|
+
}
|
|
206
|
+
static style(element, properties) {
|
|
207
|
+
for (const [name, value] of Object.entries(properties))
|
|
208
|
+
element.style.setProperty(name, value);
|
|
209
|
+
}
|
|
210
|
+
static require(answer) {
|
|
211
|
+
if (Object.isNull(answer))
|
|
212
|
+
throw new WebViewClosedException();
|
|
213
|
+
return answer;
|
|
214
|
+
}
|
|
215
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WebViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
216
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WebViewService, providedIn: "root" });
|
|
217
|
+
}
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WebViewService, decorators: [{
|
|
219
|
+
type: Injectable,
|
|
220
|
+
args: [{ providedIn: "root" }]
|
|
221
|
+
}], ctorParameters: () => [] });
|
|
222
|
+
//# sourceMappingURL=web-view.service.js.map
|