@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,117 @@
|
|
|
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 { Component, computed, inject, input } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { AppearanceService, ContextMenuTriggerDirective, IconButtonComponent, PanelCardComponent, PanelSurface, SashComponent, SashOrientation, ToolbarDirective, ToolbarItemDirective, ToolbarOrientation, TooltipDirective, ViewBadgeComponent } from "@noldova/ui.components.angular";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import { DockSide } from "../../enums/dock-side.js";
|
|
13
|
+
import { Bounds } from "../../models/layout/bounds.js";
|
|
14
|
+
import { DockStripIcon } from "../../models/layout/dock-strip-icon.js";
|
|
15
|
+
import { TabDropTarget } from "../../models/layout/tab-drop-target.js";
|
|
16
|
+
import { LayoutService } from "../../services/layout.service.js";
|
|
17
|
+
import { TabFocusService } from "../../services/tab-focus.service.js";
|
|
18
|
+
import { TabDragService } from "../../services/tab-drag.service.js";
|
|
19
|
+
import { TabLabelService } from "../../services/tab-label.service.js";
|
|
20
|
+
import { PlaceMenuComponent } from "../place-menu/place-menu.component.js";
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
export class DockComponent {
|
|
23
|
+
appearance = inject(AppearanceService);
|
|
24
|
+
tabFocus = inject(TabFocusService);
|
|
25
|
+
resources = Resources;
|
|
26
|
+
surface = PanelSurface.Shell;
|
|
27
|
+
layout = inject(LayoutService);
|
|
28
|
+
labels = inject(TabLabelService);
|
|
29
|
+
drag = inject(TabDragService);
|
|
30
|
+
dock = computed(() => this.layout.layout().dock(this.side()), /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "dock" }] : /* istanbul ignore next */ []));
|
|
32
|
+
bounds = computed(() => this.layout.geometry().dock(this.side()), /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "bounds" }] : /* istanbul ignore next */ []));
|
|
34
|
+
isShown = computed(() => this.layout.geometry().isShown(this.side()), /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "isShown" }] : /* istanbul ignore next */ []));
|
|
36
|
+
isCollapsed = computed(() => this.layout.geometry().isCollapsed(this.side()), /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "isCollapsed" }] : /* istanbul ignore next */ []));
|
|
38
|
+
orientation = computed(() => this.side() === DockSide.Bottom ? SashOrientation.Horizontal : SashOrientation.Vertical, /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
40
|
+
size = computed(() => this.bounds().length(this.dock().axis), /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
42
|
+
minimumSize = computed(() => Math.min(this.dock().minimumSize(this.layout.geometry().metrics), this.size()), /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "minimumSize" }] : /* istanbul ignore next */ []));
|
|
44
|
+
isVertical = computed(() => this.side() !== DockSide.Bottom, /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "isVertical" }] : /* istanbul ignore next */ []));
|
|
46
|
+
tooltipSide = computed(() => Resources.dockStripTooltipSides[this.side()], /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "tooltipSide" }] : /* istanbul ignore next */ []));
|
|
48
|
+
isRail = computed(() => !Object.isNull(this.layout.geometry().rail(this.side())), /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "isRail" }] : /* istanbul ignore next */ []));
|
|
50
|
+
stripBounds = computed(() => this.layout.geometry().rail(this.side()) ?? (this.isCollapsed() ? this.bounds() : null), /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "stripBounds" }] : /* istanbul ignore next */ []));
|
|
52
|
+
stripOrientation = computed(() => this.isVertical() ? ToolbarOrientation.Vertical : ToolbarOrientation.Horizontal, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "stripOrientation" }] : /* istanbul ignore next */ []));
|
|
54
|
+
axis = computed(() => this.isVertical() ? Resources.verticalOrientation : Resources.horizontalOrientation, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
|
|
56
|
+
separatorOrientation = computed(() => this.isVertical() ? Resources.horizontalOrientation : Resources.verticalOrientation, /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "separatorOrientation" }] : /* istanbul ignore next */ []));
|
|
58
|
+
sash = computed(() => {
|
|
59
|
+
const bounds = this.bounds();
|
|
60
|
+
const gap = this.layout.geometry().metrics.gap;
|
|
61
|
+
switch (this.side()) {
|
|
62
|
+
case DockSide.Left:
|
|
63
|
+
return new Bounds(bounds.right, bounds.y, gap, bounds.height);
|
|
64
|
+
case DockSide.Right:
|
|
65
|
+
return new Bounds(bounds.x - gap, bounds.y, gap, bounds.height);
|
|
66
|
+
default:
|
|
67
|
+
return new Bounds(bounds.x, bounds.y - gap, bounds.width, gap);
|
|
68
|
+
}
|
|
69
|
+
}, /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "sash" }] : /* istanbul ignore next */ []));
|
|
71
|
+
side = input.required(/* @ts-ignore */
|
|
72
|
+
...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
73
|
+
iconsOf(root) {
|
|
74
|
+
const groups = root.groups.map(t => [t, t.tabs.filter(u => u.isAvailable(this.layout.registry()) && !u.equals(this.layout.hidden()))]).filter(([, tabs]) => tabs.length > 0);
|
|
75
|
+
return groups.map(([group, tabs], position) => tabs.map((tab, order) => {
|
|
76
|
+
const index = group.tabs.findIndex(t => t.equals(tab));
|
|
77
|
+
const previous = order === 0 ? groups[position - 1]?.[0] : undefined;
|
|
78
|
+
const before = Object.isUndefined(previous) ? new TabDropTarget(group.id, index) : new TabDropTarget(previous.id, previous.tabs.length);
|
|
79
|
+
return new DockStripIcon(group, tab, before, new TabDropTarget(group.id, index + 1));
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
encode(target) {
|
|
83
|
+
return `${target.groupId}${Resources.dropTargetSeparator}${target.index}`;
|
|
84
|
+
}
|
|
85
|
+
isShowing(group, tab) {
|
|
86
|
+
return !this.isCollapsed() && tab.equals(group.active);
|
|
87
|
+
}
|
|
88
|
+
toggle(group, tab, event) {
|
|
89
|
+
if (this.isShowing(group, tab))
|
|
90
|
+
this.layout.toggleDock(this.side());
|
|
91
|
+
else {
|
|
92
|
+
this.layout.activate(tab);
|
|
93
|
+
this.layout.keepOpen(this.side());
|
|
94
|
+
if (event.detail > 0)
|
|
95
|
+
this.tabFocus.focusContent(tab);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
pixels(rem) {
|
|
99
|
+
return Math.round(rem * this.appearance.typography().rootSize);
|
|
100
|
+
}
|
|
101
|
+
resize(delta) {
|
|
102
|
+
const rem = delta / this.appearance.typography().rootSize;
|
|
103
|
+
const grow = this.side() === DockSide.Left ? rem : -rem;
|
|
104
|
+
const size = Math.max(this.minimumSize(), Math.min(this.layout.geometry().maximumSize(this.side()), this.size() + grow));
|
|
105
|
+
this.layout.resizeDock(this.side(), size);
|
|
106
|
+
}
|
|
107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
108
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: DockComponent, isStandalone: true, selector: "nol-dock", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "attr.data-side": "side()", "class.nol-dock-collapsed": "isCollapsed()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (isShown()) {\n @if (stripBounds(); as box) {\n @if (dock().root; as root) {\n <nol-panel-card class=\"nol-dock-strip\" [class.nol-dock-strip-vertical]=\"isVertical()\" [class.nol-dock-strip-rail]=\"isRail()\" [surface]=\"surface\"\n [attr.data-drop-group]=\"root.cornerGroup.id\" data-drop-tabs nolToolbar [nolToolbarOrientation]=\"stripOrientation()\" [nolToolbarLabel]=\"resources.dockStripLabels[side()]\"\n [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" [style.width.rem]=\"box.width\" [style.height.rem]=\"box.height\">\n @for (icons of iconsOf(root); track icons[0]?.group?.id; let first = $first, lastGroup = $last) {\n @if (!first) {\n <span class=\"nol-dock-strip-separator\" role=\"separator\" [attr.aria-orientation]=\"separatorOrientation()\"></span>\n }\n @for (icon of icons; track icon.tab.key; let last = $last) {\n @let tab = icon.tab;\n @let label = labels.of(tab);\n @let badge = labels.badgeOf(tab);\n <nol-place-menu #menu [place]=\"resources.tabMenu\" [context]=\"{ tab: tab.key }\" />\n <button type=\"button\" nol-icon-button nolToolbarItem class=\"nol-dock-strip-view\" [nolContextMenuTriggerFor]=\"menu.menu()\" [attr.data-view]=\"tab.key\" [icon]=\"label.icon\"\n [attr.data-drop-before]=\"encode(icon.before)\" [attr.data-drop-after]=\"encode(icon.after)\" [attr.data-drop-axis]=\"axis()\"\n [class.nol-drop-line-before]=\"icon.before.equals(drag.target())\" [class.nol-drop-line-after]=\"lastGroup && last && icon.after.equals(drag.target())\" [class.nol-drop-line-vertical]=\"isVertical()\"\n [class.nol-dock-strip-dragged]=\"tab.equals(drag.dragging())\" (pointerdown)=\"drag.begin(tab, $event)\"\n [label]=\"badge ? resources.formatBadged(label.title, badge.description) : label.title\"\n [pressed]=\"isShowing(icon.group, tab)\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"tooltipSide()\" [nolTooltipBeside]=\"resources.dockStripSelector\" (click)=\"toggle(icon.group, tab, $event)\">\n @if (badge) {\n <nol-view-badge class=\"nol-dock-strip-badge\" [count]=\"badge.count\" />\n }\n </button>\n }\n }\n </nol-panel-card>\n }\n }\n @if (!isCollapsed()) {\n @let box = sash();\n <nol-sash class=\"nol-dock-sash\" [orientation]=\"orientation()\" [label]=\"resources.resizeDockLabels[side()]\" [value]=\"pixels(size())\"\n [minimum]=\"pixels(minimumSize())\" [maximum]=\"pixels(layout.geometry().maximumSize(side()))\" (resize)=\"resize($event)\"\n [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" [style.width.rem]=\"box.width\" [style.height.rem]=\"box.height\" />\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.nol-dock-strip {\n position: absolute;\n flex-direction: row;\n align-items: center;\n gap: var(--nol-space-1);\n padding: var(--nol-space-1);\n}\n\n.nol-dock-strip-vertical {\n flex-direction: column;\n}\n\n.nol-dock-strip-dragged {\n opacity: 0.5;\n}\n\n.nol-dock-strip-badge {\n grid-area: 1 / 1;\n align-self: start;\n justify-self: end;\n}\n\n.nol-dock-strip-separator {\n flex: none;\n align-self: stretch;\n width: var(--nol-border-width);\n background-color: var(--nol-border);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n\n.nol-dock-strip-vertical .nol-dock-strip-separator {\n width: auto;\n height: var(--nol-border-width);\n}\n\n.nol-dock-sash {\n position: absolute;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: PanelCardComponent, selector: "nol-panel-card", inputs: ["surface"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "component", type: SashComponent, selector: "nol-sash", inputs: ["orientation", "label", "value", "minimum", "maximum", "step"], outputs: ["resize"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }, { kind: "component", type: ViewBadgeComponent, selector: "nol-view-badge", inputs: ["count"] }] });
|
|
109
|
+
}
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DockComponent, decorators: [{
|
|
111
|
+
type: Component,
|
|
112
|
+
args: [{ selector: "nol-dock", imports: [ContextMenuTriggerDirective, IconButtonComponent, PanelCardComponent, PlaceMenuComponent, SashComponent, ToolbarDirective, ToolbarItemDirective, TooltipDirective, ViewBadgeComponent], host: {
|
|
113
|
+
"[attr.data-side]": "side()",
|
|
114
|
+
"[class.nol-dock-collapsed]": "isCollapsed()"
|
|
115
|
+
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (isShown()) {\n @if (stripBounds(); as box) {\n @if (dock().root; as root) {\n <nol-panel-card class=\"nol-dock-strip\" [class.nol-dock-strip-vertical]=\"isVertical()\" [class.nol-dock-strip-rail]=\"isRail()\" [surface]=\"surface\"\n [attr.data-drop-group]=\"root.cornerGroup.id\" data-drop-tabs nolToolbar [nolToolbarOrientation]=\"stripOrientation()\" [nolToolbarLabel]=\"resources.dockStripLabels[side()]\"\n [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" [style.width.rem]=\"box.width\" [style.height.rem]=\"box.height\">\n @for (icons of iconsOf(root); track icons[0]?.group?.id; let first = $first, lastGroup = $last) {\n @if (!first) {\n <span class=\"nol-dock-strip-separator\" role=\"separator\" [attr.aria-orientation]=\"separatorOrientation()\"></span>\n }\n @for (icon of icons; track icon.tab.key; let last = $last) {\n @let tab = icon.tab;\n @let label = labels.of(tab);\n @let badge = labels.badgeOf(tab);\n <nol-place-menu #menu [place]=\"resources.tabMenu\" [context]=\"{ tab: tab.key }\" />\n <button type=\"button\" nol-icon-button nolToolbarItem class=\"nol-dock-strip-view\" [nolContextMenuTriggerFor]=\"menu.menu()\" [attr.data-view]=\"tab.key\" [icon]=\"label.icon\"\n [attr.data-drop-before]=\"encode(icon.before)\" [attr.data-drop-after]=\"encode(icon.after)\" [attr.data-drop-axis]=\"axis()\"\n [class.nol-drop-line-before]=\"icon.before.equals(drag.target())\" [class.nol-drop-line-after]=\"lastGroup && last && icon.after.equals(drag.target())\" [class.nol-drop-line-vertical]=\"isVertical()\"\n [class.nol-dock-strip-dragged]=\"tab.equals(drag.dragging())\" (pointerdown)=\"drag.begin(tab, $event)\"\n [label]=\"badge ? resources.formatBadged(label.title, badge.description) : label.title\"\n [pressed]=\"isShowing(icon.group, tab)\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"tooltipSide()\" [nolTooltipBeside]=\"resources.dockStripSelector\" (click)=\"toggle(icon.group, tab, $event)\">\n @if (badge) {\n <nol-view-badge class=\"nol-dock-strip-badge\" [count]=\"badge.count\" />\n }\n </button>\n }\n }\n </nol-panel-card>\n }\n }\n @if (!isCollapsed()) {\n @let box = sash();\n <nol-sash class=\"nol-dock-sash\" [orientation]=\"orientation()\" [label]=\"resources.resizeDockLabels[side()]\" [value]=\"pixels(size())\"\n [minimum]=\"pixels(minimumSize())\" [maximum]=\"pixels(layout.geometry().maximumSize(side()))\" (resize)=\"resize($event)\"\n [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" [style.width.rem]=\"box.width\" [style.height.rem]=\"box.height\" />\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.nol-dock-strip {\n position: absolute;\n flex-direction: row;\n align-items: center;\n gap: var(--nol-space-1);\n padding: var(--nol-space-1);\n}\n\n.nol-dock-strip-vertical {\n flex-direction: column;\n}\n\n.nol-dock-strip-dragged {\n opacity: 0.5;\n}\n\n.nol-dock-strip-badge {\n grid-area: 1 / 1;\n align-self: start;\n justify-self: end;\n}\n\n.nol-dock-strip-separator {\n flex: none;\n align-self: stretch;\n width: var(--nol-border-width);\n background-color: var(--nol-border);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n\n.nol-dock-strip-vertical .nol-dock-strip-separator {\n width: auto;\n height: var(--nol-border-width);\n}\n\n.nol-dock-sash {\n position: absolute;\n}\n"] }]
|
|
116
|
+
}], propDecorators: { side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: true }] }] } });
|
|
117
|
+
//# sourceMappingURL=dock.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dock.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/dock/dock.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/dock/dock.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAe,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhF,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EAAE,2BAA2B,EAAE,mBAAmB,EAAe,kBAAkB,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAC9M,gBAAgB,EAAE,kBAAkB,EACrC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;;AAY3E,MAAM,OAAO,aAAa;IACP,UAAU,GAAsB,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1D,QAAQ,GAAoB,MAAM,CAAC,e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I,EAAE,EAAE,IAAI,CAAC,CAAC;IAC5C,CAAC;uGA5EU,aAAa;2FAAb,aAAa,uSCzC1B,+5FA6CA,s/BDZY,2BAA2B,qJAAE,mBAAmB,2MAAE,kBAAkB,gFAAE,kBAAkB,iGAAE,aAAa,mJAAE,gBAAgB,uKAAE,oBAAoB,6DAAE,gBAAgB,6LAAE,kBAAkB;;2FAQpL,aAAa;kBAVzB,SAAS;+BACE,UAAU,WACX,CAAC,2BAA2B,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,CAAC,QAG1L;wBACJ,kBAAkB,EAAE,QAAQ;wBAC5B,4BAA4B,EAAE,eAAe;qBAC9C"}
|
|
@@ -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 { type Signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { DockingDirection } from "@noldova/ui.components.angular";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import { DockSide } from "../../enums/dock-side.js";
|
|
13
|
+
import type { Bounds } from "../../models/layout/bounds.js";
|
|
14
|
+
import { DockingOverlay } from "../../models/layout/docking-overlay.js";
|
|
15
|
+
import type { GroupFrame } from "../../models/layout/group-frame.js";
|
|
16
|
+
import { SideDropTarget } from "../../models/layout/side-drop-target.js";
|
|
17
|
+
import { TabDragService } from "../../services/tab-drag.service.js";
|
|
18
|
+
import { TabLabelService } from "../../services/tab-label.service.js";
|
|
19
|
+
import * as i0 from "@angular/core";
|
|
20
|
+
export declare class DockingGuidesComponent {
|
|
21
|
+
private readonly layout;
|
|
22
|
+
protected readonly resources: typeof Resources;
|
|
23
|
+
protected readonly drag: TabDragService;
|
|
24
|
+
protected readonly labels: TabLabelService;
|
|
25
|
+
protected readonly sides: readonly DockSide[];
|
|
26
|
+
protected readonly overlay: Signal<DockingOverlay>;
|
|
27
|
+
protected readonly preview: Signal<Bounds | null>;
|
|
28
|
+
protected readonly plateFrame: Signal<GroupFrame | null>;
|
|
29
|
+
protected readonly outerTarget: SideDropTarget;
|
|
30
|
+
protected targetOf(side: DockSide): SideDropTarget;
|
|
31
|
+
protected isChosen(target: SideDropTarget): boolean;
|
|
32
|
+
protected plateChoice(frame: GroupFrame): DockingDirection | null;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DockingGuidesComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DockingGuidesComponent, "nol-docking-guides", never, {}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { Component, computed, inject } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { DockingDirection, DockingGuideComponent, DockingPlateComponent } from "@noldova/ui.components.angular";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import { BottomDockSpan } from "../../enums/bottom-dock-span.js";
|
|
13
|
+
import { DockSide } from "../../enums/dock-side.js";
|
|
14
|
+
import { DockingOverlay } from "../../models/layout/docking-overlay.js";
|
|
15
|
+
import { GroupDropTarget } from "../../models/layout/group-drop-target.js";
|
|
16
|
+
import { SideDropTarget } from "../../models/layout/side-drop-target.js";
|
|
17
|
+
import { SplitDropTarget } from "../../models/layout/split-drop-target.js";
|
|
18
|
+
import { LayoutService } from "../../services/layout.service.js";
|
|
19
|
+
import { TabDragService } from "../../services/tab-drag.service.js";
|
|
20
|
+
import { TabLabelService } from "../../services/tab-label.service.js";
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
export class DockingGuidesComponent {
|
|
23
|
+
layout = inject(LayoutService);
|
|
24
|
+
resources = Resources;
|
|
25
|
+
drag = inject(TabDragService);
|
|
26
|
+
labels = inject(TabLabelService);
|
|
27
|
+
sides = Object.values(DockSide);
|
|
28
|
+
overlay = computed(() => new DockingOverlay(this.layout.geometry()), /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "overlay" }] : /* istanbul ignore next */ []));
|
|
30
|
+
preview = computed(() => this.drag.target()?.preview(this.layout.geometry()) ?? null, /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "preview" }] : /* istanbul ignore next */ []));
|
|
32
|
+
plateFrame = computed(() => {
|
|
33
|
+
const tab = this.drag.dragging();
|
|
34
|
+
const id = this.drag.hoveredGroup();
|
|
35
|
+
const frame = Object.isNull(id) ? null : this.layout.geometry().frameOf(id);
|
|
36
|
+
if (Object.isNull(tab) || Object.isNull(frame) || !this.layout.layout().canSplit(tab, frame.group.id))
|
|
37
|
+
return null;
|
|
38
|
+
return frame;
|
|
39
|
+
}, /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "plateFrame" }] : /* istanbul ignore next */ []));
|
|
41
|
+
outerTarget = new SideDropTarget(DockSide.Bottom, BottomDockSpan.Full);
|
|
42
|
+
targetOf(side) {
|
|
43
|
+
return new SideDropTarget(side, side === DockSide.Bottom ? BottomDockSpan.Between : null);
|
|
44
|
+
}
|
|
45
|
+
isChosen(target) {
|
|
46
|
+
return target.equals(this.drag.target());
|
|
47
|
+
}
|
|
48
|
+
plateChoice(frame) {
|
|
49
|
+
const target = this.drag.target();
|
|
50
|
+
if (target instanceof SplitDropTarget)
|
|
51
|
+
return Resources.edgeDirections[target.edge];
|
|
52
|
+
return new GroupDropTarget(frame.group.id).equals(target) ? DockingDirection.Center : null;
|
|
53
|
+
}
|
|
54
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DockingGuidesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
55
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: DockingGuidesComponent, isStandalone: true, selector: "nol-docking-guides", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (drag.dragging(); as tab) {\n @if (preview(); as box) {\n <div class=\"nol-docking-preview\" [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" [style.width.rem]=\"box.width\" [style.height.rem]=\"box.height\"></div>\n }\n @if (tab.isMovable) {\n @for (side of sides; track side) {\n @let box = overlay().guide(side);\n <nol-docking-guide class=\"nol-docking-side\" [direction]=\"resources.sideDirections[side]\" [chosen]=\"isChosen(targetOf(side))\" [attr.data-drop-side]=\"side\"\n [attr.data-drop-span]=\"targetOf(side).span\" [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" />\n }\n @let outer = overlay().outerGuide();\n <nol-docking-guide class=\"nol-docking-side nol-docking-outer\" [direction]=\"resources.sideDirections.Bottom\" [chosen]=\"isChosen(outerTarget)\"\n [attr.data-drop-side]=\"outerTarget.side\" [attr.data-drop-span]=\"outerTarget.span\" [style.left.rem]=\"outer.x\" [style.top.rem]=\"outer.y\" />\n }\n @if (plateFrame(); as frame) {\n @let box = overlay().plate(frame);\n <nol-docking-plate class=\"nol-docking-group-plate\" data-drop-plate [attr.data-drop-group]=\"frame.group.id\" [chosen]=\"plateChoice(frame)\"\n [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" />\n }\n @let label = labels.of(tab);\n <div class=\"nol-drag-label\" role=\"status\" [style.left.px]=\"drag.pointerX()\" [style.top.px]=\"drag.pointerY()\">\n <span class=\"nol-drag-label-icon material-symbols-rounded\" aria-hidden=\"true\">{{ label.icon }}</span>\n <span class=\"nol-drag-label-text\">{{ resources.formatDraggedTab(label.title) }}</span>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n.nol-docking-preview {\n position: absolute;\n box-sizing: border-box;\n border: var(--nol-border-width) solid var(--nol-docking-preview-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-docking-preview);\n}\n\n.nol-docking-side,\n.nol-docking-group-plate {\n position: absolute;\n pointer-events: auto;\n}\n\n.nol-drag-label {\n position: fixed;\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n translate: var(--nol-space-3) var(--nol-space-3);\n padding: var(--nol-space-1) var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-small);\n background-color: var(--nol-raised);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-text);\n white-space: nowrap;\n}\n\n.nol-drag-label-icon {\n font-size: var(--nol-icon);\n}\n"], dependencies: [{ kind: "component", type: DockingGuideComponent, selector: "nol-docking-guide", inputs: ["direction", "chosen"] }, { kind: "component", type: DockingPlateComponent, selector: "nol-docking-plate", inputs: ["chosen"] }] });
|
|
56
|
+
}
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DockingGuidesComponent, decorators: [{
|
|
58
|
+
type: Component,
|
|
59
|
+
args: [{ selector: "nol-docking-guides", imports: [DockingGuideComponent, DockingPlateComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (drag.dragging(); as tab) {\n @if (preview(); as box) {\n <div class=\"nol-docking-preview\" [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" [style.width.rem]=\"box.width\" [style.height.rem]=\"box.height\"></div>\n }\n @if (tab.isMovable) {\n @for (side of sides; track side) {\n @let box = overlay().guide(side);\n <nol-docking-guide class=\"nol-docking-side\" [direction]=\"resources.sideDirections[side]\" [chosen]=\"isChosen(targetOf(side))\" [attr.data-drop-side]=\"side\"\n [attr.data-drop-span]=\"targetOf(side).span\" [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" />\n }\n @let outer = overlay().outerGuide();\n <nol-docking-guide class=\"nol-docking-side nol-docking-outer\" [direction]=\"resources.sideDirections.Bottom\" [chosen]=\"isChosen(outerTarget)\"\n [attr.data-drop-side]=\"outerTarget.side\" [attr.data-drop-span]=\"outerTarget.span\" [style.left.rem]=\"outer.x\" [style.top.rem]=\"outer.y\" />\n }\n @if (plateFrame(); as frame) {\n @let box = overlay().plate(frame);\n <nol-docking-plate class=\"nol-docking-group-plate\" data-drop-plate [attr.data-drop-group]=\"frame.group.id\" [chosen]=\"plateChoice(frame)\"\n [style.left.rem]=\"box.x\" [style.top.rem]=\"box.y\" />\n }\n @let label = labels.of(tab);\n <div class=\"nol-drag-label\" role=\"status\" [style.left.px]=\"drag.pointerX()\" [style.top.px]=\"drag.pointerY()\">\n <span class=\"nol-drag-label-icon material-symbols-rounded\" aria-hidden=\"true\">{{ label.icon }}</span>\n <span class=\"nol-drag-label-text\">{{ resources.formatDraggedTab(label.title) }}</span>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n.nol-docking-preview {\n position: absolute;\n box-sizing: border-box;\n border: var(--nol-border-width) solid var(--nol-docking-preview-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-docking-preview);\n}\n\n.nol-docking-side,\n.nol-docking-group-plate {\n position: absolute;\n pointer-events: auto;\n}\n\n.nol-drag-label {\n position: fixed;\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n translate: var(--nol-space-3) var(--nol-space-3);\n padding: var(--nol-space-1) var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-small);\n background-color: var(--nol-raised);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-text);\n white-space: nowrap;\n}\n\n.nol-drag-label-icon {\n font-size: var(--nol-icon);\n}\n"] }]
|
|
60
|
+
}] });
|
|
61
|
+
//# sourceMappingURL=docking-guides.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docking-guides.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/docking-guides/docking-guides.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/docking-guides/docking-guides.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEhH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;;AAQtE,MAAM,OAAO,sBAAsB;IAChB,MAAM,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;I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,CAAC,IAAc;QAC/B,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,IAAI,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC5F,CAAC;IAES,QAAQ,CAAC,MAAsB;QACvC,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3C,CAAC;IAES,WAAW,CAAC,KAAiB;QACrC,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAClC,IAAI,MAAM,YAAY,eAAe;YACnC,OAAO,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7F,CAAC;uGAjCU,sBAAsB;2FAAtB,sBAAsB,8EChCnC,gxDAiCA,0pCDLY,qBAAqB,+FAAE,qBAAqB;;2FAI3C,sBAAsB;kBANlC,SAAS;+BACE,oBAAoB,WACrB,CAAC,qBAAqB,EAAE,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Resources } from "../../../resources.js";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EmptyWindowComponent {
|
|
4
|
+
protected readonly resources: typeof Resources;
|
|
5
|
+
protected readonly productName: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyWindowComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyWindowComponent, "nol-empty-window", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { Component } from "@angular/core";
|
|
9
|
+
import { ProductName } from "../../models/product-name.js";
|
|
10
|
+
import { Resources } from "../../../resources.js";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export class EmptyWindowComponent {
|
|
13
|
+
resources = Resources;
|
|
14
|
+
productName = ProductName.current;
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: EmptyWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: EmptyWindowComponent, isStandalone: true, selector: "nol-empty-window", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<p class=\"nol-empty-window-name\">{{ productName }}</p>\n<p class=\"nol-empty-window-state\">{{ resources.noModules }}</p>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--nol-space-1);\n color: var(--nol-text-muted);\n text-align: center;\n}\n\np {\n margin: 0;\n}\n\n.nol-empty-window-name {\n font-size: var(--nol-text-heading);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n line-height: var(--nol-line-heading);\n}\n"] });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: EmptyWindowComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: "nol-empty-window", template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<p class=\"nol-empty-window-name\">{{ productName }}</p>\n<p class=\"nol-empty-window-state\">{{ resources.noModules }}</p>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--nol-space-1);\n color: var(--nol-text-muted);\n text-align: center;\n}\n\np {\n margin: 0;\n}\n\n.nol-empty-window-name {\n font-size: var(--nol-text-heading);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n line-height: var(--nol-line-heading);\n}\n"] }]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=empty-window.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-window.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/empty-window/empty-window.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/empty-window/empty-window.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAOlD,MAAM,OAAO,oBAAoB;IACZ,SAAS,GAAqB,SAAS,CAAC;IACxC,WAAW,GAAW,WAAW,CAAC,OAAO,CAAC;uGAFlD,oBAAoB;2FAApB,oBAAoB,4EClBjC,sSAUA;;2FDQa,oBAAoB;kBALhC,SAAS;+BACE,kBAAkB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 WritableSignal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import type { JsonObject } from "@noldova/context.json";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class FieldMenuComponent {
|
|
14
|
+
private readonly trigger;
|
|
15
|
+
private readonly bridge;
|
|
16
|
+
private readonly edits;
|
|
17
|
+
private pending;
|
|
18
|
+
protected readonly resources: typeof Resources;
|
|
19
|
+
protected readonly context: WritableSignal<JsonObject>;
|
|
20
|
+
constructor();
|
|
21
|
+
protected noteFromPointer(event: MouseEvent): void;
|
|
22
|
+
protected noteFromKeyboard(event: KeyboardEvent): void;
|
|
23
|
+
private note;
|
|
24
|
+
private answer;
|
|
25
|
+
private open;
|
|
26
|
+
private targetOf;
|
|
27
|
+
private static focusedIn;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldMenuComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldMenuComponent, "nol-field-menu", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { Component, DestroyRef, inject, signal, viewChild } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { ContextMenuTriggerDirective } from "@noldova/ui.components.angular";
|
|
11
|
+
import { EditTarget } from "../../models/edit-target.js";
|
|
12
|
+
import { EditTargetService } from "../../services/edit-target.service.js";
|
|
13
|
+
import { PreloadBridgeService } from "../../services/preload-bridge.service.js";
|
|
14
|
+
import { PlaceMenuComponent } from "../place-menu/place-menu.component.js";
|
|
15
|
+
import { Resources } from "../../../resources.js";
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export class FieldMenuComponent {
|
|
18
|
+
trigger = viewChild.required(ContextMenuTriggerDirective, /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
|
|
20
|
+
bridge = inject(PreloadBridgeService);
|
|
21
|
+
edits = inject(EditTargetService);
|
|
22
|
+
pending = null;
|
|
23
|
+
resources = Resources;
|
|
24
|
+
context = signal({}, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
26
|
+
constructor() {
|
|
27
|
+
const stop = this.bridge.onFieldMenu(t => this.answer(t));
|
|
28
|
+
inject(DestroyRef).onDestroy(stop);
|
|
29
|
+
}
|
|
30
|
+
noteFromPointer(event) {
|
|
31
|
+
const field = this.targetOf(event, true);
|
|
32
|
+
if (Object.isNull(field) || (this.pending?.[0] === field && this.pending[1] instanceof KeyboardEvent))
|
|
33
|
+
return;
|
|
34
|
+
this.note(field, event);
|
|
35
|
+
}
|
|
36
|
+
noteFromKeyboard(event) {
|
|
37
|
+
if (event.key !== Resources.contextMenuKey && !(event.key === Resources.functionKey && event.shiftKey))
|
|
38
|
+
return;
|
|
39
|
+
const field = this.targetOf(event, false);
|
|
40
|
+
if (Object.isNull(field))
|
|
41
|
+
return;
|
|
42
|
+
this.note(field, event);
|
|
43
|
+
if (this.bridge.isMac)
|
|
44
|
+
this.open(null);
|
|
45
|
+
}
|
|
46
|
+
note(field, event) {
|
|
47
|
+
this.pending = [field, event];
|
|
48
|
+
}
|
|
49
|
+
answer(request) {
|
|
50
|
+
const event = this.pending?.[1];
|
|
51
|
+
if (Object.isUndefined(event) || request.isKeyboard !== event instanceof KeyboardEvent)
|
|
52
|
+
return;
|
|
53
|
+
if (event instanceof MouseEvent && (Math.abs(request.x - event.clientX) > Resources.fieldMenuSlack || Math.abs(request.y - event.clientY) > Resources.fieldMenuSlack))
|
|
54
|
+
return;
|
|
55
|
+
this.open(request);
|
|
56
|
+
}
|
|
57
|
+
open(request) {
|
|
58
|
+
const pending = this.pending;
|
|
59
|
+
this.pending = null;
|
|
60
|
+
if (Object.isNull(pending) || !pending[0].isConnected)
|
|
61
|
+
return;
|
|
62
|
+
const [noted, event] = pending;
|
|
63
|
+
const field = EditTarget.fieldOf(noted) === noted ? noted : FieldMenuComponent.focusedIn(noted);
|
|
64
|
+
if (Object.isNull(field))
|
|
65
|
+
return;
|
|
66
|
+
this.context.set(request?.toContext() ?? {});
|
|
67
|
+
if (event instanceof KeyboardEvent)
|
|
68
|
+
this.trigger().openFromKeyboard(event, field);
|
|
69
|
+
else
|
|
70
|
+
this.trigger().openAtPointer(event, field);
|
|
71
|
+
}
|
|
72
|
+
targetOf(event, isPointer) {
|
|
73
|
+
const element = event.target;
|
|
74
|
+
if (event.defaultPrevented || !(element instanceof HTMLElement) || !Object.isNull(element.closest(Resources.transientFocusSelector)))
|
|
75
|
+
return null;
|
|
76
|
+
return EditTarget.fieldOf(element) ?? (isPointer ? this.edits.sourceOf(element) : null);
|
|
77
|
+
}
|
|
78
|
+
static focusedIn(source) {
|
|
79
|
+
const active = source.ownerDocument.activeElement;
|
|
80
|
+
return active instanceof HTMLElement && source.contains(active) ? active : null;
|
|
81
|
+
}
|
|
82
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: FieldMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
83
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: FieldMenuComponent, isStandalone: true, selector: "nol-field-menu", host: { listeners: { "document:contextmenu": "noteFromPointer($event)", "document:keydown": "noteFromKeyboard($event)" } }, viewQueries: [{ propertyName: "trigger", first: true, predicate: ContextMenuTriggerDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-place-menu #menu [place]=\"resources.fieldMenu\" [context]=\"context()\" />\n<span class=\"nol-field-menu-trigger\" [nolContextMenuTriggerFor]=\"menu.menu()\"></span>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: none;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }] });
|
|
84
|
+
}
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: FieldMenuComponent, decorators: [{
|
|
86
|
+
type: Component,
|
|
87
|
+
args: [{ selector: "nol-field-menu", imports: [ContextMenuTriggerDirective, PlaceMenuComponent], host: {
|
|
88
|
+
"(document:contextmenu)": "noteFromPointer($event)",
|
|
89
|
+
"(document:keydown)": "noteFromKeyboard($event)"
|
|
90
|
+
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-place-menu #menu [place]=\"resources.fieldMenu\" [context]=\"context()\" />\n<span class=\"nol-field-menu-trigger\" [nolContextMenuTriggerFor]=\"menu.menu()\"></span>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: none;\n}\n"] }]
|
|
91
|
+
}], ctorParameters: () => [], propDecorators: { trigger: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ContextMenuTriggerDirective), { isSignal: true }] }] } });
|
|
92
|
+
//# sourceMappingURL=field-menu.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-menu.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/field-menu/field-menu.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/field-menu/field-menu.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAoC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEnH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAYlD,MAAM,OAAO,kBAAkB;IACZ,OAAO,GAAwC,SAAS,CAAC,QAAQ,CAAC,2BAA2B;gFAAC,CAAC;IAC/F,MAAM,GAAyB,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC5D,KAAK,GAAsB,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC9D,OAAO,GAA8D,IAAI,CAAC;IAE/D,SAAS,GAAqB,SAAS,CAAC;IACxC,OAAO,GAA+B,MAAM,CAAC,EAAE;gFAAC,CAAC;IAEpE;QACE,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAES,eAAe,CAAC,KAAiB;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAC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d,OAAO,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC1F,CAAC;IAEO,MAAM,CAAC,SAAS,CAAC,MAAmB;QAC1C,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC;QAClD,OAAO,MAAM,YAAY,WAAW,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAClF,CAAC;uGAvEU,kBAAkB;2FAAlB,kBAAkB,+OACsD,2BAA2B,gEChChH,sVAUA,4QDaY,2BAA2B,qJAAE,kBAAkB;;2FAQ9C,kBAAkB;kBAV9B,SAAS;+BACE,gBAAgB,WACjB,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,QAGpD;wBACJ,wBAAwB,EAAE,yBAAyB;wBACnD,oBAAoB,EAAE,0BAA0B;qBACjD;mHAGkF,2BAA2B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 Signal } from "@angular/core";
|
|
10
|
+
import { TextMatch } from "../../models/settings/text-match.js";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class HighlightedTextComponent {
|
|
13
|
+
protected readonly parts: Signal<readonly TextMatch[]>;
|
|
14
|
+
readonly text: import("@angular/core").InputSignal<string>;
|
|
15
|
+
readonly query: import("@angular/core").InputSignal<string>;
|
|
16
|
+
readonly breaksWords: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightedTextComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HighlightedTextComponent, "nol-highlighted-text", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "breaksWords": { "alias": "breaksWords"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { NgTemplateOutlet } from "@angular/common";
|
|
10
|
+
import { Component, computed, input } from "@angular/core";
|
|
11
|
+
import { TextMatch } from "../../models/settings/text-match.js";
|
|
12
|
+
import { WordBreaks } from "../../models/settings/word-breaks.js";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export class HighlightedTextComponent {
|
|
15
|
+
parts = computed(() => {
|
|
16
|
+
const parts = TextMatch.split(this.text(), this.query());
|
|
17
|
+
return this.breaksWords() ? WordBreaks.split(parts) : parts;
|
|
18
|
+
}, /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "parts" }] : /* istanbul ignore next */ []));
|
|
20
|
+
text = input.required(/* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
22
|
+
query = input(String.empty, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
24
|
+
breaksWords = input(false, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "breaksWords" }] : /* istanbul ignore next */ []));
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: HighlightedTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: HighlightedTextComponent, isStandalone: true, selector: "nol-highlighted-text", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, breaksWords: { classPropertyName: "breaksWords", publicName: "breaksWords", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<ng-template #pieces let-part>@for (piece of part.pieces; track $index) {@if (!$first) {<wbr>}{{ piece }}}</ng-template>@for (part of parts(); track $index) {@if (part.breaksBefore) {<wbr>}@if (part.isMatch) {<mark class=\"nol-highlighted-text-match\"><ng-container *ngTemplateOutlet=\"pieces; context: { $implicit: part }\" /></mark>} @else {<ng-container *ngTemplateOutlet=\"pieces; context: { $implicit: part }\" />}}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-highlighted-text-match {\n background-color: transparent;\n color: var(--nol-list-highlight);\n text-decoration: underline;\n text-underline-offset: 0.125em;\n}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: HighlightedTextComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: "nol-highlighted-text", imports: [NgTemplateOutlet], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<ng-template #pieces let-part>@for (piece of part.pieces; track $index) {@if (!$first) {<wbr>}{{ piece }}}</ng-template>@for (part of parts(); track $index) {@if (part.breaksBefore) {<wbr>}@if (part.isMatch) {<mark class=\"nol-highlighted-text-match\"><ng-container *ngTemplateOutlet=\"pieces; context: { $implicit: part }\" /></mark>} @else {<ng-container *ngTemplateOutlet=\"pieces; context: { $implicit: part }\" />}}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-highlighted-text-match {\n background-color: transparent;\n color: var(--nol-list-highlight);\n text-decoration: underline;\n text-underline-offset: 0.125em;\n}\n"] }]
|
|
32
|
+
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }], breaksWords: [{ type: i0.Input, args: [{ isSignal: true, alias: "breaksWords", required: false }] }] } });
|
|
33
|
+
//# sourceMappingURL=highlighted-text.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlighted-text.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/highlighted-text/highlighted-text.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/highlighted-text/highlighted-text.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAe,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;;AAQlE,MAAM,OAAO,wBAAwB;IAChB,KAAK,GAAiC,QAAQ,CAAC,GAAG,EAAE;QACrE,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QACzD,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9D,CAAC;8EAAC,CAAC;IAEa,IAAI,GAAG,KAAK,CAAC,QAAQ;6EAAU,CAAC;IAChC,KAAK,GAAG,KAAK,CAAS,MAAM,CAAC,KAAK;8EAAC,CAAC;IACpC,WAAW,GAAG,KAAK,CAAU,KAAK;oFAAC,CAAC;uGARzC,wBAAwB;2FAAxB,wBAAwB,kdCrBrC,+kBASA,yZDQY,gBAAgB;;2FAIf,wBAAwB;kBANpC,SAAS;+BACE,sBAAsB,WACvB,CAAC,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 "@noldova/context.core";
|
|
10
|
+
import type { JsonObject } from "@noldova/context.json";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class LinkMenuComponent {
|
|
14
|
+
private readonly trigger;
|
|
15
|
+
private readonly links;
|
|
16
|
+
protected readonly resources: typeof Resources;
|
|
17
|
+
protected readonly context: Signal<JsonObject>;
|
|
18
|
+
constructor();
|
|
19
|
+
private static elementOf;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkMenuComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkMenuComponent, "nol-link-menu", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { Component, afterRenderEffect, computed, inject, untracked, viewChild } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { ContextMenuTriggerDirective } from "@noldova/ui.components.angular";
|
|
11
|
+
import { LinkService } from "../../services/link.service.js";
|
|
12
|
+
import { PlaceMenuComponent } from "../place-menu/place-menu.component.js";
|
|
13
|
+
import { Resources } from "../../../resources.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class LinkMenuComponent {
|
|
16
|
+
trigger = viewChild.required(ContextMenuTriggerDirective, /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
|
|
18
|
+
links = inject(LinkService);
|
|
19
|
+
resources = Resources;
|
|
20
|
+
context = computed(() => {
|
|
21
|
+
const request = this.links.menu();
|
|
22
|
+
return Object.isNull(request) ? {} : { [Resources.urlArgument]: request.url };
|
|
23
|
+
}, /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
25
|
+
constructor() {
|
|
26
|
+
afterRenderEffect(() => {
|
|
27
|
+
const request = this.links.menu();
|
|
28
|
+
const target = LinkMenuComponent.elementOf(request?.event.target ?? null);
|
|
29
|
+
if (!Object.isNull(request) && !Object.isNull(target))
|
|
30
|
+
untracked(() => this.trigger().openAtPointer(request.event, target));
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
static elementOf(target) {
|
|
34
|
+
let element = target instanceof Element ? target : null;
|
|
35
|
+
while (!Object.isNull(element) && !(element instanceof HTMLElement))
|
|
36
|
+
element = element.parentElement;
|
|
37
|
+
return element;
|
|
38
|
+
}
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: LinkMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: LinkMenuComponent, isStandalone: true, selector: "nol-link-menu", viewQueries: [{ propertyName: "trigger", first: true, predicate: ContextMenuTriggerDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-place-menu #menu [place]=\"resources.linkMenu\" [context]=\"context()\" />\n<span class=\"nol-link-menu-trigger\" [nolContextMenuTriggerFor]=\"menu.menu()\"></span>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: none;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }] });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: LinkMenuComponent, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{ selector: "nol-link-menu", imports: [ContextMenuTriggerDirective, PlaceMenuComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-place-menu #menu [place]=\"resources.linkMenu\" [context]=\"context()\" />\n<span class=\"nol-link-menu-trigger\" [nolContextMenuTriggerFor]=\"menu.menu()\"></span>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: none;\n}\n"] }]
|
|
45
|
+
}], ctorParameters: () => [], propDecorators: { trigger: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ContextMenuTriggerDirective), { isSignal: true }] }] } });
|
|
46
|
+
//# sourceMappingURL=link-menu.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-menu.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/link-menu/link-menu.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/link-menu/link-menu.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAe,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAElH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAG7E,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAQlD,MAAM,OAAO,iBAAiB;IACX,OAAO,GAAwC,SAAS,CAAC,QAAQ,CAAC,2BAA2B;gFAAC,CAAC;IAC/F,KAAK,GAAgB,MAAM,CAAC,WAAW,CAAC,CAAC;IAEvC,SAAS,GAAqB,SAAS,CAAC;IACxC,OAAO,GAAuB,QAAQ,CAAC,GAAG,EAAE;QAC7D,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;IAChF,CAAC;gFAAC,CAAC;IAEH;QACE,iBAAiB,CAAC,GAAG,EAAE;YACrB,MAAM,O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