@noldova/desktop.window 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +80 -2
- package/api/build.d.ts +13 -0
- package/api/build.js +10 -0
- package/api/build.js.map +1 -0
- package/api/index.d.ts +68 -0
- package/api/index.js +42 -0
- package/api/index.js.map +1 -0
- package/api/testing.d.ts +10 -0
- package/api/testing.js +11 -0
- package/api/testing.js.map +1 -0
- package/app/components/about/about.component.d.ts +50 -0
- package/app/components/about/about.component.js +125 -0
- package/app/components/about/about.component.js.map +1 -0
- package/app/components/dock/dock.component.d.ts +56 -0
- package/app/components/dock/dock.component.js +117 -0
- package/app/components/dock/dock.component.js.map +1 -0
- package/app/components/docking-guides/docking-guides.component.d.ts +35 -0
- package/app/components/docking-guides/docking-guides.component.js +61 -0
- package/app/components/docking-guides/docking-guides.component.js.map +1 -0
- package/app/components/empty-window/empty-window.component.d.ts +8 -0
- package/app/components/empty-window/empty-window.component.js +22 -0
- package/app/components/empty-window/empty-window.component.js.map +1 -0
- package/app/components/field-menu/field-menu.component.d.ts +30 -0
- package/app/components/field-menu/field-menu.component.js +92 -0
- package/app/components/field-menu/field-menu.component.js.map +1 -0
- package/app/components/highlighted-text/highlighted-text.component.d.ts +19 -0
- package/app/components/highlighted-text/highlighted-text.component.js +33 -0
- package/app/components/highlighted-text/highlighted-text.component.js.map +1 -0
- package/app/components/link-menu/link-menu.component.d.ts +22 -0
- package/app/components/link-menu/link-menu.component.js +46 -0
- package/app/components/link-menu/link-menu.component.js.map +1 -0
- package/app/components/module-actions/module-actions.component.d.ts +31 -0
- package/app/components/module-actions/module-actions.component.js +64 -0
- package/app/components/module-actions/module-actions.component.js.map +1 -0
- package/app/components/module-failure-card/module-failure-card.component.d.ts +17 -0
- package/app/components/module-failure-card/module-failure-card.component.js +24 -0
- package/app/components/module-failure-card/module-failure-card.component.js.map +1 -0
- package/app/components/module-failures/module-failures.component.d.ts +20 -0
- package/app/components/module-failures/module-failures.component.js +28 -0
- package/app/components/module-failures/module-failures.component.js.map +1 -0
- package/app/components/module-switch/module-switch.component.d.ts +22 -0
- package/app/components/module-switch/module-switch.component.js +40 -0
- package/app/components/module-switch/module-switch.component.js.map +1 -0
- package/app/components/modules/modules.component.d.ts +48 -0
- package/app/components/modules/modules.component.js +132 -0
- package/app/components/modules/modules.component.js.map +1 -0
- package/app/components/notifications/notifications.component.d.ts +23 -0
- package/app/components/notifications/notifications.component.js +35 -0
- package/app/components/notifications/notifications.component.js.map +1 -0
- package/app/components/notifications-popover/notifications-popover.component.d.ts +40 -0
- package/app/components/notifications-popover/notifications-popover.component.js +78 -0
- package/app/components/notifications-popover/notifications-popover.component.js.map +1 -0
- package/app/components/place-menu/place-menu.component.d.ts +27 -0
- package/app/components/place-menu/place-menu.component.js +40 -0
- package/app/components/place-menu/place-menu.component.js.map +1 -0
- package/app/components/placeholder-content/placeholder-content.component.d.ts +16 -0
- package/app/components/placeholder-content/placeholder-content.component.js +54 -0
- package/app/components/placeholder-content/placeholder-content.component.js.map +1 -0
- package/app/components/quit-dialog/quit-dialog.component.d.ts +17 -0
- package/app/components/quit-dialog/quit-dialog.component.js +38 -0
- package/app/components/quit-dialog/quit-dialog.component.js.map +1 -0
- package/app/components/runtime-status/runtime-status.component.d.ts +18 -0
- package/app/components/runtime-status/runtime-status.component.js +49 -0
- package/app/components/runtime-status/runtime-status.component.js.map +1 -0
- package/app/components/search-palette/search-palette.component.d.ts +35 -0
- package/app/components/search-palette/search-palette.component.js +66 -0
- package/app/components/search-palette/search-palette.component.js.map +1 -0
- package/app/components/setting-row/setting-row.component.d.ts +62 -0
- package/app/components/setting-row/setting-row.component.js +176 -0
- package/app/components/setting-row/setting-row.component.js.map +1 -0
- package/app/components/settings/settings.component.d.ts +84 -0
- package/app/components/settings/settings.component.js +273 -0
- package/app/components/settings/settings.component.js.map +1 -0
- package/app/components/settings-page-host/settings-page-host.component.d.ts +19 -0
- package/app/components/settings-page-host/settings-page-host.component.js +54 -0
- package/app/components/settings-page-host/settings-page-host.component.js.map +1 -0
- package/app/components/shortcuts/shortcuts.component.d.ts +59 -0
- package/app/components/shortcuts/shortcuts.component.js +175 -0
- package/app/components/shortcuts/shortcuts.component.js.map +1 -0
- package/app/components/split-sash/split-sash.component.d.ts +24 -0
- package/app/components/split-sash/split-sash.component.js +44 -0
- package/app/components/split-sash/split-sash.component.js.map +1 -0
- package/app/components/startup/startup.component.d.ts +25 -0
- package/app/components/startup/startup.component.js +33 -0
- package/app/components/startup/startup.component.js.map +1 -0
- package/app/components/status-bar/status-bar.component.d.ts +9 -0
- package/app/components/status-bar/status-bar.component.js +28 -0
- package/app/components/status-bar/status-bar.component.js.map +1 -0
- package/app/components/status-bar-item/status-bar-item.component.d.ts +23 -0
- package/app/components/status-bar-item/status-bar-item.component.js +39 -0
- package/app/components/status-bar-item/status-bar-item.component.js.map +1 -0
- package/app/components/tab-content/tab-content.component.d.ts +35 -0
- package/app/components/tab-content/tab-content.component.js +139 -0
- package/app/components/tab-content/tab-content.component.js.map +1 -0
- package/app/components/tab-group/tab-group.component.d.ts +54 -0
- package/app/components/tab-group/tab-group.component.js +176 -0
- package/app/components/tab-group/tab-group.component.js.map +1 -0
- package/app/components/tab-row-actions/tab-row-actions.component.d.ts +27 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js +37 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js.map +1 -0
- package/app/components/tab-slot/tab-slot.component.d.ts +35 -0
- package/app/components/tab-slot/tab-slot.component.js +70 -0
- package/app/components/tab-slot/tab-slot.component.js.map +1 -0
- package/app/components/toasts/toasts.component.d.ts +36 -0
- package/app/components/toasts/toasts.component.js +68 -0
- package/app/components/toasts/toasts.component.js.map +1 -0
- package/app/components/toolbar/toolbar.component.d.ts +49 -0
- package/app/components/toolbar/toolbar.component.js +129 -0
- package/app/components/toolbar/toolbar.component.js.map +1 -0
- package/app/components/toolbar-band/toolbar-band.component.d.ts +14 -0
- package/app/components/toolbar-band/toolbar-band.component.js +32 -0
- package/app/components/toolbar-band/toolbar-band.component.js.map +1 -0
- package/app/components/update-item/update-item.component.d.ts +22 -0
- package/app/components/update-item/update-item.component.js +32 -0
- package/app/components/update-item/update-item.component.js.map +1 -0
- package/app/components/view-dialog/view-dialog.component.d.ts +17 -0
- package/app/components/view-dialog/view-dialog.component.js +46 -0
- package/app/components/view-dialog/view-dialog.component.js.map +1 -0
- package/app/components/window/window.component.d.ts +30 -0
- package/app/components/window/window.component.js +107 -0
- package/app/components/window/window.component.js.map +1 -0
- package/app/components/window-controls/window-controls.component.d.ts +27 -0
- package/app/components/window-controls/window-controls.component.js +55 -0
- package/app/components/window-controls/window-controls.component.js.map +1 -0
- package/app/components/window-row/window-row.component.d.ts +78 -0
- package/app/components/window-row/window-row.component.js +260 -0
- package/app/components/window-row/window-row.component.js.map +1 -0
- package/app/components/workspace/workspace.component.d.ts +32 -0
- package/app/components/workspace/workspace.component.js +134 -0
- package/app/components/workspace/workspace.component.js.map +1 -0
- package/app/directives/keeps-ctrl-keys.directive.d.ts +31 -0
- package/app/directives/keeps-ctrl-keys.directive.js +21 -0
- package/app/directives/keeps-ctrl-keys.directive.js.map +1 -0
- package/app/directives/tab-scroller.directive.d.ts +29 -0
- package/app/directives/tab-scroller.directive.js +88 -0
- package/app/directives/tab-scroller.directive.js.map +1 -0
- package/app/enums/bottom-dock-span.d.ts +11 -0
- package/app/enums/bottom-dock-span.js +13 -0
- package/app/enums/bottom-dock-span.js.map +1 -0
- package/app/enums/clock-choice.d.ts +11 -0
- package/app/enums/clock-choice.js +13 -0
- package/app/enums/clock-choice.js.map +1 -0
- package/app/enums/content-padding.d.ts +28 -0
- package/app/enums/content-padding.js +13 -0
- package/app/enums/content-padding.js.map +1 -0
- package/app/enums/dock-side.d.ts +24 -0
- package/app/enums/dock-side.js +14 -0
- package/app/enums/dock-side.js.map +1 -0
- package/app/enums/dock-style.d.ts +11 -0
- package/app/enums/dock-style.js +13 -0
- package/app/enums/dock-style.js.map +1 -0
- package/app/enums/document-tone.d.ts +24 -0
- package/app/enums/document-tone.js +14 -0
- package/app/enums/document-tone.js.map +1 -0
- package/app/enums/file-save-outcome.d.ts +26 -0
- package/app/enums/file-save-outcome.js +14 -0
- package/app/enums/file-save-outcome.js.map +1 -0
- package/app/enums/link-place.d.ts +23 -0
- package/app/enums/link-place.js +13 -0
- package/app/enums/link-place.js.map +1 -0
- package/app/enums/menu-bar-style.d.ts +12 -0
- package/app/enums/menu-bar-style.js +14 -0
- package/app/enums/menu-bar-style.js.map +1 -0
- package/app/enums/menu-check.d.ts +12 -0
- package/app/enums/menu-check.js +14 -0
- package/app/enums/menu-check.js.map +1 -0
- package/app/enums/panel-edge.d.ts +13 -0
- package/app/enums/panel-edge.js +15 -0
- package/app/enums/panel-edge.js.map +1 -0
- package/app/enums/part-save-outcome.d.ts +12 -0
- package/app/enums/part-save-outcome.js +14 -0
- package/app/enums/part-save-outcome.js.map +1 -0
- package/app/enums/quit-choice.d.ts +12 -0
- package/app/enums/quit-choice.js +14 -0
- package/app/enums/quit-choice.js.map +1 -0
- package/app/enums/split-axis.d.ts +11 -0
- package/app/enums/split-axis.js +13 -0
- package/app/enums/split-axis.js.map +1 -0
- package/app/enums/startup-state-kind.d.ts +17 -0
- package/app/enums/startup-state-kind.js +19 -0
- package/app/enums/startup-state-kind.js.map +1 -0
- package/app/enums/status-bar-item-tone.d.ts +21 -0
- package/app/enums/status-bar-item-tone.js +13 -0
- package/app/enums/status-bar-item-tone.js.map +1 -0
- package/app/enums/status-bar-side.d.ts +20 -0
- package/app/enums/status-bar-side.js +13 -0
- package/app/enums/status-bar-side.js.map +1 -0
- package/app/enums/toolbar-move.d.ts +13 -0
- package/app/enums/toolbar-move.js +15 -0
- package/app/enums/toolbar-move.js.map +1 -0
- package/app/enums/top-bar-side.d.ts +21 -0
- package/app/enums/top-bar-side.js +13 -0
- package/app/enums/top-bar-side.js.map +1 -0
- package/app/enums/unconfirmed-action.d.ts +12 -0
- package/app/enums/unconfirmed-action.js +14 -0
- package/app/enums/unconfirmed-action.js.map +1 -0
- package/app/enums/update-action.d.ts +11 -0
- package/app/enums/update-action.js +13 -0
- package/app/enums/update-action.js.map +1 -0
- package/app/enums/update-state-kind.d.ts +16 -0
- package/app/enums/update-state-kind.js +18 -0
- package/app/enums/update-state-kind.js.map +1 -0
- package/app/enums/view-dialog-refusal.d.ts +11 -0
- package/app/enums/view-dialog-refusal.js +13 -0
- package/app/enums/view-dialog-refusal.js.map +1 -0
- package/app/exceptions/action-not-confirmed.exception.d.ts +17 -0
- package/app/exceptions/action-not-confirmed.exception.js +36 -0
- package/app/exceptions/action-not-confirmed.exception.js.map +1 -0
- package/app/exceptions/command-already-registered.exception.d.ts +13 -0
- package/app/exceptions/command-already-registered.exception.js +18 -0
- package/app/exceptions/command-already-registered.exception.js.map +1 -0
- package/app/exceptions/command-not-declared.exception.d.ts +13 -0
- package/app/exceptions/command-not-declared.exception.js +18 -0
- package/app/exceptions/command-not-declared.exception.js.map +1 -0
- package/app/exceptions/command-not-found.exception.d.ts +13 -0
- package/app/exceptions/command-not-found.exception.js +18 -0
- package/app/exceptions/command-not-found.exception.js.map +1 -0
- package/app/exceptions/contribution-not-declared.exception.d.ts +14 -0
- package/app/exceptions/contribution-not-declared.exception.js +20 -0
- package/app/exceptions/contribution-not-declared.exception.js.map +1 -0
- package/app/exceptions/contribution-registered.exception.d.ts +14 -0
- package/app/exceptions/contribution-registered.exception.js +20 -0
- package/app/exceptions/contribution-registered.exception.js.map +1 -0
- package/app/exceptions/dependency-not-followed.exception.d.ts +12 -0
- package/app/exceptions/dependency-not-followed.exception.js +17 -0
- package/app/exceptions/dependency-not-followed.exception.js.map +1 -0
- package/app/exceptions/file-not-opened.exception.d.ts +13 -0
- package/app/exceptions/file-not-opened.exception.js +18 -0
- package/app/exceptions/file-not-opened.exception.js.map +1 -0
- package/app/exceptions/file-not-shown.exception.d.ts +13 -0
- package/app/exceptions/file-not-shown.exception.js +18 -0
- package/app/exceptions/file-not-shown.exception.js.map +1 -0
- package/app/exceptions/foreign-contribution.exception.d.ts +13 -0
- package/app/exceptions/foreign-contribution.exception.js +18 -0
- package/app/exceptions/foreign-contribution.exception.js.map +1 -0
- package/app/exceptions/foreign-name.exception.d.ts +13 -0
- package/app/exceptions/foreign-name.exception.js +18 -0
- package/app/exceptions/foreign-name.exception.js.map +1 -0
- package/app/exceptions/foreign-secret.exception.d.ts +13 -0
- package/app/exceptions/foreign-secret.exception.js +18 -0
- package/app/exceptions/foreign-secret.exception.js.map +1 -0
- package/app/exceptions/in-app-browser-taken.exception.d.ts +12 -0
- package/app/exceptions/in-app-browser-taken.exception.js +16 -0
- package/app/exceptions/in-app-browser-taken.exception.js.map +1 -0
- package/app/exceptions/link-not-opened.exception.d.ts +12 -0
- package/app/exceptions/link-not-opened.exception.js +16 -0
- package/app/exceptions/link-not-opened.exception.js.map +1 -0
- package/app/exceptions/placeholder-shown.exception.d.ts +14 -0
- package/app/exceptions/placeholder-shown.exception.js +20 -0
- package/app/exceptions/placeholder-shown.exception.js.map +1 -0
- package/app/exceptions/preload-bridge.exception.d.ts +12 -0
- package/app/exceptions/preload-bridge.exception.js +16 -0
- package/app/exceptions/preload-bridge.exception.js.map +1 -0
- package/app/exceptions/product-name.exception.d.ts +12 -0
- package/app/exceptions/product-name.exception.js +16 -0
- package/app/exceptions/product-name.exception.js.map +1 -0
- package/app/exceptions/runtime-disconnected.exception.d.ts +13 -0
- package/app/exceptions/runtime-disconnected.exception.js +25 -0
- package/app/exceptions/runtime-disconnected.exception.js.map +1 -0
- package/app/exceptions/runtime-request.exception.d.ts +15 -0
- package/app/exceptions/runtime-request.exception.js +19 -0
- package/app/exceptions/runtime-request.exception.js.map +1 -0
- package/app/exceptions/search-source-registered.exception.d.ts +13 -0
- package/app/exceptions/search-source-registered.exception.js +18 -0
- package/app/exceptions/search-source-registered.exception.js.map +1 -0
- package/app/exceptions/setting-options-failed.exception.d.ts +13 -0
- package/app/exceptions/setting-options-failed.exception.js +19 -0
- package/app/exceptions/setting-options-failed.exception.js.map +1 -0
- package/app/exceptions/setting-options-repeated.exception.d.ts +13 -0
- package/app/exceptions/setting-options-repeated.exception.js +18 -0
- package/app/exceptions/setting-options-repeated.exception.js.map +1 -0
- package/app/exceptions/settings-page-not-loaded.exception.d.ts +12 -0
- package/app/exceptions/settings-page-not-loaded.exception.js +17 -0
- package/app/exceptions/settings-page-not-loaded.exception.js.map +1 -0
- package/app/exceptions/view-dialog.exception.d.ts +15 -0
- package/app/exceptions/view-dialog.exception.js +27 -0
- package/app/exceptions/view-dialog.exception.js.map +1 -0
- package/app/exceptions/web-view-closed.exception.d.ts +12 -0
- package/app/exceptions/web-view-closed.exception.js +16 -0
- package/app/exceptions/web-view-closed.exception.js.map +1 -0
- package/app/exceptions/web-view-not-opened.exception.d.ts +12 -0
- package/app/exceptions/web-view-not-opened.exception.js +16 -0
- package/app/exceptions/web-view-not-opened.exception.js.map +1 -0
- package/app/exceptions/window-part-access.exception.d.ts +13 -0
- package/app/exceptions/window-part-access.exception.js +17 -0
- package/app/exceptions/window-part-access.exception.js.map +1 -0
- package/app/exceptions/window-part-activation-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-activation-failed.exception.js +17 -0
- package/app/exceptions/window-part-activation-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-failure.exception.d.ts +14 -0
- package/app/exceptions/window-part-failure.exception.js +17 -0
- package/app/exceptions/window-part-failure.exception.js.map +1 -0
- package/app/exceptions/window-part-load-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-load-failed.exception.js +17 -0
- package/app/exceptions/window-part-load-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-reconnection-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js +17 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-late.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-late.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-late.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed.exception.js +19 -0
- package/app/exceptions/window-part-save-failed.exception.js.map +1 -0
- package/app/exceptions/window.exception.d.ts +21 -0
- package/app/exceptions/window.exception.js +15 -0
- package/app/exceptions/window.exception.js.map +1 -0
- package/app/interfaces/i-command-key.d.ts +22 -0
- package/app/interfaces/i-command-key.js +8 -0
- package/app/interfaces/i-command-key.js.map +1 -0
- package/app/interfaces/i-document-contribution-options.d.ts +34 -0
- package/app/interfaces/i-document-contribution-options.js +8 -0
- package/app/interfaces/i-document-contribution-options.js.map +1 -0
- package/app/interfaces/i-document-marker.d.ts +23 -0
- package/app/interfaces/i-document-marker.js +8 -0
- package/app/interfaces/i-document-marker.js.map +1 -0
- package/app/interfaces/i-document-options.d.ts +79 -0
- package/app/interfaces/i-document-options.js +8 -0
- package/app/interfaces/i-document-options.js.map +1 -0
- package/app/interfaces/i-document-status.d.ts +28 -0
- package/app/interfaces/i-document-status.js +8 -0
- package/app/interfaces/i-document-status.js.map +1 -0
- package/app/interfaces/i-document-update.d.ts +58 -0
- package/app/interfaces/i-document-update.js +8 -0
- package/app/interfaces/i-document-update.js.map +1 -0
- package/app/interfaces/i-file-choice-options.d.ts +18 -0
- package/app/interfaces/i-file-choice-options.js +8 -0
- package/app/interfaces/i-file-choice-options.js.map +1 -0
- package/app/interfaces/i-file-grant-options.d.ts +17 -0
- package/app/interfaces/i-file-grant-options.js +8 -0
- package/app/interfaces/i-file-grant-options.js.map +1 -0
- package/app/interfaces/i-file-path-choice-options.d.ts +24 -0
- package/app/interfaces/i-file-path-choice-options.js +8 -0
- package/app/interfaces/i-file-path-choice-options.js.map +1 -0
- package/app/interfaces/i-in-app-browser.d.ts +36 -0
- package/app/interfaces/i-in-app-browser.js +8 -0
- package/app/interfaces/i-in-app-browser.js.map +1 -0
- package/app/interfaces/i-layout-store.d.ts +12 -0
- package/app/interfaces/i-layout-store.js +8 -0
- package/app/interfaces/i-layout-store.js.map +1 -0
- package/app/interfaces/i-link-open-options.d.ts +26 -0
- package/app/interfaces/i-link-open-options.js +8 -0
- package/app/interfaces/i-link-open-options.js.map +1 -0
- package/app/interfaces/i-module-saver.d.ts +10 -0
- package/app/interfaces/i-module-saver.js +8 -0
- package/app/interfaces/i-module-saver.js.map +1 -0
- package/app/interfaces/i-opened-web-view.d.ts +12 -0
- package/app/interfaces/i-opened-web-view.js +8 -0
- package/app/interfaces/i-opened-web-view.js.map +1 -0
- package/app/interfaces/i-preload-bridge.d.ts +75 -0
- package/app/interfaces/i-preload-bridge.js +8 -0
- package/app/interfaces/i-preload-bridge.js.map +1 -0
- package/app/interfaces/i-product-about.d.ts +38 -0
- package/app/interfaces/i-product-about.js +8 -0
- package/app/interfaces/i-product-about.js.map +1 -0
- package/app/interfaces/i-product-logo.d.ts +23 -0
- package/app/interfaces/i-product-logo.js +8 -0
- package/app/interfaces/i-product-logo.js.map +1 -0
- package/app/interfaces/i-selection-source.d.ts +24 -0
- package/app/interfaces/i-selection-source.js +8 -0
- package/app/interfaces/i-selection-source.js.map +1 -0
- package/app/interfaces/i-settings-page-declaration.d.ts +22 -0
- package/app/interfaces/i-settings-page-declaration.js +8 -0
- package/app/interfaces/i-settings-page-declaration.js.map +1 -0
- package/app/interfaces/i-settings-page-row.d.ts +12 -0
- package/app/interfaces/i-settings-page-row.js +8 -0
- package/app/interfaces/i-settings-page-row.js.map +1 -0
- package/app/interfaces/i-status-bar-item-options.d.ts +42 -0
- package/app/interfaces/i-status-bar-item-options.js +8 -0
- package/app/interfaces/i-status-bar-item-options.js.map +1 -0
- package/app/interfaces/i-top-bar-action-options.d.ts +21 -0
- package/app/interfaces/i-top-bar-action-options.js +8 -0
- package/app/interfaces/i-top-bar-action-options.js.map +1 -0
- package/app/interfaces/i-view-dialog-options.d.ts +22 -0
- package/app/interfaces/i-view-dialog-options.js +8 -0
- package/app/interfaces/i-view-dialog-options.js.map +1 -0
- package/app/interfaces/i-view-instance-options.d.ts +37 -0
- package/app/interfaces/i-view-instance-options.js +8 -0
- package/app/interfaces/i-view-instance-options.js.map +1 -0
- package/app/interfaces/i-view-options.d.ts +41 -0
- package/app/interfaces/i-view-options.js +8 -0
- package/app/interfaces/i-view-options.js.map +1 -0
- package/app/interfaces/i-view-update.d.ts +31 -0
- package/app/interfaces/i-view-update.js +8 -0
- package/app/interfaces/i-view-update.js.map +1 -0
- package/app/interfaces/i-web-view-find-options.d.ts +16 -0
- package/app/interfaces/i-web-view-find-options.js +8 -0
- package/app/interfaces/i-web-view-find-options.js.map +1 -0
- package/app/interfaces/i-web-view-found.d.ts +33 -0
- package/app/interfaces/i-web-view-found.js +8 -0
- package/app/interfaces/i-web-view-found.js.map +1 -0
- package/app/interfaces/i-web-view-guest.d.ts +15 -0
- package/app/interfaces/i-web-view-guest.js +8 -0
- package/app/interfaces/i-web-view-guest.js.map +1 -0
- package/app/interfaces/i-web-view-handle.d.ts +370 -0
- package/app/interfaces/i-web-view-handle.js +8 -0
- package/app/interfaces/i-web-view-handle.js.map +1 -0
- package/app/interfaces/i-web-view-layer.d.ts +29 -0
- package/app/interfaces/i-web-view-layer.js +8 -0
- package/app/interfaces/i-web-view-layer.js.map +1 -0
- package/app/interfaces/i-window-inputs.d.ts +72 -0
- package/app/interfaces/i-window-inputs.js +8 -0
- package/app/interfaces/i-window-inputs.js.map +1 -0
- package/app/interfaces/i-window-palette.d.ts +32 -0
- package/app/interfaces/i-window-palette.js +8 -0
- package/app/interfaces/i-window-palette.js.map +1 -0
- package/app/interfaces/i-window-part-context.d.ts +1622 -0
- package/app/interfaces/i-window-part-context.js +8 -0
- package/app/interfaces/i-window-part-context.js.map +1 -0
- package/app/interfaces/i-window-part-host.d.ts +89 -0
- package/app/interfaces/i-window-part-host.js +8 -0
- package/app/interfaces/i-window-part-host.js.map +1 -0
- package/app/interfaces/i-window-part.d.ts +160 -0
- package/app/interfaces/i-window-part.js +8 -0
- package/app/interfaces/i-window-part.js.map +1 -0
- package/app/interfaces/i-window-secrets.d.ts +69 -0
- package/app/interfaces/i-window-secrets.js +8 -0
- package/app/interfaces/i-window-secrets.js.map +1 -0
- package/app/interfaces/i-window-web-views.d.ts +39 -0
- package/app/interfaces/i-window-web-views.js +8 -0
- package/app/interfaces/i-window-web-views.js.map +1 -0
- package/app/models/appearance-preferences.d.ts +22 -0
- package/app/models/appearance-preferences.js +51 -0
- package/app/models/appearance-preferences.js.map +1 -0
- package/app/models/build-info.d.ts +13 -0
- package/app/models/build-info.js +22 -0
- package/app/models/build-info.js.map +1 -0
- package/app/models/build-tokens.d.ts +17 -0
- package/app/models/build-tokens.js +16 -0
- package/app/models/build-tokens.js.map +1 -0
- package/app/models/clipboard-image.d.ts +22 -0
- package/app/models/clipboard-image.js +128 -0
- package/app/models/clipboard-image.js.map +1 -0
- package/app/models/clipboard-image.resources.d.ts +43 -0
- package/app/models/clipboard-image.resources.js +44 -0
- package/app/models/clipboard-image.resources.js.map +1 -0
- package/app/models/command-contribution.d.ts +95 -0
- package/app/models/command-contribution.js +38 -0
- package/app/models/command-contribution.js.map +1 -0
- package/app/models/command-match.d.ts +13 -0
- package/app/models/command-match.js +17 -0
- package/app/models/command-match.js.map +1 -0
- package/app/models/command-matcher.d.ts +11 -0
- package/app/models/command-matcher.js +23 -0
- package/app/models/command-matcher.js.map +1 -0
- package/app/models/command-row.d.ts +20 -0
- package/app/models/command-row.js +27 -0
- package/app/models/command-row.js.map +1 -0
- package/app/models/command-search-entry.d.ts +15 -0
- package/app/models/command-search-entry.js +20 -0
- package/app/models/command-search-entry.js.map +1 -0
- package/app/models/content-padding-ref.d.ts +66 -0
- package/app/models/content-padding-ref.js +20 -0
- package/app/models/content-padding-ref.js.map +1 -0
- package/app/models/contribution-match.d.ts +16 -0
- package/app/models/contribution-match.js +18 -0
- package/app/models/contribution-match.js.map +1 -0
- package/app/models/document-contribution.d.ts +63 -0
- package/app/models/document-contribution.js +28 -0
- package/app/models/document-contribution.js.map +1 -0
- package/app/models/document-heading.d.ts +21 -0
- package/app/models/document-heading.js +50 -0
- package/app/models/document-heading.js.map +1 -0
- package/app/models/document-look.d.ts +27 -0
- package/app/models/document-look.js +66 -0
- package/app/models/document-look.js.map +1 -0
- package/app/models/edit-target.d.ts +22 -0
- package/app/models/edit-target.js +58 -0
- package/app/models/edit-target.js.map +1 -0
- package/app/models/field-menu-request.d.ts +19 -0
- package/app/models/field-menu-request.js +32 -0
- package/app/models/field-menu-request.js.map +1 -0
- package/app/models/gallery-tokens.d.ts +11 -0
- package/app/models/gallery-tokens.js +13 -0
- package/app/models/gallery-tokens.js.map +1 -0
- package/app/models/issued-file-grant.d.ts +45 -0
- package/app/models/issued-file-grant.js +20 -0
- package/app/models/issued-file-grant.js.map +1 -0
- package/app/models/issued-file-grants.d.ts +40 -0
- package/app/models/issued-file-grants.js +17 -0
- package/app/models/issued-file-grants.js.map +1 -0
- package/app/models/key-bindings.d.ts +24 -0
- package/app/models/key-bindings.js +66 -0
- package/app/models/key-bindings.js.map +1 -0
- package/app/models/layout/bounds.d.ts +24 -0
- package/app/models/layout/bounds.js +53 -0
- package/app/models/layout/bounds.js.map +1 -0
- package/app/models/layout/closed-tabs.d.ts +28 -0
- package/app/models/layout/closed-tabs.js +72 -0
- package/app/models/layout/closed-tabs.js.map +1 -0
- package/app/models/layout/dock-growth.d.ts +18 -0
- package/app/models/layout/dock-growth.js +27 -0
- package/app/models/layout/dock-growth.js.map +1 -0
- package/app/models/layout/dock-strip-icon.d.ts +17 -0
- package/app/models/layout/dock-strip-icon.js +20 -0
- package/app/models/layout/dock-strip-icon.js.map +1 -0
- package/app/models/layout/dock-yield.d.ts +15 -0
- package/app/models/layout/dock-yield.js +19 -0
- package/app/models/layout/dock-yield.js.map +1 -0
- package/app/models/layout/dock.d.ts +33 -0
- package/app/models/layout/dock.js +65 -0
- package/app/models/layout/dock.js.map +1 -0
- package/app/models/layout/docking-overlay.d.ts +20 -0
- package/app/models/layout/docking-overlay.js +52 -0
- package/app/models/layout/docking-overlay.js.map +1 -0
- package/app/models/layout/document-group.d.ts +22 -0
- package/app/models/layout/document-group.js +36 -0
- package/app/models/layout/document-group.js.map +1 -0
- package/app/models/layout/document-tab.d.ts +19 -0
- package/app/models/layout/document-tab.js +33 -0
- package/app/models/layout/document-tab.js.map +1 -0
- package/app/models/layout/drop-target.d.ts +16 -0
- package/app/models/layout/drop-target.js +10 -0
- package/app/models/layout/drop-target.js.map +1 -0
- package/app/models/layout/early-document.d.ts +14 -0
- package/app/models/layout/early-document.js +18 -0
- package/app/models/layout/early-document.js.map +1 -0
- package/app/models/layout/group-drop-target.d.ts +19 -0
- package/app/models/layout/group-drop-target.js +25 -0
- package/app/models/layout/group-drop-target.js.map +1 -0
- package/app/models/layout/group-frame.d.ts +16 -0
- package/app/models/layout/group-frame.js +18 -0
- package/app/models/layout/group-frame.js.map +1 -0
- package/app/models/layout/layout-fit.d.ts +25 -0
- package/app/models/layout/layout-fit.js +61 -0
- package/app/models/layout/layout-fit.js.map +1 -0
- package/app/models/layout/layout-geometry.d.ts +49 -0
- package/app/models/layout/layout-geometry.js +129 -0
- package/app/models/layout/layout-geometry.js.map +1 -0
- package/app/models/layout/layout-metrics.d.ts +21 -0
- package/app/models/layout/layout-metrics.js +39 -0
- package/app/models/layout/layout-metrics.js.map +1 -0
- package/app/models/layout/layout.d.ts +71 -0
- package/app/models/layout/layout.js +241 -0
- package/app/models/layout/layout.js.map +1 -0
- package/app/models/layout/layout.node.d.ts +33 -0
- package/app/models/layout/layout.node.js +18 -0
- package/app/models/layout/layout.node.js.map +1 -0
- package/app/models/layout/side-drop-target.d.ts +23 -0
- package/app/models/layout/side-drop-target.js +29 -0
- package/app/models/layout/side-drop-target.js.map +1 -0
- package/app/models/layout/split-drop-target.d.ts +21 -0
- package/app/models/layout/split-drop-target.js +27 -0
- package/app/models/layout/split-drop-target.js.map +1 -0
- package/app/models/layout/split-handle.d.ts +22 -0
- package/app/models/layout/split-handle.js +43 -0
- package/app/models/layout/split-handle.js.map +1 -0
- package/app/models/layout/split-part.d.ts +13 -0
- package/app/models/layout/split-part.js +16 -0
- package/app/models/layout/split-part.js.map +1 -0
- package/app/models/layout/split.node.d.ts +42 -0
- package/app/models/layout/split.node.js +119 -0
- package/app/models/layout/split.node.js.map +1 -0
- package/app/models/layout/tab-drop-target.d.ts +18 -0
- package/app/models/layout/tab-drop-target.js +27 -0
- package/app/models/layout/tab-drop-target.js.map +1 -0
- package/app/models/layout/tab-group.d.ts +46 -0
- package/app/models/layout/tab-group.js +134 -0
- package/app/models/layout/tab-group.js.map +1 -0
- package/app/models/layout/tab-key.d.ts +12 -0
- package/app/models/layout/tab-key.js +22 -0
- package/app/models/layout/tab-key.js.map +1 -0
- package/app/models/layout/tab-label.d.ts +12 -0
- package/app/models/layout/tab-label.js +20 -0
- package/app/models/layout/tab-label.js.map +1 -0
- package/app/models/layout/tab-reveal.d.ts +13 -0
- package/app/models/layout/tab-reveal.js +16 -0
- package/app/models/layout/tab-reveal.js.map +1 -0
- package/app/models/layout/tab.d.ts +24 -0
- package/app/models/layout/tab.js +34 -0
- package/app/models/layout/tab.js.map +1 -0
- package/app/models/layout/toolbar-layout.d.ts +28 -0
- package/app/models/layout/toolbar-layout.js +116 -0
- package/app/models/layout/toolbar-layout.js.map +1 -0
- package/app/models/layout/view-registry.d.ts +24 -0
- package/app/models/layout/view-registry.js +58 -0
- package/app/models/layout/view-registry.js.map +1 -0
- package/app/models/layout/view-tab.d.ts +19 -0
- package/app/models/layout/view-tab.js +33 -0
- package/app/models/layout/view-tab.js.map +1 -0
- package/app/models/layout/view-type.d.ts +17 -0
- package/app/models/layout/view-type.js +28 -0
- package/app/models/layout/view-type.js.map +1 -0
- package/app/models/live-view.d.ts +32 -0
- package/app/models/live-view.js +90 -0
- package/app/models/live-view.js.map +1 -0
- package/app/models/menu-declarations.d.ts +20 -0
- package/app/models/menu-declarations.js +50 -0
- package/app/models/menu-declarations.js.map +1 -0
- package/app/models/menu-group.d.ts +17 -0
- package/app/models/menu-group.js +32 -0
- package/app/models/menu-group.js.map +1 -0
- package/app/models/menu-item.d.ts +20 -0
- package/app/models/menu-item.js +40 -0
- package/app/models/menu-item.js.map +1 -0
- package/app/models/menu-place.d.ts +16 -0
- package/app/models/menu-place.js +28 -0
- package/app/models/menu-place.js.map +1 -0
- package/app/models/menu-row-contribution.d.ts +52 -0
- package/app/models/menu-row-contribution.js +27 -0
- package/app/models/menu-row-contribution.js.map +1 -0
- package/app/models/menu-row.d.ts +12 -0
- package/app/models/menu-row.js +16 -0
- package/app/models/menu-row.js.map +1 -0
- package/app/models/menu-search-row.d.ts +14 -0
- package/app/models/menu-search-row.js +20 -0
- package/app/models/menu-search-row.js.map +1 -0
- package/app/models/menu-section.d.ts +14 -0
- package/app/models/menu-section.js +16 -0
- package/app/models/menu-section.js.map +1 -0
- package/app/models/module-failure.d.ts +20 -0
- package/app/models/module-failure.js +35 -0
- package/app/models/module-failure.js.map +1 -0
- package/app/models/module-switch-tokens.d.ts +12 -0
- package/app/models/module-switch-tokens.js +13 -0
- package/app/models/module-switch-tokens.js.map +1 -0
- package/app/models/modules/contribution-group.d.ts +14 -0
- package/app/models/modules/contribution-group.js +18 -0
- package/app/models/modules/contribution-group.js.map +1 -0
- package/app/models/modules/contribution-row.d.ts +12 -0
- package/app/models/modules/contribution-row.js +16 -0
- package/app/models/modules/contribution-row.js.map +1 -0
- package/app/models/modules/module-overview.d.ts +21 -0
- package/app/models/modules/module-overview.js +41 -0
- package/app/models/modules/module-overview.js.map +1 -0
- package/app/models/modules/module-reference.d.ts +13 -0
- package/app/models/modules/module-reference.js +16 -0
- package/app/models/modules/module-reference.js.map +1 -0
- package/app/models/modules/program-row.d.ts +17 -0
- package/app/models/modules/program-row.js +28 -0
- package/app/models/modules/program-row.js.map +1 -0
- package/app/models/notification-handle.d.ts +45 -0
- package/app/models/notification-handle.js +19 -0
- package/app/models/notification-handle.js.map +1 -0
- package/app/models/pending-document.d.ts +21 -0
- package/app/models/pending-document.js +35 -0
- package/app/models/pending-document.js.map +1 -0
- package/app/models/pending-view-change.d.ts +14 -0
- package/app/models/pending-view-change.js +20 -0
- package/app/models/pending-view-change.js.map +1 -0
- package/app/models/placeholder-contribution.d.ts +49 -0
- package/app/models/placeholder-contribution.js +22 -0
- package/app/models/placeholder-contribution.js.map +1 -0
- package/app/models/product-name.d.ts +13 -0
- package/app/models/product-name.js +18 -0
- package/app/models/product-name.js.map +1 -0
- package/app/models/quit-question.d.ts +16 -0
- package/app/models/quit-question.js +30 -0
- package/app/models/quit-question.js.map +1 -0
- package/app/models/scroll-offset.d.ts +15 -0
- package/app/models/scroll-offset.js +25 -0
- package/app/models/scroll-offset.js.map +1 -0
- package/app/models/search-answer.d.ts +39 -0
- package/app/models/search-answer.js +20 -0
- package/app/models/search-answer.js.map +1 -0
- package/app/models/search-filter.d.ts +14 -0
- package/app/models/search-filter.js +20 -0
- package/app/models/search-filter.js.map +1 -0
- package/app/models/search-group.d.ts +14 -0
- package/app/models/search-group.js +18 -0
- package/app/models/search-group.js.map +1 -0
- package/app/models/search-query.d.ts +17 -0
- package/app/models/search-query.js +30 -0
- package/app/models/search-query.js.map +1 -0
- package/app/models/search-rank.d.ts +14 -0
- package/app/models/search-rank.js +32 -0
- package/app/models/search-rank.js.map +1 -0
- package/app/models/search-request.d.ts +15 -0
- package/app/models/search-request.js +20 -0
- package/app/models/search-request.js.map +1 -0
- package/app/models/search-result.d.ts +65 -0
- package/app/models/search-result.js +38 -0
- package/app/models/search-result.js.map +1 -0
- package/app/models/search-row.d.ts +15 -0
- package/app/models/search-row.js +20 -0
- package/app/models/search-row.js.map +1 -0
- package/app/models/search-session.d.ts +38 -0
- package/app/models/search-session.js +140 -0
- package/app/models/search-session.js.map +1 -0
- package/app/models/search-source-contribution.d.ts +75 -0
- package/app/models/search-source-contribution.js +38 -0
- package/app/models/search-source-contribution.js.map +1 -0
- package/app/models/settings/setting-options-supply.d.ts +18 -0
- package/app/models/settings/setting-options-supply.js +46 -0
- package/app/models/settings/setting-options-supply.js.map +1 -0
- package/app/models/settings/settings-group.d.ts +13 -0
- package/app/models/settings/settings-group.js +16 -0
- package/app/models/settings/settings-group.js.map +1 -0
- package/app/models/settings/settings-page-entry.d.ts +22 -0
- package/app/models/settings/settings-page-entry.js +30 -0
- package/app/models/settings/settings-page-entry.js.map +1 -0
- package/app/models/settings/settings-page.d.ts +26 -0
- package/app/models/settings/settings-page.js +62 -0
- package/app/models/settings/settings-page.js.map +1 -0
- package/app/models/settings/settings-row.d.ts +42 -0
- package/app/models/settings/settings-row.js +24 -0
- package/app/models/settings/settings-row.js.map +1 -0
- package/app/models/settings/shortcut-notice.d.ts +15 -0
- package/app/models/settings/shortcut-notice.js +20 -0
- package/app/models/settings/shortcut-notice.js.map +1 -0
- package/app/models/settings/shortcut-row.d.ts +17 -0
- package/app/models/settings/shortcut-row.js +26 -0
- package/app/models/settings/shortcut-row.js.map +1 -0
- package/app/models/settings/text-match.d.ts +16 -0
- package/app/models/settings/text-match.js +41 -0
- package/app/models/settings/text-match.js.map +1 -0
- package/app/models/settings/word-breaks.d.ts +13 -0
- package/app/models/settings/word-breaks.js +34 -0
- package/app/models/settings/word-breaks.js.map +1 -0
- package/app/models/settings-page-contribution.d.ts +46 -0
- package/app/models/settings-page-contribution.js +20 -0
- package/app/models/settings-page-contribution.js.map +1 -0
- package/app/models/shell-documents.d.ts +21 -0
- package/app/models/shell-documents.js +25 -0
- package/app/models/shell-documents.js.map +1 -0
- package/app/models/shell-menus.d.ts +16 -0
- package/app/models/shell-menus.js +97 -0
- package/app/models/shell-menus.js.map +1 -0
- package/app/models/shortcut-binding.d.ts +13 -0
- package/app/models/shortcut-binding.js +16 -0
- package/app/models/shortcut-binding.js.map +1 -0
- package/app/models/shortcut-collision.d.ts +14 -0
- package/app/models/shortcut-collision.js +18 -0
- package/app/models/shortcut-collision.js.map +1 -0
- package/app/models/shortcut-map.d.ts +27 -0
- package/app/models/shortcut-map.js +64 -0
- package/app/models/shortcut-map.js.map +1 -0
- package/app/models/spelling-offer.d.ts +15 -0
- package/app/models/spelling-offer.js +24 -0
- package/app/models/spelling-offer.js.map +1 -0
- package/app/models/startup-state.d.ts +17 -0
- package/app/models/startup-state.js +35 -0
- package/app/models/startup-state.js.map +1 -0
- package/app/models/status-bar-item-contribution.d.ts +45 -0
- package/app/models/status-bar-item-contribution.js +20 -0
- package/app/models/status-bar-item-contribution.js.map +1 -0
- package/app/models/status-bar-item-state.d.ts +82 -0
- package/app/models/status-bar-item-state.js +43 -0
- package/app/models/status-bar-item-state.js.map +1 -0
- package/app/models/status-bar-item.d.ts +62 -0
- package/app/models/status-bar-item.js +29 -0
- package/app/models/status-bar-item.js.map +1 -0
- package/app/models/submenu-row.d.ts +15 -0
- package/app/models/submenu-row.js +19 -0
- package/app/models/submenu-row.js.map +1 -0
- package/app/models/tab-content.d.ts +18 -0
- package/app/models/tab-content.js +22 -0
- package/app/models/tab-content.js.map +1 -0
- package/app/models/tab-target.d.ts +19 -0
- package/app/models/tab-target.js +30 -0
- package/app/models/tab-target.js.map +1 -0
- package/app/models/text-range.d.ts +40 -0
- package/app/models/text-range.js +25 -0
- package/app/models/text-range.js.map +1 -0
- package/app/models/toolbar-drop-target.d.ts +17 -0
- package/app/models/toolbar-drop-target.js +28 -0
- package/app/models/toolbar-drop-target.js.map +1 -0
- package/app/models/toolbar-fit.d.ts +10 -0
- package/app/models/toolbar-fit.js +17 -0
- package/app/models/toolbar-fit.js.map +1 -0
- package/app/models/toolbar-placement.d.ts +14 -0
- package/app/models/toolbar-placement.js +24 -0
- package/app/models/toolbar-placement.js.map +1 -0
- package/app/models/toolbar.d.ts +14 -0
- package/app/models/toolbar.js +18 -0
- package/app/models/toolbar.js.map +1 -0
- package/app/models/top-bar-action-contribution.d.ts +44 -0
- package/app/models/top-bar-action-contribution.js +21 -0
- package/app/models/top-bar-action-contribution.js.map +1 -0
- package/app/models/top-bar-action-state.d.ts +51 -0
- package/app/models/top-bar-action-state.js +27 -0
- package/app/models/top-bar-action-state.js.map +1 -0
- package/app/models/top-bar-action.d.ts +62 -0
- package/app/models/top-bar-action.js +29 -0
- package/app/models/top-bar-action.js.map +1 -0
- package/app/models/update-state.d.ts +23 -0
- package/app/models/update-state.js +56 -0
- package/app/models/update-state.js.map +1 -0
- package/app/models/view-badge.d.ts +37 -0
- package/app/models/view-badge.js +22 -0
- package/app/models/view-badge.js.map +1 -0
- package/app/models/view-contribution.d.ts +91 -0
- package/app/models/view-contribution.js +42 -0
- package/app/models/view-contribution.js.map +1 -0
- package/app/models/web-view-handle.d.ts +56 -0
- package/app/models/web-view-handle.js +118 -0
- package/app/models/web-view-handle.js.map +1 -0
- package/app/models/web-view-layer.d.ts +20 -0
- package/app/models/web-view-layer.js +45 -0
- package/app/models/web-view-layer.js.map +1 -0
- package/app/models/window-appearance.d.ts +18 -0
- package/app/models/window-appearance.js +61 -0
- package/app/models/window-appearance.js.map +1 -0
- package/app/models/window-application.d.ts +32 -0
- package/app/models/window-application.js +45 -0
- package/app/models/window-application.js.map +1 -0
- package/app/models/window-palette.d.ts +18 -0
- package/app/models/window-palette.js +26 -0
- package/app/models/window-palette.js.map +1 -0
- package/app/models/window-part-activation.d.ts +16 -0
- package/app/models/window-part-activation.js +18 -0
- package/app/models/window-part-activation.js.map +1 -0
- package/app/models/window-part-context.d.ts +171 -0
- package/app/models/window-part-context.js +708 -0
- package/app/models/window-part-context.js.map +1 -0
- package/app/models/window-part-source.d.ts +95 -0
- package/app/models/window-part-source.js +40 -0
- package/app/models/window-part-source.js.map +1 -0
- package/app/models/window-part-tokens.d.ts +32 -0
- package/app/models/window-part-tokens.js +15 -0
- package/app/models/window-part-tokens.js.map +1 -0
- package/app/models/window-secrets.d.ts +18 -0
- package/app/models/window-secrets.js +33 -0
- package/app/models/window-secrets.js.map +1 -0
- package/app/models/window-web-views.d.ts +18 -0
- package/app/models/window-web-views.js +34 -0
- package/app/models/window-web-views.js.map +1 -0
- package/app/services/agent-control.service.d.ts +24 -0
- package/app/services/agent-control.service.js +58 -0
- package/app/services/agent-control.service.js.map +1 -0
- package/app/services/appearance-settings.service.d.ts +12 -0
- package/app/services/appearance-settings.service.js +50 -0
- package/app/services/appearance-settings.service.js.map +1 -0
- package/app/services/bar-items.service.d.ts +22 -0
- package/app/services/bar-items.service.js +36 -0
- package/app/services/bar-items.service.js.map +1 -0
- package/app/services/clock-setting.service.d.ts +26 -0
- package/app/services/clock-setting.service.js +43 -0
- package/app/services/clock-setting.service.js.map +1 -0
- package/app/services/closing.service.d.ts +19 -0
- package/app/services/closing.service.js +99 -0
- package/app/services/closing.service.js.map +1 -0
- package/app/services/command.service.d.ts +51 -0
- package/app/services/command.service.js +178 -0
- package/app/services/command.service.js.map +1 -0
- package/app/services/details.service.d.ts +8 -0
- package/app/services/details.service.js +28 -0
- package/app/services/details.service.js.map +1 -0
- package/app/services/dialog-cover.service.d.ts +32 -0
- package/app/services/dialog-cover.service.js +102 -0
- package/app/services/dialog-cover.service.js.map +1 -0
- package/app/services/dock-growth.service.d.ts +15 -0
- package/app/services/dock-growth.service.js +63 -0
- package/app/services/dock-growth.service.js.map +1 -0
- package/app/services/document-history.service.d.ts +24 -0
- package/app/services/document-history.service.js +68 -0
- package/app/services/document-history.service.js.map +1 -0
- package/app/services/document-instances.service.d.ts +15 -0
- package/app/services/document-instances.service.js +47 -0
- package/app/services/document-instances.service.js.map +1 -0
- package/app/services/document-opener.service.d.ts +18 -0
- package/app/services/document-opener.service.js +75 -0
- package/app/services/document-opener.service.js.map +1 -0
- package/app/services/edit-target.service.d.ts +23 -0
- package/app/services/edit-target.service.js +93 -0
- package/app/services/edit-target.service.js.map +1 -0
- package/app/services/issued-file-grants.reader.d.ts +13 -0
- package/app/services/issued-file-grants.reader.js +24 -0
- package/app/services/issued-file-grants.reader.js.map +1 -0
- package/app/services/layout-menu.service.d.ts +9 -0
- package/app/services/layout-menu.service.js +32 -0
- package/app/services/layout-menu.service.js.map +1 -0
- package/app/services/layout-store.service.d.ts +10 -0
- package/app/services/layout-store.service.js +35 -0
- package/app/services/layout-store.service.js.map +1 -0
- package/app/services/layout.reader.d.ts +23 -0
- package/app/services/layout.reader.js +113 -0
- package/app/services/layout.reader.js.map +1 -0
- package/app/services/layout.service.d.ts +96 -0
- package/app/services/layout.service.js +301 -0
- package/app/services/layout.service.js.map +1 -0
- package/app/services/link.service.d.ts +34 -0
- package/app/services/link.service.js +116 -0
- package/app/services/link.service.js.map +1 -0
- package/app/services/live-view.service.d.ts +32 -0
- package/app/services/live-view.service.js +104 -0
- package/app/services/live-view.service.js.map +1 -0
- package/app/services/menu-bar.service.d.ts +28 -0
- package/app/services/menu-bar.service.js +89 -0
- package/app/services/menu-bar.service.js.map +1 -0
- package/app/services/menu.service.d.ts +34 -0
- package/app/services/menu.service.js +96 -0
- package/app/services/menu.service.js.map +1 -0
- package/app/services/module-selection.service.d.ts +18 -0
- package/app/services/module-selection.service.js +31 -0
- package/app/services/module-selection.service.js.map +1 -0
- package/app/services/module-status.service.d.ts +22 -0
- package/app/services/module-status.service.js +39 -0
- package/app/services/module-status.service.js.map +1 -0
- package/app/services/module-switch.service.d.ts +16 -0
- package/app/services/module-switch.service.js +56 -0
- package/app/services/module-switch.service.js.map +1 -0
- package/app/services/notification.service.d.ts +38 -0
- package/app/services/notification.service.js +103 -0
- package/app/services/notification.service.js.map +1 -0
- package/app/services/preload-bridge.service.d.ts +108 -0
- package/app/services/preload-bridge.service.js +461 -0
- package/app/services/preload-bridge.service.js.map +1 -0
- package/app/services/program-status.service.d.ts +27 -0
- package/app/services/program-status.service.js +75 -0
- package/app/services/program-status.service.js.map +1 -0
- package/app/services/quit.service.d.ts +17 -0
- package/app/services/quit.service.js +37 -0
- package/app/services/quit.service.js.map +1 -0
- package/app/services/recent-commands.service.d.ts +24 -0
- package/app/services/recent-commands.service.js +63 -0
- package/app/services/recent-commands.service.js.map +1 -0
- package/app/services/search-palette.service.d.ts +20 -0
- package/app/services/search-palette.service.js +66 -0
- package/app/services/search-palette.service.js.map +1 -0
- package/app/services/search.service.d.ts +20 -0
- package/app/services/search.service.js +31 -0
- package/app/services/search.service.js.map +1 -0
- package/app/services/setting-check.service.d.ts +10 -0
- package/app/services/setting-check.service.js +32 -0
- package/app/services/setting-check.service.js.map +1 -0
- package/app/services/setting-options.service.d.ts +14 -0
- package/app/services/setting-options.service.js +38 -0
- package/app/services/setting-options.service.js.map +1 -0
- package/app/services/settings-page.service.d.ts +19 -0
- package/app/services/settings-page.service.js +35 -0
- package/app/services/settings-page.service.js.map +1 -0
- package/app/services/settings-rows.service.d.ts +17 -0
- package/app/services/settings-rows.service.js +29 -0
- package/app/services/settings-rows.service.js.map +1 -0
- package/app/services/settings.service.d.ts +38 -0
- package/app/services/settings.service.js +104 -0
- package/app/services/settings.service.js.map +1 -0
- package/app/services/shell-commands.service.d.ts +61 -0
- package/app/services/shell-commands.service.js +346 -0
- package/app/services/shell-commands.service.js.map +1 -0
- package/app/services/shell-search-sources.service.d.ts +26 -0
- package/app/services/shell-search-sources.service.js +102 -0
- package/app/services/shell-search-sources.service.js.map +1 -0
- package/app/services/spelling.service.d.ts +26 -0
- package/app/services/spelling.service.js +75 -0
- package/app/services/spelling.service.js.map +1 -0
- package/app/services/startup.service.d.ts +19 -0
- package/app/services/startup.service.js +62 -0
- package/app/services/startup.service.js.map +1 -0
- package/app/services/support.service.d.ts +18 -0
- package/app/services/support.service.js +79 -0
- package/app/services/support.service.js.map +1 -0
- package/app/services/tab-destinations.service.d.ts +10 -0
- package/app/services/tab-destinations.service.js +41 -0
- package/app/services/tab-destinations.service.js.map +1 -0
- package/app/services/tab-drag.service.d.ts +33 -0
- package/app/services/tab-drag.service.js +138 -0
- package/app/services/tab-drag.service.js.map +1 -0
- package/app/services/tab-focus.service.d.ts +24 -0
- package/app/services/tab-focus.service.js +93 -0
- package/app/services/tab-focus.service.js.map +1 -0
- package/app/services/tab-label.service.d.ts +37 -0
- package/app/services/tab-label.service.js +104 -0
- package/app/services/tab-label.service.js.map +1 -0
- package/app/services/tab-rename.service.d.ts +30 -0
- package/app/services/tab-rename.service.js +82 -0
- package/app/services/tab-rename.service.js.map +1 -0
- package/app/services/tab-row.service.d.ts +16 -0
- package/app/services/tab-row.service.js +50 -0
- package/app/services/tab-row.service.js.map +1 -0
- package/app/services/tab-strip.service.d.ts +11 -0
- package/app/services/tab-strip.service.js +44 -0
- package/app/services/tab-strip.service.js.map +1 -0
- package/app/services/time-formats.service.d.ts +20 -0
- package/app/services/time-formats.service.js +40 -0
- package/app/services/time-formats.service.js.map +1 -0
- package/app/services/toast.service.d.ts +31 -0
- package/app/services/toast.service.js +143 -0
- package/app/services/toast.service.js.map +1 -0
- package/app/services/toolbar-drag.service.d.ts +21 -0
- package/app/services/toolbar-drag.service.js +105 -0
- package/app/services/toolbar-drag.service.js.map +1 -0
- package/app/services/toolbar.service.d.ts +34 -0
- package/app/services/toolbar.service.js +89 -0
- package/app/services/toolbar.service.js.map +1 -0
- package/app/services/update.service.d.ts +25 -0
- package/app/services/update.service.js +47 -0
- package/app/services/update.service.js.map +1 -0
- package/app/services/view-dialog.service.d.ts +27 -0
- package/app/services/view-dialog.service.js +107 -0
- package/app/services/view-dialog.service.js.map +1 -0
- package/app/services/view-instances.service.d.ts +27 -0
- package/app/services/view-instances.service.js +129 -0
- package/app/services/view-instances.service.js.map +1 -0
- package/app/services/web-view.service.d.ts +47 -0
- package/app/services/web-view.service.js +222 -0
- package/app/services/web-view.service.js.map +1 -0
- package/app/services/window-error-handler.d.ts +18 -0
- package/app/services/window-error-handler.js +43 -0
- package/app/services/window-error-handler.js.map +1 -0
- package/app/services/window-part-host.service.d.ts +199 -0
- package/app/services/window-part-host.service.js +793 -0
- package/app/services/window-part-host.service.js.map +1 -0
- package/app/services/window-row-overlay.service.d.ts +15 -0
- package/app/services/window-row-overlay.service.js +79 -0
- package/app/services/window-row-overlay.service.js.map +1 -0
- package/package.json +49 -3
- package/resources.d.ts +1039 -0
- package/resources.js +1451 -0
- package/resources.js.map +1 -0
- package/testing/models/fake-window-part-context.d.ts +1402 -0
- package/testing/models/fake-window-part-context.js +109 -0
- package/testing/models/fake-window-part-context.js.map +1 -0
- package/testing/models/fake-window-secrets.d.ts +109 -0
- package/testing/models/fake-window-secrets.js +14 -0
- package/testing/models/fake-window-secrets.js.map +1 -0
- package/testing/models/fake-window-web-views.d.ts +66 -0
- package/testing/models/fake-window-web-views.js +12 -0
- package/testing/models/fake-window-web-views.js.map +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TabStripService {
|
|
3
|
+
private readonly overflowingValue;
|
|
4
|
+
private readonly listRequestValue;
|
|
5
|
+
isOverflowing(groupId: number): boolean;
|
|
6
|
+
setOverflowing(groupId: number, isOverflowing: boolean): void;
|
|
7
|
+
showList(groupId: number): void;
|
|
8
|
+
takeListRequest(groupId: number): boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabStripService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Injectable, signal } from "@angular/core";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export class TabStripService {
|
|
11
|
+
overflowingValue = signal(new Set(), /* @ts-ignore */
|
|
12
|
+
...(ngDevMode ? [{ debugName: "overflowingValue" }] : /* istanbul ignore next */ []));
|
|
13
|
+
listRequestValue = signal(null, /* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [{ debugName: "listRequestValue" }] : /* istanbul ignore next */ []));
|
|
15
|
+
isOverflowing(groupId) {
|
|
16
|
+
return this.overflowingValue().has(groupId);
|
|
17
|
+
}
|
|
18
|
+
setOverflowing(groupId, isOverflowing) {
|
|
19
|
+
this.overflowingValue.update(t => {
|
|
20
|
+
const next = new Set(t);
|
|
21
|
+
if (isOverflowing)
|
|
22
|
+
next.add(groupId);
|
|
23
|
+
else
|
|
24
|
+
next.delete(groupId);
|
|
25
|
+
return next;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
showList(groupId) {
|
|
29
|
+
this.listRequestValue.set(groupId);
|
|
30
|
+
}
|
|
31
|
+
takeListRequest(groupId) {
|
|
32
|
+
if (this.listRequestValue() !== groupId)
|
|
33
|
+
return false;
|
|
34
|
+
this.listRequestValue.set(null);
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabStripService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabStripService, providedIn: "root" });
|
|
39
|
+
}
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabStripService, decorators: [{
|
|
41
|
+
type: Injectable,
|
|
42
|
+
args: [{ providedIn: "root" }]
|
|
43
|
+
}] });
|
|
44
|
+
//# sourceMappingURL=tab-strip.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-strip.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/tab-strip.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAuB,MAAM,EAAE,MAAM,eAAe,CAAC;;AAGxE,MAAM,OAAO,eAAe;IACT,gBAAgB,GAAwC,MAAM,CAAC,IAAI,GAAG,EAAE;yFAAC,CAAC;IAC1E,gBAAgB,GAAkC,MAAM,CAAC,IAAI;yFAAC,CAAC;IAEzE,aAAa,CAAC,OAAe;QAClC,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAEM,cAAc,CAAC,OAAe,EAAE,aAAsB;QAC3D,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YAC/B,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;YACxB,IAAI,aAAa;gBACf,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;;gBAElB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACvB,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,QAAQ,CAAC,OAAe;QAC7B,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAEM,eAAe,CAAC,OAAe;QACpC,IAAI,IAAI,CAAC,gBAAgB,EAAE,KAAK,OAAO;YACrC,OAAO,KAAK,CAAC;QACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;uGA5BU,eAAe;2GAAf,eAAe,cADF,MAAM;;2FACnB,eAAe;kBAD3B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { type Signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { TimeFormats } from "@noldova/ui.components.angular";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class TimeFormatsService {
|
|
13
|
+
private readonly settings;
|
|
14
|
+
private readonly time;
|
|
15
|
+
private readonly dateTime;
|
|
16
|
+
readonly formats: Signal<TimeFormats>;
|
|
17
|
+
private patternOf;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeFormatsService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
20
|
+
}
|
|
@@ -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 { Injectable, computed, inject } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { DatePattern } from "@noldova/desktop.protocol";
|
|
11
|
+
import { TimeFormats } from "@noldova/ui.components.angular";
|
|
12
|
+
import { ClockChoice } from "../enums/clock-choice.js";
|
|
13
|
+
import { Resources } from "../../resources.js";
|
|
14
|
+
import { SettingsService } from "./settings.service.js";
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export class TimeFormatsService {
|
|
17
|
+
settings = inject(SettingsService);
|
|
18
|
+
time = this.patternOf(Resources.timeFormatSetting, Resources.clockFormats[ClockChoice.TwelveHour][0]);
|
|
19
|
+
dateTime = this.patternOf(Resources.dateTimeFormatSetting, Resources.clockFormats[ClockChoice.TwelveHour][1]);
|
|
20
|
+
formats = computed(() => {
|
|
21
|
+
const time = this.time();
|
|
22
|
+
const dateTime = this.dateTime();
|
|
23
|
+
return new TimeFormats(t => DatePattern.format(t, time), t => DatePattern.format(t, dateTime));
|
|
24
|
+
}, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "formats" }] : /* istanbul ignore next */ []));
|
|
26
|
+
patternOf(name, fallback) {
|
|
27
|
+
const value = this.settings.value(name);
|
|
28
|
+
return computed(() => {
|
|
29
|
+
const pattern = value();
|
|
30
|
+
return Object.isString(pattern) && pattern.trim().length > 0 ? pattern : fallback;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TimeFormatsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
34
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TimeFormatsService, providedIn: "root" });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TimeFormatsService, decorators: [{
|
|
37
|
+
type: Injectable,
|
|
38
|
+
args: [{ providedIn: "root" }]
|
|
39
|
+
}] });
|
|
40
|
+
//# sourceMappingURL=time-formats.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-formats.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/time-formats.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;;AAGxD,MAAM,OAAO,kBAAkB;IACZ,QAAQ,GAAoB,MAAM,CAAC,eAAe,CAAC,CAAC;IACpD,IAAI,GAAmB,IAAI,CAA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.core";
|
|
3
|
+
import { type Notification } from "@noldova/desktop.protocol";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ToastService {
|
|
6
|
+
private readonly notifications;
|
|
7
|
+
private readonly document;
|
|
8
|
+
private readonly announcer;
|
|
9
|
+
private readonly visibleIds;
|
|
10
|
+
private readonly lastByKind;
|
|
11
|
+
private readonly timers;
|
|
12
|
+
private queue;
|
|
13
|
+
private shown;
|
|
14
|
+
private firstRead;
|
|
15
|
+
private highestSequence;
|
|
16
|
+
readonly toasts: Signal<readonly Notification[]>;
|
|
17
|
+
constructor();
|
|
18
|
+
close(id: string): void;
|
|
19
|
+
pause(id: string): void;
|
|
20
|
+
resume(id: string): void;
|
|
21
|
+
private remove;
|
|
22
|
+
private follow;
|
|
23
|
+
private offer;
|
|
24
|
+
private show;
|
|
25
|
+
private announce;
|
|
26
|
+
private startTimer;
|
|
27
|
+
private static closesByItself;
|
|
28
|
+
private static clear;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
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 { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
9
|
+
import { DOCUMENT } from "@angular/common";
|
|
10
|
+
import { DestroyRef, Injectable, computed, effect, inject, signal, untracked } from "@angular/core";
|
|
11
|
+
import "@noldova/context.core";
|
|
12
|
+
import { NotificationPost, NotificationSeverity } from "@noldova/desktop.protocol";
|
|
13
|
+
import { Resources } from "../../resources.js";
|
|
14
|
+
import { NotificationService } from "./notification.service.js";
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export class ToastService {
|
|
17
|
+
notifications = inject(NotificationService);
|
|
18
|
+
document = inject(DOCUMENT);
|
|
19
|
+
announcer = inject(LiveAnnouncer);
|
|
20
|
+
visibleIds = signal([], /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "visibleIds" }] : /* istanbul ignore next */ []));
|
|
22
|
+
lastByKind = new Map();
|
|
23
|
+
timers = new Map();
|
|
24
|
+
queue = [];
|
|
25
|
+
shown = [];
|
|
26
|
+
firstRead = null;
|
|
27
|
+
highestSequence = 0;
|
|
28
|
+
toasts = computed(() => {
|
|
29
|
+
const notifications = this.notifications.state().notifications;
|
|
30
|
+
return this.visibleIds().flatMap(t => notifications.filter(u => u.id === t));
|
|
31
|
+
}, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []));
|
|
33
|
+
constructor() {
|
|
34
|
+
effect(() => {
|
|
35
|
+
const state = this.notifications.state();
|
|
36
|
+
const firstRead = this.notifications.firstRead();
|
|
37
|
+
if (!Object.isNull(firstRead))
|
|
38
|
+
untracked(() => this.follow(state, firstRead));
|
|
39
|
+
});
|
|
40
|
+
inject(DestroyRef).onDestroy(() => {
|
|
41
|
+
for (const timer of this.timers.values())
|
|
42
|
+
ToastService.clear(timer.handle);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
close(id) {
|
|
46
|
+
this.remove(id);
|
|
47
|
+
this.announce();
|
|
48
|
+
}
|
|
49
|
+
pause(id) {
|
|
50
|
+
const timer = this.timers.get(id);
|
|
51
|
+
if (Object.isUndefined(timer) || Object.isNull(timer.handle))
|
|
52
|
+
return;
|
|
53
|
+
ToastService.clear(timer.handle);
|
|
54
|
+
this.timers.set(id, { handle: null, remaining: Math.max(0, timer.remaining - (Date.now() - timer.startedAt)), startedAt: Date.now() });
|
|
55
|
+
}
|
|
56
|
+
resume(id) {
|
|
57
|
+
const timer = this.timers.get(id);
|
|
58
|
+
if (Object.isUndefined(timer) || !Object.isNull(timer.handle))
|
|
59
|
+
return;
|
|
60
|
+
this.startTimer(id, timer.remaining);
|
|
61
|
+
}
|
|
62
|
+
remove(id) {
|
|
63
|
+
const timer = this.timers.get(id);
|
|
64
|
+
ToastService.clear(timer?.handle ?? null);
|
|
65
|
+
this.timers.delete(id);
|
|
66
|
+
this.queue = this.queue.filter(t => t !== id);
|
|
67
|
+
if (!this.visibleIds().includes(id))
|
|
68
|
+
return;
|
|
69
|
+
this.visibleIds.update(t => t.filter(u => u !== id));
|
|
70
|
+
let next = this.queue.shift();
|
|
71
|
+
while (!Object.isUndefined(next) && !this.show(next))
|
|
72
|
+
next = this.queue.shift();
|
|
73
|
+
}
|
|
74
|
+
follow(state, firstRead) {
|
|
75
|
+
const notifications = state.notifications;
|
|
76
|
+
if (firstRead !== this.firstRead) {
|
|
77
|
+
this.firstRead = firstRead;
|
|
78
|
+
this.highestSequence = firstRead.sequence;
|
|
79
|
+
}
|
|
80
|
+
const highest = this.highestSequence;
|
|
81
|
+
this.highestSequence = Math.max(highest, ...notifications.map(t => t.sequence));
|
|
82
|
+
for (const id of [...this.visibleIds(), ...this.queue])
|
|
83
|
+
if (!notifications.some(t => t.id === id))
|
|
84
|
+
this.remove(id);
|
|
85
|
+
for (const notification of [...notifications].reverse())
|
|
86
|
+
if (notification.sequence > highest)
|
|
87
|
+
this.offer(notification, state);
|
|
88
|
+
for (const notification of notifications)
|
|
89
|
+
if (this.visibleIds().includes(notification.id) && !this.timers.has(notification.id) && ToastService.closesByItself(notification))
|
|
90
|
+
this.startTimer(notification.id, Resources.toastDuration);
|
|
91
|
+
this.announce();
|
|
92
|
+
}
|
|
93
|
+
offer(notification, state) {
|
|
94
|
+
if (state.isDoNotDisturb || state.mutedModules.includes(notification.post.kind.owner) || notification.isRead || !this.document.hasFocus() || this.visibleIds().includes(notification.id) || this.queue.includes(notification.id))
|
|
95
|
+
return;
|
|
96
|
+
const now = Date.now();
|
|
97
|
+
const last = this.lastByKind.get(notification.post.kind.text);
|
|
98
|
+
if (!Object.isUndefined(last) && now - last < Resources.toastKindInterval)
|
|
99
|
+
return;
|
|
100
|
+
this.lastByKind.set(notification.post.kind.text, now);
|
|
101
|
+
if (this.visibleIds().length < Resources.toastLimit)
|
|
102
|
+
this.show(notification.id);
|
|
103
|
+
else
|
|
104
|
+
this.queue.push(notification.id);
|
|
105
|
+
}
|
|
106
|
+
show(id) {
|
|
107
|
+
const notification = this.notifications.state().notifications.find(t => t.id === id);
|
|
108
|
+
if (Object.isUndefined(notification))
|
|
109
|
+
return false;
|
|
110
|
+
this.visibleIds.update(t => [...t, id]);
|
|
111
|
+
this.shown.push(notification);
|
|
112
|
+
if (ToastService.closesByItself(notification))
|
|
113
|
+
this.startTimer(id, Resources.toastDuration);
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
announce() {
|
|
117
|
+
const shown = this.shown;
|
|
118
|
+
this.shown = [];
|
|
119
|
+
if (shown.length === 0)
|
|
120
|
+
return;
|
|
121
|
+
const text = shown.map(t => Object.isNull(t.post.text) ? t.post.title : Resources.formatAnnouncement(t.post.title, t.post.text)).join(Resources.announcementSeparator);
|
|
122
|
+
void this.announcer.announce(text, shown.some(t => t.post.severity === NotificationSeverity.Error) ? Resources.assertiveAnnouncement : Resources.politeAnnouncement);
|
|
123
|
+
}
|
|
124
|
+
startTimer(id, milliseconds) {
|
|
125
|
+
this.timers.set(id, { handle: setTimeout(() => this.close(id), milliseconds), remaining: milliseconds, startedAt: Date.now() });
|
|
126
|
+
}
|
|
127
|
+
static closesByItself(notification) {
|
|
128
|
+
const progress = notification.post.progress;
|
|
129
|
+
const isInProgress = progress === NotificationPost.indeterminate || (Object.isNumber(progress) && progress < 1);
|
|
130
|
+
return !isInProgress && (notification.post.severity === NotificationSeverity.Info || notification.post.severity === NotificationSeverity.Success);
|
|
131
|
+
}
|
|
132
|
+
static clear(handle) {
|
|
133
|
+
if (!Object.isNull(handle))
|
|
134
|
+
clearTimeout(handle);
|
|
135
|
+
}
|
|
136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
137
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToastService, providedIn: "root" });
|
|
138
|
+
}
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToastService, decorators: [{
|
|
140
|
+
type: Injectable,
|
|
141
|
+
args: [{ providedIn: "root" }]
|
|
142
|
+
}], ctorParameters: () => [] });
|
|
143
|
+
//# sourceMappingURL=toast.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/toast.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAoC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEtI,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAqB,gBAAgB,EAAE,oBAAoB,EAA0B,MAAM,2BAA2B,CAAC;AAE9H,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;;AAGhE,MAAM,OAAO,YAAY;IACN,aAAa,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACjE,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtC,SAAS,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;IACjD,UAAU,GAAsC,MAAM,CAAC,EAAE;mFAAC,CAAC;IAC3D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,CAAC,CAAC;IACzB,CAAC;uGAlIU,YAAY;2GAAZ,YAAY,cADC,MAAM;;2FACnB,YAAY;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Signal } from "@angular/core";
|
|
2
|
+
import "@noldova/context.core";
|
|
3
|
+
import { ToolbarDropTarget } from "../models/toolbar-drop-target.js";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ToolbarDragService {
|
|
6
|
+
private readonly document;
|
|
7
|
+
private readonly toolbars;
|
|
8
|
+
private readonly draggingState;
|
|
9
|
+
private readonly targetState;
|
|
10
|
+
private pointer;
|
|
11
|
+
readonly dragging: Signal<string | null>;
|
|
12
|
+
readonly target: Signal<ToolbarDropTarget | null>;
|
|
13
|
+
begin(name: string, event: PointerEvent): void;
|
|
14
|
+
private move;
|
|
15
|
+
private end;
|
|
16
|
+
private stop;
|
|
17
|
+
private targetAt;
|
|
18
|
+
private rowTarget;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarDragService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { DOCUMENT } from "@angular/common";
|
|
9
|
+
import { Injectable, inject, signal } from "@angular/core";
|
|
10
|
+
import "@noldova/context.core";
|
|
11
|
+
import { DragGesture, PointerDrag } from "@noldova/ui.components.angular";
|
|
12
|
+
import { Resources } from "../../resources.js";
|
|
13
|
+
import { ToolbarDropTarget } from "../models/toolbar-drop-target.js";
|
|
14
|
+
import { ToolbarService } from "./toolbar.service.js";
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export class ToolbarDragService {
|
|
17
|
+
document = inject(DOCUMENT);
|
|
18
|
+
toolbars = inject(ToolbarService);
|
|
19
|
+
draggingState = signal(null, /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "draggingState" }] : /* istanbul ignore next */ []));
|
|
21
|
+
targetState = signal(null, /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "targetState" }] : /* istanbul ignore next */ []));
|
|
23
|
+
pointer = null;
|
|
24
|
+
dragging = this.draggingState.asReadonly();
|
|
25
|
+
target = this.targetState.asReadonly();
|
|
26
|
+
begin(name, event) {
|
|
27
|
+
if (event.button !== Resources.primaryButton)
|
|
28
|
+
return;
|
|
29
|
+
this.stop();
|
|
30
|
+
const startX = event.clientX;
|
|
31
|
+
const startY = event.clientY;
|
|
32
|
+
this.pointer = new PointerDrag(this.document.documentElement, event, moved => this.move(name, startX, startY, moved), () => this.end(), () => this.stop());
|
|
33
|
+
}
|
|
34
|
+
move(name, startX, startY, event) {
|
|
35
|
+
if (Object.isNull(this.draggingState())) {
|
|
36
|
+
if (!DragGesture.hasStarted(startX, startY, event.clientX, event.clientY))
|
|
37
|
+
return;
|
|
38
|
+
this.draggingState.set(name);
|
|
39
|
+
this.pointer?.start();
|
|
40
|
+
}
|
|
41
|
+
const target = this.targetAt(name, event.clientX, event.clientY);
|
|
42
|
+
if (!(target?.equals(this.targetState()) ?? Object.isNull(this.targetState())))
|
|
43
|
+
this.targetState.set(target);
|
|
44
|
+
}
|
|
45
|
+
end() {
|
|
46
|
+
const name = this.draggingState();
|
|
47
|
+
const target = this.targetState();
|
|
48
|
+
this.stop();
|
|
49
|
+
if (Object.isNull(name) || Object.isNull(target))
|
|
50
|
+
return;
|
|
51
|
+
if (target.isNewRow)
|
|
52
|
+
this.toolbars.moveToNewRow(name, target.row);
|
|
53
|
+
else
|
|
54
|
+
this.toolbars.move(name, target.row, target.index);
|
|
55
|
+
}
|
|
56
|
+
stop() {
|
|
57
|
+
this.pointer?.stop();
|
|
58
|
+
this.pointer = null;
|
|
59
|
+
this.draggingState.set(null);
|
|
60
|
+
this.targetState.set(null);
|
|
61
|
+
}
|
|
62
|
+
targetAt(name, x, y) {
|
|
63
|
+
const bandElement = this.document.querySelector(Resources.toolbarBandSelector);
|
|
64
|
+
const rows = [...this.document.querySelectorAll(Resources.toolbarRowSelector)];
|
|
65
|
+
const lastRow = rows.at(-1);
|
|
66
|
+
if (Object.isNull(bandElement) || Object.isUndefined(lastRow))
|
|
67
|
+
return null;
|
|
68
|
+
const band = bandElement.getBoundingClientRect();
|
|
69
|
+
if (x < band.left || x > band.right || y < band.top || y > band.bottom)
|
|
70
|
+
return null;
|
|
71
|
+
const element = rows.find(t => y <= t.getBoundingClientRect().bottom) ?? lastRow;
|
|
72
|
+
const rect = element.getBoundingClientRect();
|
|
73
|
+
const row = Number(element.dataset[Resources.toolbarRowData]);
|
|
74
|
+
const edge = rect.height / Resources.toolbarEdgeFraction;
|
|
75
|
+
const halfGap = parseFloat(getComputedStyle(bandElement).rowGap) / 2;
|
|
76
|
+
if (y < rect.top + edge)
|
|
77
|
+
return new ToolbarDropTarget(row, 0, true, rect.left, rect.top - halfGap, rect.width);
|
|
78
|
+
if (y > rect.bottom - edge)
|
|
79
|
+
return new ToolbarDropTarget(row + 1, 0, true, rect.left, rect.bottom + halfGap, rect.width);
|
|
80
|
+
return this.rowTarget(name, element, row, rect, x);
|
|
81
|
+
}
|
|
82
|
+
rowTarget(name, element, row, rect, x) {
|
|
83
|
+
const items = [...element.querySelectorAll(Resources.toolbarSelector)].filter(t => t.dataset[Resources.toolbarData] !== name);
|
|
84
|
+
const isRightToLeft = getComputedStyle(element).direction === Resources.rightToLeft;
|
|
85
|
+
const start = (box) => isRightToLeft ? box.right : box.left;
|
|
86
|
+
const end = (box) => isRightToLeft ? box.left : box.right;
|
|
87
|
+
const isBefore = (box) => isRightToLeft ? x > box.left + box.width / 2 : x < box.left + box.width / 2;
|
|
88
|
+
const next = items.map(t => ({ element: t, box: t.getBoundingClientRect() })).find(t => isBefore(t.box));
|
|
89
|
+
const last = items.at(-1)?.getBoundingClientRect();
|
|
90
|
+
const length = this.toolbars.rows()[row]?.length ?? 0;
|
|
91
|
+
const dragged = this.toolbars.rows().flatMap((t, r) => t.map((u, i) => ({ name: u.name, row: r, index: i }))).find(t => t.name === name);
|
|
92
|
+
const before = Object.isUndefined(next) ? length : Number(next.element.dataset[Resources.toolbarIndexData]);
|
|
93
|
+
const index = dragged?.row === row && dragged.index < before ? before - 1 : before;
|
|
94
|
+
const bar = (element.querySelector(Resources.toolbarSelector) ?? element).getBoundingClientRect();
|
|
95
|
+
const edge = Object.isUndefined(next) ? (Object.isUndefined(last) ? start(rect) : end(last)) : start(next.box);
|
|
96
|
+
return new ToolbarDropTarget(row, index, false, edge, bar.top + bar.height / 2, 0);
|
|
97
|
+
}
|
|
98
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarDragService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
99
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarDragService, providedIn: "root" });
|
|
100
|
+
}
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarDragService, decorators: [{
|
|
102
|
+
type: Injectable,
|
|
103
|
+
args: [{ providedIn: "root" }]
|
|
104
|
+
}] });
|
|
105
|
+
//# sourceMappingURL=toolbar-drag.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-drag.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/toolbar-drag.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAo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,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC5G,MAAM,KAAK,GAAG,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;QACnF,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAc,SAAS,CAAC,eAAe,CAAC,IAAI,OAAO,CAAC,CAAC,qBAAqB,EAAE,CAAC;QAC/G,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/G,OAAO,IAAI,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACrF,CAAC;uGAtFU,kBAAkB;2GAAlB,kBAAkB,cADL,MAAM;;2FACnB,kBAAkB;kBAD9B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { type Signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { ToolbarMove } from "../enums/toolbar-move.js";
|
|
11
|
+
import type { MenuPlace } from "../models/menu-place.js";
|
|
12
|
+
import { Toolbar } from "../models/toolbar.js";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class ToolbarService {
|
|
15
|
+
private readonly layout;
|
|
16
|
+
private readonly menus;
|
|
17
|
+
private readonly arrangement;
|
|
18
|
+
readonly places: Signal<readonly MenuPlace[]>;
|
|
19
|
+
readonly shown: Signal<readonly string[]>;
|
|
20
|
+
readonly rows: Signal<readonly (readonly Toolbar[])[]>;
|
|
21
|
+
readonly hasContent: Signal<boolean>;
|
|
22
|
+
constructor();
|
|
23
|
+
isShown(name: string): boolean;
|
|
24
|
+
isKnown(name: string): boolean;
|
|
25
|
+
setShown(name: string, isShown: boolean): void;
|
|
26
|
+
move(name: string, row: number, index: number): void;
|
|
27
|
+
moveToNewRow(name: string, row: number): void;
|
|
28
|
+
canMove(name: string, move: ToolbarMove): boolean;
|
|
29
|
+
moveBy(name: string, move: ToolbarMove): void;
|
|
30
|
+
private destination;
|
|
31
|
+
private toolbarsOf;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { Injectable, computed, inject } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { Resources } from "../../resources.js";
|
|
11
|
+
import { ToolbarMove } from "../enums/toolbar-move.js";
|
|
12
|
+
import { MenuItem } from "../models/menu-item.js";
|
|
13
|
+
import { Toolbar } from "../models/toolbar.js";
|
|
14
|
+
import { LayoutService } from "./layout.service.js";
|
|
15
|
+
import { MenuService } from "./menu.service.js";
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export class ToolbarService {
|
|
18
|
+
layout = inject(LayoutService);
|
|
19
|
+
menus = inject(MenuService);
|
|
20
|
+
arrangement = computed(() => this.layout.layout().toolbars.shownRows(this.places()), /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "arrangement" }] : /* istanbul ignore next */ []));
|
|
22
|
+
places = computed(() => this.menus.active().flatMap(t => t.places).filter(t => !Object.isNull(t.toolbar)), /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "places" }] : /* istanbul ignore next */ []));
|
|
24
|
+
shown = computed(() => this.arrangement().flat(), /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
26
|
+
rows = computed(() => this.arrangement().map(row => row.flatMap(name => this.toolbarsOf(name))), /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
28
|
+
hasContent = computed(() => this.rows().some(row => row.some(t => t.sections.length > 0)), /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "hasContent" }] : /* istanbul ignore next */ []));
|
|
30
|
+
constructor() {
|
|
31
|
+
this.menus.provideGroup(Resources.toolbarListGroup, () => this.places().map(t => MenuItem.ofCommand(Resources.toggleToolbarCommand, { [Resources.toolbarArgument]: t.name }, t.title)));
|
|
32
|
+
}
|
|
33
|
+
isShown(name) {
|
|
34
|
+
return this.shown().includes(name);
|
|
35
|
+
}
|
|
36
|
+
isKnown(name) {
|
|
37
|
+
return this.places().some(t => t.name === name);
|
|
38
|
+
}
|
|
39
|
+
setShown(name, isShown) {
|
|
40
|
+
const toolbars = this.layout.layout().toolbars;
|
|
41
|
+
this.layout.setToolbars(isShown ? toolbars.show(name, this.places()) : toolbars.hide(name, this.places()));
|
|
42
|
+
}
|
|
43
|
+
move(name, row, index) {
|
|
44
|
+
this.layout.setToolbars(this.layout.layout().toolbars.move(name, row, index, this.places()));
|
|
45
|
+
}
|
|
46
|
+
moveToNewRow(name, row) {
|
|
47
|
+
this.layout.setToolbars(this.layout.layout().toolbars.moveToNewRow(name, row, this.places()));
|
|
48
|
+
}
|
|
49
|
+
canMove(name, move) {
|
|
50
|
+
return !Object.isNull(this.destination(name, move));
|
|
51
|
+
}
|
|
52
|
+
moveBy(name, move) {
|
|
53
|
+
const destination = this.destination(name, move);
|
|
54
|
+
if (Object.isNull(destination))
|
|
55
|
+
return;
|
|
56
|
+
if (destination.isNewRow)
|
|
57
|
+
this.moveToNewRow(name, destination.row);
|
|
58
|
+
else
|
|
59
|
+
this.move(name, destination.row, destination.index);
|
|
60
|
+
}
|
|
61
|
+
destination(name, move) {
|
|
62
|
+
const rows = this.arrangement();
|
|
63
|
+
const row = rows.findIndex(t => t.includes(name));
|
|
64
|
+
const current = rows[row] ?? [];
|
|
65
|
+
const index = current.indexOf(name);
|
|
66
|
+
const into = (target) => ({ row: target, index: Math.min(index, rows.slice(target, target + 1).flat().length), isNewRow: false });
|
|
67
|
+
const alone = current.length < 2;
|
|
68
|
+
switch (move) {
|
|
69
|
+
case ToolbarMove.Left:
|
|
70
|
+
return index > 0 ? { row, index: index - 1, isNewRow: false } : null;
|
|
71
|
+
case ToolbarMove.Right:
|
|
72
|
+
return index >= 0 && index < current.length - 1 ? { row, index: index + 1, isNewRow: false } : null;
|
|
73
|
+
case ToolbarMove.Up:
|
|
74
|
+
return row > 0 ? into(row - 1) : row === 0 && !alone ? { row: 0, index: 0, isNewRow: true } : null;
|
|
75
|
+
case ToolbarMove.Down:
|
|
76
|
+
return row >= 0 && row < rows.length - 1 ? into(row + 1) : row >= 0 && !alone ? { row: rows.length, index: 0, isNewRow: true } : null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
toolbarsOf(name) {
|
|
80
|
+
return this.places().filter(t => t.name === name).map(t => new Toolbar(t.name, t.title, this.menus.resolve(t.name)));
|
|
81
|
+
}
|
|
82
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
83
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarService, providedIn: "root" });
|
|
84
|
+
}
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarService, decorators: [{
|
|
86
|
+
type: Injectable,
|
|
87
|
+
args: [{ providedIn: "root" }]
|
|
88
|
+
}], ctorParameters: () => [] });
|
|
89
|
+
//# sourceMappingURL=toolbar.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/toolbar.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;;AAGhD,MAAM,OAAO,cAAc;IACR,MAAM,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;IAC9C,KAAK,GAAgB,MAAM,CAAC,WAAW,CAAC,CAAC;IACzC,WAAW,GAA2C,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,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AAC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACvH,CAAC;uGAvEU,cAAc;2GAAd,cAAc,cADD,MAAM;;2FACnB,cAAc;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { type Signal } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import type { UpdateAction } from "../enums/update-action.js";
|
|
11
|
+
import { UpdateState } from "../models/update-state.js";
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class UpdateService {
|
|
14
|
+
private readonly bridge;
|
|
15
|
+
private readonly errors;
|
|
16
|
+
private readonly pages;
|
|
17
|
+
private readonly stateValue;
|
|
18
|
+
private updatesSeen;
|
|
19
|
+
readonly state: Signal<UpdateState>;
|
|
20
|
+
constructor();
|
|
21
|
+
act(action: UpdateAction): void;
|
|
22
|
+
openAbout(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
25
|
+
}
|