@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
|
@@ -28,10 +28,10 @@ export class QuitDialogComponent {
|
|
|
28
28
|
this.wasWaiting = isWaiting;
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: QuitDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: QuitDialogComponent, isStandalone: true, selector: "nol-quit-dialog", viewQueries: [{ propertyName: "cancel", first: true, predicate: Resources.cancelReference, descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (quit.question(); as question) {\n <nol-dialog [title]=\"question.isWaiting ? resources.quitWaitingTitle : resources.quitTitle\" (dismissed)=\"quit.answer(choices.Cancel)\">\n <div class=\"nol-quit-work\" aria-live=\"polite\">\n <p class=\"nol-quit-text\">{{ question.isWaiting ? (question.isUpdate ? resources.formatUpdateWaitingText(productName) : resources.formatQuitWaitingText(productName)) : resources.formatQuitText(productName) }}</p>\n <ul class=\"nol-quit-list\">\n @for (description of question.shown; track $index) {\n <li>{{ description }}</li>\n }\n @if (question.hiddenCount > 0) {\n <li class=\"nol-quit-more\">{{ resources.formatMoreWork(question.hiddenCount) }}</li>\n }\n </ul>\n </div>\n @if (!question.isWaiting) {\n <p class=\"nol-quit-text\">{{ resources.quitHint }}</p>\n }\n @if (!question.isWaiting) {\n <button nol-button nolDialogAction type=\"button\" [attr.data-nol-quit]=\"choices.Wait\" (click)=\"quit.answer(choices.Wait)\">{{ question.isUpdate ? resources.waitThenUpdate : resources.waitThenQuit }}</button>\n }\n <button nol-button nolDialogAction type=\"button\" [variant]=\"secondary\" [attr.data-nol-quit]=\"choices.Stop\" (click)=\"quit.answer(choices.Stop)\">\n {{ question.isUpdate ? resources.stopWorkAndUpdate : resources.stopWorkAndQuit }}\n </button>\n <button #cancel nol-button nolDialogAction type=\"button\" [variant]=\"secondary\" [attr.data-nol-quit]=\"choices.Cancel\" (click)=\"quit.answer(choices.Cancel)\">\n {{ resources.cancel }}\n </button>\n </nol-dialog>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-quit-text {\n margin: 0 0 var(--nol-space-2);\n}\n\n.nol-quit-list {\n margin: 0 0 var(--nol-space-2);\n padding-inline-start: var(--nol-space-6);\n}\n\n.nol-quit-more {\n color: var(--nol-text-muted);\n list-style: none;\n}\n"], dependencies: [{ kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }, { kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }] });
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: QuitDialogComponent, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
36
|
args: [{ selector: "nol-quit-dialog", imports: [DialogComponent, ButtonComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (quit.question(); as question) {\n <nol-dialog [title]=\"question.isWaiting ? resources.quitWaitingTitle : resources.quitTitle\" (dismissed)=\"quit.answer(choices.Cancel)\">\n <div class=\"nol-quit-work\" aria-live=\"polite\">\n <p class=\"nol-quit-text\">{{ question.isWaiting ? (question.isUpdate ? resources.formatUpdateWaitingText(productName) : resources.formatQuitWaitingText(productName)) : resources.formatQuitText(productName) }}</p>\n <ul class=\"nol-quit-list\">\n @for (description of question.shown; track $index) {\n <li>{{ description }}</li>\n }\n @if (question.hiddenCount > 0) {\n <li class=\"nol-quit-more\">{{ resources.formatMoreWork(question.hiddenCount) }}</li>\n }\n </ul>\n </div>\n @if (!question.isWaiting) {\n <p class=\"nol-quit-text\">{{ resources.quitHint }}</p>\n }\n @if (!question.isWaiting) {\n <button nol-button nolDialogAction type=\"button\" [attr.data-nol-quit]=\"choices.Wait\" (click)=\"quit.answer(choices.Wait)\">{{ question.isUpdate ? resources.waitThenUpdate : resources.waitThenQuit }}</button>\n }\n <button nol-button nolDialogAction type=\"button\" [variant]=\"secondary\" [attr.data-nol-quit]=\"choices.Stop\" (click)=\"quit.answer(choices.Stop)\">\n {{ question.isUpdate ? resources.stopWorkAndUpdate : resources.stopWorkAndQuit }}\n </button>\n <button #cancel nol-button nolDialogAction type=\"button\" [variant]=\"secondary\" [attr.data-nol-quit]=\"choices.Cancel\" (click)=\"quit.answer(choices.Cancel)\">\n {{ resources.cancel }}\n </button>\n </nol-dialog>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-quit-text {\n margin: 0 0 var(--nol-space-2);\n}\n\n.nol-quit-list {\n margin: 0 0 var(--nol-space-2);\n padding-inline-start: var(--nol-space-6);\n}\n\n.nol-quit-more {\n color: var(--nol-text-muted);\n list-style: none;\n}\n"] }]
|
|
37
37
|
}], ctorParameters: () => [], propDecorators: { cancel: [{ type: i0.ViewChild, args: [i0.forwardRef(() => Resources.cancelReference), { ...{ read: (ElementRef) }, isSignal: true }] }] } });
|
|
@@ -39,10 +39,10 @@ export class RuntimeStatusComponent {
|
|
|
39
39
|
return [Resources.formatStartingTitle(ProductName.current)];
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: RuntimeStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: RuntimeStatusComponent, isStandalone: true, selector: "nol-runtime-status", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<p class=\"nol-runtime-status\" role=\"status\">\n <span>{{ status() }}</span>\n @for (detail of details(); track $index) {\n <span class=\"nol-runtime-detail\">{{ detail }}</span>\n }\n</p>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n padding: var(--nol-settings-item-padding);\n}\n\n.nol-runtime-status {\n display: flex;\n flex-direction: column;\n margin: 0;\n}\n\n.nol-runtime-detail {\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n"] });
|
|
44
44
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: RuntimeStatusComponent, decorators: [{
|
|
46
46
|
type: Component,
|
|
47
47
|
args: [{ selector: "nol-runtime-status", template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<p class=\"nol-runtime-status\" role=\"status\">\n <span>{{ status() }}</span>\n @for (detail of details(); track $index) {\n <span class=\"nol-runtime-detail\">{{ detail }}</span>\n }\n</p>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n padding: var(--nol-settings-item-padding);\n}\n\n.nol-runtime-status {\n display: flex;\n flex-direction: column;\n margin: 0;\n}\n\n.nol-runtime-detail {\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n"] }]
|
|
48
48
|
}] });
|
|
@@ -56,10 +56,10 @@ export class SearchPaletteComponent {
|
|
|
56
56
|
static indicesOf(range) {
|
|
57
57
|
return Object.isNull(range) ? [] : Array.from({ length: range.length }, (_, t) => range.start + t);
|
|
58
58
|
}
|
|
59
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
60
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SearchPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: SearchPaletteComponent, isStandalone: true, selector: "nol-search-palette", 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-quick-input [items]=\"items()\" [label]=\"label()\" [icon]=\"resources.searchGlyph\" [query]=\"query()\" [emptyText]=\"emptyText()\" (queryChange)=\"search($event)\"\n [attr.data-searching]=\"isSearching()\" (chosen)=\"open($event)\" (dismissed)=\"close()\" (tabKey)=\"moveFilter($event)\">\n @for (filter of filters(); track filter.source) {\n <button nolQuickInputFilters type=\"button\" class=\"nol-search-filter\" [attr.data-source]=\"filter.source\" [attr.aria-pressed]=\"filter.isActive\" tabindex=\"-1\"\n (mousedown)=\"$event.preventDefault()\" (click)=\"choose(filter)\">\n <span>{{ filter.label }}</span>\n @if (filter.count !== null) {\n <span class=\"nol-search-filter-count\">{{ filter.count }}{{ filter.isCapped ? resources.cappedCountMark : \"\" }}</span>\n }\n </button>\n }\n @for (hint of resources.searchFooterHints; track hint) {\n <span nolQuickInputFooter class=\"nol-search-hint\">{{ hint }}</span>\n }\n <span nolQuickInputFooter class=\"nol-search-hint nol-search-hint-end\">{{ resources.commandsOnlyHint }}</span>\n</nol-quick-input>\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-search-filter {\n display: flex;\n align-items: center;\n gap: 0.3125rem;\n height: 1.375rem;\n padding: 0 0.5625rem;\n border: 0;\n border-radius: 0.6875rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n font-size: var(--nol-text-small);\n}\n\n.nol-search-filter[aria-pressed=\"true\"] {\n background: var(--nol-selected);\n color: var(--nol-text-strong);\n}\n\n.nol-search-filter-count {\n color: var(--nol-text-muted);\n}\n\n.nol-search-hint-end {\n margin-inline-start: auto;\n}\n\n@media (forced-colors: active) {\n .nol-search-filter {\n padding: 0 calc(0.5625rem - var(--nol-border-width));\n border: var(--nol-border-width) solid ButtonText;\n color: ButtonText;\n }\n\n .nol-search-filter[aria-pressed=\"true\"] {\n background: Highlight;\n color: HighlightText;\n forced-color-adjust: none;\n }\n\n .nol-search-filter[aria-pressed=\"true\"] .nol-search-filter-count {\n color: HighlightText;\n }\n}\n"], dependencies: [{ kind: "component", type: QuickInputComponent, selector: "nol-quick-input", inputs: ["items", "label", "icon", "emptyText", "isEmptyTextAlert", "query", "isFocusing"], outputs: ["queryChange", "chosen", "dismissed", "tabKey"] }] });
|
|
61
61
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SearchPaletteComponent, decorators: [{
|
|
63
63
|
type: Component,
|
|
64
64
|
args: [{ selector: "nol-search-palette", imports: [QuickInputComponent], 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-quick-input [items]=\"items()\" [label]=\"label()\" [icon]=\"resources.searchGlyph\" [query]=\"query()\" [emptyText]=\"emptyText()\" (queryChange)=\"search($event)\"\n [attr.data-searching]=\"isSearching()\" (chosen)=\"open($event)\" (dismissed)=\"close()\" (tabKey)=\"moveFilter($event)\">\n @for (filter of filters(); track filter.source) {\n <button nolQuickInputFilters type=\"button\" class=\"nol-search-filter\" [attr.data-source]=\"filter.source\" [attr.aria-pressed]=\"filter.isActive\" tabindex=\"-1\"\n (mousedown)=\"$event.preventDefault()\" (click)=\"choose(filter)\">\n <span>{{ filter.label }}</span>\n @if (filter.count !== null) {\n <span class=\"nol-search-filter-count\">{{ filter.count }}{{ filter.isCapped ? resources.cappedCountMark : \"\" }}</span>\n }\n </button>\n }\n @for (hint of resources.searchFooterHints; track hint) {\n <span nolQuickInputFooter class=\"nol-search-hint\">{{ hint }}</span>\n }\n <span nolQuickInputFooter class=\"nol-search-hint nol-search-hint-end\">{{ resources.commandsOnlyHint }}</span>\n</nol-quick-input>\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-search-filter {\n display: flex;\n align-items: center;\n gap: 0.3125rem;\n height: 1.375rem;\n padding: 0 0.5625rem;\n border: 0;\n border-radius: 0.6875rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n font-size: var(--nol-text-small);\n}\n\n.nol-search-filter[aria-pressed=\"true\"] {\n background: var(--nol-selected);\n color: var(--nol-text-strong);\n}\n\n.nol-search-filter-count {\n color: var(--nol-text-muted);\n}\n\n.nol-search-hint-end {\n margin-inline-start: auto;\n}\n\n@media (forced-colors: active) {\n .nol-search-filter {\n padding: 0 calc(0.5625rem - var(--nol-border-width));\n border: var(--nol-border-width) solid ButtonText;\n color: ButtonText;\n }\n\n .nol-search-filter[aria-pressed=\"true\"] {\n background: Highlight;\n color: HighlightText;\n forced-color-adjust: none;\n }\n\n .nol-search-filter[aria-pressed=\"true\"] .nol-search-filter-count {\n color: HighlightText;\n }\n}\n"] }]
|
|
65
65
|
}], ctorParameters: () => [] });
|
|
@@ -162,10 +162,10 @@ export class SettingRowComponent {
|
|
|
162
162
|
asString(value) {
|
|
163
163
|
return String(value);
|
|
164
164
|
}
|
|
165
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
166
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SettingRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
166
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: SettingRowComponent, isStandalone: true, selector: "nol-setting-row", inputs: { definition: { classPropertyName: "definition", publicName: "definition", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, isSet: { classPropertyName: "isSet", publicName: "isSet", isSignal: true, isRequired: false, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, modules: { classPropertyName: "modules", publicName: "modules", isSignal: true, isRequired: false, transformFunction: null }, languages: { classPropertyName: "languages", publicName: "languages", isSignal: true, isRequired: false, transformFunction: null }, note: { classPropertyName: "note", publicName: "note", isSignal: true, isRequired: false, transformFunction: null }, isRequired: { classPropertyName: "isRequired", publicName: "isRequired", isSignal: true, isRequired: false, transformFunction: null }, isInverse: { classPropertyName: "isInverse", publicName: "isInverse", isSignal: true, isRequired: false, transformFunction: null }, canRun: { classPropertyName: "canRun", publicName: "canRun", isSignal: true, isRequired: false, transformFunction: null }, supplied: { classPropertyName: "supplied", publicName: "supplied", isSignal: true, isRequired: false, transformFunction: null }, check: { classPropertyName: "check", publicName: "check", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { changed: "changed", drafted: "drafted", reset: "reset", run: "run" }, host: { properties: { "attr.data-setting": "definition().name.text", "class.nol-setting-row-static": "!hasControl()" }, classAttribute: "nol-setting-row" }, 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-setting-row-heading\">\n @if (isSet()) {\n <span class=\"nol-setting-row-marker material-symbols-rounded\" role=\"img\" [attr.aria-label]=\"resources.modifiedLabel\" [nolTooltip]=\"resources.modifiedLabel\">{{ resources.modifiedGlyph }}</span>\n }\n <span class=\"nol-setting-row-title\"><nol-highlighted-text [text]=\"definition().title\" [query]=\"query()\" /></span>\n @if (isSet()) {\n <button type=\"button\" class=\"nol-setting-row-reset\" nol-button [variant]=\"secondary\" [attr.aria-label]=\"resources.formatResetLabel(definition().title)\" (click)=\"reset.emit()\">\n {{ resources.resetLabel }}\n </button>\n }\n</div>\n<div class=\"nol-setting-row-name\"><nol-highlighted-text [text]=\"definition().name.text\" [query]=\"query()\" [breaksWords]=\"true\" /></div>\n@if (definition().type.kind !== kinds.Boolean) {\n <div class=\"nol-setting-row-description\" [id]=\"descriptionId\"><nol-highlighted-text [text]=\"definition().description\" [query]=\"query()\" /></div>\n}\n<div class=\"nol-setting-row-control\" [class.nol-setting-row-text]=\"definition().type.kind === kinds.Text\">\n @switch (definition().type.kind) {\n @case (kinds.Boolean) {\n <nol-checkbox [checked]=\"current() === true\" (checkedChange)=\"choose($event)\">\n <nol-highlighted-text [text]=\"definition().description\" [query]=\"query()\" />\n </nol-checkbox>\n }\n @case (kinds.Choice) {\n @if (isFew()) {\n <nol-choice-pills [label]=\"definition().title\" [describedBy]=\"describedBy()\" [options]=\"options()\" [value]=\"asString(current())\" (valueChange)=\"choose($event)\" />\n } @else {\n <nol-select [label]=\"definition().title\" [describedBy]=\"describedBy()\" [options]=\"options()\" [value]=\"asString(current())\" [disabled]=\"isWaiting()\" (valueChange)=\"choose($event)\" />\n }\n }\n @case (kinds.Number) {\n <input nol-text-field type=\"number\" class=\"nol-setting-row-number\" [attr.aria-label]=\"definition().title\" [min]=\"definition().type.minimum\" [max]=\"definition().type.maximum\"\n [step]=\"definition().type.step\" [value]=\"current()\" [attr.aria-invalid]=\"error() ? true : null\" [attr.aria-describedby]=\"describedBy()\"\n (change)=\"commitNumber($event)\" (keydown.escape)=\"revertNumber($event)\" />\n }\n @case (kinds.Text) {\n <input nol-text-field type=\"text\" [attr.aria-label]=\"definition().title\" [attr.aria-invalid]=\"message() ? true : null\" [attr.aria-describedby]=\"describedBy()\" [attr.maxlength]=\"definition().type.maxLength\" [value]=\"fieldText()\" (input)=\"draftText($event)\" (change)=\"commitText($event)\" />\n }\n @case (kinds.Action) {\n <button type=\"button\" nol-button [variant]=\"secondary\" [attr.aria-describedby]=\"describedBy()\" [disabled]=\"!canRun()\" (click)=\"run.emit()\">\n <nol-highlighted-text [text]=\"asString(definition().type.label)\" [query]=\"query()\" />\n </button>\n }\n @case (kinds.Modules) {\n <div class=\"nol-setting-row-list\" role=\"group\" [attr.aria-label]=\"definition().title\" [attr.aria-describedby]=\"describedBy()\">\n @for (module of modules(); track module.value) {\n <nol-checkbox [checked]=\"chosen().has(module.value) !== isInverse()\" (checkedChange)=\"toggleModule(module.value, $event)\">{{ module.title }}</nol-checkbox>\n }\n </div>\n }\n @case (kinds.Languages) {\n @if (languages().length > 0) {\n <div class=\"nol-setting-row-list\" role=\"group\" [attr.aria-label]=\"definition().title\" [attr.aria-describedby]=\"describedBy()\">\n @for (language of languages(); track language.value) {\n <nol-checkbox [checked]=\"chosen().has(language.value)\" (checkedChange)=\"toggleLanguage(language.value, $event)\">{{ language.title }}</nol-checkbox>\n }\n </div>\n }\n }\n }\n @if (note(); as text) {\n <div class=\"nol-setting-row-note\" [id]=\"noteId\">{{ text }}</div>\n }\n</div>\n@if (message(); as text) {\n <nol-field-message [id]=\"errorId\">{{ text }}</nol-field-message>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n padding: var(--nol-settings-item-padding);\n border-radius: var(--nol-radius-medium);\n}\n\n:host(:not(.nol-setting-row-static):hover) {\n background-color: var(--nol-hover);\n}\n\n.nol-setting-row-heading {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--nol-space-2);\n min-height: var(--nol-field-height);\n}\n\n.nol-setting-row-marker {\n flex: none;\n color: var(--nol-accent);\n font-size: var(--nol-setting-marker);\n font-variation-settings: \"FILL\" 1;\n}\n\n.nol-setting-row-title {\n color: var(--nol-setting-title);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.nol-setting-row-reset {\n margin-inline-start: auto;\n}\n\n.nol-setting-row-name {\n overflow-wrap: anywhere;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n}\n\n.nol-setting-row-description {\n margin-top: var(--nol-settings-item-description-gap);\n color: var(--nol-text);\n}\n\n.nol-setting-row-control {\n display: flex;\n flex-wrap: wrap;\n min-width: 0;\n margin-top: var(--nol-settings-item-control-gap);\n}\n\n.nol-setting-row-list {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n}\n\n.nol-setting-row-note {\n color: var(--nol-text-muted);\n}\n\n.nol-setting-row-text {\n align-items: baseline;\n column-gap: var(--nol-space-2);\n}\n\n.nol-setting-row-text > .nol-setting-row-note {\n flex: 1 1 0;\n min-width: min(100%, 10rem);\n overflow-wrap: anywhere;\n}\n\n.nol-setting-row-number {\n width: var(--nol-number-field-width);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled"], outputs: ["checkedChange"] }, { kind: "component", type: ChoicePillsComponent, selector: "nol-choice-pills", inputs: ["options", "value", "label", "describedBy"], outputs: ["valueChange"] }, { kind: "component", type: FieldMessageComponent, selector: "nol-field-message", inputs: ["kind"] }, { kind: "component", type: HighlightedTextComponent, selector: "nol-highlighted-text", inputs: ["text", "query", "breaksWords"] }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
167
167
|
}
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SettingRowComponent, decorators: [{
|
|
169
169
|
type: Component,
|
|
170
170
|
args: [{ selector: "nol-setting-row", imports: [ButtonComponent, CheckboxComponent, ChoicePillsComponent, FieldMessageComponent, HighlightedTextComponent, SelectComponent, TextFieldComponent, TooltipDirective], host: {
|
|
171
171
|
"class": "nol-setting-row",
|
|
@@ -264,10 +264,10 @@ export class SettingsComponent {
|
|
|
264
264
|
static matches(definition, query) {
|
|
265
265
|
return [definition.title, definition.description, definition.name.text, definition.type.label].some(t => !Object.isNull(t) && TextMatch.contains(t, query));
|
|
266
266
|
}
|
|
267
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
268
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: SettingsComponent, isStandalone: true, selector: "nol-settings", host: { listeners: { "focusin": "noteFocus($event)", "focusout": "noteBlur()" }, classAttribute: "nol-settings" }, viewQueries: [{ propertyName: "pageList", first: true, predicate: ["pageList"], descendants: true, isSignal: true }, { propertyName: "column", first: true, predicate: ["column"], descendants: true, isSignal: true }, { propertyName: "pageTree", first: true, predicate: TreeComponent, descendants: true, isSignal: true }, { propertyName: "pageSelect", first: true, predicate: ["pageSelect"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "pageChooser", first: true, predicate: ["pageSelect"], descendants: true, read: SelectComponent, 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<div class=\"nol-settings-search\">\n <nol-select #pageSelect class=\"nol-settings-page-select\" [label]=\"resources.settingsPagesLabel\" [options]=\"pageOptions()\" [value]=\"pageChoice()\" (valueChange)=\"select($event)\" />\n <input nol-text-field type=\"search\" class=\"nol-settings-search-field\" [attr.aria-label]=\"resources.searchSettingsLabel\" [placeholder]=\"resources.searchSettingsLabel\"\n [value]=\"query()\" (input)=\"search($event)\" />\n</div>\n<div class=\"nol-settings-body\">\n <div #pageList class=\"nol-settings-pages\">\n <nol-tree [nodes]=\"pageNodes()\" [label]=\"resources.settingsPagesLabel\" [current]=\"isSearching() ? null : currentPage()?.title ?? null\" (activated)=\"select($event.id)\" />\n </div>\n <div class=\"nol-settings-content\">\n <div #column class=\"nol-settings-column\">\n @if (isSearching()) {\n @for (page of results(); track page.title) {\n <section class=\"nol-settings-result\" [attr.aria-label]=\"page.title\">\n <h2 class=\"nol-settings-result-title\">{{ page.title }}</h2>\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: page, isResult: true }\" />\n </section>\n } @empty {\n <p class=\"nol-settings-empty\">{{ resources.noSettingsFound }}</p>\n }\n } @else if (currentPage(); as page) {\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: page, isResult: false }\" />\n }\n </div>\n </div>\n</div>\n\n<ng-template #body let-page let-isResult=\"isResult\">\n @if (page.isGallery) {\n <ng-container [ngComponentOutlet]=\"gallery\" />\n } @else if (page.entry; as entry) {\n @if (isResult) {\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"select(page.title)\">{{ resources.openSettingsPageLabel }}</button>\n @if (matchingRows(entry).length > 0) {\n <ul class=\"nol-settings-found-rows\">\n @for (row of matchingRows(entry); track row.id) {\n <li class=\"nol-settings-found-row\">\n <button type=\"button\" nol-button [variant]=\"text\" class=\"nol-settings-found-row-open\" (click)=\"openRow(page.title, row.id)\">\n <nol-highlighted-text [text]=\"row.title\" [query]=\"query()\" />\n </button>\n @if (row.description; as description) {\n <p class=\"nol-settings-found-row-description\"><nol-highlighted-text [text]=\"description\" [query]=\"query()\" /></p>\n }\n </li>\n }\n </ul>\n }\n } @else {\n <h2 class=\"nol-settings-group-title\">{{ page.title }}</h2>\n <nol-settings-page-host [entry]=\"entry\" />\n }\n <ng-container [ngTemplateOutlet]=\"groups\" [ngTemplateOutletContext]=\"{ $implicit: page, isResult: isResult }\" />\n } @else if (page.isShortcuts) {\n @if (!isResult) {\n <h2 class=\"nol-settings-group-title\">{{ page.title }}</h2>\n }\n <nol-shortcuts [rows]=\"matchingShortcuts()\" [query]=\"query()\" />\n } @else {\n @if (page.isAbout && !isResult) {\n <nol-about />\n }\n @if (page.isGeneral && !isResult) {\n <section class=\"nol-settings-group\" [attr.aria-label]=\"resources.runtimeGroup\">\n <h2 class=\"nol-settings-group-title\">{{ resources.runtimeGroup }}</h2>\n <nol-runtime-status />\n </section>\n }\n <ng-container [ngTemplateOutlet]=\"groups\" [ngTemplateOutletContext]=\"{ $implicit: page, isResult: isResult }\" />\n }\n</ng-template>\n\n<ng-template #groups let-page let-isResult=\"isResult\">\n @for (group of page.groups; track group.title) {\n <section class=\"nol-settings-group\" [attr.aria-label]=\"group.title\">\n @if (isResult) {\n <h3 class=\"nol-settings-result-group\">{{ group.title }}</h3>\n } @else {\n <h2 class=\"nol-settings-group-title\">{{ group.title }}</h2>\n }\n <div class=\"nol-settings-rows\">\n @for (definition of group.definitions; track definition.name.text) {\n <nol-setting-row [definition]=\"definition\" [value]=\"values().get(definition.name.text)\" [isSet]=\"setFlags().get(definition.name.text)?.() ?? false\"\n [query]=\"query()\" [modules]=\"isMutedModules(definition) ? notifyingModules() : modules()\" [isInverse]=\"isMutedModules(definition)\" [canRun]=\"canRun(definition)\"\n [languages]=\"spelling.options()\" [note]=\"noteFor(definition)\" [isRequired]=\"isFormat(definition)\" [supplied]=\"settingOptions.read(definition.name.text)\"\n [check]=\"settingChecks.read(definition.name.text)\" (changed)=\"change(definition, $event)\" (drafted)=\"draft(definition, $event)\" (reset)=\"reset(definition)\" (run)=\"run(definition)\" />\n }\n </div>\n </section>\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 display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n box-sizing: border-box;\n padding-block: var(--nol-space-4) 0;\n padding-inline: var(--nol-settings-margin) 0;\n container: settings / inline-size;\n --nol-settings-margin: var(--nol-space-6);\n --nol-settings-gap: var(--nol-space-6);\n --nol-settings-edge: var(--nol-settings-item-padding-inline);\n}\n\n.nol-settings-search {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n padding-inline-end: var(--nol-settings-margin);\n padding-bottom: var(--nol-space-4);\n}\n\n.nol-settings-search-field {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.nol-settings-body {\n display: flex;\n flex: auto;\n min-height: 0;\n}\n\n.nol-settings-pages {\n flex: none;\n width: var(--nol-settings-pages-width);\n overflow-y: auto;\n}\n\n.nol-settings-content {\n flex: auto;\n min-width: 0;\n overflow: auto;\n padding-inline-start: var(--nol-settings-gap);\n scrollbar-gutter: stable;\n}\n\n.nol-settings-column {\n padding-inline: var(--nol-settings-content-inset) calc(var(--nol-settings-margin) - var(--nol-scrollbar-size));\n padding-bottom: var(--nol-space-6);\n}\n\n.nol-settings-group-title,\n.nol-settings-result-title {\n margin: 0 0 var(--nol-settings-heading-space);\n color: var(--nol-setting-title);\n font-size: var(--nol-text-heading);\n font-weight: var(--nol-weight-emphasis);\n line-height: var(--nol-line-heading);\n}\n\n.nol-settings-group-title,\n.nol-settings-result-title,\n.nol-settings-result-group,\nnol-about,\nnol-shortcuts {\n padding-inline: var(--nol-settings-edge);\n}\n\n.nol-settings-result > button {\n margin-inline-start: var(--nol-settings-edge);\n}\n\n.nol-settings-rows {\n display: flex;\n flex-direction: column;\n gap: var(--nol-row-gap);\n}\n\n.nol-settings-group + .nol-settings-group,\nnol-settings-page-host + .nol-settings-group,\n.nol-settings-result + .nol-settings-result {\n margin-top: var(--nol-space-6);\n}\n\n.nol-settings-result-group {\n margin: var(--nol-space-3) 0 0;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n font-weight: var(--nol-weight-emphasis);\n line-height: var(--nol-line-label);\n}\n\n.nol-settings-empty {\n margin: 0 0 var(--nol-space-3);\n color: var(--nol-text);\n}\n\n@container settings (width >= 35.5rem) {\n .nol-settings-page-select {\n display: none;\n }\n}\n\n@container settings (width < 35.5rem) {\n .nol-settings-page-select,\n .nol-settings-search-field {\n flex: 1 1 10rem;\n }\n\n .nol-settings-pages {\n display: none;\n }\n\n .nol-settings-content,\n .nol-settings-column {\n padding-inline-start: 0;\n }\n}\n\n.nol-settings-found-rows {\n display: flex;\n flex-direction: column;\n gap: var(--nol-row-gap);\n margin: var(--nol-settings-heading-space) 0 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-settings-found-row {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding-inline: var(--nol-settings-edge);\n}\n\n.nol-settings-found-row-open {\n margin-inline-start: calc(-1 * var(--nol-button-padding));\n font-weight: var(--nol-weight-emphasis);\n}\n\n.nol-settings-found-row-description {\n margin: 0;\n color: var(--nol-text);\n}\n"], dependencies: [{ kind: "component", type: AboutComponent, selector: "nol-about" }, { kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: HighlightedTextComponent, selector: "nol-highlighted-text", inputs: ["text", "query", "breaksWords"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: RuntimeStatusComponent, selector: "nol-runtime-status" }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: SettingRowComponent, selector: "nol-setting-row", inputs: ["definition", "value", "isSet", "query", "modules", "languages", "note", "isRequired", "isInverse", "canRun", "supplied", "check"], outputs: ["changed", "drafted", "reset", "run"] }, { kind: "component", type: SettingsPageHostComponent, selector: "nol-settings-page-host", inputs: ["entry"] }, { kind: "component", type: ShortcutsComponent, selector: "nol-shortcuts", inputs: ["rows", "query"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]" }, { kind: "component", type: TreeComponent, selector: "nol-tree", inputs: ["nodes", "label", "current", "movable"], outputs: ["activated", "moved"] }] });
|
|
267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
268
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: SettingsComponent, isStandalone: true, selector: "nol-settings", host: { listeners: { "focusin": "noteFocus($event)", "focusout": "noteBlur()" }, classAttribute: "nol-settings" }, viewQueries: [{ propertyName: "pageList", first: true, predicate: ["pageList"], descendants: true, isSignal: true }, { propertyName: "column", first: true, predicate: ["column"], descendants: true, isSignal: true }, { propertyName: "pageTree", first: true, predicate: TreeComponent, descendants: true, isSignal: true }, { propertyName: "pageSelect", first: true, predicate: ["pageSelect"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "pageChooser", first: true, predicate: ["pageSelect"], descendants: true, read: SelectComponent, 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<div class=\"nol-settings-search\">\n <nol-select #pageSelect class=\"nol-settings-page-select\" [label]=\"resources.settingsPagesLabel\" [options]=\"pageOptions()\" [value]=\"pageChoice()\" (valueChange)=\"select($event)\" />\n <input nol-text-field type=\"search\" class=\"nol-settings-search-field\" [attr.aria-label]=\"resources.searchSettingsLabel\" [placeholder]=\"resources.searchSettingsLabel\"\n [value]=\"query()\" (input)=\"search($event)\" />\n</div>\n<div class=\"nol-settings-body\">\n <div #pageList class=\"nol-settings-pages\">\n <nol-tree [nodes]=\"pageNodes()\" [label]=\"resources.settingsPagesLabel\" [current]=\"isSearching() ? null : currentPage()?.title ?? null\" (activated)=\"select($event.id)\" />\n </div>\n <div class=\"nol-settings-content\">\n <div #column class=\"nol-settings-column\">\n @if (isSearching()) {\n @for (page of results(); track page.title) {\n <section class=\"nol-settings-result\" [attr.aria-label]=\"page.title\">\n <h2 class=\"nol-settings-result-title\">{{ page.title }}</h2>\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: page, isResult: true }\" />\n </section>\n } @empty {\n <p class=\"nol-settings-empty\">{{ resources.noSettingsFound }}</p>\n }\n } @else if (currentPage(); as page) {\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: page, isResult: false }\" />\n }\n </div>\n </div>\n</div>\n\n<ng-template #body let-page let-isResult=\"isResult\">\n @if (page.isGallery) {\n <ng-container [ngComponentOutlet]=\"gallery\" />\n } @else if (page.entry; as entry) {\n @if (isResult) {\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"select(page.title)\">{{ resources.openSettingsPageLabel }}</button>\n @if (matchingRows(entry).length > 0) {\n <ul class=\"nol-settings-found-rows\">\n @for (row of matchingRows(entry); track row.id) {\n <li class=\"nol-settings-found-row\">\n <button type=\"button\" nol-button [variant]=\"text\" class=\"nol-settings-found-row-open\" (click)=\"openRow(page.title, row.id)\">\n <nol-highlighted-text [text]=\"row.title\" [query]=\"query()\" />\n </button>\n @if (row.description; as description) {\n <p class=\"nol-settings-found-row-description\"><nol-highlighted-text [text]=\"description\" [query]=\"query()\" /></p>\n }\n </li>\n }\n </ul>\n }\n } @else {\n <h2 class=\"nol-settings-group-title\">{{ page.title }}</h2>\n <nol-settings-page-host [entry]=\"entry\" />\n }\n <ng-container [ngTemplateOutlet]=\"groups\" [ngTemplateOutletContext]=\"{ $implicit: page, isResult: isResult }\" />\n } @else if (page.isShortcuts) {\n @if (!isResult) {\n <h2 class=\"nol-settings-group-title\">{{ page.title }}</h2>\n }\n <nol-shortcuts [rows]=\"matchingShortcuts()\" [query]=\"query()\" />\n } @else {\n @if (page.isAbout && !isResult) {\n <nol-about />\n }\n @if (page.isGeneral && !isResult) {\n <section class=\"nol-settings-group\" [attr.aria-label]=\"resources.runtimeGroup\">\n <h2 class=\"nol-settings-group-title\">{{ resources.runtimeGroup }}</h2>\n <nol-runtime-status />\n </section>\n }\n <ng-container [ngTemplateOutlet]=\"groups\" [ngTemplateOutletContext]=\"{ $implicit: page, isResult: isResult }\" />\n }\n</ng-template>\n\n<ng-template #groups let-page let-isResult=\"isResult\">\n @for (group of page.groups; track group.title) {\n <section class=\"nol-settings-group\" [attr.aria-label]=\"group.title\">\n @if (isResult) {\n <h3 class=\"nol-settings-result-group\">{{ group.title }}</h3>\n } @else {\n <h2 class=\"nol-settings-group-title\">{{ group.title }}</h2>\n }\n <div class=\"nol-settings-rows\">\n @for (definition of group.definitions; track definition.name.text) {\n <nol-setting-row [definition]=\"definition\" [value]=\"values().get(definition.name.text)\" [isSet]=\"setFlags().get(definition.name.text)?.() ?? false\"\n [query]=\"query()\" [modules]=\"isMutedModules(definition) ? notifyingModules() : modules()\" [isInverse]=\"isMutedModules(definition)\" [canRun]=\"canRun(definition)\"\n [languages]=\"spelling.options()\" [note]=\"noteFor(definition)\" [isRequired]=\"isFormat(definition)\" [supplied]=\"settingOptions.read(definition.name.text)\"\n [check]=\"settingChecks.read(definition.name.text)\" (changed)=\"change(definition, $event)\" (drafted)=\"draft(definition, $event)\" (reset)=\"reset(definition)\" (run)=\"run(definition)\" />\n }\n </div>\n </section>\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 display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n box-sizing: border-box;\n padding-block: var(--nol-space-4) 0;\n padding-inline: var(--nol-settings-margin) 0;\n container: settings / inline-size;\n --nol-settings-margin: var(--nol-space-6);\n --nol-settings-gap: var(--nol-space-6);\n --nol-settings-edge: var(--nol-settings-item-padding-inline);\n}\n\n.nol-settings-search {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n padding-inline-end: var(--nol-settings-margin);\n padding-bottom: var(--nol-space-4);\n}\n\n.nol-settings-search-field {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.nol-settings-body {\n display: flex;\n flex: auto;\n min-height: 0;\n}\n\n.nol-settings-pages {\n flex: none;\n width: var(--nol-settings-pages-width);\n overflow-y: auto;\n}\n\n.nol-settings-content {\n flex: auto;\n min-width: 0;\n overflow: auto;\n padding-inline-start: var(--nol-settings-gap);\n scrollbar-gutter: stable;\n}\n\n.nol-settings-column {\n padding-inline: var(--nol-settings-content-inset) calc(var(--nol-settings-margin) - var(--nol-scrollbar-size));\n padding-bottom: var(--nol-space-6);\n}\n\n.nol-settings-group-title,\n.nol-settings-result-title {\n margin: 0 0 var(--nol-settings-heading-space);\n color: var(--nol-setting-title);\n font-size: var(--nol-text-heading);\n font-weight: var(--nol-weight-emphasis);\n line-height: var(--nol-line-heading);\n}\n\n.nol-settings-group-title,\n.nol-settings-result-title,\n.nol-settings-result-group,\nnol-about,\nnol-shortcuts {\n padding-inline: var(--nol-settings-edge);\n}\n\n.nol-settings-result > button {\n margin-inline-start: var(--nol-settings-edge);\n}\n\n.nol-settings-rows {\n display: flex;\n flex-direction: column;\n gap: var(--nol-row-gap);\n}\n\n.nol-settings-group + .nol-settings-group,\nnol-settings-page-host + .nol-settings-group,\n.nol-settings-result + .nol-settings-result {\n margin-top: var(--nol-space-6);\n}\n\n.nol-settings-result-group {\n margin: var(--nol-space-3) 0 0;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n font-weight: var(--nol-weight-emphasis);\n line-height: var(--nol-line-label);\n}\n\n.nol-settings-empty {\n margin: 0 0 var(--nol-space-3);\n color: var(--nol-text);\n}\n\n@container settings (width >= 35.5rem) {\n .nol-settings-page-select {\n display: none;\n }\n}\n\n@container settings (width < 35.5rem) {\n .nol-settings-page-select,\n .nol-settings-search-field {\n flex: 1 1 10rem;\n }\n\n .nol-settings-pages {\n display: none;\n }\n\n .nol-settings-content,\n .nol-settings-column {\n padding-inline-start: 0;\n }\n}\n\n.nol-settings-found-rows {\n display: flex;\n flex-direction: column;\n gap: var(--nol-row-gap);\n margin: var(--nol-settings-heading-space) 0 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-settings-found-row {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding-inline: var(--nol-settings-edge);\n}\n\n.nol-settings-found-row-open {\n margin-inline-start: calc(-1 * var(--nol-button-padding));\n font-weight: var(--nol-weight-emphasis);\n}\n\n.nol-settings-found-row-description {\n margin: 0;\n color: var(--nol-text);\n}\n"], dependencies: [{ kind: "component", type: AboutComponent, selector: "nol-about" }, { kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: HighlightedTextComponent, selector: "nol-highlighted-text", inputs: ["text", "query", "breaksWords"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: RuntimeStatusComponent, selector: "nol-runtime-status" }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: SettingRowComponent, selector: "nol-setting-row", inputs: ["definition", "value", "isSet", "query", "modules", "languages", "note", "isRequired", "isInverse", "canRun", "supplied", "check"], outputs: ["changed", "drafted", "reset", "run"] }, { kind: "component", type: SettingsPageHostComponent, selector: "nol-settings-page-host", inputs: ["entry"] }, { kind: "component", type: ShortcutsComponent, selector: "nol-shortcuts", inputs: ["rows", "query"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]" }, { kind: "component", type: TreeComponent, selector: "nol-tree", inputs: ["nodes", "label", "current", "movable"], outputs: ["activated", "moved"] }] });
|
|
269
269
|
}
|
|
270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SettingsComponent, decorators: [{
|
|
271
271
|
type: Component,
|
|
272
272
|
args: [{ selector: "nol-settings", imports: [AboutComponent, ButtonComponent, HighlightedTextComponent, NgComponentOutlet, NgTemplateOutlet, RuntimeStatusComponent, SelectComponent, SettingRowComponent, SettingsPageHostComponent, ShortcutsComponent, TextFieldComponent,
|
|
273
273
|
TreeComponent], host: {
|
|
@@ -45,10 +45,10 @@ export class SettingsPageHostComponent {
|
|
|
45
45
|
...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
|
|
46
46
|
entry = input.required(/* @ts-ignore */
|
|
47
47
|
...(ngDevMode ? [{ debugName: "entry" }] : /* istanbul ignore next */ []));
|
|
48
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
49
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SettingsPageHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: SettingsPageHostComponent, isStandalone: true, selector: "nol-settings-page-host", inputs: { entry: { classPropertyName: "entry", publicName: "entry", 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@if (failure(); as failure) {\n <nol-module-failure-card [failure]=\"failure\" />\n} @else if (loaded(); as type) {\n <ng-container *ngComponentOutlet=\"type; injector: pageInjector()\" />\n} @else {\n <nol-spinner [label]=\"resources.settingsPageLoading\" [isDelayed]=\"true\" />\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\nnol-settings-page-host {\n display: block;\n padding-inline: var(--nol-settings-edge);\n}\n\nnol-settings-page-host .nol-settings-group-title {\n margin: 0 0 var(--nol-settings-heading-space);\n padding: 0;\n color: var(--nol-setting-title);\n font-size: var(--nol-text-heading);\n font-weight: var(--nol-weight-emphasis);\n line-height: var(--nol-line-heading);\n}\n\nnol-settings-page-host .nol-settings-rows {\n display: flex;\n flex-direction: column;\n gap: var(--nol-row-gap);\n}\n\nnol-settings-page-host .nol-settings-group + .nol-settings-group {\n margin-top: var(--nol-space-6);\n}\n\nnol-settings-page-host .nol-setting-row {\n display: flex;\n flex-direction: column;\n margin-inline: calc(-1 * var(--nol-settings-edge));\n padding: var(--nol-settings-item-padding);\n border-radius: var(--nol-radius-medium);\n}\n\nnol-settings-page-host .nol-setting-row:hover:has(a[href], audio[controls], button, input, select, summary, textarea, video[controls], [tabindex]:not([tabindex=\"-1\"]), [contenteditable]:not([contenteditable=\"false\"])) {\n background-color: var(--nol-hover);\n}\n\nnol-settings-page-host .nol-setting-row-heading {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--nol-space-2);\n min-height: var(--nol-field-height);\n}\n\nnol-settings-page-host .nol-setting-row-title {\n color: var(--nol-setting-title);\n font-weight: var(--nol-weight-emphasis);\n}\n\nnol-settings-page-host .nol-setting-row-end {\n margin-inline-start: auto;\n}\n\nnol-settings-page-host .nol-setting-row-description {\n margin-top: var(--nol-settings-item-description-gap);\n color: var(--nol-text);\n}\n\nnol-settings-page-host .nol-setting-row-control {\n display: flex;\n flex-wrap: wrap;\n min-width: 0;\n margin-top: var(--nol-settings-item-control-gap);\n}\n\nnol-settings-page-host .nol-setting-row-found {\n background-color: var(--nol-selected);\n}\n"], dependencies: [{ kind: "component", type: ModuleFailureCardComponent, selector: "nol-module-failure-card", inputs: ["failure"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
50
50
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SettingsPageHostComponent, decorators: [{
|
|
52
52
|
type: Component,
|
|
53
53
|
args: [{ selector: "nol-settings-page-host", imports: [ModuleFailureCardComponent, NgComponentOutlet, SpinnerComponent], encapsulation: ViewEncapsulation.None, 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 (failure(); as failure) {\n <nol-module-failure-card [failure]=\"failure\" />\n} @else if (loaded(); as type) {\n <ng-container *ngComponentOutlet=\"type; injector: pageInjector()\" />\n} @else {\n <nol-spinner [label]=\"resources.settingsPageLoading\" [isDelayed]=\"true\" />\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\nnol-settings-page-host {\n display: block;\n padding-inline: var(--nol-settings-edge);\n}\n\nnol-settings-page-host .nol-settings-group-title {\n margin: 0 0 var(--nol-settings-heading-space);\n padding: 0;\n color: var(--nol-setting-title);\n font-size: var(--nol-text-heading);\n font-weight: var(--nol-weight-emphasis);\n line-height: var(--nol-line-heading);\n}\n\nnol-settings-page-host .nol-settings-rows {\n display: flex;\n flex-direction: column;\n gap: var(--nol-row-gap);\n}\n\nnol-settings-page-host .nol-settings-group + .nol-settings-group {\n margin-top: var(--nol-space-6);\n}\n\nnol-settings-page-host .nol-setting-row {\n display: flex;\n flex-direction: column;\n margin-inline: calc(-1 * var(--nol-settings-edge));\n padding: var(--nol-settings-item-padding);\n border-radius: var(--nol-radius-medium);\n}\n\nnol-settings-page-host .nol-setting-row:hover:has(a[href], audio[controls], button, input, select, summary, textarea, video[controls], [tabindex]:not([tabindex=\"-1\"]), [contenteditable]:not([contenteditable=\"false\"])) {\n background-color: var(--nol-hover);\n}\n\nnol-settings-page-host .nol-setting-row-heading {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--nol-space-2);\n min-height: var(--nol-field-height);\n}\n\nnol-settings-page-host .nol-setting-row-title {\n color: var(--nol-setting-title);\n font-weight: var(--nol-weight-emphasis);\n}\n\nnol-settings-page-host .nol-setting-row-end {\n margin-inline-start: auto;\n}\n\nnol-settings-page-host .nol-setting-row-description {\n margin-top: var(--nol-settings-item-description-gap);\n color: var(--nol-text);\n}\n\nnol-settings-page-host .nol-setting-row-control {\n display: flex;\n flex-wrap: wrap;\n min-width: 0;\n margin-top: var(--nol-settings-item-control-gap);\n}\n\nnol-settings-page-host .nol-setting-row-found {\n background-color: var(--nol-selected);\n}\n"] }]
|
|
54
54
|
}], propDecorators: { entry: [{ type: i0.Input, args: [{ isSignal: true, alias: "entry", required: true }] }] } });
|
|
@@ -167,10 +167,10 @@ export class ShortcutsComponent {
|
|
|
167
167
|
focusKey(command) {
|
|
168
168
|
this.host.nativeElement.querySelector(Resources.formatShortcutKeySelector(command))?.focus();
|
|
169
169
|
}
|
|
170
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
171
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
170
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ShortcutsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
171
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: ShortcutsComponent, isStandalone: true, selector: "nol-shortcuts", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: true, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "nol-shortcuts" }, 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-configuration-table [label]=\"resources.shortcutsPage\" [explanation]=\"resources.shortcutsExplanation\">\n <button type=\"button\" class=\"nol-shortcuts-reset-all\" nolConfigurationTableAction nol-button [variant]=\"secondary\" [disabled]=\"!isModified()\" (click)=\"resetAll()\">{{ resources.resetAllShortcutsLabel }}</button>\n <table class=\"nol-shortcuts-table\" nolConfigurationTable>\n <thead>\n <tr>\n <th scope=\"col\" nolConfigurationTableFill>{{ resources.commandColumn }}</th>\n <th scope=\"col\">{{ resources.ownerColumn }}</th>\n <th scope=\"col\" class=\"nol-shortcuts-key-column\">{{ resources.keyColumn }}</th>\n <th scope=\"col\" class=\"nol-shortcuts-actions-column\" [attr.aria-label]=\"resources.actionsColumn\"></th>\n </tr>\n </thead>\n <tbody>\n @for (row of rows(); track row.name) {\n @let isRecording = recording() === row.name;\n @let rowNotice = notice()?.command === row.name ? notice() : null;\n <tr [attr.data-command]=\"row.name\" [attr.data-setting]=\"row.name\">\n <td nolConfigurationTableFill>\n <span class=\"nol-shortcut-title\">\n @if (row.isModified) {\n <span class=\"nol-shortcut-marker material-symbols-rounded\" role=\"img\" [attr.aria-label]=\"resources.modifiedLabel\" [nolTooltip]=\"resources.modifiedLabel\">{{ resources.modifiedGlyph }}</span>\n }\n <nol-highlighted-text [text]=\"row.title\" [query]=\"query()\" />\n </span>\n <span class=\"nol-shortcut-name\"><nol-highlighted-text [text]=\"row.name\" [query]=\"query()\" [breaksWords]=\"true\" /></span>\n @if (row.name === resources.stopAgentControlCommand && isLinux) {\n <span class=\"nol-shortcut-name nol-shortcut-system\">{{ resources.stopKeyWaylandNote }}</span>\n }\n </td>\n <td class=\"nol-shortcut-owner\"><nol-highlighted-text [text]=\"row.owner\" [query]=\"query()\" /></td>\n <td>\n <button type=\"button\" class=\"nol-shortcut-key\" nol-button [variant]=\"secondary\" [class.nol-shortcut-key-recording]=\"isRecording\"\n [attr.aria-label]=\"formatKeyLabel(row, isRecording)\" [attr.aria-describedby]=\"describeKey(row, rowNotice !== null)\" (click)=\"record(row)\" (keydown)=\"press(row, $event)\" (keyup)=\"release(row, $event)\" (blur)=\"stopRecording(row)\">\n @if (isRecording) {\n {{ hint() }}\n } @else {\n <nol-highlighted-text [text]=\"row.key\" [query]=\"query()\" />\n }\n </button>\n @if (row.collision; as collision) {\n <span class=\"nol-shortcut-collision\" [id]=\"collisionId(row)\">{{ collision }}</span>\n }\n @if (row.paneNote; as paneNote) {\n <span class=\"nol-shortcut-collision\" [id]=\"paneNoteId(row)\">{{ paneNote }}</span>\n }\n @if (rowNotice) {\n <div class=\"nol-shortcut-notice\" role=\"alert\">\n <span class=\"nol-shortcut-notice-text\" [id]=\"noticeId(row)\">{{ rowNotice.text }}</span>\n @if (rowNotice.holder; as holder) {\n <span class=\"nol-shortcut-notice-actions\">\n <button type=\"button\" nol-button [variant]=\"primary\" (click)=\"useHere(rowNotice, holder)\">{{ resources.useKeyHereLabel }}</button>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"dismiss(rowNotice)\">{{ resources.cancelLabel }}</button>\n </span>\n }\n </div>\n }\n </td>\n <td>\n <div class=\"nol-shortcut-actions\">\n @if (row.hasKey) {\n <button type=\"button\" nol-button [variant]=\"secondary\" [attr.aria-label]=\"resources.formatRemoveKeyLabel(row.title)\" (click)=\"remove(row)\">{{ resources.removeKeyLabel }}</button>\n }\n @if (row.isModified) {\n <button type=\"button\" nol-button [variant]=\"secondary\" [attr.aria-label]=\"resources.formatResetLabel(row.title)\" (click)=\"reset(row)\">{{ resources.resetLabel }}</button>\n }\n </div>\n </td>\n </tr>\n }\n </tbody>\n </table>\n</nol-configuration-table>\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}\n\n.nol-shortcuts-key-column {\n min-width: 12rem;\n}\n\n.nol-shortcuts-actions-column {\n min-width: 9rem;\n}\n\n.nol-shortcut-title {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-height: var(--nol-button-height);\n}\n\n.nol-shortcut-name {\n display: block;\n overflow-wrap: anywhere;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n}\n\n.nol-shortcut-system {\n margin-block-start: var(--nol-space-1);\n}\n\n.nol-shortcut-marker {\n flex: none;\n color: var(--nol-accent);\n font-size: var(--nol-setting-marker);\n font-variation-settings: \"FILL\" 1;\n}\n\n.nol-shortcut-owner {\n color: var(--nol-text-muted);\n}\n\n.nol-shortcut-key-recording {\n border-color: var(--nol-accent);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-shortcut-collision,\n.nol-shortcut-notice {\n display: block;\n width: 0;\n min-width: 100%;\n white-space: normal;\n margin-top: var(--nol-space-1);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n}\n\n.nol-shortcut-collision {\n color: var(--nol-text-muted);\n}\n\n.nol-shortcut-notice {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n}\n\n.nol-shortcut-notice-actions,\n.nol-shortcut-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n\n.nol-shortcut-actions {\n justify-content: flex-end;\n}\n\n.nol-setting-row-found {\n background-color: var(--nol-selected);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "directive", type: ConfigurationTableActionDirective, selector: "[nolConfigurationTableAction]" }, { kind: "component", type: ConfigurationTableComponent, selector: "nol-configuration-table", inputs: ["heading", "label", "level", "explanation", "density"] }, { kind: "directive", type: ConfigurationTableDirective, selector: "table[nolConfigurationTable]" }, { kind: "directive", type: ConfigurationTableFillDirective, selector: "th[nolConfigurationTableFill], td[nolConfigurationTableFill]", inputs: ["nolConfigurationTableFillMinWidth"] }, { kind: "component", type: HighlightedTextComponent, selector: "nol-highlighted-text", inputs: ["text", "query", "breaksWords"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
172
172
|
}
|
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ShortcutsComponent, decorators: [{
|
|
174
174
|
type: Component,
|
|
175
175
|
args: [{ selector: "nol-shortcuts", imports: [ButtonComponent, ConfigurationTableActionDirective, ConfigurationTableComponent, ConfigurationTableDirective, ConfigurationTableFillDirective, HighlightedTextComponent, TooltipDirective], host: {
|
|
176
176
|
"class": "nol-shortcuts"
|
|
@@ -27,10 +27,10 @@ export class SplitSashComponent {
|
|
|
27
27
|
resize(delta) {
|
|
28
28
|
this.layout.resizeSplit(this.handle(), this.handle().leadingLength + delta / this.appearance.typography().rootSize);
|
|
29
29
|
}
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
31
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SplitSashComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: SplitSashComponent, isStandalone: true, selector: "nol-split-sash", inputs: { handle: { classPropertyName: "handle", publicName: "handle", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "attr.data-split": "handle().split.id", "attr.data-index": "handle().index", "style.left.rem": "handle().bounds.x", "style.top.rem": "handle().bounds.y", "style.width.rem": "handle().bounds.width", "style.height.rem": "handle().bounds.height" } }, 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-sash class=\"nol-split-sash\" [orientation]=\"orientation()\" [label]=\"resources.resizeSplitLabels[handle().split.axis]\" [value]=\"value()\"\n [minimum]=\"pixels(handle().minimumLength)\" [maximum]=\"pixels(handle().maximumLength)\" (resize)=\"resize($event)\" />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: absolute;\n display: flex;\n}\n\n.nol-split-sash {\n flex: 1;\n}\n"], dependencies: [{ kind: "component", type: SashComponent, selector: "nol-sash", inputs: ["orientation", "label", "value", "minimum", "maximum", "step"], outputs: ["resize"] }] });
|
|
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: SplitSashComponent, decorators: [{
|
|
34
34
|
type: Component,
|
|
35
35
|
args: [{ selector: "nol-split-sash", imports: [SashComponent], host: {
|
|
36
36
|
"[attr.data-split]": "handle().split.id",
|
|
@@ -23,10 +23,10 @@ export class StartupComponent {
|
|
|
23
23
|
act(action) {
|
|
24
24
|
void this.startup.actAsync(action);
|
|
25
25
|
}
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: StartupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: StartupComponent, isStandalone: true, selector: "nol-startup", 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<section class=\"nol-startup-card\" role=\"status\" aria-live=\"polite\">\n @switch (state().kind) {\n @case (kinds.PreShellData) {\n <h1 class=\"nol-startup-title\">{{ resources.formatPreShellDataTitle(productName) }}</h1>\n <p class=\"nol-startup-detail\">{{ state().details[0] }}</p>\n <p>{{ resources.formatPreShellDataText(productName) }}</p>\n <div class=\"nol-startup-actions\">\n <button type=\"button\" nol-button [disabled]=\"isActing()\" (click)=\"act(resources.moveAsideAction)\">{{ resources.moveAside }}</button>\n </div>\n }\n @case (kinds.WorkInProgress) {\n <h1 class=\"nol-startup-title\">{{ resources.formatWorkInProgressTitle(productName) }}</h1>\n <ul class=\"nol-startup-work\">\n @for (description of state().details; track $index) {\n <li>{{ description }}</li>\n }\n </ul>\n <p>{{ resources.formatWorkInProgressText(productName) }}</p>\n <div class=\"nol-startup-actions\">\n <button type=\"button\" nol-button [disabled]=\"isActing()\" (click)=\"act(resources.waitAction)\">{{ resources.waitForWork }}</button>\n <button type=\"button\" nol-button [variant]=\"secondary\" [disabled]=\"isActing()\" (click)=\"act(resources.stopWorkAction)\">{{ resources.stopWork }}</button>\n </div>\n }\n @case (kinds.WaitingForWork) {\n <h1 class=\"nol-startup-title\">{{ resources.formatWaitingTitle(productName) }}</h1>\n <ul class=\"nol-startup-work\">\n @for (description of state().details; track $index) {\n <li>{{ description }}</li>\n }\n </ul>\n <p>{{ resources.formatWaitingText(productName) }}</p>\n }\n @case (kinds.NewerBuild) {\n <h1 class=\"nol-startup-title\">{{ resources.formatNewerBuildTitle(productName) }}</h1>\n <p>{{ resources.formatNewerBuild(productName, state().details[0] ?? \"\") }}</p>\n }\n @case (kinds.Updating) {\n <h1 class=\"nol-startup-title\">{{ resources.formatUpdatingTitle(productName, state().details[0] ?? \"\") }}</h1>\n <p class=\"nol-startup-detail\">{{ resources.formatUpdatingText(productName) }}</p>\n }\n @case (kinds.Failed) {\n <h1 class=\"nol-startup-title\">{{ resources.formatFailedTitle(productName) }}</h1>\n <p class=\"nol-startup-detail\">{{ state().details[0] }}</p>\n <div class=\"nol-startup-actions\">\n <button type=\"button\" nol-button [disabled]=\"isActing()\" (click)=\"act(resources.retryAction)\">{{ resources.tryAgain }}</button>\n </div>\n }\n @default {\n <p class=\"nol-startup-quiet\">{{ resources.formatStartingTitle(productName) }}</p>\n }\n }\n</section>\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 place-items: center;\n box-sizing: border-box;\n min-width: 0;\n min-height: 0;\n padding: var(--nol-space-6);\n overflow: auto;\n}\n\n.nol-startup-card {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n width: min(100%, var(--nol-dialog-width));\n padding: var(--nol-space-6);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n color: var(--nol-text);\n overflow-wrap: anywhere;\n}\n\n.nol-startup-title {\n margin: 0;\n font-size: var(--nol-text-panel);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n line-height: var(--nol-line-panel);\n}\n\np,\nul {\n margin: 0;\n}\n\nul {\n padding-left: var(--nol-space-6);\n}\n\n.nol-startup-detail,\n.nol-startup-quiet {\n color: var(--nol-text-muted);\n}\n\n.nol-startup-actions {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--nol-space-2);\n margin-top: 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"] }] });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: StartupComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
args: [{ selector: "nol-startup", imports: [ButtonComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"nol-startup-card\" role=\"status\" aria-live=\"polite\">\n @switch (state().kind) {\n @case (kinds.PreShellData) {\n <h1 class=\"nol-startup-title\">{{ resources.formatPreShellDataTitle(productName) }}</h1>\n <p class=\"nol-startup-detail\">{{ state().details[0] }}</p>\n <p>{{ resources.formatPreShellDataText(productName) }}</p>\n <div class=\"nol-startup-actions\">\n <button type=\"button\" nol-button [disabled]=\"isActing()\" (click)=\"act(resources.moveAsideAction)\">{{ resources.moveAside }}</button>\n </div>\n }\n @case (kinds.WorkInProgress) {\n <h1 class=\"nol-startup-title\">{{ resources.formatWorkInProgressTitle(productName) }}</h1>\n <ul class=\"nol-startup-work\">\n @for (description of state().details; track $index) {\n <li>{{ description }}</li>\n }\n </ul>\n <p>{{ resources.formatWorkInProgressText(productName) }}</p>\n <div class=\"nol-startup-actions\">\n <button type=\"button\" nol-button [disabled]=\"isActing()\" (click)=\"act(resources.waitAction)\">{{ resources.waitForWork }}</button>\n <button type=\"button\" nol-button [variant]=\"secondary\" [disabled]=\"isActing()\" (click)=\"act(resources.stopWorkAction)\">{{ resources.stopWork }}</button>\n </div>\n }\n @case (kinds.WaitingForWork) {\n <h1 class=\"nol-startup-title\">{{ resources.formatWaitingTitle(productName) }}</h1>\n <ul class=\"nol-startup-work\">\n @for (description of state().details; track $index) {\n <li>{{ description }}</li>\n }\n </ul>\n <p>{{ resources.formatWaitingText(productName) }}</p>\n }\n @case (kinds.NewerBuild) {\n <h1 class=\"nol-startup-title\">{{ resources.formatNewerBuildTitle(productName) }}</h1>\n <p>{{ resources.formatNewerBuild(productName, state().details[0] ?? \"\") }}</p>\n }\n @case (kinds.Updating) {\n <h1 class=\"nol-startup-title\">{{ resources.formatUpdatingTitle(productName, state().details[0] ?? \"\") }}</h1>\n <p class=\"nol-startup-detail\">{{ resources.formatUpdatingText(productName) }}</p>\n }\n @case (kinds.Failed) {\n <h1 class=\"nol-startup-title\">{{ resources.formatFailedTitle(productName) }}</h1>\n <p class=\"nol-startup-detail\">{{ state().details[0] }}</p>\n <div class=\"nol-startup-actions\">\n <button type=\"button\" nol-button [disabled]=\"isActing()\" (click)=\"act(resources.retryAction)\">{{ resources.tryAgain }}</button>\n </div>\n }\n @default {\n <p class=\"nol-startup-quiet\">{{ resources.formatStartingTitle(productName) }}</p>\n }\n }\n</section>\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 place-items: center;\n box-sizing: border-box;\n min-width: 0;\n min-height: 0;\n padding: var(--nol-space-6);\n overflow: auto;\n}\n\n.nol-startup-card {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n width: min(100%, var(--nol-dialog-width));\n padding: var(--nol-space-6);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n color: var(--nol-text);\n overflow-wrap: anywhere;\n}\n\n.nol-startup-title {\n margin: 0;\n font-size: var(--nol-text-panel);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n line-height: var(--nol-line-panel);\n}\n\np,\nul {\n margin: 0;\n}\n\nul {\n padding-left: var(--nol-space-6);\n}\n\n.nol-startup-detail,\n.nol-startup-quiet {\n color: var(--nol-text-muted);\n}\n\n.nol-startup-actions {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-2);\n}\n"] }]
|
|
32
32
|
}] });
|
|
@@ -16,10 +16,10 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
export class StatusBarComponent {
|
|
17
17
|
bars = inject(BarItemsService);
|
|
18
18
|
updates = inject(UpdateService);
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
20
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: StatusBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: StatusBarComponent, isStandalone: true, selector: "nol-status-bar", host: { attributes: { "data-nol-chrome": "bottom" } }, 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-status-bar-side nol-status-bar-left\">\n @for (item of bars.leftItems(); track item.name) {\n <nol-status-bar-item [item]=\"item\" />\n }\n</div>\n<div class=\"nol-status-bar-side nol-status-bar-right\">\n @for (item of bars.rightItems(); track item.name) {\n <nol-status-bar-item [item]=\"item\" />\n }\n @if (updates.state().showsItem) {\n <nol-update-item />\n }\n <nol-notifications />\n <nol-module-failures />\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 display: flex;\n align-items: stretch;\n justify-content: space-between;\n box-sizing: border-box;\n min-height: var(--nol-status-bar-height);\n padding: 0 var(--nol-panel-card-margin);\n background-color: var(--nol-window);\n color: var(--nol-text);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n}\n\n.nol-status-bar-side {\n display: flex;\n align-items: flex-start;\n gap: var(--nol-status-bar-item-gap);\n min-width: 0;\n}\n"], dependencies: [{ kind: "component", type: ModuleFailuresComponent, selector: "nol-module-failures" }, { kind: "component", type: NotificationsComponent, selector: "nol-notifications" }, { kind: "component", type: StatusBarItemComponent, selector: "nol-status-bar-item", inputs: ["item"] }, { kind: "component", type: UpdateItemComponent, selector: "nol-update-item" }] });
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: StatusBarComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
24
|
args: [{ selector: "nol-status-bar", imports: [ModuleFailuresComponent, NotificationsComponent, StatusBarItemComponent, UpdateItemComponent], host: {
|
|
25
25
|
"data-nol-chrome": "bottom"
|
|
@@ -25,10 +25,10 @@ export class StatusBarItemComponent {
|
|
|
25
25
|
run(command, commandArguments) {
|
|
26
26
|
this.commands.runAsync(command, commandArguments).catch((error) => this.errors.handleError(error));
|
|
27
27
|
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
29
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: StatusBarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: StatusBarItemComponent, isStandalone: true, selector: "nol-status-bar-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "attr.data-nol-item": "item().name", "class.nol-status-bar-item-hidden": "state().isHidden", "class.nol-status-bar-item-muted": "isMuted()" } }, 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@let current = state();\n@if (current.command; as command) {\n <button type=\"button\" class=\"nol-status-bar-item\" [disabled]=\"!isAvailable(command, current.commandArguments)\" [attr.aria-label]=\"current.text ? null : current.tooltip\"\n [nolTooltip]=\"current.label\" [nolTooltipTruncated]=\"!current.tooltip\" (click)=\"run(command, current.commandArguments)\">\n @if (current.icon) {\n <span class=\"material-symbols-rounded nol-status-bar-item-icon\" aria-hidden=\"true\">{{ current.icon }}</span>\n }\n @if (current.text) {\n <span class=\"nol-status-bar-item-text\" data-truncates>{{ current.text }}</span>\n }\n </button>\n} @else {\n <span class=\"nol-status-bar-item\" role=\"status\" [attr.aria-label]=\"current.text || current.tooltip\" [nolTooltip]=\"current.label\" [nolTooltipTruncated]=\"!current.tooltip\">\n @if (current.icon) {\n <span class=\"material-symbols-rounded nol-status-bar-item-icon\" aria-hidden=\"true\">{{ current.icon }}</span>\n }\n @if (current.text) {\n <span class=\"nol-status-bar-item-text\" data-truncates>{{ current.text }}</span>\n }\n </span>\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 min-width: 0;\n height: var(--nol-status-bar-item-height);\n}\n\n:host(.nol-status-bar-item-hidden) {\n display: none;\n}\n\n.nol-status-bar-item {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-1);\n min-width: 0;\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\nbutton.nol-status-bar-item:enabled: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\nbutton.nol-status-bar-item:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\nbutton.nol-status-bar-item:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n:host(.nol-status-bar-item-muted) .nol-status-bar-item {\n color: var(--nol-text-muted);\n}\n\n.nol-status-bar-item-icon {\n font-size: var(--nol-icon);\n}\n"], dependencies: [{ kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: StatusBarItemComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{ selector: "nol-status-bar-item", imports: [TooltipDirective], host: {
|
|
34
34
|
"[attr.data-nol-item]": "item().name",
|
|
@@ -129,10 +129,10 @@ export class TabContentComponent {
|
|
|
129
129
|
const inputs = tab instanceof DocumentTab || !Object.isUndefined(tab.instance) ? { instance: tab.instance, title: this.labels.of(tab).title } : {};
|
|
130
130
|
return new TabContent(component, injector, inputs, match.padding, pagePadding);
|
|
131
131
|
}
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
133
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
133
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: TabContentComponent, isStandalone: true, selector: "nol-tab-content", inputs: { tab: { classPropertyName: "tab", publicName: "tab", isSignal: true, isRequired: true, transformFunction: null }, isDocked: { classPropertyName: "isDocked", publicName: "isDocked", isSignal: true, isRequired: false, transformFunction: null }, isShown: { classPropertyName: "isShown", publicName: "isShown", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusin": "remember($event)" }, properties: { "class.nol-tab-content-padded": "isPadded()", "class.nol-tab-content-docked": "isDocked()", "attr.data-tab-content": "tab().key" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (content.value(); as value) {\n <ng-container *ngComponentOutlet=\"value.type; injector: value.injector; inputs: value.inputs\" />\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1;\n flex-direction: column;\n grid-row: 2;\n grid-column: 1;\n min-height: 0;\n overflow: auto;\n}\n\n:host(.nol-tab-content-concealed) {\n visibility: hidden;\n opacity: 0;\n}\n\n:host(.nol-tab-content-concealed.nol-tab-content-painted) {\n z-index: 0;\n visibility: visible;\n opacity: 1;\n pointer-events: none;\n}\n\n:host(.nol-tab-content-covering) {\n z-index: 1;\n background-color: var(--nol-panel);\n}\n\n:host(.nol-tab-content-covering.nol-tab-content-docked) {\n background-color: var(--nol-window);\n}\n\n:host(.nol-tab-content-padded) {\n scrollbar-gutter: stable;\n padding: var(--nol-document-padding-block) var(--nol-content-padding-inline);\n}\n\n:host(.nol-tab-content-padded.nol-tab-content-docked) {\n padding: var(--nol-view-padding-block) var(--nol-content-padding-inline);\n}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }] });
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabContentComponent, decorators: [{
|
|
136
136
|
type: Component,
|
|
137
137
|
args: [{ selector: "nol-tab-content", imports: [NgComponentOutlet], host: {
|
|
138
138
|
"[class.nol-tab-content-padded]": "isPadded()",
|
|
@@ -155,10 +155,10 @@ export class TabGroupComponent {
|
|
|
155
155
|
return -1;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
159
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TabGroupComponent, isStandalone: true, selector: "nol-tab-group", inputs: { frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "focusin": "layout.focusGroup(group().id)" }, properties: { "attr.data-group": "group().id", "attr.data-side": "frame().side", "style.left.rem": "frame().bounds.x", "style.top.rem": "frame().bounds.y", "style.width.rem": "frame().bounds.width", "style.height.rem": "frame().bounds.height" } }, viewQueries: [{ propertyName: "scroller", first: true, predicate: TabScrollerDirective, descendants: true, isSignal: true }, { propertyName: "overflowTrigger", first: true, predicate: ["overflowTrigger"], descendants: true, read: MenuTriggerDirective, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-panel-card class=\"nol-tab-group-card\" [surface]=\"surface()\" [attr.data-drop-group]=\"group().id\">\n @if (header(); as tab) {\n @let label = labels.of(tab);\n <div class=\"nol-tab-group-bar nol-tab-group-header\" data-drop-tabs>\n <span class=\"nol-tab-group-title\" data-truncates [attr.id]=\"activeTabId()\" [attr.data-header-key]=\"tab.key\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"below\" [nolTooltipTruncated]=\"true\">{{ label.title }}</span>\n <div class=\"nol-tab-group-actions\" [class.nol-tab-group-actions-shell]=\"isShell()\" [class.nol-drop-line-before]=\"isDropAtEnd()\">\n <nol-tab-row-actions [group]=\"group()\" />\n <ng-container [ngTemplateOutlet]=\"groupActions\" />\n </div>\n </div>\n } @else {\n <div class=\"nol-tab-group-bar nol-tab-group-tabs\" data-drop-tabs>\n <div #scroller=\"nolTabScroller\" class=\"nol-tab-group-scroller\" [nolTabScroller]=\"actionBar\" [nolTabScrollerFrame]=\"frame()\" [nolTabScrollerRows]=\"rowActions().length\">\n <div class=\"nol-tab-group-strip\" role=\"tablist\" (keydown)=\"onStripKey($event)\">\n @for (tab of group().tabs; track tab.key; let index = $index) {\n @let label = labels.of(tab);\n <nol-place-menu #menu [place]=\"resources.tabMenu\" [context]=\"{ tab: tab.key }\" />\n @let badge = labels.badgeOf(tab);\n @let look = labels.lookOf(tab);\n <nol-tab [label]=\"label.title\" [icon]=\"label.icon\" [badge]=\"badge?.description ?? null\" [badgeCount]=\"badge?.count ?? null\" [selected]=\"tab.equals(group().active)\" [preview]=\"tab.equals(group().preview)\" [working]=\"labels.isWorking(tab)\" [waiting]=\"labels.isWaiting(tab)\" [editing]=\"tab.equals(renames.editing())\" [attr.data-tab-index]=\"index\"\n [image]=\"look.image\" [imageGlyph]=\"look.imageGlyph\" [status]=\"look.status\" [marker]=\"look.marker\" [leadingSpinner]=\"tab.leadsSpinner\"\n [attr.id]=\"tabId(index)\" [attr.data-tab-key]=\"tab.key\" [class.nol-drop-line-before]=\"drag.isDropBefore(group().id, index)\" [class.nol-tab-dragged]=\"tab.equals(drag.dragging())\"\n [nolTooltip]=\"label.title\" [nolTooltipSide]=\"below\" [nolTooltipTruncated]=\"true\"\n [nolContextMenuTriggerFor]=\"menu.menu()\" (activate)=\"layout.activate(tab)\" (click)=\"onTabClick(tab, $event)\" (close)=\"close(tab)\" (pointerdown)=\"onTabPointerDown(tab, $event)\" (dblclick)=\"onTabDoubleClick(tab)\"\n (labelKept)=\"renames.keep($event)\" (labelCancelled)=\"renames.cancel()\" />\n }\n <span class=\"nol-tab-group-end\" [class.nol-drop-line-before]=\"isDropAtEnd() && !scroller.isOverflowing()\"></span>\n </div>\n <div #actionBar class=\"nol-tab-group-actions\" [class.nol-tab-group-actions-shell]=\"isShell()\" [class.nol-drop-line-before]=\"isDropAtEnd() && scroller.isOverflowing()\">\n @if (!scroller.isOverflowing()) {\n <nol-tab-row-actions [group]=\"group()\" />\n }\n @if (scroller.isOverflowing()) {\n <button #overflowTrigger=\"nolMenuTriggerFor\" type=\"button\" nol-icon-button class=\"nol-tab-group-overflow\" [icon]=\"resources.overflowGlyph\"\n [label]=\"resources.overflowLabel\" [nolTooltip]=\"resources.overflowLabel\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"overflow\" [nolMenuAlignment]=\"end\"></button>\n <ng-template #overflow>\n <nol-menu class=\"nol-tab-group-overflow-menu\">\n @for (row of rowActions(); track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"row.context\" />\n <button nol-menu-item class=\"nol-tab-row-menu-submenu\" [attr.data-submenu]=\"row.place\" [icon]=\"row.icon ?? resources.tabRowSubmenuGlyph\" [label]=\"row.title\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n } @else {\n <button nol-menu-item class=\"nol-tab-row-menu-command\" [attr.data-command]=\"row.command\" [icon]=\"row.icon ?? resources.tabRowCommandGlyph\" [label]=\"row.title\"\n [shortcut]=\"row.key\" [disabled]=\"!row.isEnabled\" (triggered)=\"tabRows.run(row)\"></button>\n }\n }\n @if (group().active; as active) {\n <nol-place-menu #folded [place]=\"resources.tabMenu\" [context]=\"{ tab: active.key }\" />\n <button nol-menu-item class=\"nol-tab-group-overflow-actions\" [icon]=\"resources.panelActionsGlyph\" [label]=\"resources.panelActionsLabel\" [nolMenuTriggerFor]=\"folded.menu()\"></button>\n <nol-menu-separator />\n }\n <button nol-menu-item class=\"nol-tab-group-overflow-close-all\" [icon]=\"resources.closeAllGlyph\" [label]=\"resources.closeAllLabel\" (triggered)=\"closeAll()\"></button>\n <nol-menu-separator />\n @for (tab of group().tabs; track tab.key) {\n @let label = labels.of(tab);\n <button nol-menu-item class=\"nol-tab-group-overflow-tab\" [attr.data-tab]=\"tab.key\" [attr.aria-current]=\"tab.equals(group().active) ? 'true' : null\"\n [icon]=\"label.icon\" [label]=\"label.title\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"besides\" [nolTooltipTruncated]=\"true\" (triggered)=\"choose(tab)\"></button>\n }\n </nol-menu>\n </ng-template>\n }\n <ng-container [ngTemplateOutlet]=\"groupActions\" [ngTemplateOutletContext]=\"{ $implicit: scroller.isOverflowing() }\" />\n </div>\n </div>\n </div>\n }\n <ng-template #groupActions let-folded>\n @if (!folded && group().active; as active) {\n <nol-place-menu #actions [place]=\"resources.tabMenu\" [context]=\"{ tab: active.key }\" />\n <button type=\"button\" nol-icon-button class=\"nol-tab-group-menu\" [icon]=\"resources.panelActionsGlyph\" [label]=\"resources.panelActionsLabel\"\n [nolTooltip]=\"resources.panelActionsLabel\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"actions.menu()\" [nolMenuAlignment]=\"end\"></button>\n }\n @if (hideSide(); as side) {\n <button type=\"button\" nol-icon-button class=\"nol-tab-group-hide\" [icon]=\"resources.hideDockGlyphs[side]\" [label]=\"resources.hideDockLabels[side]\"\n [nolTooltip]=\"resources.hideDockLabels[side]\" [nolTooltipSide]=\"below\" (click)=\"layout.toggleDock(side)\"></button>\n }\n </ng-template>\n <div class=\"nol-tab-group-body\" [attr.role]=\"header() ? resources.regionRole : resources.tabPanelRole\" [attr.id]=\"panelId()\" [attr.aria-labelledby]=\"activeTabId()\">\n <ng-content />\n </div>\n</nol-panel-card>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: absolute;\n display: flex;\n min-width: 0;\n min-height: 0;\n}\n\n.nol-tab-group-card {\n flex: 1;\n}\n\n.nol-tab-group-bar {\n display: flex;\n flex-shrink: 0;\n min-height: var(--nol-tab-height);\n padding-inline: var(--nol-tab-inset);\n}\n\n.nol-tab-group-header {\n align-items: center;\n}\n\n.nol-tab-group-tabs {\n padding-inline: 0;\n}\n\n.nol-tab-group-title {\n flex: 1;\n padding-inline-start: calc(var(--nol-tab-inset) * 2 + var(--nol-pill-padding));\n font-size: var(--nol-text-panel);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.nol-tab-group-scroller {\n display: flex;\n flex: 1;\n align-items: stretch;\n --nol-tab-group-scroller-start: calc(var(--nol-tab-inset) * 2);\n --nol-tab-group-reveal-start: calc(var(--nol-space-2) + var(--nol-tab-inset));\n\n min-width: 0;\n padding-inline-start: var(--nol-tab-group-scroller-start);\n overflow-x: scroll;\n overflow-y: hidden;\n scroll-padding-inline-start: var(--nol-tab-group-reveal-start);\n container-type: inline-size;\n}\n\n@media (forced-colors: active) {\n .nol-tab-group-scroller {\n scrollbar-width: none;\n }\n}\n\n.nol-tab-group-strip {\n display: flex;\n flex: 1 0 auto;\n min-height: var(--nol-tab-height);\n}\n\n.nol-tab-group-strip > nol-tab {\n flex-shrink: 0;\n max-width: min(var(--nol-tab-max-width),\n calc(100cqi + var(--nol-tab-group-scroller-start) - var(--nol-tab-group-reveal-start) - var(--nol-tab-group-actions-width, 0px)));\n}\n\n.nol-tab-group-end {\n flex: 1;\n}\n\n.nol-tab-dragged {\n opacity: 0.5;\n}\n\n.nol-tab-group-actions {\n position: sticky;\n inset-inline-end: 0;\n display: flex;\n flex-shrink: 0;\n align-items: center;\n padding-inline: var(--nol-space-1) var(--nol-tab-inset);\n background-color: var(--nol-panel);\n}\n\n.nol-tab-group-scroller > .nol-tab-group-actions {\n padding-inline-end: calc(var(--nol-tab-inset) * 2);\n}\n\n.nol-tab-group-actions-shell {\n background-color: var(--nol-window);\n}\n\n.nol-tab-group-body {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.nol-tab-group-overflow-menu {\n max-width: min(var(--nol-popover-width), calc(100vw - var(--nol-space-4)));\n max-height: min(60vh, calc(20 * (var(--nol-menu-item-height) + var(--nol-row-gap)) + 2 * (var(--nol-menu-padding) + var(--nol-border-width))));\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PanelCardComponent, selector: "nol-panel-card", inputs: ["surface"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "component", type: TabComponent, selector: "nol-tab", inputs: ["label", "icon", "selected", "preview", "working", "waiting", "closable", "badge", "badgeCount", "image", "imageGlyph", "status", "leadingSpinner", "marker", "underline", "editing"], outputs: ["activate", "close", "labelKept", "labelCancelled"] }, { kind: "component", type: TabRowActionsComponent, selector: "nol-tab-row-actions", inputs: ["group"] }, { kind: "directive", type: TabScrollerDirective, selector: "[nolTabScroller]", inputs: ["nolTabScroller", "nolTabScrollerFrame", "nolTabScrollerRows"], exportAs: ["nolTabScroller"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
158
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
159
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: TabGroupComponent, isStandalone: true, selector: "nol-tab-group", inputs: { frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "focusin": "layout.focusGroup(group().id)" }, properties: { "attr.data-group": "group().id", "attr.data-side": "frame().side", "style.left.rem": "frame().bounds.x", "style.top.rem": "frame().bounds.y", "style.width.rem": "frame().bounds.width", "style.height.rem": "frame().bounds.height" } }, viewQueries: [{ propertyName: "scroller", first: true, predicate: TabScrollerDirective, descendants: true, isSignal: true }, { propertyName: "overflowTrigger", first: true, predicate: ["overflowTrigger"], descendants: true, read: MenuTriggerDirective, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-panel-card class=\"nol-tab-group-card\" [surface]=\"surface()\" [attr.data-drop-group]=\"group().id\">\n @if (header(); as tab) {\n @let label = labels.of(tab);\n <div class=\"nol-tab-group-bar nol-tab-group-header\" data-drop-tabs>\n <span class=\"nol-tab-group-title\" data-truncates [attr.id]=\"activeTabId()\" [attr.data-header-key]=\"tab.key\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"below\" [nolTooltipTruncated]=\"true\">{{ label.title }}</span>\n <div class=\"nol-tab-group-actions\" [class.nol-tab-group-actions-shell]=\"isShell()\" [class.nol-drop-line-before]=\"isDropAtEnd()\">\n <nol-tab-row-actions [group]=\"group()\" />\n <ng-container [ngTemplateOutlet]=\"groupActions\" />\n </div>\n </div>\n } @else {\n <div class=\"nol-tab-group-bar nol-tab-group-tabs\" data-drop-tabs>\n <div #scroller=\"nolTabScroller\" class=\"nol-tab-group-scroller\" [nolTabScroller]=\"actionBar\" [nolTabScrollerFrame]=\"frame()\" [nolTabScrollerRows]=\"rowActions().length\">\n <div class=\"nol-tab-group-strip\" role=\"tablist\" (keydown)=\"onStripKey($event)\">\n @for (tab of group().tabs; track tab.key; let index = $index) {\n @let label = labels.of(tab);\n <nol-place-menu #menu [place]=\"resources.tabMenu\" [context]=\"{ tab: tab.key }\" />\n @let badge = labels.badgeOf(tab);\n @let look = labels.lookOf(tab);\n <nol-tab [label]=\"label.title\" [icon]=\"label.icon\" [badge]=\"badge?.description ?? null\" [badgeCount]=\"badge?.count ?? null\" [selected]=\"tab.equals(group().active)\" [preview]=\"tab.equals(group().preview)\" [working]=\"labels.isWorking(tab)\" [waiting]=\"labels.isWaiting(tab)\" [editing]=\"tab.equals(renames.editing())\" [attr.data-tab-index]=\"index\"\n [image]=\"look.image\" [imageGlyph]=\"look.imageGlyph\" [status]=\"look.status\" [marker]=\"look.marker\" [leadingSpinner]=\"tab.leadsSpinner\"\n [attr.id]=\"tabId(index)\" [attr.data-tab-key]=\"tab.key\" [class.nol-drop-line-before]=\"drag.isDropBefore(group().id, index)\" [class.nol-tab-dragged]=\"tab.equals(drag.dragging())\"\n [nolTooltip]=\"label.title\" [nolTooltipSide]=\"below\" [nolTooltipTruncated]=\"true\"\n [nolContextMenuTriggerFor]=\"menu.menu()\" (activate)=\"layout.activate(tab)\" (click)=\"onTabClick(tab, $event)\" (close)=\"close(tab)\" (pointerdown)=\"onTabPointerDown(tab, $event)\" (dblclick)=\"onTabDoubleClick(tab)\"\n (labelKept)=\"renames.keep($event)\" (labelCancelled)=\"renames.cancel()\" />\n }\n <span class=\"nol-tab-group-end\" [class.nol-drop-line-before]=\"isDropAtEnd() && !scroller.isOverflowing()\"></span>\n </div>\n <div #actionBar class=\"nol-tab-group-actions\" [class.nol-tab-group-actions-shell]=\"isShell()\" [class.nol-drop-line-before]=\"isDropAtEnd() && scroller.isOverflowing()\">\n @if (!scroller.isOverflowing()) {\n <nol-tab-row-actions [group]=\"group()\" />\n }\n @if (scroller.isOverflowing()) {\n <button #overflowTrigger=\"nolMenuTriggerFor\" type=\"button\" nol-icon-button class=\"nol-tab-group-overflow\" [icon]=\"resources.overflowGlyph\"\n [label]=\"resources.overflowLabel\" [nolTooltip]=\"resources.overflowLabel\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"overflow\" [nolMenuAlignment]=\"end\"></button>\n <ng-template #overflow>\n <nol-menu class=\"nol-tab-group-overflow-menu\">\n @for (row of rowActions(); track $index) {\n @if (row.isSubmenu) {\n <nol-place-menu #nested [place]=\"row.place\" [context]=\"row.context\" />\n <button nol-menu-item class=\"nol-tab-row-menu-submenu\" [attr.data-submenu]=\"row.place\" [icon]=\"row.icon ?? resources.tabRowSubmenuGlyph\" [label]=\"row.title\" [nolMenuTriggerFor]=\"nested.menu()\"></button>\n } @else {\n <button nol-menu-item class=\"nol-tab-row-menu-command\" [attr.data-command]=\"row.command\" [icon]=\"row.icon ?? resources.tabRowCommandGlyph\" [label]=\"row.title\"\n [shortcut]=\"row.key\" [disabled]=\"!row.isEnabled\" (triggered)=\"tabRows.run(row)\"></button>\n }\n }\n @if (group().active; as active) {\n <nol-place-menu #folded [place]=\"resources.tabMenu\" [context]=\"{ tab: active.key }\" />\n <button nol-menu-item class=\"nol-tab-group-overflow-actions\" [icon]=\"resources.panelActionsGlyph\" [label]=\"resources.panelActionsLabel\" [nolMenuTriggerFor]=\"folded.menu()\"></button>\n <nol-menu-separator />\n }\n <button nol-menu-item class=\"nol-tab-group-overflow-close-all\" [icon]=\"resources.closeAllGlyph\" [label]=\"resources.closeAllLabel\" (triggered)=\"closeAll()\"></button>\n <nol-menu-separator />\n @for (tab of group().tabs; track tab.key) {\n @let label = labels.of(tab);\n <button nol-menu-item class=\"nol-tab-group-overflow-tab\" [attr.data-tab]=\"tab.key\" [attr.aria-current]=\"tab.equals(group().active) ? 'true' : null\"\n [icon]=\"label.icon\" [label]=\"label.title\" [nolTooltip]=\"label.title\" [nolTooltipSide]=\"besides\" [nolTooltipTruncated]=\"true\" (triggered)=\"choose(tab)\"></button>\n }\n </nol-menu>\n </ng-template>\n }\n <ng-container [ngTemplateOutlet]=\"groupActions\" [ngTemplateOutletContext]=\"{ $implicit: scroller.isOverflowing() }\" />\n </div>\n </div>\n </div>\n }\n <ng-template #groupActions let-folded>\n @if (!folded && group().active; as active) {\n <nol-place-menu #actions [place]=\"resources.tabMenu\" [context]=\"{ tab: active.key }\" />\n <button type=\"button\" nol-icon-button class=\"nol-tab-group-menu\" [icon]=\"resources.panelActionsGlyph\" [label]=\"resources.panelActionsLabel\"\n [nolTooltip]=\"resources.panelActionsLabel\" [nolTooltipSide]=\"below\" [nolMenuTriggerFor]=\"actions.menu()\" [nolMenuAlignment]=\"end\"></button>\n }\n @if (hideSide(); as side) {\n <button type=\"button\" nol-icon-button class=\"nol-tab-group-hide\" [icon]=\"resources.hideDockGlyphs[side]\" [label]=\"resources.hideDockLabels[side]\"\n [nolTooltip]=\"resources.hideDockLabels[side]\" [nolTooltipSide]=\"below\" (click)=\"layout.toggleDock(side)\"></button>\n }\n </ng-template>\n <div class=\"nol-tab-group-body\" [attr.role]=\"header() ? resources.regionRole : resources.tabPanelRole\" [attr.id]=\"panelId()\" [attr.aria-labelledby]=\"activeTabId()\">\n <ng-content />\n </div>\n</nol-panel-card>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: absolute;\n display: flex;\n min-width: 0;\n min-height: 0;\n}\n\n.nol-tab-group-card {\n flex: 1;\n}\n\n.nol-tab-group-bar {\n display: flex;\n flex-shrink: 0;\n min-height: var(--nol-tab-height);\n padding-inline: var(--nol-tab-inset);\n}\n\n.nol-tab-group-header {\n align-items: center;\n}\n\n.nol-tab-group-tabs {\n padding-inline: 0;\n}\n\n.nol-tab-group-title {\n flex: 1;\n padding-inline-start: calc(var(--nol-tab-inset) * 2 + var(--nol-pill-padding));\n font-size: var(--nol-text-panel);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.nol-tab-group-scroller {\n display: flex;\n flex: 1;\n align-items: stretch;\n --nol-tab-group-scroller-start: calc(var(--nol-tab-inset) * 2);\n --nol-tab-group-reveal-start: calc(var(--nol-space-2) + var(--nol-tab-inset));\n\n min-width: 0;\n padding-inline-start: var(--nol-tab-group-scroller-start);\n overflow-x: scroll;\n overflow-y: hidden;\n scroll-padding-inline-start: var(--nol-tab-group-reveal-start);\n container-type: inline-size;\n}\n\n@media (forced-colors: active) {\n .nol-tab-group-scroller {\n scrollbar-width: none;\n }\n}\n\n.nol-tab-group-strip {\n display: flex;\n flex: 1 0 auto;\n min-height: var(--nol-tab-height);\n}\n\n.nol-tab-group-strip > nol-tab {\n flex-shrink: 0;\n max-width: min(var(--nol-tab-max-width),\n calc(100cqi + var(--nol-tab-group-scroller-start) - var(--nol-tab-group-reveal-start) - var(--nol-tab-group-actions-width, 0px)));\n}\n\n.nol-tab-group-end {\n flex: 1;\n}\n\n.nol-tab-dragged {\n opacity: 0.5;\n}\n\n.nol-tab-group-actions {\n position: sticky;\n inset-inline-end: 0;\n display: flex;\n flex-shrink: 0;\n align-items: center;\n padding-inline: var(--nol-space-1) var(--nol-tab-inset);\n background-color: var(--nol-panel);\n}\n\n.nol-tab-group-scroller > .nol-tab-group-actions {\n padding-inline-end: calc(var(--nol-tab-inset) * 2);\n}\n\n.nol-tab-group-actions-shell {\n background-color: var(--nol-window);\n}\n\n.nol-tab-group-body {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.nol-tab-group-overflow-menu {\n max-width: min(var(--nol-popover-width), calc(100vw - var(--nol-space-4)));\n max-height: min(60vh, calc(20 * (var(--nol-menu-item-height) + var(--nol-row-gap)) + 2 * (var(--nol-menu-padding) + var(--nol-border-width))));\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PanelCardComponent, selector: "nol-panel-card", inputs: ["surface"] }, { kind: "component", type: PlaceMenuComponent, selector: "nol-place-menu", inputs: ["place", "rows", "context"] }, { kind: "component", type: TabComponent, selector: "nol-tab", inputs: ["label", "icon", "selected", "preview", "working", "waiting", "closable", "badge", "badgeCount", "image", "imageGlyph", "status", "leadingSpinner", "marker", "underline", "editing"], outputs: ["activate", "close", "labelKept", "labelCancelled"] }, { kind: "component", type: TabRowActionsComponent, selector: "nol-tab-row-actions", inputs: ["group"] }, { kind: "directive", type: TabScrollerDirective, selector: "[nolTabScroller]", inputs: ["nolTabScroller", "nolTabScrollerFrame", "nolTabScrollerRows"], exportAs: ["nolTabScroller"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
160
160
|
}
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TabGroupComponent, decorators: [{
|
|
162
162
|
type: Component,
|
|
163
163
|
args: [{ selector: "nol-tab-group", imports: [
|
|
164
164
|
ContextMenuTriggerDirective, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent, MenuTriggerDirective, NgTemplateOutlet, PanelCardComponent, PlaceMenuComponent,
|