@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,43 @@
|
|
|
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 { Injectable, computed, inject } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { DatePattern, QualifiedName, SettingDefinition, SettingLocality, SettingOption, SettingType } from "@noldova/desktop.protocol";
|
|
11
|
+
import { ClockChoice } from "../enums/clock-choice.js";
|
|
12
|
+
import { Resources } from "../../resources.js";
|
|
13
|
+
import { SettingsService } from "./settings.service.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class ClockSettingService {
|
|
16
|
+
settings = inject(SettingsService);
|
|
17
|
+
timeFormat = computed(() => this.settings.values().get(Resources.timeFormatSetting), /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "timeFormat" }] : /* istanbul ignore next */ []));
|
|
19
|
+
isTimeSet = this.settings.isSet(Resources.timeFormatSetting);
|
|
20
|
+
isDateTimeSet = this.settings.isSet(Resources.dateTimeFormatSetting);
|
|
21
|
+
definition = new SettingDefinition(QualifiedName.parse(Resources.clockSetting), Resources.clockTitle, Resources.clockDescription, SettingType.choice(Object.values(ClockChoice).map(t => new SettingOption(t, Resources.clockTitles[t]))), ClockChoice.TwelveHour, SettingLocality.Shared, [], Resources.generalPage, Resources.dateTimeGroup);
|
|
22
|
+
value = computed(() => {
|
|
23
|
+
const pattern = this.timeFormat();
|
|
24
|
+
return Object.isString(pattern) && !DatePattern.isTwelveHour(pattern) ? ClockChoice.TwentyFourHour : ClockChoice.TwelveHour;
|
|
25
|
+
}, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
27
|
+
isSet = computed(() => this.isTimeSet() || this.isDateTimeSet(), /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "isSet" }] : /* istanbul ignore next */ []));
|
|
29
|
+
async chooseAsync(clock) {
|
|
30
|
+
const [time, dateTime] = Resources.clockFormats[clock === ClockChoice.TwentyFourHour ? ClockChoice.TwentyFourHour : ClockChoice.TwelveHour];
|
|
31
|
+
await Promise.all([this.settings.setAsync(Resources.timeFormatSetting, time), this.settings.setAsync(Resources.dateTimeFormatSetting, dateTime)]);
|
|
32
|
+
}
|
|
33
|
+
async resetAsync() {
|
|
34
|
+
await Promise.all([this.settings.resetAsync(Resources.timeFormatSetting), this.settings.resetAsync(Resources.dateTimeFormatSetting)]);
|
|
35
|
+
}
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ClockSettingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ClockSettingService, providedIn: "root" });
|
|
38
|
+
}
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ClockSettingService, decorators: [{
|
|
40
|
+
type: Injectable,
|
|
41
|
+
args: [{ providedIn: "root" }]
|
|
42
|
+
}] });
|
|
43
|
+
//# sourceMappingURL=clock-setting.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clock-setting.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/clock-setting.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEvI,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;;AAGxD,MAAM,OAAO,mBAAmB;IACb,QAAQ,GAAoB,MAAM,CAAC,eAAe,CAAC,CAAC;IACpD,UAAU,GAAkC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC;mFAAC,CAAC;IACpH,SAAS,GAAoB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9E,aAAa,GAAoB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAEvF,UAAU,GAAsB,IAAI,iBAAiB,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,gBAAgB,EACjK,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,aAAa,CAA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AAU,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IACxI,CAAC;uGAtBU,mBAAmB;2GAAnB,mBAAmB,cADN,MAAM;;2FACnB,mBAAmB;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IModuleSaver } from "../interfaces/i-module-saver.js";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ClosingService implements IModuleSaver {
|
|
4
|
+
private readonly parts;
|
|
5
|
+
private readonly layout;
|
|
6
|
+
private readonly statuses;
|
|
7
|
+
private readonly bridge;
|
|
8
|
+
private readonly errors;
|
|
9
|
+
saveAsync(): Promise<boolean>;
|
|
10
|
+
saveModulesAsync(moduleIds: ReadonlySet<string>, formatFailed: (moduleName: string) => string): Promise<boolean>;
|
|
11
|
+
saveForUpdateAsync(): Promise<readonly string[]>;
|
|
12
|
+
private saveAllAsync;
|
|
13
|
+
private saveLayoutAsync;
|
|
14
|
+
private savePartAsync;
|
|
15
|
+
private post;
|
|
16
|
+
private static runAsync;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClosingService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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, inject } from "@angular/core";
|
|
9
|
+
import { NotificationPost, NotificationSeverity, ShellMethods, ShellNotifications } from "@noldova/desktop.protocol";
|
|
10
|
+
import { PartSaveOutcome } from "../enums/part-save-outcome.js";
|
|
11
|
+
import { WindowPartSaveFailedForUpdateException } from "../exceptions/window-part-save-failed-for-update.exception.js";
|
|
12
|
+
import { WindowPartSaveFailedLateException } from "../exceptions/window-part-save-failed-late.exception.js";
|
|
13
|
+
import { WindowPartSaveFailedException } from "../exceptions/window-part-save-failed.exception.js";
|
|
14
|
+
import { ProductName } from "../models/product-name.js";
|
|
15
|
+
import { Resources } from "../../resources.js";
|
|
16
|
+
import { PreloadBridgeService } from "./preload-bridge.service.js";
|
|
17
|
+
import { LayoutService } from "./layout.service.js";
|
|
18
|
+
import { ModuleStatusService } from "./module-status.service.js";
|
|
19
|
+
import { WindowPartHostService } from "./window-part-host.service.js";
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export class ClosingService {
|
|
22
|
+
parts = inject(WindowPartHostService);
|
|
23
|
+
layout = inject(LayoutService);
|
|
24
|
+
statuses = inject(ModuleStatusService);
|
|
25
|
+
bridge = inject(PreloadBridgeService);
|
|
26
|
+
errors = inject(ErrorHandler);
|
|
27
|
+
async saveAsync() {
|
|
28
|
+
const outcomes = await this.saveAllAsync(false);
|
|
29
|
+
return outcomes.every(([, outcome]) => outcome !== PartSaveOutcome.Failed);
|
|
30
|
+
}
|
|
31
|
+
async saveModulesAsync(moduleIds, formatFailed) {
|
|
32
|
+
const saves = [...this.parts.listSaves()].filter(([moduleId]) => moduleIds.has(moduleId));
|
|
33
|
+
const outcomes = await Promise.all(saves.map(([moduleId, t]) => this.savePartAsync(moduleId, t, false, formatFailed)));
|
|
34
|
+
return outcomes.every(t => t !== PartSaveOutcome.Failed);
|
|
35
|
+
}
|
|
36
|
+
async saveForUpdateAsync() {
|
|
37
|
+
const outcomes = await this.saveAllAsync(true);
|
|
38
|
+
return outcomes.flatMap(([moduleId, outcome]) => {
|
|
39
|
+
const name = this.statuses.nameOf(moduleId);
|
|
40
|
+
return outcome === PartSaveOutcome.Saved ? []
|
|
41
|
+
: [outcome === PartSaveOutcome.Failed ? Resources.formatPartSaveFailedForUpdate(name) : Resources.formatPartSaveUnfinished(name)];
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async saveAllAsync(isUpdate) {
|
|
45
|
+
const [outcomes] = await Promise.all([
|
|
46
|
+
Promise.all([...this.parts.listSaves()].map(async ([moduleId, saves]) => [moduleId, await this.savePartAsync(moduleId, saves, isUpdate)])),
|
|
47
|
+
this.saveLayoutAsync()
|
|
48
|
+
]);
|
|
49
|
+
return outcomes;
|
|
50
|
+
}
|
|
51
|
+
async saveLayoutAsync() {
|
|
52
|
+
try {
|
|
53
|
+
await this.layout.saveAsync();
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
this.errors.handleError(error);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
async savePartAsync(moduleId, saves, isUpdate, formatFailed = t => Resources.formatPartSaveFailed(ProductName.current, t)) {
|
|
60
|
+
let timer;
|
|
61
|
+
const unfinished = new Promise(resolve => {
|
|
62
|
+
timer = setTimeout(() => resolve(false), Resources.partSaveTimeout);
|
|
63
|
+
});
|
|
64
|
+
const name = this.statuses.nameOf(moduleId);
|
|
65
|
+
const saving = Promise.all(saves.map(t => ClosingService.runAsync(t)));
|
|
66
|
+
try {
|
|
67
|
+
if (await Promise.race([saving.then(() => true), unfinished]))
|
|
68
|
+
return PartSaveOutcome.Saved;
|
|
69
|
+
saving.catch((error) => this.errors.handleError(new WindowPartSaveFailedLateException(moduleId, ProductName.current, error)));
|
|
70
|
+
this.bridge.logError(moduleId, isUpdate ? Resources.formatWindowPartSaveUnfinishedForUpdate(ProductName.current) : Resources.formatWindowPartSaveUnfinished(ProductName.current));
|
|
71
|
+
if (!isUpdate)
|
|
72
|
+
this.post(ShellNotifications.saveUnfinished, moduleId, Resources.formatPartSaveUnfinished(name), Resources.formatPartSaveUnfinishedText(ProductName.current), NotificationSeverity.Warning);
|
|
73
|
+
return PartSaveOutcome.Unfinished;
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
this.errors.handleError(isUpdate ? new WindowPartSaveFailedForUpdateException(moduleId, ProductName.current, error) : new WindowPartSaveFailedException(moduleId, ProductName.current, error));
|
|
77
|
+
if (!isUpdate)
|
|
78
|
+
this.post(ShellNotifications.saveFailed, moduleId, formatFailed(name), error instanceof Error ? error.message : String(error), NotificationSeverity.Error);
|
|
79
|
+
return PartSaveOutcome.Failed;
|
|
80
|
+
}
|
|
81
|
+
finally {
|
|
82
|
+
clearTimeout(timer);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
post(kind, moduleId, title, text, severity) {
|
|
86
|
+
this.bridge.requestAsync(ShellMethods.postNotification.text, new NotificationPost(kind, moduleId, title, text, severity, null, [], null).toJson())
|
|
87
|
+
.catch((error) => this.errors.handleError(error));
|
|
88
|
+
}
|
|
89
|
+
static async runAsync(save) {
|
|
90
|
+
await save();
|
|
91
|
+
}
|
|
92
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ClosingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
93
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ClosingService, providedIn: "root" });
|
|
94
|
+
}
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ClosingService, decorators: [{
|
|
96
|
+
type: Injectable,
|
|
97
|
+
args: [{ providedIn: "root" }]
|
|
98
|
+
}] });
|
|
99
|
+
//# sourceMappingURL=closing.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closing.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/closing.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAsB,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEzI,OAAO,EAAE,eAA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CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAEO,IAAI,CAAC,IAAmB,EAAE,QAAgB,EAAE,KAAa,EAAE,IAAY,EAAE,QAA8B;QAC7G,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC,gBAAgB,CAAC,IAAI,EAAE,IAAI,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;aAC/I,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/D,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAyB;QACrD,MAAM,IAAI,EAAE,CAAC;IACf,CAAC;uGA/EU,cAAc;2GAAd,cAAc,cADD,MAAM;;2FACnB,cAAc;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type Signal } from "@angular/core";
|
|
2
|
+
import "@noldova/context.core";
|
|
3
|
+
import type { JsonValue } from "@noldova/context.json";
|
|
4
|
+
import type { KeyChord } from "@noldova/desktop.protocol";
|
|
5
|
+
import type { ICommandKey } from "../interfaces/i-command-key.js";
|
|
6
|
+
import type { CommandContribution } from "../models/command-contribution.js";
|
|
7
|
+
import { KeyBindings } from "../models/key-bindings.js";
|
|
8
|
+
import { ShortcutMap } from "../models/shortcut-map.js";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class CommandService {
|
|
11
|
+
private readonly bridge;
|
|
12
|
+
private readonly errors;
|
|
13
|
+
private readonly dialogs;
|
|
14
|
+
private readonly viewDialogs;
|
|
15
|
+
private readonly shell;
|
|
16
|
+
private readonly startup;
|
|
17
|
+
private readonly shellCommands;
|
|
18
|
+
private readonly moduleCommands;
|
|
19
|
+
private readonly settingValues;
|
|
20
|
+
private readonly bindingsValue;
|
|
21
|
+
private readonly statuses;
|
|
22
|
+
readonly commands: Signal<readonly CommandContribution[]>;
|
|
23
|
+
readonly bindings: Signal<KeyBindings>;
|
|
24
|
+
readonly shortcuts: Signal<ShortcutMap>;
|
|
25
|
+
constructor();
|
|
26
|
+
setCommands(commands: readonly CommandContribution[]): void;
|
|
27
|
+
runAsync(name: string, commandArguments?: JsonValue): Promise<JsonValue>;
|
|
28
|
+
run(name: string, commandArguments?: JsonValue): void;
|
|
29
|
+
isEnabled(name: string, commandArguments?: JsonValue): boolean;
|
|
30
|
+
isAvailable(name: string, commandArguments?: JsonValue): boolean;
|
|
31
|
+
isChecked(name: string, commandArguments?: JsonValue): boolean;
|
|
32
|
+
isApplicable(name: string, commandArguments?: JsonValue): boolean;
|
|
33
|
+
titleOf(name: string): string;
|
|
34
|
+
ownerOf(name: string): string;
|
|
35
|
+
defaultKeysOf(name: string): readonly KeyChord[];
|
|
36
|
+
keyLabel(name: string): string | null;
|
|
37
|
+
keyOf(name: string): ICommandKey | null;
|
|
38
|
+
isHeldByDialog(name: string): boolean;
|
|
39
|
+
dispatch(event: KeyboardEvent): boolean;
|
|
40
|
+
findWindowCommand(event: KeyboardEvent): string | null;
|
|
41
|
+
private commandOf;
|
|
42
|
+
private nameOf;
|
|
43
|
+
private canRun;
|
|
44
|
+
private isHeldByReconnect;
|
|
45
|
+
private ask;
|
|
46
|
+
private static runCommandAsync;
|
|
47
|
+
private report;
|
|
48
|
+
private find;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandService, never>;
|
|
50
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
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 { DestroyRef, ErrorHandler, Injectable, computed, effect, inject, signal, untracked } from "@angular/core";
|
|
10
|
+
import "@noldova/context.core";
|
|
11
|
+
import { DialogService } from "@noldova/ui.components.angular";
|
|
12
|
+
import { UnconfirmedAction } from "../enums/unconfirmed-action.js";
|
|
13
|
+
import { ActionNotConfirmedException } from "../exceptions/action-not-confirmed.exception.js";
|
|
14
|
+
import { CommandNotFoundException } from "../exceptions/command-not-found.exception.js";
|
|
15
|
+
import { KeyBindings } from "../models/key-bindings.js";
|
|
16
|
+
import { ShortcutMap } from "../models/shortcut-map.js";
|
|
17
|
+
import { Resources } from "../../resources.js";
|
|
18
|
+
import { PreloadBridgeService } from "./preload-bridge.service.js";
|
|
19
|
+
import { ModuleStatusService } from "./module-status.service.js";
|
|
20
|
+
import { SettingsService } from "./settings.service.js";
|
|
21
|
+
import { ShellCommandsService } from "./shell-commands.service.js";
|
|
22
|
+
import { StartupService } from "./startup.service.js";
|
|
23
|
+
import { ViewDialogService } from "./view-dialog.service.js";
|
|
24
|
+
import * as i0 from "@angular/core";
|
|
25
|
+
export class CommandService {
|
|
26
|
+
bridge = inject(PreloadBridgeService);
|
|
27
|
+
errors = inject(ErrorHandler);
|
|
28
|
+
dialogs = inject(DialogService);
|
|
29
|
+
viewDialogs = inject(ViewDialogService);
|
|
30
|
+
shell = inject(ShellCommandsService);
|
|
31
|
+
startup = inject(StartupService);
|
|
32
|
+
shellCommands = this.shell.commands;
|
|
33
|
+
moduleCommands = signal([], /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "moduleCommands" }] : /* istanbul ignore next */ []));
|
|
35
|
+
settingValues = inject(SettingsService).values;
|
|
36
|
+
bindingsValue = computed(() => this.settingValues().get(Resources.keyBindingsSetting), /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "bindingsValue" }] : /* istanbul ignore next */ []));
|
|
38
|
+
statuses = inject(ModuleStatusService);
|
|
39
|
+
commands = computed(() => [...this.shellCommands, ...this.moduleCommands()], /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "commands" }] : /* istanbul ignore next */ []));
|
|
41
|
+
bindings = computed(() => KeyBindings.fromJson(this.bindingsValue()), /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "bindings" }] : /* istanbul ignore next */ []));
|
|
43
|
+
shortcuts = computed(() => new ShortcutMap(this.shell.keys(this.bridge.platform), this.commands(), this.bindings().list, this.bridge.platform, this.shell.pageFirstKeys(this.bridge.platform)), /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "shortcuts" }] : /* istanbul ignore next */ []));
|
|
45
|
+
constructor() {
|
|
46
|
+
const document = inject(DOCUMENT);
|
|
47
|
+
const listener = (event) => {
|
|
48
|
+
this.dispatch(event);
|
|
49
|
+
};
|
|
50
|
+
document.addEventListener(Resources.keyDownEvent, listener);
|
|
51
|
+
inject(DestroyRef).onDestroy(() => document.removeEventListener(Resources.keyDownEvent, listener));
|
|
52
|
+
effect(() => {
|
|
53
|
+
const pairs = this.shortcuts().pairs;
|
|
54
|
+
untracked(() => this.bridge.setAppShortcuts(pairs));
|
|
55
|
+
});
|
|
56
|
+
effect(() => {
|
|
57
|
+
const skipped = this.bindings().skipped;
|
|
58
|
+
untracked(() => {
|
|
59
|
+
for (const [command, reason] of skipped)
|
|
60
|
+
this.bridge.logError(null, Resources.formatKeyBindingSkipped(command, reason));
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
setCommands(commands) {
|
|
65
|
+
this.moduleCommands.set([...commands]);
|
|
66
|
+
}
|
|
67
|
+
async runAsync(name, commandArguments = null) {
|
|
68
|
+
const command = this.find(name);
|
|
69
|
+
return this.isHeldByReconnect(command.name) ? null : CommandService.runCommandAsync(command, commandArguments);
|
|
70
|
+
}
|
|
71
|
+
run(name, commandArguments = null) {
|
|
72
|
+
this.report(this.runAsync(name, commandArguments));
|
|
73
|
+
}
|
|
74
|
+
isEnabled(name, commandArguments = null) {
|
|
75
|
+
return this.canRun(this.find(name), commandArguments);
|
|
76
|
+
}
|
|
77
|
+
isAvailable(name, commandArguments = null) {
|
|
78
|
+
const command = this.commands().find(t => t.name === name);
|
|
79
|
+
return !Object.isUndefined(command) && this.canRun(command, commandArguments);
|
|
80
|
+
}
|
|
81
|
+
isChecked(name, commandArguments = null) {
|
|
82
|
+
return this.ask(() => this.find(name).isChecked?.(commandArguments) ?? false);
|
|
83
|
+
}
|
|
84
|
+
isApplicable(name, commandArguments = null) {
|
|
85
|
+
return this.ask(() => this.find(name).isApplicable(commandArguments));
|
|
86
|
+
}
|
|
87
|
+
titleOf(name) {
|
|
88
|
+
return this.find(name).title;
|
|
89
|
+
}
|
|
90
|
+
ownerOf(name) {
|
|
91
|
+
const owner = name.slice(0, name.indexOf(Resources.contributionSeparator));
|
|
92
|
+
return this.statuses.nameOf(owner);
|
|
93
|
+
}
|
|
94
|
+
defaultKeysOf(name) {
|
|
95
|
+
const command = this.find(name);
|
|
96
|
+
return [...this.shell.keys(this.bridge.platform).filter(t => t[1] === command.name).map(t => t[0]), ...Object.isNull(command.defaultKey) ? [] : [command.defaultKey]];
|
|
97
|
+
}
|
|
98
|
+
keyLabel(name) {
|
|
99
|
+
return this.shortcuts().keyOf(this.find(name).name)?.label(this.bridge.platform) ?? null;
|
|
100
|
+
}
|
|
101
|
+
keyOf(name) {
|
|
102
|
+
const key = this.shortcuts().keyOf(name);
|
|
103
|
+
return Object.isNull(key) ? null : { label: key.label(this.bridge.platform), ariaKeyShortcuts: key.ariaKeyShortcuts(this.bridge.platform) };
|
|
104
|
+
}
|
|
105
|
+
isHeldByDialog(name) {
|
|
106
|
+
return this.dialogs.isOpen && !Resources.modalCommands.includes(name) && !this.viewDialogs.ownsCommand(name);
|
|
107
|
+
}
|
|
108
|
+
dispatch(event) {
|
|
109
|
+
if (event.defaultPrevented || event.repeat)
|
|
110
|
+
return false;
|
|
111
|
+
const command = this.commandOf(event);
|
|
112
|
+
if (Object.isNull(command))
|
|
113
|
+
return false;
|
|
114
|
+
event.preventDefault();
|
|
115
|
+
this.report(CommandService.runCommandAsync(command, null));
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
findWindowCommand(event) {
|
|
119
|
+
return this.commandOf(event)?.name ?? null;
|
|
120
|
+
}
|
|
121
|
+
commandOf(event) {
|
|
122
|
+
if (event.isComposing)
|
|
123
|
+
return null;
|
|
124
|
+
const name = this.nameOf(event);
|
|
125
|
+
const command = this.commands().find(t => t.name === name);
|
|
126
|
+
return Object.isUndefined(command) || this.isHeldByDialog(command.name) || !this.canRun(command, null) ? null : command;
|
|
127
|
+
}
|
|
128
|
+
nameOf(event) {
|
|
129
|
+
const shortcuts = this.shortcuts();
|
|
130
|
+
const own = shortcuts.find(event);
|
|
131
|
+
if (this.bridge.isMac || !event.composedPath().some(t => t instanceof Element && t.hasAttribute(Resources.keepsCtrlKeysAttribute)))
|
|
132
|
+
return own;
|
|
133
|
+
const isCtrlShift = event.ctrlKey && event.shiftKey && !event.altKey && !event.metaKey;
|
|
134
|
+
const name = Object.isUndefined(own) && isCtrlShift
|
|
135
|
+
? shortcuts.find({ key: event.key, code: event.code, ctrlKey: true, altKey: false, shiftKey: false, metaKey: false })
|
|
136
|
+
: own;
|
|
137
|
+
return Object.isUndefined(name) || Object.values(Resources.editCommands).includes(name) ? undefined : name;
|
|
138
|
+
}
|
|
139
|
+
canRun(command, commandArguments) {
|
|
140
|
+
return !this.isHeldByReconnect(command.name) && this.ask(() => command.isEnabled(commandArguments));
|
|
141
|
+
}
|
|
142
|
+
isHeldByReconnect(name) {
|
|
143
|
+
return this.startup.isReconnecting() && !Resources.modalCommands.includes(name);
|
|
144
|
+
}
|
|
145
|
+
ask(question) {
|
|
146
|
+
try {
|
|
147
|
+
return question();
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
this.errors.handleError(error);
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
static async runCommandAsync(command, commandArguments) {
|
|
155
|
+
try {
|
|
156
|
+
return await command.runAsync(commandArguments);
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
throw ActionNotConfirmedException.from(error, UnconfirmedAction.Command, command.name);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
report(running) {
|
|
163
|
+
running.catch((error) => this.errors.handleError(error));
|
|
164
|
+
}
|
|
165
|
+
find(name) {
|
|
166
|
+
const command = this.commands().find(t => t.name === name);
|
|
167
|
+
if (Object.isUndefined(command))
|
|
168
|
+
throw new CommandNotFoundException(name);
|
|
169
|
+
return command;
|
|
170
|
+
}
|
|
171
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: CommandService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
172
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: CommandService, providedIn: "root" });
|
|
173
|
+
}
|
|
174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: CommandService, decorators: [{
|
|
175
|
+
type: Injectable,
|
|
176
|
+
args: [{ providedIn: "root" }]
|
|
177
|
+
}], ctorParameters: () => [] });
|
|
178
|
+
//# sourceMappingURL=command.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/command.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAoC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,C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K,EAAE,CAAC;YACb,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAC/B,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,OAA4B,EAAE,gBAA2B;QAC5F,IAAI,CAAC;YACH,OAAO,MAAM,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,2BAA2B,CAAC,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QACzF,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,OAA2B;QACxC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IAEO,IAAI,CAAC,IAAY;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;QAC3D,IAAI,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC;YAC7B,MAAM,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC3C,OAAO,OAAO,CAAC;IACjB,CAAC;uGAvKU,cAAc;2GAAd,cAAc,cADD,MAAM;;2FACnB,cAAc;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ModuleStatus } from "@noldova/desktop.protocol";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DetailsService {
|
|
4
|
+
private readonly bridge;
|
|
5
|
+
copyAsync(modules: readonly ModuleStatus[]): Promise<boolean>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { Injectable, inject } from "@angular/core";
|
|
9
|
+
import { Resources } from "../../resources.js";
|
|
10
|
+
import { PreloadBridgeService } from "./preload-bridge.service.js";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export class DetailsService {
|
|
13
|
+
bridge = inject(PreloadBridgeService);
|
|
14
|
+
copyAsync(modules) {
|
|
15
|
+
const lines = [
|
|
16
|
+
Resources.formatPlatformDetails(this.bridge.platform, this.bridge.processor),
|
|
17
|
+
...modules.map(t => Resources.formatModuleDetails(t.id, t.version, t.state, t.cause))
|
|
18
|
+
];
|
|
19
|
+
return this.bridge.copyDetailsAsync(lines.join(Resources.detailsSeparator));
|
|
20
|
+
}
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DetailsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
22
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DetailsService, providedIn: "root" });
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DetailsService, decorators: [{
|
|
25
|
+
type: Injectable,
|
|
26
|
+
args: [{ providedIn: "root" }]
|
|
27
|
+
}] });
|
|
28
|
+
//# sourceMappingURL=details.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/details.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAGnE,MAAM,OAAO,cAAc;IACR,MAAM,GAAyB,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAEtE,SAAS,CAAC,OAAgC;QAC/C,MAAM,KAAK,GAAG;YACZ,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;YAC5E,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;SACtF,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC9E,CAAC;uGATU,cAAc;2GAAd,cAAc,cADD,MAAM;;2FACnB,cAAc;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 "@noldova/context.core";
|
|
9
|
+
import { type DialogRef } from "@angular/cdk/dialog";
|
|
10
|
+
import { type Signal } from "@angular/core";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class DialogCoverService {
|
|
13
|
+
private readonly dialog;
|
|
14
|
+
private readonly startup;
|
|
15
|
+
private readonly focusTraps;
|
|
16
|
+
private readonly open;
|
|
17
|
+
private covered;
|
|
18
|
+
private focused;
|
|
19
|
+
private cover;
|
|
20
|
+
readonly openDialogs: Signal<ReadonlySet<DialogRef<unknown, unknown>>>;
|
|
21
|
+
readonly isCovering: Signal<boolean>;
|
|
22
|
+
constructor();
|
|
23
|
+
attach(cover: HTMLElement): void;
|
|
24
|
+
detach(): void;
|
|
25
|
+
private follow;
|
|
26
|
+
private coverDialogs;
|
|
27
|
+
private uncoverDialogs;
|
|
28
|
+
private focusInto;
|
|
29
|
+
private raise;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogCoverService, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 "@noldova/context.core";
|
|
9
|
+
import { FocusTrapFactory } from "@angular/cdk/a11y";
|
|
10
|
+
import { Dialog } from "@angular/cdk/dialog";
|
|
11
|
+
import { DestroyRef, Injectable, computed, effect, inject, signal, untracked } from "@angular/core";
|
|
12
|
+
import { Resources } from "../../resources.js";
|
|
13
|
+
import { StartupService } from "./startup.service.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class DialogCoverService {
|
|
16
|
+
dialog = inject(Dialog);
|
|
17
|
+
startup = inject(StartupService);
|
|
18
|
+
focusTraps = inject(FocusTrapFactory);
|
|
19
|
+
open = signal(new Set(this.dialog.openDialogs), /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
21
|
+
covered = new Map();
|
|
22
|
+
focused = null;
|
|
23
|
+
cover = null;
|
|
24
|
+
openDialogs = this.open.asReadonly();
|
|
25
|
+
isCovering = computed(() => this.startup.isReconnecting() && this.open().size > 0, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "isCovering" }] : /* istanbul ignore next */ []));
|
|
27
|
+
constructor() {
|
|
28
|
+
for (const reference of this.dialog.openDialogs)
|
|
29
|
+
this.follow(reference);
|
|
30
|
+
const opened = this.dialog.afterOpened.subscribe(t => {
|
|
31
|
+
this.follow(t);
|
|
32
|
+
this.open.update(u => new Set([...u, t]));
|
|
33
|
+
if (untracked(() => this.isCovering()))
|
|
34
|
+
this.coverDialogs();
|
|
35
|
+
});
|
|
36
|
+
inject(DestroyRef).onDestroy(() => opened.unsubscribe());
|
|
37
|
+
effect(() => {
|
|
38
|
+
if (this.isCovering())
|
|
39
|
+
untracked(() => this.coverDialogs());
|
|
40
|
+
else
|
|
41
|
+
untracked(() => this.uncoverDialogs());
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
attach(cover) {
|
|
45
|
+
this.cover = cover;
|
|
46
|
+
this.raise();
|
|
47
|
+
}
|
|
48
|
+
detach() {
|
|
49
|
+
this.cover = null;
|
|
50
|
+
}
|
|
51
|
+
follow(reference) {
|
|
52
|
+
reference.closed.subscribe(() => this.open.update(t => new Set([...t].filter(u => u !== reference))));
|
|
53
|
+
}
|
|
54
|
+
coverDialogs() {
|
|
55
|
+
for (const reference of this.open()) {
|
|
56
|
+
if (this.covered.has(reference))
|
|
57
|
+
continue;
|
|
58
|
+
const host = reference.overlayRef.hostElement;
|
|
59
|
+
const active = document.activeElement;
|
|
60
|
+
if (active instanceof HTMLElement && host.contains(active))
|
|
61
|
+
this.focused = active;
|
|
62
|
+
host.setAttribute(Resources.inertAttribute, String.empty);
|
|
63
|
+
this.covered.set(reference, [host, reference.disableClose]);
|
|
64
|
+
reference.disableClose = true;
|
|
65
|
+
}
|
|
66
|
+
this.raise();
|
|
67
|
+
}
|
|
68
|
+
uncoverDialogs() {
|
|
69
|
+
const covered = this.covered;
|
|
70
|
+
for (const [reference, [host, disableClose]] of covered) {
|
|
71
|
+
host.removeAttribute(Resources.inertAttribute);
|
|
72
|
+
reference.disableClose = disableClose;
|
|
73
|
+
}
|
|
74
|
+
this.covered = new Map();
|
|
75
|
+
const focused = this.focused;
|
|
76
|
+
this.focused = null;
|
|
77
|
+
const topmost = this.dialog.openDialogs.findLast(t => covered.has(t));
|
|
78
|
+
if (!Object.isNull(focused) && focused.isConnected)
|
|
79
|
+
focused.focus({ preventScroll: true });
|
|
80
|
+
else if (!Object.isUndefined(topmost)) {
|
|
81
|
+
const pane = topmost.overlayRef.overlayElement;
|
|
82
|
+
this.focusInto(pane.querySelector(Resources.dialogContainerSelector) ?? pane);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
focusInto(container) {
|
|
86
|
+
const trap = this.focusTraps.create(container, true);
|
|
87
|
+
if (!trap.focusFirstTabbableElement({ preventScroll: true }))
|
|
88
|
+
container.focus({ preventScroll: true });
|
|
89
|
+
trap.destroy();
|
|
90
|
+
}
|
|
91
|
+
raise() {
|
|
92
|
+
if (!Object.isNull(this.cover))
|
|
93
|
+
this.cover.parentElement?.append(this.cover);
|
|
94
|
+
}
|
|
95
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DialogCoverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
96
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DialogCoverService, providedIn: "root" });
|
|
97
|
+
}
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DialogCoverService, decorators: [{
|
|
99
|
+
type: Injectable,
|
|
100
|
+
args: [{ providedIn: "root" }]
|
|
101
|
+
}], ctorParameters: () => [] });
|
|
102
|
+
//# sourceMappingURL=dialog-cover.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-cover.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/dialog-cover.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAkB,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAoC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEtI,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;;AAGtD,MAAM,OAAO,kBAAkB;IACZ,MAAM,GAAW,MAAM,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,GAAmB,MAAM,CAAC,cAAc,CAAC,CAAC;IACjD,UAAU,GAAqB,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACxD,IAAI,GAA6D,MAAM,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;6EAAC,CAAC;IACnH,OAAO,GAAkF,IAAI,GAAG,EAAE,CAAC;IACnG,OAAO,GAAuB,IAAI,CAAC;IACnC,KAAK,GAAuB,IAAI,CAAC;IAEzB,WAAW,GAAqD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;IACvF,UAAU,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,GAAG,CAAC;mFAAC,CAAC;IAEpH;QACE,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW;YAC7C,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACzB,MAAM,MAAM,GA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,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,WAAW;YAChD,OAAO,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;aACpC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;YACtC,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC;YAC/C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAc,SAAS,CAAC,uBAAuB,CAAC,IAAI,IAAI,CAAC,CAAC;QAC7F,CAAC;IACH,CAAC;IAEO,SAAS,CAAC,SAAsB;QACtC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,IAAI,CAAC,yBAAyB,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;YAC1D,SAAS,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAEO,KAAK;QACX,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAC5B,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;uGAtFU,kBAAkB;2GAAlB,kBAAkB,cADL,MAAM;;2FACnB,kBAAkB;kBAD9B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "@noldova/context.core";
|
|
2
|
+
import type { Bounds } from "../models/layout/bounds.js";
|
|
3
|
+
import type { Tab } from "../models/layout/tab.js";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DockGrowthService {
|
|
6
|
+
private readonly layout;
|
|
7
|
+
private readonly asked;
|
|
8
|
+
private nextId;
|
|
9
|
+
grow(tab: Tab, minimum: number): () => void;
|
|
10
|
+
minimumOf(tab: Tab): number | null;
|
|
11
|
+
fit(tab: Tab, content: Bounds): void;
|
|
12
|
+
private release;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DockGrowthService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
15
|
+
}
|