@gravionlabs/helix-desktop 22.5.1 → 22.7.0
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/README.md +2 -0
- package/fesm2022/gravionlabs-helix-desktop-tauri.mjs +131 -109
- package/fesm2022/gravionlabs-helix-desktop-tauri.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-desktop.mjs +209 -446
- package/fesm2022/gravionlabs-helix-desktop.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +34 -11
- package/types/gravionlabs-helix-desktop-tauri.d.ts +59 -5
- package/types/gravionlabs-helix-desktop.d.ts +75 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gravionlabs-helix-desktop.mjs","names":[],"sources":["../../../projects/desktop/src/lib/activity-bar/activity-bar.ts","../../../projects/desktop/src/lib/app-shell/app-shell.ts","../../../projects/desktop/src/lib/app-shell/app-toolbar.ts","../../../projects/desktop/src/lib/mobile-shell/bottom-bar.ts","../../../projects/desktop/src/lib/mobile-shell/mobile-shell.ts","../../../projects/desktop/src/lib/platform.ts","../../../projects/desktop/src/lib/status-bar/status-bar.ts","../../../projects/desktop/src/lib/status-bar/status-item.ts","../../../projects/desktop/src/lib/status-bar/status-version.ts","../../../projects/desktop/src/lib/status-bar/status-zoom.ts","../../../projects/desktop/src/public-api.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n type ElementRef,\n input,\n output,\n type TemplateRef,\n viewChildren,\n} from '@angular/core';\nimport type { HelixView } from '../view';\n\n/** A badge on an item: a count, or a dot when `true`. */\nexport type HxActivityBarBadge = number | string | true;\n\n/**\n * An item of the activity bar. A view (`kind` absent or `'view'`) is a toggle with `aria-pressed`; an\n * action is a plain button.\n */\nexport interface HxActivityBarItem extends Pick<HelixView, 'id' | 'label' | 'icon' | 'position'> {\n readonly kind?: 'view' | 'action';\n readonly badge?: HxActivityBarBadge | null;\n}\n\n/**\n * The narrow icon rail at the far left. It selects the sidebar view, opens tab views and holds actions.\n *\n * ```html\n * <hx-activity-bar [items]=\"items\" [activeId]=\"activeId()\" [expanded]=\"open()\" (selected)=\"select($event)\" />\n * ```\n *\n * The active view is marked only while the sidebar is `expanded`. The rail is one tab stop (roving\n * tabindex); the arrow keys, Home and End move the focus between the items. An icon given as a name is\n * rendered as `<span class=\"{name}\">`, so the app's icon font or registry draws it; a template is drawn as is.\n * Both sit in a box of one size.\n */\n@Component({\n selector: 'hx-activity-bar',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hx-activity-bar',\n role: 'toolbar',\n 'aria-orientation': 'vertical',\n '[attr.aria-label]': 'label()',\n '(keydown)': 'onKeydown($event)',\n },\n template: `\n @for (group of groups(); track group.name) {\n <div class=\"hx-activity-bar-group\" [class.hx-activity-bar-bottom]=\"group.name === 'bottom'\">\n @for (item of group.items; track item.id) {\n <button\n #button\n type=\"button\"\n class=\"hx-activity-bar-item\"\n [class.hx-activity-bar-active]=\"isActive(item)\"\n [attr.data-id]=\"item.id\"\n [attr.aria-label]=\"item.label\"\n [attr.aria-pressed]=\"isView(item) ? isActive(item) : null\"\n [attr.title]=\"item.label\"\n [attr.tabindex]=\"item.id === tabStopId() ? 0 : -1\"\n (click)=\"select(item)\"\n >\n <span class=\"hx-activity-bar-icon\" aria-hidden=\"true\">\n @if (asTemplate(item.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"item.icon\"></span>\n }\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span\n class=\"hx-activity-bar-badge\"\n [class.hx-activity-bar-badge-dot]=\"item.badge === true\"\n >{{ item.badge === true ? '' : item.badge }}</span\n >\n }\n </button>\n }\n </div>\n }\n `,\n})\nexport class HxActivityBar {\n /** The views and actions; `position` puts them at the top or the bottom (settings). */\n readonly items = input.required<readonly HxActivityBarItem[]>();\n /** The id of the active view. */\n readonly activeId = input<string | null>(null);\n /** Whether the sidebar is open; the active view is marked only then. */\n readonly expanded = input(true);\n /** The accessible name of the rail. */\n readonly label = input('Activity bar');\n\n /** Emits the id of the selected view or the activated action. */\n readonly selected = output<string>();\n\n private readonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('button');\n\n protected readonly groups = computed(() => {\n const items = this.items();\n return [\n { name: 'top', items: items.filter((i) => i.position !== 'bottom') },\n { name: 'bottom', items: items.filter((i) => i.position === 'bottom') },\n ].filter((g) => g.items.length > 0);\n });\n\n private readonly ordered = computed(() => this.groups().flatMap((g) => g.items));\n\n /** The one item in the tab order: the active view when marked, else the first. */\n protected readonly tabStopId = computed(() => {\n const ordered = this.ordered();\n const active = this.expanded() ? ordered.find((i) => i.id === this.activeId()) : undefined;\n return (active ?? ordered[0])?.id ?? null;\n });\n\n protected isView(item: HxActivityBarItem): boolean {\n return item.kind !== 'action';\n }\n\n protected isActive(item: HxActivityBarItem): boolean {\n return this.isView(item) && this.expanded() && item.id === this.activeId();\n }\n\n protected asTemplate(icon: HxActivityBarItem['icon']): TemplateRef<unknown> | null {\n return typeof icon === 'string' ? null : icon;\n }\n\n protected select(item: HxActivityBarItem): void {\n this.selected.emit(item.id);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const buttons = this.buttons().map((b) => b.nativeElement);\n if (buttons.length === 0) return;\n const current = buttons.indexOf(document.activeElement as HTMLButtonElement);\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowRight':\n next = (current + 1) % buttons.length;\n break;\n case 'ArrowUp':\n case 'ArrowLeft':\n next = (current - 1 + buttons.length) % buttons.length;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = buttons.length - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n buttons[next]?.focus();\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n numberAttribute,\n output,\n} from '@angular/core';\n\n/** The width and the collapsed state of the sidebar, as the app stores them. */\nexport interface HxSidebarState {\n readonly width: number;\n readonly collapsed: boolean;\n}\n\n/**\n * The layout of a desktop app: toolbar, activity bar, one sidebar, content, an optional right panel and a\n * status bar.\n *\n * ```html\n * <hx-app-shell #shell [(sidebarWidth)]=\"width\" [(collapsed)]=\"collapsed\" [(activeId)]=\"viewId\">\n * <hx-app-toolbar slot=\"toolbar\">...</hx-app-toolbar>\n * <hx-activity-bar slot=\"activity\" [items]=\"items\" [activeId]=\"shell.activeId()\"\n * [expanded]=\"!shell.collapsed()\" (selected)=\"shell.selectView($event)\" />\n * <nav slot=\"sidebar\">...the view of activeId...</nav>\n * <hx-tab-bar>...</hx-tab-bar>\n * <aside slot=\"panel\">...</aside>\n * <hx-status-bar slot=\"status\">...</hx-status-bar>\n * </hx-app-shell>\n * ```\n *\n * There is one sidebar: the app puts the view of `activeId` into it. `selectView` collapses the sidebar\n * when the active view is selected again and expands it for another one. The splitter is a\n * `role=\"separator\"`: drag it, or use the arrow keys (Shift for a larger step), Home and End. The shell\n * has no tab logic: the unslotted content is the app's tab layout.\n */\n@Component({\n selector: 'hx-app-shell',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-app-shell' },\n template: `\n <ng-content select=\"[slot=toolbar]\" />\n <div class=\"hx-app-shell-body\">\n <ng-content select=\"[slot=activity]\" />\n <div\n class=\"hx-app-shell-sidebar\"\n [hidden]=\"collapsed()\"\n [style.width.px]=\"width()\"\n >\n <ng-content select=\"[slot=sidebar]\" />\n </div>\n @if (!collapsed()) {\n <div\n class=\"hx-app-shell-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n tabindex=\"0\"\n [attr.aria-label]=\"resizerLabel()\"\n [attr.aria-valuenow]=\"width()\"\n [attr.aria-valuemin]=\"minWidth()\"\n [attr.aria-valuemax]=\"maxWidth()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerEnd($event)\"\n (pointercancel)=\"onPointerEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n ></div>\n }\n <main class=\"hx-app-shell-content\"><ng-content /></main>\n <ng-content select=\"[slot=panel]\" />\n </div>\n <ng-content select=\"[slot=status]\" />\n `,\n})\nexport class HxAppShell {\n /** The sidebar width in px (two-way); it is kept between `minWidth` and `maxWidth`. */\n readonly sidebarWidth = model(260);\n /** Whether the sidebar is collapsed (two-way). */\n readonly collapsed = model(false);\n /** The id of the active sidebar view (two-way). */\n readonly activeId = model<string | null>(null);\n readonly minWidth = input(160, { transform: numberAttribute });\n readonly maxWidth = input(480, { transform: numberAttribute });\n /** The step of an arrow key in px; Shift multiplies it by 4. */\n readonly step = input(16, { transform: numberAttribute });\n readonly resizerLabel = input('Resize sidebar');\n /** Set to disable the pointer and keyboard resize. */\n readonly fixedWidth = input(false, { transform: booleanAttribute });\n\n /** Emits the width and the collapsed state whenever either changes through the shell. */\n readonly sidebarChange = output<HxSidebarState>();\n\n protected readonly width = computed(() => this.clamp(this.sidebarWidth()));\n\n private dragStartX = 0;\n private dragStartWidth = 0;\n private dragging = false;\n\n /**\n * Select a sidebar view: the active one collapses the sidebar (when open), any other shows it and\n * expands the sidebar.\n */\n selectView(id: string): void {\n if (id === this.activeId() && !this.collapsed()) {\n this.collapsed.set(true);\n } else {\n this.activeId.set(id);\n this.collapsed.set(false);\n }\n this.report();\n }\n\n /** Set the width, clamped to the minimum and the maximum. */\n resizeTo(width: number): void {\n const next = this.clamp(width);\n if (next === this.sidebarWidth()) return;\n this.sidebarWidth.set(next);\n this.report();\n }\n\n protected onPointerDown(event: PointerEvent): void {\n if (this.fixedWidth() || event.button > 0) return;\n this.dragging = true;\n this.dragStartX = event.clientX;\n this.dragStartWidth = this.width();\n (event.target as HTMLElement).setPointerCapture?.(event.pointerId);\n event.preventDefault();\n }\n\n protected onPointerMove(event: PointerEvent): void {\n if (!this.dragging) return;\n const rtl = getComputedStyle(event.target as HTMLElement).direction === 'rtl';\n const delta = event.clientX - this.dragStartX;\n this.resizeTo(this.dragStartWidth + (rtl ? -delta : delta));\n }\n\n protected onPointerEnd(event: PointerEvent): void {\n if (!this.dragging) return;\n this.dragging = false;\n (event.target as HTMLElement).releasePointerCapture?.(event.pointerId);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.fixedWidth()) return;\n const step = this.step() * (event.shiftKey ? 4 : 1);\n const rtl = getComputedStyle(event.target as HTMLElement).direction === 'rtl';\n switch (event.key) {\n case 'ArrowLeft':\n this.resizeTo(this.width() + (rtl ? step : -step));\n break;\n case 'ArrowRight':\n this.resizeTo(this.width() + (rtl ? -step : step));\n break;\n case 'Home':\n this.resizeTo(this.minWidth());\n break;\n case 'End':\n this.resizeTo(this.maxWidth());\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n private clamp(width: number): number {\n return Math.min(this.maxWidth(), Math.max(this.minWidth(), Math.round(width)));\n }\n\n private report(): void {\n this.sidebarChange.emit({ width: this.width(), collapsed: this.collapsed() });\n }\n}\n","import { booleanAttribute, ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/**\n * The slim bar (26 px) at the top of a desktop app: a start, a centre (title) and an end slot.\n *\n * ```html\n * <hx-app-toolbar slot=\"toolbar\" [windowButtonsInset]=\"true\">\n * <button slot=\"start\">Back</button>\n * <span slot=\"centre\">Project</span>\n * <button slot=\"end\">Share</button>\n * </hx-app-toolbar>\n * ```\n *\n * The bar and its centre carry `data-tauri-drag-region`, so a Tauri window is dragged by them; buttons\n * in the start and end slot are not part of the region. Set `windowButtonsInset` when the title bar is\n * hidden on macOS: the start group then leaves room for the window buttons.\n */\n@Component({\n selector: 'hx-app-toolbar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hx-app-toolbar',\n '[class.hx-app-toolbar-inset]': 'windowButtonsInset()',\n 'data-tauri-drag-region': '',\n },\n template: `\n <div class=\"hx-app-toolbar-start\"><ng-content select=\"[slot=start]\" /></div>\n <div class=\"hx-app-toolbar-centre\" data-tauri-drag-region><ng-content select=\"[slot=centre]\" /></div>\n <div class=\"hx-app-toolbar-end\"><ng-content select=\"[slot=end]\" /></div>\n `,\n})\nexport class HxAppToolbar {\n /** Reserve room at the start for the macOS window buttons (a hidden title bar). */\n readonly windowButtonsInset = input(false, { transform: booleanAttribute });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n output,\n type TemplateRef,\n} from '@angular/core';\nimport type { HxActivityBarItem } from '../activity-bar/activity-bar';\n\n/** The most items a bottom bar shows; more do not fit a phone. */\nexport const HX_BOTTOM_BAR_MAX_ITEMS = 5;\n\n/** An item of the bottom bar: the same shape as an activity bar item. */\nexport type HxBottomBarItem = HxActivityBarItem;\n\n/**\n * The tab bar at the bottom of the mobile shell: up to five views or actions, each a touch target of at\n * least 44 pt. It has no tooltips. The bottom safe area (home indicator) is part of its padding.\n *\n * ```html\n * <hx-bottom-bar [items]=\"items\" [activeId]=\"activeId()\" (selected)=\"select($event)\" />\n * ```\n */\n@Component({\n selector: 'hx-bottom-bar',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-bottom-bar', role: 'toolbar', '[attr.aria-label]': 'label()' },\n template: `\n @for (item of visible(); track item.id) {\n <button\n type=\"button\"\n class=\"hx-bottom-bar-item\"\n [class.hx-bottom-bar-active]=\"isActive(item)\"\n [attr.data-id]=\"item.id\"\n [attr.aria-label]=\"item.label\"\n [attr.aria-pressed]=\"item.kind === 'action' ? null : isActive(item)\"\n (click)=\"selected.emit(item.id)\"\n >\n <span class=\"hx-bottom-bar-icon\" aria-hidden=\"true\">\n @if (asTemplate(item.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"item.icon\"></span>\n }\n </span>\n <span class=\"hx-bottom-bar-label\">{{ item.label }}</span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"hx-bottom-bar-badge\" [class.hx-bottom-bar-badge-dot]=\"item.badge === true\">{{\n item.badge === true ? '' : item.badge\n }}</span>\n }\n </button>\n }\n `,\n})\nexport class HxBottomBar {\n /** The views and actions; only the first five are shown. */\n readonly items = input.required<readonly HxBottomBarItem[]>();\n readonly activeId = input<string | null>(null);\n readonly label = input('Views');\n\n /** Emits the id of the selected view or the activated action. */\n readonly selected = output<string>();\n\n protected readonly visible = computed(() => this.items().slice(0, HX_BOTTOM_BAR_MAX_ITEMS));\n\n protected isActive(item: HxBottomBarItem): boolean {\n return item.kind !== 'action' && item.id === this.activeId();\n }\n\n protected asTemplate(icon: HxBottomBarItem['icon']): TemplateRef<unknown> | null {\n return typeof icon === 'string' ? null : icon;\n }\n}\n","import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\nimport { HxDrawer } from '@gravionlabs/helix-ui';\nimport { HxBottomBar, type HxBottomBarItem } from './bottom-bar';\n\n/** A horizontal swipe toward the edge of the drawer closes it from this distance (px). */\nconst SWIPE_DISTANCE = 48;\n\n/**\n * The layout of a phone app: a top bar with the menu button, the content, a bottom bar, and a drawer for\n * the sidebar views. It has no status bar and no hover tooltips. The notch, the home indicator and the\n * keyboard are kept clear with `env(safe-area-inset-*)`.\n *\n * ```html\n * <hx-mobile-shell #shell [items]=\"items\" [(activeId)]=\"viewId\" [(drawerOpen)]=\"drawer\" heading=\"Helix\">\n * <nav slot=\"drawer\"><button (click)=\"shell.chooseView('files')\">Files</button></nav>\n * ...the view of activeId...\n * </hx-mobile-shell>\n * ```\n *\n * Choose it by platform: `@if (platform === 'mobile') { <hx-mobile-shell> } @else { <hx-app-shell> }`\n * (`getHxPlatform()`), never by the window width. The drawer closes on a tap outside, on a swipe toward its\n * edge, on Escape and after `chooseView`. Set `<meta name=\"viewport\" content=\"..., viewport-fit=cover,\n * interactive-widget=resizes-content\">` so the safe-area insets and the keyboard work.\n */\n@Component({\n selector: 'hx-mobile-shell',\n imports: [HxBottomBar, HxDrawer],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-mobile-shell' },\n template: `\n <header class=\"hx-mobile-shell-bar\">\n <button\n type=\"button\"\n class=\"hx-mobile-shell-menu\"\n [attr.aria-label]=\"menuLabel()\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"drawerOpen()\"\n (click)=\"drawerOpen.set(true)\"\n >\n <span aria-hidden=\"true\">☰</span>\n </button>\n <span class=\"hx-mobile-shell-title\">{{ heading() }}</span>\n <ng-content select=\"[slot=end]\" />\n </header>\n <main class=\"hx-mobile-shell-content\"><ng-content /></main>\n <hx-bottom-bar [items]=\"items()\" [activeId]=\"activeId()\" [label]=\"barLabel()\" (selected)=\"onBarSelect($event)\" />\n <hx-drawer\n [(visible)]=\"drawerOpen\"\n position=\"left\"\n [ariaLabel]=\"menuLabel()\"\n [closeLabel]=\"closeLabel()\"\n width=\"min(20rem, 85vw)\"\n panelClass=\"hx-mobile-shell-drawer\"\n >\n <div\n class=\"hx-mobile-shell-drawer-body\"\n (touchstart)=\"onTouchStart($event)\"\n (touchend)=\"onTouchEnd($event)\"\n >\n <ng-content select=\"[slot=drawer]\" />\n </div>\n </hx-drawer>\n `,\n})\nexport class HxMobileShell {\n /** The views and actions of the bottom bar (at most five are shown). */\n readonly items = input.required<readonly HxBottomBarItem[]>();\n /** The id of the active view (two-way). */\n readonly activeId = model<string | null>(null);\n /** Whether the drawer is open (two-way). */\n readonly drawerOpen = model(false);\n readonly heading = input('');\n readonly menuLabel = input('Menu');\n readonly closeLabel = input('Close');\n readonly barLabel = input('Views');\n\n private touchX: number | null = null;\n\n /** Make a view active and close the drawer: call it when a sidebar view was chosen. */\n chooseView(id: string): void {\n this.activeId.set(id);\n this.drawerOpen.set(false);\n }\n\n protected onBarSelect(id: string): void {\n if (this.items().find((i) => i.id === id)?.kind !== 'action') this.activeId.set(id);\n this.drawerOpen.set(false);\n }\n\n protected onTouchStart(event: TouchEvent): void {\n this.touchX = event.changedTouches[0]?.clientX ?? null;\n }\n\n protected onTouchEnd(event: TouchEvent): void {\n const start = this.touchX;\n this.touchX = null;\n const end = event.changedTouches[0]?.clientX;\n if (start === null || end === undefined) return;\n const rtl = getComputedStyle(event.target as HTMLElement).direction === 'rtl';\n const delta = end - start;\n if (rtl ? delta >= SWIPE_DISTANCE : delta <= -SWIPE_DISTANCE) this.drawerOpen.set(false);\n }\n}\n","/** The operating system a Tauri app runs on, or `web` outside Tauri. */\nexport type HxOs = 'macos' | 'windows' | 'linux' | 'ios' | 'android' | 'web';\n\n/**\n * The platform an app runs on (ADR 0005): decides the shell, not the viewport width. `data-platform`\n * holds an {@link HxOs} (set by `providePlatform()` of the tauri entry) or the coarse `desktop` / `mobile`.\n */\nexport type HxPlatform = 'desktop' | 'mobile' | HxOs;\n\nconst PLATFORMS: readonly HxPlatform[] = [\n 'desktop',\n 'mobile',\n 'macos',\n 'windows',\n 'linux',\n 'ios',\n 'android',\n 'web',\n];\n\n/** The shell kind of a platform: `mobile` for ios, android and mobile, `web` for web, else `desktop`. */\nexport function getHxPlatformKind(platform: HxPlatform): 'desktop' | 'mobile' | 'web' {\n if (platform === 'ios' || platform === 'android' || platform === 'mobile') return 'mobile';\n return platform === 'web' ? 'web' : 'desktop';\n}\n\n/** Read `data-platform` of the root element; `web` when it is absent or unknown. */\nexport function getHxPlatform(root: HTMLElement = document.documentElement): HxPlatform {\n const value = root.getAttribute('data-platform') as HxPlatform | null;\n return value && PLATFORMS.includes(value) ? value : 'web';\n}\n\n/** Set `data-platform` on the root element, before the first render. */\nexport function setHxPlatform(\n platform: HxPlatform,\n root: HTMLElement = document.documentElement,\n): void {\n root.setAttribute('data-platform', platform);\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * The bottom bar of a desktop app: a start group at the left and an end group at the right.\n *\n * ```html\n * <hx-status-bar>\n * <hx-status-item slot=\"start\">Ready</hx-status-item>\n * <hx-status-version slot=\"end\" version=\"1.4.0\" channel=\"RC\" />\n * </hx-status-bar>\n * ```\n *\n * Project items with `slot=\"start\"` or `slot=\"end\"`. The bar has no role of its own: only an item that\n * announces a change sets `role=\"status\"` (see `HxStatusItem`).\n */\n@Component({\n selector: 'hx-status-bar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-status-bar' },\n template: `\n <div class=\"hx-status-group hx-status-start\"><ng-content select=\"[slot=start]\" /></div>\n <div class=\"hx-status-group hx-status-end\"><ng-content select=\"[slot=end]\" /></div>\n `,\n})\nexport class HxStatusBar {}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n} from '@angular/core';\n\n/** Marks the content of a status item that opens as a popover above the bar. */\n@Directive({ selector: '[hxStatusPopover]' })\nexport class HxStatusPopover {}\n\n/** The tone of a status item. */\nexport type HxStatusTone = 'neutral' | 'warn' | 'error' | 'accent';\n\n/**\n * One item of the status bar, as text or as a button.\n *\n * ```html\n * <hx-status-item kind=\"button\" title=\"Update available\" ariaLabel=\"Update details\" tone=\"accent\"\n * [(popoverOpen)]=\"open\">\n * Update 1.5.0\n * <div hxStatusPopover>Release notes ...</div>\n * </hx-status-item>\n * ```\n *\n * - `kind`: `'text'` (default) or `'button'`.\n * - `announce`: sets `role=\"status\"` on the item, for a value that changes while the user works (a sync\n * state). The bar itself is not a live region.\n * - An element with `hxStatusPopover` inside the item is a popover above the bar, shown while\n * `popoverOpen` is true. Escape and a click outside close it. Give a popover item `kind=\"button\"`.\n */\n@Component({\n selector: 'hx-status-item',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hx-status-item',\n '[class.hx-status-warn]': \"tone() === 'warn'\",\n '[class.hx-status-error]': \"tone() === 'error'\",\n '[class.hx-status-accent]': \"tone() === 'accent'\",\n '[attr.title]': 'null',\n '[attr.role]': \"announce() ? 'status' : null\",\n '(document:keydown.escape)': 'close()',\n '(document:click)': 'onDocumentClick($event)',\n },\n template: `\n @if (kind() === 'button') {\n <button\n type=\"button\"\n class=\"hx-status-control\"\n [attr.title]=\"title()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"hasPopover ? 'dialog' : null\"\n [attr.aria-expanded]=\"hasPopover ? popoverOpen() : null\"\n [disabled]=\"disabled()\"\n (click)=\"onButtonClick()\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n } @else {\n <span\n class=\"hx-status-control\"\n [attr.title]=\"title()\"\n [attr.aria-label]=\"ariaLabel()\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n }\n <ng-template #content><ng-content /></ng-template>\n @if (popoverOpen()) {\n <div class=\"hx-status-popover\"><ng-content select=\"[hxStatusPopover]\" /></div>\n }\n `,\n})\nexport class HxStatusItem {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Text or button. */\n readonly kind = input<'text' | 'button'>('text');\n /** The tooltip. */\n readonly title = input<string | null>(null);\n /** The accessible name, when the visible text is not enough. */\n readonly ariaLabel = input<string | null>(null);\n readonly disabled = input(false);\n readonly tone = input<HxStatusTone>('neutral');\n /** Marks the item as a live region (`role=\"status\"`). */\n readonly announce = input(false);\n /** Whether the popover is open. */\n readonly popoverOpen = model(false);\n\n private readonly popover = contentChild(HxStatusPopover);\n\n protected get hasPopover(): boolean {\n return this.popover() !== undefined;\n }\n\n protected onButtonClick(): void {\n if (this.hasPopover) this.popoverOpen.update((open) => !open);\n }\n\n protected close(): void {\n if (this.popoverOpen()) this.popoverOpen.set(false);\n }\n\n protected onDocumentClick(event: Event): void {\n if (this.popoverOpen() && !this.host.nativeElement.contains(event.target as Node)) {\n this.popoverOpen.set(false);\n }\n }\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/** The app version with an optional channel badge (`RC`). */\n@Component({\n selector: 'hx-status-version',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-status-version' },\n template: `\n <span class=\"hx-status-control hx-status-version-text\">v{{ version() }}</span>\n @if (channel()) {\n <span class=\"hx-status-channel\">{{ channel() }}</span>\n }\n `,\n})\nexport class HxStatusVersion {\n readonly version = input.required<string>();\n /** A channel badge such as `RC` or `beta`; none for a stable release. */\n readonly channel = input<string | null>(null);\n}\n","import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\n\n/**\n * Zoom out, the level in percent (a click resets to `reset`), zoom in.\n *\n * ```html\n * <hx-status-zoom slot=\"end\" [(value)]=\"zoom\" [min]=\"50\" [max]=\"200\" />\n * ```\n *\n * `value` is a percentage and changes in steps of `step`, kept between `min` and `max`.\n */\n@Component({\n selector: 'hx-status-zoom',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-status-zoom' },\n template: `\n <button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-out\"\n title=\"Zoom out\"\n aria-label=\"Zoom out\"\n [disabled]=\"value() <= min()\"\n (click)=\"change(-step())\"\n >\n −\n </button>\n <button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-level\"\n title=\"Reset zoom\"\n [attr.aria-label]=\"'Reset zoom, ' + value() + ' percent'\"\n (click)=\"set(reset())\"\n >\n {{ value() }}%\n </button>\n <button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-in\"\n title=\"Zoom in\"\n aria-label=\"Zoom in\"\n [disabled]=\"value() >= max()\"\n (click)=\"change(step())\"\n >\n +\n </button>\n `,\n})\nexport class HxStatusZoom {\n /** The zoom level in percent. */\n readonly value = model(100);\n readonly min = input(50);\n readonly max = input(200);\n readonly step = input(10);\n /** The level a click on the percentage resets to. */\n readonly reset = input(100);\n\n protected change(delta: number): void {\n this.set(this.value() + delta);\n }\n\n protected set(next: number): void {\n const clamped = Math.min(this.max(), Math.max(this.min(), next));\n if (clamped !== this.value()) this.value.set(clamped);\n }\n}\n","/*\n * Public API Surface of @gravionlabs/helix-desktop\n *\n * The desktop frame (ADR 0005). This entry imports nothing from `@tauri-apps/*`; the Tauri bindings are in\n * the secondary entry point `@gravionlabs/helix-desktop/tauri`.\n */\n\nexport const HELIX_DESKTOP_VERSION = '0.1.0';\n\nexport * from './lib/activity-bar/activity-bar';\nexport * from './lib/app-shell/app-shell';\nexport * from './lib/app-shell/app-toolbar';\nexport * from './lib/mobile-shell/bottom-bar';\nexport * from './lib/mobile-shell/mobile-shell';\nexport * from './lib/platform';\nexport * from './lib/status-bar/status-bar';\nexport * from './lib/status-bar/status-item';\nexport * from './lib/status-bar/status-version';\nexport * from './lib/status-bar/status-zoom';\nexport * from './lib/view';\n"],"mappings":";;;;AAoFA,IAAa,gBAAb,MAAa,cAAa;CAEf,QAAQ,MAAM,SAAwC,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAEtD,WAAW,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAErC,WAAW,MAAM,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAEtB,QAAQ,MAAM,gBAAe,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAG7B,WAAW,OAAM;CAET,UAAU,aAA4C,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAE7D,SAAS,eAAc;EACxC,MAAM,QAAQ,KAAK,MAAK;EACxB,OAAO,CACL;GAAE,MAAM;GAAO,OAAO,MAAM,QAAQ,MAAM,EAAE,aAAa,QAAQ;EAAC,GAClE;GAAE,MAAM;GAAU,OAAO,MAAM,QAAQ,MAAM,EAAE,aAAa,QAAQ;EAAC,CACtE,CAAA,CAAC,QAAQ,MAAM,EAAE,MAAM,SAAS,CAAC;CACpC,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAEe,UAAU,eAAe,KAAK,OAAM,CAAE,CAAC,SAAS,MAAM,EAAE,KAAK,GAAE,GAAA,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AA;CAAA,CAAA;CAAZ,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAY,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,OAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,KAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,KAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,MAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,OAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,OAAA,cAAA;EAAA,MAAA,EAAA,gBAAA,iBAAA;EAAA,UAAA;EAAA,UAhCb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BT,UAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAEU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EApCxB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,iBAAiB,wBAAwB;GACzC,MAAM,EAAE,OAAO,iBAAgB;GAC/B,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BX,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvCD,MAAa,wBAAwB"}
|
|
1
|
+
{"version":3,"file":"gravionlabs-helix-desktop.mjs","names":[],"sources":["../../../projects/desktop/src/lib/activity-bar/activity-bar.ts","../../../projects/desktop/src/lib/activity-bar/activity-bar.html","../../../projects/desktop/src/lib/app-shell/app-shell.ts","../../../projects/desktop/src/lib/app-shell/app-shell.html","../../../projects/desktop/src/lib/app-shell/app-toolbar.ts","../../../projects/desktop/src/lib/app-shell/app-toolbar.html","../../../projects/desktop/src/lib/mobile-shell/bottom-bar.ts","../../../projects/desktop/src/lib/mobile-shell/bottom-bar.html","../../../projects/desktop/src/lib/mobile-shell/mobile-shell.ts","../../../projects/desktop/src/lib/mobile-shell/mobile-shell.html","../../../projects/desktop/src/lib/platform.ts","../../../projects/desktop/src/lib/status-bar/status-bar.ts","../../../projects/desktop/src/lib/status-bar/status-bar.html","../../../projects/desktop/src/lib/status-bar/status-item.ts","../../../projects/desktop/src/lib/status-bar/status-item.html","../../../projects/desktop/src/lib/status-bar/status-version.ts","../../../projects/desktop/src/lib/status-bar/status-version.html","../../../projects/desktop/src/lib/status-bar/status-zoom.ts","../../../projects/desktop/src/lib/status-bar/status-zoom.html","../../../projects/desktop/src/public-api.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n type ElementRef,\n input,\n output,\n type TemplateRef,\n viewChildren,\n} from '@angular/core';\nimport type { HelixView } from '../view';\n\n/** A badge on an item: a count, or a dot when `true`. */\nexport type HxActivityBarBadge = number | string | true;\n\n/**\n * An item of the activity bar. A view (`kind` absent or `'view'`) is a toggle with `aria-pressed`; an\n * action is a plain button.\n */\nexport interface HxActivityBarItem extends Pick<HelixView, 'id' | 'label' | 'icon' | 'position'> {\n readonly kind?: 'view' | 'action';\n readonly badge?: HxActivityBarBadge | null;\n}\n\n/**\n * The narrow icon rail at the far left. It selects the sidebar view, opens tab views and holds actions.\n *\n * ```html\n * <hx-activity-bar [items]=\"items\" [activeId]=\"activeId()\" [expanded]=\"open()\" (selected)=\"select($event)\" />\n * ```\n *\n * The active view is marked only while the sidebar is `expanded`. The rail is one tab stop (roving\n * tabindex); the arrow keys, Home and End move the focus between the items. An icon given as a name is\n * rendered as `<span class=\"{name}\">`, so the app's icon font or registry draws it; a template is drawn as is.\n * Both sit in a box of one size.\n */\n@Component({\n selector: 'hx-activity-bar',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hx-activity-bar',\n role: 'toolbar',\n 'aria-orientation': 'vertical',\n '[attr.aria-label]': 'label()',\n '(keydown)': 'onKeydown($event)',\n },\n templateUrl: './activity-bar.html',\n})\nexport class HxActivityBar {\n /** The views and actions; `position` puts them at the top or the bottom (settings). */\n readonly items = input.required<readonly HxActivityBarItem[]>();\n /** The id of the active view. */\n readonly activeId = input<string | null>(null);\n /** Whether the sidebar is open; the active view is marked only then. */\n readonly expanded = input(true);\n /** The accessible name of the rail. */\n readonly label = input('Activity bar');\n\n /** Emits the id of the selected view or the activated action. */\n readonly selected = output<string>();\n\n private readonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('button');\n\n protected readonly groups = computed(() => {\n const items = this.items();\n return [\n { name: 'top', items: items.filter((i) => i.position !== 'bottom') },\n { name: 'bottom', items: items.filter((i) => i.position === 'bottom') },\n ].filter((g) => g.items.length > 0);\n });\n\n private readonly ordered = computed(() => this.groups().flatMap((g) => g.items));\n\n /** The one item in the tab order: the active view when marked, else the first. */\n protected readonly tabStopId = computed(() => {\n const ordered = this.ordered();\n const active = this.expanded() ? ordered.find((i) => i.id === this.activeId()) : undefined;\n return (active ?? ordered[0])?.id ?? null;\n });\n\n protected isView(item: HxActivityBarItem): boolean {\n return item.kind !== 'action';\n }\n\n protected isActive(item: HxActivityBarItem): boolean {\n return this.isView(item) && this.expanded() && item.id === this.activeId();\n }\n\n protected asTemplate(icon: HxActivityBarItem['icon']): TemplateRef<unknown> | null {\n return typeof icon === 'string' ? null : icon;\n }\n\n protected select(item: HxActivityBarItem): void {\n this.selected.emit(item.id);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const buttons = this.buttons().map((b) => b.nativeElement);\n if (buttons.length === 0) return;\n const current = buttons.indexOf(document.activeElement as HTMLButtonElement);\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowRight':\n next = (current + 1) % buttons.length;\n break;\n case 'ArrowUp':\n case 'ArrowLeft':\n next = (current - 1 + buttons.length) % buttons.length;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = buttons.length - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n buttons[next]?.focus();\n }\n}\n","@for (group of groups(); track group.name) {\n <div class=\"hx-activity-bar-group\" [class.hx-activity-bar-bottom]=\"group.name === 'bottom'\">\n @for (item of group.items; track item.id) {\n <button\n #button\n type=\"button\"\n class=\"hx-activity-bar-item\"\n [class.hx-activity-bar-active]=\"isActive(item)\"\n [attr.data-id]=\"item.id\"\n [attr.aria-label]=\"item.label\"\n [attr.aria-pressed]=\"isView(item) ? isActive(item) : null\"\n [attr.title]=\"item.label\"\n [attr.tabindex]=\"item.id === tabStopId() ? 0 : -1\"\n (click)=\"select(item)\"\n >\n <span class=\"hx-activity-bar-icon\" aria-hidden=\"true\">\n @if (asTemplate(item.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"item.icon\"></span>\n }\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span\n class=\"hx-activity-bar-badge\"\n [class.hx-activity-bar-badge-dot]=\"item.badge === true\"\n >{{ item.badge === true ? '' : item.badge }}</span\n >\n }\n </button>\n }\n </div>\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n numberAttribute,\n output,\n} from '@angular/core';\n\n/** The width and the collapsed state of the sidebar, as the app stores them. */\nexport interface HxSidebarState {\n readonly width: number;\n readonly collapsed: boolean;\n}\n\n/**\n * The layout of a desktop app: toolbar, activity bar, one sidebar, content, an optional right panel and a\n * status bar.\n *\n * ```html\n * <hx-app-shell #shell [(sidebarWidth)]=\"width\" [(collapsed)]=\"collapsed\" [(activeId)]=\"viewId\">\n * <hx-app-toolbar slot=\"toolbar\">...</hx-app-toolbar>\n * <hx-activity-bar slot=\"activity\" [items]=\"items\" [activeId]=\"shell.activeId()\"\n * [expanded]=\"!shell.collapsed()\" (selected)=\"shell.selectView($event)\" />\n * <nav slot=\"sidebar\">...the view of activeId...</nav>\n * <hx-tab-bar>...</hx-tab-bar>\n * <aside slot=\"panel\">...</aside>\n * <hx-status-bar slot=\"status\">...</hx-status-bar>\n * </hx-app-shell>\n * ```\n *\n * There is one sidebar: the app puts the view of `activeId` into it. `selectView` collapses the sidebar\n * when the active view is selected again and expands it for another one; `showView` only shows a view. The splitter is a\n * `role=\"separator\"`: drag it, or use the arrow keys (Shift for a larger step), Home and End. The shell\n * has no tab logic: the unslotted content is the app's tab layout.\n *\n * `slot=\"bottom\"` is a panel below the content (not under the activity bar), for an output panel or the\n * panel of an editor. It shows when `bottomOpen` is true; its horizontal splitter resizes `bottomHeight`\n * with the pointer or the Up and Down keys (Shift for a larger step), Home and End.\n */\n@Component({\n selector: 'hx-app-shell',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-app-shell' },\n templateUrl: './app-shell.html',\n})\nexport class HxAppShell {\n /** The sidebar width in px (two-way); it is kept between `minWidth` and `maxWidth`. */\n readonly sidebarWidth = model(260);\n /** Whether the sidebar is collapsed (two-way). */\n readonly collapsed = model(false);\n /** The id of the active sidebar view (two-way). */\n readonly activeId = model<string | null>(null);\n readonly minWidth = input(160, { transform: numberAttribute });\n readonly maxWidth = input(480, { transform: numberAttribute });\n /** The step of an arrow key in px; Shift multiplies it by 4. */\n readonly step = input(16, { transform: numberAttribute });\n readonly resizerLabel = input('Resize sidebar');\n /** Set to disable the pointer and keyboard resize. */\n readonly fixedWidth = input(false, { transform: booleanAttribute });\n\n /** The height in px of the bottom panel (two-way); it is kept between `minBottomHeight` and `maxBottomHeight`. */\n readonly bottomHeight = model(200);\n /** Whether the bottom panel (`slot=\"bottom\"`) is open (two-way); closed hides the slot and its splitter. */\n readonly bottomOpen = model(false);\n readonly minBottomHeight = input(80, { transform: numberAttribute });\n readonly maxBottomHeight = input(480, { transform: numberAttribute });\n readonly bottomResizerLabel = input('Resize bottom panel');\n\n /** Emits the width and the collapsed state whenever either changes through the shell. */\n readonly sidebarChange = output<HxSidebarState>();\n\n protected readonly width = computed(() => this.clamp(this.sidebarWidth()));\n protected readonly height = computed(() => this.clampHeight(this.bottomHeight()));\n\n private dragStartX = 0;\n private dragStartWidth = 0;\n private dragging = false;\n private dragStartY = 0;\n private dragStartHeight = 0;\n private draggingBottom = false;\n\n /**\n * Select a sidebar view: the active one collapses the sidebar (when open), any other shows it and\n * expands the sidebar.\n */\n selectView(id: string): void {\n if (id === this.activeId() && !this.collapsed()) {\n this.collapsed.set(true);\n } else {\n this.activeId.set(id);\n this.collapsed.set(false);\n }\n this.report();\n }\n\n /**\n * Show a sidebar view without toggling: activates it and expands the sidebar, and never collapses it.\n * For links to a view from outside the activity bar (status bar, notifications, commands).\n */\n showView(id: string): void {\n this.activeId.set(id);\n this.collapsed.set(false);\n this.report();\n }\n\n /** Set the width, clamped to the minimum and the maximum. */\n resizeTo(width: number): void {\n const next = this.clamp(width);\n if (next === this.sidebarWidth()) return;\n this.sidebarWidth.set(next);\n this.report();\n }\n\n /** Open the bottom panel when it is closed and close it when it is open. */\n toggleBottom(): void {\n this.bottomOpen.update((open) => !open);\n }\n\n /** Set the height of the bottom panel, clamped to the minimum and the maximum. */\n resizeBottomTo(height: number): void {\n const next = this.clampHeight(height);\n if (next === this.bottomHeight()) return;\n this.bottomHeight.set(next);\n }\n\n protected onBottomPointerDown(event: PointerEvent): void {\n if (this.fixedWidth() || event.button > 0) return;\n this.draggingBottom = true;\n this.dragStartY = event.clientY;\n this.dragStartHeight = this.height();\n (event.target as HTMLElement).setPointerCapture?.(event.pointerId);\n event.preventDefault();\n }\n\n protected onBottomPointerMove(event: PointerEvent): void {\n if (!this.draggingBottom) return;\n this.resizeBottomTo(this.dragStartHeight - (event.clientY - this.dragStartY));\n }\n\n protected onBottomPointerEnd(event: PointerEvent): void {\n if (!this.draggingBottom) return;\n this.draggingBottom = false;\n (event.target as HTMLElement).releasePointerCapture?.(event.pointerId);\n }\n\n protected onBottomKeydown(event: KeyboardEvent): void {\n if (this.fixedWidth()) return;\n const step = this.step() * (event.shiftKey ? 4 : 1);\n switch (event.key) {\n case 'ArrowUp':\n this.resizeBottomTo(this.height() + step);\n break;\n case 'ArrowDown':\n this.resizeBottomTo(this.height() - step);\n break;\n case 'Home':\n this.resizeBottomTo(this.minBottomHeight());\n break;\n case 'End':\n this.resizeBottomTo(this.maxBottomHeight());\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n protected onPointerDown(event: PointerEvent): void {\n if (this.fixedWidth() || event.button > 0) return;\n this.dragging = true;\n this.dragStartX = event.clientX;\n this.dragStartWidth = this.width();\n (event.target as HTMLElement).setPointerCapture?.(event.pointerId);\n event.preventDefault();\n }\n\n protected onPointerMove(event: PointerEvent): void {\n if (!this.dragging) return;\n const rtl = getComputedStyle(event.target as HTMLElement).direction === 'rtl';\n const delta = event.clientX - this.dragStartX;\n this.resizeTo(this.dragStartWidth + (rtl ? -delta : delta));\n }\n\n protected onPointerEnd(event: PointerEvent): void {\n if (!this.dragging) return;\n this.dragging = false;\n (event.target as HTMLElement).releasePointerCapture?.(event.pointerId);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.fixedWidth()) return;\n const step = this.step() * (event.shiftKey ? 4 : 1);\n const rtl = getComputedStyle(event.target as HTMLElement).direction === 'rtl';\n switch (event.key) {\n case 'ArrowLeft':\n this.resizeTo(this.width() + (rtl ? step : -step));\n break;\n case 'ArrowRight':\n this.resizeTo(this.width() + (rtl ? -step : step));\n break;\n case 'Home':\n this.resizeTo(this.minWidth());\n break;\n case 'End':\n this.resizeTo(this.maxWidth());\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n private clamp(width: number): number {\n return Math.min(this.maxWidth(), Math.max(this.minWidth(), Math.round(width)));\n }\n\n private clampHeight(height: number): number {\n return Math.min(this.maxBottomHeight(), Math.max(this.minBottomHeight(), Math.round(height)));\n }\n\n private report(): void {\n this.sidebarChange.emit({ width: this.width(), collapsed: this.collapsed() });\n }\n}\n","<ng-content select=\"[slot=toolbar]\" />\n<div class=\"hx-app-shell-body\">\n <ng-content select=\"[slot=activity]\" />\n <div class=\"hx-app-shell-sidebar\" [hidden]=\"collapsed()\" [style.width.px]=\"width()\">\n <ng-content select=\"[slot=sidebar]\" />\n </div>\n @if (!collapsed()) {\n <div\n class=\"hx-app-shell-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n tabindex=\"0\"\n [attr.aria-label]=\"resizerLabel()\"\n [attr.aria-valuenow]=\"width()\"\n [attr.aria-valuemin]=\"minWidth()\"\n [attr.aria-valuemax]=\"maxWidth()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerEnd($event)\"\n (pointercancel)=\"onPointerEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n ></div>\n }\n <div class=\"hx-app-shell-main\">\n <main class=\"hx-app-shell-content\"><ng-content /></main>\n @if (bottomOpen()) {\n <div\n class=\"hx-app-shell-resizer hx-app-shell-resizer-bottom\"\n role=\"separator\"\n aria-orientation=\"horizontal\"\n tabindex=\"0\"\n [attr.aria-label]=\"bottomResizerLabel()\"\n [attr.aria-valuenow]=\"height()\"\n [attr.aria-valuemin]=\"minBottomHeight()\"\n [attr.aria-valuemax]=\"maxBottomHeight()\"\n (pointerdown)=\"onBottomPointerDown($event)\"\n (pointermove)=\"onBottomPointerMove($event)\"\n (pointerup)=\"onBottomPointerEnd($event)\"\n (pointercancel)=\"onBottomPointerEnd($event)\"\n (keydown)=\"onBottomKeydown($event)\"\n ></div>\n }\n <div class=\"hx-app-shell-bottom\" [hidden]=\"!bottomOpen()\" [style.height.px]=\"height()\">\n <ng-content select=\"[slot=bottom]\" />\n </div>\n </div>\n <ng-content select=\"[slot=panel]\" />\n</div>\n<ng-content select=\"[slot=status]\" />\n","import { booleanAttribute, ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/**\n * The slim bar (26 px) at the top of a desktop app: a start, a centre (title) and an end slot.\n *\n * ```html\n * <hx-app-toolbar slot=\"toolbar\" [windowButtonsInset]=\"true\">\n * <button slot=\"start\">Back</button>\n * <span slot=\"centre\">Project</span>\n * <button slot=\"end\">Share</button>\n * </hx-app-toolbar>\n * ```\n *\n * The bar and its centre carry `data-tauri-drag-region`, so a Tauri window is dragged by them; buttons\n * in the start and end slot are not part of the region. Set `windowButtonsInset` when the title bar is\n * hidden on macOS: the start group then leaves room for the window buttons.\n */\n@Component({\n selector: 'hx-app-toolbar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hx-app-toolbar',\n '[class.hx-app-toolbar-inset]': 'windowButtonsInset()',\n 'data-tauri-drag-region': '',\n },\n templateUrl: './app-toolbar.html',\n})\nexport class HxAppToolbar {\n /** Reserve room at the start for the macOS window buttons (a hidden title bar). */\n readonly windowButtonsInset = input(false, { transform: booleanAttribute });\n}\n","<div class=\"hx-app-toolbar-start\"><ng-content select=\"[slot=start]\" /></div>\n<div class=\"hx-app-toolbar-centre\" data-tauri-drag-region>\n <ng-content select=\"[slot=centre]\" />\n</div>\n<div class=\"hx-app-toolbar-end\"><ng-content select=\"[slot=end]\" /></div>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n output,\n type TemplateRef,\n} from '@angular/core';\nimport type { HxActivityBarItem } from '../activity-bar/activity-bar';\n\n/** The most items a bottom bar shows; more do not fit a phone. */\nexport const HX_BOTTOM_BAR_MAX_ITEMS = 5;\n\n/** An item of the bottom bar: the same shape as an activity bar item. */\nexport type HxBottomBarItem = HxActivityBarItem;\n\n/**\n * The tab bar at the bottom of the mobile shell: up to five views or actions, each a touch target of at\n * least 44 pt. It has no tooltips. The bottom safe area (home indicator) is part of its padding.\n *\n * ```html\n * <hx-bottom-bar [items]=\"items\" [activeId]=\"activeId()\" (selected)=\"select($event)\" />\n * ```\n */\n@Component({\n selector: 'hx-bottom-bar',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-bottom-bar', role: 'toolbar', '[attr.aria-label]': 'label()' },\n templateUrl: './bottom-bar.html',\n})\nexport class HxBottomBar {\n /** The views and actions; only the first five are shown. */\n readonly items = input.required<readonly HxBottomBarItem[]>();\n readonly activeId = input<string | null>(null);\n readonly label = input('Views');\n\n /** Emits the id of the selected view or the activated action. */\n readonly selected = output<string>();\n\n protected readonly visible = computed(() => this.items().slice(0, HX_BOTTOM_BAR_MAX_ITEMS));\n\n protected isActive(item: HxBottomBarItem): boolean {\n return item.kind !== 'action' && item.id === this.activeId();\n }\n\n protected asTemplate(icon: HxBottomBarItem['icon']): TemplateRef<unknown> | null {\n return typeof icon === 'string' ? null : icon;\n }\n}\n","@for (item of visible(); track item.id) {\n <button\n type=\"button\"\n class=\"hx-bottom-bar-item\"\n [class.hx-bottom-bar-active]=\"isActive(item)\"\n [attr.data-id]=\"item.id\"\n [attr.aria-label]=\"item.label\"\n [attr.aria-pressed]=\"item.kind === 'action' ? null : isActive(item)\"\n (click)=\"selected.emit(item.id)\"\n >\n <span class=\"hx-bottom-bar-icon\" aria-hidden=\"true\">\n @if (asTemplate(item.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"item.icon\"></span>\n }\n </span>\n <span class=\"hx-bottom-bar-label\">{{ item.label }}</span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"hx-bottom-bar-badge\" [class.hx-bottom-bar-badge-dot]=\"item.badge === true\">{{\n item.badge === true ? '' : item.badge\n }}</span>\n }\n </button>\n}\n","import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\nimport { HxDrawer } from '@gravionlabs/helix-ui';\nimport { HxBottomBar, type HxBottomBarItem } from './bottom-bar';\n\n/** A horizontal swipe toward the edge of the drawer closes it from this distance (px). */\nconst SWIPE_DISTANCE = 48;\n\n/**\n * The layout of a phone app: a top bar with the menu button, the content, a bottom bar, and a drawer for\n * the sidebar views. It has no status bar and no hover tooltips. The notch, the home indicator and the\n * keyboard are kept clear with `env(safe-area-inset-*)`.\n *\n * ```html\n * <hx-mobile-shell #shell [items]=\"items\" [(activeId)]=\"viewId\" [(drawerOpen)]=\"drawer\" heading=\"Helix\">\n * <nav slot=\"drawer\"><button (click)=\"shell.chooseView('files')\">Files</button></nav>\n * ...the view of activeId...\n * </hx-mobile-shell>\n * ```\n *\n * Choose it by platform: `@if (platform === 'mobile') { <hx-mobile-shell> } @else { <hx-app-shell> }`\n * (`getHxPlatform()`), never by the window width. The drawer closes on a tap outside, on a swipe toward its\n * edge, on Escape and after `chooseView`. Set `<meta name=\"viewport\" content=\"..., viewport-fit=cover,\n * interactive-widget=resizes-content\">` so the safe-area insets and the keyboard work.\n */\n@Component({\n selector: 'hx-mobile-shell',\n imports: [HxBottomBar, HxDrawer],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-mobile-shell' },\n templateUrl: './mobile-shell.html',\n})\nexport class HxMobileShell {\n /** The views and actions of the bottom bar (at most five are shown). */\n readonly items = input.required<readonly HxBottomBarItem[]>();\n /** The id of the active view (two-way). */\n readonly activeId = model<string | null>(null);\n /** Whether the drawer is open (two-way). */\n readonly drawerOpen = model(false);\n readonly heading = input('');\n readonly menuLabel = input('Menu');\n readonly closeLabel = input('Close');\n readonly barLabel = input('Views');\n\n private touchX: number | null = null;\n\n /** Make a view active and close the drawer: call it when a sidebar view was chosen. */\n chooseView(id: string): void {\n this.activeId.set(id);\n this.drawerOpen.set(false);\n }\n\n protected onBarSelect(id: string): void {\n if (this.items().find((i) => i.id === id)?.kind !== 'action') this.activeId.set(id);\n this.drawerOpen.set(false);\n }\n\n protected onTouchStart(event: TouchEvent): void {\n this.touchX = event.changedTouches[0]?.clientX ?? null;\n }\n\n protected onTouchEnd(event: TouchEvent): void {\n const start = this.touchX;\n this.touchX = null;\n const end = event.changedTouches[0]?.clientX;\n if (start === null || end === undefined) return;\n const rtl = getComputedStyle(event.target as HTMLElement).direction === 'rtl';\n const delta = end - start;\n if (rtl ? delta >= SWIPE_DISTANCE : delta <= -SWIPE_DISTANCE) this.drawerOpen.set(false);\n }\n}\n","<header class=\"hx-mobile-shell-bar\">\n <button\n type=\"button\"\n class=\"hx-mobile-shell-menu\"\n [attr.aria-label]=\"menuLabel()\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"drawerOpen()\"\n (click)=\"drawerOpen.set(true)\"\n >\n <span aria-hidden=\"true\">☰</span>\n </button>\n <span class=\"hx-mobile-shell-title\">{{ heading() }}</span>\n <ng-content select=\"[slot=end]\" />\n</header>\n<main class=\"hx-mobile-shell-content\"><ng-content /></main>\n<hx-bottom-bar\n [items]=\"items()\"\n [activeId]=\"activeId()\"\n [label]=\"barLabel()\"\n (selected)=\"onBarSelect($event)\"\n/>\n<hx-drawer\n [(visible)]=\"drawerOpen\"\n position=\"left\"\n [ariaLabel]=\"menuLabel()\"\n [closeLabel]=\"closeLabel()\"\n width=\"min(20rem, 85vw)\"\n panelClass=\"hx-mobile-shell-drawer\"\n>\n <div\n class=\"hx-mobile-shell-drawer-body\"\n (touchstart)=\"onTouchStart($event)\"\n (touchend)=\"onTouchEnd($event)\"\n >\n <ng-content select=\"[slot=drawer]\" />\n </div>\n</hx-drawer>\n","/** The operating system a Tauri app runs on, or `web` outside Tauri. */\nexport type HxOs = 'macos' | 'windows' | 'linux' | 'ios' | 'android' | 'web';\n\n/**\n * The platform an app runs on (ADR 0005): decides the shell, not the viewport width. `data-platform`\n * holds an {@link HxOs} (set by `providePlatform()` of the tauri entry) or the coarse `desktop` / `mobile`.\n */\nexport type HxPlatform = 'desktop' | 'mobile' | HxOs;\n\nconst PLATFORMS: readonly HxPlatform[] = [\n 'desktop',\n 'mobile',\n 'macos',\n 'windows',\n 'linux',\n 'ios',\n 'android',\n 'web',\n];\n\n/** The shell kind of a platform: `mobile` for ios, android and mobile, `web` for web, else `desktop`. */\nexport function getHxPlatformKind(platform: HxPlatform): 'desktop' | 'mobile' | 'web' {\n if (platform === 'ios' || platform === 'android' || platform === 'mobile') return 'mobile';\n return platform === 'web' ? 'web' : 'desktop';\n}\n\n/** Read `data-platform` of the root element; `web` when it is absent or unknown. */\nexport function getHxPlatform(root: HTMLElement = document.documentElement): HxPlatform {\n const value = root.getAttribute('data-platform') as HxPlatform | null;\n return value && PLATFORMS.includes(value) ? value : 'web';\n}\n\n/** Set `data-platform` on the root element, before the first render. */\nexport function setHxPlatform(\n platform: HxPlatform,\n root: HTMLElement = document.documentElement,\n): void {\n root.setAttribute('data-platform', platform);\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * The bottom bar of a desktop app: a start group at the left and an end group at the right.\n *\n * ```html\n * <hx-status-bar>\n * <hx-status-item slot=\"start\">Ready</hx-status-item>\n * <hx-status-version slot=\"end\" version=\"1.4.0\" channel=\"RC\" />\n * </hx-status-bar>\n * ```\n *\n * A conditional group of items needs one root node that carries the slot, because content projection\n * selects by attribute and an `@if` with several root nodes projects nothing (NG8011):\n *\n * ```html\n * @if (active()) {\n * <ng-container ngProjectAs=\"[slot=end]\">\n * <hx-status-item>Input</hx-status-item>\n * <hx-status-item>119×46</hx-status-item>\n * </ng-container>\n * }\n * ```\n *\n * Project items with `slot=\"start\"` or `slot=\"end\"`. The bar has no role of its own: only an item that\n * announces a change sets `role=\"status\"` (see `HxStatusItem`).\n */\n@Component({\n selector: 'hx-status-bar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-status-bar' },\n templateUrl: './status-bar.html',\n})\nexport class HxStatusBar {}\n","<div class=\"hx-status-group hx-status-start\"><ng-content select=\"[slot=start]\" /></div>\n<div class=\"hx-status-group hx-status-end\"><ng-content select=\"[slot=end]\" /></div>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n output,\n} from '@angular/core';\n\n/** Marks the content of a status item that opens as a popover above the bar. */\n@Directive({ selector: '[hxStatusPopover]' })\nexport class HxStatusPopover {}\n\n/** The tone of a status item. */\nexport type HxStatusTone = 'neutral' | 'warn' | 'error' | 'accent';\n\n/**\n * One item of the status bar, as text or as a button.\n *\n * ```html\n * <hx-status-item kind=\"button\" title=\"Update available\" ariaLabel=\"Update details\" tone=\"accent\"\n * [(popoverOpen)]=\"open\">\n * Update 1.5.0\n * <div hxStatusPopover>Release notes ...</div>\n * </hx-status-item>\n * ```\n *\n * - `kind`: `'text'` (default) or `'button'`.\n * - `pressed`: emits when a button item is activated (click, Enter or Space). Not for a disabled item, a text\n * item or a click inside the popover.\n * - `announce`: sets `role=\"status\"` on the item, for a value that changes while the user works (a sync\n * state). The bar itself is not a live region.\n * - An element with `hxStatusPopover` inside the item is a popover above the bar, shown while\n * `popoverOpen` is true. Escape and a click outside close it. Give a popover item `kind=\"button\"`.\n */\n@Component({\n selector: 'hx-status-item',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hx-status-item',\n '[class.hx-status-warn]': \"tone() === 'warn'\",\n '[class.hx-status-error]': \"tone() === 'error'\",\n '[class.hx-status-accent]': \"tone() === 'accent'\",\n '[attr.title]': 'null',\n '[attr.role]': \"announce() ? 'status' : null\",\n '(document:keydown.escape)': 'close()',\n '(document:click)': 'onDocumentClick($event)',\n },\n templateUrl: './status-item.html',\n})\nexport class HxStatusItem {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Text or button. */\n readonly kind = input<'text' | 'button'>('text');\n /** The tooltip. */\n readonly title = input<string | null>(null);\n /** The accessible name, when the visible text is not enough. */\n readonly ariaLabel = input<string | null>(null);\n readonly disabled = input(false);\n readonly tone = input<HxStatusTone>('neutral');\n /** Marks the item as a live region (`role=\"status\"`). */\n readonly announce = input(false);\n /** Whether the popover is open. */\n readonly popoverOpen = model(false);\n /** Emits when a button item is activated by click, Enter or Space. */\n readonly pressed = output<void>();\n\n private readonly popover = contentChild(HxStatusPopover);\n\n protected get hasPopover(): boolean {\n return this.popover() !== undefined;\n }\n\n protected onButtonClick(): void {\n if (this.hasPopover) this.popoverOpen.update((open) => !open);\n this.pressed.emit();\n }\n\n protected close(): void {\n if (this.popoverOpen()) this.popoverOpen.set(false);\n }\n\n protected onDocumentClick(event: Event): void {\n if (this.popoverOpen() && !this.host.nativeElement.contains(event.target as Node)) {\n this.popoverOpen.set(false);\n }\n }\n}\n","@if (kind() === 'button') {\n <button\n type=\"button\"\n class=\"hx-status-control\"\n [attr.title]=\"title()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"hasPopover ? 'dialog' : null\"\n [attr.aria-expanded]=\"hasPopover ? popoverOpen() : null\"\n [disabled]=\"disabled()\"\n (click)=\"onButtonClick()\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n} @else {\n <span class=\"hx-status-control\" [attr.title]=\"title()\" [attr.aria-label]=\"ariaLabel()\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n<ng-template #content><ng-content /></ng-template>\n@if (popoverOpen()) {\n <div class=\"hx-status-popover\"><ng-content select=\"[hxStatusPopover]\" /></div>\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/** The app version with an optional channel badge (`RC`). */\n@Component({\n selector: 'hx-status-version',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-status-version' },\n templateUrl: './status-version.html',\n})\nexport class HxStatusVersion {\n readonly version = input.required<string>();\n /** A channel badge such as `RC` or `beta`; none for a stable release. */\n readonly channel = input<string | null>(null);\n}\n","<span class=\"hx-status-control hx-status-version-text\">v{{ version() }}</span>\n@if (channel()) {\n <span class=\"hx-status-channel\">{{ channel() }}</span>\n}\n","import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\n\n/**\n * Zoom out, the level in percent (a click resets to `reset`), zoom in.\n *\n * ```html\n * <hx-status-zoom slot=\"end\" [(value)]=\"zoom\" [min]=\"50\" [max]=\"200\" />\n * ```\n *\n * `value` is a percentage and changes in steps of `step`, kept between `min` and `max`.\n */\n@Component({\n selector: 'hx-status-zoom',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hx-status-zoom' },\n templateUrl: './status-zoom.html',\n})\nexport class HxStatusZoom {\n /** The zoom level in percent. */\n readonly value = model(100);\n readonly min = input(50);\n readonly max = input(200);\n readonly step = input(10);\n /** The level a click on the percentage resets to. */\n readonly reset = input(100);\n\n protected change(delta: number): void {\n this.set(this.value() + delta);\n }\n\n protected set(next: number): void {\n const clamped = Math.min(this.max(), Math.max(this.min(), next));\n if (clamped !== this.value()) this.value.set(clamped);\n }\n}\n","<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-out\"\n title=\"Zoom out\"\n aria-label=\"Zoom out\"\n [disabled]=\"value() <= min()\"\n (click)=\"change(-step())\"\n>\n −\n</button>\n<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-level\"\n title=\"Reset zoom\"\n [attr.aria-label]=\"'Reset zoom, ' + value() + ' percent'\"\n (click)=\"set(reset())\"\n>\n {{ value() }}%\n</button>\n<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-in\"\n title=\"Zoom in\"\n aria-label=\"Zoom in\"\n [disabled]=\"value() >= max()\"\n (click)=\"change(step())\"\n>\n +\n</button>\n","/*\n * Public API Surface of @gravionlabs/helix-desktop\n *\n * The desktop frame (ADR 0005). This entry imports nothing from `@tauri-apps/*`; the Tauri bindings are in\n * the secondary entry point `@gravionlabs/helix-desktop/tauri`.\n */\n\nexport const HELIX_DESKTOP_VERSION = '0.1.0';\n\nexport * from './lib/activity-bar/activity-bar';\nexport * from './lib/app-shell/app-shell';\nexport * from './lib/app-shell/app-toolbar';\nexport * from './lib/mobile-shell/bottom-bar';\nexport * from './lib/mobile-shell/mobile-shell';\nexport * from './lib/platform';\nexport * from './lib/status-bar/status-bar';\nexport * from './lib/status-bar/status-item';\nexport * from './lib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;CAAY,YAAA,CAAA;EANxB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAgB,iBACT,wBAAwB;GAAM,MACzC,EAAE,OAAO,iBAAgB;GAAE,UAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEPnC,MAAa,wBAAwB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravionlabs/helix-desktop",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.7.0",
|
|
4
4
|
"description": "Helix desktop frame for Angular: activity bar, views, status bar and the platform switch. Tauri bindings in the optional /tauri entry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
package/styles.css
CHANGED
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
cursor: default;
|
|
146
146
|
}
|
|
147
147
|
.hx-status-warn {
|
|
148
|
-
color: var(--h-warn-color,
|
|
148
|
+
color: var(--h-warn-color, var(--h-orange-700));
|
|
149
149
|
}
|
|
150
150
|
.hx-status-error {
|
|
151
|
-
color: var(--h-error-color,
|
|
151
|
+
color: var(--h-error-color, var(--h-red-700));
|
|
152
152
|
}
|
|
153
153
|
.hx-status-accent {
|
|
154
154
|
color: var(--h-primary-color);
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
border-radius: 6px;
|
|
172
172
|
background: var(--h-content-background, var(--h-surface-frame));
|
|
173
173
|
color: var(--h-text-color);
|
|
174
|
-
box-shadow: 0 4px 16px
|
|
174
|
+
box-shadow: 0 4px 16px color-mix(in srgb, black 20%, transparent);
|
|
175
175
|
z-index: 10;
|
|
176
176
|
}
|
|
177
177
|
|
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
.hx-app-shell-body > .hx-activity-bar,
|
|
201
201
|
.hx-app-shell-sidebar,
|
|
202
202
|
.hx-app-shell-content,
|
|
203
|
+
.hx-app-shell-bottom,
|
|
203
204
|
.hx-app-shell-body > [slot="panel"] {
|
|
204
205
|
box-sizing: border-box;
|
|
205
206
|
border: 1px solid var(--h-content-border-color);
|
|
@@ -239,6 +240,30 @@
|
|
|
239
240
|
background: var(--h-primary-color);
|
|
240
241
|
outline: none;
|
|
241
242
|
}
|
|
243
|
+
.hx-app-shell-resizer-bottom {
|
|
244
|
+
width: auto;
|
|
245
|
+
height: var(--hx-panel-gap);
|
|
246
|
+
cursor: row-resize;
|
|
247
|
+
}
|
|
248
|
+
.hx-app-shell-resizer-bottom::before {
|
|
249
|
+
inset-block: -3px;
|
|
250
|
+
inset-inline: 0;
|
|
251
|
+
}
|
|
252
|
+
.hx-app-shell-main {
|
|
253
|
+
flex: 1;
|
|
254
|
+
display: flex;
|
|
255
|
+
flex-direction: column;
|
|
256
|
+
min-width: 0;
|
|
257
|
+
min-height: 0;
|
|
258
|
+
}
|
|
259
|
+
.hx-app-shell-bottom {
|
|
260
|
+
flex: none;
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
}
|
|
264
|
+
.hx-app-shell-bottom[hidden] {
|
|
265
|
+
display: none;
|
|
266
|
+
}
|
|
242
267
|
.hx-app-shell-content {
|
|
243
268
|
flex: 1;
|
|
244
269
|
min-width: 0;
|
|
@@ -292,8 +317,7 @@
|
|
|
292
317
|
height: 100%;
|
|
293
318
|
min-height: 0;
|
|
294
319
|
box-sizing: border-box;
|
|
295
|
-
padding-inline: env(safe-area-inset-left,
|
|
296
|
-
env(safe-area-inset-right, 0px);
|
|
320
|
+
padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
|
|
297
321
|
background: var(--h-surface-frame);
|
|
298
322
|
color: var(--h-text-color);
|
|
299
323
|
}
|
|
@@ -304,7 +328,7 @@
|
|
|
304
328
|
flex: none;
|
|
305
329
|
box-sizing: border-box;
|
|
306
330
|
min-height: calc(44px + env(safe-area-inset-top, 0px));
|
|
307
|
-
padding-top: env(safe-area-inset-top,
|
|
331
|
+
padding-top: env(safe-area-inset-top, 0);
|
|
308
332
|
border-block-end: 1px solid var(--h-content-border-color);
|
|
309
333
|
}
|
|
310
334
|
.hx-mobile-shell-menu {
|
|
@@ -334,12 +358,11 @@
|
|
|
334
358
|
overscroll-behavior: contain;
|
|
335
359
|
background: var(--h-content-background, var(--h-surface-frame));
|
|
336
360
|
/* The keyboard overlays the page where the browser does not resize it. */
|
|
337
|
-
padding-block-end: env(keyboard-inset-height,
|
|
361
|
+
padding-block-end: env(keyboard-inset-height, 0);
|
|
338
362
|
}
|
|
339
363
|
.hx-mobile-shell-drawer {
|
|
340
|
-
padding-block: env(safe-area-inset-top,
|
|
341
|
-
|
|
342
|
-
padding-inline-start: env(safe-area-inset-left, 0px);
|
|
364
|
+
padding-block: env(safe-area-inset-top, 0) env(safe-area-inset-bottom, 0);
|
|
365
|
+
padding-inline-start: env(safe-area-inset-left, 0);
|
|
343
366
|
box-sizing: border-box;
|
|
344
367
|
}
|
|
345
368
|
.hx-mobile-shell-drawer-body {
|
|
@@ -358,7 +381,7 @@
|
|
|
358
381
|
display: flex;
|
|
359
382
|
flex: none;
|
|
360
383
|
box-sizing: border-box;
|
|
361
|
-
padding-block-end: env(safe-area-inset-bottom,
|
|
384
|
+
padding-block-end: env(safe-area-inset-bottom, 0);
|
|
362
385
|
background: var(--h-surface-frame);
|
|
363
386
|
border-block-start: 1px solid var(--h-content-border-color);
|
|
364
387
|
}
|
|
@@ -41,8 +41,11 @@ export interface HxUpdateInfo {
|
|
|
41
41
|
export interface HxUpdateBackend {
|
|
42
42
|
/** `null` when the app is current. */
|
|
43
43
|
check(): Promise<HxUpdateInfo | null>;
|
|
44
|
-
/**
|
|
45
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Download and install the update found by the last `check()`. `onProgress` gets the percent (0 to 100)
|
|
46
|
+
* while it downloads, or `null` when the size is unknown.
|
|
47
|
+
*/
|
|
48
|
+
install(onProgress?: (percent: number | null) => void): Promise<void>;
|
|
46
49
|
/** Restart into the new version. */
|
|
47
50
|
relaunch(): Promise<void>;
|
|
48
51
|
}
|
|
@@ -68,6 +71,8 @@ export type HxUpdateState = {
|
|
|
68
71
|
} | {
|
|
69
72
|
readonly status: 'installing';
|
|
70
73
|
readonly update: HxUpdateInfo;
|
|
74
|
+
/** The download progress, 0 to 100; `null` while the size is unknown. */
|
|
75
|
+
readonly percent: number | null;
|
|
71
76
|
} | {
|
|
72
77
|
readonly status: 'error';
|
|
73
78
|
readonly step: HxUpdateStep;
|
|
@@ -75,23 +80,46 @@ export type HxUpdateState = {
|
|
|
75
80
|
};
|
|
76
81
|
/** The backend of the update service; override it in tests. */
|
|
77
82
|
export declare const HX_UPDATE_BACKEND: InjectionToken<HxUpdateBackend>;
|
|
83
|
+
/**
|
|
84
|
+
* A hook that runs after the state is `installing` and before the install, for example to save the open
|
|
85
|
+
* document. When it throws, the state is `error` (step `install`) and the update stays available for a retry.
|
|
86
|
+
*/
|
|
87
|
+
export type HxUpdateBeforeInstall = (update: HxUpdateInfo) => void | Promise<void>;
|
|
88
|
+
/** The hook before the install; `null` (the default) means none. */
|
|
89
|
+
export declare const HX_UPDATE_BEFORE_INSTALL: InjectionToken<HxUpdateBeforeInstall | null>;
|
|
90
|
+
/** How long a manual check shows "Up to date", in milliseconds. */
|
|
91
|
+
export declare const HX_UPDATE_CURRENT_MS = 3000;
|
|
78
92
|
/**
|
|
79
93
|
* The update state machine: idle, checking, current, available, installing, error (with the failed step).
|
|
80
94
|
* An RC build never checks by itself: `start()` does nothing there, `check()` still works on request.
|
|
81
95
|
*/
|
|
82
96
|
export declare class HxUpdateService {
|
|
83
97
|
private readonly backend;
|
|
98
|
+
private readonly beforeInstall;
|
|
84
99
|
private readonly info;
|
|
100
|
+
private readonly _currentShown;
|
|
101
|
+
private retryUpdate;
|
|
102
|
+
private currentTimer;
|
|
85
103
|
private readonly _state;
|
|
86
104
|
readonly state: import("@angular/core").Signal<HxUpdateState>;
|
|
105
|
+
/** True while a manual check shows its "up to date" result. */
|
|
106
|
+
readonly currentShown: import("@angular/core").Signal<boolean>;
|
|
87
107
|
readonly version: string;
|
|
88
108
|
readonly channel: import("@gravionlabs/helix-desktop/tauri").HxChannel;
|
|
89
109
|
/** The found update, while available or installing. */
|
|
90
110
|
readonly update: import("@angular/core").Signal<HxUpdateInfo | null>;
|
|
91
111
|
/** The automatic check at startup; skipped for an RC build. */
|
|
92
112
|
start(): Promise<void>;
|
|
93
|
-
|
|
94
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Check for an update. With `manual: true` a result of "current" stays visible for a moment
|
|
115
|
+
* (`HX_UPDATE_CURRENT_MS`), then the state goes back to `idle`.
|
|
116
|
+
*/
|
|
117
|
+
check(options?: {
|
|
118
|
+
readonly manual?: boolean;
|
|
119
|
+
}): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Download, install and restart. Also the retry after a failed install step: the update stays available.
|
|
122
|
+
*/
|
|
95
123
|
installAndRestart(): Promise<void>;
|
|
96
124
|
private fail;
|
|
97
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<HxUpdateService, never>;
|
|
@@ -99,7 +127,9 @@ export declare class HxUpdateService {
|
|
|
99
127
|
}
|
|
100
128
|
/**
|
|
101
129
|
* The update state as a status item; the version, the notes and "Install and restart" are in its popover.
|
|
102
|
-
* Not rendered on mobile and while there is nothing to show (idle, current)
|
|
130
|
+
* Not rendered on mobile and while there is nothing to show (idle, current), unless `alwaysVisible` is set:
|
|
131
|
+
* then it shows "Check for updates" and a click runs a manual check, whose result "Up to date" stays visible
|
|
132
|
+
* for a moment. While installing it shows the download percent.
|
|
103
133
|
*/
|
|
104
134
|
export declare class HxStatusUpdate {
|
|
105
135
|
protected readonly service: HxUpdateService;
|
|
@@ -110,9 +140,18 @@ export declare class HxStatusUpdate {
|
|
|
110
140
|
readonly errorLabel: import("@angular/core").InputSignal<string>;
|
|
111
141
|
readonly installLabel: import("@angular/core").InputSignal<string>;
|
|
112
142
|
readonly retryLabel: import("@angular/core").InputSignal<string>;
|
|
143
|
+
readonly checkLabel: import("@angular/core").InputSignal<string>;
|
|
144
|
+
readonly upToDateLabel: import("@angular/core").InputSignal<string>;
|
|
145
|
+
/** Show the item in `idle` and `current` too, as "Check for updates"; a click runs a manual check. */
|
|
146
|
+
readonly alwaysVisible: import("@angular/core").InputSignal<boolean>;
|
|
113
147
|
protected readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
114
148
|
protected readonly state: import("@angular/core").Signal<import("@gravionlabs/helix-desktop/tauri").HxUpdateState>;
|
|
115
149
|
protected readonly visible: import("@angular/core").Signal<boolean>;
|
|
150
|
+
/** An item that only starts a check (idle, current): no popover. */
|
|
151
|
+
protected readonly checkOnly: import("@angular/core").Signal<boolean>;
|
|
152
|
+
protected checkNow(): void;
|
|
153
|
+
/** A failed install step retries the install, any other error the check. */
|
|
154
|
+
protected retry(): void;
|
|
116
155
|
protected readonly label: import("@angular/core").Signal<string>;
|
|
117
156
|
protected readonly tone: import("@angular/core").Signal<HxStatusTone>;
|
|
118
157
|
protected readonly errorText: import("@angular/core").Signal<string>;
|
|
@@ -148,6 +187,21 @@ export declare class HxStatusUpdate {
|
|
|
148
187
|
"required": false;
|
|
149
188
|
"isSignal": true;
|
|
150
189
|
};
|
|
190
|
+
"checkLabel": {
|
|
191
|
+
"alias": "checkLabel";
|
|
192
|
+
"required": false;
|
|
193
|
+
"isSignal": true;
|
|
194
|
+
};
|
|
195
|
+
"upToDateLabel": {
|
|
196
|
+
"alias": "upToDateLabel";
|
|
197
|
+
"required": false;
|
|
198
|
+
"isSignal": true;
|
|
199
|
+
};
|
|
200
|
+
"alwaysVisible": {
|
|
201
|
+
"alias": "alwaysVisible";
|
|
202
|
+
"required": false;
|
|
203
|
+
"isSignal": true;
|
|
204
|
+
};
|
|
151
205
|
}, {}, never, never, true, never>;
|
|
152
206
|
}
|
|
153
207
|
export declare const HELIX_DESKTOP_TAURI = true;
|