@noldova/desktop.window 0.0.0-stage → 0.0.2
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/enums/web-view-input-kind.d.ts +12 -0
- package/app/enums/web-view-input-kind.js +14 -0
- package/app/enums/web-view-input-kind.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 +79 -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-input.d.ts +13 -0
- package/app/interfaces/i-web-view-input.js +8 -0
- package/app/interfaces/i-web-view-input.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 +1654 -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 +91 -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 +37 -0
- package/app/models/live-view.js +110 -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 +42 -0
- package/app/models/search-session.js +161 -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 +59 -0
- package/app/models/web-view-handle.js +121 -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 +174 -0
- package/app/models/window-part-context.js +716 -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 +98 -0
- package/app/services/layout.service.js +309 -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 +38 -0
- package/app/services/live-view.service.js +130 -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 +114 -0
- package/app/services/preload-bridge.service.js +495 -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 +40 -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 +35 -0
- package/app/services/shell-search-sources.service.js +103 -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 +28 -0
- package/app/services/view-dialog.service.js +113 -0
- package/app/services/view-dialog.service.js.map +1 -0
- package/app/services/view-instances.service.d.ts +37 -0
- package/app/services/view-instances.service.js +132 -0
- package/app/services/view-instances.service.js.map +1 -0
- package/app/services/web-view.service.d.ts +56 -0
- package/app/services/web-view.service.js +302 -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 +201 -0
- package/app/services/window-part-host.service.js +796 -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 +1042 -0
- package/resources.js +1454 -0
- package/resources.js.map +1 -0
- package/testing/models/fake-window-part-context.d.ts +1422 -0
- package/testing/models/fake-window-part-context.js +110 -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,97 @@
|
|
|
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 { EditAction } from "@noldova/desktop.protocol";
|
|
9
|
+
import { BottomDockSpan } from "../enums/bottom-dock-span.js";
|
|
10
|
+
import { DockSide } from "../enums/dock-side.js";
|
|
11
|
+
import { PanelEdge } from "../enums/panel-edge.js";
|
|
12
|
+
import { ToolbarMove } from "../enums/toolbar-move.js";
|
|
13
|
+
import { MenuDeclarations } from "./menu-declarations.js";
|
|
14
|
+
import { MenuGroup } from "./menu-group.js";
|
|
15
|
+
import { MenuItem } from "./menu-item.js";
|
|
16
|
+
import { MenuPlace } from "./menu-place.js";
|
|
17
|
+
import { ProductName } from "./product-name.js";
|
|
18
|
+
import { Resources } from "../../resources.js";
|
|
19
|
+
export class ShellMenus {
|
|
20
|
+
static PLACES = [
|
|
21
|
+
new MenuPlace(Resources.fileMenu, Resources.fileMenuTitle, true),
|
|
22
|
+
new MenuPlace(Resources.editMenu, Resources.editMenuTitle, true),
|
|
23
|
+
new MenuPlace(Resources.viewMenu, Resources.viewMenuTitle, true),
|
|
24
|
+
new MenuPlace(Resources.windowMenu, Resources.windowMenuTitle, true),
|
|
25
|
+
new MenuPlace(Resources.helpMenu, Resources.helpMenuTitle, true),
|
|
26
|
+
new MenuPlace(Resources.tabMenu, Resources.tabMenuTitle, false),
|
|
27
|
+
new MenuPlace(Resources.fieldMenu, Resources.fieldMenuTitle, false),
|
|
28
|
+
new MenuPlace(Resources.linkMenu, Resources.linkMenuTitle, false),
|
|
29
|
+
new MenuPlace(Resources.tabMoveToMenu, Resources.moveToLabel, false, Resources.moveToGlyph),
|
|
30
|
+
new MenuPlace(Resources.tabSplitMenu, Resources.splitLabel, false, Resources.splitGlyph),
|
|
31
|
+
new MenuPlace(Resources.tabDockMenu, Resources.dockLabel, false, Resources.dockGlyph),
|
|
32
|
+
new MenuPlace(Resources.toolbarsMenu, Resources.toolbarsMenuTitle, false),
|
|
33
|
+
new MenuPlace(Resources.toolbarMenu, Resources.toolbarMenuTitle, false),
|
|
34
|
+
new MenuPlace(Resources.layoutMenu, Resources.layoutMenuTitle, false, Resources.layoutMenuGlyph)
|
|
35
|
+
];
|
|
36
|
+
static EDITING = new MenuGroup(Resources.editingGroup, Resources.editMenu, false, Object.values(EditAction).map(t => MenuItem.ofCommand(Resources.editCommands[t])));
|
|
37
|
+
static FIELD_EDITING = new MenuGroup(Resources.fieldEditingGroup, Resources.fieldMenu, false, Resources.fieldEditActions.map(t => MenuItem.ofCommand(Resources.editCommands[t])));
|
|
38
|
+
static FIELD_SPELLING = MenuGroup.dynamic(Resources.fieldSpellingGroup, Resources.fieldMenu, false);
|
|
39
|
+
static GROUPS = [
|
|
40
|
+
new MenuGroup(Resources.closeGroup, Resources.fileMenu, false, [MenuItem.ofCommand(Resources.closeTabCommand)]),
|
|
41
|
+
new MenuGroup(Resources.searchGroup, Resources.viewMenu, false, [MenuItem.ofCommand(Resources.searchCommand), MenuItem.ofCommand(Resources.showCommandsCommand)]),
|
|
42
|
+
new MenuGroup(Resources.modulesGroup, Resources.viewMenu, false, [MenuItem.ofCommand(Resources.openModulesCommand)]),
|
|
43
|
+
new MenuGroup(Resources.docksGroup, Resources.viewMenu, false, Object.values(DockSide).map(t => MenuItem.ofCommand(Resources.toggleDockCommands[t], {}, Resources.dockRowLabels[t]))),
|
|
44
|
+
new MenuGroup(Resources.bottomDockGroup, Resources.viewMenu, true, Object.values(BottomDockSpan).map(t => MenuItem.ofCommand(Resources.bottomSpanCommands[t]))),
|
|
45
|
+
new MenuGroup(Resources.groupsGroup, Resources.viewMenu, false, [
|
|
46
|
+
MenuItem.ofCommand(Resources.splitTabCommands[PanelEdge.Right], {}, Resources.splitLabels[PanelEdge.Right]),
|
|
47
|
+
MenuItem.ofCommand(Resources.splitTabCommands[PanelEdge.Bottom], {}, Resources.splitLabels[PanelEdge.Bottom]),
|
|
48
|
+
MenuItem.ofCommand(Resources.moveTabToNextGroupCommand, {}, Resources.moveToNextGroupLabel),
|
|
49
|
+
MenuItem.ofCommand(Resources.moveTabToPreviousGroupCommand, {}, Resources.moveToPreviousGroupLabel),
|
|
50
|
+
MenuItem.ofCommand(Resources.focusNextGroupCommand, {}, Resources.focusNextGroupLabel),
|
|
51
|
+
MenuItem.ofCommand(Resources.focusPreviousGroupCommand, {}, Resources.focusPreviousGroupLabel)
|
|
52
|
+
]),
|
|
53
|
+
new MenuGroup(Resources.viewToolbarsGroup, Resources.viewMenu, false, [MenuItem.ofSubmenu(Resources.toolbarsMenu)]),
|
|
54
|
+
MenuGroup.dynamic(Resources.toolbarListGroup, Resources.toolbarsMenu, false),
|
|
55
|
+
new MenuGroup(Resources.toolbarMoveGroup, Resources.toolbarMenu, false, Object.values(ToolbarMove).map(t => MenuItem.ofCommand(Resources.moveToolbarCommands[t], {}, Resources.moveToolbarLabels[t]))),
|
|
56
|
+
new MenuGroup(Resources.toolbarHideGroup, Resources.toolbarMenu, false, [MenuItem.ofCommand(Resources.hideToolbarCommand, {}, Resources.hideToolbarLabel)]),
|
|
57
|
+
new MenuGroup(Resources.toolbarsSubmenuGroup, Resources.toolbarMenu, false, [MenuItem.ofSubmenu(Resources.toolbarsMenu)]),
|
|
58
|
+
new MenuGroup(Resources.layoutGroup, Resources.viewMenu, false, [MenuItem.ofCommand(Resources.resetLayoutCommand)]),
|
|
59
|
+
new MenuGroup(Resources.layoutDocksGroup, Resources.layoutMenu, false, Object.values(DockSide).map(t => MenuItem.ofCommand(Resources.toggleDockCommands[t], {}, Resources.dockRowLabels[t]))),
|
|
60
|
+
MenuGroup.dynamic(Resources.layoutViewsGroup, Resources.layoutMenu, false),
|
|
61
|
+
new MenuGroup(Resources.layoutResetGroup, Resources.layoutMenu, false, [MenuItem.ofCommand(Resources.resetLayoutCommand)]),
|
|
62
|
+
new MenuGroup(Resources.tabArrangeGroup, Resources.tabMenu, false, [
|
|
63
|
+
MenuItem.ofCommand(Resources.keepTabCommand, {}, Resources.keepLabel),
|
|
64
|
+
MenuItem.ofCommand(Resources.renameTabCommand, {}, Resources.renameLabel),
|
|
65
|
+
MenuItem.ofSubmenu(Resources.tabMoveToMenu),
|
|
66
|
+
MenuItem.ofSubmenu(Resources.tabSplitMenu),
|
|
67
|
+
MenuItem.ofSubmenu(Resources.tabDockMenu),
|
|
68
|
+
MenuItem.ofCommand(Resources.moveTabLeftCommand, {}, Resources.moveEarlierLabel),
|
|
69
|
+
MenuItem.ofCommand(Resources.moveTabRightCommand, {}, Resources.moveLaterLabel),
|
|
70
|
+
MenuItem.ofCommand(Resources.moveTabToNextGroupCommand, {}, Resources.moveToNextGroupLabel),
|
|
71
|
+
MenuItem.ofCommand(Resources.moveTabToPreviousGroupCommand, {}, Resources.moveToPreviousGroupLabel)
|
|
72
|
+
]),
|
|
73
|
+
new MenuGroup(Resources.linkOpenGroup, Resources.linkMenu, false, [
|
|
74
|
+
MenuItem.ofCommand(Resources.openLinkInAppCommand),
|
|
75
|
+
MenuItem.ofCommand(Resources.openLinkInBrowserCommand)
|
|
76
|
+
]),
|
|
77
|
+
new MenuGroup(Resources.tabCloseGroup, Resources.tabMenu, false, [
|
|
78
|
+
MenuItem.ofCommand(Resources.closeTabCommand, {}, Resources.closeTabLabel),
|
|
79
|
+
MenuItem.ofCommand(Resources.closeOtherTabsCommand, {}, Resources.closeOthersLabel),
|
|
80
|
+
MenuItem.ofCommand(Resources.closeTabsToTheRightCommand, {}, Resources.closeToTheRightLabel),
|
|
81
|
+
MenuItem.ofCommand(Resources.closeAllTabsCommand, {}, Resources.closeAllLabel)
|
|
82
|
+
]),
|
|
83
|
+
MenuGroup.dynamic(Resources.tabDestinationsGroup, Resources.tabMoveToMenu, false),
|
|
84
|
+
new MenuGroup(Resources.tabSplitGroup, Resources.tabSplitMenu, false, Object.values(PanelEdge).map(t => MenuItem.ofCommand(Resources.splitTabCommands[t], {}, Resources.splitLabels[t]))),
|
|
85
|
+
new MenuGroup(Resources.tabDockGroup, Resources.tabDockMenu, false, Object.values(DockSide).map(t => MenuItem.ofCommand(Resources.dockTabCommands[t], {}, Resources.dockLabels[t]))),
|
|
86
|
+
new MenuGroup(Resources.supportGroup, Resources.helpMenu, false, [MenuItem.ofCommand(Resources.openLogFolderCommand), MenuItem.ofCommand(Resources.copyDetailsCommand)]),
|
|
87
|
+
new MenuGroup(Resources.settingsGroup, Resources.appMenu, false, [MenuItem.ofCommand(Resources.openSettingsCommand)]),
|
|
88
|
+
new MenuGroup(Resources.commandLineGroup, Resources.appMenu, false, [MenuItem.ofCommand(Resources.installCommandCommand)])
|
|
89
|
+
];
|
|
90
|
+
static of(isMac) {
|
|
91
|
+
const updates = new MenuGroup(Resources.updatesGroup, isMac ? Resources.appMenu : Resources.helpMenu, false, [MenuItem.ofCommand(Resources.checkForUpdatesCommand)]);
|
|
92
|
+
return new MenuDeclarations(Resources.shellOwner, [...ShellMenus.PLACES, new MenuPlace(Resources.appMenu, ProductName.current, false)], isMac
|
|
93
|
+
? [updates, ShellMenus.FIELD_SPELLING, ShellMenus.FIELD_EDITING, ...ShellMenus.GROUPS]
|
|
94
|
+
: [updates, ShellMenus.EDITING, ShellMenus.FIELD_SPELLING, ShellMenus.FIELD_EDITING, ...ShellMenus.GROUPS]);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=shell-menus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell-menus.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/shell-menus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,OAAO,UAAU;IACb,MAAM,CAAU,MAAM,GAAyB;QACrD,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC;QAChE,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,a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U,CAAC,MAAM,CAAC;YACtF,CAAC,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,aAAa,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IAChH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { KeyChord } from "@noldova/desktop.protocol";
|
|
9
|
+
export declare class ShortcutBinding {
|
|
10
|
+
readonly command: string;
|
|
11
|
+
readonly key: KeyChord | null;
|
|
12
|
+
constructor(command: string, key: KeyChord | null);
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export class ShortcutBinding {
|
|
9
|
+
command;
|
|
10
|
+
key;
|
|
11
|
+
constructor(command, key) {
|
|
12
|
+
this.command = command;
|
|
13
|
+
this.key = key;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=shortcut-binding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-binding.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/shortcut-binding.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,OAAO,eAAe;IACV,OAAO,CAAS;IAChB,GAAG,CAAkB;IAErC,YAAmB,OAAe,EAAE,GAAoB;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { KeyChord } from "@noldova/desktop.protocol";
|
|
9
|
+
export declare class ShortcutCollision {
|
|
10
|
+
readonly key: KeyChord;
|
|
11
|
+
readonly keptBy: string;
|
|
12
|
+
readonly refused: string;
|
|
13
|
+
constructor(key: KeyChord, keptBy: string, refused: string);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export class ShortcutCollision {
|
|
9
|
+
key;
|
|
10
|
+
keptBy;
|
|
11
|
+
refused;
|
|
12
|
+
constructor(key, keptBy, refused) {
|
|
13
|
+
this.key = key;
|
|
14
|
+
this.keptBy = keptBy;
|
|
15
|
+
this.refused = refused;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=shortcut-collision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-collision.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/shortcut-collision.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,OAAO,iBAAiB;IACZ,GAAG,CAAW;IACd,MAAM,CAAS;IACf,OAAO,CAAS;IAEhC,YAAmB,GAAa,EAAE,MAAc,EAAE,OAAe;QAC/D,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import type { IKeyStroke, KeyChord } from "@noldova/desktop.protocol";
|
|
10
|
+
import type { CommandContribution } from "./command-contribution.js";
|
|
11
|
+
import { ShortcutCollision } from "./shortcut-collision.js";
|
|
12
|
+
import type { ShortcutBinding } from "./shortcut-binding.js";
|
|
13
|
+
export declare class ShortcutMap {
|
|
14
|
+
private readonly platform;
|
|
15
|
+
private readonly entries;
|
|
16
|
+
private readonly collisionList;
|
|
17
|
+
private readonly pageKeys;
|
|
18
|
+
constructor(shellKeys: readonly (readonly [KeyChord, string])[], commands: readonly CommandContribution[], bindings: readonly ShortcutBinding[], platform: string, pageFirst?: readonly KeyChord[]);
|
|
19
|
+
get keys(): readonly KeyChord[];
|
|
20
|
+
get pairs(): readonly (readonly [KeyChord, string])[];
|
|
21
|
+
get viewKeys(): readonly KeyChord[];
|
|
22
|
+
get collisions(): readonly ShortcutCollision[];
|
|
23
|
+
find(stroke: IKeyStroke): string | undefined;
|
|
24
|
+
keyOf(command: string): KeyChord | null;
|
|
25
|
+
holderOf(key: KeyChord): string | undefined;
|
|
26
|
+
private assign;
|
|
27
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { ShortcutCollision } from "./shortcut-collision.js";
|
|
10
|
+
export class ShortcutMap {
|
|
11
|
+
platform;
|
|
12
|
+
entries = [];
|
|
13
|
+
collisionList = [];
|
|
14
|
+
pageKeys = new Set();
|
|
15
|
+
constructor(shellKeys, commands, bindings, platform, pageFirst = []) {
|
|
16
|
+
this.platform = platform;
|
|
17
|
+
const names = new Set(commands.map(t => t.name));
|
|
18
|
+
const bound = new Set(bindings.map(t => t.command));
|
|
19
|
+
for (const binding of bindings) {
|
|
20
|
+
if (!Object.isNull(binding.key) && names.has(binding.command))
|
|
21
|
+
this.assign(binding.key, binding.command);
|
|
22
|
+
}
|
|
23
|
+
for (const [key, command] of shellKeys) {
|
|
24
|
+
if (names.has(command) && !bound.has(command))
|
|
25
|
+
this.assign(key, command, pageFirst.some(t => t.isSameOn(key, platform)));
|
|
26
|
+
}
|
|
27
|
+
for (const command of commands) {
|
|
28
|
+
if (!Object.isNull(command.defaultKey) && !bound.has(command.name))
|
|
29
|
+
this.assign(command.defaultKey, command.name);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
get keys() {
|
|
33
|
+
return this.entries.map(t => t[0]);
|
|
34
|
+
}
|
|
35
|
+
get pairs() {
|
|
36
|
+
return [...this.entries];
|
|
37
|
+
}
|
|
38
|
+
get viewKeys() {
|
|
39
|
+
return this.keys.filter(t => !this.pageKeys.has(t));
|
|
40
|
+
}
|
|
41
|
+
get collisions() {
|
|
42
|
+
return this.collisionList;
|
|
43
|
+
}
|
|
44
|
+
find(stroke) {
|
|
45
|
+
return this.entries.find(t => t[0].matches(stroke, this.platform))?.[1];
|
|
46
|
+
}
|
|
47
|
+
keyOf(command) {
|
|
48
|
+
return this.entries.find(t => t[1] === command)?.[0] ?? null;
|
|
49
|
+
}
|
|
50
|
+
holderOf(key) {
|
|
51
|
+
return this.entries.find(t => t[0].isSameOn(key, this.platform))?.[1];
|
|
52
|
+
}
|
|
53
|
+
assign(key, command, isPageFirst = false) {
|
|
54
|
+
const holder = this.holderOf(key);
|
|
55
|
+
if (!Object.isUndefined(holder)) {
|
|
56
|
+
this.collisionList.push(new ShortcutCollision(key, holder, command));
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
this.entries.push([key, command]);
|
|
60
|
+
if (isPageFirst)
|
|
61
|
+
this.pageKeys.add(key);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=shortcut-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-map.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/shortcut-map.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAI/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,MAAM,OAAO,WAAW;IACL,QAAQ,CAAS;IACjB,OAAO,GAAoC,EAAE,CAAC;IAC9C,aAAa,GAAwB,EAAE,CAAC;IACxC,QAAQ,GAAkB,IAAI,GAAG,EAAE,CAAC;IAErD,YAAmB,SAAmD,EAAE,QAAwC,EAAE,QAAoC,EAAE,QAAgB,EACtK,YAAiC,EAAE;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACjD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC;gBAC3D,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,MAA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AAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC;IAEM,KAAK,CAAC,OAAe;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IAC/D,CAAC;IAEM,QAAQ,CAAC,GAAa;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC;IAEO,MAAM,CAAC,GAAa,EAAE,OAAe,EAAE,cAAuB,KAAK;QACzE,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;YACrE,OAAO;QACT,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;QAClC,IAAI,WAAW;YACb,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export declare class SpellingOffer {
|
|
10
|
+
static readonly none: SpellingOffer;
|
|
11
|
+
readonly languages: readonly string[];
|
|
12
|
+
readonly fallback: string | null;
|
|
13
|
+
constructor(languages: readonly string[], fallback: string | null);
|
|
14
|
+
static fromJson(value: unknown): SpellingOffer;
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { JsonReader } from "@noldova/context.json";
|
|
10
|
+
import { Resources } from "../../resources.js";
|
|
11
|
+
export class SpellingOffer {
|
|
12
|
+
static none = new SpellingOffer([], null);
|
|
13
|
+
languages;
|
|
14
|
+
fallback;
|
|
15
|
+
constructor(languages, fallback) {
|
|
16
|
+
this.languages = languages;
|
|
17
|
+
this.fallback = fallback;
|
|
18
|
+
}
|
|
19
|
+
static fromJson(value) {
|
|
20
|
+
const json = JsonReader.fromValue(value);
|
|
21
|
+
return new SpellingOffer(json.readStringArray(Resources.languagesField), json.readNullableString(Resources.fallbackField));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=spelling-offer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spelling-offer.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/spelling-offer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,OAAO,aAAa;IACjB,MAAM,CAAU,IAAI,GAAkB,IAAI,aAAa,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAEzD,SAAS,CAAoB;IAC7B,QAAQ,CAAgB;IACxC,YAAmB,SAA4B,EAAE,QAAuB;QACtE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACzC,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;IAC7H,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { StartupStateKind } from "../enums/startup-state-kind.js";
|
|
10
|
+
export declare class StartupState {
|
|
11
|
+
readonly kind: StartupStateKind;
|
|
12
|
+
readonly details: readonly string[];
|
|
13
|
+
constructor(kind: StartupStateKind, details: readonly string[]);
|
|
14
|
+
static fromJson(value: unknown): StartupState;
|
|
15
|
+
get isReady(): boolean;
|
|
16
|
+
get canSave(): boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { JsonException, JsonReader } from "@noldova/context.json";
|
|
10
|
+
import { StartupStateKind } from "../enums/startup-state-kind.js";
|
|
11
|
+
import { Resources } from "../../resources.js";
|
|
12
|
+
export class StartupState {
|
|
13
|
+
kind;
|
|
14
|
+
details;
|
|
15
|
+
constructor(kind, details) {
|
|
16
|
+
this.kind = kind;
|
|
17
|
+
this.details = [...details];
|
|
18
|
+
}
|
|
19
|
+
static fromJson(value) {
|
|
20
|
+
const json = JsonReader.fromValue(value);
|
|
21
|
+
const kind = json.readString(Resources.kindField);
|
|
22
|
+
const details = json.readStringArray(Resources.detailsField);
|
|
23
|
+
const known = Object.values(StartupStateKind).find(t => t === kind);
|
|
24
|
+
if (Object.isUndefined(known))
|
|
25
|
+
throw new JsonException(Resources.unknownStartupState, Resources.formatJsonPath(json.path, Resources.kindField));
|
|
26
|
+
return new StartupState(known, details);
|
|
27
|
+
}
|
|
28
|
+
get isReady() {
|
|
29
|
+
return this.kind === StartupStateKind.Ready;
|
|
30
|
+
}
|
|
31
|
+
get canSave() {
|
|
32
|
+
return this.isReady || this.kind === StartupStateKind.Updating;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=startup-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startup-state.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/startup-state.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,OAAO,YAAY;IACP,IAAI,CAAmB;IACvB,OAAO,CAAoB;IAE3C,YAAmB,IAAsB,EAAE,OAA0B;QACnE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACzC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC7D,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;QACpE,IAAI,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC;YAC3B,MAAM,IAAI,aAAa,CAAC,SAAS,CAAC,mBAAmB,EAAE,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;QACnH,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,CAAC;IAC9C,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,QAAQ,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { StatusBarSide } from "../enums/status-bar-side.js";
|
|
9
|
+
import type { StatusBarItemState } from "./status-bar-item-state.js";
|
|
10
|
+
/**
|
|
11
|
+
* A status-bar item a window part registers: its name, side and first
|
|
12
|
+
* state.
|
|
13
|
+
*/
|
|
14
|
+
export declare class StatusBarItemContribution {
|
|
15
|
+
/**
|
|
16
|
+
* The item's name, `<module id>.<name>`.
|
|
17
|
+
*/
|
|
18
|
+
readonly name: string;
|
|
19
|
+
/**
|
|
20
|
+
* The side it stands on.
|
|
21
|
+
*/
|
|
22
|
+
readonly side: StatusBarSide;
|
|
23
|
+
/**
|
|
24
|
+
* What it shows first.
|
|
25
|
+
*/
|
|
26
|
+
readonly state: StatusBarItemState;
|
|
27
|
+
/**
|
|
28
|
+
* Creates the item.
|
|
29
|
+
*
|
|
30
|
+
* @param name The item's name, which the module declares in
|
|
31
|
+
* `contributes.statusBarItems`.
|
|
32
|
+
* @param side The side it stands on, in module order and then declared
|
|
33
|
+
* order.
|
|
34
|
+
* @param state What it shows first.
|
|
35
|
+
* @throws ArgumentException synchronously when the name is not
|
|
36
|
+
* `<module id>.<name>`.
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { StatusBarItemContribution, StatusBarItemState, StatusBarSide } from "@noldova/desktop.window";
|
|
40
|
+
*
|
|
41
|
+
* export const time: StatusBarItemContribution = new StatusBarItemContribution("clock.time", StatusBarSide.Right, new StatusBarItemState("12:00"));
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
constructor(name: string, side: StatusBarSide, state: StatusBarItemState);
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { QualifiedName } from "@noldova/desktop.protocol";
|
|
9
|
+
import { Resources } from "../../resources.js";
|
|
10
|
+
export class StatusBarItemContribution {
|
|
11
|
+
name;
|
|
12
|
+
side;
|
|
13
|
+
state;
|
|
14
|
+
constructor(name, side, state) {
|
|
15
|
+
this.name = QualifiedName.parse(name, Resources.nameParameter).text;
|
|
16
|
+
this.side = side;
|
|
17
|
+
this.state = state;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=status-bar-item-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-bar-item-contribution.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/status-bar-item-contribution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,OAAO,yBAAyB;IACpB,IAAI,CAAS;IACb,IAAI,CAAgB;IACpB,KAAK,CAAqB;IAE1C,YAAmB,IAAY,EAAE,IAAmB,EAAE,KAAyB;QAC7E,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC;QACpE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import type { JsonValue } from "@noldova/context.json";
|
|
10
|
+
import { StatusBarItemTone } from "../enums/status-bar-item-tone.js";
|
|
11
|
+
import type { IStatusBarItemOptions } from "../interfaces/i-status-bar-item-options.js";
|
|
12
|
+
/**
|
|
13
|
+
* What a status-bar item shows: text, an icon or both, a tooltip, and the
|
|
14
|
+
* command it runs.
|
|
15
|
+
*/
|
|
16
|
+
export declare class StatusBarItemState {
|
|
17
|
+
/**
|
|
18
|
+
* The text, which may be empty when the item has an icon and a tooltip,
|
|
19
|
+
* or while it is hidden.
|
|
20
|
+
*/
|
|
21
|
+
readonly text: string;
|
|
22
|
+
/**
|
|
23
|
+
* The glyph, or null when it has none.
|
|
24
|
+
*/
|
|
25
|
+
readonly icon: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* The tooltip, or null when the text names the item.
|
|
28
|
+
*/
|
|
29
|
+
readonly tooltip: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The command the item runs, or null when it runs none and is no button.
|
|
32
|
+
*/
|
|
33
|
+
readonly command: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The arguments the command runs with; null when it has none.
|
|
36
|
+
*/
|
|
37
|
+
readonly commandArguments: JsonValue;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the item is hidden, taking no space in the status bar.
|
|
40
|
+
*/
|
|
41
|
+
readonly isHidden: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The tone of its text and icon.
|
|
44
|
+
*/
|
|
45
|
+
readonly tone: StatusBarItemTone;
|
|
46
|
+
/**
|
|
47
|
+
* Creates the state.
|
|
48
|
+
*
|
|
49
|
+
* @param text The text; empty only with an icon and a tooltip, or while
|
|
50
|
+
* the item is hidden.
|
|
51
|
+
* @param options The icon, tooltip, command, visibility and tone; none
|
|
52
|
+
* when left out.
|
|
53
|
+
* @throws ArgumentException synchronously when the icon or tooltip is
|
|
54
|
+
* blank, a shown item's text is blank without an icon or without a
|
|
55
|
+
* tooltip, or the command is not `<module id>.<name>`.
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* import { StatusBarItemState } from "@noldova/desktop.window";
|
|
59
|
+
*
|
|
60
|
+
* export const alarm: StatusBarItemState = new StatusBarItemState("", { icon: "alarm", tooltip: "Alarm at 7:00", command: "clock.showAlarms" });
|
|
61
|
+
* ```
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* import { StatusBarItemState, StatusBarItemTone } from "@noldova/desktop.window";
|
|
65
|
+
*
|
|
66
|
+
* export const synced: StatusBarItemState = new StatusBarItemState("Synced", { tone: StatusBarItemTone.Muted });
|
|
67
|
+
* export const waiting: StatusBarItemState = new StatusBarItemState("", { isHidden: true });
|
|
68
|
+
* ```
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* import { StatusBarItemState } from "@noldova/desktop.window";
|
|
72
|
+
*
|
|
73
|
+
* // @ts-expect-error
|
|
74
|
+
* export const unnamed: StatusBarItemState = new StatusBarItemState({ icon: "alarm" });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
constructor(text: string, options?: IStatusBarItemOptions);
|
|
78
|
+
/**
|
|
79
|
+
* The item's accessible name: its tooltip, or else its text.
|
|
80
|
+
*/
|
|
81
|
+
get label(): string;
|
|
82
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import { ArgumentException } from "@noldova/context.exceptions";
|
|
10
|
+
import { QualifiedName } from "@noldova/desktop.protocol";
|
|
11
|
+
import { StatusBarItemTone } from "../enums/status-bar-item-tone.js";
|
|
12
|
+
import { Resources } from "../../resources.js";
|
|
13
|
+
export class StatusBarItemState {
|
|
14
|
+
text;
|
|
15
|
+
icon;
|
|
16
|
+
tooltip;
|
|
17
|
+
command;
|
|
18
|
+
commandArguments;
|
|
19
|
+
isHidden;
|
|
20
|
+
tone;
|
|
21
|
+
constructor(text, options = {}) {
|
|
22
|
+
if (!Object.isUndefined(options.icon))
|
|
23
|
+
ArgumentException.throwIfNullOrWhitespace(options.icon, Resources.iconParameter);
|
|
24
|
+
if (!Object.isUndefined(options.tooltip))
|
|
25
|
+
ArgumentException.throwIfNullOrWhitespace(options.tooltip, Resources.tooltipParameter);
|
|
26
|
+
const isHidden = options.isHidden ?? false;
|
|
27
|
+
if (!isHidden && String.isNullOrWhitespace(text) && Object.isUndefined(options.icon))
|
|
28
|
+
throw new ArgumentException(Resources.statusBarItemEmpty, Resources.textParameter);
|
|
29
|
+
if (!isHidden && String.isNullOrWhitespace(text) && Object.isUndefined(options.tooltip))
|
|
30
|
+
throw new ArgumentException(Resources.statusBarItemUnnamed, Resources.tooltipParameter);
|
|
31
|
+
this.text = text;
|
|
32
|
+
this.icon = options.icon ?? null;
|
|
33
|
+
this.tooltip = options.tooltip ?? null;
|
|
34
|
+
this.command = Object.isUndefined(options.command) ? null : QualifiedName.parse(options.command, Resources.commandParameter).text;
|
|
35
|
+
this.commandArguments = options.commandArguments ?? null;
|
|
36
|
+
this.isHidden = isHidden;
|
|
37
|
+
this.tone = options.tone ?? StatusBarItemTone.Neutral;
|
|
38
|
+
}
|
|
39
|
+
get label() {
|
|
40
|
+
return this.tooltip ?? this.text;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=status-bar-item-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-bar-item-state.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/status-bar-item-state.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,OAAO,kBAAkB;IACb,IAAI,CAAS;IACb,IAAI,CAAgB;IACpB,OAAO,CAAgB;IACvB,OAAO,CAAgB;IACvB,gBAAgB,CAAY;IAC5B,QAAQ,CAAU;IAClB,IAAI,CAAoB;IAExC,YAAmB,IAAY,EAAE,UAAiC,EAAE;QAClE,IAAI,C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