@noldova/desktop.window 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +80 -2
- package/api/build.d.ts +13 -0
- package/api/build.js +10 -0
- package/api/build.js.map +1 -0
- package/api/index.d.ts +68 -0
- package/api/index.js +42 -0
- package/api/index.js.map +1 -0
- package/api/testing.d.ts +10 -0
- package/api/testing.js +11 -0
- package/api/testing.js.map +1 -0
- package/app/components/about/about.component.d.ts +50 -0
- package/app/components/about/about.component.js +125 -0
- package/app/components/about/about.component.js.map +1 -0
- package/app/components/dock/dock.component.d.ts +56 -0
- package/app/components/dock/dock.component.js +117 -0
- package/app/components/dock/dock.component.js.map +1 -0
- package/app/components/docking-guides/docking-guides.component.d.ts +35 -0
- package/app/components/docking-guides/docking-guides.component.js +61 -0
- package/app/components/docking-guides/docking-guides.component.js.map +1 -0
- package/app/components/empty-window/empty-window.component.d.ts +8 -0
- package/app/components/empty-window/empty-window.component.js +22 -0
- package/app/components/empty-window/empty-window.component.js.map +1 -0
- package/app/components/field-menu/field-menu.component.d.ts +30 -0
- package/app/components/field-menu/field-menu.component.js +92 -0
- package/app/components/field-menu/field-menu.component.js.map +1 -0
- package/app/components/highlighted-text/highlighted-text.component.d.ts +19 -0
- package/app/components/highlighted-text/highlighted-text.component.js +33 -0
- package/app/components/highlighted-text/highlighted-text.component.js.map +1 -0
- package/app/components/link-menu/link-menu.component.d.ts +22 -0
- package/app/components/link-menu/link-menu.component.js +46 -0
- package/app/components/link-menu/link-menu.component.js.map +1 -0
- package/app/components/module-actions/module-actions.component.d.ts +31 -0
- package/app/components/module-actions/module-actions.component.js +64 -0
- package/app/components/module-actions/module-actions.component.js.map +1 -0
- package/app/components/module-failure-card/module-failure-card.component.d.ts +17 -0
- package/app/components/module-failure-card/module-failure-card.component.js +24 -0
- package/app/components/module-failure-card/module-failure-card.component.js.map +1 -0
- package/app/components/module-failures/module-failures.component.d.ts +20 -0
- package/app/components/module-failures/module-failures.component.js +28 -0
- package/app/components/module-failures/module-failures.component.js.map +1 -0
- package/app/components/module-switch/module-switch.component.d.ts +22 -0
- package/app/components/module-switch/module-switch.component.js +40 -0
- package/app/components/module-switch/module-switch.component.js.map +1 -0
- package/app/components/modules/modules.component.d.ts +48 -0
- package/app/components/modules/modules.component.js +132 -0
- package/app/components/modules/modules.component.js.map +1 -0
- package/app/components/notifications/notifications.component.d.ts +23 -0
- package/app/components/notifications/notifications.component.js +35 -0
- package/app/components/notifications/notifications.component.js.map +1 -0
- package/app/components/notifications-popover/notifications-popover.component.d.ts +40 -0
- package/app/components/notifications-popover/notifications-popover.component.js +78 -0
- package/app/components/notifications-popover/notifications-popover.component.js.map +1 -0
- package/app/components/place-menu/place-menu.component.d.ts +27 -0
- package/app/components/place-menu/place-menu.component.js +40 -0
- package/app/components/place-menu/place-menu.component.js.map +1 -0
- package/app/components/placeholder-content/placeholder-content.component.d.ts +16 -0
- package/app/components/placeholder-content/placeholder-content.component.js +54 -0
- package/app/components/placeholder-content/placeholder-content.component.js.map +1 -0
- package/app/components/quit-dialog/quit-dialog.component.d.ts +17 -0
- package/app/components/quit-dialog/quit-dialog.component.js +38 -0
- package/app/components/quit-dialog/quit-dialog.component.js.map +1 -0
- package/app/components/runtime-status/runtime-status.component.d.ts +18 -0
- package/app/components/runtime-status/runtime-status.component.js +49 -0
- package/app/components/runtime-status/runtime-status.component.js.map +1 -0
- package/app/components/search-palette/search-palette.component.d.ts +35 -0
- package/app/components/search-palette/search-palette.component.js +66 -0
- package/app/components/search-palette/search-palette.component.js.map +1 -0
- package/app/components/setting-row/setting-row.component.d.ts +62 -0
- package/app/components/setting-row/setting-row.component.js +176 -0
- package/app/components/setting-row/setting-row.component.js.map +1 -0
- package/app/components/settings/settings.component.d.ts +84 -0
- package/app/components/settings/settings.component.js +273 -0
- package/app/components/settings/settings.component.js.map +1 -0
- package/app/components/settings-page-host/settings-page-host.component.d.ts +19 -0
- package/app/components/settings-page-host/settings-page-host.component.js +54 -0
- package/app/components/settings-page-host/settings-page-host.component.js.map +1 -0
- package/app/components/shortcuts/shortcuts.component.d.ts +59 -0
- package/app/components/shortcuts/shortcuts.component.js +175 -0
- package/app/components/shortcuts/shortcuts.component.js.map +1 -0
- package/app/components/split-sash/split-sash.component.d.ts +24 -0
- package/app/components/split-sash/split-sash.component.js +44 -0
- package/app/components/split-sash/split-sash.component.js.map +1 -0
- package/app/components/startup/startup.component.d.ts +25 -0
- package/app/components/startup/startup.component.js +33 -0
- package/app/components/startup/startup.component.js.map +1 -0
- package/app/components/status-bar/status-bar.component.d.ts +9 -0
- package/app/components/status-bar/status-bar.component.js +28 -0
- package/app/components/status-bar/status-bar.component.js.map +1 -0
- package/app/components/status-bar-item/status-bar-item.component.d.ts +23 -0
- package/app/components/status-bar-item/status-bar-item.component.js +39 -0
- package/app/components/status-bar-item/status-bar-item.component.js.map +1 -0
- package/app/components/tab-content/tab-content.component.d.ts +35 -0
- package/app/components/tab-content/tab-content.component.js +139 -0
- package/app/components/tab-content/tab-content.component.js.map +1 -0
- package/app/components/tab-group/tab-group.component.d.ts +54 -0
- package/app/components/tab-group/tab-group.component.js +176 -0
- package/app/components/tab-group/tab-group.component.js.map +1 -0
- package/app/components/tab-row-actions/tab-row-actions.component.d.ts +27 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js +37 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js.map +1 -0
- package/app/components/tab-slot/tab-slot.component.d.ts +35 -0
- package/app/components/tab-slot/tab-slot.component.js +70 -0
- package/app/components/tab-slot/tab-slot.component.js.map +1 -0
- package/app/components/toasts/toasts.component.d.ts +36 -0
- package/app/components/toasts/toasts.component.js +68 -0
- package/app/components/toasts/toasts.component.js.map +1 -0
- package/app/components/toolbar/toolbar.component.d.ts +49 -0
- package/app/components/toolbar/toolbar.component.js +129 -0
- package/app/components/toolbar/toolbar.component.js.map +1 -0
- package/app/components/toolbar-band/toolbar-band.component.d.ts +14 -0
- package/app/components/toolbar-band/toolbar-band.component.js +32 -0
- package/app/components/toolbar-band/toolbar-band.component.js.map +1 -0
- package/app/components/update-item/update-item.component.d.ts +22 -0
- package/app/components/update-item/update-item.component.js +32 -0
- package/app/components/update-item/update-item.component.js.map +1 -0
- package/app/components/view-dialog/view-dialog.component.d.ts +17 -0
- package/app/components/view-dialog/view-dialog.component.js +46 -0
- package/app/components/view-dialog/view-dialog.component.js.map +1 -0
- package/app/components/window/window.component.d.ts +30 -0
- package/app/components/window/window.component.js +107 -0
- package/app/components/window/window.component.js.map +1 -0
- package/app/components/window-controls/window-controls.component.d.ts +27 -0
- package/app/components/window-controls/window-controls.component.js +55 -0
- package/app/components/window-controls/window-controls.component.js.map +1 -0
- package/app/components/window-row/window-row.component.d.ts +78 -0
- package/app/components/window-row/window-row.component.js +260 -0
- package/app/components/window-row/window-row.component.js.map +1 -0
- package/app/components/workspace/workspace.component.d.ts +32 -0
- package/app/components/workspace/workspace.component.js +134 -0
- package/app/components/workspace/workspace.component.js.map +1 -0
- package/app/directives/keeps-ctrl-keys.directive.d.ts +31 -0
- package/app/directives/keeps-ctrl-keys.directive.js +21 -0
- package/app/directives/keeps-ctrl-keys.directive.js.map +1 -0
- package/app/directives/tab-scroller.directive.d.ts +29 -0
- package/app/directives/tab-scroller.directive.js +88 -0
- package/app/directives/tab-scroller.directive.js.map +1 -0
- package/app/enums/bottom-dock-span.d.ts +11 -0
- package/app/enums/bottom-dock-span.js +13 -0
- package/app/enums/bottom-dock-span.js.map +1 -0
- package/app/enums/clock-choice.d.ts +11 -0
- package/app/enums/clock-choice.js +13 -0
- package/app/enums/clock-choice.js.map +1 -0
- package/app/enums/content-padding.d.ts +28 -0
- package/app/enums/content-padding.js +13 -0
- package/app/enums/content-padding.js.map +1 -0
- package/app/enums/dock-side.d.ts +24 -0
- package/app/enums/dock-side.js +14 -0
- package/app/enums/dock-side.js.map +1 -0
- package/app/enums/dock-style.d.ts +11 -0
- package/app/enums/dock-style.js +13 -0
- package/app/enums/dock-style.js.map +1 -0
- package/app/enums/document-tone.d.ts +24 -0
- package/app/enums/document-tone.js +14 -0
- package/app/enums/document-tone.js.map +1 -0
- package/app/enums/file-save-outcome.d.ts +26 -0
- package/app/enums/file-save-outcome.js +14 -0
- package/app/enums/file-save-outcome.js.map +1 -0
- package/app/enums/link-place.d.ts +23 -0
- package/app/enums/link-place.js +13 -0
- package/app/enums/link-place.js.map +1 -0
- package/app/enums/menu-bar-style.d.ts +12 -0
- package/app/enums/menu-bar-style.js +14 -0
- package/app/enums/menu-bar-style.js.map +1 -0
- package/app/enums/menu-check.d.ts +12 -0
- package/app/enums/menu-check.js +14 -0
- package/app/enums/menu-check.js.map +1 -0
- package/app/enums/panel-edge.d.ts +13 -0
- package/app/enums/panel-edge.js +15 -0
- package/app/enums/panel-edge.js.map +1 -0
- package/app/enums/part-save-outcome.d.ts +12 -0
- package/app/enums/part-save-outcome.js +14 -0
- package/app/enums/part-save-outcome.js.map +1 -0
- package/app/enums/quit-choice.d.ts +12 -0
- package/app/enums/quit-choice.js +14 -0
- package/app/enums/quit-choice.js.map +1 -0
- package/app/enums/split-axis.d.ts +11 -0
- package/app/enums/split-axis.js +13 -0
- package/app/enums/split-axis.js.map +1 -0
- package/app/enums/startup-state-kind.d.ts +17 -0
- package/app/enums/startup-state-kind.js +19 -0
- package/app/enums/startup-state-kind.js.map +1 -0
- package/app/enums/status-bar-item-tone.d.ts +21 -0
- package/app/enums/status-bar-item-tone.js +13 -0
- package/app/enums/status-bar-item-tone.js.map +1 -0
- package/app/enums/status-bar-side.d.ts +20 -0
- package/app/enums/status-bar-side.js +13 -0
- package/app/enums/status-bar-side.js.map +1 -0
- package/app/enums/toolbar-move.d.ts +13 -0
- package/app/enums/toolbar-move.js +15 -0
- package/app/enums/toolbar-move.js.map +1 -0
- package/app/enums/top-bar-side.d.ts +21 -0
- package/app/enums/top-bar-side.js +13 -0
- package/app/enums/top-bar-side.js.map +1 -0
- package/app/enums/unconfirmed-action.d.ts +12 -0
- package/app/enums/unconfirmed-action.js +14 -0
- package/app/enums/unconfirmed-action.js.map +1 -0
- package/app/enums/update-action.d.ts +11 -0
- package/app/enums/update-action.js +13 -0
- package/app/enums/update-action.js.map +1 -0
- package/app/enums/update-state-kind.d.ts +16 -0
- package/app/enums/update-state-kind.js +18 -0
- package/app/enums/update-state-kind.js.map +1 -0
- package/app/enums/view-dialog-refusal.d.ts +11 -0
- package/app/enums/view-dialog-refusal.js +13 -0
- package/app/enums/view-dialog-refusal.js.map +1 -0
- package/app/enums/web-view-input-kind.d.ts +12 -0
- package/app/enums/web-view-input-kind.js +14 -0
- package/app/enums/web-view-input-kind.js.map +1 -0
- package/app/exceptions/action-not-confirmed.exception.d.ts +17 -0
- package/app/exceptions/action-not-confirmed.exception.js +36 -0
- package/app/exceptions/action-not-confirmed.exception.js.map +1 -0
- package/app/exceptions/command-already-registered.exception.d.ts +13 -0
- package/app/exceptions/command-already-registered.exception.js +18 -0
- package/app/exceptions/command-already-registered.exception.js.map +1 -0
- package/app/exceptions/command-not-declared.exception.d.ts +13 -0
- package/app/exceptions/command-not-declared.exception.js +18 -0
- package/app/exceptions/command-not-declared.exception.js.map +1 -0
- package/app/exceptions/command-not-found.exception.d.ts +13 -0
- package/app/exceptions/command-not-found.exception.js +18 -0
- package/app/exceptions/command-not-found.exception.js.map +1 -0
- package/app/exceptions/contribution-not-declared.exception.d.ts +14 -0
- package/app/exceptions/contribution-not-declared.exception.js +20 -0
- package/app/exceptions/contribution-not-declared.exception.js.map +1 -0
- package/app/exceptions/contribution-registered.exception.d.ts +14 -0
- package/app/exceptions/contribution-registered.exception.js +20 -0
- package/app/exceptions/contribution-registered.exception.js.map +1 -0
- package/app/exceptions/dependency-not-followed.exception.d.ts +12 -0
- package/app/exceptions/dependency-not-followed.exception.js +17 -0
- package/app/exceptions/dependency-not-followed.exception.js.map +1 -0
- package/app/exceptions/file-not-opened.exception.d.ts +13 -0
- package/app/exceptions/file-not-opened.exception.js +18 -0
- package/app/exceptions/file-not-opened.exception.js.map +1 -0
- package/app/exceptions/file-not-shown.exception.d.ts +13 -0
- package/app/exceptions/file-not-shown.exception.js +18 -0
- package/app/exceptions/file-not-shown.exception.js.map +1 -0
- package/app/exceptions/foreign-contribution.exception.d.ts +13 -0
- package/app/exceptions/foreign-contribution.exception.js +18 -0
- package/app/exceptions/foreign-contribution.exception.js.map +1 -0
- package/app/exceptions/foreign-name.exception.d.ts +13 -0
- package/app/exceptions/foreign-name.exception.js +18 -0
- package/app/exceptions/foreign-name.exception.js.map +1 -0
- package/app/exceptions/foreign-secret.exception.d.ts +13 -0
- package/app/exceptions/foreign-secret.exception.js +18 -0
- package/app/exceptions/foreign-secret.exception.js.map +1 -0
- package/app/exceptions/in-app-browser-taken.exception.d.ts +12 -0
- package/app/exceptions/in-app-browser-taken.exception.js +16 -0
- package/app/exceptions/in-app-browser-taken.exception.js.map +1 -0
- package/app/exceptions/link-not-opened.exception.d.ts +12 -0
- package/app/exceptions/link-not-opened.exception.js +16 -0
- package/app/exceptions/link-not-opened.exception.js.map +1 -0
- package/app/exceptions/placeholder-shown.exception.d.ts +14 -0
- package/app/exceptions/placeholder-shown.exception.js +20 -0
- package/app/exceptions/placeholder-shown.exception.js.map +1 -0
- package/app/exceptions/preload-bridge.exception.d.ts +12 -0
- package/app/exceptions/preload-bridge.exception.js +16 -0
- package/app/exceptions/preload-bridge.exception.js.map +1 -0
- package/app/exceptions/product-name.exception.d.ts +12 -0
- package/app/exceptions/product-name.exception.js +16 -0
- package/app/exceptions/product-name.exception.js.map +1 -0
- package/app/exceptions/runtime-disconnected.exception.d.ts +13 -0
- package/app/exceptions/runtime-disconnected.exception.js +25 -0
- package/app/exceptions/runtime-disconnected.exception.js.map +1 -0
- package/app/exceptions/runtime-request.exception.d.ts +15 -0
- package/app/exceptions/runtime-request.exception.js +19 -0
- package/app/exceptions/runtime-request.exception.js.map +1 -0
- package/app/exceptions/search-source-registered.exception.d.ts +13 -0
- package/app/exceptions/search-source-registered.exception.js +18 -0
- package/app/exceptions/search-source-registered.exception.js.map +1 -0
- package/app/exceptions/setting-options-failed.exception.d.ts +13 -0
- package/app/exceptions/setting-options-failed.exception.js +19 -0
- package/app/exceptions/setting-options-failed.exception.js.map +1 -0
- package/app/exceptions/setting-options-repeated.exception.d.ts +13 -0
- package/app/exceptions/setting-options-repeated.exception.js +18 -0
- package/app/exceptions/setting-options-repeated.exception.js.map +1 -0
- package/app/exceptions/settings-page-not-loaded.exception.d.ts +12 -0
- package/app/exceptions/settings-page-not-loaded.exception.js +17 -0
- package/app/exceptions/settings-page-not-loaded.exception.js.map +1 -0
- package/app/exceptions/view-dialog.exception.d.ts +15 -0
- package/app/exceptions/view-dialog.exception.js +27 -0
- package/app/exceptions/view-dialog.exception.js.map +1 -0
- package/app/exceptions/web-view-closed.exception.d.ts +12 -0
- package/app/exceptions/web-view-closed.exception.js +16 -0
- package/app/exceptions/web-view-closed.exception.js.map +1 -0
- package/app/exceptions/web-view-not-opened.exception.d.ts +12 -0
- package/app/exceptions/web-view-not-opened.exception.js +16 -0
- package/app/exceptions/web-view-not-opened.exception.js.map +1 -0
- package/app/exceptions/window-part-access.exception.d.ts +13 -0
- package/app/exceptions/window-part-access.exception.js +17 -0
- package/app/exceptions/window-part-access.exception.js.map +1 -0
- package/app/exceptions/window-part-activation-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-activation-failed.exception.js +17 -0
- package/app/exceptions/window-part-activation-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-failure.exception.d.ts +14 -0
- package/app/exceptions/window-part-failure.exception.js +17 -0
- package/app/exceptions/window-part-failure.exception.js.map +1 -0
- package/app/exceptions/window-part-load-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-load-failed.exception.js +17 -0
- package/app/exceptions/window-part-load-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-reconnection-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js +17 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-late.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-late.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-late.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed.exception.js +19 -0
- package/app/exceptions/window-part-save-failed.exception.js.map +1 -0
- package/app/exceptions/window.exception.d.ts +21 -0
- package/app/exceptions/window.exception.js +15 -0
- package/app/exceptions/window.exception.js.map +1 -0
- package/app/interfaces/i-command-key.d.ts +22 -0
- package/app/interfaces/i-command-key.js +8 -0
- package/app/interfaces/i-command-key.js.map +1 -0
- package/app/interfaces/i-document-contribution-options.d.ts +34 -0
- package/app/interfaces/i-document-contribution-options.js +8 -0
- package/app/interfaces/i-document-contribution-options.js.map +1 -0
- package/app/interfaces/i-document-marker.d.ts +23 -0
- package/app/interfaces/i-document-marker.js +8 -0
- package/app/interfaces/i-document-marker.js.map +1 -0
- package/app/interfaces/i-document-options.d.ts +79 -0
- package/app/interfaces/i-document-options.js +8 -0
- package/app/interfaces/i-document-options.js.map +1 -0
- package/app/interfaces/i-document-status.d.ts +28 -0
- package/app/interfaces/i-document-status.js +8 -0
- package/app/interfaces/i-document-status.js.map +1 -0
- package/app/interfaces/i-document-update.d.ts +58 -0
- package/app/interfaces/i-document-update.js +8 -0
- package/app/interfaces/i-document-update.js.map +1 -0
- package/app/interfaces/i-file-choice-options.d.ts +18 -0
- package/app/interfaces/i-file-choice-options.js +8 -0
- package/app/interfaces/i-file-choice-options.js.map +1 -0
- package/app/interfaces/i-file-grant-options.d.ts +17 -0
- package/app/interfaces/i-file-grant-options.js +8 -0
- package/app/interfaces/i-file-grant-options.js.map +1 -0
- package/app/interfaces/i-file-path-choice-options.d.ts +24 -0
- package/app/interfaces/i-file-path-choice-options.js +8 -0
- package/app/interfaces/i-file-path-choice-options.js.map +1 -0
- package/app/interfaces/i-in-app-browser.d.ts +36 -0
- package/app/interfaces/i-in-app-browser.js +8 -0
- package/app/interfaces/i-in-app-browser.js.map +1 -0
- package/app/interfaces/i-layout-store.d.ts +12 -0
- package/app/interfaces/i-layout-store.js +8 -0
- package/app/interfaces/i-layout-store.js.map +1 -0
- package/app/interfaces/i-link-open-options.d.ts +26 -0
- package/app/interfaces/i-link-open-options.js +8 -0
- package/app/interfaces/i-link-open-options.js.map +1 -0
- package/app/interfaces/i-module-saver.d.ts +10 -0
- package/app/interfaces/i-module-saver.js +8 -0
- package/app/interfaces/i-module-saver.js.map +1 -0
- package/app/interfaces/i-opened-web-view.d.ts +12 -0
- package/app/interfaces/i-opened-web-view.js +8 -0
- package/app/interfaces/i-opened-web-view.js.map +1 -0
- package/app/interfaces/i-preload-bridge.d.ts +79 -0
- package/app/interfaces/i-preload-bridge.js +8 -0
- package/app/interfaces/i-preload-bridge.js.map +1 -0
- package/app/interfaces/i-product-about.d.ts +38 -0
- package/app/interfaces/i-product-about.js +8 -0
- package/app/interfaces/i-product-about.js.map +1 -0
- package/app/interfaces/i-product-logo.d.ts +23 -0
- package/app/interfaces/i-product-logo.js +8 -0
- package/app/interfaces/i-product-logo.js.map +1 -0
- package/app/interfaces/i-selection-source.d.ts +24 -0
- package/app/interfaces/i-selection-source.js +8 -0
- package/app/interfaces/i-selection-source.js.map +1 -0
- package/app/interfaces/i-settings-page-declaration.d.ts +22 -0
- package/app/interfaces/i-settings-page-declaration.js +8 -0
- package/app/interfaces/i-settings-page-declaration.js.map +1 -0
- package/app/interfaces/i-settings-page-row.d.ts +12 -0
- package/app/interfaces/i-settings-page-row.js +8 -0
- package/app/interfaces/i-settings-page-row.js.map +1 -0
- package/app/interfaces/i-status-bar-item-options.d.ts +42 -0
- package/app/interfaces/i-status-bar-item-options.js +8 -0
- package/app/interfaces/i-status-bar-item-options.js.map +1 -0
- package/app/interfaces/i-top-bar-action-options.d.ts +21 -0
- package/app/interfaces/i-top-bar-action-options.js +8 -0
- package/app/interfaces/i-top-bar-action-options.js.map +1 -0
- package/app/interfaces/i-view-dialog-options.d.ts +22 -0
- package/app/interfaces/i-view-dialog-options.js +8 -0
- package/app/interfaces/i-view-dialog-options.js.map +1 -0
- package/app/interfaces/i-view-instance-options.d.ts +37 -0
- package/app/interfaces/i-view-instance-options.js +8 -0
- package/app/interfaces/i-view-instance-options.js.map +1 -0
- package/app/interfaces/i-view-options.d.ts +41 -0
- package/app/interfaces/i-view-options.js +8 -0
- package/app/interfaces/i-view-options.js.map +1 -0
- package/app/interfaces/i-view-update.d.ts +31 -0
- package/app/interfaces/i-view-update.js +8 -0
- package/app/interfaces/i-view-update.js.map +1 -0
- package/app/interfaces/i-web-view-find-options.d.ts +16 -0
- package/app/interfaces/i-web-view-find-options.js +8 -0
- package/app/interfaces/i-web-view-find-options.js.map +1 -0
- package/app/interfaces/i-web-view-found.d.ts +33 -0
- package/app/interfaces/i-web-view-found.js +8 -0
- package/app/interfaces/i-web-view-found.js.map +1 -0
- package/app/interfaces/i-web-view-guest.d.ts +15 -0
- package/app/interfaces/i-web-view-guest.js +8 -0
- package/app/interfaces/i-web-view-guest.js.map +1 -0
- package/app/interfaces/i-web-view-handle.d.ts +370 -0
- package/app/interfaces/i-web-view-handle.js +8 -0
- package/app/interfaces/i-web-view-handle.js.map +1 -0
- package/app/interfaces/i-web-view-input.d.ts +13 -0
- package/app/interfaces/i-web-view-input.js +8 -0
- package/app/interfaces/i-web-view-input.js.map +1 -0
- package/app/interfaces/i-web-view-layer.d.ts +29 -0
- package/app/interfaces/i-web-view-layer.js +8 -0
- package/app/interfaces/i-web-view-layer.js.map +1 -0
- package/app/interfaces/i-window-inputs.d.ts +72 -0
- package/app/interfaces/i-window-inputs.js +8 -0
- package/app/interfaces/i-window-inputs.js.map +1 -0
- package/app/interfaces/i-window-palette.d.ts +32 -0
- package/app/interfaces/i-window-palette.js +8 -0
- package/app/interfaces/i-window-palette.js.map +1 -0
- package/app/interfaces/i-window-part-context.d.ts +1654 -0
- package/app/interfaces/i-window-part-context.js +8 -0
- package/app/interfaces/i-window-part-context.js.map +1 -0
- package/app/interfaces/i-window-part-host.d.ts +91 -0
- package/app/interfaces/i-window-part-host.js +8 -0
- package/app/interfaces/i-window-part-host.js.map +1 -0
- package/app/interfaces/i-window-part.d.ts +160 -0
- package/app/interfaces/i-window-part.js +8 -0
- package/app/interfaces/i-window-part.js.map +1 -0
- package/app/interfaces/i-window-secrets.d.ts +69 -0
- package/app/interfaces/i-window-secrets.js +8 -0
- package/app/interfaces/i-window-secrets.js.map +1 -0
- package/app/interfaces/i-window-web-views.d.ts +39 -0
- package/app/interfaces/i-window-web-views.js +8 -0
- package/app/interfaces/i-window-web-views.js.map +1 -0
- package/app/models/appearance-preferences.d.ts +22 -0
- package/app/models/appearance-preferences.js +51 -0
- package/app/models/appearance-preferences.js.map +1 -0
- package/app/models/build-info.d.ts +13 -0
- package/app/models/build-info.js +22 -0
- package/app/models/build-info.js.map +1 -0
- package/app/models/build-tokens.d.ts +17 -0
- package/app/models/build-tokens.js +16 -0
- package/app/models/build-tokens.js.map +1 -0
- package/app/models/clipboard-image.d.ts +22 -0
- package/app/models/clipboard-image.js +128 -0
- package/app/models/clipboard-image.js.map +1 -0
- package/app/models/clipboard-image.resources.d.ts +43 -0
- package/app/models/clipboard-image.resources.js +44 -0
- package/app/models/clipboard-image.resources.js.map +1 -0
- package/app/models/command-contribution.d.ts +95 -0
- package/app/models/command-contribution.js +38 -0
- package/app/models/command-contribution.js.map +1 -0
- package/app/models/command-match.d.ts +13 -0
- package/app/models/command-match.js +17 -0
- package/app/models/command-match.js.map +1 -0
- package/app/models/command-matcher.d.ts +11 -0
- package/app/models/command-matcher.js +23 -0
- package/app/models/command-matcher.js.map +1 -0
- package/app/models/command-row.d.ts +20 -0
- package/app/models/command-row.js +27 -0
- package/app/models/command-row.js.map +1 -0
- package/app/models/command-search-entry.d.ts +15 -0
- package/app/models/command-search-entry.js +20 -0
- package/app/models/command-search-entry.js.map +1 -0
- package/app/models/content-padding-ref.d.ts +66 -0
- package/app/models/content-padding-ref.js +20 -0
- package/app/models/content-padding-ref.js.map +1 -0
- package/app/models/contribution-match.d.ts +16 -0
- package/app/models/contribution-match.js +18 -0
- package/app/models/contribution-match.js.map +1 -0
- package/app/models/document-contribution.d.ts +63 -0
- package/app/models/document-contribution.js +28 -0
- package/app/models/document-contribution.js.map +1 -0
- package/app/models/document-heading.d.ts +21 -0
- package/app/models/document-heading.js +50 -0
- package/app/models/document-heading.js.map +1 -0
- package/app/models/document-look.d.ts +27 -0
- package/app/models/document-look.js +66 -0
- package/app/models/document-look.js.map +1 -0
- package/app/models/edit-target.d.ts +22 -0
- package/app/models/edit-target.js +58 -0
- package/app/models/edit-target.js.map +1 -0
- package/app/models/field-menu-request.d.ts +19 -0
- package/app/models/field-menu-request.js +32 -0
- package/app/models/field-menu-request.js.map +1 -0
- package/app/models/gallery-tokens.d.ts +11 -0
- package/app/models/gallery-tokens.js +13 -0
- package/app/models/gallery-tokens.js.map +1 -0
- package/app/models/issued-file-grant.d.ts +45 -0
- package/app/models/issued-file-grant.js +20 -0
- package/app/models/issued-file-grant.js.map +1 -0
- package/app/models/issued-file-grants.d.ts +40 -0
- package/app/models/issued-file-grants.js +17 -0
- package/app/models/issued-file-grants.js.map +1 -0
- package/app/models/key-bindings.d.ts +24 -0
- package/app/models/key-bindings.js +66 -0
- package/app/models/key-bindings.js.map +1 -0
- package/app/models/layout/bounds.d.ts +24 -0
- package/app/models/layout/bounds.js +53 -0
- package/app/models/layout/bounds.js.map +1 -0
- package/app/models/layout/closed-tabs.d.ts +28 -0
- package/app/models/layout/closed-tabs.js +72 -0
- package/app/models/layout/closed-tabs.js.map +1 -0
- package/app/models/layout/dock-growth.d.ts +18 -0
- package/app/models/layout/dock-growth.js +27 -0
- package/app/models/layout/dock-growth.js.map +1 -0
- package/app/models/layout/dock-strip-icon.d.ts +17 -0
- package/app/models/layout/dock-strip-icon.js +20 -0
- package/app/models/layout/dock-strip-icon.js.map +1 -0
- package/app/models/layout/dock-yield.d.ts +15 -0
- package/app/models/layout/dock-yield.js +19 -0
- package/app/models/layout/dock-yield.js.map +1 -0
- package/app/models/layout/dock.d.ts +33 -0
- package/app/models/layout/dock.js +65 -0
- package/app/models/layout/dock.js.map +1 -0
- package/app/models/layout/docking-overlay.d.ts +20 -0
- package/app/models/layout/docking-overlay.js +52 -0
- package/app/models/layout/docking-overlay.js.map +1 -0
- package/app/models/layout/document-group.d.ts +22 -0
- package/app/models/layout/document-group.js +36 -0
- package/app/models/layout/document-group.js.map +1 -0
- package/app/models/layout/document-tab.d.ts +19 -0
- package/app/models/layout/document-tab.js +33 -0
- package/app/models/layout/document-tab.js.map +1 -0
- package/app/models/layout/drop-target.d.ts +16 -0
- package/app/models/layout/drop-target.js +10 -0
- package/app/models/layout/drop-target.js.map +1 -0
- package/app/models/layout/early-document.d.ts +14 -0
- package/app/models/layout/early-document.js +18 -0
- package/app/models/layout/early-document.js.map +1 -0
- package/app/models/layout/group-drop-target.d.ts +19 -0
- package/app/models/layout/group-drop-target.js +25 -0
- package/app/models/layout/group-drop-target.js.map +1 -0
- package/app/models/layout/group-frame.d.ts +16 -0
- package/app/models/layout/group-frame.js +18 -0
- package/app/models/layout/group-frame.js.map +1 -0
- package/app/models/layout/layout-fit.d.ts +25 -0
- package/app/models/layout/layout-fit.js +61 -0
- package/app/models/layout/layout-fit.js.map +1 -0
- package/app/models/layout/layout-geometry.d.ts +49 -0
- package/app/models/layout/layout-geometry.js +129 -0
- package/app/models/layout/layout-geometry.js.map +1 -0
- package/app/models/layout/layout-metrics.d.ts +21 -0
- package/app/models/layout/layout-metrics.js +39 -0
- package/app/models/layout/layout-metrics.js.map +1 -0
- package/app/models/layout/layout.d.ts +71 -0
- package/app/models/layout/layout.js +241 -0
- package/app/models/layout/layout.js.map +1 -0
- package/app/models/layout/layout.node.d.ts +33 -0
- package/app/models/layout/layout.node.js +18 -0
- package/app/models/layout/layout.node.js.map +1 -0
- package/app/models/layout/side-drop-target.d.ts +23 -0
- package/app/models/layout/side-drop-target.js +29 -0
- package/app/models/layout/side-drop-target.js.map +1 -0
- package/app/models/layout/split-drop-target.d.ts +21 -0
- package/app/models/layout/split-drop-target.js +27 -0
- package/app/models/layout/split-drop-target.js.map +1 -0
- package/app/models/layout/split-handle.d.ts +22 -0
- package/app/models/layout/split-handle.js +43 -0
- package/app/models/layout/split-handle.js.map +1 -0
- package/app/models/layout/split-part.d.ts +13 -0
- package/app/models/layout/split-part.js +16 -0
- package/app/models/layout/split-part.js.map +1 -0
- package/app/models/layout/split.node.d.ts +42 -0
- package/app/models/layout/split.node.js +119 -0
- package/app/models/layout/split.node.js.map +1 -0
- package/app/models/layout/tab-drop-target.d.ts +18 -0
- package/app/models/layout/tab-drop-target.js +27 -0
- package/app/models/layout/tab-drop-target.js.map +1 -0
- package/app/models/layout/tab-group.d.ts +46 -0
- package/app/models/layout/tab-group.js +134 -0
- package/app/models/layout/tab-group.js.map +1 -0
- package/app/models/layout/tab-key.d.ts +12 -0
- package/app/models/layout/tab-key.js +22 -0
- package/app/models/layout/tab-key.js.map +1 -0
- package/app/models/layout/tab-label.d.ts +12 -0
- package/app/models/layout/tab-label.js +20 -0
- package/app/models/layout/tab-label.js.map +1 -0
- package/app/models/layout/tab-reveal.d.ts +13 -0
- package/app/models/layout/tab-reveal.js +16 -0
- package/app/models/layout/tab-reveal.js.map +1 -0
- package/app/models/layout/tab.d.ts +24 -0
- package/app/models/layout/tab.js +34 -0
- package/app/models/layout/tab.js.map +1 -0
- package/app/models/layout/toolbar-layout.d.ts +28 -0
- package/app/models/layout/toolbar-layout.js +116 -0
- package/app/models/layout/toolbar-layout.js.map +1 -0
- package/app/models/layout/view-registry.d.ts +24 -0
- package/app/models/layout/view-registry.js +58 -0
- package/app/models/layout/view-registry.js.map +1 -0
- package/app/models/layout/view-tab.d.ts +19 -0
- package/app/models/layout/view-tab.js +33 -0
- package/app/models/layout/view-tab.js.map +1 -0
- package/app/models/layout/view-type.d.ts +17 -0
- package/app/models/layout/view-type.js +28 -0
- package/app/models/layout/view-type.js.map +1 -0
- package/app/models/live-view.d.ts +37 -0
- package/app/models/live-view.js +110 -0
- package/app/models/live-view.js.map +1 -0
- package/app/models/menu-declarations.d.ts +20 -0
- package/app/models/menu-declarations.js +50 -0
- package/app/models/menu-declarations.js.map +1 -0
- package/app/models/menu-group.d.ts +17 -0
- package/app/models/menu-group.js +32 -0
- package/app/models/menu-group.js.map +1 -0
- package/app/models/menu-item.d.ts +20 -0
- package/app/models/menu-item.js +40 -0
- package/app/models/menu-item.js.map +1 -0
- package/app/models/menu-place.d.ts +16 -0
- package/app/models/menu-place.js +28 -0
- package/app/models/menu-place.js.map +1 -0
- package/app/models/menu-row-contribution.d.ts +52 -0
- package/app/models/menu-row-contribution.js +27 -0
- package/app/models/menu-row-contribution.js.map +1 -0
- package/app/models/menu-row.d.ts +12 -0
- package/app/models/menu-row.js +16 -0
- package/app/models/menu-row.js.map +1 -0
- package/app/models/menu-search-row.d.ts +14 -0
- package/app/models/menu-search-row.js +20 -0
- package/app/models/menu-search-row.js.map +1 -0
- package/app/models/menu-section.d.ts +14 -0
- package/app/models/menu-section.js +16 -0
- package/app/models/menu-section.js.map +1 -0
- package/app/models/module-failure.d.ts +20 -0
- package/app/models/module-failure.js +35 -0
- package/app/models/module-failure.js.map +1 -0
- package/app/models/module-switch-tokens.d.ts +12 -0
- package/app/models/module-switch-tokens.js +13 -0
- package/app/models/module-switch-tokens.js.map +1 -0
- package/app/models/modules/contribution-group.d.ts +14 -0
- package/app/models/modules/contribution-group.js +18 -0
- package/app/models/modules/contribution-group.js.map +1 -0
- package/app/models/modules/contribution-row.d.ts +12 -0
- package/app/models/modules/contribution-row.js +16 -0
- package/app/models/modules/contribution-row.js.map +1 -0
- package/app/models/modules/module-overview.d.ts +21 -0
- package/app/models/modules/module-overview.js +41 -0
- package/app/models/modules/module-overview.js.map +1 -0
- package/app/models/modules/module-reference.d.ts +13 -0
- package/app/models/modules/module-reference.js +16 -0
- package/app/models/modules/module-reference.js.map +1 -0
- package/app/models/modules/program-row.d.ts +17 -0
- package/app/models/modules/program-row.js +28 -0
- package/app/models/modules/program-row.js.map +1 -0
- package/app/models/notification-handle.d.ts +45 -0
- package/app/models/notification-handle.js +19 -0
- package/app/models/notification-handle.js.map +1 -0
- package/app/models/pending-document.d.ts +21 -0
- package/app/models/pending-document.js +35 -0
- package/app/models/pending-document.js.map +1 -0
- package/app/models/pending-view-change.d.ts +14 -0
- package/app/models/pending-view-change.js +20 -0
- package/app/models/pending-view-change.js.map +1 -0
- package/app/models/placeholder-contribution.d.ts +49 -0
- package/app/models/placeholder-contribution.js +22 -0
- package/app/models/placeholder-contribution.js.map +1 -0
- package/app/models/product-name.d.ts +13 -0
- package/app/models/product-name.js +18 -0
- package/app/models/product-name.js.map +1 -0
- package/app/models/quit-question.d.ts +16 -0
- package/app/models/quit-question.js +30 -0
- package/app/models/quit-question.js.map +1 -0
- package/app/models/scroll-offset.d.ts +15 -0
- package/app/models/scroll-offset.js +25 -0
- package/app/models/scroll-offset.js.map +1 -0
- package/app/models/search-answer.d.ts +39 -0
- package/app/models/search-answer.js +20 -0
- package/app/models/search-answer.js.map +1 -0
- package/app/models/search-filter.d.ts +14 -0
- package/app/models/search-filter.js +20 -0
- package/app/models/search-filter.js.map +1 -0
- package/app/models/search-group.d.ts +14 -0
- package/app/models/search-group.js +18 -0
- package/app/models/search-group.js.map +1 -0
- package/app/models/search-query.d.ts +17 -0
- package/app/models/search-query.js +30 -0
- package/app/models/search-query.js.map +1 -0
- package/app/models/search-rank.d.ts +14 -0
- package/app/models/search-rank.js +32 -0
- package/app/models/search-rank.js.map +1 -0
- package/app/models/search-request.d.ts +15 -0
- package/app/models/search-request.js +20 -0
- package/app/models/search-request.js.map +1 -0
- package/app/models/search-result.d.ts +65 -0
- package/app/models/search-result.js +38 -0
- package/app/models/search-result.js.map +1 -0
- package/app/models/search-row.d.ts +15 -0
- package/app/models/search-row.js +20 -0
- package/app/models/search-row.js.map +1 -0
- package/app/models/search-session.d.ts +42 -0
- package/app/models/search-session.js +161 -0
- package/app/models/search-session.js.map +1 -0
- package/app/models/search-source-contribution.d.ts +75 -0
- package/app/models/search-source-contribution.js +38 -0
- package/app/models/search-source-contribution.js.map +1 -0
- package/app/models/settings/setting-options-supply.d.ts +18 -0
- package/app/models/settings/setting-options-supply.js +46 -0
- package/app/models/settings/setting-options-supply.js.map +1 -0
- package/app/models/settings/settings-group.d.ts +13 -0
- package/app/models/settings/settings-group.js +16 -0
- package/app/models/settings/settings-group.js.map +1 -0
- package/app/models/settings/settings-page-entry.d.ts +22 -0
- package/app/models/settings/settings-page-entry.js +30 -0
- package/app/models/settings/settings-page-entry.js.map +1 -0
- package/app/models/settings/settings-page.d.ts +26 -0
- package/app/models/settings/settings-page.js +62 -0
- package/app/models/settings/settings-page.js.map +1 -0
- package/app/models/settings/settings-row.d.ts +42 -0
- package/app/models/settings/settings-row.js +24 -0
- package/app/models/settings/settings-row.js.map +1 -0
- package/app/models/settings/shortcut-notice.d.ts +15 -0
- package/app/models/settings/shortcut-notice.js +20 -0
- package/app/models/settings/shortcut-notice.js.map +1 -0
- package/app/models/settings/shortcut-row.d.ts +17 -0
- package/app/models/settings/shortcut-row.js +26 -0
- package/app/models/settings/shortcut-row.js.map +1 -0
- package/app/models/settings/text-match.d.ts +16 -0
- package/app/models/settings/text-match.js +41 -0
- package/app/models/settings/text-match.js.map +1 -0
- package/app/models/settings/word-breaks.d.ts +13 -0
- package/app/models/settings/word-breaks.js +34 -0
- package/app/models/settings/word-breaks.js.map +1 -0
- package/app/models/settings-page-contribution.d.ts +46 -0
- package/app/models/settings-page-contribution.js +20 -0
- package/app/models/settings-page-contribution.js.map +1 -0
- package/app/models/shell-documents.d.ts +21 -0
- package/app/models/shell-documents.js +25 -0
- package/app/models/shell-documents.js.map +1 -0
- package/app/models/shell-menus.d.ts +16 -0
- package/app/models/shell-menus.js +97 -0
- package/app/models/shell-menus.js.map +1 -0
- package/app/models/shortcut-binding.d.ts +13 -0
- package/app/models/shortcut-binding.js +16 -0
- package/app/models/shortcut-binding.js.map +1 -0
- package/app/models/shortcut-collision.d.ts +14 -0
- package/app/models/shortcut-collision.js +18 -0
- package/app/models/shortcut-collision.js.map +1 -0
- package/app/models/shortcut-map.d.ts +27 -0
- package/app/models/shortcut-map.js +64 -0
- package/app/models/shortcut-map.js.map +1 -0
- package/app/models/spelling-offer.d.ts +15 -0
- package/app/models/spelling-offer.js +24 -0
- package/app/models/spelling-offer.js.map +1 -0
- package/app/models/startup-state.d.ts +17 -0
- package/app/models/startup-state.js +35 -0
- package/app/models/startup-state.js.map +1 -0
- package/app/models/status-bar-item-contribution.d.ts +45 -0
- package/app/models/status-bar-item-contribution.js +20 -0
- package/app/models/status-bar-item-contribution.js.map +1 -0
- package/app/models/status-bar-item-state.d.ts +82 -0
- package/app/models/status-bar-item-state.js +43 -0
- package/app/models/status-bar-item-state.js.map +1 -0
- package/app/models/status-bar-item.d.ts +62 -0
- package/app/models/status-bar-item.js +29 -0
- package/app/models/status-bar-item.js.map +1 -0
- package/app/models/submenu-row.d.ts +15 -0
- package/app/models/submenu-row.js +19 -0
- package/app/models/submenu-row.js.map +1 -0
- package/app/models/tab-content.d.ts +18 -0
- package/app/models/tab-content.js +22 -0
- package/app/models/tab-content.js.map +1 -0
- package/app/models/tab-target.d.ts +19 -0
- package/app/models/tab-target.js +30 -0
- package/app/models/tab-target.js.map +1 -0
- package/app/models/text-range.d.ts +40 -0
- package/app/models/text-range.js +25 -0
- package/app/models/text-range.js.map +1 -0
- package/app/models/toolbar-drop-target.d.ts +17 -0
- package/app/models/toolbar-drop-target.js +28 -0
- package/app/models/toolbar-drop-target.js.map +1 -0
- package/app/models/toolbar-fit.d.ts +10 -0
- package/app/models/toolbar-fit.js +17 -0
- package/app/models/toolbar-fit.js.map +1 -0
- package/app/models/toolbar-placement.d.ts +14 -0
- package/app/models/toolbar-placement.js +24 -0
- package/app/models/toolbar-placement.js.map +1 -0
- package/app/models/toolbar.d.ts +14 -0
- package/app/models/toolbar.js +18 -0
- package/app/models/toolbar.js.map +1 -0
- package/app/models/top-bar-action-contribution.d.ts +44 -0
- package/app/models/top-bar-action-contribution.js +21 -0
- package/app/models/top-bar-action-contribution.js.map +1 -0
- package/app/models/top-bar-action-state.d.ts +51 -0
- package/app/models/top-bar-action-state.js +27 -0
- package/app/models/top-bar-action-state.js.map +1 -0
- package/app/models/top-bar-action.d.ts +62 -0
- package/app/models/top-bar-action.js +29 -0
- package/app/models/top-bar-action.js.map +1 -0
- package/app/models/update-state.d.ts +23 -0
- package/app/models/update-state.js +56 -0
- package/app/models/update-state.js.map +1 -0
- package/app/models/view-badge.d.ts +37 -0
- package/app/models/view-badge.js +22 -0
- package/app/models/view-badge.js.map +1 -0
- package/app/models/view-contribution.d.ts +91 -0
- package/app/models/view-contribution.js +42 -0
- package/app/models/view-contribution.js.map +1 -0
- package/app/models/web-view-handle.d.ts +59 -0
- package/app/models/web-view-handle.js +121 -0
- package/app/models/web-view-handle.js.map +1 -0
- package/app/models/web-view-layer.d.ts +20 -0
- package/app/models/web-view-layer.js +45 -0
- package/app/models/web-view-layer.js.map +1 -0
- package/app/models/window-appearance.d.ts +18 -0
- package/app/models/window-appearance.js +61 -0
- package/app/models/window-appearance.js.map +1 -0
- package/app/models/window-application.d.ts +32 -0
- package/app/models/window-application.js +45 -0
- package/app/models/window-application.js.map +1 -0
- package/app/models/window-palette.d.ts +18 -0
- package/app/models/window-palette.js +26 -0
- package/app/models/window-palette.js.map +1 -0
- package/app/models/window-part-activation.d.ts +16 -0
- package/app/models/window-part-activation.js +18 -0
- package/app/models/window-part-activation.js.map +1 -0
- package/app/models/window-part-context.d.ts +174 -0
- package/app/models/window-part-context.js +716 -0
- package/app/models/window-part-context.js.map +1 -0
- package/app/models/window-part-source.d.ts +95 -0
- package/app/models/window-part-source.js +40 -0
- package/app/models/window-part-source.js.map +1 -0
- package/app/models/window-part-tokens.d.ts +32 -0
- package/app/models/window-part-tokens.js +15 -0
- package/app/models/window-part-tokens.js.map +1 -0
- package/app/models/window-secrets.d.ts +18 -0
- package/app/models/window-secrets.js +33 -0
- package/app/models/window-secrets.js.map +1 -0
- package/app/models/window-web-views.d.ts +18 -0
- package/app/models/window-web-views.js +34 -0
- package/app/models/window-web-views.js.map +1 -0
- package/app/services/agent-control.service.d.ts +24 -0
- package/app/services/agent-control.service.js +58 -0
- package/app/services/agent-control.service.js.map +1 -0
- package/app/services/appearance-settings.service.d.ts +12 -0
- package/app/services/appearance-settings.service.js +50 -0
- package/app/services/appearance-settings.service.js.map +1 -0
- package/app/services/bar-items.service.d.ts +22 -0
- package/app/services/bar-items.service.js +36 -0
- package/app/services/bar-items.service.js.map +1 -0
- package/app/services/clock-setting.service.d.ts +26 -0
- package/app/services/clock-setting.service.js +43 -0
- package/app/services/clock-setting.service.js.map +1 -0
- package/app/services/closing.service.d.ts +19 -0
- package/app/services/closing.service.js +99 -0
- package/app/services/closing.service.js.map +1 -0
- package/app/services/command.service.d.ts +51 -0
- package/app/services/command.service.js +178 -0
- package/app/services/command.service.js.map +1 -0
- package/app/services/details.service.d.ts +8 -0
- package/app/services/details.service.js +28 -0
- package/app/services/details.service.js.map +1 -0
- package/app/services/dialog-cover.service.d.ts +32 -0
- package/app/services/dialog-cover.service.js +102 -0
- package/app/services/dialog-cover.service.js.map +1 -0
- package/app/services/dock-growth.service.d.ts +15 -0
- package/app/services/dock-growth.service.js +63 -0
- package/app/services/dock-growth.service.js.map +1 -0
- package/app/services/document-history.service.d.ts +24 -0
- package/app/services/document-history.service.js +68 -0
- package/app/services/document-history.service.js.map +1 -0
- package/app/services/document-instances.service.d.ts +15 -0
- package/app/services/document-instances.service.js +47 -0
- package/app/services/document-instances.service.js.map +1 -0
- package/app/services/document-opener.service.d.ts +18 -0
- package/app/services/document-opener.service.js +75 -0
- package/app/services/document-opener.service.js.map +1 -0
- package/app/services/edit-target.service.d.ts +23 -0
- package/app/services/edit-target.service.js +93 -0
- package/app/services/edit-target.service.js.map +1 -0
- package/app/services/issued-file-grants.reader.d.ts +13 -0
- package/app/services/issued-file-grants.reader.js +24 -0
- package/app/services/issued-file-grants.reader.js.map +1 -0
- package/app/services/layout-menu.service.d.ts +9 -0
- package/app/services/layout-menu.service.js +32 -0
- package/app/services/layout-menu.service.js.map +1 -0
- package/app/services/layout-store.service.d.ts +10 -0
- package/app/services/layout-store.service.js +35 -0
- package/app/services/layout-store.service.js.map +1 -0
- package/app/services/layout.reader.d.ts +23 -0
- package/app/services/layout.reader.js +113 -0
- package/app/services/layout.reader.js.map +1 -0
- package/app/services/layout.service.d.ts +98 -0
- package/app/services/layout.service.js +309 -0
- package/app/services/layout.service.js.map +1 -0
- package/app/services/link.service.d.ts +34 -0
- package/app/services/link.service.js +116 -0
- package/app/services/link.service.js.map +1 -0
- package/app/services/live-view.service.d.ts +38 -0
- package/app/services/live-view.service.js +130 -0
- package/app/services/live-view.service.js.map +1 -0
- package/app/services/menu-bar.service.d.ts +28 -0
- package/app/services/menu-bar.service.js +89 -0
- package/app/services/menu-bar.service.js.map +1 -0
- package/app/services/menu.service.d.ts +34 -0
- package/app/services/menu.service.js +96 -0
- package/app/services/menu.service.js.map +1 -0
- package/app/services/module-selection.service.d.ts +18 -0
- package/app/services/module-selection.service.js +31 -0
- package/app/services/module-selection.service.js.map +1 -0
- package/app/services/module-status.service.d.ts +22 -0
- package/app/services/module-status.service.js +39 -0
- package/app/services/module-status.service.js.map +1 -0
- package/app/services/module-switch.service.d.ts +16 -0
- package/app/services/module-switch.service.js +56 -0
- package/app/services/module-switch.service.js.map +1 -0
- package/app/services/notification.service.d.ts +38 -0
- package/app/services/notification.service.js +103 -0
- package/app/services/notification.service.js.map +1 -0
- package/app/services/preload-bridge.service.d.ts +114 -0
- package/app/services/preload-bridge.service.js +495 -0
- package/app/services/preload-bridge.service.js.map +1 -0
- package/app/services/program-status.service.d.ts +27 -0
- package/app/services/program-status.service.js +75 -0
- package/app/services/program-status.service.js.map +1 -0
- package/app/services/quit.service.d.ts +17 -0
- package/app/services/quit.service.js +37 -0
- package/app/services/quit.service.js.map +1 -0
- package/app/services/recent-commands.service.d.ts +24 -0
- package/app/services/recent-commands.service.js +63 -0
- package/app/services/recent-commands.service.js.map +1 -0
- package/app/services/search-palette.service.d.ts +20 -0
- package/app/services/search-palette.service.js +66 -0
- package/app/services/search-palette.service.js.map +1 -0
- package/app/services/search.service.d.ts +20 -0
- package/app/services/search.service.js +40 -0
- package/app/services/search.service.js.map +1 -0
- package/app/services/setting-check.service.d.ts +10 -0
- package/app/services/setting-check.service.js +32 -0
- package/app/services/setting-check.service.js.map +1 -0
- package/app/services/setting-options.service.d.ts +14 -0
- package/app/services/setting-options.service.js +38 -0
- package/app/services/setting-options.service.js.map +1 -0
- package/app/services/settings-page.service.d.ts +19 -0
- package/app/services/settings-page.service.js +35 -0
- package/app/services/settings-page.service.js.map +1 -0
- package/app/services/settings-rows.service.d.ts +17 -0
- package/app/services/settings-rows.service.js +29 -0
- package/app/services/settings-rows.service.js.map +1 -0
- package/app/services/settings.service.d.ts +38 -0
- package/app/services/settings.service.js +104 -0
- package/app/services/settings.service.js.map +1 -0
- package/app/services/shell-commands.service.d.ts +61 -0
- package/app/services/shell-commands.service.js +346 -0
- package/app/services/shell-commands.service.js.map +1 -0
- package/app/services/shell-search-sources.service.d.ts +35 -0
- package/app/services/shell-search-sources.service.js +103 -0
- package/app/services/shell-search-sources.service.js.map +1 -0
- package/app/services/spelling.service.d.ts +26 -0
- package/app/services/spelling.service.js +75 -0
- package/app/services/spelling.service.js.map +1 -0
- package/app/services/startup.service.d.ts +19 -0
- package/app/services/startup.service.js +62 -0
- package/app/services/startup.service.js.map +1 -0
- package/app/services/support.service.d.ts +18 -0
- package/app/services/support.service.js +79 -0
- package/app/services/support.service.js.map +1 -0
- package/app/services/tab-destinations.service.d.ts +10 -0
- package/app/services/tab-destinations.service.js +41 -0
- package/app/services/tab-destinations.service.js.map +1 -0
- package/app/services/tab-drag.service.d.ts +33 -0
- package/app/services/tab-drag.service.js +138 -0
- package/app/services/tab-drag.service.js.map +1 -0
- package/app/services/tab-focus.service.d.ts +24 -0
- package/app/services/tab-focus.service.js +93 -0
- package/app/services/tab-focus.service.js.map +1 -0
- package/app/services/tab-label.service.d.ts +37 -0
- package/app/services/tab-label.service.js +104 -0
- package/app/services/tab-label.service.js.map +1 -0
- package/app/services/tab-rename.service.d.ts +30 -0
- package/app/services/tab-rename.service.js +82 -0
- package/app/services/tab-rename.service.js.map +1 -0
- package/app/services/tab-row.service.d.ts +16 -0
- package/app/services/tab-row.service.js +50 -0
- package/app/services/tab-row.service.js.map +1 -0
- package/app/services/tab-strip.service.d.ts +11 -0
- package/app/services/tab-strip.service.js +44 -0
- package/app/services/tab-strip.service.js.map +1 -0
- package/app/services/time-formats.service.d.ts +20 -0
- package/app/services/time-formats.service.js +40 -0
- package/app/services/time-formats.service.js.map +1 -0
- package/app/services/toast.service.d.ts +31 -0
- package/app/services/toast.service.js +143 -0
- package/app/services/toast.service.js.map +1 -0
- package/app/services/toolbar-drag.service.d.ts +21 -0
- package/app/services/toolbar-drag.service.js +105 -0
- package/app/services/toolbar-drag.service.js.map +1 -0
- package/app/services/toolbar.service.d.ts +34 -0
- package/app/services/toolbar.service.js +89 -0
- package/app/services/toolbar.service.js.map +1 -0
- package/app/services/update.service.d.ts +25 -0
- package/app/services/update.service.js +47 -0
- package/app/services/update.service.js.map +1 -0
- package/app/services/view-dialog.service.d.ts +28 -0
- package/app/services/view-dialog.service.js +113 -0
- package/app/services/view-dialog.service.js.map +1 -0
- package/app/services/view-instances.service.d.ts +37 -0
- package/app/services/view-instances.service.js +132 -0
- package/app/services/view-instances.service.js.map +1 -0
- package/app/services/web-view.service.d.ts +56 -0
- package/app/services/web-view.service.js +302 -0
- package/app/services/web-view.service.js.map +1 -0
- package/app/services/window-error-handler.d.ts +18 -0
- package/app/services/window-error-handler.js +43 -0
- package/app/services/window-error-handler.js.map +1 -0
- package/app/services/window-part-host.service.d.ts +201 -0
- package/app/services/window-part-host.service.js +796 -0
- package/app/services/window-part-host.service.js.map +1 -0
- package/app/services/window-row-overlay.service.d.ts +15 -0
- package/app/services/window-row-overlay.service.js +79 -0
- package/app/services/window-row-overlay.service.js.map +1 -0
- package/package.json +49 -3
- package/resources.d.ts +1042 -0
- package/resources.js +1454 -0
- package/resources.js.map +1 -0
- package/testing/models/fake-window-part-context.d.ts +1422 -0
- package/testing/models/fake-window-part-context.js +110 -0
- package/testing/models/fake-window-part-context.js.map +1 -0
- package/testing/models/fake-window-secrets.d.ts +109 -0
- package/testing/models/fake-window-secrets.js +14 -0
- package/testing/models/fake-window-secrets.js.map +1 -0
- package/testing/models/fake-window-web-views.d.ts +66 -0
- package/testing/models/fake-window-web-views.js +12 -0
- package/testing/models/fake-window-web-views.js.map +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Component, computed, inject } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { OverlaySide, PopoverTriggerDirective, TooltipDirective } from "@noldova/ui.components.angular";
|
|
11
|
+
import { NotificationService } from "../../services/notification.service.js";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import { NotificationsPopoverComponent } from "../notifications-popover/notifications-popover.component.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class NotificationsComponent {
|
|
16
|
+
notifications = inject(NotificationService);
|
|
17
|
+
resources = Resources;
|
|
18
|
+
above = OverlaySide.above;
|
|
19
|
+
unread = this.notifications.unreadCount;
|
|
20
|
+
isQuiet = computed(() => this.notifications.state().isDoNotDisturb, /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "isQuiet" }] : /* istanbul ignore next */ []));
|
|
22
|
+
label = computed(() => Resources.formatNotificationsLabel(this.unread(), this.isQuiet()), /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
24
|
+
markRead() {
|
|
25
|
+
if (this.unread() > 0)
|
|
26
|
+
this.notifications.markAllRead();
|
|
27
|
+
}
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: NotificationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: NotificationsComponent, isStandalone: true, selector: "nol-notifications", 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<button #trigger=\"nolPopoverTrigger\" type=\"button\" class=\"nol-notifications-item\" [class.nol-notifications-counted]=\"unread() > 0\" [attr.aria-label]=\"label()\" [nolTooltip]=\"label()\" [nolTooltipSide]=\"above\" [nolPopoverTrigger]=\"popover\" (opened)=\"markRead()\">\n <span class=\"material-symbols-rounded nol-notifications-icon\" aria-hidden=\"true\">{{ isQuiet() ? resources.notificationsOffGlyph : resources.notificationsGlyph }}</span>\n @if (unread() > 0) {\n <span class=\"nol-notifications-count\" aria-hidden=\"true\">{{ resources.formatUnreadCount(unread()) }}</span>\n }\n</button>\n<ng-template #popover>\n <nol-notifications-popover [label]=\"resources.notificationsTitle\" (closed)=\"trigger.close()\" />\n</ng-template>\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-notifications-item {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--nol-space-1);\n box-sizing: border-box;\n width: var(--nol-status-bar-item-height);\n margin: 0;\n padding: 0;\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-notifications-counted {\n width: auto;\n padding: 0 var(--nol-pill-padding);\n}\n\n.nol-notifications-item:hover {\n background-color: var(--nol-toolbar-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-notifications-item: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-notifications-icon {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n}\n"], dependencies: [{ kind: "component", type: NotificationsPopoverComponent, selector: "nol-notifications-popover", outputs: ["closed"] }, { kind: "directive", type: PopoverTriggerDirective, selector: "[nolPopoverTrigger]", inputs: ["nolPopoverTrigger", "nolPopoverSide", "nolPopoverAlignment"], outputs: ["opened"], exportAs: ["nolPopoverTrigger"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: NotificationsComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{ selector: "nol-notifications", imports: [NotificationsPopoverComponent, PopoverTriggerDirective, 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<button #trigger=\"nolPopoverTrigger\" type=\"button\" class=\"nol-notifications-item\" [class.nol-notifications-counted]=\"unread() > 0\" [attr.aria-label]=\"label()\" [nolTooltip]=\"label()\" [nolTooltipSide]=\"above\" [nolPopoverTrigger]=\"popover\" (opened)=\"markRead()\">\n <span class=\"material-symbols-rounded nol-notifications-icon\" aria-hidden=\"true\">{{ isQuiet() ? resources.notificationsOffGlyph : resources.notificationsGlyph }}</span>\n @if (unread() > 0) {\n <span class=\"nol-notifications-count\" aria-hidden=\"true\">{{ resources.formatUnreadCount(unread()) }}</span>\n }\n</button>\n<ng-template #popover>\n <nol-notifications-popover [label]=\"resources.notificationsTitle\" (closed)=\"trigger.close()\" />\n</ng-template>\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-notifications-item {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--nol-space-1);\n box-sizing: border-box;\n width: var(--nol-status-bar-item-height);\n margin: 0;\n padding: 0;\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-notifications-counted {\n width: auto;\n padding: 0 var(--nol-pill-padding);\n}\n\n.nol-notifications-item:hover {\n background-color: var(--nol-toolbar-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-notifications-item: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-notifications-icon {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n}\n"] }]
|
|
34
|
+
}] });
|
|
35
|
+
//# sourceMappingURL=notifications.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/notifications/notifications.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/notifications/notifications.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAExG,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;;AAQ5G,MAAM,OAAO,sBAAsB;IAChB,aAAa,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAE/D,SAAS,GAAqB,SAAS,CAAC;IACxC,KAAK,GAAgB,WAAW,CAAC,KAAK,CAAC;IACvC,MAAM,GAAmB,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;IACxD,OAAO,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,cAAc;gFAAC,CAAC;IACrF,KAAK,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;8EAAC,CAAC;IAEnH,QAAQ;QAChB,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;IACrC,CAAC;uGAZU,sBAAsB;2FAAtB,sBAAsB,6ECvBnC,45BAiBA,y3CDEY,6BAA6B,2FAAE,uBAAuB,8LAAE,gBAAgB;;2FAIvE,sBAAsB;kBANlC,SAAS;+BACE,mBAAmB,WACpB,CAAC,6BAA6B,EAAE,uBAAuB,EAAE,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 OutputEmitterRef, type Signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { ButtonVariant } from "@noldova/ui.components.angular";
|
|
11
|
+
import { type CommandRun, type Notification, NotificationSeverity } from "@noldova/desktop.protocol";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "@noldova/ui.components.angular";
|
|
15
|
+
export declare class NotificationsPopoverComponent {
|
|
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 notifications: Signal<readonly Notification[]>;
|
|
23
|
+
protected readonly isQuiet: Signal<boolean>;
|
|
24
|
+
protected readonly hasFinished: Signal<boolean>;
|
|
25
|
+
readonly closed: OutputEmitterRef<void>;
|
|
26
|
+
protected glyph(severity: NotificationSeverity): string;
|
|
27
|
+
protected severityName(severity: NotificationSeverity): string;
|
|
28
|
+
protected moduleName(notification: Notification): string;
|
|
29
|
+
protected timeOf(notification: Notification): string;
|
|
30
|
+
protected progressOf(notification: Notification): number | null;
|
|
31
|
+
protected isIndeterminate(notification: Notification): boolean;
|
|
32
|
+
protected isAvailable(command: CommandRun): boolean;
|
|
33
|
+
protected run(command: CommandRun): void;
|
|
34
|
+
protected dismiss(notification: Notification): void;
|
|
35
|
+
protected clear(): void;
|
|
36
|
+
protected setQuiet(isOn: boolean): void;
|
|
37
|
+
private static isInProgress;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsPopoverComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsPopoverComponent, "nol-notifications-popover", never, {}, { "closed": "closed"; }, never, never, true, [{ directive: typeof i1.PopoverDirective; inputs: { "label": "label"; }; outputs: {}; }]>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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, computed, inject, output } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { ButtonComponent, ButtonVariant, CheckboxComponent, IconButtonComponent, PopoverDirective, 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 { Resources } from "../../../resources.js";
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
import * as i1 from "@noldova/ui.components.angular";
|
|
17
|
+
export class NotificationsPopoverComponent {
|
|
18
|
+
service = inject(NotificationService);
|
|
19
|
+
errors = inject(ErrorHandler);
|
|
20
|
+
statuses = inject(ModuleStatusService);
|
|
21
|
+
time = new Intl.DateTimeFormat(undefined, Resources.timeFormat);
|
|
22
|
+
resources = Resources;
|
|
23
|
+
secondary = ButtonVariant.Secondary;
|
|
24
|
+
notifications = computed(() => this.service.state().notifications, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "notifications" }] : /* istanbul ignore next */ []));
|
|
26
|
+
isQuiet = computed(() => this.service.state().isDoNotDisturb, /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "isQuiet" }] : /* istanbul ignore next */ []));
|
|
28
|
+
hasFinished = computed(() => this.notifications().some(t => !NotificationsPopoverComponent.isInProgress(t)), /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "hasFinished" }] : /* istanbul ignore next */ []));
|
|
30
|
+
closed = output();
|
|
31
|
+
glyph(severity) {
|
|
32
|
+
return Resources.severityGlyphs[severity];
|
|
33
|
+
}
|
|
34
|
+
severityName(severity) {
|
|
35
|
+
return Resources.severityNames[severity];
|
|
36
|
+
}
|
|
37
|
+
moduleName(notification) {
|
|
38
|
+
return this.statuses.nameOf(notification.post.kind.owner);
|
|
39
|
+
}
|
|
40
|
+
timeOf(notification) {
|
|
41
|
+
return this.time.format(new Date(notification.postedAt));
|
|
42
|
+
}
|
|
43
|
+
progressOf(notification) {
|
|
44
|
+
return Object.isNumber(notification.post.progress) ? notification.post.progress : null;
|
|
45
|
+
}
|
|
46
|
+
isIndeterminate(notification) {
|
|
47
|
+
return notification.post.progress === NotificationPost.indeterminate;
|
|
48
|
+
}
|
|
49
|
+
isAvailable(command) {
|
|
50
|
+
return this.service.isAvailable(command);
|
|
51
|
+
}
|
|
52
|
+
run(command) {
|
|
53
|
+
this.service.runAsync(command).catch((error) => this.errors.handleError(error));
|
|
54
|
+
this.closed.emit();
|
|
55
|
+
}
|
|
56
|
+
dismiss(notification) {
|
|
57
|
+
this.service.dismiss(notification.id);
|
|
58
|
+
}
|
|
59
|
+
clear() {
|
|
60
|
+
this.service.clear();
|
|
61
|
+
}
|
|
62
|
+
setQuiet(isOn) {
|
|
63
|
+
this.service.setDoNotDisturb(isOn);
|
|
64
|
+
}
|
|
65
|
+
static isInProgress(notification) {
|
|
66
|
+
const progress = notification.post.progress;
|
|
67
|
+
return progress === NotificationPost.indeterminate || (Object.isNumber(progress) && progress < 1);
|
|
68
|
+
}
|
|
69
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: NotificationsPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: NotificationsPopoverComponent, isStandalone: true, selector: "nol-notifications-popover", outputs: { closed: "closed" }, host: { classAttribute: "nol-notifications-popover" }, hostDirectives: [{ directive: i1.PopoverDirective, inputs: ["label", "label"] }], 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-notifications-header\">\n <h2 class=\"nol-notifications-title\">{{ resources.notificationsTitle }}</h2>\n <button type=\"button\" nol-button class=\"nol-notifications-clear\" [variant]=\"secondary\" [disabled]=\"!hasFinished()\" (click)=\"clear()\">{{ resources.clearAllLabel }}</button>\n</div>\n<nol-checkbox class=\"nol-notifications-quiet\" [checked]=\"isQuiet()\" (checkedChange)=\"setQuiet($event)\">{{ resources.doNotDisturbLabel }}</nol-checkbox>\n@if (notifications().length === 0) {\n <p class=\"nol-notifications-empty\">{{ resources.noNotifications }}</p>\n}\n@else {\n <ul class=\"nol-notifications-list\">\n @for (notification of notifications(); track notification.id) {\n <li class=\"nol-notifications-row\" [attr.data-notification]=\"notification.id\" [attr.data-severity]=\"notification.post.severity\">\n <span class=\"material-symbols-rounded nol-notifications-severity\" role=\"img\" [attr.aria-label]=\"severityName(notification.post.severity)\">{{ glyph(notification.post.severity) }}</span>\n <div class=\"nol-notifications-body\">\n @if (notification.post.open !== null) {\n <button type=\"button\" class=\"nol-notifications-row-title nol-notifications-open\" [disabled]=\"!isAvailable(notification.post.open)\" (click)=\"run(notification.post.open)\">{{ notification.post.title }}</button>\n }\n @else {\n <span class=\"nol-notifications-row-title\">{{ notification.post.title }}</span>\n }\n @if (notification.post.text !== null) {\n <span class=\"nol-notifications-text\">{{ notification.post.text }}</span>\n }\n @if (isIndeterminate(notification) || progressOf(notification) !== null) {\n <nol-progress [value]=\"progressOf(notification)\" [label]=\"notification.post.title\" />\n }\n <span class=\"nol-notifications-meta\">{{ moduleName(notification) }} \u00B7 {{ timeOf(notification) }}</span>\n @if (notification.post.actions.length > 0) {\n <div class=\"nol-notifications-actions\">\n @for (action of notification.post.actions; track $index) {\n <button type=\"button\" nol-button class=\"nol-notifications-action\" [variant]=\"secondary\" [disabled]=\"!isAvailable(action.command)\" (click)=\"run(action.command)\">{{ action.title }}</button>\n }\n </div>\n }\n </div>\n <button type=\"button\" nol-icon-button class=\"nol-notifications-dismiss\" [icon]=\"resources.closeGlyph\" [label]=\"resources.dismissLabel\" [nolTooltip]=\"resources.dismissLabel\" (click)=\"dismiss(notification)\"></button>\n </li>\n }\n </ul>\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.nol-notifications-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--nol-space-2);\n}\n\n.nol-notifications-title {\n margin: 0;\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n line-height: inherit;\n}\n\n.nol-notifications-empty {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.nol-notifications-list {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-height: 0;\n margin: 0 calc(-1 * var(--nol-space-3)) calc(-1 * var(--nol-space-3));\n padding: 0 var(--nol-space-3) var(--nol-space-3);\n overflow: auto;\n scroll-padding-block-end: var(--nol-space-3);\n list-style: none;\n}\n\n.nol-notifications-row {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: start;\n column-gap: var(--nol-space-2);\n}\n\n.nol-notifications-severity {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: var(--nol-line-panel);\n}\n\n.nol-notifications-row[data-severity=\"Error\"] .nol-notifications-severity {\n color: var(--nol-error);\n}\n\n.nol-notifications-row[data-severity=\"Success\"] .nol-notifications-severity {\n color: var(--nol-added);\n}\n\n.nol-notifications-body {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.nol-notifications-row-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n overflow-wrap: anywhere;\n}\n\n.nol-notifications-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-notifications-open:disabled {\n color: inherit;\n cursor: default;\n}\n\n.nol-notifications-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-notifications-text {\n overflow-wrap: anywhere;\n}\n\n.nol-notifications-meta {\n color: var(--nol-text-muted);\n}\n\n.nol-notifications-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: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled"], outputs: ["checkedChange"] }, { 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"] }] });
|
|
71
|
+
}
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: NotificationsPopoverComponent, decorators: [{
|
|
73
|
+
type: Component,
|
|
74
|
+
args: [{ selector: "nol-notifications-popover", imports: [ButtonComponent, CheckboxComponent, IconButtonComponent, ProgressComponent, TooltipDirective], hostDirectives: [{ directive: PopoverDirective, inputs: ["label"] }], host: {
|
|
75
|
+
"class": "nol-notifications-popover"
|
|
76
|
+
}, 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-notifications-header\">\n <h2 class=\"nol-notifications-title\">{{ resources.notificationsTitle }}</h2>\n <button type=\"button\" nol-button class=\"nol-notifications-clear\" [variant]=\"secondary\" [disabled]=\"!hasFinished()\" (click)=\"clear()\">{{ resources.clearAllLabel }}</button>\n</div>\n<nol-checkbox class=\"nol-notifications-quiet\" [checked]=\"isQuiet()\" (checkedChange)=\"setQuiet($event)\">{{ resources.doNotDisturbLabel }}</nol-checkbox>\n@if (notifications().length === 0) {\n <p class=\"nol-notifications-empty\">{{ resources.noNotifications }}</p>\n}\n@else {\n <ul class=\"nol-notifications-list\">\n @for (notification of notifications(); track notification.id) {\n <li class=\"nol-notifications-row\" [attr.data-notification]=\"notification.id\" [attr.data-severity]=\"notification.post.severity\">\n <span class=\"material-symbols-rounded nol-notifications-severity\" role=\"img\" [attr.aria-label]=\"severityName(notification.post.severity)\">{{ glyph(notification.post.severity) }}</span>\n <div class=\"nol-notifications-body\">\n @if (notification.post.open !== null) {\n <button type=\"button\" class=\"nol-notifications-row-title nol-notifications-open\" [disabled]=\"!isAvailable(notification.post.open)\" (click)=\"run(notification.post.open)\">{{ notification.post.title }}</button>\n }\n @else {\n <span class=\"nol-notifications-row-title\">{{ notification.post.title }}</span>\n }\n @if (notification.post.text !== null) {\n <span class=\"nol-notifications-text\">{{ notification.post.text }}</span>\n }\n @if (isIndeterminate(notification) || progressOf(notification) !== null) {\n <nol-progress [value]=\"progressOf(notification)\" [label]=\"notification.post.title\" />\n }\n <span class=\"nol-notifications-meta\">{{ moduleName(notification) }} \u00B7 {{ timeOf(notification) }}</span>\n @if (notification.post.actions.length > 0) {\n <div class=\"nol-notifications-actions\">\n @for (action of notification.post.actions; track $index) {\n <button type=\"button\" nol-button class=\"nol-notifications-action\" [variant]=\"secondary\" [disabled]=\"!isAvailable(action.command)\" (click)=\"run(action.command)\">{{ action.title }}</button>\n }\n </div>\n }\n </div>\n <button type=\"button\" nol-icon-button class=\"nol-notifications-dismiss\" [icon]=\"resources.closeGlyph\" [label]=\"resources.dismissLabel\" [nolTooltip]=\"resources.dismissLabel\" (click)=\"dismiss(notification)\"></button>\n </li>\n }\n </ul>\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.nol-notifications-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--nol-space-2);\n}\n\n.nol-notifications-title {\n margin: 0;\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n line-height: inherit;\n}\n\n.nol-notifications-empty {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.nol-notifications-list {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-height: 0;\n margin: 0 calc(-1 * var(--nol-space-3)) calc(-1 * var(--nol-space-3));\n padding: 0 var(--nol-space-3) var(--nol-space-3);\n overflow: auto;\n scroll-padding-block-end: var(--nol-space-3);\n list-style: none;\n}\n\n.nol-notifications-row {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: start;\n column-gap: var(--nol-space-2);\n}\n\n.nol-notifications-severity {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: var(--nol-line-panel);\n}\n\n.nol-notifications-row[data-severity=\"Error\"] .nol-notifications-severity {\n color: var(--nol-error);\n}\n\n.nol-notifications-row[data-severity=\"Success\"] .nol-notifications-severity {\n color: var(--nol-added);\n}\n\n.nol-notifications-body {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.nol-notifications-row-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n overflow-wrap: anywhere;\n}\n\n.nol-notifications-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-notifications-open:disabled {\n color: inherit;\n cursor: default;\n}\n\n.nol-notifications-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-notifications-text {\n overflow-wrap: anywhere;\n}\n\n.nol-notifications-meta {\n color: var(--nol-text-muted);\n}\n\n.nol-notifications-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n"] }]
|
|
77
|
+
}], propDecorators: { closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
78
|
+
//# sourceMappingURL=notifications-popover.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications-popover.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/notifications-popover/notifications-popover.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/notifications-popover/notifications-popover.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,SAAS,EAAE,YAAY,EAAsC,QAAQ,EAAE,MAAM,EAAE,MAAM,EACtF,MAAM,eAAe,CAAC;AAEvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC/K,OAAO,EAAsC,gBAAgB,EAAwB,MAAM,2BAA2B,CAAC;AAEvH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;;AAYlD,MAAM,OAAO,6BAA6B;IACvB,OAAO,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC3D,MAAM,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC5C,QAAQ,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC5D,IAAI,GAAwB,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAEnF,SAAS,GAAqB,SAAS,CAAC;IACxC,SAAS,GAAkB,aAAa,CAAC,SAAS,CAAC;IACnD,aAAa,GAAoC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,aAAa;sFAAC,CAAC;IACpG,OAAO,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,cAAc;gFAAC,CAAC;IAC/E,WAAW,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,6BAA6B,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;oFAAC,CAAC;IAEjI,MAAM,GAA2B,MAAM,EAAQ,CAAC;IAEtD,KAAK,CAAC,QAA8B;QAC5C,OAAO,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAES,YAAY,CAAC,QAA8B;QACnD,OAAO,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAES,UAAU,CAAC,YAA0B;QAC7C,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5D,CAAC;IAES,MAAM,CAAC,YAA0B;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3D,CAAC;IAES,UAAU,CAAC,YAA0B;QAC7C,OAAO,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IACzF,CAAC;IAES,eAAe,CAAC,YAA0B;QAClD,OAAO,YAAY,CAAC,IAAI,CAAC,QAAQ,KAAK,gBAAgB,CAAC,aAAa,CAAC;IACvE,CAAC;IAES,WAAW,CAAC,OAAmB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAES,GAAG,CAAC,OAAmB;QAC/B,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QACzF,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAES,OAAO,CAAC,YAA0B;QAC1C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC;IAES,KAAK;QACb,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAES,QAAQ,CAAC,IAAa;QAC9B,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAEO,MAAM,CAAC,YAAY,CAAC,YAA0B;QACpD,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC5C,OAAO,QAAQ,KAAK,gBAAgB,CAAC,aAAa,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAC;IACpG,CAAC;uGA9DU,6BAA6B;2FAA7B,6BAA6B,6PC9B1C,k1FAgDA,w8ED1BY,eAAe,oJAAE,iBAAiB,sHAAE,mBAAmB,2MAAE,iBAAiB,qFAAE,gBAAgB;;2FAQ3F,6BAA6B;kBAVzC,SAAS;+BACE,2BAA2B,WAC5B,CAAC,eAAe,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,kBAGvF,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,QAC9D;wBACJ,OAAO,EAAE,2BAA2B;qBACrC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { type Signal, type TemplateRef } from "@angular/core";
|
|
9
|
+
import type { JsonObject } from "@noldova/context.json";
|
|
10
|
+
import { MenuCheck } from "../../enums/menu-check.js";
|
|
11
|
+
import type { CommandRow } from "../../models/command-row.js";
|
|
12
|
+
import type { MenuSection } from "../../models/menu-section.js";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class PlaceMenuComponent {
|
|
15
|
+
private readonly menus;
|
|
16
|
+
private readonly commands;
|
|
17
|
+
private readonly errors;
|
|
18
|
+
protected readonly menuCheck: typeof MenuCheck;
|
|
19
|
+
protected readonly sections: Signal<readonly MenuSection[]>;
|
|
20
|
+
readonly place: import("@angular/core").InputSignal<string>;
|
|
21
|
+
readonly rows: import("@angular/core").InputSignal<readonly MenuSection[] | null>;
|
|
22
|
+
readonly context: import("@angular/core").InputSignal<JsonObject>;
|
|
23
|
+
readonly menu: Signal<TemplateRef<unknown>>;
|
|
24
|
+
protected run(row: CommandRow): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceMenuComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlaceMenuComponent, "nol-place-menu", never, { "place": { "alias": "place"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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, computed, inject, input, viewChild } from "@angular/core";
|
|
9
|
+
import { MenuComponent, MenuItemComponent, MenuSeparatorComponent, MenuTriggerDirective } from "@noldova/ui.components.angular";
|
|
10
|
+
import { MenuCheck } from "../../enums/menu-check.js";
|
|
11
|
+
import { CommandService } from "../../services/command.service.js";
|
|
12
|
+
import { MenuService } from "../../services/menu.service.js";
|
|
13
|
+
import { Resources } from "../../../resources.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class PlaceMenuComponent {
|
|
16
|
+
menus = inject(MenuService);
|
|
17
|
+
commands = inject(CommandService);
|
|
18
|
+
errors = inject(ErrorHandler);
|
|
19
|
+
menuCheck = MenuCheck;
|
|
20
|
+
sections = computed(() => this.rows() ?? this.menus.resolve(this.place(), this.context()), /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "sections" }] : /* istanbul ignore next */ []));
|
|
22
|
+
place = input(Resources.noPlace, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "place" }] : /* istanbul ignore next */ []));
|
|
24
|
+
rows = input(null, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
26
|
+
context = input({}, /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
28
|
+
menu = viewChild.required("placeMenu", /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
|
|
30
|
+
run(row) {
|
|
31
|
+
this.commands.runAsync(row.command, row.commandArguments).catch((error) => this.errors.handleError(error));
|
|
32
|
+
}
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaceMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: PlaceMenuComponent, isStandalone: true, selector: "nol-place-menu", inputs: { place: { classPropertyName: "place", publicName: "place", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["placeMenu"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<ng-template #placeMenu>\n <nol-menu class=\"nol-place-menu\" [attr.data-place]=\"place()\">\n @for (section of sections(); track section.group; let first = $first) {\n @if (!first) {\n <nol-menu-separator />\n }\n @for (row of section.rows; track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"context()\" />\n <button nol-menu-item class=\"nol-place-menu-submenu\" [attr.data-submenu]=\"row.place\" [label]=\"row.title\" [icon]=\"row.icon\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n } @else {\n <button nol-menu-item class=\"nol-place-menu-item\" [attr.data-command]=\"row.command\" [label]=\"row.title\" [icon]=\"row.icon\"\n [shortcut]=\"row.key\" [checked]=\"row.check === menuCheck.None ? null : row.isChecked\" [checkbox]=\"row.check === menuCheck.Checkbox\"\n [disabled]=\"!row.isEnabled\" (triggered)=\"run(row)\"></button>\n }\n }\n }\n </nol-menu>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n"], dependencies: [{ kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }] });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaceMenuComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{ selector: "nol-place-menu", imports: [MenuComponent, MenuItemComponent, MenuSeparatorComponent, MenuTriggerDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<ng-template #placeMenu>\n <nol-menu class=\"nol-place-menu\" [attr.data-place]=\"place()\">\n @for (section of sections(); track section.group; let first = $first) {\n @if (!first) {\n <nol-menu-separator />\n }\n @for (row of section.rows; track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"context()\" />\n <button nol-menu-item class=\"nol-place-menu-submenu\" [attr.data-submenu]=\"row.place\" [label]=\"row.title\" [icon]=\"row.icon\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n } @else {\n <button nol-menu-item class=\"nol-place-menu-item\" [attr.data-command]=\"row.command\" [label]=\"row.title\" [icon]=\"row.icon\"\n [shortcut]=\"row.key\" [checked]=\"row.check === menuCheck.None ? null : row.isChecked\" [checkbox]=\"row.check === menuCheck.Checkbox\"\n [disabled]=\"!row.isEnabled\" (triggered)=\"run(row)\"></button>\n }\n }\n }\n </nol-menu>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n"] }]
|
|
39
|
+
}], propDecorators: { place: [{ type: i0.Input, args: [{ isSignal: true, alias: "place", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }], menu: [{ type: i0.ViewChild, args: ["placeMenu", { isSignal: true }] }] } });
|
|
40
|
+
//# sourceMappingURL=place-menu.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"place-menu.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/place-menu/place-menu.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/place-menu/place-menu.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAiC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE3H,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAGhI,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAQlD,MAAM,OAAO,kBAAkB;IACZ,KAAK,GAAgB,MAAM,CAAC,WAAW,CAAC,CAAC;IACzC,QAAQ,GAAmB,MAAM,CAAC,cAAc,CAAC,CAAC;IAClD,MAAM,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAE1C,SAAS,GAAqB,SAAS,CAAC;IACxC,QAAQ,GAAmC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;iFAAC,CAAC;IAE9H,KAAK,GAAG,KAAK,CAAS,SAAS,CAAC,OAAO;8EAAC,CAAC;IACzC,IAAI,GAAG,KAAK,CAAgC,IAAI;6EAAC,CAAC;IAClD,OAAO,GAAG,KAAK,CAAa,EAAE;gFAAC,CAAC;IAChC,IAAI,GAAiC,SAAS,CAAC,QAAQ,CAAuB,WAAW;6EAAC,CAAC;IAEjG,GAAG,CAAC,GAAe;QAC3B,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IACtH,CAAC;uGAfU,kBAAkB;2FAAlB,kBAAkB,ojBC1B/B,qrCA2BA,gRDDa,kBAAkB,iGAJnB,aAAa,2EAAE,iBAAiB,6LAAE,sBAAsB,+DAAE,oBAAoB;;2FAI7E,kBAAkB;kBAN9B,SAAS;+BACE,gBAAgB,WACjB,CAAC,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,CAAC;kVAeK,WAAW"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type InputSignal, type ResourceRef, type Signal } from "@angular/core";
|
|
2
|
+
import "@noldova/context.core";
|
|
3
|
+
import type { ContributionMatch } from "../../models/contribution-match.js";
|
|
4
|
+
import { TabContent } from "../../models/tab-content.js";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PlaceholderContentComponent {
|
|
7
|
+
private readonly injector;
|
|
8
|
+
protected readonly content: ResourceRef<TabContent | undefined>;
|
|
9
|
+
protected readonly isPadded: Signal<boolean>;
|
|
10
|
+
readonly element: HTMLElement;
|
|
11
|
+
readonly match: InputSignal<ContributionMatch>;
|
|
12
|
+
readonly isLoaded: Signal<boolean>;
|
|
13
|
+
private loadAsync;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderContentComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlaceholderContentComponent, "nol-placeholder-content", never, { "match": { "alias": "match"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { NgComponentOutlet } from "@angular/common";
|
|
9
|
+
import { Component, ElementRef, Injector, computed, inject, input, resource, signal } from "@angular/core";
|
|
10
|
+
import "@noldova/context.core";
|
|
11
|
+
import { ContentPadding } from "../../enums/content-padding.js";
|
|
12
|
+
import { ContentPaddingRef } from "../../models/content-padding-ref.js";
|
|
13
|
+
import { TabContent } from "../../models/tab-content.js";
|
|
14
|
+
import { WindowPartTokens } from "../../models/window-part-tokens.js";
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export class PlaceholderContentComponent {
|
|
17
|
+
injector = inject(Injector);
|
|
18
|
+
content = resource({ ...(ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {}), params: () => ({ match: this.match() }),
|
|
19
|
+
loader: ({ params }) => this.loadAsync(params.match) });
|
|
20
|
+
isPadded = computed(() => {
|
|
21
|
+
if (!this.content.hasValue())
|
|
22
|
+
return false;
|
|
23
|
+
const value = this.content.value();
|
|
24
|
+
return (value.pagePadding.value() ?? value.padding) === ContentPadding.Default;
|
|
25
|
+
}, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "isPadded" }] : /* istanbul ignore next */ []));
|
|
27
|
+
element = inject(ElementRef).nativeElement;
|
|
28
|
+
match = input.required(/* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "match" }] : /* istanbul ignore next */ []));
|
|
30
|
+
isLoaded = computed(() => this.content.hasValue(), /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "isLoaded" }] : /* istanbul ignore next */ []));
|
|
32
|
+
async loadAsync(match) {
|
|
33
|
+
const component = await match.loadComponent();
|
|
34
|
+
const pagePadding = new ContentPaddingRef();
|
|
35
|
+
const injector = Injector.create({
|
|
36
|
+
providers: [
|
|
37
|
+
{ provide: WindowPartTokens.context, useValue: match.context },
|
|
38
|
+
{ provide: WindowPartTokens.contentPadding, useValue: pagePadding },
|
|
39
|
+
{ provide: WindowPartTokens.shown, useValue: signal(true).asReadonly() }
|
|
40
|
+
],
|
|
41
|
+
parent: this.injector
|
|
42
|
+
});
|
|
43
|
+
return new TabContent(component, injector, {}, match.padding, pagePadding);
|
|
44
|
+
}
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaceholderContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: PlaceholderContentComponent, isStandalone: true, selector: "nol-placeholder-content", inputs: { match: { classPropertyName: "match", publicName: "match", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.nol-placeholder-content-padded": "isPadded()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (content.hasValue()) {\n @let value = content.value();\n <ng-container *ngComponentOutlet=\"value.type; injector: value.injector; inputs: value.inputs\" />\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: auto;\n}\n\n:host(.nol-placeholder-content-padded) {\n scrollbar-gutter: stable;\n padding: var(--nol-document-padding-block) var(--nol-content-padding-inline);\n}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }] });
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaceholderContentComponent, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{ selector: "nol-placeholder-content", imports: [NgComponentOutlet], host: {
|
|
51
|
+
"[class.nol-placeholder-content-padded]": "isPadded()"
|
|
52
|
+
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (content.hasValue()) {\n @let value = content.value();\n <ng-container *ngComponentOutlet=\"value.type; injector: value.injector; inputs: value.inputs\" />\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: auto;\n}\n\n:host(.nol-placeholder-content-padded) {\n scrollbar-gutter: stable;\n padding: var(--nol-document-padding-block) var(--nol-content-padding-inline);\n}\n"] }]
|
|
53
|
+
}], propDecorators: { match: [{ type: i0.Input, args: [{ isSignal: true, alias: "match", required: true }] }] } });
|
|
54
|
+
//# sourceMappingURL=placeholder-content.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholder-content.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/placeholder-content/placeholder-content.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/placeholder-content/placeholder-content.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAmD,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5J,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;;AAWtE,MAAM,OAAO,2BAA2B;IACrB,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEpC,OAAO,GAAwC,QAAQ,8EACxE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;QACvC,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,GACpD,CAAC;IACgB,QAAQ,GAAoB,QAAQ,CAAC,GAAG,EAAE;QAC3D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YAC1B,OAAO,KAAK,CAAC;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACnC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,cAAc,CAAC,OAAO,CAAC;IACjF,CAAC;iFAAC,CAAC;IAEa,OAAO,GAAgB,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa,CAAC;IACjF,KAAK,GAAmC,KAAK,CAAC,QAAQ;8EAAqB,CAAC;IAC5E,QAAQ,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;iFAAC,CAAC;IAE5E,KAAK,CAAC,SAAS,CAAC,KAAwB;QAC9C,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,aAAa,EAAE,CAAC;QAC9C,MAAM,WAAW,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAC5C,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;YAC/B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,gBAAgB,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,OAAO,EAAE;gBAC9D,EAAE,OAAO,EAAE,gBAAgB,CAAC,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE;gBACnE,EAAE,OAAO,EAAE,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE;aACzE;YACD,MAAM,EAAE,IAAI,CAAC,QAAQ;SACtB,CAAC,CAAC;QACH,OAAO,IAAI,UAAU,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC7E,CAAC;uGA9BU,2BAA2B;2FAA3B,2BAA2B,sSC5BxC,+UAYA,qfDSY,iBAAiB;;2FAOhB,2BAA2B;kBATvC,SAAS;+BACE,yBAAyB,WAC1B,CAAC,iBAAiB,CAAC,QAGtB;wBACJ,wCAAwC,EAAE,YAAY;qBACvD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ButtonVariant } from "@noldova/ui.components.angular";
|
|
2
|
+
import { QuitChoice } from "../../enums/quit-choice.js";
|
|
3
|
+
import { QuitService } from "../../services/quit.service.js";
|
|
4
|
+
import { Resources } from "../../../resources.js";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class QuitDialogComponent {
|
|
7
|
+
private readonly cancel;
|
|
8
|
+
private wasWaiting;
|
|
9
|
+
protected readonly resources: typeof Resources;
|
|
10
|
+
protected readonly productName: string;
|
|
11
|
+
protected readonly choices: typeof QuitChoice;
|
|
12
|
+
protected readonly secondary: ButtonVariant;
|
|
13
|
+
protected readonly quit: QuitService;
|
|
14
|
+
constructor();
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuitDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuitDialogComponent, "nol-quit-dialog", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Component, ElementRef, afterRenderEffect, inject, viewChild } from "@angular/core";
|
|
9
|
+
import { ButtonComponent, ButtonVariant, DialogComponent } from "@noldova/ui.components.angular";
|
|
10
|
+
import { QuitChoice } from "../../enums/quit-choice.js";
|
|
11
|
+
import { QuitService } from "../../services/quit.service.js";
|
|
12
|
+
import { ProductName } from "../../models/product-name.js";
|
|
13
|
+
import { Resources } from "../../../resources.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class QuitDialogComponent {
|
|
16
|
+
cancel = viewChild.required(Resources.cancelReference, { ...(ngDevMode ? { debugName: "cancel" } : /* istanbul ignore next */ {}), read: (ElementRef) });
|
|
17
|
+
wasWaiting = false;
|
|
18
|
+
resources = Resources;
|
|
19
|
+
productName = ProductName.current;
|
|
20
|
+
choices = QuitChoice;
|
|
21
|
+
secondary = ButtonVariant.Secondary;
|
|
22
|
+
quit = inject(QuitService);
|
|
23
|
+
constructor() {
|
|
24
|
+
afterRenderEffect(() => {
|
|
25
|
+
const isWaiting = this.quit.question()?.isWaiting === true;
|
|
26
|
+
if (isWaiting && !this.wasWaiting)
|
|
27
|
+
this.cancel().nativeElement.focus();
|
|
28
|
+
this.wasWaiting = isWaiting;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: QuitDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: QuitDialogComponent, isStandalone: true, selector: "nol-quit-dialog", viewQueries: [{ propertyName: "cancel", first: true, predicate: Resources.cancelReference, descendants: true, read: ElementRef, 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@if (quit.question(); as question) {\n <nol-dialog [title]=\"question.isWaiting ? resources.quitWaitingTitle : resources.quitTitle\" (dismissed)=\"quit.answer(choices.Cancel)\">\n <div class=\"nol-quit-work\" aria-live=\"polite\">\n <p class=\"nol-quit-text\">{{ question.isWaiting ? (question.isUpdate ? resources.formatUpdateWaitingText(productName) : resources.formatQuitWaitingText(productName)) : resources.formatQuitText(productName) }}</p>\n <ul class=\"nol-quit-list\">\n @for (description of question.shown; track $index) {\n <li>{{ description }}</li>\n }\n @if (question.hiddenCount > 0) {\n <li class=\"nol-quit-more\">{{ resources.formatMoreWork(question.hiddenCount) }}</li>\n }\n </ul>\n </div>\n @if (!question.isWaiting) {\n <p class=\"nol-quit-text\">{{ resources.quitHint }}</p>\n }\n @if (!question.isWaiting) {\n <button nol-button nolDialogAction type=\"button\" [attr.data-nol-quit]=\"choices.Wait\" (click)=\"quit.answer(choices.Wait)\">{{ question.isUpdate ? resources.waitThenUpdate : resources.waitThenQuit }}</button>\n }\n <button nol-button nolDialogAction type=\"button\" [variant]=\"secondary\" [attr.data-nol-quit]=\"choices.Stop\" (click)=\"quit.answer(choices.Stop)\">\n {{ question.isUpdate ? resources.stopWorkAndUpdate : resources.stopWorkAndQuit }}\n </button>\n <button #cancel nol-button nolDialogAction type=\"button\" [variant]=\"secondary\" [attr.data-nol-quit]=\"choices.Cancel\" (click)=\"quit.answer(choices.Cancel)\">\n {{ resources.cancel }}\n </button>\n </nol-dialog>\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.nol-quit-text {\n margin: 0 0 var(--nol-space-2);\n}\n\n.nol-quit-list {\n margin: 0 0 var(--nol-space-2);\n padding-inline-start: var(--nol-space-6);\n}\n\n.nol-quit-more {\n color: var(--nol-text-muted);\n list-style: none;\n}\n"], dependencies: [{ kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }, { kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }] });
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: QuitDialogComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: "nol-quit-dialog", imports: [DialogComponent, ButtonComponent], 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 (quit.question(); as question) {\n <nol-dialog [title]=\"question.isWaiting ? resources.quitWaitingTitle : resources.quitTitle\" (dismissed)=\"quit.answer(choices.Cancel)\">\n <div class=\"nol-quit-work\" aria-live=\"polite\">\n <p class=\"nol-quit-text\">{{ question.isWaiting ? (question.isUpdate ? resources.formatUpdateWaitingText(productName) : resources.formatQuitWaitingText(productName)) : resources.formatQuitText(productName) }}</p>\n <ul class=\"nol-quit-list\">\n @for (description of question.shown; track $index) {\n <li>{{ description }}</li>\n }\n @if (question.hiddenCount > 0) {\n <li class=\"nol-quit-more\">{{ resources.formatMoreWork(question.hiddenCount) }}</li>\n }\n </ul>\n </div>\n @if (!question.isWaiting) {\n <p class=\"nol-quit-text\">{{ resources.quitHint }}</p>\n }\n @if (!question.isWaiting) {\n <button nol-button nolDialogAction type=\"button\" [attr.data-nol-quit]=\"choices.Wait\" (click)=\"quit.answer(choices.Wait)\">{{ question.isUpdate ? resources.waitThenUpdate : resources.waitThenQuit }}</button>\n }\n <button nol-button nolDialogAction type=\"button\" [variant]=\"secondary\" [attr.data-nol-quit]=\"choices.Stop\" (click)=\"quit.answer(choices.Stop)\">\n {{ question.isUpdate ? resources.stopWorkAndUpdate : resources.stopWorkAndQuit }}\n </button>\n <button #cancel nol-button nolDialogAction type=\"button\" [variant]=\"secondary\" [attr.data-nol-quit]=\"choices.Cancel\" (click)=\"quit.answer(choices.Cancel)\">\n {{ resources.cancel }}\n </button>\n </nol-dialog>\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.nol-quit-text {\n margin: 0 0 var(--nol-space-2);\n}\n\n.nol-quit-list {\n margin: 0 0 var(--nol-space-2);\n padding-inline-start: var(--nol-space-6);\n}\n\n.nol-quit-more {\n color: var(--nol-text-muted);\n list-style: none;\n}\n"] }]
|
|
37
|
+
}], ctorParameters: () => [], propDecorators: { cancel: [{ type: i0.ViewChild, args: [i0.forwardRef(() => Resources.cancelReference), { ...{ read: (ElementRef) }, isSignal: true }] }] } });
|
|
38
|
+
//# sourceMappingURL=quit-dialog.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quit-dialog.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/quit-dialog/quit-dialog.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/quit-dialog/quit-dialog.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE5F,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjG,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAQlD,MAAM,OAAO,mBAAmB;IACb,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,eAAe,8EAAI,IAAI,EAAE,CAAA,UAA6B,CAAA,GAAG,CAAC;IACzG,UAAU,GAAY,KAAK,CAAC;IAEjB,SAAS,GAAqB,SAAS,CAAC;IACxC,WAAW,GAAW,WAAW,CAAC,OAAO,CAAC;IAC1C,OAAO,GAAsB,UAAU,CAAC;IACxC,SAAS,GAAkB,aAAa,CAAC,SAAS,CAAC;IACnD,IAAI,GAAgB,MAAM,CAAC,WAAW,CAAC,CAAC;IAE3D;QACE,iBAAiB,CAAC,GAAG,EAAE;YACrB,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,KAAK,IAAI,CAAC;YAC3D,IAAI,SAAS,IAAI,CAAC,IAAI,CAAC,UAAU;gBAC/B,IAAI,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YACtC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;uGAjBU,mBAAmB;2FAAnB,mBAAmB,mHACe,SAAS,CAAC,eAAe,2BAAU,UAAU,6CCxB5F,6wDAmCA,0dDhBY,eAAe,0GAAE,eAAe;;2FAI/B,mBAAmB;kBAN/B,SAAS;+BACE,iBAAiB,WAClB,CAAC,eAAe,EAAE,eAAe,CAAC;kHAKE,SAAS,CAAC,eAAe,QAAE,EAAE,IAAI,EAAE,CAAA,UAA6B,CAAA,EAAE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import { type Signal } from "@angular/core";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class RuntimeStatusComponent {
|
|
12
|
+
private readonly state;
|
|
13
|
+
protected readonly status: Signal<string>;
|
|
14
|
+
protected readonly details: Signal<readonly string[]>;
|
|
15
|
+
private static detailsOf;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeStatusComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RuntimeStatusComponent, "nol-runtime-status", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -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 "@noldova/context.core";
|
|
9
|
+
import { Component, computed, inject } from "@angular/core";
|
|
10
|
+
import { StartupStateKind } from "../../enums/startup-state-kind.js";
|
|
11
|
+
import { StartupService } from "../../services/startup.service.js";
|
|
12
|
+
import { ProductName } from "../../models/product-name.js";
|
|
13
|
+
import { Resources } from "../../../resources.js";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class RuntimeStatusComponent {
|
|
16
|
+
state = inject(StartupService).state;
|
|
17
|
+
status = computed(() => this.state().isReady ? Resources.runtimeConnected : Resources.runtimeNotConnected, /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
19
|
+
details = computed(() => RuntimeStatusComponent.detailsOf(this.state()).filter(t => t.length > 0), /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "details" }] : /* istanbul ignore next */ []));
|
|
21
|
+
static detailsOf(state) {
|
|
22
|
+
const [first = String.empty] = state.details;
|
|
23
|
+
switch (state.kind) {
|
|
24
|
+
case StartupStateKind.Ready:
|
|
25
|
+
return [];
|
|
26
|
+
case StartupStateKind.PreShellData:
|
|
27
|
+
return [Resources.formatPreShellDataTitle(ProductName.current), first];
|
|
28
|
+
case StartupStateKind.Failed:
|
|
29
|
+
return [Resources.formatFailedTitle(ProductName.current), first];
|
|
30
|
+
case StartupStateKind.WorkInProgress:
|
|
31
|
+
return [Resources.formatWorkInProgressTitle(ProductName.current), ...state.details];
|
|
32
|
+
case StartupStateKind.WaitingForWork:
|
|
33
|
+
return [Resources.formatWaitingTitle(ProductName.current), ...state.details];
|
|
34
|
+
case StartupStateKind.NewerBuild:
|
|
35
|
+
return [Resources.formatNewerBuildTitle(ProductName.current), Resources.formatNewerBuild(ProductName.current, first)];
|
|
36
|
+
case StartupStateKind.Updating:
|
|
37
|
+
return [Resources.formatUpdatingTitle(ProductName.current, first)];
|
|
38
|
+
default:
|
|
39
|
+
return [Resources.formatStartingTitle(ProductName.current)];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: RuntimeStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: RuntimeStatusComponent, isStandalone: true, selector: "nol-runtime-status", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<p class=\"nol-runtime-status\" role=\"status\">\n <span>{{ status() }}</span>\n @for (detail of details(); track $index) {\n <span class=\"nol-runtime-detail\">{{ detail }}</span>\n }\n</p>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n padding: var(--nol-settings-item-padding);\n}\n\n.nol-runtime-status {\n display: flex;\n flex-direction: column;\n margin: 0;\n}\n\n.nol-runtime-detail {\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n"] });
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: RuntimeStatusComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{ selector: "nol-runtime-status", template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<p class=\"nol-runtime-status\" role=\"status\">\n <span>{{ status() }}</span>\n @for (detail of details(); track $index) {\n <span class=\"nol-runtime-detail\">{{ detail }}</span>\n }\n</p>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n padding: var(--nol-settings-item-padding);\n}\n\n.nol-runtime-status {\n display: flex;\n flex-direction: column;\n margin: 0;\n}\n\n.nol-runtime-detail {\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n"] }]
|
|
48
|
+
}] });
|
|
49
|
+
//# sourceMappingURL=runtime-status.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-status.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/runtime-status/runtime-status.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/runtime-status/runtime-status.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAOlD,MAAM,OAAO,sBAAsB;IAChB,KAAK,GAAyB,MAAM,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC;IAEzD,MAAM,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC,mBAAmB;+EAAC,CAAC;IAC3H,OAAO,GAA8B,QAAQ,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;gFAAC,CAAC;IAEzI,MAAM,CAAC,SAAS,CAAC,KAAmB;QAC1C,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC;QAC7C,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,gBAAgB,CAAC,KAAK;gBACzB,OAAO,EAAE,CAAC;YACZ,KAAK,gBAAgB,CAAC,YAAY;gBAChC,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;YACzE,KAAK,gBAAgB,CAAC,MAAM;gBAC1B,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;YACnE,KAAK,gBAAgB,CAAC,cAAc;gBAClC,OAAO,CAAC,SAAS,CAAC,yBAAyB,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;YACtF,KAAK,gBAAgB,CAAC,cAAc;gBAClC,OAAO,CAAC,SAAS,CAAC,kBAAkB,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;YAC/E,KAAK,gBAAgB,CAAC,UAAU;gBAC9B,OAAO,CAAC,SAAS,CAAC,qBAAqB,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;YACxH,KAAK,gBAAgB,CAAC,QAAQ;gBAC5B,OAAO,CAAC,SAAS,CAAC,mBAAmB,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;YACrE;gBACE,OAAO,CAAC,SAAS,CAAC,mBAAmB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;QAChE,CAAC;IACH,CAAC;uGA1BU,sBAAsB;2FAAtB,sBAAsB,8ECtBnC,+WAcA;;2FDQa,sBAAsB;kBALlC,SAAS;+BACE,oBAAoB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { type Signal, type WritableSignal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { QuickInputItem } from "@noldova/ui.components.angular";
|
|
11
|
+
import type { SearchFilter } from "../../models/search-filter.js";
|
|
12
|
+
import { Resources } from "../../../resources.js";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class SearchPaletteComponent {
|
|
15
|
+
private readonly palette;
|
|
16
|
+
private readonly errors;
|
|
17
|
+
private readonly session;
|
|
18
|
+
private readonly rows;
|
|
19
|
+
protected readonly resources: typeof Resources;
|
|
20
|
+
protected readonly label: Signal<string>;
|
|
21
|
+
protected readonly query: WritableSignal<string>;
|
|
22
|
+
protected readonly filters: Signal<readonly SearchFilter[]>;
|
|
23
|
+
protected readonly isSearching: Signal<boolean>;
|
|
24
|
+
protected readonly emptyText: Signal<string>;
|
|
25
|
+
protected readonly items: Signal<readonly QuickInputItem[]>;
|
|
26
|
+
constructor();
|
|
27
|
+
protected search(text: string): void;
|
|
28
|
+
protected choose(filter: SearchFilter): void;
|
|
29
|
+
protected moveFilter(event: KeyboardEvent): void;
|
|
30
|
+
protected open(item: QuickInputItem): void;
|
|
31
|
+
protected close(): void;
|
|
32
|
+
private static indicesOf;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchPaletteComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchPaletteComponent, "nol-search-palette", never, {}, {}, never, never, true, never>;
|
|
35
|
+
}
|