@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,260 @@
|
|
|
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 { OverlayContainer } from "@angular/cdk/overlay";
|
|
10
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
11
|
+
import { Component, DestroyRef, ElementRef, ErrorHandler, PendingTasks, afterNextRender, afterRenderEffect, computed, effect, inject, signal, viewChild } from "@angular/core";
|
|
12
|
+
import { AppearanceService, DialogService, IconButtonComponent, MenuBarComponent, MenuBarItemComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, OverlaySide, TooltipDirective } from "@noldova/ui.components.angular";
|
|
13
|
+
import { ProductName } from "../../models/product-name.js";
|
|
14
|
+
import { Resources } from "../../../resources.js";
|
|
15
|
+
import { DockSide } from "../../enums/dock-side.js";
|
|
16
|
+
import { MenuBarStyle } from "../../enums/menu-bar-style.js";
|
|
17
|
+
import { WindowAppearance } from "../../models/window-appearance.js";
|
|
18
|
+
import { DocumentTab } from "../../models/layout/document-tab.js";
|
|
19
|
+
import { ViewTab } from "../../models/layout/view-tab.js";
|
|
20
|
+
import { BarItemsService } from "../../services/bar-items.service.js";
|
|
21
|
+
import { CommandService } from "../../services/command.service.js";
|
|
22
|
+
import { DialogCoverService } from "../../services/dialog-cover.service.js";
|
|
23
|
+
import { PreloadBridgeService } from "../../services/preload-bridge.service.js";
|
|
24
|
+
import { LayoutService } from "../../services/layout.service.js";
|
|
25
|
+
import { LayoutMenuService } from "../../services/layout-menu.service.js";
|
|
26
|
+
import { MenuBarService } from "../../services/menu-bar.service.js";
|
|
27
|
+
import { SearchPaletteService } from "../../services/search-palette.service.js";
|
|
28
|
+
import { SearchService } from "../../services/search.service.js";
|
|
29
|
+
import { SettingsService } from "../../services/settings.service.js";
|
|
30
|
+
import { TabLabelService } from "../../services/tab-label.service.js";
|
|
31
|
+
import { PlaceMenuComponent } from "../place-menu/place-menu.component.js";
|
|
32
|
+
import { WindowControlsComponent } from "../window-controls/window-controls.component.js";
|
|
33
|
+
import * as i0 from "@angular/core";
|
|
34
|
+
export class WindowRowComponent {
|
|
35
|
+
bridge = inject(PreloadBridgeService);
|
|
36
|
+
commands = inject(CommandService);
|
|
37
|
+
dialogs = inject(DialogService);
|
|
38
|
+
errors = inject(ErrorHandler);
|
|
39
|
+
labels = inject(TabLabelService);
|
|
40
|
+
layout = inject(LayoutService);
|
|
41
|
+
settings = inject(SettingsService);
|
|
42
|
+
host = inject(ElementRef).nativeElement;
|
|
43
|
+
foldedValue = signal(false, /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "foldedValue" }] : /* istanbul ignore next */ []));
|
|
45
|
+
shiftValue = signal(0, /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "shiftValue" }] : /* istanbul ignore next */ []));
|
|
47
|
+
fontLoads = signal(0, /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "fontLoads" }] : /* istanbul ignore next */ []));
|
|
49
|
+
fullScreenValue = signal(false, /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "fullScreenValue" }] : /* istanbul ignore next */ []));
|
|
51
|
+
bar = viewChild("bar", { ...(ngDevMode ? { debugName: "bar" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
52
|
+
menuButton = viewChild("menuButton", { ...(ngDevMode ? { debugName: "menuButton" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
53
|
+
start = viewChild.required("start", { ...(ngDevMode ? { debugName: "start" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
54
|
+
end = viewChild.required("end", { ...(ngDevMode ? { debugName: "end" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
55
|
+
controls = viewChild(WindowControlsComponent, { ...(ngDevMode ? { debugName: "controls" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
56
|
+
middle = viewChild.required("middle", { ...(ngDevMode ? { debugName: "middle" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
57
|
+
field = viewChild.required("field", { ...(ngDevMode ? { debugName: "field" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
58
|
+
returnFocus = null;
|
|
59
|
+
isAltAlone = false;
|
|
60
|
+
resources = Resources;
|
|
61
|
+
isMac = this.bridge.isMac;
|
|
62
|
+
isDrawingControls = this.bridge.platform === Resources.linuxPlatform;
|
|
63
|
+
bars = inject(BarItemsService);
|
|
64
|
+
menuBar = inject(MenuBarService);
|
|
65
|
+
search = inject(SearchService);
|
|
66
|
+
palette = inject(SearchPaletteService);
|
|
67
|
+
searchKey = computed(() => this.commands.keyLabel(Resources.searchCommand), /* @ts-ignore */
|
|
68
|
+
...(ngDevMode ? [{ debugName: "searchKey" }] : /* istanbul ignore next */ []));
|
|
69
|
+
fieldShift = computed(() => Resources.formatPixels(this.shiftValue()), /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "fieldShift" }] : /* istanbul ignore next */ []));
|
|
71
|
+
below = OverlaySide.below;
|
|
72
|
+
leftDockCommand = Resources.toggleDockCommands[DockSide.Left];
|
|
73
|
+
leftDockGlyph = Resources.hideDockGlyphs[DockSide.Left];
|
|
74
|
+
isLeftDockShown = computed(() => this.commands.isChecked(this.leftDockCommand), /* @ts-ignore */
|
|
75
|
+
...(ngDevMode ? [{ debugName: "isLeftDockShown" }] : /* istanbul ignore next */ []));
|
|
76
|
+
heading = computed(() => {
|
|
77
|
+
const active = this.layout.layout().documents.active;
|
|
78
|
+
return active instanceof DocumentTab || (active instanceof ViewTab && !Object.isUndefined(active.instance)) ? this.labels.headingOf(active) : null;
|
|
79
|
+
}, /* @ts-ignore */
|
|
80
|
+
...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
81
|
+
isFolded = this.foldedValue.asReadonly();
|
|
82
|
+
isFullScreen = this.fullScreenValue.asReadonly();
|
|
83
|
+
style = computed(() => {
|
|
84
|
+
const value = this.settings.values().get(Resources.menuBarSetting);
|
|
85
|
+
return value === MenuBarStyle.Button || value === MenuBarStyle.Hidden ? value : MenuBarStyle.Inline;
|
|
86
|
+
}, /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
|
|
88
|
+
isBarShown = computed(() => !this.isMac && this.style() === MenuBarStyle.Inline && this.menuBar.shownPlaces().length > 0, /* @ts-ignore */
|
|
89
|
+
...(ngDevMode ? [{ debugName: "isBarShown" }] : /* istanbul ignore next */ []));
|
|
90
|
+
isButtonShown = computed(() => !this.isMac && this.menuBar.shownPlaces().length > 0 && (this.style() === MenuBarStyle.Button || (this.style() === MenuBarStyle.Inline && this.isFolded())), /* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [{ debugName: "isButtonShown" }] : /* istanbul ignore next */ []));
|
|
92
|
+
constructor() {
|
|
93
|
+
const host = this.host;
|
|
94
|
+
const appearance = inject(AppearanceService);
|
|
95
|
+
inject(LayoutMenuService);
|
|
96
|
+
const covers = inject(DialogCoverService).openDialogs;
|
|
97
|
+
const faded = signal(0, /* @ts-ignore */
|
|
98
|
+
...(ngDevMode ? [{ debugName: "faded" }] : /* istanbul ignore next */ []));
|
|
99
|
+
let opened = [];
|
|
100
|
+
let closing = [];
|
|
101
|
+
const showing = new MutationObserver(() => faded.update(t => t + 1));
|
|
102
|
+
const overlays = inject(OverlayContainer);
|
|
103
|
+
const leaving = new MutationObserver(() => {
|
|
104
|
+
if (closing.some(t => !t.isConnected))
|
|
105
|
+
faded.update(t => t + 1);
|
|
106
|
+
});
|
|
107
|
+
const backdrops = () => {
|
|
108
|
+
faded();
|
|
109
|
+
const open = [...covers()].flatMap(t => Object.isNull(t.overlayRef.backdropElement) ? [] : [t.overlayRef.backdropElement]);
|
|
110
|
+
for (const backdrop of open)
|
|
111
|
+
showing.observe(backdrop, Resources.backdropShownMutations);
|
|
112
|
+
closing = [...closing, ...opened.filter(t => !open.includes(t))].filter(t => t.isConnected);
|
|
113
|
+
opened = open;
|
|
114
|
+
return [...closing, ...open];
|
|
115
|
+
};
|
|
116
|
+
const ended = (event) => {
|
|
117
|
+
if (event.propertyName === Resources.opacityTransition && [...closing, ...opened].some(t => t === event.target))
|
|
118
|
+
faded.update(t => t + 1);
|
|
119
|
+
};
|
|
120
|
+
host.ownerDocument.addEventListener(Resources.transitionEndEvent, ended);
|
|
121
|
+
inject(DestroyRef).onDestroy(() => {
|
|
122
|
+
host.ownerDocument.removeEventListener(Resources.transitionEndEvent, ended);
|
|
123
|
+
showing.disconnect();
|
|
124
|
+
leaving.disconnect();
|
|
125
|
+
});
|
|
126
|
+
let isReported = false;
|
|
127
|
+
afterNextRender(() => {
|
|
128
|
+
leaving.observe(overlays.getContainerElement(), Resources.overlayHostMutations);
|
|
129
|
+
this.bridge.notifyReady(WindowAppearance.read(host, backdrops()));
|
|
130
|
+
});
|
|
131
|
+
afterRenderEffect(() => {
|
|
132
|
+
appearance.theme();
|
|
133
|
+
appearance.mode();
|
|
134
|
+
const shown = backdrops();
|
|
135
|
+
if (isReported)
|
|
136
|
+
this.bridge.notifyAppearance(WindowAppearance.read(host, shown));
|
|
137
|
+
isReported = true;
|
|
138
|
+
});
|
|
139
|
+
effect(() => {
|
|
140
|
+
host.ownerDocument.title = this.heading()?.windowTitle ?? ProductName.current;
|
|
141
|
+
});
|
|
142
|
+
const loaded = () => this.fontLoads.update(t => t + 1);
|
|
143
|
+
host.ownerDocument.fonts.addEventListener(Resources.fontsLoadedEvent, loaded);
|
|
144
|
+
inject(DestroyRef).onDestroy(() => host.ownerDocument.fonts.removeEventListener(Resources.fontsLoadedEvent, loaded));
|
|
145
|
+
const observer = new ResizeObserver(() => this.measure());
|
|
146
|
+
afterRenderEffect(() => {
|
|
147
|
+
this.search.placeholder();
|
|
148
|
+
appearance.typography();
|
|
149
|
+
this.fontLoads();
|
|
150
|
+
observer.disconnect();
|
|
151
|
+
for (const element of [host, this.bar()?.nativeElement, this.menuButton()?.nativeElement, this.start().nativeElement, this.end().nativeElement, this.controls()?.nativeElement, this.middle().nativeElement])
|
|
152
|
+
if (!Object.isUndefined(element))
|
|
153
|
+
observer.observe(element);
|
|
154
|
+
});
|
|
155
|
+
inject(DestroyRef).onDestroy(() => observer.disconnect());
|
|
156
|
+
if (this.isMac) {
|
|
157
|
+
effect(() => this.bridge.setMenuBar(this.menuBar.tree()));
|
|
158
|
+
inject(DestroyRef).onDestroy(this.bridge.onMenuCommand(t => this.menuBar.run(t)));
|
|
159
|
+
}
|
|
160
|
+
if (this.isMac || this.isDrawingControls) {
|
|
161
|
+
inject(DestroyRef).onDestroy(this.bridge.onFullScreen(t => this.fullScreenValue.set(t)));
|
|
162
|
+
void inject(PendingTasks).run(() => this.bridge.readFullScreenAsync().then(t => this.fullScreenValue.set(t), (error) => this.errors.handleError(error)));
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
pressed(event) {
|
|
166
|
+
this.isAltAlone = event.key === Resources.altKey && !event.repeat;
|
|
167
|
+
if (event.key === Resources.functionKey && !event.altKey && !event.ctrlKey && !event.shiftKey && !event.metaKey)
|
|
168
|
+
this.focusMenu(event);
|
|
169
|
+
else if (event.key === Resources.escapeKey && this.isReturnable(event.target) && !Object.isNull(this.returnFocus))
|
|
170
|
+
this.giveFocusBack(event, this.returnFocus);
|
|
171
|
+
}
|
|
172
|
+
pointed() {
|
|
173
|
+
this.isAltAlone = false;
|
|
174
|
+
}
|
|
175
|
+
released(event) {
|
|
176
|
+
const isAlone = this.isAltAlone && event.key === Resources.altKey;
|
|
177
|
+
this.isAltAlone = false;
|
|
178
|
+
if (isAlone)
|
|
179
|
+
this.focusMenu(event);
|
|
180
|
+
}
|
|
181
|
+
isAvailable(command, commandArguments) {
|
|
182
|
+
return this.commands.isAvailable(command, commandArguments);
|
|
183
|
+
}
|
|
184
|
+
withKey(command, label) {
|
|
185
|
+
return Resources.formatWithKey(label, this.commands.keyLabel(command));
|
|
186
|
+
}
|
|
187
|
+
openSearch() {
|
|
188
|
+
this.run(Resources.searchCommand, null);
|
|
189
|
+
}
|
|
190
|
+
run(command, commandArguments) {
|
|
191
|
+
this.commands.runAsync(command, commandArguments).catch((error) => this.errors.handleError(error));
|
|
192
|
+
}
|
|
193
|
+
runAvailable(command, commandArguments) {
|
|
194
|
+
if (this.isAvailable(command, commandArguments))
|
|
195
|
+
this.run(command, commandArguments);
|
|
196
|
+
}
|
|
197
|
+
focusMenu(event) {
|
|
198
|
+
const target = this.isFolded() || this.style() !== MenuBarStyle.Inline
|
|
199
|
+
? this.menuButton()?.nativeElement
|
|
200
|
+
: this.bar()?.nativeElement.querySelector(Resources.menuBarItemSelector);
|
|
201
|
+
if (Object.isNullOrUndefined(target) || this.isMac || this.dialogs.isOpen)
|
|
202
|
+
return;
|
|
203
|
+
event.preventDefault();
|
|
204
|
+
const active = this.host.ownerDocument.activeElement;
|
|
205
|
+
if (!this.host.contains(active))
|
|
206
|
+
this.returnFocus = active instanceof HTMLElement ? active : null;
|
|
207
|
+
target.focus();
|
|
208
|
+
}
|
|
209
|
+
isReturnable(target) {
|
|
210
|
+
return target instanceof HTMLElement && this.host.contains(target) && target.getAttribute(Resources.ariaExpandedAttribute) !== Resources.trueValue;
|
|
211
|
+
}
|
|
212
|
+
giveFocusBack(event, target) {
|
|
213
|
+
event.preventDefault();
|
|
214
|
+
this.returnFocus = null;
|
|
215
|
+
if (target.isConnected)
|
|
216
|
+
target.focus();
|
|
217
|
+
}
|
|
218
|
+
measure() {
|
|
219
|
+
const start = this.start().nativeElement;
|
|
220
|
+
const end = this.end().nativeElement;
|
|
221
|
+
const style = getComputedStyle(this.host);
|
|
222
|
+
const rem = parseFloat(getComputedStyle(this.host.ownerDocument.documentElement).fontSize);
|
|
223
|
+
const controls = this.controls()?.nativeElement;
|
|
224
|
+
const controlsWidth = Object.isUndefined(controls) ? 0 : controls.getBoundingClientRect().width;
|
|
225
|
+
const inner = this.host.getBoundingClientRect().width - parseFloat(style.borderLeftWidth) - parseFloat(style.borderRightWidth);
|
|
226
|
+
const room = inner - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight) - start.getBoundingClientRect().width - end.getBoundingClientRect().width
|
|
227
|
+
- controlsWidth - Resources.windowRowMinimumDragRem * rem;
|
|
228
|
+
const bar = this.bar()?.nativeElement;
|
|
229
|
+
this.foldedValue.set(!Object.isUndefined(bar) && WindowRowComponent.outerWidth(bar) > room - Resources.searchFieldMinimumRem * rem);
|
|
230
|
+
this.shiftValue.set(this.centringShift());
|
|
231
|
+
}
|
|
232
|
+
centringShift() {
|
|
233
|
+
const middle = this.middle().nativeElement;
|
|
234
|
+
const box = middle.getBoundingClientRect();
|
|
235
|
+
const host = this.host.getBoundingClientRect();
|
|
236
|
+
const style = getComputedStyle(middle);
|
|
237
|
+
const slack = Math.max((box.width - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight) - this.field().nativeElement.offsetWidth) / 2, 0);
|
|
238
|
+
const shift = host.left + host.width / 2 - (box.left + box.width / 2);
|
|
239
|
+
return Math.round(Math.min(Math.max(shift, -slack), slack));
|
|
240
|
+
}
|
|
241
|
+
static outerWidth(element) {
|
|
242
|
+
const style = getComputedStyle(element);
|
|
243
|
+
return element.getBoundingClientRect().width + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
244
|
+
}
|
|
245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WindowRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
246
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: WindowRowComponent, isStandalone: true, selector: "nol-window-row", host: { attributes: { "data-nol-chrome": "top" }, listeners: { "document:keydown": "pressed($event)", "document:keyup": "released($event)", "document:pointerdown": "pointed()" }, properties: { "class.nol-window-row-mac": "isMac", "class.nol-window-row-drawn-controls": "isDrawingControls", "class.nol-window-row-full-screen": "isFullScreen()" } }, viewQueries: [{ propertyName: "bar", first: true, predicate: ["bar"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "menuButton", first: true, predicate: ["menuButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "start", first: true, predicate: ["start"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "end", first: true, predicate: ["end"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "controls", first: true, predicate: WindowControlsComponent, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "middle", first: true, predicate: ["middle"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "field", first: true, predicate: ["field"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (isBarShown()) {\n <nol-menu-bar #bar class=\"nol-window-row-menu-bar\" [class.nol-window-row-menu-bar-folded]=\"isFolded()\" [label]=\"resources.menuBarLabel\"\n [attr.inert]=\"isFolded() ? '' : null\" [attr.aria-hidden]=\"isFolded() ? true : null\">\n @for (place of menuBar.shownPlaces(); track place.name) {\n <nol-place-menu #inline [place]=\"place.name\" />\n <button type=\"button\" nol-menu-bar-item class=\"nol-window-row-menu-bar-item\" [attr.data-place]=\"place.name\" [label]=\"place.title\" [nolMenuTriggerFor]=\"inline.menu()\"></button>\n }\n </nol-menu-bar>\n}\n@if (isButtonShown()) {\n <button #menuButton type=\"button\" nol-icon-button class=\"nol-window-row-menu\" [icon]=\"resources.menuGlyph\" [label]=\"resources.menuLabel\" [nolTooltip]=\"resources.menuLabel\"\n [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"barMenu\"></button>\n <ng-template #barMenu>\n <nol-menu class=\"nol-window-row-menu-list\">\n @for (place of menuBar.shownPlaces(); track place.name) {\n <nol-place-menu #nested [place]=\"place.name\" />\n <button nol-menu-item class=\"nol-window-row-menu-place\" [attr.data-place]=\"place.name\" [label]=\"place.title\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n }\n </nol-menu>\n </ng-template>\n}\n<div #start class=\"nol-window-row-start\">\n @let isLeftShown = isLeftDockShown();\n @let leftDockLabel = isLeftShown ? resources.hideLeftDockLabel : resources.showLeftDockLabel;\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-left-dock\" [icon]=\"isLeftShown ? leftDockGlyph : resources.showLeftDockGlyph\"\n [label]=\"leftDockLabel\" [nolTooltip]=\"withKey(leftDockCommand, leftDockLabel)\" [nolTooltipSide]=\"below\" (click)=\"run(leftDockCommand, null)\"></button>\n @let canGoBack = isAvailable(resources.goBackCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-back\" [icon]=\"resources.goBackGlyph\" [label]=\"resources.goBackTitle\"\n [attr.aria-disabled]=\"canGoBack ? null : resources.trueValue\" [nolTooltip]=\"canGoBack ? withKey(resources.goBackCommand, resources.goBackTitle) : resources.goBackReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.goBackCommand, null)\"></button>\n @let canGoForward = isAvailable(resources.goForwardCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-forward\" [icon]=\"resources.goForwardGlyph\" [label]=\"resources.goForwardTitle\"\n [attr.aria-disabled]=\"canGoForward ? null : resources.trueValue\" [nolTooltip]=\"canGoForward ? withKey(resources.goForwardCommand, resources.goForwardTitle) : resources.goForwardReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.goForwardCommand, null)\"></button>\n @for (action of bars.startActions(); track action.name) {\n <ng-container [ngTemplateOutlet]=\"actionButton\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n }\n <nol-place-menu #layoutMenu [place]=\"resources.layoutMenu\" />\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-layout\" [icon]=\"resources.layoutMenuGlyph\" [label]=\"resources.layoutMenuTitle\"\n [nolTooltip]=\"resources.layoutMenuTitle\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"layoutMenu.menu()\"></button>\n @let canOpenSettings = isAvailable(resources.openSettingsCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-settings\" [icon]=\"resources.settingsGlyph\" [label]=\"resources.settingsTitle\"\n [attr.aria-disabled]=\"canOpenSettings ? null : resources.trueValue\" [nolTooltip]=\"canOpenSettings ? withKey(resources.openSettingsCommand, resources.settingsTitle) : resources.settingsReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.openSettingsCommand, null)\"></button>\n</div>\n<div #middle class=\"nol-window-row-middle\">\n <button #field type=\"button\" class=\"nol-window-row-search\" [class.nol-window-row-search-covered]=\"palette.isShown()\" [style.translate]=\"fieldShift()\"\n [attr.aria-keyshortcuts]=\"searchKey()\" (click)=\"openSearch()\">\n <span class=\"nol-window-row-search-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ resources.searchGlyph }}</span>\n <span class=\"nol-window-row-search-text\" data-truncates>{{ search.placeholder() }}</span>\n @if (searchKey(); as key) {\n <span class=\"nol-window-row-search-key\">{{ key }}</span>\n }\n </button>\n</div>\n<div #end class=\"nol-window-row-actions\">\n @for (action of bars.endActions(); track action.name) {\n <ng-container [ngTemplateOutlet]=\"actionButton\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n }\n</div>\n@if (isDrawingControls && !isFullScreen()) {\n <nol-window-controls />\n}\n<ng-template #actionButton let-action>\n @let state = action.state();\n @if (!state.isHidden) {\n <button type=\"button\" nol-icon-button class=\"nol-window-row-action\" [attr.data-nol-item]=\"action.name\" [icon]=\"state.icon\" [label]=\"state.title\"\n [attr.aria-disabled]=\"isAvailable(state.command, state.commandArguments) ? null : resources.trueValue\" [nolTooltip]=\"state.title\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(state.command, state.commandArguments)\"></button>\n }\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n height: var(--nol-window-row-height);\n padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));\n padding-left: var(--nol-panel-card-margin);\n background-color: var(--nol-title-bar);\n color: var(--nol-title-bar-text);\n font-size: var(--nol-text-panel);\n app-region: drag;\n user-select: none;\n --nol-window-row-drag: 6rem;\n --nol-window-row-search-width: 27.5rem;\n --nol-window-row-traffic-lights: 78px;\n}\n\n:host(.nol-window-row-mac) {\n padding-right: var(--nol-panel-card-margin);\n padding-left: var(--nol-window-row-traffic-lights);\n}\n\n:host(.nol-window-row-mac.nol-window-row-full-screen) {\n padding-left: var(--nol-panel-card-margin);\n}\n\n:host(.nol-window-row-drawn-controls) {\n padding-right: var(--nol-panel-card-margin);\n}\n\n:host(.nol-window-row-drawn-controls:not(.nol-window-row-full-screen)) {\n padding-inline-end: 0;\n}\n\n.nol-window-row-middle {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n min-width: 0;\n padding-inline: var(--nol-space-2);\n}\n\n.nol-window-row-search {\n display: flex;\n flex: 0 1 auto;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: var(--nol-window-row-search-width);\n min-width: 0;\n height: var(--nol-icon-button-target);\n padding: 0 var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-input);\n color: var(--nol-text-muted);\n font: inherit;\n font-size: var(--nol-text-small);\n text-align: start;\n cursor: text;\n}\n\n.nol-window-row-search-covered {\n opacity: 0;\n}\n\n.nol-window-row-search:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n.nol-window-row-search-glyph {\n flex: none;\n font-size: var(--nol-quick-input-glyph);\n}\n\n.nol-window-row-search-text {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-window-row-search-key {\n flex: none;\n padding: calc(0.0625rem + var(--nol-border-width)) calc(0.3125rem + var(--nol-border-width));\n font-size: var(--nol-quick-input-key-text);\n}\n\n@media (forced-colors: active) {\n .nol-window-row-search {\n border-color: ButtonText;\n color: ButtonText;\n }\n}\n\n.nol-window-row-start,\n.nol-window-row-actions {\n display: flex;\n align-items: center;\n}\n\n.nol-window-row-action,\n.nol-window-row-control,\n.nol-window-row-menu,\n.nol-window-row-menu-bar,\n.nol-window-row-search {\n app-region: no-drag;\n}\n\n:dir(rtl) .nol-window-row-back,\n:dir(rtl) .nol-window-row-forward {\n scale: -1 1;\n}\n\n.nol-window-row-menu-bar {\n flex: none;\n margin-inline-end: var(--nol-space-1);\n}\n\n.nol-window-row-menu-bar-folded {\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n}\n\n.nol-window-row-menu {\n margin-inline-end: var(--nol-space-1);\n}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuBarComponent, selector: "nol-menu-bar", inputs: ["label"] }, { kind: "component", type: MenuBarItemComponent, selector: "button[nol-menu-bar-item]", inputs: ["label"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }, { kind: "component", type: WindowControlsComponent, selector: "nol-window-controls" }] });
|
|
247
|
+
}
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WindowRowComponent, decorators: [{
|
|
249
|
+
type: Component,
|
|
250
|
+
args: [{ selector: "nol-window-row", imports: [IconButtonComponent, MenuBarComponent, MenuBarItemComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, NgTemplateOutlet, PlaceMenuComponent, TooltipDirective, WindowControlsComponent], host: {
|
|
251
|
+
"data-nol-chrome": "top",
|
|
252
|
+
"[class.nol-window-row-mac]": "isMac",
|
|
253
|
+
"[class.nol-window-row-drawn-controls]": "isDrawingControls",
|
|
254
|
+
"[class.nol-window-row-full-screen]": "isFullScreen()",
|
|
255
|
+
"(document:keydown)": "pressed($event)",
|
|
256
|
+
"(document:keyup)": "released($event)",
|
|
257
|
+
"(document:pointerdown)": "pointed()"
|
|
258
|
+
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (isBarShown()) {\n <nol-menu-bar #bar class=\"nol-window-row-menu-bar\" [class.nol-window-row-menu-bar-folded]=\"isFolded()\" [label]=\"resources.menuBarLabel\"\n [attr.inert]=\"isFolded() ? '' : null\" [attr.aria-hidden]=\"isFolded() ? true : null\">\n @for (place of menuBar.shownPlaces(); track place.name) {\n <nol-place-menu #inline [place]=\"place.name\" />\n <button type=\"button\" nol-menu-bar-item class=\"nol-window-row-menu-bar-item\" [attr.data-place]=\"place.name\" [label]=\"place.title\" [nolMenuTriggerFor]=\"inline.menu()\"></button>\n }\n </nol-menu-bar>\n}\n@if (isButtonShown()) {\n <button #menuButton type=\"button\" nol-icon-button class=\"nol-window-row-menu\" [icon]=\"resources.menuGlyph\" [label]=\"resources.menuLabel\" [nolTooltip]=\"resources.menuLabel\"\n [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"barMenu\"></button>\n <ng-template #barMenu>\n <nol-menu class=\"nol-window-row-menu-list\">\n @for (place of menuBar.shownPlaces(); track place.name) {\n <nol-place-menu #nested [place]=\"place.name\" />\n <button nol-menu-item class=\"nol-window-row-menu-place\" [attr.data-place]=\"place.name\" [label]=\"place.title\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n }\n </nol-menu>\n </ng-template>\n}\n<div #start class=\"nol-window-row-start\">\n @let isLeftShown = isLeftDockShown();\n @let leftDockLabel = isLeftShown ? resources.hideLeftDockLabel : resources.showLeftDockLabel;\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-left-dock\" [icon]=\"isLeftShown ? leftDockGlyph : resources.showLeftDockGlyph\"\n [label]=\"leftDockLabel\" [nolTooltip]=\"withKey(leftDockCommand, leftDockLabel)\" [nolTooltipSide]=\"below\" (click)=\"run(leftDockCommand, null)\"></button>\n @let canGoBack = isAvailable(resources.goBackCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-back\" [icon]=\"resources.goBackGlyph\" [label]=\"resources.goBackTitle\"\n [attr.aria-disabled]=\"canGoBack ? null : resources.trueValue\" [nolTooltip]=\"canGoBack ? withKey(resources.goBackCommand, resources.goBackTitle) : resources.goBackReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.goBackCommand, null)\"></button>\n @let canGoForward = isAvailable(resources.goForwardCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-forward\" [icon]=\"resources.goForwardGlyph\" [label]=\"resources.goForwardTitle\"\n [attr.aria-disabled]=\"canGoForward ? null : resources.trueValue\" [nolTooltip]=\"canGoForward ? withKey(resources.goForwardCommand, resources.goForwardTitle) : resources.goForwardReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.goForwardCommand, null)\"></button>\n @for (action of bars.startActions(); track action.name) {\n <ng-container [ngTemplateOutlet]=\"actionButton\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n }\n <nol-place-menu #layoutMenu [place]=\"resources.layoutMenu\" />\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-layout\" [icon]=\"resources.layoutMenuGlyph\" [label]=\"resources.layoutMenuTitle\"\n [nolTooltip]=\"resources.layoutMenuTitle\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"layoutMenu.menu()\"></button>\n @let canOpenSettings = isAvailable(resources.openSettingsCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-settings\" [icon]=\"resources.settingsGlyph\" [label]=\"resources.settingsTitle\"\n [attr.aria-disabled]=\"canOpenSettings ? null : resources.trueValue\" [nolTooltip]=\"canOpenSettings ? withKey(resources.openSettingsCommand, resources.settingsTitle) : resources.settingsReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.openSettingsCommand, null)\"></button>\n</div>\n<div #middle class=\"nol-window-row-middle\">\n <button #field type=\"button\" class=\"nol-window-row-search\" [class.nol-window-row-search-covered]=\"palette.isShown()\" [style.translate]=\"fieldShift()\"\n [attr.aria-keyshortcuts]=\"searchKey()\" (click)=\"openSearch()\">\n <span class=\"nol-window-row-search-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ resources.searchGlyph }}</span>\n <span class=\"nol-window-row-search-text\" data-truncates>{{ search.placeholder() }}</span>\n @if (searchKey(); as key) {\n <span class=\"nol-window-row-search-key\">{{ key }}</span>\n }\n </button>\n</div>\n<div #end class=\"nol-window-row-actions\">\n @for (action of bars.endActions(); track action.name) {\n <ng-container [ngTemplateOutlet]=\"actionButton\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n }\n</div>\n@if (isDrawingControls && !isFullScreen()) {\n <nol-window-controls />\n}\n<ng-template #actionButton let-action>\n @let state = action.state();\n @if (!state.isHidden) {\n <button type=\"button\" nol-icon-button class=\"nol-window-row-action\" [attr.data-nol-item]=\"action.name\" [icon]=\"state.icon\" [label]=\"state.title\"\n [attr.aria-disabled]=\"isAvailable(state.command, state.commandArguments) ? null : resources.trueValue\" [nolTooltip]=\"state.title\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(state.command, state.commandArguments)\"></button>\n }\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n height: var(--nol-window-row-height);\n padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));\n padding-left: var(--nol-panel-card-margin);\n background-color: var(--nol-title-bar);\n color: var(--nol-title-bar-text);\n font-size: var(--nol-text-panel);\n app-region: drag;\n user-select: none;\n --nol-window-row-drag: 6rem;\n --nol-window-row-search-width: 27.5rem;\n --nol-window-row-traffic-lights: 78px;\n}\n\n:host(.nol-window-row-mac) {\n padding-right: var(--nol-panel-card-margin);\n padding-left: var(--nol-window-row-traffic-lights);\n}\n\n:host(.nol-window-row-mac.nol-window-row-full-screen) {\n padding-left: var(--nol-panel-card-margin);\n}\n\n:host(.nol-window-row-drawn-controls) {\n padding-right: var(--nol-panel-card-margin);\n}\n\n:host(.nol-window-row-drawn-controls:not(.nol-window-row-full-screen)) {\n padding-inline-end: 0;\n}\n\n.nol-window-row-middle {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n min-width: 0;\n padding-inline: var(--nol-space-2);\n}\n\n.nol-window-row-search {\n display: flex;\n flex: 0 1 auto;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: var(--nol-window-row-search-width);\n min-width: 0;\n height: var(--nol-icon-button-target);\n padding: 0 var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-input);\n color: var(--nol-text-muted);\n font: inherit;\n font-size: var(--nol-text-small);\n text-align: start;\n cursor: text;\n}\n\n.nol-window-row-search-covered {\n opacity: 0;\n}\n\n.nol-window-row-search:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n.nol-window-row-search-glyph {\n flex: none;\n font-size: var(--nol-quick-input-glyph);\n}\n\n.nol-window-row-search-text {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-window-row-search-key {\n flex: none;\n padding: calc(0.0625rem + var(--nol-border-width)) calc(0.3125rem + var(--nol-border-width));\n font-size: var(--nol-quick-input-key-text);\n}\n\n@media (forced-colors: active) {\n .nol-window-row-search {\n border-color: ButtonText;\n color: ButtonText;\n }\n}\n\n.nol-window-row-start,\n.nol-window-row-actions {\n display: flex;\n align-items: center;\n}\n\n.nol-window-row-action,\n.nol-window-row-control,\n.nol-window-row-menu,\n.nol-window-row-menu-bar,\n.nol-window-row-search {\n app-region: no-drag;\n}\n\n:dir(rtl) .nol-window-row-back,\n:dir(rtl) .nol-window-row-forward {\n scale: -1 1;\n}\n\n.nol-window-row-menu-bar {\n flex: none;\n margin-inline-end: var(--nol-space-1);\n}\n\n.nol-window-row-menu-bar-folded {\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n}\n\n.nol-window-row-menu {\n margin-inline-end: var(--nol-space-1);\n}\n"] }]
|
|
259
|
+
}], ctorParameters: () => [], propDecorators: { bar: [{ type: i0.ViewChild, args: ["bar", { ...{ read: ElementRef }, isSignal: true }] }], menuButton: [{ type: i0.ViewChild, args: ["menuButton", { ...{ read: ElementRef }, isSignal: true }] }], start: [{ type: i0.ViewChild, args: ["start", { ...{ read: ElementRef }, isSignal: true }] }], end: [{ type: i0.ViewChild, args: ["end", { ...{ read: ElementRef }, isSignal: true }] }], controls: [{ type: i0.ViewChild, args: [i0.forwardRef(() => WindowControlsComponent), { ...{ read: ElementRef }, isSignal: true }] }], middle: [{ type: i0.ViewChild, args: ["middle", { ...{ read: ElementRef }, isSignal: true }] }], field: [{ type: i0.ViewChild, args: ["field", { ...{ read: ElementRef }, isSignal: true }] }] } });
|
|
260
|
+
//# sourceMappingURL=window-row.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window-row.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/window-row/window-row.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/window-row/window-row.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAoC,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEjN,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,aAAa,EAAE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EAAE,IAAI,EAAE,UAAU,EAAE,2DAC/B,KAAK,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE,oFACnB,uBAAuB,QAAE,EAAE,IAAI,EAAE,UAAU,EAAE,8DAClD,QAAQ,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE,6DAC/B,OAAO,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Signal } from "@angular/core";
|
|
2
|
+
import { DockSide } from "../../enums/dock-side.js";
|
|
3
|
+
import type { ContributionMatch } from "../../models/contribution-match.js";
|
|
4
|
+
import type { GroupFrame } from "../../models/layout/group-frame.js";
|
|
5
|
+
import { LayoutService } from "../../services/layout.service.js";
|
|
6
|
+
import { StartupService } from "../../services/startup.service.js";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class WorkspaceComponent {
|
|
9
|
+
private readonly element;
|
|
10
|
+
private readonly width;
|
|
11
|
+
private readonly height;
|
|
12
|
+
private readonly tabFocus;
|
|
13
|
+
private readonly focusTraps;
|
|
14
|
+
private readonly host;
|
|
15
|
+
private readonly generation;
|
|
16
|
+
private readonly placeholderContent;
|
|
17
|
+
private focused;
|
|
18
|
+
private focusedGroup;
|
|
19
|
+
protected readonly startup: StartupService;
|
|
20
|
+
protected readonly layout: LayoutService;
|
|
21
|
+
protected readonly sides: readonly DockSide[];
|
|
22
|
+
protected readonly placeholder: Signal<ContributionMatch | null>;
|
|
23
|
+
constructor();
|
|
24
|
+
protected remember(event: FocusEvent): void;
|
|
25
|
+
protected isEmptyDocuments(frame: GroupFrame): boolean;
|
|
26
|
+
private measure;
|
|
27
|
+
private restoreFocus;
|
|
28
|
+
private focusPlaceholder;
|
|
29
|
+
private keepDockFocus;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceComponent, "nol-workspace", never, {}, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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 { FocusTrapFactory } from "@angular/cdk/a11y";
|
|
9
|
+
import { Component, DestroyRef, ElementRef, afterRenderEffect, effect, inject, signal, untracked, viewChild } from "@angular/core";
|
|
10
|
+
import { AppearanceService } from "@noldova/ui.components.angular";
|
|
11
|
+
import { DockSide } from "../../enums/dock-side.js";
|
|
12
|
+
import { LayoutMetrics } from "../../models/layout/layout-metrics.js";
|
|
13
|
+
import { LayoutService } from "../../services/layout.service.js";
|
|
14
|
+
import { StartupService } from "../../services/startup.service.js";
|
|
15
|
+
import { TabFocusService } from "../../services/tab-focus.service.js";
|
|
16
|
+
import { WindowPartHostService } from "../../services/window-part-host.service.js";
|
|
17
|
+
import { DockComponent } from "../dock/dock.component.js";
|
|
18
|
+
import { DockingGuidesComponent } from "../docking-guides/docking-guides.component.js";
|
|
19
|
+
import { EmptyWindowComponent } from "../empty-window/empty-window.component.js";
|
|
20
|
+
import { PlaceholderContentComponent } from "../placeholder-content/placeholder-content.component.js";
|
|
21
|
+
import { SplitSashComponent } from "../split-sash/split-sash.component.js";
|
|
22
|
+
import { TabGroupComponent } from "../tab-group/tab-group.component.js";
|
|
23
|
+
import { TabSlotComponent } from "../tab-slot/tab-slot.component.js";
|
|
24
|
+
import { Resources } from "../../../resources.js";
|
|
25
|
+
import * as i0 from "@angular/core";
|
|
26
|
+
export class WorkspaceComponent {
|
|
27
|
+
element = inject(ElementRef).nativeElement;
|
|
28
|
+
width = signal(0, /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
30
|
+
height = signal(0, /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
32
|
+
tabFocus = inject(TabFocusService);
|
|
33
|
+
focusTraps = inject(FocusTrapFactory);
|
|
34
|
+
host = inject(WindowPartHostService);
|
|
35
|
+
generation = this.host.generation;
|
|
36
|
+
placeholderContent = viewChild(PlaceholderContentComponent, /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "placeholderContent" }] : /* istanbul ignore next */ []));
|
|
38
|
+
focused = null;
|
|
39
|
+
focusedGroup = null;
|
|
40
|
+
startup = inject(StartupService);
|
|
41
|
+
layout = inject(LayoutService);
|
|
42
|
+
sides = Object.values(DockSide);
|
|
43
|
+
placeholder = this.host.placeholder;
|
|
44
|
+
constructor() {
|
|
45
|
+
const appearance = inject(AppearanceService);
|
|
46
|
+
const observer = new ResizeObserver(entries => {
|
|
47
|
+
for (const entry of entries) {
|
|
48
|
+
this.width.set(entry.contentRect.width);
|
|
49
|
+
this.height.set(entry.contentRect.height);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
observer.observe(this.element);
|
|
53
|
+
inject(DestroyRef).onDestroy(() => observer.disconnect());
|
|
54
|
+
effect(() => {
|
|
55
|
+
if (appearance.painted() > 0)
|
|
56
|
+
this.layout.setMetrics(this.measure(untracked(() => appearance.typography().rootSize)));
|
|
57
|
+
});
|
|
58
|
+
effect(() => {
|
|
59
|
+
const rem = appearance.typography().rootSize;
|
|
60
|
+
this.layout.setViewport(this.width() / rem, this.height() / rem);
|
|
61
|
+
});
|
|
62
|
+
afterRenderEffect(() => {
|
|
63
|
+
this.generation();
|
|
64
|
+
if (!this.startup.isReconnecting())
|
|
65
|
+
untracked(() => this.restoreFocus());
|
|
66
|
+
});
|
|
67
|
+
afterRenderEffect(() => {
|
|
68
|
+
this.layout.geometry();
|
|
69
|
+
untracked(() => this.keepDockFocus());
|
|
70
|
+
});
|
|
71
|
+
afterRenderEffect(() => {
|
|
72
|
+
const content = this.placeholderContent();
|
|
73
|
+
if (content?.isLoaded() === true)
|
|
74
|
+
untracked(() => this.focusPlaceholder(content));
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
remember(event) {
|
|
78
|
+
const target = event.target;
|
|
79
|
+
if (!(target instanceof HTMLElement))
|
|
80
|
+
return;
|
|
81
|
+
const group = target.closest(Resources.tabGroupSelector)?.dataset[Resources.tabGroupData];
|
|
82
|
+
this.focused = target;
|
|
83
|
+
this.focusedGroup = Object.isUndefined(group) ? null : Number(group);
|
|
84
|
+
}
|
|
85
|
+
isEmptyDocuments(frame) {
|
|
86
|
+
return frame.group.isDocuments && this.layout.registry().views.length === 0;
|
|
87
|
+
}
|
|
88
|
+
measure(rootSize) {
|
|
89
|
+
const probe = this.element.ownerDocument.createElement(Resources.lookProbeElement);
|
|
90
|
+
this.element.append(probe);
|
|
91
|
+
const metrics = LayoutMetrics.measure(probe, rootSize);
|
|
92
|
+
probe.remove();
|
|
93
|
+
return metrics;
|
|
94
|
+
}
|
|
95
|
+
restoreFocus() {
|
|
96
|
+
const document = this.element.ownerDocument;
|
|
97
|
+
if (document.activeElement !== document.body)
|
|
98
|
+
return;
|
|
99
|
+
if (!Object.isNull(this.focused) && this.element.contains(this.focused)) {
|
|
100
|
+
this.focused.focus({ preventScroll: true });
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const tab = this.layout.layout().groups.find(t => t.id === this.focusedGroup)?.active;
|
|
104
|
+
if (!Object.isNullOrUndefined(tab))
|
|
105
|
+
this.tabFocus.focus(tab);
|
|
106
|
+
}
|
|
107
|
+
focusPlaceholder(content) {
|
|
108
|
+
const document = this.element.ownerDocument;
|
|
109
|
+
if (document.activeElement !== document.body || this.focusedGroup !== this.layout.layout().documents.id)
|
|
110
|
+
return;
|
|
111
|
+
const trap = this.focusTraps.create(content.element, true);
|
|
112
|
+
trap.focusFirstTabbableElement({ preventScroll: true });
|
|
113
|
+
trap.destroy();
|
|
114
|
+
}
|
|
115
|
+
keepDockFocus() {
|
|
116
|
+
const document = this.element.ownerDocument;
|
|
117
|
+
const layout = this.layout.layout();
|
|
118
|
+
const tab = layout.groups.find(t => t.id === this.focusedGroup)?.active;
|
|
119
|
+
const side = this.sides.find(t => layout.dock(t).root?.groups.some(u => u.id === this.focusedGroup) === true);
|
|
120
|
+
if (document.activeElement !== document.body || Object.isNullOrUndefined(tab) || Object.isUndefined(side) || !this.layout.geometry().isCollapsed(side))
|
|
121
|
+
return;
|
|
122
|
+
this.element.querySelectorAll(Resources.formatDockStripView(side, tab.key)).forEach(t => t.focus());
|
|
123
|
+
}
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WorkspaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
125
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: WorkspaceComponent, isStandalone: true, selector: "nol-workspace", host: { listeners: { "focusin": "remember($event)" }, properties: { "attr.inert": "startup.isReconnecting() ? '' : null" } }, viewQueries: [{ propertyName: "placeholderContent", first: true, predicate: PlaceholderContentComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (layout.isMeasured()) {\n @let geometry = layout.geometry();\n @let match = placeholder();\n @for (side of sides; track side) {\n <nol-dock [side]=\"side\" />\n }\n @for (frame of geometry.frames; track frame.group.id) {\n <nol-tab-group [frame]=\"frame\">\n @if (frame.group.active; as active) {\n <nol-tab-slot [tab]=\"active\" [isDocked]=\"frame.side !== null\" />\n } @else if (frame.group.isDocuments && match) {\n <nol-placeholder-content [match]=\"match\" />\n } @else if (isEmptyDocuments(frame)) {\n <nol-empty-window />\n }\n </nol-tab-group>\n }\n @for (handle of geometry.handles; track handle.split.id + \"/\" + handle.index) {\n <nol-split-sash [handle]=\"handle\" />\n }\n <nol-docking-guides />\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: block;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n}\n"], dependencies: [{ kind: "component", type: DockComponent, selector: "nol-dock", inputs: ["side"] }, { kind: "component", type: DockingGuidesComponent, selector: "nol-docking-guides" }, { kind: "component", type: EmptyWindowComponent, selector: "nol-empty-window" }, { kind: "component", type: PlaceholderContentComponent, selector: "nol-placeholder-content", inputs: ["match"] }, { kind: "component", type: SplitSashComponent, selector: "nol-split-sash", inputs: ["handle"] }, { kind: "component", type: TabGroupComponent, selector: "nol-tab-group", inputs: ["frame"] }, { kind: "component", type: TabSlotComponent, selector: "nol-tab-slot", inputs: ["tab", "isDocked"] }] });
|
|
126
|
+
}
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: WorkspaceComponent, decorators: [{
|
|
128
|
+
type: Component,
|
|
129
|
+
args: [{ selector: "nol-workspace", imports: [DockComponent, DockingGuidesComponent, EmptyWindowComponent, PlaceholderContentComponent, SplitSashComponent, TabGroupComponent, TabSlotComponent], host: {
|
|
130
|
+
"[attr.inert]": "startup.isReconnecting() ? '' : null",
|
|
131
|
+
"(focusin)": "remember($event)"
|
|
132
|
+
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (layout.isMeasured()) {\n @let geometry = layout.geometry();\n @let match = placeholder();\n @for (side of sides; track side) {\n <nol-dock [side]=\"side\" />\n }\n @for (frame of geometry.frames; track frame.group.id) {\n <nol-tab-group [frame]=\"frame\">\n @if (frame.group.active; as active) {\n <nol-tab-slot [tab]=\"active\" [isDocked]=\"frame.side !== null\" />\n } @else if (frame.group.isDocuments && match) {\n <nol-placeholder-content [match]=\"match\" />\n } @else if (isEmptyDocuments(frame)) {\n <nol-empty-window />\n }\n </nol-tab-group>\n }\n @for (handle of geometry.handles; track handle.split.id + \"/\" + handle.index) {\n <nol-split-sash [handle]=\"handle\" />\n }\n <nol-docking-guides />\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: block;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n}\n"] }]
|
|
133
|
+
}], ctorParameters: () => [], propDecorators: { placeholderContent: [{ type: i0.ViewChild, args: [i0.forwardRef(() => PlaceholderContentComponent), { isSignal: true }] }] } });
|
|
134
|
+
//# sourceMappingURL=workspace.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/workspace/workspace.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/workspace/workspace.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAoC,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAErK,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGpD,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,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AChB,CAAC,aAAa,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,QAGtJ;wBACJ,cAAc,EAAE,sCAAsC;wBACtD,WAAW,EAAE,kBAAkB;qBAChC;8HAUgG,2BAA2B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Marks its host element as keeping Ctrl keys, such as a terminal that gives
|
|
4
|
+
* Ctrl+key to its shell, with `nolKeepsCtrlKeys`. On Windows and Linux, a
|
|
5
|
+
* key pressed inside the element runs the window command bound to it, as
|
|
6
|
+
* elsewhere, unless the element prevented its default; a Ctrl+Shift+key with
|
|
7
|
+
* no binding of its own runs the command bound to the same key with Ctrl
|
|
8
|
+
* alone, while one bound to a disabled command, or to one a dialog holds,
|
|
9
|
+
* runs nothing. The editing commands, Undo, Redo, Cut, Copy, Paste and Select all,
|
|
10
|
+
* never run from a key there, and the window leaves those keys' defaults to
|
|
11
|
+
* the element. On macOS, where the window's keys use Cmd, nothing changes.
|
|
12
|
+
* {@link IWindowPartContext.findWindowCommand} reads keys by the same rule.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { Component } from "@angular/core";
|
|
17
|
+
* import { KeepsCtrlKeysDirective } from "@noldova/desktop.window";
|
|
18
|
+
*
|
|
19
|
+
* @Component({
|
|
20
|
+
* selector: "nol-terminal-pane",
|
|
21
|
+
* imports: [KeepsCtrlKeysDirective],
|
|
22
|
+
* template: "<div class=\"terminal\" nolKeepsCtrlKeys></div>"
|
|
23
|
+
* })
|
|
24
|
+
* export class TerminalPaneComponent {
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class KeepsCtrlKeysDirective {
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KeepsCtrlKeysDirective, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KeepsCtrlKeysDirective, "[nolKeepsCtrlKeys]", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { Directive } from "@angular/core";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export class KeepsCtrlKeysDirective {
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: KeepsCtrlKeysDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
12
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: KeepsCtrlKeysDirective, isStandalone: true, selector: "[nolKeepsCtrlKeys]", host: { attributes: { "data-nol-keeps-ctrl-keys": "" } }, ngImport: i0 });
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: KeepsCtrlKeysDirective, decorators: [{
|
|
15
|
+
type: Directive,
|
|
16
|
+
args: [{
|
|
17
|
+
selector: "[nolKeepsCtrlKeys]",
|
|
18
|
+
host: { "data-nol-keeps-ctrl-keys": "" }
|
|
19
|
+
}]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=keeps-ctrl-keys.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keeps-ctrl-keys.directive.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/directives/keeps-ctrl-keys.directive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAM1C,MAAM,OAAO,sBAAsB;uGAAtB,sBAAsB;2FAAtB,sBAAsB;;2FAAtB,sBAAsB;kBAJlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,IAAI,EAAE,EAAE,0BAA0B,EAAE,EAAE,EAAE;iBACzC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { type Signal } from "@angular/core";
|
|
9
|
+
import type { GroupFrame } from "../models/layout/group-frame.js";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class TabScrollerDirective {
|
|
12
|
+
private readonly host;
|
|
13
|
+
private readonly isOverflowingValue;
|
|
14
|
+
private revealed;
|
|
15
|
+
private measured;
|
|
16
|
+
private actionsWidth;
|
|
17
|
+
private unfoldedWidth;
|
|
18
|
+
readonly actionBar: import("@angular/core").InputSignal<HTMLElement>;
|
|
19
|
+
readonly frame: import("@angular/core").InputSignal<GroupFrame>;
|
|
20
|
+
readonly rowCount: import("@angular/core").InputSignal<number>;
|
|
21
|
+
readonly isOverflowing: Signal<boolean>;
|
|
22
|
+
constructor();
|
|
23
|
+
protected scrollAcross(event: WheelEvent): void;
|
|
24
|
+
private overflows;
|
|
25
|
+
private measureActions;
|
|
26
|
+
private reveal;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabScrollerDirective, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabScrollerDirective, "[nolTabScroller]", ["nolTabScroller"], { "actionBar": { "alias": "nolTabScroller"; "required": true; "isSignal": true; }; "frame": { "alias": "nolTabScrollerFrame"; "required": true; "isSignal": true; }; "rowCount": { "alias": "nolTabScrollerRows"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|