@noldova/desktop.window 0.0.2 → 0.0.4
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/api/index.d.ts +3 -0
- package/api/index.js +3 -0
- package/api/index.js.map +1 -1
- package/app/components/placeholder-content/placeholder-content.component.js +2 -1
- package/app/components/placeholder-content/placeholder-content.component.js.map +1 -1
- package/app/components/search-palette/search-palette.component.js +2 -2
- package/app/components/search-palette/search-palette.component.js.map +1 -1
- package/app/components/settings/settings.component.d.ts +1 -0
- package/app/components/settings/settings.component.js +7 -1
- package/app/components/settings/settings.component.js.map +1 -1
- package/app/components/settings-page-host/settings-page-host.component.js +2 -1
- package/app/components/settings-page-host/settings-page-host.component.js.map +1 -1
- package/app/components/shortcuts/shortcuts.component.d.ts +1 -0
- package/app/components/shortcuts/shortcuts.component.js +7 -3
- package/app/components/shortcuts/shortcuts.component.js.map +1 -1
- package/app/components/tab-content/tab-content.component.d.ts +2 -0
- package/app/components/tab-content/tab-content.component.js +8 -3
- package/app/components/tab-content/tab-content.component.js.map +1 -1
- package/app/components/tab-group/tab-group.component.js +2 -2
- package/app/components/tab-group/tab-group.component.js.map +1 -1
- package/app/exceptions/file-not-opened.exception.d.ts +26 -0
- package/app/exceptions/file-not-shown.exception.d.ts +27 -0
- package/app/exceptions/runtime-request.exception.d.ts +40 -0
- package/app/interfaces/i-document-options.d.ts +15 -4
- package/app/interfaces/i-document-update.d.ts +4 -2
- package/app/interfaces/i-opened-web-view.d.ts +2 -1
- package/app/interfaces/i-preload-bridge.d.ts +1 -0
- package/app/interfaces/i-web-view-handle.d.ts +4 -2
- package/app/interfaces/i-window-part-context.d.ts +121 -15
- package/app/interfaces/i-window-part-host.d.ts +6 -1
- package/app/interfaces/i-window-part.d.ts +4 -1
- package/app/models/clipboard-image.js +26 -27
- package/app/models/clipboard-image.js.map +1 -1
- package/app/models/document-look.d.ts +0 -1
- package/app/models/document-look.js +4 -6
- package/app/models/document-look.js.map +1 -1
- package/app/models/layout/early-document.d.ts +2 -1
- package/app/models/layout/early-document.js +3 -1
- package/app/models/layout/early-document.js.map +1 -1
- package/app/models/layout/layout.d.ts +1 -1
- package/app/models/layout/layout.js +9 -3
- package/app/models/layout/layout.js.map +1 -1
- package/app/models/layout/tab-group.d.ts +1 -0
- package/app/models/layout/tab-group.js +7 -0
- package/app/models/layout/tab-group.js.map +1 -1
- package/app/models/pending-document.d.ts +2 -1
- package/app/models/pending-document.js +5 -3
- package/app/models/pending-document.js.map +1 -1
- package/app/models/region-stop.d.ts +13 -0
- package/app/models/region-stop.js +19 -0
- package/app/models/region-stop.js.map +1 -0
- package/app/models/search-answer.d.ts +16 -1
- package/app/models/search-answer.js +3 -1
- package/app/models/search-answer.js.map +1 -1
- package/app/models/search-filter.d.ts +2 -1
- package/app/models/search-filter.js +3 -1
- package/app/models/search-filter.js.map +1 -1
- package/app/models/search-session.js +5 -2
- package/app/models/search-session.js.map +1 -1
- package/app/models/settings/shortcut-row.d.ts +2 -1
- package/app/models/settings/shortcut-row.js +3 -1
- package/app/models/settings/shortcut-row.js.map +1 -1
- package/app/models/view-place.d.ts +17 -0
- package/app/models/view-place.js +26 -0
- package/app/models/view-place.js.map +1 -0
- package/app/models/web-view-handle.d.ts +1 -0
- package/app/models/web-view-handle.js +1 -0
- package/app/models/web-view-handle.js.map +1 -1
- package/app/models/window-part-context.d.ts +5 -0
- package/app/models/window-part-context.js +35 -1
- package/app/models/window-part-context.js.map +1 -1
- package/app/models/window-part-source.d.ts +9 -1
- package/app/models/window-part-source.js +3 -1
- package/app/models/window-part-source.js.map +1 -1
- package/app/models/window-part-tokens.d.ts +13 -0
- package/app/models/window-part-tokens.js +1 -0
- package/app/models/window-part-tokens.js.map +1 -1
- package/app/services/document-history.service.d.ts +13 -0
- package/app/services/document-history.service.js +72 -14
- package/app/services/document-history.service.js.map +1 -1
- package/app/services/document-opener.service.d.ts +1 -1
- package/app/services/document-opener.service.js +2 -2
- package/app/services/document-opener.service.js.map +1 -1
- package/app/services/layout.reader.d.ts +4 -2
- package/app/services/layout.reader.js +26 -6
- package/app/services/layout.reader.js.map +1 -1
- package/app/services/layout.service.d.ts +2 -1
- package/app/services/layout.service.js +9 -6
- package/app/services/layout.service.js.map +1 -1
- package/app/services/live-view.service.d.ts +3 -0
- package/app/services/live-view.service.js +27 -0
- package/app/services/live-view.service.js.map +1 -1
- package/app/services/menu.service.js +1 -1
- package/app/services/menu.service.js.map +1 -1
- package/app/services/pane-keys.service.d.ts +19 -0
- package/app/services/pane-keys.service.js +29 -0
- package/app/services/pane-keys.service.js.map +1 -0
- package/app/services/preload-bridge.service.d.ts +3 -2
- package/app/services/preload-bridge.service.js +20 -5
- package/app/services/preload-bridge.service.js.map +1 -1
- package/app/services/region-focus.service.d.ts +12 -0
- package/app/services/region-focus.service.js +51 -0
- package/app/services/region-focus.service.js.map +1 -0
- package/app/services/shell-commands.service.d.ts +1 -0
- package/app/services/shell-commands.service.js +5 -1
- package/app/services/shell-commands.service.js.map +1 -1
- package/app/services/view-dialog.service.d.ts +2 -0
- package/app/services/view-dialog.service.js +14 -2
- package/app/services/view-dialog.service.js.map +1 -1
- package/app/services/web-view.service.d.ts +3 -0
- package/app/services/web-view.service.js +26 -2
- package/app/services/web-view.service.js.map +1 -1
- package/app/services/window-part-host.service.d.ts +6 -1
- package/app/services/window-part-host.service.js +28 -11
- package/app/services/window-part-host.service.js.map +1 -1
- package/package.json +3 -3
- package/resources.d.ts +59 -1
- package/resources.js +61 -1
- package/resources.js.map +1 -1
- package/testing/models/fake-window-part-context.d.ts +103 -0
- package/testing/models/fake-window-part-context.js +8 -0
- package/testing/models/fake-window-part-context.js.map +1 -1
- package/app/models/clipboard-image.resources.d.ts +0 -43
- package/app/models/clipboard-image.resources.js +0 -44
- package/app/models/clipboard-image.resources.js.map +0 -1
|
@@ -156,7 +156,7 @@ export class TabGroupComponent {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
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\" [underline]=\"look.underline\" [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"] }] });
|
|
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"] }] });
|
|
160
160
|
}
|
|
161
161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabGroupComponent, decorators: [{
|
|
162
162
|
type: Component,
|
|
@@ -171,6 +171,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImpor
|
|
|
171
171
|
"[style.width.rem]": "frame().bounds.width",
|
|
172
172
|
"[style.height.rem]": "frame().bounds.height",
|
|
173
173
|
"(focusin)": "layout.focusGroup(group().id)"
|
|
174
|
-
}, 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\" [
|
|
174
|
+
}, 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"] }]
|
|
175
175
|
}], ctorParameters: () => [], propDecorators: { scroller: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TabScrollerDirective), { isSignal: true }] }], overflowTrigger: [{ type: i0.ViewChild, args: ["overflowTrigger", { ...{ read: MenuTriggerDirective }, isSignal: true }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: true }] }] } });
|
|
176
176
|
//# sourceMappingURL=tab-group.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-group.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.desktop.window/src/app/components/tab-group/tab-group.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/tab-group/tab-group.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,SAAS,EAAE,UAAU,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,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["../../../../../../src/noldova.desktop.window/src/app/components/tab-group/tab-group.component.ts","../../../../../../src/noldova.desktop.window/src/app/components/tab-group/tab-group.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,SAAS,EAAE,UAAU,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EACtG,MAAM,eAAe,CAAC;AAEvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,WAAW,EAC/J,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EACjE,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAMpD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,O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,CAAC,CAAC;YACX,KAAK,SAAS,CAAC,MAAM;gBACnB,OAAO,KAAK,GAAG,CAAC,CAAC;YACnB;gBACE,OAAO,CAAC,CAAC,CAAC;QACd,CAAC;IACH,CAAC;uGAnIU,iBAAiB;2FAAjB,iBAAiB,ijBAIoD,oBAAoB,gJACc,oBAAoB,6CC9DxI,42NAyFA,0lFD/CI,2BAA2B,qJAAE,mBAAmB,2MAAE,aAAa,2EAAE,iBAAiB,6LAAE,sBAAsB,+DAAE,oBAAoB,oJAAE,gBAAgB,oJAAE,kBAAkB,gFAAE,kBAAkB,iGAC1L,YAAY,mTAAE,sBAAsB,mFAAE,oBAAoB,oKAAE,gBAAgB;;2FAcnE,iBAAiB;kBAlB7B,SAAS;+BACE,eAAe,WAChB;wBACP,2BAA2B,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB;wBAC1L,YAAY,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,gBAAgB;qBAC7E,QAGK;wBACJ,mBAAmB,EAAE,YAAY;wBACjC,kBAAkB,EAAE,cAAc;wBAClC,kBAAkB,EAAE,kBAAkB;wBACtC,iBAAiB,EAAE,kBAAkB;wBACrC,mBAAmB,EAAE,sBAAsB;wBAC3C,oBAAoB,EAAE,uBAAuB;wBAC7C,WAAW,EAAE,+BAA+B;qBAC7C;oHAM+E,oBAAoB,0EACb,iBAAiB,OAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE"}
|
|
@@ -6,8 +6,34 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { WindowException } from "./window.exception.js";
|
|
9
|
+
/**
|
|
10
|
+
* The exception {@link IWindowPartContext.openFileAsync} rejects with when the
|
|
11
|
+
* window refuses to open a file, such as a program or a script, or the system
|
|
12
|
+
* cannot open it, so a part tells that refusal apart from other failures.
|
|
13
|
+
*/
|
|
9
14
|
export declare class FileNotOpenedException extends WindowException {
|
|
15
|
+
/**
|
|
16
|
+
* The exception's name, `FileNotOpenedException`.
|
|
17
|
+
*/
|
|
10
18
|
readonly name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Why the file wasn't opened, as the main process gave it, such as that only
|
|
21
|
+
* documents and text files open.
|
|
22
|
+
*/
|
|
11
23
|
readonly reason: string;
|
|
24
|
+
/**
|
|
25
|
+
* Creates the exception, for the window to throw.
|
|
26
|
+
*
|
|
27
|
+
* @param productName The app's name, which the message starts with.
|
|
28
|
+
* @param reason Why the file wasn't opened.
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* import { FileNotOpenedException } from "@noldova/desktop.window";
|
|
32
|
+
*
|
|
33
|
+
* export function readRefusal(error: unknown): string | null {
|
|
34
|
+
* return error instanceof FileNotOpenedException ? error.reason : null;
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
12
38
|
constructor(productName: string, reason: string);
|
|
13
39
|
}
|
|
@@ -6,8 +6,35 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { WindowException } from "./window.exception.js";
|
|
9
|
+
/**
|
|
10
|
+
* The exception {@link IWindowPartContext.showInFolderAsync} rejects with when
|
|
11
|
+
* the window refuses to show a file in its folder, such as a path no file can
|
|
12
|
+
* be read at, or a network or device path, so a part tells that refusal apart
|
|
13
|
+
* from other failures.
|
|
14
|
+
*/
|
|
9
15
|
export declare class FileNotShownException extends WindowException {
|
|
16
|
+
/**
|
|
17
|
+
* The exception's name, `FileNotShownException`.
|
|
18
|
+
*/
|
|
10
19
|
readonly name: string;
|
|
20
|
+
/**
|
|
21
|
+
* Why the file wasn't shown, as the main process gave it, such as that no
|
|
22
|
+
* file can be read at the path.
|
|
23
|
+
*/
|
|
11
24
|
readonly reason: string;
|
|
25
|
+
/**
|
|
26
|
+
* Creates the exception, for the window to throw.
|
|
27
|
+
*
|
|
28
|
+
* @param productName The app's name, which the message starts with.
|
|
29
|
+
* @param reason Why the file wasn't shown.
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* import { FileNotShownException } from "@noldova/desktop.window";
|
|
33
|
+
*
|
|
34
|
+
* export function readRefusal(error: unknown): string | null {
|
|
35
|
+
* return error instanceof FileNotShownException ? error.reason : null;
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
12
39
|
constructor(productName: string, reason: string);
|
|
13
40
|
}
|
|
@@ -7,9 +7,49 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { JsonObject } from "@noldova/context.json";
|
|
9
9
|
import { WindowException } from "./window.exception.js";
|
|
10
|
+
/**
|
|
11
|
+
* The exception {@link IWindowPartContext.requestAsync} rejects with when the
|
|
12
|
+
* runtime refuses or fails the request, so a part reads the failure's code and
|
|
13
|
+
* the details its module's runtime part gave, such as which note was missing.
|
|
14
|
+
*/
|
|
10
15
|
export declare class RuntimeRequestException extends WindowException {
|
|
16
|
+
/**
|
|
17
|
+
* The exception's name: `RuntimeRequestException`, or
|
|
18
|
+
* `RuntimeDisconnectedException` once the runtime is gone, when the window
|
|
19
|
+
* throws its own subclass; `instanceof RuntimeRequestException` holds for both.
|
|
20
|
+
*/
|
|
11
21
|
readonly name: string;
|
|
22
|
+
/**
|
|
23
|
+
* The failure's code, one of `FailureCode`'s values from
|
|
24
|
+
* `@noldova/desktop.protocol`: the one the runtime part's method failed with,
|
|
25
|
+
* such as `NotFound`, or `Disconnected` once the runtime is gone.
|
|
26
|
+
*/
|
|
12
27
|
readonly code: string;
|
|
28
|
+
/**
|
|
29
|
+
* The failure's details, as the runtime part's method gave them with its
|
|
30
|
+
* failure, or `undefined` when it gave none.
|
|
31
|
+
*/
|
|
13
32
|
readonly details: JsonObject | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Creates the exception, for the window to throw, and for a part's specs to
|
|
35
|
+
* reject a fake request with, as the testing package's
|
|
36
|
+
* `FakeWindowPartContext.requestAsync` shows.
|
|
37
|
+
*
|
|
38
|
+
* @param code The failure's code.
|
|
39
|
+
* @param message A sentence describing the failure.
|
|
40
|
+
* @param details The failure's details, if any.
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* import { JsonReader } from "@noldova/context.json";
|
|
44
|
+
* import { FailureCode } from "@noldova/desktop.protocol";
|
|
45
|
+
* import { RuntimeRequestException } from "@noldova/desktop.window";
|
|
46
|
+
*
|
|
47
|
+
* export function readMissingNote(error: unknown): string | null {
|
|
48
|
+
* if (!(error instanceof RuntimeRequestException) || error.code !== FailureCode.NotFound || error.details === undefined)
|
|
49
|
+
* return null;
|
|
50
|
+
* return JsonReader.fromValue(error.details).readString("path");
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
14
54
|
constructor(code: string, message: string, details?: JsonObject);
|
|
15
55
|
}
|
|
@@ -60,10 +60,10 @@ export interface IDocumentOptions {
|
|
|
60
60
|
*/
|
|
61
61
|
readonly marker?: IDocumentMarker;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
63
|
+
* Ignored: a document tab no longer carries an underline. It goes at the
|
|
64
|
+
* next minor version.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated Leave it out.
|
|
67
67
|
*/
|
|
68
68
|
readonly underline?: string;
|
|
69
69
|
/**
|
|
@@ -76,4 +76,15 @@ export interface IDocumentOptions {
|
|
|
76
76
|
* is only activated where it is.
|
|
77
77
|
*/
|
|
78
78
|
readonly after?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the document becomes its group's active tab, as when the person
|
|
81
|
+
* chooses it; true when left out. When false, the document joins its group's
|
|
82
|
+
* tabs without becoming active, the group stays as it was, and the focus
|
|
83
|
+
* stays where it is, such as a page an agent opens beside the one the person
|
|
84
|
+
* reads; an open document stays where it is, behind the active tab. A preview
|
|
85
|
+
* replaces the group's preview only when that preview isn't the active tab,
|
|
86
|
+
* which otherwise stays open as an ordinary tab. A document opened into an
|
|
87
|
+
* empty group still becomes that group's active tab.
|
|
88
|
+
*/
|
|
89
|
+
readonly activate?: boolean;
|
|
79
90
|
}
|
|
@@ -51,8 +51,10 @@ export interface IDocumentUpdate {
|
|
|
51
51
|
*/
|
|
52
52
|
readonly marker?: IDocumentMarker | null;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* Ignored: a document tab no longer carries an underline. It goes at the
|
|
55
|
+
* next minor version.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated Leave it out.
|
|
56
58
|
*/
|
|
57
59
|
readonly underline?: string | null;
|
|
58
60
|
}
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* This source code is licensed under the license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import type { WebViewInfo } from "@noldova/desktop.protocol";
|
|
8
|
+
import type { KeyChord, WebViewInfo } from "@noldova/desktop.protocol";
|
|
9
9
|
export interface IOpenedWebView {
|
|
10
10
|
readonly view: WebViewInfo;
|
|
11
11
|
readonly partition: string;
|
|
12
|
+
readonly keys: readonly KeyChord[];
|
|
12
13
|
}
|
|
@@ -72,6 +72,7 @@ export interface IPreloadBridge {
|
|
|
72
72
|
setAppShortcuts(shortcuts: JsonObject): void;
|
|
73
73
|
onWebViewEvent(listener: (event: unknown) => void): () => void;
|
|
74
74
|
onWebViewShortcut(listener: (stroke: unknown) => void): () => void;
|
|
75
|
+
answerWebViewShortcut(press: unknown, hasRun: boolean): void;
|
|
75
76
|
onWebViewInput(listener: (input: unknown) => void): () => void;
|
|
76
77
|
releaseWebViewFocus(moduleId: string, view: string): void;
|
|
77
78
|
logModule(moduleId: string, message: string): void;
|
|
@@ -335,8 +335,10 @@ export interface IWebViewHandle {
|
|
|
335
335
|
/**
|
|
336
336
|
* Reports the view's events: its state, failed loads, refused navigations
|
|
337
337
|
* and requests, a crash, a cleared profile, the person's declared keys, each
|
|
338
|
-
* zoom change
|
|
339
|
-
*
|
|
338
|
+
* zoom change, each search's result, each change of the page's icon as a
|
|
339
|
+
* `Favicon` event whose `image` is a `data:image/png` URL or null, and
|
|
340
|
+
* `Closed` when the main process ends it. No event comes after the part
|
|
341
|
+
* closes the view itself.
|
|
340
342
|
*
|
|
341
343
|
* @param listener Receives each event.
|
|
342
344
|
* @returns The release.
|
|
@@ -648,15 +648,16 @@ export interface IWindowPartContext {
|
|
|
648
648
|
/**
|
|
649
649
|
* Opens one of the module's documents at the end of the active document
|
|
650
650
|
* group, or right after another of its open instances when
|
|
651
|
-
* {@link IDocumentOptions.after} names one, or activates it where it is
|
|
651
|
+
* {@link IDocumentOptions.after} names one, or activates it where it is,
|
|
652
|
+
* unless {@link IDocumentOptions.activate} is false. While the part first activates with a saved
|
|
652
653
|
* layout, the document shows only when the layout holds it. An open document
|
|
653
654
|
* keeps its look, changing only what the options give.
|
|
654
655
|
*
|
|
655
656
|
* @param name The document's name.
|
|
656
657
|
* @param instance Which of the document's instances, such as a note's id.
|
|
657
658
|
* @param title The tab's title.
|
|
658
|
-
* @param options Whether it opens as a preview, its breadcrumb, its look
|
|
659
|
-
*
|
|
659
|
+
* @param options Whether it opens as a preview, its breadcrumb, its look,
|
|
660
|
+
* the document it opens after and whether it becomes active; an ordinary, active tab with no breadcrumb, at
|
|
660
661
|
* the end of the active group, when left out.
|
|
661
662
|
* @throws Error synchronously when the document belongs to another module,
|
|
662
663
|
* or the title or a breadcrumb segment is blank.
|
|
@@ -910,6 +911,34 @@ export interface IWindowPartContext {
|
|
|
910
911
|
* ```
|
|
911
912
|
*/
|
|
912
913
|
closeView(name: string, instance: string): void;
|
|
914
|
+
/**
|
|
915
|
+
* Closes the view dialog while it shows one of the module's views or
|
|
916
|
+
* documents, with instances or without, such as after an action of the view
|
|
917
|
+
* leads elsewhere: the dialog closes as when the person closes it, its view
|
|
918
|
+
* returns to its tab if it came from one, and the focus returns where the
|
|
919
|
+
* person's close returns it, or goes to the tab of a document the module
|
|
920
|
+
* opened or activated since the dialog showed, as in the example below.
|
|
921
|
+
* Nothing happens while the view or document
|
|
922
|
+
* shows in a tab, or the dialog shows something else or nothing, so a view
|
|
923
|
+
* never needs to know whether it shows in a dialog: it asks to close the
|
|
924
|
+
* dialog either way.
|
|
925
|
+
*
|
|
926
|
+
* @param name The view's or document's name.
|
|
927
|
+
* @param instance The instance the dialog must show for it to close; any
|
|
928
|
+
* instance of the name when omitted.
|
|
929
|
+
* @throws Error synchronously when the name belongs to another module or is
|
|
930
|
+
* not one of the module's views or documents, or the instance is blank.
|
|
931
|
+
* @example
|
|
932
|
+
* ```ts
|
|
933
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
934
|
+
*
|
|
935
|
+
* export function startChat(context: IWindowPartContext, person: string): void {
|
|
936
|
+
* context.openDocument("chat.conversation", person, person);
|
|
937
|
+
* context.closeDialog("chat.people");
|
|
938
|
+
* }
|
|
939
|
+
* ```
|
|
940
|
+
*/
|
|
941
|
+
closeDialog(name: string, instance?: string): void;
|
|
913
942
|
/**
|
|
914
943
|
* Shows one of the part's views without instances, such as a bottom
|
|
915
944
|
* panel, and moves the focus into it, as choosing its tab with the
|
|
@@ -1059,6 +1088,75 @@ export interface IWindowPartContext {
|
|
|
1059
1088
|
* ```
|
|
1060
1089
|
*/
|
|
1061
1090
|
onViewClosed(name: string, listener: (instance: string) => void): () => void;
|
|
1091
|
+
/**
|
|
1092
|
+
* Adds a place the view shows, such as a list's item or a pane's page, to
|
|
1093
|
+
* Back and Forward, after the entry the person is on: the same history as
|
|
1094
|
+
* the documents shown in the middle, whose entries ahead it drops and whose
|
|
1095
|
+
* 50-entry limit it shares. A place equal to the entry the person is on is
|
|
1096
|
+
* ignored, so a view can record each place it shows, including one it shows
|
|
1097
|
+
* because Back or Forward reached it. While the part is inactive, the call
|
|
1098
|
+
* does nothing.
|
|
1099
|
+
*
|
|
1100
|
+
* @param view The view's name, the module's.
|
|
1101
|
+
* @param place The place, a string the module chooses that is not blank,
|
|
1102
|
+
* such as an item's id or a page's address; the same view, instance and
|
|
1103
|
+
* place make the same place.
|
|
1104
|
+
* @param instance The view's instance, given for a view with instances and
|
|
1105
|
+
* left out for one without.
|
|
1106
|
+
* @throws Error synchronously when the view belongs to another module, is
|
|
1107
|
+
* not a registered view, gets an instance it doesn't have or lacks one it
|
|
1108
|
+
* has, or the place or instance is blank.
|
|
1109
|
+
* @example
|
|
1110
|
+
* ```ts
|
|
1111
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1112
|
+
*
|
|
1113
|
+
* export function showNote(context: IWindowPartContext, id: string): void {
|
|
1114
|
+
* context.recordPlace("notes.list", id);
|
|
1115
|
+
* }
|
|
1116
|
+
* ```
|
|
1117
|
+
*/
|
|
1118
|
+
recordPlace(view: string, place: string, instance?: string): void;
|
|
1119
|
+
/**
|
|
1120
|
+
* Takes a place the module no longer has out of Back and Forward, such as
|
|
1121
|
+
* a deleted item. While the part is inactive, the call does nothing; the
|
|
1122
|
+
* window drops a module's places when its part deactivates.
|
|
1123
|
+
*
|
|
1124
|
+
* @param view The view's name, the module's.
|
|
1125
|
+
* @param place The place, as {@link recordPlace} gave it.
|
|
1126
|
+
* @param instance The view's instance, as {@link recordPlace} gave it.
|
|
1127
|
+
* @throws Error synchronously as {@link recordPlace} does.
|
|
1128
|
+
* @example
|
|
1129
|
+
* ```ts
|
|
1130
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1131
|
+
*
|
|
1132
|
+
* export function deleteNote(context: IWindowPartContext, id: string): void {
|
|
1133
|
+
* context.forgetPlace("notes.list", id);
|
|
1134
|
+
* }
|
|
1135
|
+
* ```
|
|
1136
|
+
*/
|
|
1137
|
+
forgetPlace(view: string, place: string, instance?: string): void;
|
|
1138
|
+
/**
|
|
1139
|
+
* Listens for Back or Forward reaching one of the view's places. The window
|
|
1140
|
+
* shows the view first, the instance's tab or the view in its dock, and
|
|
1141
|
+
* then calls each listener with the place to show. Back and Forward skip a
|
|
1142
|
+
* place whose view has no listener or whose instance's tab is closed.
|
|
1143
|
+
*
|
|
1144
|
+
* @param view The view's name, the module's.
|
|
1145
|
+
* @param listener Called with the place and the instance it was recorded
|
|
1146
|
+
* for, or null for a view without instances.
|
|
1147
|
+
* @returns A function that removes the listener.
|
|
1148
|
+
* @throws Error synchronously when the view belongs to another module or
|
|
1149
|
+
* is not a registered view.
|
|
1150
|
+
* @example
|
|
1151
|
+
* ```ts
|
|
1152
|
+
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
1153
|
+
*
|
|
1154
|
+
* export function followHistory(context: IWindowPartContext, show: (id: string) => void): () => void {
|
|
1155
|
+
* return context.onPlaceShown("notes.list", show);
|
|
1156
|
+
* }
|
|
1157
|
+
* ```
|
|
1158
|
+
*/
|
|
1159
|
+
onPlaceShown(view: string, listener: (place: string, instance: string | null) => void): () => void;
|
|
1062
1160
|
/**
|
|
1063
1161
|
* Shows a view or document in a large modal dialog. One already open in a
|
|
1064
1162
|
* tab moves into the dialog and returns when it closes.
|
|
@@ -1082,8 +1180,8 @@ export interface IWindowPartContext {
|
|
|
1082
1180
|
/**
|
|
1083
1181
|
* Opens a palette just under the window row, centred across the window, as
|
|
1084
1182
|
* the command search opens: the part's component, created with its
|
|
1085
|
-
* {@link WindowPartTokens}, with `shown` true and a
|
|
1086
|
-
* own. The window shows one palette at a time.
|
|
1183
|
+
* {@link WindowPartTokens}, with `shown` true, `activeDocument` false and a
|
|
1184
|
+
* content padding of its own. The window shows one palette at a time.
|
|
1087
1185
|
*
|
|
1088
1186
|
* @param load Loads the palette's component.
|
|
1089
1187
|
* @returns The palette, or null when the window shows no window row,
|
|
@@ -1221,9 +1319,9 @@ export interface IWindowPartContext {
|
|
|
1221
1319
|
*
|
|
1222
1320
|
* @param path The file's or folder's absolute path.
|
|
1223
1321
|
* @returns A promise that settles once the request is handed to the system's
|
|
1224
|
-
* file manager; it rejects
|
|
1225
|
-
*
|
|
1226
|
-
* and shows nothing.
|
|
1322
|
+
* file manager; it rejects with a {@link FileNotShownException}, whose
|
|
1323
|
+
* `reason` says why, when the path is refused. After the part is withdrawn,
|
|
1324
|
+
* it settles at once without checking the path and shows nothing.
|
|
1227
1325
|
* @example
|
|
1228
1326
|
* ```ts
|
|
1229
1327
|
* import type { IWindowPartContext } from "@noldova/desktop.window";
|
|
@@ -1256,15 +1354,22 @@ export interface IWindowPartContext {
|
|
|
1256
1354
|
*
|
|
1257
1355
|
* @param path The file's absolute path.
|
|
1258
1356
|
* @returns A promise that settles once the system has taken the file; it
|
|
1259
|
-
* rejects
|
|
1260
|
-
*
|
|
1261
|
-
* the path and opens nothing.
|
|
1357
|
+
* rejects with a {@link FileNotOpenedException}, whose `reason` says why,
|
|
1358
|
+
* when the file is refused or the system cannot open it. After the part is
|
|
1359
|
+
* withdrawn, it settles at once without checking the path and opens nothing.
|
|
1262
1360
|
* @example
|
|
1263
1361
|
* ```ts
|
|
1264
|
-
* import type
|
|
1362
|
+
* import { FileNotOpenedException, type IWindowPartContext } from "@noldova/desktop.window";
|
|
1265
1363
|
*
|
|
1266
1364
|
* export async function openReportAsync(context: IWindowPartContext, path: string): Promise<void> {
|
|
1267
|
-
*
|
|
1365
|
+
* try {
|
|
1366
|
+
* await context.openFileAsync(path);
|
|
1367
|
+
* }
|
|
1368
|
+
* catch (error) {
|
|
1369
|
+
* if (!(error instanceof FileNotOpenedException))
|
|
1370
|
+
* throw error;
|
|
1371
|
+
* await context.showInFolderAsync(path);
|
|
1372
|
+
* }
|
|
1268
1373
|
* }
|
|
1269
1374
|
* ```
|
|
1270
1375
|
*/
|
|
@@ -1461,8 +1566,9 @@ export interface IWindowPartContext {
|
|
|
1461
1566
|
* @param method The method's name.
|
|
1462
1567
|
* @param parameters The parameters.
|
|
1463
1568
|
* @returns A promise of the method's result; it rejects when the method
|
|
1464
|
-
* belongs to neither the module nor a dependency,
|
|
1465
|
-
*
|
|
1569
|
+
* belongs to neither the module nor a dependency, and with a
|
|
1570
|
+
* {@link RuntimeRequestException}, whose `code` and `details` say why, when
|
|
1571
|
+
* the runtime refuses or fails the request.
|
|
1466
1572
|
* @example
|
|
1467
1573
|
* ```ts
|
|
1468
1574
|
* import type { JsonValue } from "@noldova/context.json";
|
|
@@ -15,6 +15,7 @@ import type { IssuedFileGrants } from "../models/issued-file-grants.js";
|
|
|
15
15
|
import type { Tab } from "../models/layout/tab.js";
|
|
16
16
|
import type { MenuItem } from "../models/menu-item.js";
|
|
17
17
|
import type { ViewBadge } from "../models/view-badge.js";
|
|
18
|
+
import type { ViewPlace } from "../models/view-place.js";
|
|
18
19
|
import type { ICommandKey } from "./i-command-key.js";
|
|
19
20
|
import type { IDocumentUpdate } from "./i-document-update.js";
|
|
20
21
|
import type { IInAppBrowser } from "./i-in-app-browser.js";
|
|
@@ -31,7 +32,7 @@ export interface IWindowPartHost {
|
|
|
31
32
|
readonly platform: string;
|
|
32
33
|
requestAsync(method: string, payload: JsonValue): Promise<JsonValue>;
|
|
33
34
|
onEvent(name: string, listener: (payload: JsonValue) => void): () => void;
|
|
34
|
-
openDocument(moduleId: string, name: string, instance: string, heading: DocumentHeading, isPreview: boolean, after: string | null): void;
|
|
35
|
+
openDocument(moduleId: string, name: string, instance: string, heading: DocumentHeading, isPreview: boolean, after: string | null, activate: boolean): void;
|
|
35
36
|
keepDocument(moduleId: string, name: string, instance: string): void;
|
|
36
37
|
closeDocument(moduleId: string, name: string, instance: string): void;
|
|
37
38
|
forgetDocument(moduleId: string, name: string, instance: string): void;
|
|
@@ -44,11 +45,15 @@ export interface IWindowPartHost {
|
|
|
44
45
|
openView(moduleId: string, name: string, instance: string, heading: DocumentHeading, icon: string | null, tabGroup: string | null): void;
|
|
45
46
|
updateView(moduleId: string, name: string, instance: string, title: string | null, icon: string | null, breadcrumb: readonly string[] | null, breadcrumbIcon: string | null): void;
|
|
46
47
|
closeView(moduleId: string, name: string, instance: string): void;
|
|
48
|
+
closeDialog(name: string, instance: string | null): void;
|
|
47
49
|
showView(moduleId: string, name: string): void;
|
|
48
50
|
hideViewDock(moduleId: string, name: string, instance: string | null): void;
|
|
49
51
|
growViewDock(name: string, instance: string | null, minimum: number): () => void;
|
|
50
52
|
viewDockOf(name: string, instance: string | null): Signal<DockSide | null>;
|
|
51
53
|
onViewClosed(name: string, listener: (instance: string) => void): () => void;
|
|
54
|
+
recordPlace(place: ViewPlace): void;
|
|
55
|
+
forgetPlace(place: ViewPlace): void;
|
|
56
|
+
onPlaceShown(view: string, listener: (place: string, instance: string | null) => void): () => void;
|
|
52
57
|
showInDialogAsync(name: string, instance: string | null, title: string | null): Promise<void>;
|
|
53
58
|
openBelowWindowRow<T>(context: IWindowPartContext, component: Type<T>): IWindowPalette<T> | null;
|
|
54
59
|
log(moduleId: string, message: string): void;
|
|
@@ -87,7 +87,10 @@ export interface IWindowPart {
|
|
|
87
87
|
* with its context, contributions, views and documents. Before resolving
|
|
88
88
|
* true, the part reads again through its context everything it took from
|
|
89
89
|
* the runtime, including its notifications, because the new runtime may
|
|
90
|
-
* hold other state and events sent while it was away are lost.
|
|
90
|
+
* hold other state and events sent while it was away are lost. A document
|
|
91
|
+
* the part opens from here, or from anything else it runs while the window
|
|
92
|
+
* reconnects, waits for the reconnect to end, then opens as at any other
|
|
93
|
+
* time, in the order asked, each in front, so the last one is active.
|
|
91
94
|
*
|
|
92
95
|
* @returns A promise of true when the part continues, or false to have the
|
|
93
96
|
* window deactivate it and activate it again, which is always safe; a
|