@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,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { FocusTrapFactory } from "@angular/cdk/a11y";
|
|
9
|
+
import { NgComponentOutlet } from "@angular/common";
|
|
10
|
+
import { Component, DestroyRef, ElementRef, Injector, afterRenderEffect, computed, inject, input, resource, untracked } from "@angular/core";
|
|
11
|
+
import "@noldova/context.core";
|
|
12
|
+
import { ContentPadding } from "../../enums/content-padding.js";
|
|
13
|
+
import { ContentPaddingRef } from "../../models/content-padding-ref.js";
|
|
14
|
+
import { Bounds } from "../../models/layout/bounds.js";
|
|
15
|
+
import { DocumentTab } from "../../models/layout/document-tab.js";
|
|
16
|
+
import { TabContent } from "../../models/tab-content.js";
|
|
17
|
+
import { WindowPartTokens } from "../../models/window-part-tokens.js";
|
|
18
|
+
import { DockGrowthService } from "../../services/dock-growth.service.js";
|
|
19
|
+
import { TabFocusService } from "../../services/tab-focus.service.js";
|
|
20
|
+
import { TabLabelService } from "../../services/tab-label.service.js";
|
|
21
|
+
import { WindowPartHostService } from "../../services/window-part-host.service.js";
|
|
22
|
+
import { ModuleFailureCardComponent } from "../module-failure-card/module-failure-card.component.js";
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
export class TabContentComponent {
|
|
25
|
+
host = inject(WindowPartHostService);
|
|
26
|
+
labels = inject(TabLabelService);
|
|
27
|
+
injector = inject(Injector);
|
|
28
|
+
tabFocus = inject(TabFocusService);
|
|
29
|
+
focusTraps = inject(FocusTrapFactory);
|
|
30
|
+
growth = inject(DockGrowthService);
|
|
31
|
+
revision = computed(() => this.host.revisionOf(this.tab()), /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "revision" }] : /* istanbul ignore next */ []));
|
|
33
|
+
stableTab = computed(() => this.tab(), { ...(ngDevMode ? { debugName: "stableTab" } : /* istanbul ignore next */ {}), equal: (a, b) => a.equals(b) });
|
|
34
|
+
focused = null;
|
|
35
|
+
isRetrying = false;
|
|
36
|
+
changes = new MutationObserver(() => this.retry());
|
|
37
|
+
content = resource({ ...(ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {}), params: () => ({ tab: this.stableTab(), revision: this.revision() }),
|
|
38
|
+
loader: ({ params }) => this.loadAsync(params.tab) });
|
|
39
|
+
isPadded = computed(() => {
|
|
40
|
+
const value = this.content.value();
|
|
41
|
+
return !Object.isNullOrUndefined(value) && (value.pagePadding.value() ?? value.padding) === ContentPadding.Default;
|
|
42
|
+
}, /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "isPadded" }] : /* istanbul ignore next */ []));
|
|
44
|
+
element = inject(ElementRef).nativeElement;
|
|
45
|
+
tab = input.required(/* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "tab" }] : /* istanbul ignore next */ []));
|
|
47
|
+
isDocked = input(false, /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "isDocked" }] : /* istanbul ignore next */ []));
|
|
49
|
+
isShown = input(true, /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "isShown" }] : /* istanbul ignore next */ []));
|
|
51
|
+
isLoaded = computed(() => this.content.hasValue(), /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "isLoaded" }] : /* istanbul ignore next */ []));
|
|
53
|
+
constructor() {
|
|
54
|
+
afterRenderEffect({
|
|
55
|
+
read: () => {
|
|
56
|
+
const isAsked = this.tabFocus.content() === this.tab().key && this.isLoaded();
|
|
57
|
+
untracked(() => this.follow(isAsked));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
afterRenderEffect({
|
|
61
|
+
read: () => {
|
|
62
|
+
const isAsked = this.isDocked() && this.isShown() && this.isLoaded() && !Object.isNull(this.growth.minimumOf(this.tab()));
|
|
63
|
+
if (isAsked)
|
|
64
|
+
untracked(() => this.growDock());
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
inject(DestroyRef).onDestroy(() => this.changes.disconnect());
|
|
68
|
+
}
|
|
69
|
+
remember(event) {
|
|
70
|
+
if (event.target instanceof HTMLElement)
|
|
71
|
+
this.focused = event.target;
|
|
72
|
+
}
|
|
73
|
+
follow(isAsked) {
|
|
74
|
+
this.changes.disconnect();
|
|
75
|
+
if (isAsked && !this.focusInside())
|
|
76
|
+
this.changes.observe(this.element, { childList: true, subtree: true });
|
|
77
|
+
}
|
|
78
|
+
growDock() {
|
|
79
|
+
const style = getComputedStyle(this.element);
|
|
80
|
+
const width = this.element.clientWidth - Number.parseFloat(style.paddingLeft) - Number.parseFloat(style.paddingRight);
|
|
81
|
+
const height = this.element.clientHeight - Number.parseFloat(style.paddingTop) - Number.parseFloat(style.paddingBottom);
|
|
82
|
+
const rootSize = Number.parseFloat(getComputedStyle(this.element.ownerDocument.documentElement).fontSize);
|
|
83
|
+
if (width > 0 && height > 0)
|
|
84
|
+
this.growth.fit(this.tab(), new Bounds(0, 0, width / rootSize, height / rootSize));
|
|
85
|
+
}
|
|
86
|
+
retry() {
|
|
87
|
+
if (this.isRetrying)
|
|
88
|
+
return;
|
|
89
|
+
this.isRetrying = true;
|
|
90
|
+
requestAnimationFrame(() => {
|
|
91
|
+
this.isRetrying = false;
|
|
92
|
+
if (this.tabFocus.isContentAsked(this.tab()))
|
|
93
|
+
this.focusInside();
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
focusInside() {
|
|
97
|
+
if (!Object.isNull(this.focused) && this.element.contains(this.focused))
|
|
98
|
+
this.focused.focus({ preventScroll: true });
|
|
99
|
+
if (!this.hasFocus()) {
|
|
100
|
+
const trap = this.focusTraps.create(this.element, true);
|
|
101
|
+
trap.focusFirstTabbableElement({ preventScroll: true });
|
|
102
|
+
trap.destroy();
|
|
103
|
+
}
|
|
104
|
+
const isInside = this.hasFocus();
|
|
105
|
+
if (isInside)
|
|
106
|
+
this.tabFocus.settleContent(this.tab());
|
|
107
|
+
return isInside;
|
|
108
|
+
}
|
|
109
|
+
hasFocus() {
|
|
110
|
+
return this.element.contains(this.element.ownerDocument.activeElement);
|
|
111
|
+
}
|
|
112
|
+
async loadAsync(tab) {
|
|
113
|
+
const match = this.host.findContribution(tab);
|
|
114
|
+
const pagePadding = new ContentPaddingRef();
|
|
115
|
+
if (Object.isNull(match)) {
|
|
116
|
+
const failure = this.host.findFailure(tab);
|
|
117
|
+
return Object.isNull(failure) ? null : new TabContent(ModuleFailureCardComponent, this.injector, { failure }, ContentPadding.Default, pagePadding);
|
|
118
|
+
}
|
|
119
|
+
const component = await match.loadComponent();
|
|
120
|
+
const page = [{ provide: WindowPartTokens.contentPadding, useValue: pagePadding }, { provide: WindowPartTokens.shown, useValue: this.isShown }];
|
|
121
|
+
if (Object.isNull(match.context))
|
|
122
|
+
return new TabContent(component, Injector.create({ providers: page, parent: this.injector }), {}, match.padding, pagePadding);
|
|
123
|
+
const injector = Injector.create({ providers: [{ provide: WindowPartTokens.context, useValue: match.context }, ...page], parent: this.injector });
|
|
124
|
+
const inputs = tab instanceof DocumentTab || !Object.isUndefined(tab.instance) ? { instance: tab.instance, title: this.labels.of(tab).title } : {};
|
|
125
|
+
return new TabContent(component, injector, inputs, match.padding, pagePadding);
|
|
126
|
+
}
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TabContentComponent, isStandalone: true, selector: "nol-tab-content", inputs: { tab: { classPropertyName: "tab", publicName: "tab", isSignal: true, isRequired: true, transformFunction: null }, isDocked: { classPropertyName: "isDocked", publicName: "isDocked", isSignal: true, isRequired: false, transformFunction: null }, isShown: { classPropertyName: "isShown", publicName: "isShown", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusin": "remember($event)" }, properties: { "class.nol-tab-content-padded": "isPadded()", "class.nol-tab-content-docked": "isDocked()", "attr.data-tab-content": "tab().key" } }, 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 (content.value(); as value) {\n <ng-container *ngComponentOutlet=\"value.type; injector: value.injector; inputs: value.inputs\" />\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: flex;\n flex: 1;\n flex-direction: column;\n grid-row: 2;\n grid-column: 1;\n min-height: 0;\n overflow: auto;\n}\n\n:host(.nol-tab-content-concealed) {\n visibility: hidden;\n opacity: 0;\n}\n\n:host(.nol-tab-content-padded) {\n scrollbar-gutter: stable;\n padding: var(--nol-document-padding-block) var(--nol-content-padding-inline);\n}\n\n:host(.nol-tab-content-padded.nol-tab-content-docked) {\n padding: var(--nol-view-padding-block) var(--nol-content-padding-inline);\n}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }] });
|
|
129
|
+
}
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabContentComponent, decorators: [{
|
|
131
|
+
type: Component,
|
|
132
|
+
args: [{ selector: "nol-tab-content", imports: [NgComponentOutlet], host: {
|
|
133
|
+
"[class.nol-tab-content-padded]": "isPadded()",
|
|
134
|
+
"[class.nol-tab-content-docked]": "isDocked()",
|
|
135
|
+
"[attr.data-tab-content]": "tab().key",
|
|
136
|
+
"(focusin)": "remember($event)"
|
|
137
|
+
}, 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 (content.value(); as value) {\n <ng-container *ngComponentOutlet=\"value.type; injector: value.injector; inputs: value.inputs\" />\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: flex;\n flex: 1;\n flex-direction: column;\n grid-row: 2;\n grid-column: 1;\n min-height: 0;\n overflow: auto;\n}\n\n:host(.nol-tab-content-concealed) {\n visibility: hidden;\n opacity: 0;\n}\n\n:host(.nol-tab-content-padded) {\n scrollbar-gutter: stable;\n padding: var(--nol-document-padding-block) var(--nol-content-padding-inline);\n}\n\n:host(.nol-tab-content-padded.nol-tab-content-docked) {\n padding: var(--nol-view-padding-block) var(--nol-content-padding-inline);\n}\n"] }]
|
|
138
|
+
}], ctorParameters: () => [], propDecorators: { tab: [{ type: i0.Input, args: [{ isSignal: true, alias: "tab", required: true }] }], isDocked: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDocked", required: false }] }], isShown: [{ type: i0.Input, args: [{ isSignal: true, alias: "isShown", required: false }] }] } });
|
|
139
|
+
//# sourceMappingURL=tab-content.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-content.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/tab-content/tab-content.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/tab-content/tab-content.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EACL,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAmD,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAClJ,SAAS,EACV,MAAM,eAAe,CAAC;AAEvB,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;;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AAE,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAClJ,MAAM,MAAM,GAAG,GAAG,YAAY,WAAW,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnJ,OAAO,IAAI,UAAU,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACjF,CAAC;uGA7GU,mBAAmB;2FAAnB,mBAAmB,ipBC1ChC,qTAWA,2uBDqBY,iBAAiB;;2FAUhB,mBAAmB;kBAZ/B,SAAS;+BACE,iBAAiB,WAClB,CAAC,iBAAiB,CAAC,QAGtB;wBACJ,gCAAgC,EAAE,YAAY;wBAC9C,gCAAgC,EAAE,YAAY;wBAC9C,yBAAyB,EAAE,WAAW;wBACtC,WAAW,EAAE,kBAAkB;qBAChC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type Signal } from "@angular/core";
|
|
2
|
+
import "@noldova/context.core";
|
|
3
|
+
import { OverlayAlignment, OverlaySide, PanelSurface } from "@noldova/ui.components.angular";
|
|
4
|
+
import { Resources } from "../../../resources.js";
|
|
5
|
+
import { DockSide } from "../../enums/dock-side.js";
|
|
6
|
+
import type { CommandRow } from "../../models/command-row.js";
|
|
7
|
+
import type { GroupFrame } from "../../models/layout/group-frame.js";
|
|
8
|
+
import type { Tab } from "../../models/layout/tab.js";
|
|
9
|
+
import type { TabGroup } from "../../models/layout/tab-group.js";
|
|
10
|
+
import type { SubmenuRow } from "../../models/submenu-row.js";
|
|
11
|
+
import { LayoutService } from "../../services/layout.service.js";
|
|
12
|
+
import { TabDragService } from "../../services/tab-drag.service.js";
|
|
13
|
+
import { TabLabelService } from "../../services/tab-label.service.js";
|
|
14
|
+
import { TabRenameService } from "../../services/tab-rename.service.js";
|
|
15
|
+
import { TabRowService } from "../../services/tab-row.service.js";
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class TabGroupComponent {
|
|
18
|
+
private readonly host;
|
|
19
|
+
private readonly tabFocus;
|
|
20
|
+
private readonly commands;
|
|
21
|
+
private readonly scroller;
|
|
22
|
+
private readonly overflowTrigger;
|
|
23
|
+
protected readonly resources: typeof Resources;
|
|
24
|
+
protected readonly below: OverlaySide;
|
|
25
|
+
protected readonly besides: OverlaySide;
|
|
26
|
+
protected readonly end: OverlayAlignment;
|
|
27
|
+
protected readonly layout: LayoutService;
|
|
28
|
+
protected readonly drag: TabDragService;
|
|
29
|
+
protected readonly labels: TabLabelService;
|
|
30
|
+
protected readonly renames: TabRenameService;
|
|
31
|
+
protected readonly tabRows: TabRowService;
|
|
32
|
+
protected readonly group: Signal<TabGroup>;
|
|
33
|
+
protected readonly rowActions: Signal<readonly (CommandRow | SubmenuRow)[]>;
|
|
34
|
+
protected readonly surface: Signal<PanelSurface>;
|
|
35
|
+
protected readonly isShell: Signal<boolean>;
|
|
36
|
+
protected readonly panelId: Signal<string>;
|
|
37
|
+
protected readonly isDropAtEnd: Signal<boolean>;
|
|
38
|
+
protected readonly activeTabId: Signal<string | null>;
|
|
39
|
+
protected readonly header: Signal<Tab | null>;
|
|
40
|
+
protected readonly hideSide: Signal<DockSide | null>;
|
|
41
|
+
readonly frame: import("@angular/core").InputSignal<GroupFrame>;
|
|
42
|
+
constructor();
|
|
43
|
+
protected tabId(index: number): string;
|
|
44
|
+
protected choose(tab: Tab): void;
|
|
45
|
+
protected onTabPointerDown(tab: Tab, event: PointerEvent): void;
|
|
46
|
+
protected onTabClick(tab: Tab, event: MouseEvent): void;
|
|
47
|
+
protected close(tab: Tab): void;
|
|
48
|
+
protected onTabDoubleClick(tab: Tab): void;
|
|
49
|
+
protected closeAll(): void;
|
|
50
|
+
protected onStripKey(event: KeyboardEvent): void;
|
|
51
|
+
private indexFor;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "nol-tab-group", never, { "frame": { "alias": "frame"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
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 { NgTemplateOutlet } from "@angular/common";
|
|
9
|
+
import { Component, DestroyRef, ElementRef, computed, effect, inject, input, untracked, viewChild } from "@angular/core";
|
|
10
|
+
import "@noldova/context.core";
|
|
11
|
+
import { ContextMenuTriggerDirective, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent, MenuTriggerDirective, OverlayAlignment, OverlaySide, PanelCardComponent, PanelSurface, TabComponent, TooltipDirective } from "@noldova/ui.components.angular";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import { TabScrollerDirective } from "../../directives/tab-scroller.directive.js";
|
|
14
|
+
import { DockSide } from "../../enums/dock-side.js";
|
|
15
|
+
import { CommandService } from "../../services/command.service.js";
|
|
16
|
+
import { LayoutService } from "../../services/layout.service.js";
|
|
17
|
+
import { TabDestinationsService } from "../../services/tab-destinations.service.js";
|
|
18
|
+
import { TabDragService } from "../../services/tab-drag.service.js";
|
|
19
|
+
import { TabFocusService } from "../../services/tab-focus.service.js";
|
|
20
|
+
import { TabLabelService } from "../../services/tab-label.service.js";
|
|
21
|
+
import { TabRenameService } from "../../services/tab-rename.service.js";
|
|
22
|
+
import { TabRowService } from "../../services/tab-row.service.js";
|
|
23
|
+
import { TabStripService } from "../../services/tab-strip.service.js";
|
|
24
|
+
import { PlaceMenuComponent } from "../place-menu/place-menu.component.js";
|
|
25
|
+
import { TabRowActionsComponent } from "../tab-row-actions/tab-row-actions.component.js";
|
|
26
|
+
import * as i0 from "@angular/core";
|
|
27
|
+
export class TabGroupComponent {
|
|
28
|
+
host = inject(ElementRef).nativeElement;
|
|
29
|
+
tabFocus = inject(TabFocusService);
|
|
30
|
+
commands = inject(CommandService);
|
|
31
|
+
scroller = viewChild(TabScrollerDirective, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "scroller" }] : /* istanbul ignore next */ []));
|
|
33
|
+
overflowTrigger = viewChild("overflowTrigger", { ...(ngDevMode ? { debugName: "overflowTrigger" } : /* istanbul ignore next */ {}), read: MenuTriggerDirective });
|
|
34
|
+
resources = Resources;
|
|
35
|
+
below = OverlaySide.below;
|
|
36
|
+
besides = OverlaySide.end;
|
|
37
|
+
end = OverlayAlignment.End;
|
|
38
|
+
layout = inject(LayoutService);
|
|
39
|
+
drag = inject(TabDragService);
|
|
40
|
+
labels = inject(TabLabelService);
|
|
41
|
+
renames = inject(TabRenameService);
|
|
42
|
+
tabRows = inject(TabRowService);
|
|
43
|
+
group = computed(() => this.frame().group, /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
|
|
45
|
+
rowActions = computed(() => this.tabRows.rowsOf(this.group()), /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "rowActions" }] : /* istanbul ignore next */ []));
|
|
47
|
+
surface = computed(() => Object.isNull(this.frame().side) ? PanelSurface.Panel : PanelSurface.Shell, /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "surface" }] : /* istanbul ignore next */ []));
|
|
49
|
+
isShell = computed(() => this.surface() === PanelSurface.Shell, /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "isShell" }] : /* istanbul ignore next */ []));
|
|
51
|
+
panelId = computed(() => `${Resources.tabPanelIdPrefix}${this.group().id}`, /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
|
|
53
|
+
isDropAtEnd = computed(() => this.drag.isDropBefore(this.group().id, this.group().tabs.length), /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "isDropAtEnd" }] : /* istanbul ignore next */ []));
|
|
55
|
+
activeTabId = computed(() => {
|
|
56
|
+
const index = this.group().tabs.findIndex(t => t.equals(this.group().active));
|
|
57
|
+
return index < 0 ? null : this.tabId(index);
|
|
58
|
+
}, /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "activeTabId" }] : /* istanbul ignore next */ []));
|
|
60
|
+
header = computed(() => {
|
|
61
|
+
const side = this.frame().side;
|
|
62
|
+
return !Object.isNull(side) && side !== DockSide.Bottom && this.layout.iconSides().has(side) ? this.group().active : null;
|
|
63
|
+
}, /* @ts-ignore */
|
|
64
|
+
...(ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []));
|
|
65
|
+
hideSide = computed(() => {
|
|
66
|
+
const side = this.frame().side;
|
|
67
|
+
return !Object.isNull(side) && this.layout.layout().dock(side).root?.cornerGroup.id === this.group().id ? side : null;
|
|
68
|
+
}, /* @ts-ignore */
|
|
69
|
+
...(ngDevMode ? [{ debugName: "hideSide" }] : /* istanbul ignore next */ []));
|
|
70
|
+
frame = input.required(/* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []));
|
|
72
|
+
constructor() {
|
|
73
|
+
const strips = inject(TabStripService);
|
|
74
|
+
inject(TabDestinationsService);
|
|
75
|
+
effect(() => strips.setOverflowing(this.group().id, this.scroller()?.isOverflowing() ?? false));
|
|
76
|
+
effect(() => {
|
|
77
|
+
const group = this.group();
|
|
78
|
+
untracked(() => this.tabFocus.followActive(group.tabs, group.active));
|
|
79
|
+
});
|
|
80
|
+
effect(() => {
|
|
81
|
+
const trigger = this.overflowTrigger();
|
|
82
|
+
if (!Object.isUndefined(trigger) && strips.takeListRequest(this.group().id)) {
|
|
83
|
+
trigger.open();
|
|
84
|
+
trigger.getMenu()?.focusFirstItem(Resources.keyboardFocusOrigin);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const keepFieldMenu = (event) => {
|
|
88
|
+
if (!Object.isNull(this.renames.editing()) && event.target instanceof HTMLInputElement)
|
|
89
|
+
event.stopPropagation();
|
|
90
|
+
};
|
|
91
|
+
this.host.addEventListener(Resources.contextMenuEvent, keepFieldMenu, true);
|
|
92
|
+
inject(DestroyRef).onDestroy(() => {
|
|
93
|
+
this.host.removeEventListener(Resources.contextMenuEvent, keepFieldMenu, true);
|
|
94
|
+
strips.setOverflowing(this.group().id, false);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
tabId(index) {
|
|
98
|
+
return `${Resources.tabIdPrefix}${this.group().id}${Resources.tabIdSeparator}${index}`;
|
|
99
|
+
}
|
|
100
|
+
choose(tab) {
|
|
101
|
+
this.layout.activate(tab);
|
|
102
|
+
this.tabFocus.focus(tab);
|
|
103
|
+
}
|
|
104
|
+
onTabPointerDown(tab, event) {
|
|
105
|
+
if (!tab.equals(this.renames.editing()))
|
|
106
|
+
this.drag.begin(tab, event);
|
|
107
|
+
}
|
|
108
|
+
onTabClick(tab, event) {
|
|
109
|
+
if (event.detail > 0)
|
|
110
|
+
this.tabFocus.focusContent(tab);
|
|
111
|
+
}
|
|
112
|
+
close(tab) {
|
|
113
|
+
const hadFocus = this.host.contains(this.host.ownerDocument.activeElement);
|
|
114
|
+
this.layout.close(tab);
|
|
115
|
+
const next = this.layout.layout().group(this.group().id)?.active ?? this.layout.currentGroup().active;
|
|
116
|
+
if (hadFocus && !Object.isNull(next))
|
|
117
|
+
this.tabFocus.focus(next, true);
|
|
118
|
+
}
|
|
119
|
+
onTabDoubleClick(tab) {
|
|
120
|
+
if (this.renames.canRename(tab))
|
|
121
|
+
this.renames.begin(tab);
|
|
122
|
+
else
|
|
123
|
+
this.commands.run(Resources.keepTabCommand, { [Resources.tabArgument]: tab.key });
|
|
124
|
+
}
|
|
125
|
+
closeAll() {
|
|
126
|
+
this.layout.closeTabs(this.group().tabs);
|
|
127
|
+
}
|
|
128
|
+
onStripKey(event) {
|
|
129
|
+
const tabs = this.group().tabs;
|
|
130
|
+
const current = tabs.findIndex(t => t.equals(this.group().active));
|
|
131
|
+
const key = event.ctrlKey || event.metaKey || event.altKey ? String.empty : event.key;
|
|
132
|
+
const active = this.group().active;
|
|
133
|
+
if (key === Resources.renameKey && !Object.isNull(active) && this.renames.canRename(active)) {
|
|
134
|
+
event.preventDefault();
|
|
135
|
+
this.renames.begin(active);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const tab = tabs[this.indexFor(key, current, tabs.length)];
|
|
139
|
+
if (Object.isUndefined(tab))
|
|
140
|
+
return;
|
|
141
|
+
event.preventDefault();
|
|
142
|
+
this.choose(tab);
|
|
143
|
+
}
|
|
144
|
+
indexFor(key, current, count) {
|
|
145
|
+
switch (key) {
|
|
146
|
+
case Resources.arrowLeftKey:
|
|
147
|
+
return (current - 1 + count) % count;
|
|
148
|
+
case Resources.arrowRightKey:
|
|
149
|
+
return (current + 1) % count;
|
|
150
|
+
case Resources.homeKey:
|
|
151
|
+
return 0;
|
|
152
|
+
case Resources.endKey:
|
|
153
|
+
return count - 1;
|
|
154
|
+
default:
|
|
155
|
+
return -1;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
159
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TabGroupComponent, isStandalone: true, selector: "nol-tab-group", inputs: { frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "focusin": "layout.focusGroup(group().id)" }, properties: { "attr.data-group": "group().id", "attr.data-side": "frame().side", "style.left.rem": "frame().bounds.x", "style.top.rem": "frame().bounds.y", "style.width.rem": "frame().bounds.width", "style.height.rem": "frame().bounds.height" } }, viewQueries: [{ propertyName: "scroller", first: true, predicate: TabScrollerDirective, descendants: true, isSignal: true }, { propertyName: "overflowTrigger", first: true, predicate: ["overflowTrigger"], descendants: true, read: MenuTriggerDirective, 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-panel-card class=\"nol-tab-group-card\" [surface]=\"surface()\" [attr.data-drop-group]=\"group().id\">\n @if (header(); as tab) {\n @let label = labels.of(tab);\n <div class=\"nol-tab-group-bar nol-tab-group-header\" data-drop-tabs>\n <span class=\"nol-tab-group-title\" data-truncates [attr.id]=\"activeTabId()\" [attr.data-header-key]=\"tab.key\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"below\" [nolTooltipTruncated]=\"true\">{{ label.title }}</span>\n <div class=\"nol-tab-group-actions\" [class.nol-tab-group-actions-shell]=\"isShell()\" [class.nol-drop-line-before]=\"isDropAtEnd()\">\n <nol-tab-row-actions [group]=\"group()\" />\n <ng-container [ngTemplateOutlet]=\"groupActions\" />\n </div>\n </div>\n } @else {\n <div class=\"nol-tab-group-bar nol-tab-group-tabs\" data-drop-tabs>\n <div #scroller=\"nolTabScroller\" class=\"nol-tab-group-scroller\" [nolTabScroller]=\"actionBar\" [nolTabScrollerFrame]=\"frame()\" [nolTabScrollerRows]=\"rowActions().length\">\n <div class=\"nol-tab-group-strip\" role=\"tablist\" (keydown)=\"onStripKey($event)\">\n @for (tab of group().tabs; track tab.key; let index = $index) {\n @let label = labels.of(tab);\n <nol-place-menu #menu [place]=\"resources.tabMenu\" [context]=\"{ tab: tab.key }\" />\n @let badge = labels.badgeOf(tab);\n @let look = labels.lookOf(tab);\n <nol-tab [label]=\"label.title\" [icon]=\"label.icon\" [badge]=\"badge?.description ?? null\" [badgeCount]=\"badge?.count ?? null\" [selected]=\"tab.equals(group().active)\" [preview]=\"tab.equals(group().preview)\" [working]=\"labels.isWorking(tab)\" [waiting]=\"labels.isWaiting(tab)\" [editing]=\"tab.equals(renames.editing())\" [attr.data-tab-index]=\"index\"\n [image]=\"look.image\" [imageGlyph]=\"look.imageGlyph\" [status]=\"look.status\" [marker]=\"look.marker\" [underline]=\"look.underline\" [leadingSpinner]=\"tab.leadsSpinner\"\n [attr.id]=\"tabId(index)\" [attr.data-tab-key]=\"tab.key\" [class.nol-drop-line-before]=\"drag.isDropBefore(group().id, index)\" [class.nol-tab-dragged]=\"tab.equals(drag.dragging())\"\n [nolTooltip]=\"label.title\" [nolTooltipSide]=\"below\" [nolTooltipTruncated]=\"true\"\n [nolContextMenuTriggerFor]=\"menu.menu()\" (activate)=\"layout.activate(tab)\" (click)=\"onTabClick(tab, $event)\" (close)=\"close(tab)\" (pointerdown)=\"onTabPointerDown(tab, $event)\" (dblclick)=\"onTabDoubleClick(tab)\"\n (labelKept)=\"renames.keep($event)\" (labelCancelled)=\"renames.cancel()\" />\n }\n <span class=\"nol-tab-group-end\" [class.nol-drop-line-before]=\"isDropAtEnd() && !scroller.isOverflowing()\"></span>\n </div>\n <div #actionBar class=\"nol-tab-group-actions\" [class.nol-tab-group-actions-shell]=\"isShell()\" [class.nol-drop-line-before]=\"isDropAtEnd() && scroller.isOverflowing()\">\n @if (!scroller.isOverflowing()) {\n <nol-tab-row-actions [group]=\"group()\" />\n }\n @if (scroller.isOverflowing()) {\n <button #overflowTrigger=\"nolMenuTriggerFor\" type=\"button\" nol-icon-button class=\"nol-tab-group-overflow\" [icon]=\"resources.overflowGlyph\"\n [label]=\"resources.overflowLabel\" [nolTooltip]=\"resources.overflowLabel\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"overflow\" [nolMenuAlignment]=\"end\"></button>\n <ng-template #overflow>\n <nol-menu class=\"nol-tab-group-overflow-menu\">\n @for (row of rowActions(); track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"row.context\" />\n <button nol-menu-item class=\"nol-tab-row-menu-submenu\" [attr.data-submenu]=\"row.place\" [icon]=\"row.icon ?? resources.tabRowSubmenuGlyph\" [label]=\"row.title\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n } @else {\n <button nol-menu-item class=\"nol-tab-row-menu-command\" [attr.data-command]=\"row.command\" [icon]=\"row.icon ?? resources.tabRowCommandGlyph\" [label]=\"row.title\"\n [shortcut]=\"row.key\" [disabled]=\"!row.isEnabled\" (triggered)=\"tabRows.run(row)\"></button>\n }\n }\n @if (group().active; as active) {\n <nol-place-menu #folded [place]=\"resources.tabMenu\" [context]=\"{ tab: active.key }\" />\n <button nol-menu-item class=\"nol-tab-group-overflow-actions\" [icon]=\"resources.panelActionsGlyph\" [label]=\"resources.panelActionsLabel\" [nolMenuTriggerFor]=\"folded.menu()\"></button>\n <nol-menu-separator />\n }\n <button nol-menu-item class=\"nol-tab-group-overflow-close-all\" [icon]=\"resources.closeAllGlyph\" [label]=\"resources.closeAllLabel\" (triggered)=\"closeAll()\"></button>\n <nol-menu-separator />\n @for (tab of group().tabs; track tab.key) {\n @let label = labels.of(tab);\n <button nol-menu-item class=\"nol-tab-group-overflow-tab\" [attr.data-tab]=\"tab.key\" [attr.aria-current]=\"tab.equals(group().active) ? 'true' : null\"\n [icon]=\"label.icon\" [label]=\"label.title\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"besides\" [nolTooltipTruncated]=\"true\" (triggered)=\"choose(tab)\"></button>\n }\n </nol-menu>\n </ng-template>\n }\n <ng-container [ngTemplateOutlet]=\"groupActions\" [ngTemplateOutletContext]=\"{ $implicit: scroller.isOverflowing() }\" />\n </div>\n </div>\n </div>\n }\n <ng-template #groupActions let-folded>\n @if (!folded && group().active; as active) {\n <nol-place-menu #actions [place]=\"resources.tabMenu\" [context]=\"{ tab: active.key }\" />\n <button type=\"button\" nol-icon-button class=\"nol-tab-group-menu\" [icon]=\"resources.panelActionsGlyph\" [label]=\"resources.panelActionsLabel\"\n [nolTooltip]=\"resources.panelActionsLabel\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"actions.menu()\" [nolMenuAlignment]=\"end\"></button>\n }\n @if (hideSide(); as side) {\n <button type=\"button\" nol-icon-button class=\"nol-tab-group-hide\" [icon]=\"resources.hideDockGlyphs[side]\" [label]=\"resources.hideDockLabels[side]\"\n [nolTooltip]=\"resources.hideDockLabels[side]\" [nolTooltipSide]=\"below\" (click)=\"layout.toggleDock(side)\"></button>\n }\n </ng-template>\n <div class=\"nol-tab-group-body\" [attr.role]=\"header() ? resources.regionRole : resources.tabPanelRole\" [attr.id]=\"panelId()\" [attr.aria-labelledby]=\"activeTabId()\">\n <ng-content />\n </div>\n</nol-panel-card>\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 display: flex;\n min-width: 0;\n min-height: 0;\n}\n\n.nol-tab-group-card {\n flex: 1;\n}\n\n.nol-tab-group-bar {\n display: flex;\n flex-shrink: 0;\n min-height: var(--nol-tab-height);\n padding-inline: var(--nol-tab-inset);\n}\n\n.nol-tab-group-header {\n align-items: center;\n}\n\n.nol-tab-group-tabs {\n padding-inline: 0;\n}\n\n.nol-tab-group-title {\n flex: 1;\n padding-inline-start: calc(var(--nol-tab-inset) * 2 + var(--nol-pill-padding));\n font-size: var(--nol-text-panel);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.nol-tab-group-scroller {\n display: flex;\n flex: 1;\n align-items: stretch;\n --nol-tab-group-scroller-start: calc(var(--nol-tab-inset) * 2);\n --nol-tab-group-reveal-start: calc(var(--nol-space-2) + var(--nol-tab-inset));\n\n min-width: 0;\n padding-inline-start: var(--nol-tab-group-scroller-start);\n overflow-x: scroll;\n overflow-y: hidden;\n scroll-padding-inline-start: var(--nol-tab-group-reveal-start);\n container-type: inline-size;\n}\n\n@media (forced-colors: active) {\n .nol-tab-group-scroller {\n scrollbar-width: none;\n }\n}\n\n.nol-tab-group-strip {\n display: flex;\n flex: 1 0 auto;\n min-height: var(--nol-tab-height);\n}\n\n.nol-tab-group-strip > nol-tab {\n flex-shrink: 0;\n max-width: min(var(--nol-tab-max-width),\n calc(100cqi + var(--nol-tab-group-scroller-start) - var(--nol-tab-group-reveal-start) - var(--nol-tab-group-actions-width, 0px)));\n}\n\n.nol-tab-group-end {\n flex: 1;\n}\n\n.nol-tab-dragged {\n opacity: 0.5;\n}\n\n.nol-tab-group-actions {\n position: sticky;\n inset-inline-end: 0;\n display: flex;\n flex-shrink: 0;\n align-items: center;\n padding-inline: var(--nol-space-1) var(--nol-tab-inset);\n background-color: var(--nol-panel);\n}\n\n.nol-tab-group-scroller > .nol-tab-group-actions {\n padding-inline-end: calc(var(--nol-tab-inset) * 2);\n}\n\n.nol-tab-group-actions-shell {\n background-color: var(--nol-window);\n}\n\n.nol-tab-group-body {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.nol-tab-group-overflow-menu {\n max-width: min(var(--nol-popover-width), calc(100vw - var(--nol-space-4)));\n max-height: min(60vh, calc(20 * (var(--nol-menu-item-height) + var(--nol-row-gap)) + 2 * (var(--nol-menu-padding) + var(--nol-border-width))));\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: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: TabComponent, selector: "nol-tab", inputs: ["label", "icon", "selected", "preview", "working", "waiting", "closable", "badge", "badgeCount", "image", "imageGlyph", "status", "leadingSpinner", "marker", "underline", "editing"], outputs: ["activate", "close", "labelKept", "labelCancelled"] }, { kind: "component", type: TabRowActionsComponent, selector: "nol-tab-row-actions", inputs: ["group"] }, { kind: "directive", type: TabScrollerDirective, selector: "[nolTabScroller]", inputs: ["nolTabScroller", "nolTabScrollerFrame", "nolTabScrollerRows"], exportAs: ["nolTabScroller"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
160
|
+
}
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabGroupComponent, decorators: [{
|
|
162
|
+
type: Component,
|
|
163
|
+
args: [{ selector: "nol-tab-group", imports: [
|
|
164
|
+
ContextMenuTriggerDirective, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent, MenuTriggerDirective, NgTemplateOutlet, PanelCardComponent, PlaceMenuComponent,
|
|
165
|
+
TabComponent, TabRowActionsComponent, TabScrollerDirective, TooltipDirective
|
|
166
|
+
], host: {
|
|
167
|
+
"[attr.data-group]": "group().id",
|
|
168
|
+
"[attr.data-side]": "frame().side",
|
|
169
|
+
"[style.left.rem]": "frame().bounds.x",
|
|
170
|
+
"[style.top.rem]": "frame().bounds.y",
|
|
171
|
+
"[style.width.rem]": "frame().bounds.width",
|
|
172
|
+
"[style.height.rem]": "frame().bounds.height",
|
|
173
|
+
"(focusin)": "layout.focusGroup(group().id)"
|
|
174
|
+
}, 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-panel-card class=\"nol-tab-group-card\" [surface]=\"surface()\" [attr.data-drop-group]=\"group().id\">\n @if (header(); as tab) {\n @let label = labels.of(tab);\n <div class=\"nol-tab-group-bar nol-tab-group-header\" data-drop-tabs>\n <span class=\"nol-tab-group-title\" data-truncates [attr.id]=\"activeTabId()\" [attr.data-header-key]=\"tab.key\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"below\" [nolTooltipTruncated]=\"true\">{{ label.title }}</span>\n <div class=\"nol-tab-group-actions\" [class.nol-tab-group-actions-shell]=\"isShell()\" [class.nol-drop-line-before]=\"isDropAtEnd()\">\n <nol-tab-row-actions [group]=\"group()\" />\n <ng-container [ngTemplateOutlet]=\"groupActions\" />\n </div>\n </div>\n } @else {\n <div class=\"nol-tab-group-bar nol-tab-group-tabs\" data-drop-tabs>\n <div #scroller=\"nolTabScroller\" class=\"nol-tab-group-scroller\" [nolTabScroller]=\"actionBar\" [nolTabScrollerFrame]=\"frame()\" [nolTabScrollerRows]=\"rowActions().length\">\n <div class=\"nol-tab-group-strip\" role=\"tablist\" (keydown)=\"onStripKey($event)\">\n @for (tab of group().tabs; track tab.key; let index = $index) {\n @let label = labels.of(tab);\n <nol-place-menu #menu [place]=\"resources.tabMenu\" [context]=\"{ tab: tab.key }\" />\n @let badge = labels.badgeOf(tab);\n @let look = labels.lookOf(tab);\n <nol-tab [label]=\"label.title\" [icon]=\"label.icon\" [badge]=\"badge?.description ?? null\" [badgeCount]=\"badge?.count ?? null\" [selected]=\"tab.equals(group().active)\" [preview]=\"tab.equals(group().preview)\" [working]=\"labels.isWorking(tab)\" [waiting]=\"labels.isWaiting(tab)\" [editing]=\"tab.equals(renames.editing())\" [attr.data-tab-index]=\"index\"\n [image]=\"look.image\" [imageGlyph]=\"look.imageGlyph\" [status]=\"look.status\" [marker]=\"look.marker\" [underline]=\"look.underline\" [leadingSpinner]=\"tab.leadsSpinner\"\n [attr.id]=\"tabId(index)\" [attr.data-tab-key]=\"tab.key\" [class.nol-drop-line-before]=\"drag.isDropBefore(group().id, index)\" [class.nol-tab-dragged]=\"tab.equals(drag.dragging())\"\n [nolTooltip]=\"label.title\" [nolTooltipSide]=\"below\" [nolTooltipTruncated]=\"true\"\n [nolContextMenuTriggerFor]=\"menu.menu()\" (activate)=\"layout.activate(tab)\" (click)=\"onTabClick(tab, $event)\" (close)=\"close(tab)\" (pointerdown)=\"onTabPointerDown(tab, $event)\" (dblclick)=\"onTabDoubleClick(tab)\"\n (labelKept)=\"renames.keep($event)\" (labelCancelled)=\"renames.cancel()\" />\n }\n <span class=\"nol-tab-group-end\" [class.nol-drop-line-before]=\"isDropAtEnd() && !scroller.isOverflowing()\"></span>\n </div>\n <div #actionBar class=\"nol-tab-group-actions\" [class.nol-tab-group-actions-shell]=\"isShell()\" [class.nol-drop-line-before]=\"isDropAtEnd() && scroller.isOverflowing()\">\n @if (!scroller.isOverflowing()) {\n <nol-tab-row-actions [group]=\"group()\" />\n }\n @if (scroller.isOverflowing()) {\n <button #overflowTrigger=\"nolMenuTriggerFor\" type=\"button\" nol-icon-button class=\"nol-tab-group-overflow\" [icon]=\"resources.overflowGlyph\"\n [label]=\"resources.overflowLabel\" [nolTooltip]=\"resources.overflowLabel\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"overflow\" [nolMenuAlignment]=\"end\"></button>\n <ng-template #overflow>\n <nol-menu class=\"nol-tab-group-overflow-menu\">\n @for (row of rowActions(); track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"row.context\" />\n <button nol-menu-item class=\"nol-tab-row-menu-submenu\" [attr.data-submenu]=\"row.place\" [icon]=\"row.icon ?? resources.tabRowSubmenuGlyph\" [label]=\"row.title\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n } @else {\n <button nol-menu-item class=\"nol-tab-row-menu-command\" [attr.data-command]=\"row.command\" [icon]=\"row.icon ?? resources.tabRowCommandGlyph\" [label]=\"row.title\"\n [shortcut]=\"row.key\" [disabled]=\"!row.isEnabled\" (triggered)=\"tabRows.run(row)\"></button>\n }\n }\n @if (group().active; as active) {\n <nol-place-menu #folded [place]=\"resources.tabMenu\" [context]=\"{ tab: active.key }\" />\n <button nol-menu-item class=\"nol-tab-group-overflow-actions\" [icon]=\"resources.panelActionsGlyph\" [label]=\"resources.panelActionsLabel\" [nolMenuTriggerFor]=\"folded.menu()\"></button>\n <nol-menu-separator />\n }\n <button nol-menu-item class=\"nol-tab-group-overflow-close-all\" [icon]=\"resources.closeAllGlyph\" [label]=\"resources.closeAllLabel\" (triggered)=\"closeAll()\"></button>\n <nol-menu-separator />\n @for (tab of group().tabs; track tab.key) {\n @let label = labels.of(tab);\n <button nol-menu-item class=\"nol-tab-group-overflow-tab\" [attr.data-tab]=\"tab.key\" [attr.aria-current]=\"tab.equals(group().active) ? 'true' : null\"\n [icon]=\"label.icon\" [label]=\"label.title\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"besides\" [nolTooltipTruncated]=\"true\" (triggered)=\"choose(tab)\"></button>\n }\n </nol-menu>\n </ng-template>\n }\n <ng-container [ngTemplateOutlet]=\"groupActions\" [ngTemplateOutletContext]=\"{ $implicit: scroller.isOverflowing() }\" />\n </div>\n </div>\n </div>\n }\n <ng-template #groupActions let-folded>\n @if (!folded && group().active; as active) {\n <nol-place-menu #actions [place]=\"resources.tabMenu\" [context]=\"{ tab: active.key }\" />\n <button type=\"button\" nol-icon-button class=\"nol-tab-group-menu\" [icon]=\"resources.panelActionsGlyph\" [label]=\"resources.panelActionsLabel\"\n [nolTooltip]=\"resources.panelActionsLabel\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"actions.menu()\" [nolMenuAlignment]=\"end\"></button>\n }\n @if (hideSide(); as side) {\n <button type=\"button\" nol-icon-button class=\"nol-tab-group-hide\" [icon]=\"resources.hideDockGlyphs[side]\" [label]=\"resources.hideDockLabels[side]\"\n [nolTooltip]=\"resources.hideDockLabels[side]\" [nolTooltipSide]=\"below\" (click)=\"layout.toggleDock(side)\"></button>\n }\n </ng-template>\n <div class=\"nol-tab-group-body\" [attr.role]=\"header() ? resources.regionRole : resources.tabPanelRole\" [attr.id]=\"panelId()\" [attr.aria-labelledby]=\"activeTabId()\">\n <ng-content />\n </div>\n</nol-panel-card>\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 display: flex;\n min-width: 0;\n min-height: 0;\n}\n\n.nol-tab-group-card {\n flex: 1;\n}\n\n.nol-tab-group-bar {\n display: flex;\n flex-shrink: 0;\n min-height: var(--nol-tab-height);\n padding-inline: var(--nol-tab-inset);\n}\n\n.nol-tab-group-header {\n align-items: center;\n}\n\n.nol-tab-group-tabs {\n padding-inline: 0;\n}\n\n.nol-tab-group-title {\n flex: 1;\n padding-inline-start: calc(var(--nol-tab-inset) * 2 + var(--nol-pill-padding));\n font-size: var(--nol-text-panel);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.nol-tab-group-scroller {\n display: flex;\n flex: 1;\n align-items: stretch;\n --nol-tab-group-scroller-start: calc(var(--nol-tab-inset) * 2);\n --nol-tab-group-reveal-start: calc(var(--nol-space-2) + var(--nol-tab-inset));\n\n min-width: 0;\n padding-inline-start: var(--nol-tab-group-scroller-start);\n overflow-x: scroll;\n overflow-y: hidden;\n scroll-padding-inline-start: var(--nol-tab-group-reveal-start);\n container-type: inline-size;\n}\n\n@media (forced-colors: active) {\n .nol-tab-group-scroller {\n scrollbar-width: none;\n }\n}\n\n.nol-tab-group-strip {\n display: flex;\n flex: 1 0 auto;\n min-height: var(--nol-tab-height);\n}\n\n.nol-tab-group-strip > nol-tab {\n flex-shrink: 0;\n max-width: min(var(--nol-tab-max-width),\n calc(100cqi + var(--nol-tab-group-scroller-start) - var(--nol-tab-group-reveal-start) - var(--nol-tab-group-actions-width, 0px)));\n}\n\n.nol-tab-group-end {\n flex: 1;\n}\n\n.nol-tab-dragged {\n opacity: 0.5;\n}\n\n.nol-tab-group-actions {\n position: sticky;\n inset-inline-end: 0;\n display: flex;\n flex-shrink: 0;\n align-items: center;\n padding-inline: var(--nol-space-1) var(--nol-tab-inset);\n background-color: var(--nol-panel);\n}\n\n.nol-tab-group-scroller > .nol-tab-group-actions {\n padding-inline-end: calc(var(--nol-tab-inset) * 2);\n}\n\n.nol-tab-group-actions-shell {\n background-color: var(--nol-window);\n}\n\n.nol-tab-group-body {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.nol-tab-group-overflow-menu {\n max-width: min(var(--nol-popover-width), calc(100vw - var(--nol-space-4)));\n max-height: min(60vh, calc(20 * (var(--nol-menu-item-height) + var(--nol-row-gap)) + 2 * (var(--nol-menu-padding) + var(--nol-border-width))));\n}\n"] }]
|
|
175
|
+
}], ctorParameters: () => [], propDecorators: { scroller: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TabScrollerDirective), { isSignal: true }] }], overflowTrigger: [{ type: i0.ViewChild, args: ["overflowTrigger", { ...{ read: MenuTriggerDirective }, isSignal: true }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: true }] }] } });
|
|
176
|
+
//# sourceMappingURL=tab-group.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-group.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/tab-group/tab-group.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/tab-group/tab-group.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,SAAS,EAAE,UAAU,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EACtG,MAAM,eAAe,CAAC;AAEvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,WAAW,EAC/J,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EACjE,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAMpD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAA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,SAAS,CAAC,MAAM;gBACnB,OAAO,KAAK,GAAG,CAAC,CAAC;YACnB;gBACE,OAAO,CAAC,CAAC,CAAC;QACd,CAAC;IACH,CAAC;uGAnIU,iBAAiB;2FAAjB,iBAAiB,ijBAIoD,oBAAoB,gJACc,oBAAoB,6CC9DxI,24NAyFA,0lFD/CI,2BAA2B,qJAAE,mBAAmB,2MAAE,aAAa,2EAAE,iBAAiB,6LAAE,sBAAsB,+DAAE,oBAAoB,oJAAE,gBAAgB,oJAAE,kBAAkB,gFAAE,kBAAkB,iGAC1L,YAAY,mTAAE,sBAAsB,mFAAE,oBAAoB,oKAAE,gBAAgB;;2FAcnE,iBAAiB;kBAlB7B,SAAS;+BACE,eAAe,WAChB;wBACP,2BAA2B,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB;wBAC1L,YAAY,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,gBAAgB;qBAC7E,QAGK;wBACJ,mBAAmB,EAAE,YAAY;wBACjC,kBAAkB,EAAE,cAAc;wBAClC,kBAAkB,EAAE,kBAAkB;wBACtC,iBAAiB,EAAE,kBAAkB;wBACrC,mBAAmB,EAAE,sBAAsB;wBAC3C,oBAAoB,EAAE,uBAAuB;wBAC7C,WAAW,EAAE,+BAA+B;qBAC7C;oHAM+E,oBAAoB,0EACb,iBAAiB,OAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { type Signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { OverlayAlignment, OverlaySide } from "@noldova/ui.components.angular";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import type { CommandRow } from "../../models/command-row.js";
|
|
13
|
+
import type { TabGroup } from "../../models/layout/tab-group.js";
|
|
14
|
+
import type { SubmenuRow } from "../../models/submenu-row.js";
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export declare class TabRowActionsComponent {
|
|
17
|
+
private readonly tabRows;
|
|
18
|
+
protected readonly resources: typeof Resources;
|
|
19
|
+
protected readonly below: OverlaySide;
|
|
20
|
+
protected readonly end: OverlayAlignment;
|
|
21
|
+
protected readonly rows: Signal<readonly (CommandRow | SubmenuRow)[]>;
|
|
22
|
+
readonly group: import("@angular/core").InputSignal<TabGroup>;
|
|
23
|
+
protected tooltipOf(row: CommandRow): string;
|
|
24
|
+
protected run(row: CommandRow): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabRowActionsComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabRowActionsComponent, "nol-tab-row-actions", never, { "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { IconButtonComponent, MenuTriggerDirective, OverlayAlignment, OverlaySide, TooltipDirective } from "@noldova/ui.components.angular";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import { TabRowService } from "../../services/tab-row.service.js";
|
|
13
|
+
import { PlaceMenuComponent } from "../place-menu/place-menu.component.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class TabRowActionsComponent {
|
|
16
|
+
tabRows = inject(TabRowService);
|
|
17
|
+
resources = Resources;
|
|
18
|
+
below = OverlaySide.below;
|
|
19
|
+
end = OverlayAlignment.End;
|
|
20
|
+
rows = computed(() => this.tabRows.rowsOf(this.group()), /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
22
|
+
group = input.required(/* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
|
|
24
|
+
tooltipOf(row) {
|
|
25
|
+
return Object.isNull(row.key) ? row.title : Resources.formatShortcutTitle(row.title, row.key);
|
|
26
|
+
}
|
|
27
|
+
run(row) {
|
|
28
|
+
this.tabRows.run(row);
|
|
29
|
+
}
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabRowActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TabRowActionsComponent, isStandalone: true, selector: "nol-tab-row-actions", inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, 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@for (row of rows(); track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"row.context\" />\n <button type=\"button\" nol-icon-button class=\"nol-tab-row-submenu\" [attr.data-submenu]=\"row.place\" [icon]=\"row.icon ?? resources.tabRowSubmenuGlyph\" [label]=\"row.title\"\n [nolTooltip]=\"row.title\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"nested.menu()\" [nolMenuAlignment]=\"end\"></button>\n } @else {\n <button type=\"button\" nol-icon-button class=\"nol-tab-row-command\" [attr.data-command]=\"row.command\" [icon]=\"row.icon ?? resources.tabRowCommandGlyph\" [label]=\"row.title\"\n [attr.aria-disabled]=\"row.isEnabled ? null : 'true'\" [nolTooltip]=\"tooltipOf(row)\" [nolTooltipSide]=\"below\" (click)=\"run(row)\"></button>\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"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabRowActionsComponent, decorators: [{
|
|
34
|
+
type: Component,
|
|
35
|
+
args: [{ selector: "nol-tab-row-actions", imports: [IconButtonComponent, MenuTriggerDirective, PlaceMenuComponent, TooltipDirective], 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@for (row of rows(); track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"row.context\" />\n <button type=\"button\" nol-icon-button class=\"nol-tab-row-submenu\" [attr.data-submenu]=\"row.place\" [icon]=\"row.icon ?? resources.tabRowSubmenuGlyph\" [label]=\"row.title\"\n [nolTooltip]=\"row.title\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"nested.menu()\" [nolMenuAlignment]=\"end\"></button>\n } @else {\n <button type=\"button\" nol-icon-button class=\"nol-tab-row-command\" [attr.data-command]=\"row.command\" [icon]=\"row.icon ?? resources.tabRowCommandGlyph\" [label]=\"row.title\"\n [attr.aria-disabled]=\"row.isEnabled ? null : 'true'\" [nolTooltip]=\"tooltipOf(row)\" [nolTooltipSide]=\"below\" (click)=\"run(row)\"></button>\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"] }]
|
|
36
|
+
}], propDecorators: { group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: true }] }] } });
|
|
37
|
+
//# sourceMappingURL=tab-row-actions.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-row-actions.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/tab-row-actions/tab-row-actions.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/tab-row-actions/tab-row-actions.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAe,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhF,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE5I,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIlD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;;AAQ3E,MAAM,OAAO,sBAAsB;IAChB,OAAO,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;IAE7C,SAAS,GAAqB,SAAS,CAAC;IACxC,KAAK,GAAgB,WAAW,CAAC,KAAK,CAAC;IACvC,GAAG,GAAqB,gBAAgB,CAAC,GAAG,CAAC;IAC7C,IAAI,GAAiD,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;6EAAC,CAAC;IAE1G,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAY,CAAC;IAEzC,SAAS,CAAC,GAAe;QACjC,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,mBAAmB,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IAChG,CAAC;IAES,GAAG,CAAC,GAAe;QAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;uGAhBU,sBAAsB;2FAAtB,sBAAsB,kNC3BnC,69BAkBA,gRDKY,mBAAmB,2MAAE,oBAAoB,oJAAE,kBAAkB,iGAAE,gBAAgB;;2FAI9E,sBAAsB;kBANlC,SAAS;+BACE,qBAAqB,WACtB,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC"}
|
|
@@ -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 InputSignal, type Signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { ButtonVariant } from "@noldova/ui.components.angular";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import type { Tab } from "../../models/layout/tab.js";
|
|
13
|
+
import type { TabContentComponent } from "../tab-content/tab-content.component.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class TabSlotComponent {
|
|
16
|
+
private readonly views;
|
|
17
|
+
private readonly element;
|
|
18
|
+
private readonly contentValue;
|
|
19
|
+
private readonly agentControl;
|
|
20
|
+
private readonly modules;
|
|
21
|
+
private readonly commands;
|
|
22
|
+
private shown;
|
|
23
|
+
protected readonly resources: typeof Resources;
|
|
24
|
+
protected readonly secondary: ButtonVariant;
|
|
25
|
+
protected readonly isStopped: Signal<boolean>;
|
|
26
|
+
readonly tab: InputSignal<Tab>;
|
|
27
|
+
readonly isDocked: InputSignal<boolean>;
|
|
28
|
+
readonly content: Signal<TabContentComponent | null>;
|
|
29
|
+
constructor();
|
|
30
|
+
protected resume(): void;
|
|
31
|
+
private show;
|
|
32
|
+
private hide;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabSlotComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabSlotComponent, "nol-tab-slot", never, { "tab": { "alias": "tab"; "required": true; "isSignal": true; }; "isDocked": { "alias": "isDocked"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
35
|
+
}
|