@noldova/desktop.window 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +80 -2
- package/api/build.d.ts +13 -0
- package/api/build.js +10 -0
- package/api/build.js.map +1 -0
- package/api/index.d.ts +68 -0
- package/api/index.js +42 -0
- package/api/index.js.map +1 -0
- package/api/testing.d.ts +10 -0
- package/api/testing.js +11 -0
- package/api/testing.js.map +1 -0
- package/app/components/about/about.component.d.ts +50 -0
- package/app/components/about/about.component.js +125 -0
- package/app/components/about/about.component.js.map +1 -0
- package/app/components/dock/dock.component.d.ts +56 -0
- package/app/components/dock/dock.component.js +117 -0
- package/app/components/dock/dock.component.js.map +1 -0
- package/app/components/docking-guides/docking-guides.component.d.ts +35 -0
- package/app/components/docking-guides/docking-guides.component.js +61 -0
- package/app/components/docking-guides/docking-guides.component.js.map +1 -0
- package/app/components/empty-window/empty-window.component.d.ts +8 -0
- package/app/components/empty-window/empty-window.component.js +22 -0
- package/app/components/empty-window/empty-window.component.js.map +1 -0
- package/app/components/field-menu/field-menu.component.d.ts +30 -0
- package/app/components/field-menu/field-menu.component.js +92 -0
- package/app/components/field-menu/field-menu.component.js.map +1 -0
- package/app/components/highlighted-text/highlighted-text.component.d.ts +19 -0
- package/app/components/highlighted-text/highlighted-text.component.js +33 -0
- package/app/components/highlighted-text/highlighted-text.component.js.map +1 -0
- package/app/components/link-menu/link-menu.component.d.ts +22 -0
- package/app/components/link-menu/link-menu.component.js +46 -0
- package/app/components/link-menu/link-menu.component.js.map +1 -0
- package/app/components/module-actions/module-actions.component.d.ts +31 -0
- package/app/components/module-actions/module-actions.component.js +64 -0
- package/app/components/module-actions/module-actions.component.js.map +1 -0
- package/app/components/module-failure-card/module-failure-card.component.d.ts +17 -0
- package/app/components/module-failure-card/module-failure-card.component.js +24 -0
- package/app/components/module-failure-card/module-failure-card.component.js.map +1 -0
- package/app/components/module-failures/module-failures.component.d.ts +20 -0
- package/app/components/module-failures/module-failures.component.js +28 -0
- package/app/components/module-failures/module-failures.component.js.map +1 -0
- package/app/components/module-switch/module-switch.component.d.ts +22 -0
- package/app/components/module-switch/module-switch.component.js +40 -0
- package/app/components/module-switch/module-switch.component.js.map +1 -0
- package/app/components/modules/modules.component.d.ts +48 -0
- package/app/components/modules/modules.component.js +132 -0
- package/app/components/modules/modules.component.js.map +1 -0
- package/app/components/notifications/notifications.component.d.ts +23 -0
- package/app/components/notifications/notifications.component.js +35 -0
- package/app/components/notifications/notifications.component.js.map +1 -0
- package/app/components/notifications-popover/notifications-popover.component.d.ts +40 -0
- package/app/components/notifications-popover/notifications-popover.component.js +78 -0
- package/app/components/notifications-popover/notifications-popover.component.js.map +1 -0
- package/app/components/place-menu/place-menu.component.d.ts +27 -0
- package/app/components/place-menu/place-menu.component.js +40 -0
- package/app/components/place-menu/place-menu.component.js.map +1 -0
- package/app/components/placeholder-content/placeholder-content.component.d.ts +16 -0
- package/app/components/placeholder-content/placeholder-content.component.js +54 -0
- package/app/components/placeholder-content/placeholder-content.component.js.map +1 -0
- package/app/components/quit-dialog/quit-dialog.component.d.ts +17 -0
- package/app/components/quit-dialog/quit-dialog.component.js +38 -0
- package/app/components/quit-dialog/quit-dialog.component.js.map +1 -0
- package/app/components/runtime-status/runtime-status.component.d.ts +18 -0
- package/app/components/runtime-status/runtime-status.component.js +49 -0
- package/app/components/runtime-status/runtime-status.component.js.map +1 -0
- package/app/components/search-palette/search-palette.component.d.ts +35 -0
- package/app/components/search-palette/search-palette.component.js +66 -0
- package/app/components/search-palette/search-palette.component.js.map +1 -0
- package/app/components/setting-row/setting-row.component.d.ts +62 -0
- package/app/components/setting-row/setting-row.component.js +176 -0
- package/app/components/setting-row/setting-row.component.js.map +1 -0
- package/app/components/settings/settings.component.d.ts +84 -0
- package/app/components/settings/settings.component.js +273 -0
- package/app/components/settings/settings.component.js.map +1 -0
- package/app/components/settings-page-host/settings-page-host.component.d.ts +19 -0
- package/app/components/settings-page-host/settings-page-host.component.js +54 -0
- package/app/components/settings-page-host/settings-page-host.component.js.map +1 -0
- package/app/components/shortcuts/shortcuts.component.d.ts +59 -0
- package/app/components/shortcuts/shortcuts.component.js +175 -0
- package/app/components/shortcuts/shortcuts.component.js.map +1 -0
- package/app/components/split-sash/split-sash.component.d.ts +24 -0
- package/app/components/split-sash/split-sash.component.js +44 -0
- package/app/components/split-sash/split-sash.component.js.map +1 -0
- package/app/components/startup/startup.component.d.ts +25 -0
- package/app/components/startup/startup.component.js +33 -0
- package/app/components/startup/startup.component.js.map +1 -0
- package/app/components/status-bar/status-bar.component.d.ts +9 -0
- package/app/components/status-bar/status-bar.component.js +28 -0
- package/app/components/status-bar/status-bar.component.js.map +1 -0
- package/app/components/status-bar-item/status-bar-item.component.d.ts +23 -0
- package/app/components/status-bar-item/status-bar-item.component.js +39 -0
- package/app/components/status-bar-item/status-bar-item.component.js.map +1 -0
- package/app/components/tab-content/tab-content.component.d.ts +35 -0
- package/app/components/tab-content/tab-content.component.js +139 -0
- package/app/components/tab-content/tab-content.component.js.map +1 -0
- package/app/components/tab-group/tab-group.component.d.ts +54 -0
- package/app/components/tab-group/tab-group.component.js +176 -0
- package/app/components/tab-group/tab-group.component.js.map +1 -0
- package/app/components/tab-row-actions/tab-row-actions.component.d.ts +27 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js +37 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js.map +1 -0
- package/app/components/tab-slot/tab-slot.component.d.ts +35 -0
- package/app/components/tab-slot/tab-slot.component.js +70 -0
- package/app/components/tab-slot/tab-slot.component.js.map +1 -0
- package/app/components/toasts/toasts.component.d.ts +36 -0
- package/app/components/toasts/toasts.component.js +68 -0
- package/app/components/toasts/toasts.component.js.map +1 -0
- package/app/components/toolbar/toolbar.component.d.ts +49 -0
- package/app/components/toolbar/toolbar.component.js +129 -0
- package/app/components/toolbar/toolbar.component.js.map +1 -0
- package/app/components/toolbar-band/toolbar-band.component.d.ts +14 -0
- package/app/components/toolbar-band/toolbar-band.component.js +32 -0
- package/app/components/toolbar-band/toolbar-band.component.js.map +1 -0
- package/app/components/update-item/update-item.component.d.ts +22 -0
- package/app/components/update-item/update-item.component.js +32 -0
- package/app/components/update-item/update-item.component.js.map +1 -0
- package/app/components/view-dialog/view-dialog.component.d.ts +17 -0
- package/app/components/view-dialog/view-dialog.component.js +46 -0
- package/app/components/view-dialog/view-dialog.component.js.map +1 -0
- package/app/components/window/window.component.d.ts +30 -0
- package/app/components/window/window.component.js +107 -0
- package/app/components/window/window.component.js.map +1 -0
- package/app/components/window-controls/window-controls.component.d.ts +27 -0
- package/app/components/window-controls/window-controls.component.js +55 -0
- package/app/components/window-controls/window-controls.component.js.map +1 -0
- package/app/components/window-row/window-row.component.d.ts +78 -0
- package/app/components/window-row/window-row.component.js +260 -0
- package/app/components/window-row/window-row.component.js.map +1 -0
- package/app/components/workspace/workspace.component.d.ts +32 -0
- package/app/components/workspace/workspace.component.js +134 -0
- package/app/components/workspace/workspace.component.js.map +1 -0
- package/app/directives/keeps-ctrl-keys.directive.d.ts +31 -0
- package/app/directives/keeps-ctrl-keys.directive.js +21 -0
- package/app/directives/keeps-ctrl-keys.directive.js.map +1 -0
- package/app/directives/tab-scroller.directive.d.ts +29 -0
- package/app/directives/tab-scroller.directive.js +88 -0
- package/app/directives/tab-scroller.directive.js.map +1 -0
- package/app/enums/bottom-dock-span.d.ts +11 -0
- package/app/enums/bottom-dock-span.js +13 -0
- package/app/enums/bottom-dock-span.js.map +1 -0
- package/app/enums/clock-choice.d.ts +11 -0
- package/app/enums/clock-choice.js +13 -0
- package/app/enums/clock-choice.js.map +1 -0
- package/app/enums/content-padding.d.ts +28 -0
- package/app/enums/content-padding.js +13 -0
- package/app/enums/content-padding.js.map +1 -0
- package/app/enums/dock-side.d.ts +24 -0
- package/app/enums/dock-side.js +14 -0
- package/app/enums/dock-side.js.map +1 -0
- package/app/enums/dock-style.d.ts +11 -0
- package/app/enums/dock-style.js +13 -0
- package/app/enums/dock-style.js.map +1 -0
- package/app/enums/document-tone.d.ts +24 -0
- package/app/enums/document-tone.js +14 -0
- package/app/enums/document-tone.js.map +1 -0
- package/app/enums/file-save-outcome.d.ts +26 -0
- package/app/enums/file-save-outcome.js +14 -0
- package/app/enums/file-save-outcome.js.map +1 -0
- package/app/enums/link-place.d.ts +23 -0
- package/app/enums/link-place.js +13 -0
- package/app/enums/link-place.js.map +1 -0
- package/app/enums/menu-bar-style.d.ts +12 -0
- package/app/enums/menu-bar-style.js +14 -0
- package/app/enums/menu-bar-style.js.map +1 -0
- package/app/enums/menu-check.d.ts +12 -0
- package/app/enums/menu-check.js +14 -0
- package/app/enums/menu-check.js.map +1 -0
- package/app/enums/panel-edge.d.ts +13 -0
- package/app/enums/panel-edge.js +15 -0
- package/app/enums/panel-edge.js.map +1 -0
- package/app/enums/part-save-outcome.d.ts +12 -0
- package/app/enums/part-save-outcome.js +14 -0
- package/app/enums/part-save-outcome.js.map +1 -0
- package/app/enums/quit-choice.d.ts +12 -0
- package/app/enums/quit-choice.js +14 -0
- package/app/enums/quit-choice.js.map +1 -0
- package/app/enums/split-axis.d.ts +11 -0
- package/app/enums/split-axis.js +13 -0
- package/app/enums/split-axis.js.map +1 -0
- package/app/enums/startup-state-kind.d.ts +17 -0
- package/app/enums/startup-state-kind.js +19 -0
- package/app/enums/startup-state-kind.js.map +1 -0
- package/app/enums/status-bar-item-tone.d.ts +21 -0
- package/app/enums/status-bar-item-tone.js +13 -0
- package/app/enums/status-bar-item-tone.js.map +1 -0
- package/app/enums/status-bar-side.d.ts +20 -0
- package/app/enums/status-bar-side.js +13 -0
- package/app/enums/status-bar-side.js.map +1 -0
- package/app/enums/toolbar-move.d.ts +13 -0
- package/app/enums/toolbar-move.js +15 -0
- package/app/enums/toolbar-move.js.map +1 -0
- package/app/enums/top-bar-side.d.ts +21 -0
- package/app/enums/top-bar-side.js +13 -0
- package/app/enums/top-bar-side.js.map +1 -0
- package/app/enums/unconfirmed-action.d.ts +12 -0
- package/app/enums/unconfirmed-action.js +14 -0
- package/app/enums/unconfirmed-action.js.map +1 -0
- package/app/enums/update-action.d.ts +11 -0
- package/app/enums/update-action.js +13 -0
- package/app/enums/update-action.js.map +1 -0
- package/app/enums/update-state-kind.d.ts +16 -0
- package/app/enums/update-state-kind.js +18 -0
- package/app/enums/update-state-kind.js.map +1 -0
- package/app/enums/view-dialog-refusal.d.ts +11 -0
- package/app/enums/view-dialog-refusal.js +13 -0
- package/app/enums/view-dialog-refusal.js.map +1 -0
- package/app/exceptions/action-not-confirmed.exception.d.ts +17 -0
- package/app/exceptions/action-not-confirmed.exception.js +36 -0
- package/app/exceptions/action-not-confirmed.exception.js.map +1 -0
- package/app/exceptions/command-already-registered.exception.d.ts +13 -0
- package/app/exceptions/command-already-registered.exception.js +18 -0
- package/app/exceptions/command-already-registered.exception.js.map +1 -0
- package/app/exceptions/command-not-declared.exception.d.ts +13 -0
- package/app/exceptions/command-not-declared.exception.js +18 -0
- package/app/exceptions/command-not-declared.exception.js.map +1 -0
- package/app/exceptions/command-not-found.exception.d.ts +13 -0
- package/app/exceptions/command-not-found.exception.js +18 -0
- package/app/exceptions/command-not-found.exception.js.map +1 -0
- package/app/exceptions/contribution-not-declared.exception.d.ts +14 -0
- package/app/exceptions/contribution-not-declared.exception.js +20 -0
- package/app/exceptions/contribution-not-declared.exception.js.map +1 -0
- package/app/exceptions/contribution-registered.exception.d.ts +14 -0
- package/app/exceptions/contribution-registered.exception.js +20 -0
- package/app/exceptions/contribution-registered.exception.js.map +1 -0
- package/app/exceptions/dependency-not-followed.exception.d.ts +12 -0
- package/app/exceptions/dependency-not-followed.exception.js +17 -0
- package/app/exceptions/dependency-not-followed.exception.js.map +1 -0
- package/app/exceptions/file-not-opened.exception.d.ts +13 -0
- package/app/exceptions/file-not-opened.exception.js +18 -0
- package/app/exceptions/file-not-opened.exception.js.map +1 -0
- package/app/exceptions/file-not-shown.exception.d.ts +13 -0
- package/app/exceptions/file-not-shown.exception.js +18 -0
- package/app/exceptions/file-not-shown.exception.js.map +1 -0
- package/app/exceptions/foreign-contribution.exception.d.ts +13 -0
- package/app/exceptions/foreign-contribution.exception.js +18 -0
- package/app/exceptions/foreign-contribution.exception.js.map +1 -0
- package/app/exceptions/foreign-name.exception.d.ts +13 -0
- package/app/exceptions/foreign-name.exception.js +18 -0
- package/app/exceptions/foreign-name.exception.js.map +1 -0
- package/app/exceptions/foreign-secret.exception.d.ts +13 -0
- package/app/exceptions/foreign-secret.exception.js +18 -0
- package/app/exceptions/foreign-secret.exception.js.map +1 -0
- package/app/exceptions/in-app-browser-taken.exception.d.ts +12 -0
- package/app/exceptions/in-app-browser-taken.exception.js +16 -0
- package/app/exceptions/in-app-browser-taken.exception.js.map +1 -0
- package/app/exceptions/link-not-opened.exception.d.ts +12 -0
- package/app/exceptions/link-not-opened.exception.js +16 -0
- package/app/exceptions/link-not-opened.exception.js.map +1 -0
- package/app/exceptions/placeholder-shown.exception.d.ts +14 -0
- package/app/exceptions/placeholder-shown.exception.js +20 -0
- package/app/exceptions/placeholder-shown.exception.js.map +1 -0
- package/app/exceptions/preload-bridge.exception.d.ts +12 -0
- package/app/exceptions/preload-bridge.exception.js +16 -0
- package/app/exceptions/preload-bridge.exception.js.map +1 -0
- package/app/exceptions/product-name.exception.d.ts +12 -0
- package/app/exceptions/product-name.exception.js +16 -0
- package/app/exceptions/product-name.exception.js.map +1 -0
- package/app/exceptions/runtime-disconnected.exception.d.ts +13 -0
- package/app/exceptions/runtime-disconnected.exception.js +25 -0
- package/app/exceptions/runtime-disconnected.exception.js.map +1 -0
- package/app/exceptions/runtime-request.exception.d.ts +15 -0
- package/app/exceptions/runtime-request.exception.js +19 -0
- package/app/exceptions/runtime-request.exception.js.map +1 -0
- package/app/exceptions/search-source-registered.exception.d.ts +13 -0
- package/app/exceptions/search-source-registered.exception.js +18 -0
- package/app/exceptions/search-source-registered.exception.js.map +1 -0
- package/app/exceptions/setting-options-failed.exception.d.ts +13 -0
- package/app/exceptions/setting-options-failed.exception.js +19 -0
- package/app/exceptions/setting-options-failed.exception.js.map +1 -0
- package/app/exceptions/setting-options-repeated.exception.d.ts +13 -0
- package/app/exceptions/setting-options-repeated.exception.js +18 -0
- package/app/exceptions/setting-options-repeated.exception.js.map +1 -0
- package/app/exceptions/settings-page-not-loaded.exception.d.ts +12 -0
- package/app/exceptions/settings-page-not-loaded.exception.js +17 -0
- package/app/exceptions/settings-page-not-loaded.exception.js.map +1 -0
- package/app/exceptions/view-dialog.exception.d.ts +15 -0
- package/app/exceptions/view-dialog.exception.js +27 -0
- package/app/exceptions/view-dialog.exception.js.map +1 -0
- package/app/exceptions/web-view-closed.exception.d.ts +12 -0
- package/app/exceptions/web-view-closed.exception.js +16 -0
- package/app/exceptions/web-view-closed.exception.js.map +1 -0
- package/app/exceptions/web-view-not-opened.exception.d.ts +12 -0
- package/app/exceptions/web-view-not-opened.exception.js +16 -0
- package/app/exceptions/web-view-not-opened.exception.js.map +1 -0
- package/app/exceptions/window-part-access.exception.d.ts +13 -0
- package/app/exceptions/window-part-access.exception.js +17 -0
- package/app/exceptions/window-part-access.exception.js.map +1 -0
- package/app/exceptions/window-part-activation-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-activation-failed.exception.js +17 -0
- package/app/exceptions/window-part-activation-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-failure.exception.d.ts +14 -0
- package/app/exceptions/window-part-failure.exception.js +17 -0
- package/app/exceptions/window-part-failure.exception.js.map +1 -0
- package/app/exceptions/window-part-load-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-load-failed.exception.js +17 -0
- package/app/exceptions/window-part-load-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-reconnection-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js +17 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-late.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-late.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-late.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed.exception.js +19 -0
- package/app/exceptions/window-part-save-failed.exception.js.map +1 -0
- package/app/exceptions/window.exception.d.ts +21 -0
- package/app/exceptions/window.exception.js +15 -0
- package/app/exceptions/window.exception.js.map +1 -0
- package/app/interfaces/i-command-key.d.ts +22 -0
- package/app/interfaces/i-command-key.js +8 -0
- package/app/interfaces/i-command-key.js.map +1 -0
- package/app/interfaces/i-document-contribution-options.d.ts +34 -0
- package/app/interfaces/i-document-contribution-options.js +8 -0
- package/app/interfaces/i-document-contribution-options.js.map +1 -0
- package/app/interfaces/i-document-marker.d.ts +23 -0
- package/app/interfaces/i-document-marker.js +8 -0
- package/app/interfaces/i-document-marker.js.map +1 -0
- package/app/interfaces/i-document-options.d.ts +79 -0
- package/app/interfaces/i-document-options.js +8 -0
- package/app/interfaces/i-document-options.js.map +1 -0
- package/app/interfaces/i-document-status.d.ts +28 -0
- package/app/interfaces/i-document-status.js +8 -0
- package/app/interfaces/i-document-status.js.map +1 -0
- package/app/interfaces/i-document-update.d.ts +58 -0
- package/app/interfaces/i-document-update.js +8 -0
- package/app/interfaces/i-document-update.js.map +1 -0
- package/app/interfaces/i-file-choice-options.d.ts +18 -0
- package/app/interfaces/i-file-choice-options.js +8 -0
- package/app/interfaces/i-file-choice-options.js.map +1 -0
- package/app/interfaces/i-file-grant-options.d.ts +17 -0
- package/app/interfaces/i-file-grant-options.js +8 -0
- package/app/interfaces/i-file-grant-options.js.map +1 -0
- package/app/interfaces/i-file-path-choice-options.d.ts +24 -0
- package/app/interfaces/i-file-path-choice-options.js +8 -0
- package/app/interfaces/i-file-path-choice-options.js.map +1 -0
- package/app/interfaces/i-in-app-browser.d.ts +36 -0
- package/app/interfaces/i-in-app-browser.js +8 -0
- package/app/interfaces/i-in-app-browser.js.map +1 -0
- package/app/interfaces/i-layout-store.d.ts +12 -0
- package/app/interfaces/i-layout-store.js +8 -0
- package/app/interfaces/i-layout-store.js.map +1 -0
- package/app/interfaces/i-link-open-options.d.ts +26 -0
- package/app/interfaces/i-link-open-options.js +8 -0
- package/app/interfaces/i-link-open-options.js.map +1 -0
- package/app/interfaces/i-module-saver.d.ts +10 -0
- package/app/interfaces/i-module-saver.js +8 -0
- package/app/interfaces/i-module-saver.js.map +1 -0
- package/app/interfaces/i-opened-web-view.d.ts +12 -0
- package/app/interfaces/i-opened-web-view.js +8 -0
- package/app/interfaces/i-opened-web-view.js.map +1 -0
- package/app/interfaces/i-preload-bridge.d.ts +75 -0
- package/app/interfaces/i-preload-bridge.js +8 -0
- package/app/interfaces/i-preload-bridge.js.map +1 -0
- package/app/interfaces/i-product-about.d.ts +38 -0
- package/app/interfaces/i-product-about.js +8 -0
- package/app/interfaces/i-product-about.js.map +1 -0
- package/app/interfaces/i-product-logo.d.ts +23 -0
- package/app/interfaces/i-product-logo.js +8 -0
- package/app/interfaces/i-product-logo.js.map +1 -0
- package/app/interfaces/i-selection-source.d.ts +24 -0
- package/app/interfaces/i-selection-source.js +8 -0
- package/app/interfaces/i-selection-source.js.map +1 -0
- package/app/interfaces/i-settings-page-declaration.d.ts +22 -0
- package/app/interfaces/i-settings-page-declaration.js +8 -0
- package/app/interfaces/i-settings-page-declaration.js.map +1 -0
- package/app/interfaces/i-settings-page-row.d.ts +12 -0
- package/app/interfaces/i-settings-page-row.js +8 -0
- package/app/interfaces/i-settings-page-row.js.map +1 -0
- package/app/interfaces/i-status-bar-item-options.d.ts +42 -0
- package/app/interfaces/i-status-bar-item-options.js +8 -0
- package/app/interfaces/i-status-bar-item-options.js.map +1 -0
- package/app/interfaces/i-top-bar-action-options.d.ts +21 -0
- package/app/interfaces/i-top-bar-action-options.js +8 -0
- package/app/interfaces/i-top-bar-action-options.js.map +1 -0
- package/app/interfaces/i-view-dialog-options.d.ts +22 -0
- package/app/interfaces/i-view-dialog-options.js +8 -0
- package/app/interfaces/i-view-dialog-options.js.map +1 -0
- package/app/interfaces/i-view-instance-options.d.ts +37 -0
- package/app/interfaces/i-view-instance-options.js +8 -0
- package/app/interfaces/i-view-instance-options.js.map +1 -0
- package/app/interfaces/i-view-options.d.ts +41 -0
- package/app/interfaces/i-view-options.js +8 -0
- package/app/interfaces/i-view-options.js.map +1 -0
- package/app/interfaces/i-view-update.d.ts +31 -0
- package/app/interfaces/i-view-update.js +8 -0
- package/app/interfaces/i-view-update.js.map +1 -0
- package/app/interfaces/i-web-view-find-options.d.ts +16 -0
- package/app/interfaces/i-web-view-find-options.js +8 -0
- package/app/interfaces/i-web-view-find-options.js.map +1 -0
- package/app/interfaces/i-web-view-found.d.ts +33 -0
- package/app/interfaces/i-web-view-found.js +8 -0
- package/app/interfaces/i-web-view-found.js.map +1 -0
- package/app/interfaces/i-web-view-guest.d.ts +15 -0
- package/app/interfaces/i-web-view-guest.js +8 -0
- package/app/interfaces/i-web-view-guest.js.map +1 -0
- package/app/interfaces/i-web-view-handle.d.ts +370 -0
- package/app/interfaces/i-web-view-handle.js +8 -0
- package/app/interfaces/i-web-view-handle.js.map +1 -0
- package/app/interfaces/i-web-view-layer.d.ts +29 -0
- package/app/interfaces/i-web-view-layer.js +8 -0
- package/app/interfaces/i-web-view-layer.js.map +1 -0
- package/app/interfaces/i-window-inputs.d.ts +72 -0
- package/app/interfaces/i-window-inputs.js +8 -0
- package/app/interfaces/i-window-inputs.js.map +1 -0
- package/app/interfaces/i-window-palette.d.ts +32 -0
- package/app/interfaces/i-window-palette.js +8 -0
- package/app/interfaces/i-window-palette.js.map +1 -0
- package/app/interfaces/i-window-part-context.d.ts +1622 -0
- package/app/interfaces/i-window-part-context.js +8 -0
- package/app/interfaces/i-window-part-context.js.map +1 -0
- package/app/interfaces/i-window-part-host.d.ts +89 -0
- package/app/interfaces/i-window-part-host.js +8 -0
- package/app/interfaces/i-window-part-host.js.map +1 -0
- package/app/interfaces/i-window-part.d.ts +160 -0
- package/app/interfaces/i-window-part.js +8 -0
- package/app/interfaces/i-window-part.js.map +1 -0
- package/app/interfaces/i-window-secrets.d.ts +69 -0
- package/app/interfaces/i-window-secrets.js +8 -0
- package/app/interfaces/i-window-secrets.js.map +1 -0
- package/app/interfaces/i-window-web-views.d.ts +39 -0
- package/app/interfaces/i-window-web-views.js +8 -0
- package/app/interfaces/i-window-web-views.js.map +1 -0
- package/app/models/appearance-preferences.d.ts +22 -0
- package/app/models/appearance-preferences.js +51 -0
- package/app/models/appearance-preferences.js.map +1 -0
- package/app/models/build-info.d.ts +13 -0
- package/app/models/build-info.js +22 -0
- package/app/models/build-info.js.map +1 -0
- package/app/models/build-tokens.d.ts +17 -0
- package/app/models/build-tokens.js +16 -0
- package/app/models/build-tokens.js.map +1 -0
- package/app/models/clipboard-image.d.ts +22 -0
- package/app/models/clipboard-image.js +128 -0
- package/app/models/clipboard-image.js.map +1 -0
- package/app/models/clipboard-image.resources.d.ts +43 -0
- package/app/models/clipboard-image.resources.js +44 -0
- package/app/models/clipboard-image.resources.js.map +1 -0
- package/app/models/command-contribution.d.ts +95 -0
- package/app/models/command-contribution.js +38 -0
- package/app/models/command-contribution.js.map +1 -0
- package/app/models/command-match.d.ts +13 -0
- package/app/models/command-match.js +17 -0
- package/app/models/command-match.js.map +1 -0
- package/app/models/command-matcher.d.ts +11 -0
- package/app/models/command-matcher.js +23 -0
- package/app/models/command-matcher.js.map +1 -0
- package/app/models/command-row.d.ts +20 -0
- package/app/models/command-row.js +27 -0
- package/app/models/command-row.js.map +1 -0
- package/app/models/command-search-entry.d.ts +15 -0
- package/app/models/command-search-entry.js +20 -0
- package/app/models/command-search-entry.js.map +1 -0
- package/app/models/content-padding-ref.d.ts +66 -0
- package/app/models/content-padding-ref.js +20 -0
- package/app/models/content-padding-ref.js.map +1 -0
- package/app/models/contribution-match.d.ts +16 -0
- package/app/models/contribution-match.js +18 -0
- package/app/models/contribution-match.js.map +1 -0
- package/app/models/document-contribution.d.ts +63 -0
- package/app/models/document-contribution.js +28 -0
- package/app/models/document-contribution.js.map +1 -0
- package/app/models/document-heading.d.ts +21 -0
- package/app/models/document-heading.js +50 -0
- package/app/models/document-heading.js.map +1 -0
- package/app/models/document-look.d.ts +27 -0
- package/app/models/document-look.js +66 -0
- package/app/models/document-look.js.map +1 -0
- package/app/models/edit-target.d.ts +22 -0
- package/app/models/edit-target.js +58 -0
- package/app/models/edit-target.js.map +1 -0
- package/app/models/field-menu-request.d.ts +19 -0
- package/app/models/field-menu-request.js +32 -0
- package/app/models/field-menu-request.js.map +1 -0
- package/app/models/gallery-tokens.d.ts +11 -0
- package/app/models/gallery-tokens.js +13 -0
- package/app/models/gallery-tokens.js.map +1 -0
- package/app/models/issued-file-grant.d.ts +45 -0
- package/app/models/issued-file-grant.js +20 -0
- package/app/models/issued-file-grant.js.map +1 -0
- package/app/models/issued-file-grants.d.ts +40 -0
- package/app/models/issued-file-grants.js +17 -0
- package/app/models/issued-file-grants.js.map +1 -0
- package/app/models/key-bindings.d.ts +24 -0
- package/app/models/key-bindings.js +66 -0
- package/app/models/key-bindings.js.map +1 -0
- package/app/models/layout/bounds.d.ts +24 -0
- package/app/models/layout/bounds.js +53 -0
- package/app/models/layout/bounds.js.map +1 -0
- package/app/models/layout/closed-tabs.d.ts +28 -0
- package/app/models/layout/closed-tabs.js +72 -0
- package/app/models/layout/closed-tabs.js.map +1 -0
- package/app/models/layout/dock-growth.d.ts +18 -0
- package/app/models/layout/dock-growth.js +27 -0
- package/app/models/layout/dock-growth.js.map +1 -0
- package/app/models/layout/dock-strip-icon.d.ts +17 -0
- package/app/models/layout/dock-strip-icon.js +20 -0
- package/app/models/layout/dock-strip-icon.js.map +1 -0
- package/app/models/layout/dock-yield.d.ts +15 -0
- package/app/models/layout/dock-yield.js +19 -0
- package/app/models/layout/dock-yield.js.map +1 -0
- package/app/models/layout/dock.d.ts +33 -0
- package/app/models/layout/dock.js +65 -0
- package/app/models/layout/dock.js.map +1 -0
- package/app/models/layout/docking-overlay.d.ts +20 -0
- package/app/models/layout/docking-overlay.js +52 -0
- package/app/models/layout/docking-overlay.js.map +1 -0
- package/app/models/layout/document-group.d.ts +22 -0
- package/app/models/layout/document-group.js +36 -0
- package/app/models/layout/document-group.js.map +1 -0
- package/app/models/layout/document-tab.d.ts +19 -0
- package/app/models/layout/document-tab.js +33 -0
- package/app/models/layout/document-tab.js.map +1 -0
- package/app/models/layout/drop-target.d.ts +16 -0
- package/app/models/layout/drop-target.js +10 -0
- package/app/models/layout/drop-target.js.map +1 -0
- package/app/models/layout/early-document.d.ts +14 -0
- package/app/models/layout/early-document.js +18 -0
- package/app/models/layout/early-document.js.map +1 -0
- package/app/models/layout/group-drop-target.d.ts +19 -0
- package/app/models/layout/group-drop-target.js +25 -0
- package/app/models/layout/group-drop-target.js.map +1 -0
- package/app/models/layout/group-frame.d.ts +16 -0
- package/app/models/layout/group-frame.js +18 -0
- package/app/models/layout/group-frame.js.map +1 -0
- package/app/models/layout/layout-fit.d.ts +25 -0
- package/app/models/layout/layout-fit.js +61 -0
- package/app/models/layout/layout-fit.js.map +1 -0
- package/app/models/layout/layout-geometry.d.ts +49 -0
- package/app/models/layout/layout-geometry.js +129 -0
- package/app/models/layout/layout-geometry.js.map +1 -0
- package/app/models/layout/layout-metrics.d.ts +21 -0
- package/app/models/layout/layout-metrics.js +39 -0
- package/app/models/layout/layout-metrics.js.map +1 -0
- package/app/models/layout/layout.d.ts +71 -0
- package/app/models/layout/layout.js +241 -0
- package/app/models/layout/layout.js.map +1 -0
- package/app/models/layout/layout.node.d.ts +33 -0
- package/app/models/layout/layout.node.js +18 -0
- package/app/models/layout/layout.node.js.map +1 -0
- package/app/models/layout/side-drop-target.d.ts +23 -0
- package/app/models/layout/side-drop-target.js +29 -0
- package/app/models/layout/side-drop-target.js.map +1 -0
- package/app/models/layout/split-drop-target.d.ts +21 -0
- package/app/models/layout/split-drop-target.js +27 -0
- package/app/models/layout/split-drop-target.js.map +1 -0
- package/app/models/layout/split-handle.d.ts +22 -0
- package/app/models/layout/split-handle.js +43 -0
- package/app/models/layout/split-handle.js.map +1 -0
- package/app/models/layout/split-part.d.ts +13 -0
- package/app/models/layout/split-part.js +16 -0
- package/app/models/layout/split-part.js.map +1 -0
- package/app/models/layout/split.node.d.ts +42 -0
- package/app/models/layout/split.node.js +119 -0
- package/app/models/layout/split.node.js.map +1 -0
- package/app/models/layout/tab-drop-target.d.ts +18 -0
- package/app/models/layout/tab-drop-target.js +27 -0
- package/app/models/layout/tab-drop-target.js.map +1 -0
- package/app/models/layout/tab-group.d.ts +46 -0
- package/app/models/layout/tab-group.js +134 -0
- package/app/models/layout/tab-group.js.map +1 -0
- package/app/models/layout/tab-key.d.ts +12 -0
- package/app/models/layout/tab-key.js +22 -0
- package/app/models/layout/tab-key.js.map +1 -0
- package/app/models/layout/tab-label.d.ts +12 -0
- package/app/models/layout/tab-label.js +20 -0
- package/app/models/layout/tab-label.js.map +1 -0
- package/app/models/layout/tab-reveal.d.ts +13 -0
- package/app/models/layout/tab-reveal.js +16 -0
- package/app/models/layout/tab-reveal.js.map +1 -0
- package/app/models/layout/tab.d.ts +24 -0
- package/app/models/layout/tab.js +34 -0
- package/app/models/layout/tab.js.map +1 -0
- package/app/models/layout/toolbar-layout.d.ts +28 -0
- package/app/models/layout/toolbar-layout.js +116 -0
- package/app/models/layout/toolbar-layout.js.map +1 -0
- package/app/models/layout/view-registry.d.ts +24 -0
- package/app/models/layout/view-registry.js +58 -0
- package/app/models/layout/view-registry.js.map +1 -0
- package/app/models/layout/view-tab.d.ts +19 -0
- package/app/models/layout/view-tab.js +33 -0
- package/app/models/layout/view-tab.js.map +1 -0
- package/app/models/layout/view-type.d.ts +17 -0
- package/app/models/layout/view-type.js +28 -0
- package/app/models/layout/view-type.js.map +1 -0
- package/app/models/live-view.d.ts +32 -0
- package/app/models/live-view.js +90 -0
- package/app/models/live-view.js.map +1 -0
- package/app/models/menu-declarations.d.ts +20 -0
- package/app/models/menu-declarations.js +50 -0
- package/app/models/menu-declarations.js.map +1 -0
- package/app/models/menu-group.d.ts +17 -0
- package/app/models/menu-group.js +32 -0
- package/app/models/menu-group.js.map +1 -0
- package/app/models/menu-item.d.ts +20 -0
- package/app/models/menu-item.js +40 -0
- package/app/models/menu-item.js.map +1 -0
- package/app/models/menu-place.d.ts +16 -0
- package/app/models/menu-place.js +28 -0
- package/app/models/menu-place.js.map +1 -0
- package/app/models/menu-row-contribution.d.ts +52 -0
- package/app/models/menu-row-contribution.js +27 -0
- package/app/models/menu-row-contribution.js.map +1 -0
- package/app/models/menu-row.d.ts +12 -0
- package/app/models/menu-row.js +16 -0
- package/app/models/menu-row.js.map +1 -0
- package/app/models/menu-search-row.d.ts +14 -0
- package/app/models/menu-search-row.js +20 -0
- package/app/models/menu-search-row.js.map +1 -0
- package/app/models/menu-section.d.ts +14 -0
- package/app/models/menu-section.js +16 -0
- package/app/models/menu-section.js.map +1 -0
- package/app/models/module-failure.d.ts +20 -0
- package/app/models/module-failure.js +35 -0
- package/app/models/module-failure.js.map +1 -0
- package/app/models/module-switch-tokens.d.ts +12 -0
- package/app/models/module-switch-tokens.js +13 -0
- package/app/models/module-switch-tokens.js.map +1 -0
- package/app/models/modules/contribution-group.d.ts +14 -0
- package/app/models/modules/contribution-group.js +18 -0
- package/app/models/modules/contribution-group.js.map +1 -0
- package/app/models/modules/contribution-row.d.ts +12 -0
- package/app/models/modules/contribution-row.js +16 -0
- package/app/models/modules/contribution-row.js.map +1 -0
- package/app/models/modules/module-overview.d.ts +21 -0
- package/app/models/modules/module-overview.js +41 -0
- package/app/models/modules/module-overview.js.map +1 -0
- package/app/models/modules/module-reference.d.ts +13 -0
- package/app/models/modules/module-reference.js +16 -0
- package/app/models/modules/module-reference.js.map +1 -0
- package/app/models/modules/program-row.d.ts +17 -0
- package/app/models/modules/program-row.js +28 -0
- package/app/models/modules/program-row.js.map +1 -0
- package/app/models/notification-handle.d.ts +45 -0
- package/app/models/notification-handle.js +19 -0
- package/app/models/notification-handle.js.map +1 -0
- package/app/models/pending-document.d.ts +21 -0
- package/app/models/pending-document.js +35 -0
- package/app/models/pending-document.js.map +1 -0
- package/app/models/pending-view-change.d.ts +14 -0
- package/app/models/pending-view-change.js +20 -0
- package/app/models/pending-view-change.js.map +1 -0
- package/app/models/placeholder-contribution.d.ts +49 -0
- package/app/models/placeholder-contribution.js +22 -0
- package/app/models/placeholder-contribution.js.map +1 -0
- package/app/models/product-name.d.ts +13 -0
- package/app/models/product-name.js +18 -0
- package/app/models/product-name.js.map +1 -0
- package/app/models/quit-question.d.ts +16 -0
- package/app/models/quit-question.js +30 -0
- package/app/models/quit-question.js.map +1 -0
- package/app/models/scroll-offset.d.ts +15 -0
- package/app/models/scroll-offset.js +25 -0
- package/app/models/scroll-offset.js.map +1 -0
- package/app/models/search-answer.d.ts +39 -0
- package/app/models/search-answer.js +20 -0
- package/app/models/search-answer.js.map +1 -0
- package/app/models/search-filter.d.ts +14 -0
- package/app/models/search-filter.js +20 -0
- package/app/models/search-filter.js.map +1 -0
- package/app/models/search-group.d.ts +14 -0
- package/app/models/search-group.js +18 -0
- package/app/models/search-group.js.map +1 -0
- package/app/models/search-query.d.ts +17 -0
- package/app/models/search-query.js +30 -0
- package/app/models/search-query.js.map +1 -0
- package/app/models/search-rank.d.ts +14 -0
- package/app/models/search-rank.js +32 -0
- package/app/models/search-rank.js.map +1 -0
- package/app/models/search-request.d.ts +15 -0
- package/app/models/search-request.js +20 -0
- package/app/models/search-request.js.map +1 -0
- package/app/models/search-result.d.ts +65 -0
- package/app/models/search-result.js +38 -0
- package/app/models/search-result.js.map +1 -0
- package/app/models/search-row.d.ts +15 -0
- package/app/models/search-row.js +20 -0
- package/app/models/search-row.js.map +1 -0
- package/app/models/search-session.d.ts +38 -0
- package/app/models/search-session.js +140 -0
- package/app/models/search-session.js.map +1 -0
- package/app/models/search-source-contribution.d.ts +75 -0
- package/app/models/search-source-contribution.js +38 -0
- package/app/models/search-source-contribution.js.map +1 -0
- package/app/models/settings/setting-options-supply.d.ts +18 -0
- package/app/models/settings/setting-options-supply.js +46 -0
- package/app/models/settings/setting-options-supply.js.map +1 -0
- package/app/models/settings/settings-group.d.ts +13 -0
- package/app/models/settings/settings-group.js +16 -0
- package/app/models/settings/settings-group.js.map +1 -0
- package/app/models/settings/settings-page-entry.d.ts +22 -0
- package/app/models/settings/settings-page-entry.js +30 -0
- package/app/models/settings/settings-page-entry.js.map +1 -0
- package/app/models/settings/settings-page.d.ts +26 -0
- package/app/models/settings/settings-page.js +62 -0
- package/app/models/settings/settings-page.js.map +1 -0
- package/app/models/settings/settings-row.d.ts +42 -0
- package/app/models/settings/settings-row.js +24 -0
- package/app/models/settings/settings-row.js.map +1 -0
- package/app/models/settings/shortcut-notice.d.ts +15 -0
- package/app/models/settings/shortcut-notice.js +20 -0
- package/app/models/settings/shortcut-notice.js.map +1 -0
- package/app/models/settings/shortcut-row.d.ts +17 -0
- package/app/models/settings/shortcut-row.js +26 -0
- package/app/models/settings/shortcut-row.js.map +1 -0
- package/app/models/settings/text-match.d.ts +16 -0
- package/app/models/settings/text-match.js +41 -0
- package/app/models/settings/text-match.js.map +1 -0
- package/app/models/settings/word-breaks.d.ts +13 -0
- package/app/models/settings/word-breaks.js +34 -0
- package/app/models/settings/word-breaks.js.map +1 -0
- package/app/models/settings-page-contribution.d.ts +46 -0
- package/app/models/settings-page-contribution.js +20 -0
- package/app/models/settings-page-contribution.js.map +1 -0
- package/app/models/shell-documents.d.ts +21 -0
- package/app/models/shell-documents.js +25 -0
- package/app/models/shell-documents.js.map +1 -0
- package/app/models/shell-menus.d.ts +16 -0
- package/app/models/shell-menus.js +97 -0
- package/app/models/shell-menus.js.map +1 -0
- package/app/models/shortcut-binding.d.ts +13 -0
- package/app/models/shortcut-binding.js +16 -0
- package/app/models/shortcut-binding.js.map +1 -0
- package/app/models/shortcut-collision.d.ts +14 -0
- package/app/models/shortcut-collision.js +18 -0
- package/app/models/shortcut-collision.js.map +1 -0
- package/app/models/shortcut-map.d.ts +27 -0
- package/app/models/shortcut-map.js +64 -0
- package/app/models/shortcut-map.js.map +1 -0
- package/app/models/spelling-offer.d.ts +15 -0
- package/app/models/spelling-offer.js +24 -0
- package/app/models/spelling-offer.js.map +1 -0
- package/app/models/startup-state.d.ts +17 -0
- package/app/models/startup-state.js +35 -0
- package/app/models/startup-state.js.map +1 -0
- package/app/models/status-bar-item-contribution.d.ts +45 -0
- package/app/models/status-bar-item-contribution.js +20 -0
- package/app/models/status-bar-item-contribution.js.map +1 -0
- package/app/models/status-bar-item-state.d.ts +82 -0
- package/app/models/status-bar-item-state.js +43 -0
- package/app/models/status-bar-item-state.js.map +1 -0
- package/app/models/status-bar-item.d.ts +62 -0
- package/app/models/status-bar-item.js +29 -0
- package/app/models/status-bar-item.js.map +1 -0
- package/app/models/submenu-row.d.ts +15 -0
- package/app/models/submenu-row.js +19 -0
- package/app/models/submenu-row.js.map +1 -0
- package/app/models/tab-content.d.ts +18 -0
- package/app/models/tab-content.js +22 -0
- package/app/models/tab-content.js.map +1 -0
- package/app/models/tab-target.d.ts +19 -0
- package/app/models/tab-target.js +30 -0
- package/app/models/tab-target.js.map +1 -0
- package/app/models/text-range.d.ts +40 -0
- package/app/models/text-range.js +25 -0
- package/app/models/text-range.js.map +1 -0
- package/app/models/toolbar-drop-target.d.ts +17 -0
- package/app/models/toolbar-drop-target.js +28 -0
- package/app/models/toolbar-drop-target.js.map +1 -0
- package/app/models/toolbar-fit.d.ts +10 -0
- package/app/models/toolbar-fit.js +17 -0
- package/app/models/toolbar-fit.js.map +1 -0
- package/app/models/toolbar-placement.d.ts +14 -0
- package/app/models/toolbar-placement.js +24 -0
- package/app/models/toolbar-placement.js.map +1 -0
- package/app/models/toolbar.d.ts +14 -0
- package/app/models/toolbar.js +18 -0
- package/app/models/toolbar.js.map +1 -0
- package/app/models/top-bar-action-contribution.d.ts +44 -0
- package/app/models/top-bar-action-contribution.js +21 -0
- package/app/models/top-bar-action-contribution.js.map +1 -0
- package/app/models/top-bar-action-state.d.ts +51 -0
- package/app/models/top-bar-action-state.js +27 -0
- package/app/models/top-bar-action-state.js.map +1 -0
- package/app/models/top-bar-action.d.ts +62 -0
- package/app/models/top-bar-action.js +29 -0
- package/app/models/top-bar-action.js.map +1 -0
- package/app/models/update-state.d.ts +23 -0
- package/app/models/update-state.js +56 -0
- package/app/models/update-state.js.map +1 -0
- package/app/models/view-badge.d.ts +37 -0
- package/app/models/view-badge.js +22 -0
- package/app/models/view-badge.js.map +1 -0
- package/app/models/view-contribution.d.ts +91 -0
- package/app/models/view-contribution.js +42 -0
- package/app/models/view-contribution.js.map +1 -0
- package/app/models/web-view-handle.d.ts +56 -0
- package/app/models/web-view-handle.js +118 -0
- package/app/models/web-view-handle.js.map +1 -0
- package/app/models/web-view-layer.d.ts +20 -0
- package/app/models/web-view-layer.js +45 -0
- package/app/models/web-view-layer.js.map +1 -0
- package/app/models/window-appearance.d.ts +18 -0
- package/app/models/window-appearance.js +61 -0
- package/app/models/window-appearance.js.map +1 -0
- package/app/models/window-application.d.ts +32 -0
- package/app/models/window-application.js +45 -0
- package/app/models/window-application.js.map +1 -0
- package/app/models/window-palette.d.ts +18 -0
- package/app/models/window-palette.js +26 -0
- package/app/models/window-palette.js.map +1 -0
- package/app/models/window-part-activation.d.ts +16 -0
- package/app/models/window-part-activation.js +18 -0
- package/app/models/window-part-activation.js.map +1 -0
- package/app/models/window-part-context.d.ts +171 -0
- package/app/models/window-part-context.js +708 -0
- package/app/models/window-part-context.js.map +1 -0
- package/app/models/window-part-source.d.ts +95 -0
- package/app/models/window-part-source.js +40 -0
- package/app/models/window-part-source.js.map +1 -0
- package/app/models/window-part-tokens.d.ts +32 -0
- package/app/models/window-part-tokens.js +15 -0
- package/app/models/window-part-tokens.js.map +1 -0
- package/app/models/window-secrets.d.ts +18 -0
- package/app/models/window-secrets.js +33 -0
- package/app/models/window-secrets.js.map +1 -0
- package/app/models/window-web-views.d.ts +18 -0
- package/app/models/window-web-views.js +34 -0
- package/app/models/window-web-views.js.map +1 -0
- package/app/services/agent-control.service.d.ts +24 -0
- package/app/services/agent-control.service.js +58 -0
- package/app/services/agent-control.service.js.map +1 -0
- package/app/services/appearance-settings.service.d.ts +12 -0
- package/app/services/appearance-settings.service.js +50 -0
- package/app/services/appearance-settings.service.js.map +1 -0
- package/app/services/bar-items.service.d.ts +22 -0
- package/app/services/bar-items.service.js +36 -0
- package/app/services/bar-items.service.js.map +1 -0
- package/app/services/clock-setting.service.d.ts +26 -0
- package/app/services/clock-setting.service.js +43 -0
- package/app/services/clock-setting.service.js.map +1 -0
- package/app/services/closing.service.d.ts +19 -0
- package/app/services/closing.service.js +99 -0
- package/app/services/closing.service.js.map +1 -0
- package/app/services/command.service.d.ts +51 -0
- package/app/services/command.service.js +178 -0
- package/app/services/command.service.js.map +1 -0
- package/app/services/details.service.d.ts +8 -0
- package/app/services/details.service.js +28 -0
- package/app/services/details.service.js.map +1 -0
- package/app/services/dialog-cover.service.d.ts +32 -0
- package/app/services/dialog-cover.service.js +102 -0
- package/app/services/dialog-cover.service.js.map +1 -0
- package/app/services/dock-growth.service.d.ts +15 -0
- package/app/services/dock-growth.service.js +63 -0
- package/app/services/dock-growth.service.js.map +1 -0
- package/app/services/document-history.service.d.ts +24 -0
- package/app/services/document-history.service.js +68 -0
- package/app/services/document-history.service.js.map +1 -0
- package/app/services/document-instances.service.d.ts +15 -0
- package/app/services/document-instances.service.js +47 -0
- package/app/services/document-instances.service.js.map +1 -0
- package/app/services/document-opener.service.d.ts +18 -0
- package/app/services/document-opener.service.js +75 -0
- package/app/services/document-opener.service.js.map +1 -0
- package/app/services/edit-target.service.d.ts +23 -0
- package/app/services/edit-target.service.js +93 -0
- package/app/services/edit-target.service.js.map +1 -0
- package/app/services/issued-file-grants.reader.d.ts +13 -0
- package/app/services/issued-file-grants.reader.js +24 -0
- package/app/services/issued-file-grants.reader.js.map +1 -0
- package/app/services/layout-menu.service.d.ts +9 -0
- package/app/services/layout-menu.service.js +32 -0
- package/app/services/layout-menu.service.js.map +1 -0
- package/app/services/layout-store.service.d.ts +10 -0
- package/app/services/layout-store.service.js +35 -0
- package/app/services/layout-store.service.js.map +1 -0
- package/app/services/layout.reader.d.ts +23 -0
- package/app/services/layout.reader.js +113 -0
- package/app/services/layout.reader.js.map +1 -0
- package/app/services/layout.service.d.ts +96 -0
- package/app/services/layout.service.js +301 -0
- package/app/services/layout.service.js.map +1 -0
- package/app/services/link.service.d.ts +34 -0
- package/app/services/link.service.js +116 -0
- package/app/services/link.service.js.map +1 -0
- package/app/services/live-view.service.d.ts +32 -0
- package/app/services/live-view.service.js +104 -0
- package/app/services/live-view.service.js.map +1 -0
- package/app/services/menu-bar.service.d.ts +28 -0
- package/app/services/menu-bar.service.js +89 -0
- package/app/services/menu-bar.service.js.map +1 -0
- package/app/services/menu.service.d.ts +34 -0
- package/app/services/menu.service.js +96 -0
- package/app/services/menu.service.js.map +1 -0
- package/app/services/module-selection.service.d.ts +18 -0
- package/app/services/module-selection.service.js +31 -0
- package/app/services/module-selection.service.js.map +1 -0
- package/app/services/module-status.service.d.ts +22 -0
- package/app/services/module-status.service.js +39 -0
- package/app/services/module-status.service.js.map +1 -0
- package/app/services/module-switch.service.d.ts +16 -0
- package/app/services/module-switch.service.js +56 -0
- package/app/services/module-switch.service.js.map +1 -0
- package/app/services/notification.service.d.ts +38 -0
- package/app/services/notification.service.js +103 -0
- package/app/services/notification.service.js.map +1 -0
- package/app/services/preload-bridge.service.d.ts +108 -0
- package/app/services/preload-bridge.service.js +461 -0
- package/app/services/preload-bridge.service.js.map +1 -0
- package/app/services/program-status.service.d.ts +27 -0
- package/app/services/program-status.service.js +75 -0
- package/app/services/program-status.service.js.map +1 -0
- package/app/services/quit.service.d.ts +17 -0
- package/app/services/quit.service.js +37 -0
- package/app/services/quit.service.js.map +1 -0
- package/app/services/recent-commands.service.d.ts +24 -0
- package/app/services/recent-commands.service.js +63 -0
- package/app/services/recent-commands.service.js.map +1 -0
- package/app/services/search-palette.service.d.ts +20 -0
- package/app/services/search-palette.service.js +66 -0
- package/app/services/search-palette.service.js.map +1 -0
- package/app/services/search.service.d.ts +20 -0
- package/app/services/search.service.js +31 -0
- package/app/services/search.service.js.map +1 -0
- package/app/services/setting-check.service.d.ts +10 -0
- package/app/services/setting-check.service.js +32 -0
- package/app/services/setting-check.service.js.map +1 -0
- package/app/services/setting-options.service.d.ts +14 -0
- package/app/services/setting-options.service.js +38 -0
- package/app/services/setting-options.service.js.map +1 -0
- package/app/services/settings-page.service.d.ts +19 -0
- package/app/services/settings-page.service.js +35 -0
- package/app/services/settings-page.service.js.map +1 -0
- package/app/services/settings-rows.service.d.ts +17 -0
- package/app/services/settings-rows.service.js +29 -0
- package/app/services/settings-rows.service.js.map +1 -0
- package/app/services/settings.service.d.ts +38 -0
- package/app/services/settings.service.js +104 -0
- package/app/services/settings.service.js.map +1 -0
- package/app/services/shell-commands.service.d.ts +61 -0
- package/app/services/shell-commands.service.js +346 -0
- package/app/services/shell-commands.service.js.map +1 -0
- package/app/services/shell-search-sources.service.d.ts +26 -0
- package/app/services/shell-search-sources.service.js +102 -0
- package/app/services/shell-search-sources.service.js.map +1 -0
- package/app/services/spelling.service.d.ts +26 -0
- package/app/services/spelling.service.js +75 -0
- package/app/services/spelling.service.js.map +1 -0
- package/app/services/startup.service.d.ts +19 -0
- package/app/services/startup.service.js +62 -0
- package/app/services/startup.service.js.map +1 -0
- package/app/services/support.service.d.ts +18 -0
- package/app/services/support.service.js +79 -0
- package/app/services/support.service.js.map +1 -0
- package/app/services/tab-destinations.service.d.ts +10 -0
- package/app/services/tab-destinations.service.js +41 -0
- package/app/services/tab-destinations.service.js.map +1 -0
- package/app/services/tab-drag.service.d.ts +33 -0
- package/app/services/tab-drag.service.js +138 -0
- package/app/services/tab-drag.service.js.map +1 -0
- package/app/services/tab-focus.service.d.ts +24 -0
- package/app/services/tab-focus.service.js +93 -0
- package/app/services/tab-focus.service.js.map +1 -0
- package/app/services/tab-label.service.d.ts +37 -0
- package/app/services/tab-label.service.js +104 -0
- package/app/services/tab-label.service.js.map +1 -0
- package/app/services/tab-rename.service.d.ts +30 -0
- package/app/services/tab-rename.service.js +82 -0
- package/app/services/tab-rename.service.js.map +1 -0
- package/app/services/tab-row.service.d.ts +16 -0
- package/app/services/tab-row.service.js +50 -0
- package/app/services/tab-row.service.js.map +1 -0
- package/app/services/tab-strip.service.d.ts +11 -0
- package/app/services/tab-strip.service.js +44 -0
- package/app/services/tab-strip.service.js.map +1 -0
- package/app/services/time-formats.service.d.ts +20 -0
- package/app/services/time-formats.service.js +40 -0
- package/app/services/time-formats.service.js.map +1 -0
- package/app/services/toast.service.d.ts +31 -0
- package/app/services/toast.service.js +143 -0
- package/app/services/toast.service.js.map +1 -0
- package/app/services/toolbar-drag.service.d.ts +21 -0
- package/app/services/toolbar-drag.service.js +105 -0
- package/app/services/toolbar-drag.service.js.map +1 -0
- package/app/services/toolbar.service.d.ts +34 -0
- package/app/services/toolbar.service.js +89 -0
- package/app/services/toolbar.service.js.map +1 -0
- package/app/services/update.service.d.ts +25 -0
- package/app/services/update.service.js +47 -0
- package/app/services/update.service.js.map +1 -0
- package/app/services/view-dialog.service.d.ts +27 -0
- package/app/services/view-dialog.service.js +107 -0
- package/app/services/view-dialog.service.js.map +1 -0
- package/app/services/view-instances.service.d.ts +27 -0
- package/app/services/view-instances.service.js +129 -0
- package/app/services/view-instances.service.js.map +1 -0
- package/app/services/web-view.service.d.ts +47 -0
- package/app/services/web-view.service.js +222 -0
- package/app/services/web-view.service.js.map +1 -0
- package/app/services/window-error-handler.d.ts +18 -0
- package/app/services/window-error-handler.js +43 -0
- package/app/services/window-error-handler.js.map +1 -0
- package/app/services/window-part-host.service.d.ts +199 -0
- package/app/services/window-part-host.service.js +793 -0
- package/app/services/window-part-host.service.js.map +1 -0
- package/app/services/window-row-overlay.service.d.ts +15 -0
- package/app/services/window-row-overlay.service.js +79 -0
- package/app/services/window-row-overlay.service.js.map +1 -0
- package/package.json +49 -3
- package/resources.d.ts +1039 -0
- package/resources.js +1451 -0
- package/resources.js.map +1 -0
- package/testing/models/fake-window-part-context.d.ts +1402 -0
- package/testing/models/fake-window-part-context.js +109 -0
- package/testing/models/fake-window-part-context.js.map +1 -0
- package/testing/models/fake-window-secrets.d.ts +109 -0
- package/testing/models/fake-window-secrets.js +14 -0
- package/testing/models/fake-window-secrets.js.map +1 -0
- package/testing/models/fake-window-web-views.d.ts +66 -0
- package/testing/models/fake-window-web-views.js +12 -0
- package/testing/models/fake-window-web-views.js.map +1 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Component, DestroyRef, ElementRef, computed, effect, inject, input, signal, untracked } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { QualifiedName } from "@noldova/desktop.protocol";
|
|
11
|
+
import { ButtonComponent, ButtonVariant, TooltipDirective } from "@noldova/ui.components.angular";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import { AgentControlService } from "../../services/agent-control.service.js";
|
|
14
|
+
import { CommandService } from "../../services/command.service.js";
|
|
15
|
+
import { LiveViewService } from "../../services/live-view.service.js";
|
|
16
|
+
import { ModuleStatusService } from "../../services/module-status.service.js";
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
export class TabSlotComponent {
|
|
19
|
+
views = inject(LiveViewService);
|
|
20
|
+
element = inject(ElementRef).nativeElement;
|
|
21
|
+
contentValue = signal(null, /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "contentValue" }] : /* istanbul ignore next */ []));
|
|
23
|
+
agentControl = inject(AgentControlService);
|
|
24
|
+
modules = inject(ModuleStatusService);
|
|
25
|
+
commands = inject(CommandService);
|
|
26
|
+
shown = null;
|
|
27
|
+
resources = Resources;
|
|
28
|
+
secondary = ButtonVariant.Secondary;
|
|
29
|
+
isStopped = computed(() => {
|
|
30
|
+
const owner = QualifiedName.find(this.tab().name)?.owner;
|
|
31
|
+
return this.agentControl.state()?.isStopped === true && !Object.isUndefined(owner) && this.modules.offeringTools().includes(owner);
|
|
32
|
+
}, /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "isStopped" }] : /* istanbul ignore next */ []));
|
|
34
|
+
tab = input.required(/* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "tab" }] : /* istanbul ignore next */ []));
|
|
36
|
+
isDocked = input(false, /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "isDocked" }] : /* istanbul ignore next */ []));
|
|
38
|
+
content = this.contentValue.asReadonly();
|
|
39
|
+
constructor() {
|
|
40
|
+
effect(() => {
|
|
41
|
+
const tab = this.tab();
|
|
42
|
+
const isDocked = this.isDocked();
|
|
43
|
+
this.views.destroyed();
|
|
44
|
+
untracked(() => this.show(tab, isDocked));
|
|
45
|
+
});
|
|
46
|
+
inject(DestroyRef).onDestroy(() => this.hide());
|
|
47
|
+
}
|
|
48
|
+
resume() {
|
|
49
|
+
this.commands.run(Resources.resumeAgentControlCommand);
|
|
50
|
+
}
|
|
51
|
+
show(tab, isDocked) {
|
|
52
|
+
if (!Object.isNull(this.shown) && !this.shown.equals(tab))
|
|
53
|
+
this.views.hide(this.shown, this.element);
|
|
54
|
+
this.shown = tab;
|
|
55
|
+
this.contentValue.set(this.views.show(tab, this.element, isDocked));
|
|
56
|
+
}
|
|
57
|
+
hide() {
|
|
58
|
+
if (!Object.isNull(this.shown))
|
|
59
|
+
this.views.hide(this.shown, this.element);
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TabSlotComponent, isStandalone: true, selector: "nol-tab-slot", inputs: { tab: { classPropertyName: "tab", publicName: "tab", isSignal: true, isRequired: true, transformFunction: null }, isDocked: { classPropertyName: "isDocked", publicName: "isDocked", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.nol-tab-slot-docked": "isDocked()" } }, 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 (isStopped()) {\n <div class=\"nol-tab-slot-stopped\" role=\"status\">\n <span class=\"nol-tab-slot-stopped-text\" data-truncates [nolTooltip]=\"resources.agentsStoppedLabel\" [nolTooltipTruncated]=\"true\">{{ resources.agentsStoppedLabel }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"resume()\">{{ resources.resumeAgentsLabel }}</button>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n}\n\n.nol-tab-slot-stopped {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n gap: var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-content-padding-inline);\n background-color: var(--nol-raised);\n}\n\n:host(.nol-tab-slot-docked) .nol-tab-slot-stopped {\n background-color: var(--nol-panel);\n}\n\n.nol-tab-slot-stopped-text {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabSlotComponent, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: "nol-tab-slot", imports: [ButtonComponent, TooltipDirective], host: {
|
|
67
|
+
"[class.nol-tab-slot-docked]": "isDocked()"
|
|
68
|
+
}, 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 (isStopped()) {\n <div class=\"nol-tab-slot-stopped\" role=\"status\">\n <span class=\"nol-tab-slot-stopped-text\" data-truncates [nolTooltip]=\"resources.agentsStoppedLabel\" [nolTooltipTruncated]=\"true\">{{ resources.agentsStoppedLabel }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"resume()\">{{ resources.resumeAgentsLabel }}</button>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n}\n\n.nol-tab-slot-stopped {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n gap: var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-content-padding-inline);\n background-color: var(--nol-raised);\n}\n\n:host(.nol-tab-slot-docked) .nol-tab-slot-stopped {\n background-color: var(--nol-panel);\n}\n\n.nol-tab-slot-stopped-text {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n"] }]
|
|
69
|
+
}], ctorParameters: () => [], propDecorators: { tab: [{ type: i0.Input, args: [{ isSignal: true, alias: "tab", required: true }] }], isDocked: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDocked", required: false }] }] } });
|
|
70
|
+
//# sourceMappingURL=tab-slot.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-slot.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/tab-slot/tab-slot.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/tab-slot/tab-slot.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAsD,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EACrI,SAAS,EAAE,MAAM,eAAe,CAAC;AAEnC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;;AAY9E,MAAM,OAAO,gBAAgB;IACV,KAAK,GAAoB,MAAM,CAAC,eAAe,CAAC,CAAC;IACjD,OAAO,GAAgB,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa,CAAC;IACjF,YAAY,GAA+C,MAAM,CAAC,IAAI;qFAAC,CAAC;IACxE,YAAY,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAChE,OAAO,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC3D,QAAQ,GAAmB,MAAM,CAAC,cAAc,CAAC,CAAC;IAC3D,KAAK,GAAe,IAAI,CAAC;IAEd,SAAS,GAAqB,SAAS,CAAC;IACxC,SAAS,GAAk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,CAAC,MAAM,CAAC,GAAG,CAAC;YACvD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IACtE,CAAC;IAEO,IAAI;QACV,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAC5B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;uGA5CU,gBAAgB;2FAAhB,gBAAgB,2YChC7B,wjBAcA,gxBDaY,eAAe,oJAAE,gBAAgB;;2FAKhC,gBAAgB;kBAT5B,SAAS;+BACE,cAAc,WAGf,CAAC,eAAe,EAAE,gBAAgB,CAAC,QACtC;wBACJ,6BAA6B,EAAE,YAAY;qBAC5C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { ButtonVariant } from "@noldova/ui.components.angular";
|
|
11
|
+
import { type CommandRun, type Notification, type NotificationSeverity } from "@noldova/desktop.protocol";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class ToastsComponent {
|
|
15
|
+
private readonly notifications;
|
|
16
|
+
private readonly service;
|
|
17
|
+
private readonly errors;
|
|
18
|
+
private readonly statuses;
|
|
19
|
+
private readonly time;
|
|
20
|
+
protected readonly resources: typeof Resources;
|
|
21
|
+
protected readonly secondary: ButtonVariant;
|
|
22
|
+
protected readonly toasts: Signal<readonly Notification[]>;
|
|
23
|
+
protected glyph(severity: NotificationSeverity): string;
|
|
24
|
+
protected severityName(severity: NotificationSeverity): string;
|
|
25
|
+
protected moduleName(notification: Notification): string;
|
|
26
|
+
protected timeOf(notification: Notification): string;
|
|
27
|
+
protected progressOf(notification: Notification): number | null;
|
|
28
|
+
protected isIndeterminate(notification: Notification): boolean;
|
|
29
|
+
protected isAvailable(command: CommandRun): boolean;
|
|
30
|
+
protected run(notification: Notification, command: CommandRun): void;
|
|
31
|
+
protected close(notification: Notification): void;
|
|
32
|
+
protected pause(notification: Notification): void;
|
|
33
|
+
protected resume(notification: Notification, toast: HTMLElement): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastsComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastsComponent, "nol-toasts", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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, ErrorHandler, inject } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { ButtonComponent, ButtonVariant, IconButtonComponent, ProgressComponent, TooltipDirective } from "@noldova/ui.components.angular";
|
|
11
|
+
import { NotificationPost } from "@noldova/desktop.protocol";
|
|
12
|
+
import { ModuleStatusService } from "../../services/module-status.service.js";
|
|
13
|
+
import { NotificationService } from "../../services/notification.service.js";
|
|
14
|
+
import { ToastService } from "../../services/toast.service.js";
|
|
15
|
+
import { Resources } from "../../../resources.js";
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export class ToastsComponent {
|
|
18
|
+
notifications = inject(NotificationService);
|
|
19
|
+
service = inject(ToastService);
|
|
20
|
+
errors = inject(ErrorHandler);
|
|
21
|
+
statuses = inject(ModuleStatusService);
|
|
22
|
+
time = new Intl.DateTimeFormat(undefined, Resources.timeFormat);
|
|
23
|
+
resources = Resources;
|
|
24
|
+
secondary = ButtonVariant.Secondary;
|
|
25
|
+
toasts = this.service.toasts;
|
|
26
|
+
glyph(severity) {
|
|
27
|
+
return Resources.severityGlyphs[severity];
|
|
28
|
+
}
|
|
29
|
+
severityName(severity) {
|
|
30
|
+
return Resources.severityNames[severity];
|
|
31
|
+
}
|
|
32
|
+
moduleName(notification) {
|
|
33
|
+
return this.statuses.nameOf(notification.post.kind.owner);
|
|
34
|
+
}
|
|
35
|
+
timeOf(notification) {
|
|
36
|
+
return this.time.format(new Date(notification.postedAt));
|
|
37
|
+
}
|
|
38
|
+
progressOf(notification) {
|
|
39
|
+
return Object.isNumber(notification.post.progress) ? notification.post.progress : null;
|
|
40
|
+
}
|
|
41
|
+
isIndeterminate(notification) {
|
|
42
|
+
return notification.post.progress === NotificationPost.indeterminate;
|
|
43
|
+
}
|
|
44
|
+
isAvailable(command) {
|
|
45
|
+
return this.notifications.isAvailable(command);
|
|
46
|
+
}
|
|
47
|
+
run(notification, command) {
|
|
48
|
+
this.notifications.runAsync(command).catch((error) => this.errors.handleError(error));
|
|
49
|
+
this.service.close(notification.id);
|
|
50
|
+
}
|
|
51
|
+
close(notification) {
|
|
52
|
+
this.service.close(notification.id);
|
|
53
|
+
}
|
|
54
|
+
pause(notification) {
|
|
55
|
+
this.service.pause(notification.id);
|
|
56
|
+
}
|
|
57
|
+
resume(notification, toast) {
|
|
58
|
+
if (!toast.matches(Resources.hoverSelector) && !toast.contains(toast.ownerDocument.activeElement))
|
|
59
|
+
this.service.resume(notification.id);
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToastsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: ToastsComponent, isStandalone: true, selector: "nol-toasts", 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<div class=\"nol-toasts-stack\">\n @for (toast of toasts(); track toast.id) {\n <section #card class=\"nol-toast\" [attr.data-notification]=\"toast.id\" [attr.data-severity]=\"toast.post.severity\" [attr.aria-label]=\"toast.post.title\"\n (mouseenter)=\"pause(toast)\" (mouseleave)=\"resume(toast, card)\" (focusin)=\"pause(toast)\" (focusout)=\"resume(toast, card)\">\n <span class=\"material-symbols-rounded nol-toast-severity\" role=\"img\" [attr.aria-label]=\"severityName(toast.post.severity)\">{{ glyph(toast.post.severity) }}</span>\n <div class=\"nol-toast-body\">\n @if (toast.post.open !== null) {\n <button type=\"button\" class=\"nol-toast-title nol-toast-open\" [disabled]=\"!isAvailable(toast.post.open)\" (click)=\"run(toast, toast.post.open)\">{{ toast.post.title }}</button>\n }\n @else {\n <span class=\"nol-toast-title\">{{ toast.post.title }}</span>\n }\n @if (toast.post.text !== null) {\n <span class=\"nol-toast-text\">{{ toast.post.text }}</span>\n }\n @if (isIndeterminate(toast) || progressOf(toast) !== null) {\n <nol-progress [value]=\"progressOf(toast)\" [label]=\"toast.post.title\" />\n }\n <span class=\"nol-toast-meta\">{{ moduleName(toast) }} \u00B7 {{ timeOf(toast) }}</span>\n @if (toast.post.actions.length > 0) {\n <div class=\"nol-toast-actions\">\n @for (action of toast.post.actions; track $index) {\n <button type=\"button\" nol-button class=\"nol-toast-action\" [variant]=\"secondary\" [disabled]=\"!isAvailable(action.command)\" (click)=\"run(toast, action.command)\">{{ action.title }}</button>\n }\n </div>\n }\n </div>\n <button type=\"button\" nol-icon-button class=\"nol-toast-close\" [icon]=\"resources.closeGlyph\" [label]=\"resources.closeToastLabel\" [nolTooltip]=\"resources.closeToastLabel\" (click)=\"close(toast)\"></button>\n </section>\n }\n</div>\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: fixed;\n right: var(--nol-space-2);\n bottom: calc(var(--nol-status-bar-height) + var(--nol-space-2));\n z-index: 1;\n display: block;\n pointer-events: none;\n}\n\n.nol-toasts-stack {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n}\n\n.nol-toast {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: start;\n column-gap: var(--nol-space-2);\n box-sizing: border-box;\n width: min(var(--nol-toast-width), calc(100vw - var(--nol-space-4)));\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-notification-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-notification);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-text);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n pointer-events: auto;\n}\n\n.nol-toast-severity {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: var(--nol-line-panel);\n}\n\n.nol-toast[data-severity=\"Error\"] .nol-toast-severity {\n color: var(--nol-error);\n}\n\n.nol-toast[data-severity=\"Success\"] .nol-toast-severity {\n color: var(--nol-added);\n}\n\n.nol-toast-body {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.nol-toast-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n overflow-wrap: anywhere;\n}\n\n.nol-toast-open {\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-link);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-align: start;\n cursor: pointer;\n}\n\n.nol-toast-open:disabled {\n color: inherit;\n cursor: default;\n}\n\n.nol-toast-open:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-toast-meta {\n color: var(--nol-text-muted);\n}\n\n.nol-toast-text {\n display: -webkit-box;\n overflow: hidden;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n}\n\n.nol-toast-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: ProgressComponent, selector: "nol-progress", inputs: ["label", "value"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToastsComponent, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: "nol-toasts", imports: [ButtonComponent, IconButtonComponent, ProgressComponent, 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<div class=\"nol-toasts-stack\">\n @for (toast of toasts(); track toast.id) {\n <section #card class=\"nol-toast\" [attr.data-notification]=\"toast.id\" [attr.data-severity]=\"toast.post.severity\" [attr.aria-label]=\"toast.post.title\"\n (mouseenter)=\"pause(toast)\" (mouseleave)=\"resume(toast, card)\" (focusin)=\"pause(toast)\" (focusout)=\"resume(toast, card)\">\n <span class=\"material-symbols-rounded nol-toast-severity\" role=\"img\" [attr.aria-label]=\"severityName(toast.post.severity)\">{{ glyph(toast.post.severity) }}</span>\n <div class=\"nol-toast-body\">\n @if (toast.post.open !== null) {\n <button type=\"button\" class=\"nol-toast-title nol-toast-open\" [disabled]=\"!isAvailable(toast.post.open)\" (click)=\"run(toast, toast.post.open)\">{{ toast.post.title }}</button>\n }\n @else {\n <span class=\"nol-toast-title\">{{ toast.post.title }}</span>\n }\n @if (toast.post.text !== null) {\n <span class=\"nol-toast-text\">{{ toast.post.text }}</span>\n }\n @if (isIndeterminate(toast) || progressOf(toast) !== null) {\n <nol-progress [value]=\"progressOf(toast)\" [label]=\"toast.post.title\" />\n }\n <span class=\"nol-toast-meta\">{{ moduleName(toast) }} \u00B7 {{ timeOf(toast) }}</span>\n @if (toast.post.actions.length > 0) {\n <div class=\"nol-toast-actions\">\n @for (action of toast.post.actions; track $index) {\n <button type=\"button\" nol-button class=\"nol-toast-action\" [variant]=\"secondary\" [disabled]=\"!isAvailable(action.command)\" (click)=\"run(toast, action.command)\">{{ action.title }}</button>\n }\n </div>\n }\n </div>\n <button type=\"button\" nol-icon-button class=\"nol-toast-close\" [icon]=\"resources.closeGlyph\" [label]=\"resources.closeToastLabel\" [nolTooltip]=\"resources.closeToastLabel\" (click)=\"close(toast)\"></button>\n </section>\n }\n</div>\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: fixed;\n right: var(--nol-space-2);\n bottom: calc(var(--nol-status-bar-height) + var(--nol-space-2));\n z-index: 1;\n display: block;\n pointer-events: none;\n}\n\n.nol-toasts-stack {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n}\n\n.nol-toast {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: start;\n column-gap: var(--nol-space-2);\n box-sizing: border-box;\n width: min(var(--nol-toast-width), calc(100vw - var(--nol-space-4)));\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-notification-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-notification);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-text);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n pointer-events: auto;\n}\n\n.nol-toast-severity {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: var(--nol-line-panel);\n}\n\n.nol-toast[data-severity=\"Error\"] .nol-toast-severity {\n color: var(--nol-error);\n}\n\n.nol-toast[data-severity=\"Success\"] .nol-toast-severity {\n color: var(--nol-added);\n}\n\n.nol-toast-body {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.nol-toast-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n overflow-wrap: anywhere;\n}\n\n.nol-toast-open {\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-link);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-align: start;\n cursor: pointer;\n}\n\n.nol-toast-open:disabled {\n color: inherit;\n cursor: default;\n}\n\n.nol-toast-open:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-toast-meta {\n color: var(--nol-text-muted);\n}\n\n.nol-toast-text {\n display: -webkit-box;\n overflow: hidden;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n}\n\n.nol-toast-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n"] }]
|
|
67
|
+
}] });
|
|
68
|
+
//# sourceMappingURL=toasts.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toasts.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/toasts/toasts.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/toasts/toasts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,E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aAAa,CAAC;YAC/F,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IACzC,CAAC;uGAvDU,eAAe;2FAAf,eAAe,sECzB5B,goEAuCA,s8EDlBY,eAAe,oJAAE,mBAAmB,2MAAE,iBAAiB,qFAAE,gBAAgB;;2FAIxE,eAAe;kBAN3B,SAAS;+BACE,YAAY,WACb,CAAC,eAAe,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { OverlaySide } from "@noldova/ui.components.angular";
|
|
11
|
+
import type { JsonObject } from "@noldova/context.json";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import { MenuCheck } from "../../enums/menu-check.js";
|
|
14
|
+
import type { CommandRow } from "../../models/command-row.js";
|
|
15
|
+
import type { MenuSection } from "../../models/menu-section.js";
|
|
16
|
+
import type { Toolbar } from "../../models/toolbar.js";
|
|
17
|
+
import { ToolbarDragService } from "../../services/toolbar-drag.service.js";
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
export declare class ToolbarComponent {
|
|
20
|
+
private readonly commands;
|
|
21
|
+
private readonly errors;
|
|
22
|
+
private isRefocusing;
|
|
23
|
+
private readonly content;
|
|
24
|
+
private readonly ghost;
|
|
25
|
+
private readonly grip;
|
|
26
|
+
private readonly gripMenu;
|
|
27
|
+
private readonly edges;
|
|
28
|
+
private readonly overflowSpace;
|
|
29
|
+
private readonly available;
|
|
30
|
+
private readonly gripWidth;
|
|
31
|
+
protected readonly resources: typeof Resources;
|
|
32
|
+
protected readonly menuCheck: typeof MenuCheck;
|
|
33
|
+
protected readonly below: OverlaySide;
|
|
34
|
+
protected readonly drag: ToolbarDragService;
|
|
35
|
+
protected readonly menuContext: Signal<JsonObject>;
|
|
36
|
+
readonly toolbar: import("@angular/core").InputSignal<Toolbar>;
|
|
37
|
+
readonly count: Signal<number>;
|
|
38
|
+
readonly shown: Signal<readonly MenuSection[]>;
|
|
39
|
+
readonly overflowing: Signal<readonly MenuSection[]>;
|
|
40
|
+
readonly naturalWidth: Signal<number | null>;
|
|
41
|
+
constructor();
|
|
42
|
+
protected openMenuFromKey(event: KeyboardEvent): void;
|
|
43
|
+
protected openMenuAtToolbar(event: MouseEvent): void;
|
|
44
|
+
protected tooltipOf(row: CommandRow): string;
|
|
45
|
+
protected run(row: CommandRow): void;
|
|
46
|
+
private measure;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "nol-toolbar", never, { "toolbar": { "alias": "toolbar"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Component, DestroyRef, ErrorHandler, afterRenderEffect, computed, effect, inject, input, signal, viewChild } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { MenuTriggerDirective, OverlaySide, ToolbarButtonComponent, ToolbarDirective, ToolbarItemDirective, TooltipDirective } from "@noldova/ui.components.angular";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import { MenuCheck } from "../../enums/menu-check.js";
|
|
13
|
+
import { ToolbarFit } from "../../models/toolbar-fit.js";
|
|
14
|
+
import { CommandService } from "../../services/command.service.js";
|
|
15
|
+
import { ToolbarDragService } from "../../services/toolbar-drag.service.js";
|
|
16
|
+
import { PlaceMenuComponent } from "../place-menu/place-menu.component.js";
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
export class ToolbarComponent {
|
|
19
|
+
commands = inject(CommandService);
|
|
20
|
+
errors = inject(ErrorHandler);
|
|
21
|
+
isRefocusing = false;
|
|
22
|
+
content = viewChild.required("content", /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
24
|
+
ghost = viewChild.required("ghost", /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "ghost" }] : /* istanbul ignore next */ []));
|
|
26
|
+
grip = viewChild.required("grip", /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "grip" }] : /* istanbul ignore next */ []));
|
|
28
|
+
gripMenu = viewChild.required("grip", { ...(ngDevMode ? { debugName: "gripMenu" } : /* istanbul ignore next */ {}), read: MenuTriggerDirective });
|
|
29
|
+
edges = signal([], /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "edges" }] : /* istanbul ignore next */ []));
|
|
31
|
+
overflowSpace = signal(0, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "overflowSpace" }] : /* istanbul ignore next */ []));
|
|
33
|
+
available = signal(Number.POSITIVE_INFINITY, /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "available" }] : /* istanbul ignore next */ []));
|
|
35
|
+
gripWidth = signal(0, /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "gripWidth" }] : /* istanbul ignore next */ []));
|
|
37
|
+
resources = Resources;
|
|
38
|
+
menuCheck = MenuCheck;
|
|
39
|
+
below = OverlaySide.below;
|
|
40
|
+
drag = inject(ToolbarDragService);
|
|
41
|
+
menuContext = computed(() => ({ [Resources.toolbarArgument]: this.toolbar().name }), /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "menuContext" }] : /* istanbul ignore next */ []));
|
|
43
|
+
toolbar = input.required(/* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "toolbar" }] : /* istanbul ignore next */ []));
|
|
45
|
+
count = computed(() => ToolbarFit.count(this.edges(), this.overflowSpace(), this.available()), /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
47
|
+
shown = computed(() => this.toolbar().sections.slice(0, this.count()), /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
49
|
+
overflowing = computed(() => this.toolbar().sections.slice(this.count()), /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "overflowing" }] : /* istanbul ignore next */ []));
|
|
51
|
+
naturalWidth = computed(() => {
|
|
52
|
+
const last = this.edges().at(-1);
|
|
53
|
+
return Object.isUndefined(last) ? null : this.gripWidth() + last;
|
|
54
|
+
}, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "naturalWidth" }] : /* istanbul ignore next */ []));
|
|
56
|
+
constructor() {
|
|
57
|
+
const observer = new ResizeObserver(() => this.measure());
|
|
58
|
+
inject(DestroyRef).onDestroy(() => observer.disconnect());
|
|
59
|
+
effect(() => {
|
|
60
|
+
const count = this.count();
|
|
61
|
+
const group = this.content().nativeElement.querySelector(Resources.focusedSelector)?.closest(Resources.toolbarContentSectionSelector)
|
|
62
|
+
?.dataset[Resources.toolbarGroupData];
|
|
63
|
+
this.isRefocusing = this.toolbar().sections.findIndex(t => t.group === group) >= count;
|
|
64
|
+
});
|
|
65
|
+
afterRenderEffect(() => {
|
|
66
|
+
this.count();
|
|
67
|
+
if (this.isRefocusing)
|
|
68
|
+
this.content().nativeElement.querySelector(Resources.toolbarOverflowItemSelector)?.focus();
|
|
69
|
+
this.isRefocusing = false;
|
|
70
|
+
});
|
|
71
|
+
afterRenderEffect(() => {
|
|
72
|
+
this.toolbar();
|
|
73
|
+
const [content, ghost, grip] = [this.content().nativeElement, this.ghost().nativeElement, this.grip().nativeElement];
|
|
74
|
+
observer.disconnect();
|
|
75
|
+
observer.observe(content);
|
|
76
|
+
observer.observe(ghost);
|
|
77
|
+
observer.observe(grip);
|
|
78
|
+
this.measure();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
openMenuFromKey(event) {
|
|
82
|
+
if (event.key === Resources.toolbarMenuKey || (event.key === Resources.toolbarMenuShiftKey && event.shiftKey)) {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
event.stopPropagation();
|
|
85
|
+
this.gripMenu().openFocusing(Resources.keyboardFocusOrigin);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
openMenuAtToolbar(event) {
|
|
89
|
+
event.preventDefault();
|
|
90
|
+
event.stopPropagation();
|
|
91
|
+
this.gripMenu().openFocusing(Resources.mouseFocusOrigin);
|
|
92
|
+
}
|
|
93
|
+
tooltipOf(row) {
|
|
94
|
+
return Object.isNull(row.key) ? row.title : Resources.formatShortcutTitle(row.title, row.key);
|
|
95
|
+
}
|
|
96
|
+
run(row) {
|
|
97
|
+
if (row.isEnabled)
|
|
98
|
+
this.commands.runAsync(row.command, row.commandArguments).catch((error) => this.errors.handleError(error));
|
|
99
|
+
}
|
|
100
|
+
measure() {
|
|
101
|
+
const ghost = this.ghost().nativeElement;
|
|
102
|
+
const isRightToLeft = getComputedStyle(ghost).direction === Resources.rightToLeft;
|
|
103
|
+
const box = ghost.getBoundingClientRect();
|
|
104
|
+
const extentOf = (element) => {
|
|
105
|
+
const rect = element.getBoundingClientRect();
|
|
106
|
+
return isRightToLeft ? box.right - rect.left : rect.right - box.left;
|
|
107
|
+
};
|
|
108
|
+
const edges = [...ghost.querySelectorAll(Resources.toolbarSectionSelector)].map(extentOf);
|
|
109
|
+
this.edges.set(edges);
|
|
110
|
+
this.overflowSpace.set(Math.max(0, ...[...ghost.querySelectorAll(Resources.toolbarOverflowSelector)].map(extentOf)) - Math.max(0, ...edges));
|
|
111
|
+
const [content, grip] = [this.content().nativeElement.getBoundingClientRect(), this.grip().nativeElement.getBoundingClientRect()];
|
|
112
|
+
this.available.set(content.width);
|
|
113
|
+
this.gripWidth.set(isRightToLeft ? grip.right - content.right : content.left - grip.left);
|
|
114
|
+
}
|
|
115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
116
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: ToolbarComponent, isStandalone: true, selector: "nol-toolbar", inputs: { toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "keydown": "openMenuFromKey($event)", "contextmenu": "openMenuAtToolbar($event)" }, properties: { "attr.data-toolbar": "toolbar().name", "class.nol-toolbar-dragging": "drag.dragging() === toolbar().name", "style.flex-basis.px": "naturalWidth()" }, classAttribute: "nol-toolbar" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "ghost", first: true, predicate: ["ghost"], descendants: true, isSignal: true }, { propertyName: "grip", first: true, predicate: ["grip"], descendants: true, isSignal: true }, { propertyName: "gripMenu", first: true, predicate: ["grip"], 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-place-menu #moves [place]=\"resources.toolbarMenu\" [context]=\"menuContext()\" />\n<button #grip type=\"button\" tabindex=\"-1\" class=\"nol-toolbar-grip\" [attr.aria-label]=\"resources.toolbarGripLabel\" [nolMenuTriggerFor]=\"moves.menu()\" [nolTooltip]=\"resources.toolbarGripLabel\"\n [nolTooltipSide]=\"below\" (pointerdown)=\"drag.begin(toolbar().name, $event)\">\n <span class=\"nol-toolbar-dot\"></span>\n <span class=\"nol-toolbar-dot\"></span>\n <span class=\"nol-toolbar-dot\"></span>\n</button>\n<div #content class=\"nol-toolbar-content\" nolToolbar [nolToolbarLabel]=\"toolbar().title\">\n @for (section of shown(); track section.group; let first = $first) {\n @if (!first) {\n <span class=\"nol-toolbar-separator\" role=\"separator\" aria-orientation=\"vertical\"></span>\n }\n <div class=\"nol-toolbar-section\" [attr.data-group]=\"section.group\">\n @for (row of section.rows; track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" />\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item\" [attr.data-submenu]=\"row.place\" [label]=\"row.title\" [icon]=\"row.icon\" [isShowingLabel]=\"true\"\n [hasMenu]=\"true\" [nolMenuTriggerFor]=\"nested.menu()\" [nolTooltip]=\"row.title\" [nolTooltipTruncated]=\"true\" [nolTooltipSide]=\"below\"></button>\n } @else {\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item\" [attr.data-command]=\"row.command\" [label]=\"row.title\" [icon]=\"row.icon\"\n [pressed]=\"row.check === menuCheck.None ? undefined : row.isChecked\" [isUnavailable]=\"!row.isEnabled\" [nolTooltip]=\"tooltipOf(row)\"\n [nolTooltipSide]=\"below\" (click)=\"run(row)\"></button>\n }\n }\n </div>\n }\n @if (overflowing().length > 0) {\n <nol-place-menu #overflow [rows]=\"overflowing()\" />\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item nol-toolbar-overflow\" [label]=\"resources.toolbarOverflowLabel\" [icon]=\"resources.toolbarOverflowGlyph\"\n [nolMenuTriggerFor]=\"overflow.menu()\" [nolTooltip]=\"resources.toolbarOverflowLabel\" [nolTooltipSide]=\"below\"></button>\n }\n</div>\n<div #ghost class=\"nol-toolbar-ghost\" aria-hidden=\"true\">\n @for (section of toolbar().sections; track section.group; let first = $first) {\n @if (!first) {\n <span class=\"nol-toolbar-separator\"></span>\n }\n <div class=\"nol-toolbar-ghost-section\">\n @for (row of section.rows; track $index) {\n <button nol-toolbar-button tabindex=\"-1\" [label]=\"row.title\" [icon]=\"row.icon\" [isShowingLabel]=\"row.isSubmenu\" [hasMenu]=\"row.isSubmenu\"></button>\n }\n </div>\n }\n <button nol-toolbar-button tabindex=\"-1\" class=\"nol-toolbar-ghost-overflow\" [label]=\"resources.toolbarOverflowLabel\" [icon]=\"resources.toolbarOverflowGlyph\"></button>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: flex;\n align-items: center;\n flex: 0 1 auto;\n min-width: calc(var(--nol-sash-grip) * 2.5 + var(--nol-toolbar-button));\n height: var(--nol-toolbar-button);\n overflow: hidden;\n}\n\n:host(.nol-toolbar-dragging) {\n opacity: 0.5;\n}\n\n.nol-toolbar-grip {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--nol-toolbar-grip-gap);\n align-self: stretch;\n flex: none;\n box-sizing: border-box;\n width: calc(var(--nol-sash-grip) * 2);\n margin: 0;\n margin-inline-end: calc(var(--nol-sash-grip) / 2);\n padding: 0;\n border: 0;\n border-radius: var(--nol-radius-small);\n background: none;\n opacity: 0.3;\n cursor: grab;\n user-select: none;\n touch-action: none;\n}\n\n.nol-toolbar-grip:hover,\n.nol-toolbar-grip:focus-visible {\n opacity: 1;\n}\n\n.nol-toolbar-grip:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-toolbar-dot {\n flex: none;\n width: var(--nol-sash-grip);\n height: var(--nol-sash-grip);\n border-radius: 50%;\n background-color: var(--nol-icon-color);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n\n.nol-toolbar-content,\n.nol-toolbar-ghost {\n display: flex;\n align-items: center;\n gap: calc(var(--nol-border-width) * 2);\n}\n\n.nol-toolbar-content {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n}\n\n.nol-toolbar-section,\n.nol-toolbar-ghost-section {\n display: flex;\n align-items: center;\n flex: none;\n gap: calc(var(--nol-border-width) * 2);\n}\n\n.nol-toolbar-separator {\n flex: none;\n align-self: center;\n width: var(--nol-border-width);\n height: var(--nol-icon);\n margin-inline: calc(var(--nol-toolbar-gap) / 2);\n background-color: var(--nol-menu-separator);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n\n.nol-toolbar-ghost {\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n visibility: hidden;\n pointer-events: none;\n}\n"], dependencies: [{ kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
117
|
+
}
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
119
|
+
type: Component,
|
|
120
|
+
args: [{ selector: "nol-toolbar", imports: [MenuTriggerDirective, PlaceMenuComponent, ToolbarButtonComponent, ToolbarDirective, ToolbarItemDirective, TooltipDirective], host: {
|
|
121
|
+
"class": "nol-toolbar",
|
|
122
|
+
"[attr.data-toolbar]": "toolbar().name",
|
|
123
|
+
"[class.nol-toolbar-dragging]": "drag.dragging() === toolbar().name",
|
|
124
|
+
"[style.flex-basis.px]": "naturalWidth()",
|
|
125
|
+
"(keydown)": "openMenuFromKey($event)",
|
|
126
|
+
"(contextmenu)": "openMenuAtToolbar($event)"
|
|
127
|
+
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-place-menu #moves [place]=\"resources.toolbarMenu\" [context]=\"menuContext()\" />\n<button #grip type=\"button\" tabindex=\"-1\" class=\"nol-toolbar-grip\" [attr.aria-label]=\"resources.toolbarGripLabel\" [nolMenuTriggerFor]=\"moves.menu()\" [nolTooltip]=\"resources.toolbarGripLabel\"\n [nolTooltipSide]=\"below\" (pointerdown)=\"drag.begin(toolbar().name, $event)\">\n <span class=\"nol-toolbar-dot\"></span>\n <span class=\"nol-toolbar-dot\"></span>\n <span class=\"nol-toolbar-dot\"></span>\n</button>\n<div #content class=\"nol-toolbar-content\" nolToolbar [nolToolbarLabel]=\"toolbar().title\">\n @for (section of shown(); track section.group; let first = $first) {\n @if (!first) {\n <span class=\"nol-toolbar-separator\" role=\"separator\" aria-orientation=\"vertical\"></span>\n }\n <div class=\"nol-toolbar-section\" [attr.data-group]=\"section.group\">\n @for (row of section.rows; track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" />\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item\" [attr.data-submenu]=\"row.place\" [label]=\"row.title\" [icon]=\"row.icon\" [isShowingLabel]=\"true\"\n [hasMenu]=\"true\" [nolMenuTriggerFor]=\"nested.menu()\" [nolTooltip]=\"row.title\" [nolTooltipTruncated]=\"true\" [nolTooltipSide]=\"below\"></button>\n } @else {\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item\" [attr.data-command]=\"row.command\" [label]=\"row.title\" [icon]=\"row.icon\"\n [pressed]=\"row.check === menuCheck.None ? undefined : row.isChecked\" [isUnavailable]=\"!row.isEnabled\" [nolTooltip]=\"tooltipOf(row)\"\n [nolTooltipSide]=\"below\" (click)=\"run(row)\"></button>\n }\n }\n </div>\n }\n @if (overflowing().length > 0) {\n <nol-place-menu #overflow [rows]=\"overflowing()\" />\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item nol-toolbar-overflow\" [label]=\"resources.toolbarOverflowLabel\" [icon]=\"resources.toolbarOverflowGlyph\"\n [nolMenuTriggerFor]=\"overflow.menu()\" [nolTooltip]=\"resources.toolbarOverflowLabel\" [nolTooltipSide]=\"below\"></button>\n }\n</div>\n<div #ghost class=\"nol-toolbar-ghost\" aria-hidden=\"true\">\n @for (section of toolbar().sections; track section.group; let first = $first) {\n @if (!first) {\n <span class=\"nol-toolbar-separator\"></span>\n }\n <div class=\"nol-toolbar-ghost-section\">\n @for (row of section.rows; track $index) {\n <button nol-toolbar-button tabindex=\"-1\" [label]=\"row.title\" [icon]=\"row.icon\" [isShowingLabel]=\"row.isSubmenu\" [hasMenu]=\"row.isSubmenu\"></button>\n }\n </div>\n }\n <button nol-toolbar-button tabindex=\"-1\" class=\"nol-toolbar-ghost-overflow\" [label]=\"resources.toolbarOverflowLabel\" [icon]=\"resources.toolbarOverflowGlyph\"></button>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: flex;\n align-items: center;\n flex: 0 1 auto;\n min-width: calc(var(--nol-sash-grip) * 2.5 + var(--nol-toolbar-button));\n height: var(--nol-toolbar-button);\n overflow: hidden;\n}\n\n:host(.nol-toolbar-dragging) {\n opacity: 0.5;\n}\n\n.nol-toolbar-grip {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--nol-toolbar-grip-gap);\n align-self: stretch;\n flex: none;\n box-sizing: border-box;\n width: calc(var(--nol-sash-grip) * 2);\n margin: 0;\n margin-inline-end: calc(var(--nol-sash-grip) / 2);\n padding: 0;\n border: 0;\n border-radius: var(--nol-radius-small);\n background: none;\n opacity: 0.3;\n cursor: grab;\n user-select: none;\n touch-action: none;\n}\n\n.nol-toolbar-grip:hover,\n.nol-toolbar-grip:focus-visible {\n opacity: 1;\n}\n\n.nol-toolbar-grip:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-toolbar-dot {\n flex: none;\n width: var(--nol-sash-grip);\n height: var(--nol-sash-grip);\n border-radius: 50%;\n background-color: var(--nol-icon-color);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n\n.nol-toolbar-content,\n.nol-toolbar-ghost {\n display: flex;\n align-items: center;\n gap: calc(var(--nol-border-width) * 2);\n}\n\n.nol-toolbar-content {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n}\n\n.nol-toolbar-section,\n.nol-toolbar-ghost-section {\n display: flex;\n align-items: center;\n flex: none;\n gap: calc(var(--nol-border-width) * 2);\n}\n\n.nol-toolbar-separator {\n flex: none;\n align-self: center;\n width: var(--nol-border-width);\n height: var(--nol-icon);\n margin-inline: calc(var(--nol-toolbar-gap) / 2);\n background-color: var(--nol-menu-separator);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n\n.nol-toolbar-ghost {\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n visibility: hidden;\n pointer-events: none;\n}\n"] }]
|
|
128
|
+
}], ctorParameters: () => [], propDecorators: { content: [{ type: i0.ViewChild, args: ["content", { isSignal: true }] }], ghost: [{ type: i0.ViewChild, args: ["ghost", { isSignal: true }] }], grip: [{ type: i0.ViewChild, args: ["grip", { isSignal: true }] }], gripMenu: [{ type: i0.ViewChild, args: ["grip", { ...{ read: MenuTriggerDirective }, isSignal: true }] }], toolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbar", required: true }] }] } });
|
|
129
|
+
//# sourceMappingURL=toolbar.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/toolbar/toolbar.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/toolbar/toolbar.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAc,YAAY,EAAoC,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEzL,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGrK,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;;AAgB3E,MAAM,OAAO,gBAAgB;IACV,QAAQ,GAAmB,MAAM,CAAC,cAAc,CAAC,CAAC;IAClD,MAAM,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IACrD,YAAY,GAAY,KAAK,CAAC;IACrB,OAAO,GAAoC,SAAS,CAAC,QAAQ,CAA0B,SAAS;gFAAC,CAAC;IAClG,KAAK,GAA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core";
|
|
2
|
+
import { Resources } from "../../../resources.js";
|
|
3
|
+
import type { Toolbar } from "../../models/toolbar.js";
|
|
4
|
+
import { ToolbarDragService } from "../../services/toolbar-drag.service.js";
|
|
5
|
+
import { ToolbarService } from "../../services/toolbar.service.js";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ToolbarBandComponent {
|
|
8
|
+
protected readonly resources: typeof Resources;
|
|
9
|
+
protected readonly toolbars: ToolbarService;
|
|
10
|
+
protected readonly drag: ToolbarDragService;
|
|
11
|
+
protected hasContent(row: readonly Toolbar[]): boolean;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarBandComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarBandComponent, "nol-toolbar-band", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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, inject } from "@angular/core";
|
|
10
|
+
import "@noldova/context.core";
|
|
11
|
+
import { ContextMenuTriggerDirective } from "@noldova/ui.components.angular";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import { ToolbarDragService } from "../../services/toolbar-drag.service.js";
|
|
14
|
+
import { ToolbarService } from "../../services/toolbar.service.js";
|
|
15
|
+
import { PlaceMenuComponent } from "../place-menu/place-menu.component.js";
|
|
16
|
+
import { ToolbarComponent } from "../toolbar/toolbar.component.js";
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
export class ToolbarBandComponent {
|
|
19
|
+
resources = Resources;
|
|
20
|
+
toolbars = inject(ToolbarService);
|
|
21
|
+
drag = inject(ToolbarDragService);
|
|
22
|
+
hasContent(row) {
|
|
23
|
+
return row.some(t => t.sections.length > 0);
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarBandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: ToolbarBandComponent, isStandalone: true, selector: "nol-toolbar-band", 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 (toolbars.hasContent()) {\n <nol-place-menu #list [place]=\"resources.toolbarsMenu\" />\n <ng-template #rows>\n @for (row of toolbars.rows(); track $index; let rowIndex = $index) {\n @if (hasContent(row)) {\n <div class=\"nol-toolbar-row\" [attr.data-toolbar-row]=\"rowIndex\">\n @for (toolbar of row; track toolbar.name; let index = $index) {\n @if (toolbar.sections.length > 0) {\n <nol-toolbar [toolbar]=\"toolbar\" [attr.data-toolbar-index]=\"index\" />\n }\n }\n </div>\n }\n }\n </ng-template>\n <div class=\"nol-toolbar-band\" [nolContextMenuTriggerFor]=\"list.menu()\">\n <ng-container [ngTemplateOutlet]=\"rows\" />\n </div>\n @if (drag.target(); as target) {\n <div class=\"nol-toolbar-drop nol-drop-line\" [class.nol-drop-line-row]=\"target.isNewRow\" [style.left.px]=\"target.x\" [style.top.px]=\"target.y\"\n [style.width.px]=\"target.isNewRow ? target.rowWidth : null\"></div>\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: block;\n background-color: var(--nol-window);\n color: var(--nol-text);\n}\n\n.nol-toolbar-band {\n display: flex;\n flex-direction: column;\n gap: var(--nol-band-gap);\n padding: 0 var(--nol-toolbar-gap) var(--nol-band-gap);\n}\n\n.nol-toolbar-row {\n display: flex;\n align-items: center;\n gap: var(--nol-toolbar-gap);\n box-sizing: border-box;\n height: var(--nol-toolbar-button);\n min-width: 0;\n}\n\n.nol-toolbar-drop {\n position: fixed;\n z-index: 1;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "component", type: ToolbarComponent, selector: "nol-toolbar", inputs: ["toolbar"] }] });
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarBandComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{ selector: "nol-toolbar-band", imports: [ContextMenuTriggerDirective, NgTemplateOutlet, PlaceMenuComponent, ToolbarComponent], 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 (toolbars.hasContent()) {\n <nol-place-menu #list [place]=\"resources.toolbarsMenu\" />\n <ng-template #rows>\n @for (row of toolbars.rows(); track $index; let rowIndex = $index) {\n @if (hasContent(row)) {\n <div class=\"nol-toolbar-row\" [attr.data-toolbar-row]=\"rowIndex\">\n @for (toolbar of row; track toolbar.name; let index = $index) {\n @if (toolbar.sections.length > 0) {\n <nol-toolbar [toolbar]=\"toolbar\" [attr.data-toolbar-index]=\"index\" />\n }\n }\n </div>\n }\n }\n </ng-template>\n <div class=\"nol-toolbar-band\" [nolContextMenuTriggerFor]=\"list.menu()\">\n <ng-container [ngTemplateOutlet]=\"rows\" />\n </div>\n @if (drag.target(); as target) {\n <div class=\"nol-toolbar-drop nol-drop-line\" [class.nol-drop-line-row]=\"target.isNewRow\" [style.left.px]=\"target.x\" [style.top.px]=\"target.y\"\n [style.width.px]=\"target.isNewRow ? target.rowWidth : null\"></div>\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: block;\n background-color: var(--nol-window);\n color: var(--nol-text);\n}\n\n.nol-toolbar-band {\n display: flex;\n flex-direction: column;\n gap: var(--nol-band-gap);\n padding: 0 var(--nol-toolbar-gap) var(--nol-band-gap);\n}\n\n.nol-toolbar-row {\n display: flex;\n align-items: center;\n gap: var(--nol-toolbar-gap);\n box-sizing: border-box;\n height: var(--nol-toolbar-button);\n min-width: 0;\n}\n\n.nol-toolbar-drop {\n position: fixed;\n z-index: 1;\n}\n"] }]
|
|
31
|
+
}] });
|
|
32
|
+
//# sourceMappingURL=toolbar-band.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-band.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/toolbar-band/toolbar-band.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/toolbar-band/toolbar-band.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;;AAQnE,MAAM,OAAO,oBAAoB;IACZ,SAAS,GAAqB,SAAS,CAAC;IACxC,QAAQ,GAAmB,MAAM,CAAC,cAAc,CAAC,CAAC;IAClD,IAAI,GAAuB,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAE/D,UAAU,CAAC,GAAuB;QAC1C,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;uGAPU,oBAAoB;2FAApB,oBAAoB,4EC3BjC,qpCA+BA,guBDRY,2BAA2B,qJAAE,gBAAgB,oJAAE,kBAAkB,iGAAE,gBAAgB;;2FAIlF,oBAAoB;kBANhC,SAAS;+BACE,kBAAkB,WACnB,CAAC,2BAA2B,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { type Signal } from "@angular/core";
|
|
9
|
+
import { UpdateStateKind } from "../../enums/update-state-kind.js";
|
|
10
|
+
import type { UpdateState } from "../../models/update-state.js";
|
|
11
|
+
import { Resources } from "../../../resources.js";
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class UpdateItemComponent {
|
|
14
|
+
private readonly updates;
|
|
15
|
+
protected readonly resources: typeof Resources;
|
|
16
|
+
protected readonly kinds: typeof UpdateStateKind;
|
|
17
|
+
protected readonly state: Signal<UpdateState>;
|
|
18
|
+
protected restart(): void;
|
|
19
|
+
protected openAbout(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateItemComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UpdateItemComponent, "nol-update-item", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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, inject } from "@angular/core";
|
|
9
|
+
import { UpdateAction } from "../../enums/update-action.js";
|
|
10
|
+
import { UpdateStateKind } from "../../enums/update-state-kind.js";
|
|
11
|
+
import { UpdateService } from "../../services/update.service.js";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export class UpdateItemComponent {
|
|
15
|
+
updates = inject(UpdateService);
|
|
16
|
+
resources = Resources;
|
|
17
|
+
kinds = UpdateStateKind;
|
|
18
|
+
state = this.updates.state;
|
|
19
|
+
restart() {
|
|
20
|
+
this.updates.act(UpdateAction.Restart);
|
|
21
|
+
}
|
|
22
|
+
openAbout() {
|
|
23
|
+
this.updates.openAbout();
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: UpdateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: UpdateItemComponent, isStandalone: true, selector: "nol-update-item", 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@switch (state().kind) {\n @case (kinds.Available) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"openAbout()\">\n <span class=\"material-symbols-rounded nol-update-item-icon\" aria-hidden=\"true\">{{ resources.updateAvailableGlyph }}</span>\n <span>{{ resources.moveToUpdateItem }}</span>\n </button>\n }\n @case (kinds.Ready) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"restart()\">\n <span class=\"material-symbols-rounded nol-update-item-icon\" aria-hidden=\"true\">{{ resources.restartToUpdateGlyph }}</span>\n <span>{{ resources.restartToUpdateLabel }}</span>\n </button>\n }\n @case (kinds.Failed) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"openAbout()\">\n <span class=\"material-symbols-rounded nol-update-item-icon nol-update-item-error\" aria-hidden=\"true\">{{ resources.updateFailedGlyph }}</span>\n <span>{{ resources.updateFailedItem }}</span>\n </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: flex;\n height: var(--nol-status-bar-item-height);\n}\n\n.nol-update-item {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-1);\n margin: 0;\n padding: 0 var(--nol-pill-padding);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background-color: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.nol-update-item:hover {\n background-color: var(--nol-toolbar-hover);\n}\n\n.nol-update-item:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n.nol-update-item-icon {\n font-size: var(--nol-icon);\n}\n\n.nol-update-item-error {\n color: var(--nol-error);\n}\n"] });
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: UpdateItemComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{ selector: "nol-update-item", 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@switch (state().kind) {\n @case (kinds.Available) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"openAbout()\">\n <span class=\"material-symbols-rounded nol-update-item-icon\" aria-hidden=\"true\">{{ resources.updateAvailableGlyph }}</span>\n <span>{{ resources.moveToUpdateItem }}</span>\n </button>\n }\n @case (kinds.Ready) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"restart()\">\n <span class=\"material-symbols-rounded nol-update-item-icon\" aria-hidden=\"true\">{{ resources.restartToUpdateGlyph }}</span>\n <span>{{ resources.restartToUpdateLabel }}</span>\n </button>\n }\n @case (kinds.Failed) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"openAbout()\">\n <span class=\"material-symbols-rounded nol-update-item-icon nol-update-item-error\" aria-hidden=\"true\">{{ resources.updateFailedGlyph }}</span>\n <span>{{ resources.updateFailedItem }}</span>\n </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: flex;\n height: var(--nol-status-bar-item-height);\n}\n\n.nol-update-item {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-1);\n margin: 0;\n padding: 0 var(--nol-pill-padding);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background-color: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.nol-update-item:hover {\n background-color: var(--nol-toolbar-hover);\n}\n\n.nol-update-item:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n.nol-update-item-icon {\n font-size: var(--nol-icon);\n}\n\n.nol-update-item-error {\n color: var(--nol-error);\n}\n"] }]
|
|
31
|
+
}] });
|
|
32
|
+
//# sourceMappingURL=update-item.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-item.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/update-item/update-item.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/update-item/update-item.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAe,MAAM,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAOlD,MAAM,OAAO,mBAAmB;IACb,OAAO,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;IAE7C,SAAS,GAAqB,SAAS,CAAC;IACxC,KAAK,GAA2B,eAAe,CAAC;IAChD,KAAK,GAAwB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IAEzD,OAAO;QACf,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IAES,SAAS;QACjB,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;IAC3B,CAAC;uGAbU,mBAAmB;2FAAnB,mBAAmB,2ECrBhC,woCA4BA;;2FDPa,mBAAmB;kBAL/B,SAAS;+BACE,iBAAiB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "@noldova/context.core";
|
|
2
|
+
import { DialogSize } from "@noldova/ui.components.angular";
|
|
3
|
+
import { Resources } from "../../../resources.js";
|
|
4
|
+
import { TabLabelService } from "../../services/tab-label.service.js";
|
|
5
|
+
import { ViewDialogService } from "../../services/view-dialog.service.js";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ViewDialogComponent {
|
|
8
|
+
private readonly focusTraps;
|
|
9
|
+
private readonly slot;
|
|
10
|
+
protected readonly resources: typeof Resources;
|
|
11
|
+
protected readonly large: DialogSize;
|
|
12
|
+
protected readonly dialogs: ViewDialogService;
|
|
13
|
+
protected readonly labels: TabLabelService;
|
|
14
|
+
constructor();
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewDialogComponent, "nol-view-dialog", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|