@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,128 @@
|
|
|
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 { Resources } from "../../resources.js";
|
|
9
|
+
import { ClipboardImageResources } from "./clipboard-image.resources.js";
|
|
10
|
+
export class ClipboardImage {
|
|
11
|
+
static async readAsync(bytes) {
|
|
12
|
+
if (bytes.byteLength > Resources.imageCopyByteLimit)
|
|
13
|
+
return null;
|
|
14
|
+
const size = ClipboardImage.sizeOf(bytes);
|
|
15
|
+
if (Object.isNull(size) || !ClipboardImage.fits(size[0], size[1]))
|
|
16
|
+
return null;
|
|
17
|
+
if (ClipboardImage.matches(bytes, 0, Resources.pngSignature))
|
|
18
|
+
return bytes;
|
|
19
|
+
try {
|
|
20
|
+
return await ClipboardImage.toPngAsync(bytes);
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
static async toPngAsync(bytes) {
|
|
27
|
+
const bitmap = await createImageBitmap(new Blob([bytes.slice()]));
|
|
28
|
+
try {
|
|
29
|
+
const canvas = new OffscreenCanvas(bitmap.width, bitmap.height);
|
|
30
|
+
const context = canvas.getContext(Resources.imageCanvasContext);
|
|
31
|
+
if (Object.isNull(context))
|
|
32
|
+
return null;
|
|
33
|
+
context.drawImage(bitmap, 0, 0);
|
|
34
|
+
const png = await canvas.convertToBlob({ type: Resources.copiedImageType });
|
|
35
|
+
return new Uint8Array(await png.arrayBuffer());
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
bitmap.close();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
static fits(width, height) {
|
|
42
|
+
return width > 0 && height > 0 && width <= Resources.imageCopySideLimit && height <= Resources.imageCopySideLimit &&
|
|
43
|
+
width * height <= Resources.imageCopyPixelLimit;
|
|
44
|
+
}
|
|
45
|
+
static sizeOf(bytes) {
|
|
46
|
+
if (ClipboardImage.matches(bytes, 0, Resources.pngSignature))
|
|
47
|
+
return ClipboardImage.matches(bytes, ClipboardImageResources.pngHeaderChunkOffset, Resources.pngHeaderChunk) && bytes.byteLength > ClipboardImageResources.pngHeaderLength
|
|
48
|
+
? [ClipboardImage.readUint32(bytes, ClipboardImageResources.pngWidthOffset), ClipboardImage.readUint32(bytes, ClipboardImageResources.pngHeightOffset)] : null;
|
|
49
|
+
if (ClipboardImage.matches(bytes, 0, Resources.jpegSignature))
|
|
50
|
+
return ClipboardImage.jpegSizeOf(bytes);
|
|
51
|
+
if (Resources.gifSignatures.some(t => ClipboardImage.matches(bytes, 0, t)))
|
|
52
|
+
return ClipboardImage.gifSizeOf(bytes);
|
|
53
|
+
if (ClipboardImage.matches(bytes, 0, Resources.webpSignature))
|
|
54
|
+
return ClipboardImage.webpSizeOf(bytes);
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
static jpegSizeOf(bytes) {
|
|
58
|
+
let offset = ClipboardImageResources.jpegFirstMarkerOffset;
|
|
59
|
+
while (offset + ClipboardImageResources.jpegMarkerLookahead < bytes.byteLength && bytes[offset] === ClipboardImageResources.jpegMarkerPrefix) {
|
|
60
|
+
const marker = ClipboardImage.view(bytes).getUint8(offset + 1);
|
|
61
|
+
if (marker === ClipboardImageResources.jpegMarkerPrefix)
|
|
62
|
+
offset += 1;
|
|
63
|
+
else if (Resources.jpegEndMarkers.includes(marker))
|
|
64
|
+
return null;
|
|
65
|
+
else if (Resources.jpegStandaloneMarkers.includes(marker))
|
|
66
|
+
offset += ClipboardImageResources.jpegMarkerLength;
|
|
67
|
+
else if (Resources.jpegFrameMarkers.includes(marker))
|
|
68
|
+
return offset + ClipboardImageResources.jpegFrameLength <= bytes.byteLength
|
|
69
|
+
? [ClipboardImage.readUint16(bytes, offset + ClipboardImageResources.jpegFrameWidthOffset), ClipboardImage.readUint16(bytes, offset + ClipboardImageResources.jpegFrameHeightOffset)]
|
|
70
|
+
: null;
|
|
71
|
+
else
|
|
72
|
+
offset += ClipboardImageResources.jpegMarkerLength + ClipboardImage.readUint16(bytes, offset + ClipboardImageResources.jpegMarkerLength);
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
static gifSizeOf(bytes) {
|
|
77
|
+
if (bytes.byteLength <= ClipboardImageResources.gifHeaderLength)
|
|
78
|
+
return null;
|
|
79
|
+
const view = ClipboardImage.view(bytes);
|
|
80
|
+
const screen = view.getUint8(ClipboardImageResources.gifFlagsOffset);
|
|
81
|
+
let offset = ClipboardImageResources.gifHeaderLength
|
|
82
|
+
+ ((screen & Resources.gifColorTableFlag) === 0 ? 0 : ClipboardImageResources.gifColorEntryBytes * 2 ** ((screen & ClipboardImageResources.gifColorTableSizeMask) + 1));
|
|
83
|
+
while (offset + 1 < bytes.byteLength && view.getUint8(offset) === Resources.gifExtensionIntroducer) {
|
|
84
|
+
offset += ClipboardImageResources.gifExtensionHeaderLength;
|
|
85
|
+
while (offset < bytes.byteLength && view.getUint8(offset) !== 0)
|
|
86
|
+
offset += view.getUint8(offset) + 1;
|
|
87
|
+
offset += 1;
|
|
88
|
+
}
|
|
89
|
+
if (offset + ClipboardImageResources.gifDescriptorLength > bytes.byteLength || view.getUint8(offset) !== Resources.gifImageSeparator)
|
|
90
|
+
return null;
|
|
91
|
+
return [
|
|
92
|
+
Math.max(ClipboardImage.readUint16Le(bytes, ClipboardImageResources.gifScreenWidthOffset), ClipboardImage.readUint16Le(bytes, offset + ClipboardImageResources.gifLeftOffset) + ClipboardImage.readUint16Le(bytes, offset + ClipboardImageResources.gifWidthOffset)),
|
|
93
|
+
Math.max(ClipboardImage.readUint16Le(bytes, ClipboardImageResources.gifScreenHeightOffset), ClipboardImage.readUint16Le(bytes, offset + ClipboardImageResources.gifTopOffset) + ClipboardImage.readUint16Le(bytes, offset + ClipboardImageResources.gifHeightOffset))
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
static webpSizeOf(bytes) {
|
|
97
|
+
if (bytes.byteLength <= ClipboardImageResources.webpMinimumLength)
|
|
98
|
+
return null;
|
|
99
|
+
if (ClipboardImage.matches(bytes, ClipboardImageResources.webpChunkOffset, Resources.webpLossyChunk))
|
|
100
|
+
return [ClipboardImage.readUint16Le(bytes, ClipboardImageResources.webpLossyWidthOffset) & ClipboardImageResources.webpDimensionMask, ClipboardImage.readUint16Le(bytes, ClipboardImageResources.webpLossyHeightOffset) & ClipboardImageResources.webpDimensionMask];
|
|
101
|
+
if (ClipboardImage.matches(bytes, ClipboardImageResources.webpChunkOffset, Resources.webpLosslessChunk)) {
|
|
102
|
+
const bits = ClipboardImage.readUint16Le(bytes, ClipboardImageResources.webpLosslessBitsOffset) + ClipboardImage.readUint16Le(bytes, ClipboardImageResources.webpLosslessHighOffset) * ClipboardImageResources.uint16Range;
|
|
103
|
+
return [(bits & ClipboardImageResources.webpDimensionMask) + 1, Math.floor(bits / ClipboardImageResources.webpLosslessHeightDivisor) % ClipboardImageResources.webpLosslessHeightDivisor + 1];
|
|
104
|
+
}
|
|
105
|
+
if (ClipboardImage.matches(bytes, ClipboardImageResources.webpChunkOffset, Resources.webpExtendedChunk))
|
|
106
|
+
return [ClipboardImage.readUint24Le(bytes, ClipboardImageResources.webpExtendedWidthOffset) + 1, ClipboardImage.readUint24Le(bytes, ClipboardImageResources.webpExtendedHeightOffset) + 1];
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
static readUint16(bytes, offset) {
|
|
110
|
+
return ClipboardImage.view(bytes).getUint16(offset);
|
|
111
|
+
}
|
|
112
|
+
static readUint32(bytes, offset) {
|
|
113
|
+
return ClipboardImage.view(bytes).getUint32(offset);
|
|
114
|
+
}
|
|
115
|
+
static readUint16Le(bytes, offset) {
|
|
116
|
+
return ClipboardImage.view(bytes).getUint16(offset, true);
|
|
117
|
+
}
|
|
118
|
+
static readUint24Le(bytes, offset) {
|
|
119
|
+
return ClipboardImage.readUint16Le(bytes, offset) + ClipboardImage.view(bytes).getUint8(offset + 2) * ClipboardImageResources.uint16Range;
|
|
120
|
+
}
|
|
121
|
+
static view(bytes) {
|
|
122
|
+
return new DataView(bytes.buffer, bytes.byteOffset);
|
|
123
|
+
}
|
|
124
|
+
static matches(bytes, offset, signature) {
|
|
125
|
+
return offset + signature.length < bytes.byteLength && signature.every((t, i) => Object.isNull(t) || bytes[offset + i] === t);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=clipboard-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard-image.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/clipboard-image.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,MAAM,OAAO,cAAc;IAClB,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAiB;QAC7C,IAAI,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,kBAAkB;YACjD,OAAO,IAAI,CAAC;QACd,MAAM,IAAI,GAAG,cAAc,CAAC,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AAC;IAEO,MAAM,CAAC,OAAO,CAAC,KAAiB,EAAE,MAAc,EAAE,SAAqC;QAC7F,OAAO,MAAM,GAAG,SAAS,CAAC,MAAM,GAAG,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAChI,CAAC;CACF"}
|
|
@@ -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
|
+
export declare class ClipboardImageResources {
|
|
9
|
+
static readonly pngHeaderChunkOffset: number;
|
|
10
|
+
static readonly pngHeaderLength: number;
|
|
11
|
+
static readonly pngWidthOffset: number;
|
|
12
|
+
static readonly pngHeightOffset: number;
|
|
13
|
+
static readonly jpegFirstMarkerOffset: number;
|
|
14
|
+
static readonly jpegMarkerPrefix: number;
|
|
15
|
+
static readonly jpegMarkerLookahead: number;
|
|
16
|
+
static readonly jpegMarkerLength: number;
|
|
17
|
+
static readonly jpegFrameLength: number;
|
|
18
|
+
static readonly jpegFrameWidthOffset: number;
|
|
19
|
+
static readonly jpegFrameHeightOffset: number;
|
|
20
|
+
static readonly gifHeaderLength: number;
|
|
21
|
+
static readonly gifFlagsOffset: number;
|
|
22
|
+
static readonly gifColorEntryBytes: number;
|
|
23
|
+
static readonly gifColorTableSizeMask: number;
|
|
24
|
+
static readonly gifExtensionHeaderLength: number;
|
|
25
|
+
static readonly gifDescriptorLength: number;
|
|
26
|
+
static readonly gifScreenWidthOffset: number;
|
|
27
|
+
static readonly gifScreenHeightOffset: number;
|
|
28
|
+
static readonly gifLeftOffset: number;
|
|
29
|
+
static readonly gifTopOffset: number;
|
|
30
|
+
static readonly gifWidthOffset: number;
|
|
31
|
+
static readonly gifHeightOffset: number;
|
|
32
|
+
static readonly webpMinimumLength: number;
|
|
33
|
+
static readonly webpChunkOffset: number;
|
|
34
|
+
static readonly webpLossyWidthOffset: number;
|
|
35
|
+
static readonly webpLossyHeightOffset: number;
|
|
36
|
+
static readonly webpDimensionMask: number;
|
|
37
|
+
static readonly webpLosslessBitsOffset: number;
|
|
38
|
+
static readonly webpLosslessHighOffset: number;
|
|
39
|
+
static readonly webpLosslessHeightDivisor: number;
|
|
40
|
+
static readonly webpExtendedWidthOffset: number;
|
|
41
|
+
static readonly webpExtendedHeightOffset: number;
|
|
42
|
+
static readonly uint16Range: number;
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ClipboardImageResources {
|
|
9
|
+
static pngHeaderChunkOffset = 12;
|
|
10
|
+
static pngHeaderLength = 24;
|
|
11
|
+
static pngWidthOffset = 16;
|
|
12
|
+
static pngHeightOffset = 20;
|
|
13
|
+
static jpegFirstMarkerOffset = 2;
|
|
14
|
+
static jpegMarkerPrefix = 0xff;
|
|
15
|
+
static jpegMarkerLookahead = 3;
|
|
16
|
+
static jpegMarkerLength = 2;
|
|
17
|
+
static jpegFrameLength = 9;
|
|
18
|
+
static jpegFrameWidthOffset = 7;
|
|
19
|
+
static jpegFrameHeightOffset = 5;
|
|
20
|
+
static gifHeaderLength = 13;
|
|
21
|
+
static gifFlagsOffset = 10;
|
|
22
|
+
static gifColorEntryBytes = 3;
|
|
23
|
+
static gifColorTableSizeMask = 0x07;
|
|
24
|
+
static gifExtensionHeaderLength = 2;
|
|
25
|
+
static gifDescriptorLength = 9;
|
|
26
|
+
static gifScreenWidthOffset = 6;
|
|
27
|
+
static gifScreenHeightOffset = 8;
|
|
28
|
+
static gifLeftOffset = 1;
|
|
29
|
+
static gifTopOffset = 3;
|
|
30
|
+
static gifWidthOffset = 5;
|
|
31
|
+
static gifHeightOffset = 7;
|
|
32
|
+
static webpMinimumLength = 30;
|
|
33
|
+
static webpChunkOffset = 12;
|
|
34
|
+
static webpLossyWidthOffset = 26;
|
|
35
|
+
static webpLossyHeightOffset = 28;
|
|
36
|
+
static webpDimensionMask = 0x3fff;
|
|
37
|
+
static webpLosslessBitsOffset = 21;
|
|
38
|
+
static webpLosslessHighOffset = 23;
|
|
39
|
+
static webpLosslessHeightDivisor = 0x4000;
|
|
40
|
+
static webpExtendedWidthOffset = 24;
|
|
41
|
+
static webpExtendedHeightOffset = 27;
|
|
42
|
+
static uint16Range = 0x10000;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=clipboard-image.resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard-image.resources.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/clipboard-image.resources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,uBAAuB;IAC3B,MAAM,CAAU,oBAAoB,GAAW,EAAE,CAAC;IAClD,MAAM,CAAU,eAAe,GAAW,EAAE,CAAC;IAC7C,MAAM,CAAU,cAAc,GAAW,EAAE,CAAC;IAC5C,MAAM,CAAU,eAAe,GAAW,EAAE,CAAC;IAC7C,MAAM,CAAU,qBAAqB,GAAW,CAAC,CAAC;IAClD,MAAM,CAAU,gBAAgB,GAAW,IAAI,CAAC;IAChD,MAAM,CAAU,mBAAmB,GAAW,CAAC,CAAC;IAChD,MAAM,CAAU,gBAAgB,GAAW,CAAC,CAAC;IAC7C,MAAM,CAAU,eAAe,GAAW,CAAC,CAAC;IAC5C,MAAM,CAAU,oBAAoB,GAAW,CAAC,CAAC;IACjD,MAAM,CAAU,qBAAqB,GAAW,CAAC,CAAC;IAClD,MAAM,CAAU,eAAe,GAAW,EAAE,CAAC;IAC7C,MAAM,CAAU,cAAc,GAAW,EAAE,CAAC;IAC5C,MAAM,CAAU,kBAAkB,GAAW,CAAC,CAAC;IAC/C,MAAM,CAAU,qBAAqB,GAAW,IAAI,CAAC;IACrD,MAAM,CAAU,wBAAwB,GAAW,CAAC,CAAC;IACrD,MAAM,CAAU,mBAAmB,GAAW,CAAC,CAAC;IAChD,MAAM,CAAU,oBAAoB,GAAW,CAAC,CAAC;IACjD,MAAM,CAAU,qBAAqB,GAAW,CAAC,CAAC;IAClD,MAAM,CAAU,aAAa,GAAW,CAAC,CAAC;IAC1C,MAAM,CAAU,YAAY,GAAW,CAAC,CAAC;IACzC,MAAM,CAAU,cAAc,GAAW,CAAC,CAAC;IAC3C,MAAM,CAAU,eAAe,GAAW,CAAC,CAAC;IAC5C,MAAM,CAAU,iBAAiB,GAAW,EAAE,CAAC;IAC/C,MAAM,CAAU,eAAe,GAAW,EAAE,CAAC;IAC7C,MAAM,CAAU,oBAAoB,GAAW,EAAE,CAAC;IAClD,MAAM,CAAU,qBAAqB,GAAW,EAAE,CAAC;IACnD,MAAM,CAAU,iBAAiB,GAAW,MAAM,CAAC;IACnD,MAAM,CAAU,sBAAsB,GAAW,EAAE,CAAC;IACpD,MAAM,CAAU,sBAAsB,GAAW,EAAE,CAAC;IACpD,MAAM,CAAU,yBAAyB,GAAW,MAAM,CAAC;IAC3D,MAAM,CAAU,uBAAuB,GAAW,EAAE,CAAC;IACrD,MAAM,CAAU,wBAAwB,GAAW,EAAE,CAAC;IACtD,MAAM,CAAU,WAAW,GAAW,OAAO,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { KeyChord } from "@noldova/desktop.protocol";
|
|
11
|
+
/**
|
|
12
|
+
* A command a window part registers: a named action with a title, an
|
|
13
|
+
* optional icon and default key, and its handler.
|
|
14
|
+
*/
|
|
15
|
+
export declare class CommandContribution {
|
|
16
|
+
/**
|
|
17
|
+
* The command's name, `<module id>.<name>`.
|
|
18
|
+
*/
|
|
19
|
+
readonly name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The title that menus, command search and Keyboard shortcuts show.
|
|
22
|
+
*/
|
|
23
|
+
readonly title: string;
|
|
24
|
+
/**
|
|
25
|
+
* The glyph shown beside the title, or null when it has none.
|
|
26
|
+
*/
|
|
27
|
+
readonly icon: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The key that runs it unless the person binds another, or null when it
|
|
30
|
+
* has none.
|
|
31
|
+
*/
|
|
32
|
+
readonly defaultKey: KeyChord | null;
|
|
33
|
+
/**
|
|
34
|
+
* Runs the command with its arguments and resolves to its result.
|
|
35
|
+
*/
|
|
36
|
+
readonly runAsync: (commandArguments: JsonValue) => Promise<JsonValue>;
|
|
37
|
+
/**
|
|
38
|
+
* Tells whether the command is enabled for given arguments.
|
|
39
|
+
*/
|
|
40
|
+
readonly isEnabled: (commandArguments: JsonValue) => boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Tells whether the command is checked for given arguments, or null when
|
|
43
|
+
* it is never checked, so menus show no checkbox for it.
|
|
44
|
+
*/
|
|
45
|
+
readonly isChecked: ((commandArguments: JsonValue) => boolean) | null;
|
|
46
|
+
/**
|
|
47
|
+
* Tells whether the command applies to given arguments; a menu row whose
|
|
48
|
+
* command does not apply is left out.
|
|
49
|
+
*/
|
|
50
|
+
readonly isApplicable: (commandArguments: JsonValue) => boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Creates the command.
|
|
53
|
+
*
|
|
54
|
+
* @param name The command's name, `<module id>.<name>`.
|
|
55
|
+
* @param title The title, not blank.
|
|
56
|
+
* @param icon The glyph, not blank, or null.
|
|
57
|
+
* @param defaultKey The default key, such as `Mod+Alt+N`, with Mod, Ctrl
|
|
58
|
+
* or Alt or as a function key, and not one editing or the operating
|
|
59
|
+
* system owns; or null.
|
|
60
|
+
* @param runAsync Runs the command with its arguments, null when run
|
|
61
|
+
* without, and resolves to its result.
|
|
62
|
+
* @param isEnabled Whether it is enabled for given arguments; always when
|
|
63
|
+
* left out.
|
|
64
|
+
* @param isChecked Whether it is checked for given arguments; never
|
|
65
|
+
* checked when left out or null.
|
|
66
|
+
* @param isApplicable Whether it applies to given arguments; always when
|
|
67
|
+
* left out.
|
|
68
|
+
* @throws ArgumentException synchronously when the name is not
|
|
69
|
+
* `<module id>.<name>`, the title or icon is blank, or the default key is
|
|
70
|
+
* not a valid default key.
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* import { CommandContribution } from "@noldova/desktop.window";
|
|
74
|
+
*
|
|
75
|
+
* let isWrapped: boolean = false;
|
|
76
|
+
*
|
|
77
|
+
* export const wrap: CommandContribution = new CommandContribution("notes.toggleWrap", "Wrap lines", "wrap", "Mod+Alt+W",
|
|
78
|
+
* () => {
|
|
79
|
+
* isWrapped = !isWrapped;
|
|
80
|
+
* return Promise.resolve(isWrapped);
|
|
81
|
+
* },
|
|
82
|
+
* () => true,
|
|
83
|
+
* () => isWrapped,
|
|
84
|
+
* commandArguments => commandArguments === null);
|
|
85
|
+
* ```
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* import { CommandContribution } from "@noldova/desktop.window";
|
|
89
|
+
*
|
|
90
|
+
* export const refresh: CommandContribution = new CommandContribution("notes.refresh", "Refresh notes", null, null, () => Promise.resolve(null));
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, title: string, icon: string | null, defaultKey: string | null, runAsync: (commandArguments: JsonValue) => Promise<JsonValue>, isEnabled?: (commandArguments: JsonValue) => boolean, isChecked?: ((commandArguments: JsonValue) => boolean) | null, isApplicable?: (commandArguments: JsonValue) => boolean);
|
|
94
|
+
private static always;
|
|
95
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { KeyChord, QualifiedName } from "@noldova/desktop.protocol";
|
|
11
|
+
import { Resources } from "../../resources.js";
|
|
12
|
+
export class CommandContribution {
|
|
13
|
+
name;
|
|
14
|
+
title;
|
|
15
|
+
icon;
|
|
16
|
+
defaultKey;
|
|
17
|
+
runAsync;
|
|
18
|
+
isEnabled;
|
|
19
|
+
isChecked;
|
|
20
|
+
isApplicable;
|
|
21
|
+
constructor(name, title, icon, defaultKey, runAsync, isEnabled = CommandContribution.always, isChecked = null, isApplicable = CommandContribution.always) {
|
|
22
|
+
ArgumentException.throwIfNullOrWhitespace(title, Resources.titleParameter);
|
|
23
|
+
if (!Object.isNull(icon))
|
|
24
|
+
ArgumentException.throwIfNullOrWhitespace(icon, Resources.iconParameter);
|
|
25
|
+
this.name = QualifiedName.parse(name, Resources.nameParameter).text;
|
|
26
|
+
this.title = title;
|
|
27
|
+
this.icon = icon;
|
|
28
|
+
this.defaultKey = Object.isNull(defaultKey) ? null : KeyChord.parseDefault(defaultKey, Resources.defaultKeyParameter);
|
|
29
|
+
this.runAsync = runAsync;
|
|
30
|
+
this.isEnabled = isEnabled;
|
|
31
|
+
this.isChecked = isChecked;
|
|
32
|
+
this.isApplicable = isApplicable;
|
|
33
|
+
}
|
|
34
|
+
static always() {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=command-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-contribution.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/command-contribution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,OAAO,mBAAmB;IACd,IAAI,CAAS;IACb,KAAK,CAAS;IACd,IAAI,CAAgB;IACpB,UAAU,CAAkB;IAC5B,QAAQ,CAAsD;IAC9D,SAAS,CAA2C;IACpD,SAAS,CAAoD;IAC7D,YAAY,CAA2C;IAEvE,YACE,IAAY,EACZ,KAAa,EACb,IAAmB,EACnB,UAAyB,EACzB,QAA6D,EAC7D,YAAsD,mBAAmB,CAAC,MAAM,EAChF,YAA+D,IAAI,EACnE,eAAyD,mBAAmB,CAAC,MAAM;QAEnF,iBAAiB,CAAC,uBAAuB,CAAC,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;QAC3E,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,iBAAiB,CAAC,uBAAuB,CAAC,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;QAE3E,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC;QACpE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACtH,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAEO,MAAM,CAAC,MAAM;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -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
|
+
export declare class CommandMatch {
|
|
9
|
+
static readonly none: CommandMatch;
|
|
10
|
+
readonly titleMatches: readonly number[];
|
|
11
|
+
readonly detailMatches: readonly number[];
|
|
12
|
+
constructor(titleMatches: readonly number[], detailMatches: readonly number[]);
|
|
13
|
+
}
|
|
@@ -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
|
+
export class CommandMatch {
|
|
9
|
+
static none = new CommandMatch([], []);
|
|
10
|
+
titleMatches;
|
|
11
|
+
detailMatches;
|
|
12
|
+
constructor(titleMatches, detailMatches) {
|
|
13
|
+
this.titleMatches = [...titleMatches];
|
|
14
|
+
this.detailMatches = [...detailMatches];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=command-match.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-match.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/command-match.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,YAAY;IAChB,MAAM,CAAU,IAAI,GAAiB,IAAI,YAAY,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAErD,YAAY,CAAoB;IAChC,aAAa,CAAoB;IAEjD,YAAmB,YAA+B,EAAE,aAAgC;QAClF,IAAI,CAAC,YAAY,GAAG,CAAC,GAAG,YAAY,CAAC,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;IAC1C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { CommandMatch } from "./command-match.js";
|
|
9
|
+
export declare class CommandMatcher {
|
|
10
|
+
static match(query: string, detail: string, title: string): CommandMatch | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { QueryMatcher } from "@noldova/ui.components.angular";
|
|
9
|
+
import { Resources } from "../../resources.js";
|
|
10
|
+
import { CommandMatch } from "./command-match.js";
|
|
11
|
+
export class CommandMatcher {
|
|
12
|
+
static match(query, detail, title) {
|
|
13
|
+
const inTitle = QueryMatcher.find(query, title);
|
|
14
|
+
if (inTitle.length > 0)
|
|
15
|
+
return new CommandMatch(inTitle, []);
|
|
16
|
+
const titleStart = detail.length + Resources.detailSeparator.length;
|
|
17
|
+
const run = QueryMatcher.find(query, `${detail}${Resources.detailSeparator}${title}`);
|
|
18
|
+
if (run.length === 0)
|
|
19
|
+
return null;
|
|
20
|
+
return new CommandMatch(run.filter(t => t >= titleStart).map(t => t - titleStart), run.filter(t => t < detail.length));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=command-matcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-matcher.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/command-matcher.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,OAAO,cAAc;IAClB,MAAM,CAAC,KAAK,CAAC,KAAa,EAAE,MAAc,EAAE,KAAa;QAC9D,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAChD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;YACpB,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACvC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC;QACpE,MAAM,GAAG,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC,eAAe,GAAG,KAAK,EAAE,CAAC,CAAC;QACtF,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;YAClB,OAAO,IAAI,CAAC;QACd,OAAO,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IACzH,CAAC;CACF"}
|
|
@@ -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 type { JsonObject } from "@noldova/context.json";
|
|
9
|
+
import type { MenuCheck } from "../enums/menu-check.js";
|
|
10
|
+
import { MenuRow } from "./menu-row.js";
|
|
11
|
+
export declare class CommandRow extends MenuRow {
|
|
12
|
+
readonly isSubmenu: false;
|
|
13
|
+
readonly command: string;
|
|
14
|
+
readonly commandArguments: JsonObject;
|
|
15
|
+
readonly key: string | null;
|
|
16
|
+
readonly isEnabled: boolean;
|
|
17
|
+
readonly check: MenuCheck;
|
|
18
|
+
readonly isChecked: boolean;
|
|
19
|
+
constructor(command: string, commandArguments: JsonObject, title: string, icon: string | null, key: string | null, isEnabled: boolean, check: MenuCheck, isChecked: boolean);
|
|
20
|
+
}
|
|
@@ -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 { MenuRow } from "./menu-row.js";
|
|
9
|
+
export class CommandRow extends MenuRow {
|
|
10
|
+
isSubmenu = false;
|
|
11
|
+
command;
|
|
12
|
+
commandArguments;
|
|
13
|
+
key;
|
|
14
|
+
isEnabled;
|
|
15
|
+
check;
|
|
16
|
+
isChecked;
|
|
17
|
+
constructor(command, commandArguments, title, icon, key, isEnabled, check, isChecked) {
|
|
18
|
+
super(title, icon);
|
|
19
|
+
this.command = command;
|
|
20
|
+
this.commandArguments = commandArguments;
|
|
21
|
+
this.key = key;
|
|
22
|
+
this.isEnabled = isEnabled;
|
|
23
|
+
this.check = check;
|
|
24
|
+
this.isChecked = isChecked;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=command-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-row.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/command-row.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,OAAO,UAAW,SAAQ,OAAO;IACrB,SAAS,GAAU,KAAK,CAAC;IACzB,OAAO,CAAS;IAChB,gBAAgB,CAAa;IAC7B,GAAG,CAAgB;IACnB,SAAS,CAAU;IACnB,KAAK,CAAY;IACjB,SAAS,CAAU;IAEnC,YAAmB,OAAe,EAAE,gBAA4B,EAAE,KAAa,EAAE,IAAmB,EAAE,GAAkB,EAAE,SAAkB,EAAE,KAAgB,EAAE,SAAkB;QAChL,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAEnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,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
|
+
import type { QuickInputItem } from "@noldova/ui.components.angular";
|
|
10
|
+
export declare class CommandSearchEntry {
|
|
11
|
+
readonly item: QuickInputItem;
|
|
12
|
+
readonly run: () => void;
|
|
13
|
+
constructor(item: QuickInputItem, run: () => void);
|
|
14
|
+
get detail(): string;
|
|
15
|
+
}
|
|
@@ -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 "@noldova/context.core";
|
|
9
|
+
export class CommandSearchEntry {
|
|
10
|
+
item;
|
|
11
|
+
run;
|
|
12
|
+
constructor(item, run) {
|
|
13
|
+
this.item = item;
|
|
14
|
+
this.run = run;
|
|
15
|
+
}
|
|
16
|
+
get detail() {
|
|
17
|
+
return this.item.detail ?? String.empty;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=command-search-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-search-entry.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/command-search-entry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAI/B,MAAM,OAAO,kBAAkB;IACb,IAAI,CAAiB;IACrB,GAAG,CAAa;IAEhC,YAAmB,IAAoB,EAAE,GAAe;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { ContentPadding } from "../enums/content-padding.js";
|
|
10
|
+
/**
|
|
11
|
+
* The padding choice of the page a tab shows, which the page's component
|
|
12
|
+
* injects with {@link WindowPartTokens.contentPadding} to override its
|
|
13
|
+
* declaration and its module for as long as it is shown.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ContentPaddingRef {
|
|
16
|
+
private readonly chosen;
|
|
17
|
+
/**
|
|
18
|
+
* The page's own choice, or null while it leaves the padding to its
|
|
19
|
+
* declaration and its module.
|
|
20
|
+
*/
|
|
21
|
+
readonly value: Signal<ContentPadding | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the page's padding until it is set again or reset.
|
|
24
|
+
*
|
|
25
|
+
* @param padding The padding the page wants.
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { Component, inject } from "@angular/core";
|
|
29
|
+
* import { ContentPadding, WindowPartTokens } from "@noldova/desktop.window";
|
|
30
|
+
*
|
|
31
|
+
* @Component({ selector: "nol-terminal-page", template: "<div class=\"terminal\"></div>" })
|
|
32
|
+
* export class TerminalPageComponent {
|
|
33
|
+
* public constructor() {
|
|
34
|
+
* inject(WindowPartTokens.contentPadding).set(ContentPadding.None);
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
set(padding: ContentPadding): void;
|
|
40
|
+
/**
|
|
41
|
+
* Drops the page's choice, so its declaration and its module decide again.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* import { Component, inject } from "@angular/core";
|
|
46
|
+
* import { ContentPadding, type ContentPaddingRef, WindowPartTokens } from "@noldova/desktop.window";
|
|
47
|
+
*
|
|
48
|
+
* @Component({
|
|
49
|
+
* selector: "nol-notes-preview",
|
|
50
|
+
* template: "<button type=\"button\" (click)=\"showFullWidth()\">Full width</button><button type=\"button\" (click)=\"showDefault()\">Default</button>"
|
|
51
|
+
* })
|
|
52
|
+
* export class NotesPreviewComponent {
|
|
53
|
+
* private readonly padding: ContentPaddingRef = inject(WindowPartTokens.contentPadding);
|
|
54
|
+
*
|
|
55
|
+
* protected showFullWidth(): void {
|
|
56
|
+
* this.padding.set(ContentPadding.None);
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* protected showDefault(): void {
|
|
60
|
+
* this.padding.reset();
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
reset(): void;
|
|
66
|
+
}
|
|
@@ -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 { signal } from "@angular/core";
|
|
9
|
+
export class ContentPaddingRef {
|
|
10
|
+
chosen = signal(null, /* @ts-ignore */
|
|
11
|
+
...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
|
|
12
|
+
value = this.chosen.asReadonly();
|
|
13
|
+
set(padding) {
|
|
14
|
+
this.chosen.set(padding);
|
|
15
|
+
}
|
|
16
|
+
reset() {
|
|
17
|
+
this.chosen.set(null);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=content-padding-ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-padding-ref.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/models/content-padding-ref.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAoC,MAAM,EAAE,MAAM,eAAe,CAAC;AAIzE,MAAM,OAAO,iBAAiB;IACX,MAAM,GAA0C,MAAM,CAAC,IAAI;+EAAC,CAAC;IAE9D,KAAK,GAAkC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;IAEzE,GAAG,CAAC,OAAuB;QAChC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAEM,KAAK;QACV,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;CACF"}
|