@noldova/desktop.window 0.0.6 → 0.0.7
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/app/components/about/about.component.js +3 -3
- package/app/components/dock/dock.component.js +3 -3
- package/app/components/docking-guides/docking-guides.component.js +3 -3
- package/app/components/empty-window/empty-window.component.js +3 -3
- package/app/components/field-menu/field-menu.component.js +3 -3
- package/app/components/highlighted-text/highlighted-text.component.js +3 -3
- package/app/components/link-menu/link-menu.component.js +3 -3
- package/app/components/module-actions/module-actions.component.js +3 -3
- package/app/components/module-failure-card/module-failure-card.component.js +3 -3
- package/app/components/module-failures/module-failures.component.js +3 -3
- package/app/components/module-switch/module-switch.component.js +3 -3
- package/app/components/modules/modules.component.js +3 -3
- package/app/components/notifications/notifications.component.js +3 -3
- package/app/components/notifications-popover/notifications-popover.component.js +3 -3
- package/app/components/place-menu/place-menu.component.js +3 -3
- package/app/components/placeholder-content/placeholder-content.component.js +3 -3
- package/app/components/quit-dialog/quit-dialog.component.js +3 -3
- package/app/components/runtime-status/runtime-status.component.js +3 -3
- package/app/components/search-palette/search-palette.component.js +3 -3
- package/app/components/setting-row/setting-row.component.js +3 -3
- package/app/components/settings/settings.component.js +3 -3
- package/app/components/settings-page-host/settings-page-host.component.js +3 -3
- package/app/components/shortcuts/shortcuts.component.js +3 -3
- package/app/components/split-sash/split-sash.component.js +3 -3
- package/app/components/startup/startup.component.js +3 -3
- package/app/components/status-bar/status-bar.component.js +3 -3
- package/app/components/status-bar-item/status-bar-item.component.js +3 -3
- package/app/components/tab-content/tab-content.component.js +3 -3
- package/app/components/tab-group/tab-group.component.js +3 -3
- package/app/components/tab-row-actions/tab-row-actions.component.js +3 -3
- package/app/components/tab-slot/tab-slot.component.js +3 -3
- package/app/components/toasts/toasts.component.js +3 -3
- package/app/components/toolbar/toolbar.component.js +3 -3
- package/app/components/toolbar-band/toolbar-band.component.js +3 -3
- package/app/components/update-item/update-item.component.js +3 -3
- package/app/components/view-dialog/view-dialog.component.js +3 -3
- package/app/components/window/window.component.js +3 -3
- package/app/components/window-controls/window-controls.component.js +3 -3
- package/app/components/window-row/window-row.component.js +3 -3
- package/app/components/workspace/workspace.component.js +3 -3
- package/app/directives/keeps-ctrl-keys.directive.js +3 -3
- package/app/directives/tab-scroller.directive.js +3 -3
- package/app/interfaces/i-view-options.d.ts +17 -0
- package/app/models/layout/layout.d.ts +1 -0
- package/app/models/layout/layout.js +11 -3
- package/app/models/layout/layout.js.map +1 -1
- package/app/models/layout/view-type.d.ts +3 -1
- package/app/models/layout/view-type.js +5 -1
- package/app/models/layout/view-type.js.map +1 -1
- package/app/models/view-contribution.d.ts +18 -3
- package/app/models/view-contribution.js +6 -0
- package/app/models/view-contribution.js.map +1 -1
- package/app/services/agent-control.service.js +3 -3
- package/app/services/appearance-settings.service.js +3 -3
- package/app/services/bar-items.service.js +3 -3
- package/app/services/clock-setting.service.js +3 -3
- package/app/services/closing.service.js +3 -3
- package/app/services/command.service.js +3 -3
- package/app/services/details.service.js +3 -3
- package/app/services/dialog-cover.service.js +3 -3
- package/app/services/dock-growth.service.js +3 -3
- package/app/services/document-history.service.js +3 -3
- package/app/services/document-instances.service.js +3 -3
- package/app/services/document-opener.service.js +3 -3
- package/app/services/edit-target.service.js +3 -3
- package/app/services/layout-menu.service.js +3 -3
- package/app/services/layout-store.service.js +3 -3
- package/app/services/layout.service.js +3 -3
- package/app/services/link.service.js +3 -3
- package/app/services/live-view.service.js +3 -3
- package/app/services/menu-bar.service.js +3 -3
- package/app/services/menu.service.js +3 -3
- package/app/services/module-selection.service.js +3 -3
- package/app/services/module-status.service.js +3 -3
- package/app/services/module-switch.service.js +3 -3
- package/app/services/notification.service.js +3 -3
- package/app/services/pane-keys.service.js +3 -3
- package/app/services/preload-bridge.service.js +3 -3
- package/app/services/program-status.service.js +3 -3
- package/app/services/quit.service.js +3 -3
- package/app/services/recent-commands.service.js +3 -3
- package/app/services/region-focus.service.js +3 -3
- package/app/services/search-palette.service.js +3 -3
- package/app/services/search.service.js +3 -3
- package/app/services/setting-check.service.js +3 -3
- package/app/services/setting-options.service.js +3 -3
- package/app/services/settings-page.service.js +3 -3
- package/app/services/settings-rows.service.js +3 -3
- package/app/services/settings.service.js +3 -3
- package/app/services/shell-commands.service.js +3 -3
- package/app/services/shell-search-sources.service.js +3 -3
- package/app/services/spelling.service.js +3 -3
- package/app/services/startup.service.js +3 -3
- package/app/services/support.service.js +3 -3
- package/app/services/tab-destinations.service.js +3 -3
- package/app/services/tab-drag.service.js +3 -3
- package/app/services/tab-focus.service.js +3 -3
- package/app/services/tab-label.service.js +3 -3
- package/app/services/tab-rename.service.js +3 -3
- package/app/services/tab-row.service.js +3 -3
- package/app/services/tab-strip.service.js +3 -3
- package/app/services/time-formats.service.js +3 -3
- package/app/services/toast.service.js +3 -3
- package/app/services/toolbar-drag.service.js +3 -3
- package/app/services/toolbar.service.js +3 -3
- package/app/services/update.service.js +3 -3
- package/app/services/view-dialog.service.js +3 -3
- package/app/services/view-instances.service.js +3 -3
- package/app/services/web-view.service.js +3 -3
- package/app/services/window-error-handler.js +3 -3
- package/app/services/window-part-host.service.js +5 -5
- package/app/services/window-part-host.service.js.map +1 -1
- package/app/services/window-row-overlay.service.js +3 -3
- package/package.json +11 -11
- package/resources.d.ts +1 -0
- package/resources.js +1 -0
- package/resources.js.map +1 -1
|
@@ -27,10 +27,10 @@ export class TabRowActionsComponent {
|
|
|
27
27
|
run(row) {
|
|
28
28
|
this.tabRows.run(row);
|
|
29
29
|
}
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
31
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabRowActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: TabRowActionsComponent, isStandalone: true, selector: "nol-tab-row-actions", inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@for (row of rows(); track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"row.context\" />\n <button type=\"button\" nol-icon-button class=\"nol-tab-row-submenu\" [attr.data-submenu]=\"row.place\" [icon]=\"row.icon ?? resources.tabRowSubmenuGlyph\" [label]=\"row.title\"\n [nolTooltip]=\"row.title\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"nested.menu()\" [nolMenuAlignment]=\"end\"></button>\n } @else {\n <button type=\"button\" nol-icon-button class=\"nol-tab-row-command\" [attr.data-command]=\"row.command\" [icon]=\"row.icon ?? resources.tabRowCommandGlyph\" [label]=\"row.title\"\n [attr.aria-disabled]=\"row.isEnabled ? null : 'true'\" [nolTooltip]=\"tooltipOf(row)\" [nolTooltipSide]=\"below\" (click)=\"run(row)\"></button>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabRowActionsComponent, decorators: [{
|
|
34
34
|
type: Component,
|
|
35
35
|
args: [{ selector: "nol-tab-row-actions", imports: [IconButtonComponent, MenuTriggerDirective, PlaceMenuComponent, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@for (row of rows(); track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"row.context\" />\n <button type=\"button\" nol-icon-button class=\"nol-tab-row-submenu\" [attr.data-submenu]=\"row.place\" [icon]=\"row.icon ?? resources.tabRowSubmenuGlyph\" [label]=\"row.title\"\n [nolTooltip]=\"row.title\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"nested.menu()\" [nolMenuAlignment]=\"end\"></button>\n } @else {\n <button type=\"button\" nol-icon-button class=\"nol-tab-row-command\" [attr.data-command]=\"row.command\" [icon]=\"row.icon ?? resources.tabRowCommandGlyph\" [label]=\"row.title\"\n [attr.aria-disabled]=\"row.isEnabled ? null : 'true'\" [nolTooltip]=\"tooltipOf(row)\" [nolTooltipSide]=\"below\" (click)=\"run(row)\"></button>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n"] }]
|
|
36
36
|
}], propDecorators: { group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: true }] }] } });
|
|
@@ -58,10 +58,10 @@ export class TabSlotComponent {
|
|
|
58
58
|
if (!Object.isNull(this.shown))
|
|
59
59
|
this.views.hide(this.shown, this.element);
|
|
60
60
|
}
|
|
61
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
62
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: TabSlotComponent, isStandalone: true, selector: "nol-tab-slot", inputs: { tab: { classPropertyName: "tab", publicName: "tab", isSignal: true, isRequired: true, transformFunction: null }, isDocked: { classPropertyName: "isDocked", publicName: "isDocked", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.nol-tab-slot-docked": "isDocked()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (isStopped()) {\n <div class=\"nol-tab-slot-stopped\" role=\"status\">\n <span class=\"nol-tab-slot-stopped-text\" data-truncates [nolTooltip]=\"resources.agentsStoppedLabel\" [nolTooltipTruncated]=\"true\">{{ resources.agentsStoppedLabel }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"resume()\">{{ resources.resumeAgentsLabel }}</button>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n flex: 1;\n grid-template-rows: auto minmax(0, 1fr);\n grid-template-columns: minmax(0, 1fr);\n min-height: 0;\n}\n\n.nol-tab-slot-stopped {\n display: flex;\n grid-row: 1;\n flex-shrink: 0;\n align-items: center;\n gap: var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-content-padding-inline);\n background-color: var(--nol-raised);\n}\n\n:host(.nol-tab-slot-docked) .nol-tab-slot-stopped {\n background-color: var(--nol-panel);\n}\n\n.nol-tab-slot-stopped-text {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabSlotComponent, decorators: [{
|
|
65
65
|
type: Component,
|
|
66
66
|
args: [{ selector: "nol-tab-slot", imports: [ButtonComponent, TooltipDirective], host: {
|
|
67
67
|
"[class.nol-tab-slot-docked]": "isDocked()"
|
|
@@ -58,10 +58,10 @@ export class ToastsComponent {
|
|
|
58
58
|
if (!toast.matches(Resources.hoverSelector) && !toast.contains(toast.ownerDocument.activeElement))
|
|
59
59
|
this.service.resume(notification.id);
|
|
60
60
|
}
|
|
61
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
62
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ToastsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: ToastsComponent, isStandalone: true, selector: "nol-toasts", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"nol-toasts-stack\">\n @for (toast of toasts(); track toast.id) {\n <section #card class=\"nol-toast\" [attr.data-notification]=\"toast.id\" [attr.data-severity]=\"toast.post.severity\" [attr.aria-label]=\"toast.post.title\"\n (mouseenter)=\"pause(toast)\" (mouseleave)=\"resume(toast, card)\" (focusin)=\"pause(toast)\" (focusout)=\"resume(toast, card)\">\n <span class=\"material-symbols-rounded nol-toast-severity\" role=\"img\" [attr.aria-label]=\"severityName(toast.post.severity)\">{{ glyph(toast.post.severity) }}</span>\n <div class=\"nol-toast-body\">\n @if (toast.post.open !== null) {\n <button type=\"button\" class=\"nol-toast-title nol-toast-open\" [disabled]=\"!isAvailable(toast.post.open)\" (click)=\"run(toast, toast.post.open)\">{{ toast.post.title }}</button>\n }\n @else {\n <span class=\"nol-toast-title\">{{ toast.post.title }}</span>\n }\n @if (toast.post.text !== null) {\n <span class=\"nol-toast-text\">{{ toast.post.text }}</span>\n }\n @if (isIndeterminate(toast) || progressOf(toast) !== null) {\n <nol-progress [value]=\"progressOf(toast)\" [label]=\"toast.post.title\" />\n }\n <span class=\"nol-toast-meta\">{{ moduleName(toast) }} \u00B7 {{ timeOf(toast) }}</span>\n @if (toast.post.actions.length > 0) {\n <div class=\"nol-toast-actions\">\n @for (action of toast.post.actions; track $index) {\n <button type=\"button\" nol-button class=\"nol-toast-action\" [variant]=\"secondary\" [disabled]=\"!isAvailable(action.command)\" (click)=\"run(toast, action.command)\">{{ action.title }}</button>\n }\n </div>\n }\n </div>\n <button type=\"button\" nol-icon-button class=\"nol-toast-close\" [icon]=\"resources.closeGlyph\" [label]=\"resources.closeToastLabel\" [nolTooltip]=\"resources.closeToastLabel\" (click)=\"close(toast)\"></button>\n </section>\n }\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: fixed;\n right: var(--nol-space-2);\n bottom: calc(var(--nol-status-bar-height) + var(--nol-space-2));\n z-index: 1;\n display: block;\n pointer-events: none;\n}\n\n.nol-toasts-stack {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n}\n\n.nol-toast {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: start;\n column-gap: var(--nol-space-2);\n box-sizing: border-box;\n width: min(var(--nol-toast-width), calc(100vw - var(--nol-space-4)));\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-notification-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-notification);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-text);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n pointer-events: auto;\n}\n\n.nol-toast-severity {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: var(--nol-line-panel);\n}\n\n.nol-toast[data-severity=\"Error\"] .nol-toast-severity {\n color: var(--nol-error);\n}\n\n.nol-toast[data-severity=\"Success\"] .nol-toast-severity {\n color: var(--nol-added);\n}\n\n.nol-toast-body {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.nol-toast-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n overflow-wrap: anywhere;\n}\n\n.nol-toast-open {\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-link);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-align: start;\n cursor: pointer;\n}\n\n.nol-toast-open:disabled {\n color: inherit;\n cursor: default;\n}\n\n.nol-toast-open:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-toast-meta {\n color: var(--nol-text-muted);\n}\n\n.nol-toast-text {\n display: -webkit-box;\n overflow: hidden;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n}\n\n.nol-toast-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: ProgressComponent, selector: "nol-progress", inputs: ["label", "value"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ToastsComponent, decorators: [{
|
|
65
65
|
type: Component,
|
|
66
66
|
args: [{ selector: "nol-toasts", imports: [ButtonComponent, IconButtonComponent, ProgressComponent, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"nol-toasts-stack\">\n @for (toast of toasts(); track toast.id) {\n <section #card class=\"nol-toast\" [attr.data-notification]=\"toast.id\" [attr.data-severity]=\"toast.post.severity\" [attr.aria-label]=\"toast.post.title\"\n (mouseenter)=\"pause(toast)\" (mouseleave)=\"resume(toast, card)\" (focusin)=\"pause(toast)\" (focusout)=\"resume(toast, card)\">\n <span class=\"material-symbols-rounded nol-toast-severity\" role=\"img\" [attr.aria-label]=\"severityName(toast.post.severity)\">{{ glyph(toast.post.severity) }}</span>\n <div class=\"nol-toast-body\">\n @if (toast.post.open !== null) {\n <button type=\"button\" class=\"nol-toast-title nol-toast-open\" [disabled]=\"!isAvailable(toast.post.open)\" (click)=\"run(toast, toast.post.open)\">{{ toast.post.title }}</button>\n }\n @else {\n <span class=\"nol-toast-title\">{{ toast.post.title }}</span>\n }\n @if (toast.post.text !== null) {\n <span class=\"nol-toast-text\">{{ toast.post.text }}</span>\n }\n @if (isIndeterminate(toast) || progressOf(toast) !== null) {\n <nol-progress [value]=\"progressOf(toast)\" [label]=\"toast.post.title\" />\n }\n <span class=\"nol-toast-meta\">{{ moduleName(toast) }} \u00B7 {{ timeOf(toast) }}</span>\n @if (toast.post.actions.length > 0) {\n <div class=\"nol-toast-actions\">\n @for (action of toast.post.actions; track $index) {\n <button type=\"button\" nol-button class=\"nol-toast-action\" [variant]=\"secondary\" [disabled]=\"!isAvailable(action.command)\" (click)=\"run(toast, action.command)\">{{ action.title }}</button>\n }\n </div>\n }\n </div>\n <button type=\"button\" nol-icon-button class=\"nol-toast-close\" [icon]=\"resources.closeGlyph\" [label]=\"resources.closeToastLabel\" [nolTooltip]=\"resources.closeToastLabel\" (click)=\"close(toast)\"></button>\n </section>\n }\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: fixed;\n right: var(--nol-space-2);\n bottom: calc(var(--nol-status-bar-height) + var(--nol-space-2));\n z-index: 1;\n display: block;\n pointer-events: none;\n}\n\n.nol-toasts-stack {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n}\n\n.nol-toast {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: start;\n column-gap: var(--nol-space-2);\n box-sizing: border-box;\n width: min(var(--nol-toast-width), calc(100vw - var(--nol-space-4)));\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-notification-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-notification);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-text);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n pointer-events: auto;\n}\n\n.nol-toast-severity {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: var(--nol-line-panel);\n}\n\n.nol-toast[data-severity=\"Error\"] .nol-toast-severity {\n color: var(--nol-error);\n}\n\n.nol-toast[data-severity=\"Success\"] .nol-toast-severity {\n color: var(--nol-added);\n}\n\n.nol-toast-body {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.nol-toast-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n overflow-wrap: anywhere;\n}\n\n.nol-toast-open {\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-link);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-align: start;\n cursor: pointer;\n}\n\n.nol-toast-open:disabled {\n color: inherit;\n cursor: default;\n}\n\n.nol-toast-open:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-toast-meta {\n color: var(--nol-text-muted);\n}\n\n.nol-toast-text {\n display: -webkit-box;\n overflow: hidden;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n}\n\n.nol-toast-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n"] }]
|
|
67
67
|
}] });
|
|
@@ -112,10 +112,10 @@ export class ToolbarComponent {
|
|
|
112
112
|
this.available.set(content.width);
|
|
113
113
|
this.gripWidth.set(isRightToLeft ? grip.right - content.right : content.left - grip.left);
|
|
114
114
|
}
|
|
115
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
116
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
116
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: ToolbarComponent, isStandalone: true, selector: "nol-toolbar", inputs: { toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "keydown": "openMenuFromKey($event)", "contextmenu": "openMenuAtToolbar($event)" }, properties: { "attr.data-toolbar": "toolbar().name", "class.nol-toolbar-dragging": "drag.dragging() === toolbar().name", "style.flex-basis.px": "naturalWidth()" }, classAttribute: "nol-toolbar" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "ghost", first: true, predicate: ["ghost"], descendants: true, isSignal: true }, { propertyName: "grip", first: true, predicate: ["grip"], descendants: true, isSignal: true }, { propertyName: "gripMenu", first: true, predicate: ["grip"], descendants: true, read: MenuTriggerDirective, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-place-menu #moves [place]=\"resources.toolbarMenu\" [context]=\"menuContext()\" />\n<button #grip type=\"button\" tabindex=\"-1\" class=\"nol-toolbar-grip\" [attr.aria-label]=\"resources.toolbarGripLabel\" [nolMenuTriggerFor]=\"moves.menu()\" [nolTooltip]=\"resources.toolbarGripLabel\"\n [nolTooltipSide]=\"below\" (pointerdown)=\"drag.begin(toolbar().name, $event)\">\n <span class=\"nol-toolbar-dot\"></span>\n <span class=\"nol-toolbar-dot\"></span>\n <span class=\"nol-toolbar-dot\"></span>\n</button>\n<div #content class=\"nol-toolbar-content\" nolToolbar [nolToolbarLabel]=\"toolbar().title\">\n @for (section of shown(); track section.group; let first = $first) {\n @if (!first) {\n <span class=\"nol-toolbar-separator\" role=\"separator\" aria-orientation=\"vertical\"></span>\n }\n <div class=\"nol-toolbar-section\" [attr.data-group]=\"section.group\">\n @for (row of section.rows; track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" />\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item\" [attr.data-submenu]=\"row.place\" [label]=\"row.title\" [icon]=\"row.icon\" [isShowingLabel]=\"true\"\n [hasMenu]=\"true\" [nolMenuTriggerFor]=\"nested.menu()\" [nolTooltip]=\"row.title\" [nolTooltipTruncated]=\"true\" [nolTooltipSide]=\"below\"></button>\n } @else {\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item\" [attr.data-command]=\"row.command\" [label]=\"row.title\" [icon]=\"row.icon\"\n [pressed]=\"row.check === menuCheck.None ? undefined : row.isChecked\" [isUnavailable]=\"!row.isEnabled\" [nolTooltip]=\"tooltipOf(row)\"\n [nolTooltipSide]=\"below\" (click)=\"run(row)\"></button>\n }\n }\n </div>\n }\n @if (overflowing().length > 0) {\n <nol-place-menu #overflow [rows]=\"overflowing()\" />\n <button nol-toolbar-button nolToolbarItem class=\"nol-toolbar-item nol-toolbar-overflow\" [label]=\"resources.toolbarOverflowLabel\" [icon]=\"resources.toolbarOverflowGlyph\"\n [nolMenuTriggerFor]=\"overflow.menu()\" [nolTooltip]=\"resources.toolbarOverflowLabel\" [nolTooltipSide]=\"below\"></button>\n }\n</div>\n<div #ghost class=\"nol-toolbar-ghost\" aria-hidden=\"true\">\n @for (section of toolbar().sections; track section.group; let first = $first) {\n @if (!first) {\n <span class=\"nol-toolbar-separator\"></span>\n }\n <div class=\"nol-toolbar-ghost-section\">\n @for (row of section.rows; track $index) {\n <button nol-toolbar-button tabindex=\"-1\" [label]=\"row.title\" [icon]=\"row.icon\" [isShowingLabel]=\"row.isSubmenu\" [hasMenu]=\"row.isSubmenu\"></button>\n }\n </div>\n }\n <button nol-toolbar-button tabindex=\"-1\" class=\"nol-toolbar-ghost-overflow\" [label]=\"resources.toolbarOverflowLabel\" [icon]=\"resources.toolbarOverflowGlyph\"></button>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: flex;\n align-items: center;\n flex: 0 1 auto;\n min-width: calc(var(--nol-sash-grip) * 2.5 + var(--nol-toolbar-button));\n height: var(--nol-toolbar-button);\n overflow: hidden;\n}\n\n:host(.nol-toolbar-dragging) {\n opacity: 0.5;\n}\n\n.nol-toolbar-grip {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--nol-toolbar-grip-gap);\n align-self: stretch;\n flex: none;\n box-sizing: border-box;\n width: calc(var(--nol-sash-grip) * 2);\n margin: 0;\n margin-inline-end: calc(var(--nol-sash-grip) / 2);\n padding: 0;\n border: 0;\n border-radius: var(--nol-radius-small);\n background: none;\n opacity: 0.3;\n cursor: grab;\n user-select: none;\n touch-action: none;\n}\n\n.nol-toolbar-grip:hover,\n.nol-toolbar-grip:focus-visible {\n opacity: 1;\n}\n\n.nol-toolbar-grip:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-toolbar-dot {\n flex: none;\n width: var(--nol-sash-grip);\n height: var(--nol-sash-grip);\n border-radius: 50%;\n background-color: var(--nol-icon-color);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n\n.nol-toolbar-content,\n.nol-toolbar-ghost {\n display: flex;\n align-items: center;\n gap: calc(var(--nol-border-width) * 2);\n}\n\n.nol-toolbar-content {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n}\n\n.nol-toolbar-section,\n.nol-toolbar-ghost-section {\n display: flex;\n align-items: center;\n flex: none;\n gap: calc(var(--nol-border-width) * 2);\n}\n\n.nol-toolbar-separator {\n flex: none;\n align-self: center;\n width: var(--nol-border-width);\n height: var(--nol-icon);\n margin-inline: calc(var(--nol-toolbar-gap) / 2);\n background-color: var(--nol-menu-separator);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n\n.nol-toolbar-ghost {\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n visibility: hidden;\n pointer-events: none;\n}\n"], dependencies: [{ kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
117
117
|
}
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
119
119
|
type: Component,
|
|
120
120
|
args: [{ selector: "nol-toolbar", imports: [MenuTriggerDirective, PlaceMenuComponent, ToolbarButtonComponent, ToolbarDirective, ToolbarItemDirective, TooltipDirective], host: {
|
|
121
121
|
"class": "nol-toolbar",
|
|
@@ -22,10 +22,10 @@ export class ToolbarBandComponent {
|
|
|
22
22
|
hasContent(row) {
|
|
23
23
|
return row.some(t => t.sections.length > 0);
|
|
24
24
|
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ToolbarBandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: ToolbarBandComponent, isStandalone: true, selector: "nol-toolbar-band", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (toolbars.hasContent()) {\n <nol-place-menu #list [place]=\"resources.toolbarsMenu\" />\n <ng-template #rows>\n @for (row of toolbars.rows(); track $index; let rowIndex = $index) {\n @if (hasContent(row)) {\n <div class=\"nol-toolbar-row\" [attr.data-toolbar-row]=\"rowIndex\">\n @for (toolbar of row; track toolbar.name; let index = $index) {\n @if (toolbar.sections.length > 0) {\n <nol-toolbar [toolbar]=\"toolbar\" [attr.data-toolbar-index]=\"index\" />\n }\n }\n </div>\n }\n }\n </ng-template>\n <div class=\"nol-toolbar-band\" [nolContextMenuTriggerFor]=\"list.menu()\">\n <ng-container [ngTemplateOutlet]=\"rows\" />\n </div>\n @if (drag.target(); as target) {\n <div class=\"nol-toolbar-drop nol-drop-line\" [class.nol-drop-line-row]=\"target.isNewRow\" [style.left.px]=\"target.x\" [style.top.px]=\"target.y\"\n [style.width.px]=\"target.isNewRow ? target.rowWidth : null\"></div>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n background-color: var(--nol-window);\n color: var(--nol-text);\n}\n\n.nol-toolbar-band {\n display: flex;\n flex-direction: column;\n gap: var(--nol-band-gap);\n padding: 0 var(--nol-toolbar-gap) var(--nol-band-gap);\n}\n\n.nol-toolbar-row {\n display: flex;\n align-items: center;\n gap: var(--nol-toolbar-gap);\n box-sizing: border-box;\n height: var(--nol-toolbar-button);\n min-width: 0;\n}\n\n.nol-toolbar-drop {\n position: fixed;\n z-index: 1;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "component", type: ToolbarComponent, selector: "nol-toolbar", inputs: ["toolbar"] }] });
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ToolbarBandComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
30
|
args: [{ selector: "nol-toolbar-band", imports: [ContextMenuTriggerDirective, NgTemplateOutlet, PlaceMenuComponent, ToolbarComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (toolbars.hasContent()) {\n <nol-place-menu #list [place]=\"resources.toolbarsMenu\" />\n <ng-template #rows>\n @for (row of toolbars.rows(); track $index; let rowIndex = $index) {\n @if (hasContent(row)) {\n <div class=\"nol-toolbar-row\" [attr.data-toolbar-row]=\"rowIndex\">\n @for (toolbar of row; track toolbar.name; let index = $index) {\n @if (toolbar.sections.length > 0) {\n <nol-toolbar [toolbar]=\"toolbar\" [attr.data-toolbar-index]=\"index\" />\n }\n }\n </div>\n }\n }\n </ng-template>\n <div class=\"nol-toolbar-band\" [nolContextMenuTriggerFor]=\"list.menu()\">\n <ng-container [ngTemplateOutlet]=\"rows\" />\n </div>\n @if (drag.target(); as target) {\n <div class=\"nol-toolbar-drop nol-drop-line\" [class.nol-drop-line-row]=\"target.isNewRow\" [style.left.px]=\"target.x\" [style.top.px]=\"target.y\"\n [style.width.px]=\"target.isNewRow ? target.rowWidth : null\"></div>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n background-color: var(--nol-window);\n color: var(--nol-text);\n}\n\n.nol-toolbar-band {\n display: flex;\n flex-direction: column;\n gap: var(--nol-band-gap);\n padding: 0 var(--nol-toolbar-gap) var(--nol-band-gap);\n}\n\n.nol-toolbar-row {\n display: flex;\n align-items: center;\n gap: var(--nol-toolbar-gap);\n box-sizing: border-box;\n height: var(--nol-toolbar-button);\n min-width: 0;\n}\n\n.nol-toolbar-drop {\n position: fixed;\n z-index: 1;\n}\n"] }]
|
|
31
31
|
}] });
|
|
@@ -22,10 +22,10 @@ export class UpdateItemComponent {
|
|
|
22
22
|
openAbout() {
|
|
23
23
|
this.updates.openAbout();
|
|
24
24
|
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: UpdateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: UpdateItemComponent, isStandalone: true, selector: "nol-update-item", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@switch (state().kind) {\n @case (kinds.Available) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"openAbout()\">\n <span class=\"material-symbols-rounded nol-update-item-icon\" aria-hidden=\"true\">{{ resources.updateAvailableGlyph }}</span>\n <span>{{ resources.moveToUpdateItem }}</span>\n </button>\n }\n @case (kinds.Ready) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"restart()\">\n <span class=\"material-symbols-rounded nol-update-item-icon\" aria-hidden=\"true\">{{ resources.restartToUpdateGlyph }}</span>\n <span>{{ resources.restartToUpdateLabel }}</span>\n </button>\n }\n @case (kinds.Failed) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"openAbout()\">\n <span class=\"material-symbols-rounded nol-update-item-icon nol-update-item-error\" aria-hidden=\"true\">{{ resources.updateFailedGlyph }}</span>\n <span>{{ resources.updateFailedItem }}</span>\n </button>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n height: var(--nol-status-bar-item-height);\n}\n\n.nol-update-item {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-1);\n margin: 0;\n padding: 0 var(--nol-pill-padding);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background-color: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.nol-update-item:hover {\n background-color: var(--nol-toolbar-hover);\n}\n\n.nol-update-item:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n.nol-update-item-icon {\n font-size: var(--nol-icon);\n}\n\n.nol-update-item-error {\n color: var(--nol-error);\n}\n"] });
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: UpdateItemComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
30
|
args: [{ selector: "nol-update-item", template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@switch (state().kind) {\n @case (kinds.Available) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"openAbout()\">\n <span class=\"material-symbols-rounded nol-update-item-icon\" aria-hidden=\"true\">{{ resources.updateAvailableGlyph }}</span>\n <span>{{ resources.moveToUpdateItem }}</span>\n </button>\n }\n @case (kinds.Ready) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"restart()\">\n <span class=\"material-symbols-rounded nol-update-item-icon\" aria-hidden=\"true\">{{ resources.restartToUpdateGlyph }}</span>\n <span>{{ resources.restartToUpdateLabel }}</span>\n </button>\n }\n @case (kinds.Failed) {\n <button type=\"button\" class=\"nol-update-item\" (click)=\"openAbout()\">\n <span class=\"material-symbols-rounded nol-update-item-icon nol-update-item-error\" aria-hidden=\"true\">{{ resources.updateFailedGlyph }}</span>\n <span>{{ resources.updateFailedItem }}</span>\n </button>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n height: var(--nol-status-bar-item-height);\n}\n\n.nol-update-item {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-1);\n margin: 0;\n padding: 0 var(--nol-pill-padding);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background-color: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.nol-update-item:hover {\n background-color: var(--nol-toolbar-hover);\n}\n\n.nol-update-item:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n.nol-update-item-icon {\n font-size: var(--nol-icon);\n}\n\n.nol-update-item-error {\n color: var(--nol-error);\n}\n"] }]
|
|
31
31
|
}] });
|
|
@@ -36,10 +36,10 @@ export class ViewDialogComponent {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
40
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ViewDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: ViewDialogComponent, isStandalone: true, selector: "nol-view-dialog", viewQueries: [{ propertyName: "slot", first: true, predicate: TabSlotComponent, 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@if (dialogs.shown(); as tab) {\n <nol-dialog [title]=\"labels.of(tab).title\" [size]=\"large\" (dismissed)=\"dialogs.close()\">\n <button type=\"button\" nol-icon-button nolDialogControl class=\"nol-view-dialog-open\" [icon]=\"resources.openInMainWindowGlyph\" [label]=\"resources.openInMainWindowLabel\"\n [nolTooltip]=\"resources.openInMainWindowLabel\" (click)=\"dialogs.openInMainWindow(tab)\"></button>\n <nol-tab-slot class=\"nol-view-dialog-content\" [tab]=\"tab\" />\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-view-dialog-content {\n background-color: var(--nol-panel);\n}\n"], dependencies: [{ kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: TabSlotComponent, selector: "nol-tab-slot", inputs: ["tab", "isDocked"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ViewDialogComponent, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{ selector: "nol-view-dialog", imports: [DialogComponent, IconButtonComponent, TabSlotComponent, 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@if (dialogs.shown(); as tab) {\n <nol-dialog [title]=\"labels.of(tab).title\" [size]=\"large\" (dismissed)=\"dialogs.close()\">\n <button type=\"button\" nol-icon-button nolDialogControl class=\"nol-view-dialog-open\" [icon]=\"resources.openInMainWindowGlyph\" [label]=\"resources.openInMainWindowLabel\"\n [nolTooltip]=\"resources.openInMainWindowLabel\" (click)=\"dialogs.openInMainWindow(tab)\"></button>\n <nol-tab-slot class=\"nol-view-dialog-content\" [tab]=\"tab\" />\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-view-dialog-content {\n background-color: var(--nol-panel);\n}\n"] }]
|
|
45
45
|
}], ctorParameters: () => [], propDecorators: { slot: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TabSlotComponent), { isSignal: true }] }] } });
|
|
@@ -97,10 +97,10 @@ export class WindowComponent {
|
|
|
97
97
|
async saveForUpdateAsync(requestId) {
|
|
98
98
|
await this.bridge.answerUpdateSaveAsync(requestId, await this.closing.saveForUpdateAsync());
|
|
99
99
|
}
|
|
100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
101
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: WindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
101
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: WindowComponent, isStandalone: true, selector: "nol-window", viewQueries: [{ propertyName: "origin", first: true, predicate: CdkOverlayOrigin, 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<nol-window-row />\n<nol-toolbar-band />\n@if (startup.hasStarted()) {\n <nol-workspace cdkOverlayOrigin #workspace=\"cdkOverlayOrigin\" />\n @if (startup.isReconnecting() && !cover.isCovering()) {\n <nol-startup class=\"nol-window-reconnecting\" />\n }\n <ng-template cdkConnectedOverlay #covering=\"cdkConnectedOverlay\" [cdkConnectedOverlayOrigin]=\"workspace\" [cdkConnectedOverlayOpen]=\"cover.isCovering()\" [cdkConnectedOverlayPositions]=\"resources.coverPositions\" [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayWidth]=\"coverSize().width\" [cdkConnectedOverlayHeight]=\"coverSize().height\" (attach)=\"attachCover(covering.overlayRef)\" (detach)=\"detachCover()\">\n <nol-startup class=\"nol-window-reconnecting nol-window-covering\" />\n </ng-template>\n} @else {\n <nol-startup />\n}\n<nol-status-bar />\n<nol-toasts />\n<nol-field-menu />\n<nol-link-menu />\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: grid;\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: auto auto minmax(0, 1fr) auto;\n height: 100vh;\n overflow: hidden;\n background-color: var(--nol-window);\n color: var(--nol-text);\n}\n\nnol-workspace,\n.nol-window-reconnecting {\n grid-row: 3;\n grid-column: 1;\n}\n\n.nol-window-reconnecting {\n z-index: 1;\n background-color: var(--nol-backdrop);\n}\n\n.nol-window-covering {\n width: 100%;\n height: 100%;\n}\n"], dependencies: [{ kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: FieldMenuComponent, selector: "nol-field-menu" }, { kind: "component", type: LinkMenuComponent, selector: "nol-link-menu" }, { kind: "component", type: StartupComponent, selector: "nol-startup" }, { kind: "component", type: StatusBarComponent, selector: "nol-status-bar" }, { kind: "component", type: ToastsComponent, selector: "nol-toasts" }, { kind: "component", type: ToolbarBandComponent, selector: "nol-toolbar-band" }, { kind: "component", type: WindowRowComponent, selector: "nol-window-row" }, { kind: "component", type: WorkspaceComponent, selector: "nol-workspace" }] });
|
|
102
102
|
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: WindowComponent, decorators: [{
|
|
104
104
|
type: Component,
|
|
105
105
|
args: [{ selector: "nol-window", imports: [CdkConnectedOverlay, CdkOverlayOrigin, FieldMenuComponent, LinkMenuComponent, StartupComponent, StatusBarComponent, ToastsComponent, ToolbarBandComponent, WindowRowComponent, WorkspaceComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-window-row />\n<nol-toolbar-band />\n@if (startup.hasStarted()) {\n <nol-workspace cdkOverlayOrigin #workspace=\"cdkOverlayOrigin\" />\n @if (startup.isReconnecting() && !cover.isCovering()) {\n <nol-startup class=\"nol-window-reconnecting\" />\n }\n <ng-template cdkConnectedOverlay #covering=\"cdkConnectedOverlay\" [cdkConnectedOverlayOrigin]=\"workspace\" [cdkConnectedOverlayOpen]=\"cover.isCovering()\" [cdkConnectedOverlayPositions]=\"resources.coverPositions\" [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayWidth]=\"coverSize().width\" [cdkConnectedOverlayHeight]=\"coverSize().height\" (attach)=\"attachCover(covering.overlayRef)\" (detach)=\"detachCover()\">\n <nol-startup class=\"nol-window-reconnecting nol-window-covering\" />\n </ng-template>\n} @else {\n <nol-startup />\n}\n<nol-status-bar />\n<nol-toasts />\n<nol-field-menu />\n<nol-link-menu />\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: grid;\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: auto auto minmax(0, 1fr) auto;\n height: 100vh;\n overflow: hidden;\n background-color: var(--nol-window);\n color: var(--nol-text);\n}\n\nnol-workspace,\n.nol-window-reconnecting {\n grid-row: 3;\n grid-column: 1;\n}\n\n.nol-window-reconnecting {\n z-index: 1;\n background-color: var(--nol-backdrop);\n}\n\n.nol-window-covering {\n width: 100%;\n height: 100%;\n}\n"] }]
|
|
106
106
|
}], ctorParameters: () => [], propDecorators: { origin: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkOverlayOrigin), { ...{ read: ElementRef }, isSignal: true }] }] } });
|
|
@@ -42,10 +42,10 @@ export class WindowControlsComponent {
|
|
|
42
42
|
act(action) {
|
|
43
43
|
this.bridge.actOnWindowAsync(action).catch((error) => this.errors.handleError(error));
|
|
44
44
|
}
|
|
45
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
46
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: WindowControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: WindowControlsComponent, isStandalone: true, selector: "nol-window-controls", host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "resources.windowControlsLabel" } }, 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 type=\"button\" class=\"nol-window-controls-button nol-window-controls-minimize\" [attr.aria-label]=\"resources.minimizeWindowLabel\" [nolTooltip]=\"resources.minimizeWindowLabel\"\n [nolTooltipSide]=\"below\" (click)=\"minimize()\">\n <svg class=\"nol-window-controls-glyph\" viewBox=\"0 0 10 10\" aria-hidden=\"true\"><path d=\"M0 5.5H10\" /></svg>\n</button>\n@let maximizedLabel = isMaximized() ? resources.restoreWindowLabel : resources.maximizeWindowLabel;\n<button type=\"button\" class=\"nol-window-controls-button nol-window-controls-maximize\" [attr.aria-label]=\"maximizedLabel\" [nolTooltip]=\"maximizedLabel\" [nolTooltipSide]=\"below\"\n (click)=\"toggleMaximized()\">\n @if (isMaximized()) {\n <svg class=\"nol-window-controls-glyph nol-window-controls-restore-glyph\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <rect x=\"0.5\" y=\"2.5\" width=\"7\" height=\"7\" rx=\"1\" />\n <path d=\"M2.5 2.5V1.5A1 1 0 0 1 3.5 0.5H7.5A2 2 0 0 1 9.5 2.5V6.5A1 1 0 0 1 8.5 7.5H7.5\" />\n </svg>\n } @else {\n <svg class=\"nol-window-controls-glyph nol-window-controls-maximize-glyph\" viewBox=\"0 0 10 10\" aria-hidden=\"true\"><rect x=\"0.5\" y=\"0.5\" width=\"9\" height=\"9\" rx=\"1\" /></svg>\n }\n</button>\n<button type=\"button\" class=\"nol-window-controls-button nol-window-controls-close\" [attr.aria-label]=\"resources.closeWindowLabel\" [nolTooltip]=\"resources.closeWindowLabel\"\n [nolTooltipSide]=\"below\" (click)=\"close()\">\n <svg class=\"nol-window-controls-glyph\" viewBox=\"0 0 10 10\" aria-hidden=\"true\"><path d=\"M0 0L10 10M10 0L0 10\" /></svg>\n</button>\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: none;\n align-self: stretch;\n gap: var(--nol-window-controls-gap);\n app-region: no-drag;\n --nol-window-controls-button: 2.8125rem;\n --nol-window-controls-gap: 0.0625rem;\n --nol-window-controls-glyph: 0.625rem;\n}\n\n.nol-window-controls-button {\n display: grid;\n place-items: center;\n box-sizing: border-box;\n width: var(--nol-window-controls-button);\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n outline: none;\n}\n\n.nol-window-controls-button: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-window-controls-close:hover {\n background-color: var(--nol-error);\n color: var(--nol-button-danger-text);\n}\n\n.nol-window-controls-button: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-window-controls-glyph {\n width: var(--nol-window-controls-glyph);\n height: var(--nol-window-controls-glyph);\n overflow: visible;\n fill: none;\n stroke: currentcolor;\n stroke-width: 1;\n}\n"], dependencies: [{ kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
47
47
|
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: WindowControlsComponent, decorators: [{
|
|
49
49
|
type: Component,
|
|
50
50
|
args: [{ selector: "nol-window-controls", imports: [TooltipDirective], host: {
|
|
51
51
|
role: "group",
|
|
@@ -242,10 +242,10 @@ export class WindowRowComponent {
|
|
|
242
242
|
const style = getComputedStyle(element);
|
|
243
243
|
return element.getBoundingClientRect().width + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
244
244
|
}
|
|
245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
246
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: WindowRowComponent, isStandalone: true, selector: "nol-window-row", host: { attributes: { "data-nol-chrome": "top" }, listeners: { "document:keydown": "pressed($event)", "document:keyup": "released($event)", "document:pointerdown": "pointed()" }, properties: { "class.nol-window-row-mac": "isMac", "class.nol-window-row-drawn-controls": "isDrawingControls", "class.nol-window-row-full-screen": "isFullScreen()" } }, viewQueries: [{ propertyName: "bar", first: true, predicate: ["bar"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "menuButton", first: true, predicate: ["menuButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "start", first: true, predicate: ["start"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "end", first: true, predicate: ["end"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "controls", first: true, predicate: WindowControlsComponent, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "middle", first: true, predicate: ["middle"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "field", first: true, predicate: ["field"], 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 (isBarShown()) {\n <nol-menu-bar #bar class=\"nol-window-row-menu-bar\" [class.nol-window-row-menu-bar-folded]=\"isFolded()\" [label]=\"resources.menuBarLabel\"\n [attr.inert]=\"isFolded() ? '' : null\" [attr.aria-hidden]=\"isFolded() ? true : null\">\n @for (place of menuBar.shownPlaces(); track place.name) {\n <nol-place-menu #inline [place]=\"place.name\" />\n <button type=\"button\" nol-menu-bar-item class=\"nol-window-row-menu-bar-item\" [attr.data-place]=\"place.name\" [label]=\"place.title\" [nolMenuTriggerFor]=\"inline.menu()\"></button>\n }\n </nol-menu-bar>\n}\n@if (isButtonShown()) {\n <button #menuButton type=\"button\" nol-icon-button class=\"nol-window-row-menu\" [icon]=\"resources.menuGlyph\" [label]=\"resources.menuLabel\" [nolTooltip]=\"resources.menuLabel\"\n [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"barMenu\"></button>\n <ng-template #barMenu>\n <nol-menu class=\"nol-window-row-menu-list\">\n @for (place of menuBar.shownPlaces(); track place.name) {\n <nol-place-menu #nested [place]=\"place.name\" />\n <button nol-menu-item class=\"nol-window-row-menu-place\" [attr.data-place]=\"place.name\" [label]=\"place.title\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n }\n </nol-menu>\n </ng-template>\n}\n<div #start class=\"nol-window-row-start\">\n @let isLeftShown = isLeftDockShown();\n @let leftDockLabel = isLeftShown ? resources.hideLeftDockLabel : resources.showLeftDockLabel;\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-left-dock\" [icon]=\"isLeftShown ? leftDockGlyph : resources.showLeftDockGlyph\"\n [label]=\"leftDockLabel\" [nolTooltip]=\"withKey(leftDockCommand, leftDockLabel)\" [nolTooltipSide]=\"below\" (click)=\"run(leftDockCommand, null)\"></button>\n @let canGoBack = isAvailable(resources.goBackCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-back\" [icon]=\"resources.goBackGlyph\" [label]=\"resources.goBackTitle\"\n [attr.aria-disabled]=\"canGoBack ? null : resources.trueValue\" [nolTooltip]=\"canGoBack ? withKey(resources.goBackCommand, resources.goBackTitle) : resources.goBackReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.goBackCommand, null)\"></button>\n @let canGoForward = isAvailable(resources.goForwardCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-forward\" [icon]=\"resources.goForwardGlyph\" [label]=\"resources.goForwardTitle\"\n [attr.aria-disabled]=\"canGoForward ? null : resources.trueValue\" [nolTooltip]=\"canGoForward ? withKey(resources.goForwardCommand, resources.goForwardTitle) : resources.goForwardReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.goForwardCommand, null)\"></button>\n @for (action of bars.startActions(); track action.name) {\n <ng-container [ngTemplateOutlet]=\"actionButton\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n }\n <nol-place-menu #layoutMenu [place]=\"resources.layoutMenu\" />\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-layout\" [icon]=\"resources.layoutMenuGlyph\" [label]=\"resources.layoutMenuTitle\"\n [nolTooltip]=\"resources.layoutMenuTitle\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"layoutMenu.menu()\"></button>\n @let canOpenSettings = isAvailable(resources.openSettingsCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-settings\" [icon]=\"resources.settingsGlyph\" [label]=\"resources.settingsTitle\"\n [attr.aria-disabled]=\"canOpenSettings ? null : resources.trueValue\" [nolTooltip]=\"canOpenSettings ? withKey(resources.openSettingsCommand, resources.settingsTitle) : resources.settingsReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.openSettingsCommand, null)\"></button>\n</div>\n<div #middle class=\"nol-window-row-middle\">\n <button #field type=\"button\" class=\"nol-window-row-search\" [class.nol-window-row-search-covered]=\"palette.isShown()\" [style.translate]=\"fieldShift()\"\n [attr.aria-keyshortcuts]=\"searchKey()\" (click)=\"openSearch()\">\n <span class=\"nol-window-row-search-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ resources.searchGlyph }}</span>\n <span class=\"nol-window-row-search-text\" data-truncates>{{ search.placeholder() }}</span>\n @if (searchKey(); as key) {\n <span class=\"nol-window-row-search-key\">{{ key }}</span>\n }\n </button>\n</div>\n<div #end class=\"nol-window-row-actions\">\n @for (action of bars.endActions(); track action.name) {\n <ng-container [ngTemplateOutlet]=\"actionButton\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n }\n</div>\n@if (isDrawingControls && !isFullScreen()) {\n <nol-window-controls />\n}\n<ng-template #actionButton let-action>\n @let state = action.state();\n @if (!state.isHidden) {\n <button type=\"button\" nol-icon-button class=\"nol-window-row-action\" [attr.data-nol-item]=\"action.name\" [icon]=\"state.icon\" [label]=\"state.title\"\n [attr.aria-disabled]=\"isAvailable(state.command, state.commandArguments) ? null : resources.trueValue\" [nolTooltip]=\"state.title\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(state.command, state.commandArguments)\"></button>\n }\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 position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n height: var(--nol-window-row-height);\n padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));\n padding-left: var(--nol-panel-card-margin);\n background-color: var(--nol-title-bar);\n color: var(--nol-title-bar-text);\n font-size: var(--nol-text-panel);\n app-region: drag;\n user-select: none;\n --nol-window-row-drag: 6rem;\n --nol-window-row-search-width: 27.5rem;\n --nol-window-row-traffic-lights: 78px;\n}\n\n:host(.nol-window-row-mac) {\n padding-right: var(--nol-panel-card-margin);\n padding-left: var(--nol-window-row-traffic-lights);\n}\n\n:host(.nol-window-row-mac.nol-window-row-full-screen) {\n padding-left: var(--nol-panel-card-margin);\n}\n\n:host(.nol-window-row-drawn-controls) {\n padding-right: var(--nol-panel-card-margin);\n}\n\n:host(.nol-window-row-drawn-controls:not(.nol-window-row-full-screen)) {\n padding-inline-end: 0;\n}\n\n.nol-window-row-middle {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n min-width: 0;\n padding-inline: var(--nol-space-2);\n}\n\n.nol-window-row-search {\n display: flex;\n flex: 0 1 auto;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: var(--nol-window-row-search-width);\n min-width: 0;\n height: var(--nol-icon-button-target);\n padding: 0 var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-input);\n color: var(--nol-text-muted);\n font: inherit;\n font-size: var(--nol-text-small);\n text-align: start;\n cursor: text;\n}\n\n.nol-window-row-search-covered {\n opacity: 0;\n}\n\n.nol-window-row-search:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n.nol-window-row-search-glyph {\n flex: none;\n font-size: var(--nol-quick-input-glyph);\n}\n\n.nol-window-row-search-text {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-window-row-search-key {\n flex: none;\n padding: calc(0.0625rem + var(--nol-border-width)) calc(0.3125rem + var(--nol-border-width));\n font-size: var(--nol-quick-input-key-text);\n}\n\n@media (forced-colors: active) {\n .nol-window-row-search {\n border-color: ButtonText;\n color: ButtonText;\n }\n}\n\n.nol-window-row-start,\n.nol-window-row-actions {\n display: flex;\n align-items: center;\n}\n\n.nol-window-row-action,\n.nol-window-row-control,\n.nol-window-row-menu,\n.nol-window-row-menu-bar,\n.nol-window-row-search {\n app-region: no-drag;\n}\n\n:dir(rtl) .nol-window-row-back,\n:dir(rtl) .nol-window-row-forward {\n scale: -1 1;\n}\n\n.nol-window-row-menu-bar {\n flex: none;\n margin-inline-end: var(--nol-space-1);\n}\n\n.nol-window-row-menu-bar-folded {\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n}\n\n.nol-window-row-menu {\n margin-inline-end: var(--nol-space-1);\n}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuBarComponent, selector: "nol-menu-bar", inputs: ["label"] }, { kind: "component", type: MenuBarItemComponent, selector: "button[nol-menu-bar-item]", inputs: ["label"] }, { 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: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }, { kind: "component", type: WindowControlsComponent, selector: "nol-window-controls" }] });
|
|
245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: WindowRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
246
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: WindowRowComponent, isStandalone: true, selector: "nol-window-row", host: { attributes: { "data-nol-chrome": "top" }, listeners: { "document:keydown": "pressed($event)", "document:keyup": "released($event)", "document:pointerdown": "pointed()" }, properties: { "class.nol-window-row-mac": "isMac", "class.nol-window-row-drawn-controls": "isDrawingControls", "class.nol-window-row-full-screen": "isFullScreen()" } }, viewQueries: [{ propertyName: "bar", first: true, predicate: ["bar"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "menuButton", first: true, predicate: ["menuButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "start", first: true, predicate: ["start"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "end", first: true, predicate: ["end"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "controls", first: true, predicate: WindowControlsComponent, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "middle", first: true, predicate: ["middle"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "field", first: true, predicate: ["field"], 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 (isBarShown()) {\n <nol-menu-bar #bar class=\"nol-window-row-menu-bar\" [class.nol-window-row-menu-bar-folded]=\"isFolded()\" [label]=\"resources.menuBarLabel\"\n [attr.inert]=\"isFolded() ? '' : null\" [attr.aria-hidden]=\"isFolded() ? true : null\">\n @for (place of menuBar.shownPlaces(); track place.name) {\n <nol-place-menu #inline [place]=\"place.name\" />\n <button type=\"button\" nol-menu-bar-item class=\"nol-window-row-menu-bar-item\" [attr.data-place]=\"place.name\" [label]=\"place.title\" [nolMenuTriggerFor]=\"inline.menu()\"></button>\n }\n </nol-menu-bar>\n}\n@if (isButtonShown()) {\n <button #menuButton type=\"button\" nol-icon-button class=\"nol-window-row-menu\" [icon]=\"resources.menuGlyph\" [label]=\"resources.menuLabel\" [nolTooltip]=\"resources.menuLabel\"\n [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"barMenu\"></button>\n <ng-template #barMenu>\n <nol-menu class=\"nol-window-row-menu-list\">\n @for (place of menuBar.shownPlaces(); track place.name) {\n <nol-place-menu #nested [place]=\"place.name\" />\n <button nol-menu-item class=\"nol-window-row-menu-place\" [attr.data-place]=\"place.name\" [label]=\"place.title\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n }\n </nol-menu>\n </ng-template>\n}\n<div #start class=\"nol-window-row-start\">\n @let isLeftShown = isLeftDockShown();\n @let leftDockLabel = isLeftShown ? resources.hideLeftDockLabel : resources.showLeftDockLabel;\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-left-dock\" [icon]=\"isLeftShown ? leftDockGlyph : resources.showLeftDockGlyph\"\n [label]=\"leftDockLabel\" [nolTooltip]=\"withKey(leftDockCommand, leftDockLabel)\" [nolTooltipSide]=\"below\" (click)=\"run(leftDockCommand, null)\"></button>\n @let canGoBack = isAvailable(resources.goBackCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-back\" [icon]=\"resources.goBackGlyph\" [label]=\"resources.goBackTitle\"\n [attr.aria-disabled]=\"canGoBack ? null : resources.trueValue\" [nolTooltip]=\"canGoBack ? withKey(resources.goBackCommand, resources.goBackTitle) : resources.goBackReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.goBackCommand, null)\"></button>\n @let canGoForward = isAvailable(resources.goForwardCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-forward\" [icon]=\"resources.goForwardGlyph\" [label]=\"resources.goForwardTitle\"\n [attr.aria-disabled]=\"canGoForward ? null : resources.trueValue\" [nolTooltip]=\"canGoForward ? withKey(resources.goForwardCommand, resources.goForwardTitle) : resources.goForwardReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.goForwardCommand, null)\"></button>\n @for (action of bars.startActions(); track action.name) {\n <ng-container [ngTemplateOutlet]=\"actionButton\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n }\n <nol-place-menu #layoutMenu [place]=\"resources.layoutMenu\" />\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-layout\" [icon]=\"resources.layoutMenuGlyph\" [label]=\"resources.layoutMenuTitle\"\n [nolTooltip]=\"resources.layoutMenuTitle\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"layoutMenu.menu()\"></button>\n @let canOpenSettings = isAvailable(resources.openSettingsCommand, null);\n <button type=\"button\" nol-icon-button class=\"nol-window-row-control nol-window-row-settings\" [icon]=\"resources.settingsGlyph\" [label]=\"resources.settingsTitle\"\n [attr.aria-disabled]=\"canOpenSettings ? null : resources.trueValue\" [nolTooltip]=\"canOpenSettings ? withKey(resources.openSettingsCommand, resources.settingsTitle) : resources.settingsReason\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(resources.openSettingsCommand, null)\"></button>\n</div>\n<div #middle class=\"nol-window-row-middle\">\n <button #field type=\"button\" class=\"nol-window-row-search\" [class.nol-window-row-search-covered]=\"palette.isShown()\" [style.translate]=\"fieldShift()\"\n [attr.aria-keyshortcuts]=\"searchKey()\" (click)=\"openSearch()\">\n <span class=\"nol-window-row-search-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ resources.searchGlyph }}</span>\n <span class=\"nol-window-row-search-text\" data-truncates>{{ search.placeholder() }}</span>\n @if (searchKey(); as key) {\n <span class=\"nol-window-row-search-key\">{{ key }}</span>\n }\n </button>\n</div>\n<div #end class=\"nol-window-row-actions\">\n @for (action of bars.endActions(); track action.name) {\n <ng-container [ngTemplateOutlet]=\"actionButton\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n }\n</div>\n@if (isDrawingControls && !isFullScreen()) {\n <nol-window-controls />\n}\n<ng-template #actionButton let-action>\n @let state = action.state();\n @if (!state.isHidden) {\n <button type=\"button\" nol-icon-button class=\"nol-window-row-action\" [attr.data-nol-item]=\"action.name\" [icon]=\"state.icon\" [label]=\"state.title\"\n [attr.aria-disabled]=\"isAvailable(state.command, state.commandArguments) ? null : resources.trueValue\" [nolTooltip]=\"state.title\" [nolTooltipSide]=\"below\"\n (click)=\"runAvailable(state.command, state.commandArguments)\"></button>\n }\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 position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n height: var(--nol-window-row-height);\n padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));\n padding-left: var(--nol-panel-card-margin);\n background-color: var(--nol-title-bar);\n color: var(--nol-title-bar-text);\n font-size: var(--nol-text-panel);\n app-region: drag;\n user-select: none;\n --nol-window-row-drag: 6rem;\n --nol-window-row-search-width: 27.5rem;\n --nol-window-row-traffic-lights: 78px;\n}\n\n:host(.nol-window-row-mac) {\n padding-right: var(--nol-panel-card-margin);\n padding-left: var(--nol-window-row-traffic-lights);\n}\n\n:host(.nol-window-row-mac.nol-window-row-full-screen) {\n padding-left: var(--nol-panel-card-margin);\n}\n\n:host(.nol-window-row-drawn-controls) {\n padding-right: var(--nol-panel-card-margin);\n}\n\n:host(.nol-window-row-drawn-controls:not(.nol-window-row-full-screen)) {\n padding-inline-end: 0;\n}\n\n.nol-window-row-middle {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n min-width: 0;\n padding-inline: var(--nol-space-2);\n}\n\n.nol-window-row-search {\n display: flex;\n flex: 0 1 auto;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: var(--nol-window-row-search-width);\n min-width: 0;\n height: var(--nol-icon-button-target);\n padding: 0 var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-input);\n color: var(--nol-text-muted);\n font: inherit;\n font-size: var(--nol-text-small);\n text-align: start;\n cursor: text;\n}\n\n.nol-window-row-search-covered {\n opacity: 0;\n}\n\n.nol-window-row-search:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n.nol-window-row-search-glyph {\n flex: none;\n font-size: var(--nol-quick-input-glyph);\n}\n\n.nol-window-row-search-text {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-window-row-search-key {\n flex: none;\n padding: calc(0.0625rem + var(--nol-border-width)) calc(0.3125rem + var(--nol-border-width));\n font-size: var(--nol-quick-input-key-text);\n}\n\n@media (forced-colors: active) {\n .nol-window-row-search {\n border-color: ButtonText;\n color: ButtonText;\n }\n}\n\n.nol-window-row-start,\n.nol-window-row-actions {\n display: flex;\n align-items: center;\n}\n\n.nol-window-row-action,\n.nol-window-row-control,\n.nol-window-row-menu,\n.nol-window-row-menu-bar,\n.nol-window-row-search {\n app-region: no-drag;\n}\n\n:dir(rtl) .nol-window-row-back,\n:dir(rtl) .nol-window-row-forward {\n scale: -1 1;\n}\n\n.nol-window-row-menu-bar {\n flex: none;\n margin-inline-end: var(--nol-space-1);\n}\n\n.nol-window-row-menu-bar-folded {\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n}\n\n.nol-window-row-menu {\n margin-inline-end: var(--nol-space-1);\n}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuBarComponent, selector: "nol-menu-bar", inputs: ["label"] }, { kind: "component", type: MenuBarItemComponent, selector: "button[nol-menu-bar-item]", inputs: ["label"] }, { 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: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }, { kind: "component", type: WindowControlsComponent, selector: "nol-window-controls" }] });
|
|
247
247
|
}
|
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: WindowRowComponent, decorators: [{
|
|
249
249
|
type: Component,
|
|
250
250
|
args: [{ selector: "nol-window-row", imports: [IconButtonComponent, MenuBarComponent, MenuBarItemComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, NgTemplateOutlet, PlaceMenuComponent, TooltipDirective, WindowControlsComponent], host: {
|
|
251
251
|
"data-nol-chrome": "top",
|
|
@@ -121,10 +121,10 @@ export class WorkspaceComponent {
|
|
|
121
121
|
return;
|
|
122
122
|
this.element.querySelectorAll(Resources.formatDockStripView(side, tab.key)).forEach(t => t.focus());
|
|
123
123
|
}
|
|
124
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
125
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: WorkspaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
125
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: WorkspaceComponent, isStandalone: true, selector: "nol-workspace", host: { listeners: { "focusin": "remember($event)" }, properties: { "attr.inert": "startup.isReconnecting() ? '' : null" } }, viewQueries: [{ propertyName: "placeholderContent", first: true, predicate: PlaceholderContentComponent, 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@if (layout.isMeasured()) {\n @let geometry = layout.geometry();\n @let match = placeholder();\n @for (side of sides; track side) {\n <nol-dock [side]=\"side\" />\n }\n @for (frame of geometry.frames; track frame.group.id) {\n <nol-tab-group [frame]=\"frame\">\n @if (frame.group.active; as active) {\n <nol-tab-slot [tab]=\"active\" [isDocked]=\"frame.side !== null\" />\n } @else if (frame.group.isDocuments && match) {\n <nol-placeholder-content [match]=\"match\" />\n } @else if (isEmptyDocuments(frame)) {\n <nol-empty-window />\n }\n </nol-tab-group>\n }\n @for (handle of geometry.handles; track handle.split.id + \"/\" + handle.index) {\n <nol-split-sash [handle]=\"handle\" />\n }\n <nol-docking-guides />\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: block;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n}\n"], dependencies: [{ kind: "component", type: DockComponent, selector: "nol-dock", inputs: ["side"] }, { kind: "component", type: DockingGuidesComponent, selector: "nol-docking-guides" }, { kind: "component", type: EmptyWindowComponent, selector: "nol-empty-window" }, { kind: "component", type: PlaceholderContentComponent, selector: "nol-placeholder-content", inputs: ["match"] }, { kind: "component", type: SplitSashComponent, selector: "nol-split-sash", inputs: ["handle"] }, { kind: "component", type: TabGroupComponent, selector: "nol-tab-group", inputs: ["frame"] }, { kind: "component", type: TabSlotComponent, selector: "nol-tab-slot", inputs: ["tab", "isDocked"] }] });
|
|
126
126
|
}
|
|
127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: WorkspaceComponent, decorators: [{
|
|
128
128
|
type: Component,
|
|
129
129
|
args: [{ selector: "nol-workspace", imports: [DockComponent, DockingGuidesComponent, EmptyWindowComponent, PlaceholderContentComponent, SplitSashComponent, TabGroupComponent, TabSlotComponent], host: {
|
|
130
130
|
"[attr.inert]": "startup.isReconnecting() ? '' : null",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import { Directive } from "@angular/core";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export class KeepsCtrlKeysDirective {
|
|
11
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
12
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: KeepsCtrlKeysDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
12
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: KeepsCtrlKeysDirective, isStandalone: true, selector: "[nolKeepsCtrlKeys]", host: { attributes: { "data-nol-keeps-ctrl-keys": "" } }, ngImport: i0 });
|
|
13
13
|
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: KeepsCtrlKeysDirective, decorators: [{
|
|
15
15
|
type: Directive,
|
|
16
16
|
args: [{
|
|
17
17
|
selector: "[nolKeepsCtrlKeys]",
|
|
@@ -72,10 +72,10 @@ export class TabScrollerDirective {
|
|
|
72
72
|
reveal() {
|
|
73
73
|
this.host.querySelectorAll(Resources.selectedTabSelector).forEach(t => t.scrollIntoView(Resources.revealOptions));
|
|
74
74
|
}
|
|
75
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
76
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
75
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabScrollerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
76
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: TabScrollerDirective, isStandalone: true, selector: "[nolTabScroller]", inputs: { actionBar: { classPropertyName: "actionBar", publicName: "nolTabScroller", isSignal: true, isRequired: true, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "nolTabScrollerFrame", isSignal: true, isRequired: true, transformFunction: null }, rowCount: { classPropertyName: "rowCount", publicName: "nolTabScrollerRows", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "wheel": "scrollAcross($event)" } }, exportAs: ["nolTabScroller"], ngImport: i0 });
|
|
77
77
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabScrollerDirective, decorators: [{
|
|
79
79
|
type: Directive,
|
|
80
80
|
args: [{
|
|
81
81
|
selector: "[nolTabScroller]",
|
|
@@ -38,4 +38,21 @@ export interface IViewOptions {
|
|
|
38
38
|
* {@link IWindowPartContext.updateView}.
|
|
39
39
|
*/
|
|
40
40
|
readonly isRenamable?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The group the view opens in on its default side in a new layout, a
|
|
43
|
+
* whole number from 0, the default: groups go in number order, top to
|
|
44
|
+
* bottom on the left and right sides and left to right at the bottom,
|
|
45
|
+
* and share the side equally; a number no shown view uses leaves no
|
|
46
|
+
* gap. A layout the person has, which is saved after any change, keeps
|
|
47
|
+
* its groups until Reset the layout, which lays them out again.
|
|
48
|
+
*/
|
|
49
|
+
readonly defaultGroup?: number;
|
|
50
|
+
/**
|
|
51
|
+
* The tab's place in its group's tab row in a new layout, a whole number
|
|
52
|
+
* from 0, lowest first, compared across modules, so modules space their
|
|
53
|
+
* numbers, such as 10, 20 and 30; each group shows its first tab. Views
|
|
54
|
+
* without an order follow the ordered ones, in module order and then the
|
|
55
|
+
* order they were registered in, as views with the same order do.
|
|
56
|
+
*/
|
|
57
|
+
readonly defaultOrder?: number;
|
|
41
58
|
}
|
|
@@ -10,8 +10,10 @@ import { ArgumentException } from "@noldova/context.exceptions";
|
|
|
10
10
|
import { Resources } from "../../../resources.js";
|
|
11
11
|
import { BottomDockSpan } from "../../enums/bottom-dock-span.js";
|
|
12
12
|
import { DockSide } from "../../enums/dock-side.js";
|
|
13
|
+
import { SplitAxis } from "../../enums/split-axis.js";
|
|
13
14
|
import { Dock } from "./dock.js";
|
|
14
15
|
import { DocumentGroup } from "./document-group.js";
|
|
16
|
+
import { SplitPart } from "./split-part.js";
|
|
15
17
|
import { SplitNode } from "./split.node.js";
|
|
16
18
|
import { TabGroup } from "./tab-group.js";
|
|
17
19
|
import { ToolbarLayout } from "./toolbar-layout.js";
|
|
@@ -57,9 +59,12 @@ export class Layout {
|
|
|
57
59
|
static createDefault(registry) {
|
|
58
60
|
let id = Resources.documentsGroupId;
|
|
59
61
|
const docks = Object.values(DockSide).map(side => {
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
|
|
62
|
+
const views = Layout.inDefaultOrder(registry.views.filter(t => t.isShownByDefault && t.defaultSide === side));
|
|
63
|
+
const heads = views.filter((t, index) => views.findIndex(u => u.defaultGroup === t.defaultGroup) === index).sort((a, b) => a.defaultGroup - b.defaultGroup);
|
|
64
|
+
const groups = heads.map(head => new TabGroup(++id, views.filter(t => t.defaultGroup === head.defaultGroup).map(t => new ViewTab(t.name)), new ViewTab(head.name)));
|
|
65
|
+
const [first] = groups;
|
|
66
|
+
const root = groups.length > 1 ? new SplitNode(++id, side === DockSide.Bottom ? SplitAxis.Horizontal : SplitAxis.Vertical, groups.map(t => new SplitPart(t, 1))) : first ?? null;
|
|
67
|
+
return new Dock(side, root, null, false);
|
|
63
68
|
});
|
|
64
69
|
return new Layout(docks, DocumentGroup.createEmpty());
|
|
65
70
|
}
|
|
@@ -208,6 +213,9 @@ export class Layout {
|
|
|
208
213
|
get nextId() {
|
|
209
214
|
return Math.max(...this.docks.flatMap(t => t.root?.nodeIds ?? []), ...this.middle.nodeIds) + 1;
|
|
210
215
|
}
|
|
216
|
+
static inDefaultOrder(views) {
|
|
217
|
+
return [...views].sort((a, b) => (a.defaultOrder ?? Number.MAX_SAFE_INTEGER) - (b.defaultOrder ?? Number.MAX_SAFE_INTEGER));
|
|
218
|
+
}
|
|
211
219
|
static dockOn(side, docks) {
|
|
212
220
|
return docks.find(t => t.side === side) ?? Dock.createEmpty(side);
|
|
213
221
|
}
|