@gravionlabs/helix-app 0.0.1 → 22.20.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gravionlabs-helix-app.mjs","names":[],"sources":["../../../projects/app/src/lib/platform.ts","../../../projects/app/src/lib/settings/settings-match.ts","../../../projects/app/src/lib/settings/settings-registry.ts","../../../projects/app/src/lib/settings/provide-settings.ts","../../../projects/app/src/lib/settings/settings-section.ts","../../../projects/app/src/lib/settings/settings-section.html","../../../projects/app/src/lib/settings/settings-view.ts","../../../projects/app/src/lib/settings/settings-view.html","../../../projects/app/src/lib/view.ts","../../../projects/app/src/lib/window.ts","../../../projects/app/src/public-api.ts"],"sourcesContent":["/** 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","/* The text matching of the settings search, shared by the registry filter and the row highlight. */\n\n/** The lower-case words of a search query. */\nexport function searchWords(query: string): readonly string[] {\n return query.toLowerCase().split(/\\s+/).filter(Boolean);\n}\n\n/** The texts as one lower-case string to look for words in. */\nexport function searchText(texts: readonly (string | undefined)[]): string {\n return texts.join(' ').toLowerCase();\n}\n","import { computed, Injectable, signal, untracked, type WritableSignal } from '@angular/core';\nimport type {\n HxSettingsGroup,\n HxSettingsGroupWithPages,\n HxSettingsPage,\n HxSettingsSection,\n} from './settings-model';\nimport { searchText, searchWords } from './settings-match';\n\n/** The id of the shared group \"Appearance & Behavior\", listed first. */\nexport const HX_SETTINGS_GROUP_APPEARANCE = 'appearance-behavior';\n\n/** The id of the shared group \"General\", listed last. */\nexport const HX_SETTINGS_GROUP_GENERAL = 'general';\n\nconst DEFAULT_ORDER = 100;\n\nconst SHARED_GROUPS: readonly HxSettingsGroup[] = [\n { id: HX_SETTINGS_GROUP_APPEARANCE, title: 'Appearance & Behavior', order: 0 },\n { id: HX_SETTINGS_GROUP_GENERAL, title: 'General', order: 1000 },\n];\n\n/**\n * The settings of the app (ADR 0014). The shared groups are registered from the start; apps and features\n * register their own groups and pages.\n */\n@Injectable({ providedIn: 'root' })\nexport class HxSettingsRegistry {\n private readonly registeredGroups = signal<readonly HxSettingsGroup[]>(SHARED_GROUPS);\n private readonly registeredPages = signal<readonly HxSettingsPage[]>([]);\n private readonly retired = signal<ReadonlyMap<string, string>>(new Map());\n\n /** Every group with its pages, each sorted by order, then title. */\n readonly groups = computed<readonly HxSettingsGroupWithPages[]>(() => {\n const pages = [...this.registeredPages()].sort(compareEntries);\n return [...this.registeredGroups()]\n .sort(compareEntries)\n .map((group) => ({ ...group, pages: pages.filter((page) => page.group === group.id) }));\n });\n\n /**\n * Registers a group, replacing one with the same id; its pages stay. Returns a function that removes this\n * registration. The pages of a removed group are not listed until the group is registered again.\n */\n registerGroup(group: HxSettingsGroup): () => void {\n return register(this.registeredGroups, group);\n }\n\n /**\n * Registers a page, replacing one with the same id. Returns a function that removes this registration.\n * Throws when the group of the page is not registered.\n */\n registerPage(page: HxSettingsPage): () => void {\n // Untracked: a registration from inside an effect must not depend on what it writes.\n if (!untracked(this.registeredGroups).some((group) => group.id === page.group)) {\n throw new Error(\n `HxSettingsRegistry: page \"${page.id}\" names the unregistered group \"${page.group}\".`,\n );\n }\n return register(this.registeredPages, page);\n }\n\n /** Maps a retired page id to its replacement, so a persisted id or an old deep link still opens a page. */\n retire(oldId: string, newId: string): void {\n this.retired.update((map) => new Map(map).set(oldId, newId));\n }\n\n /**\n * The page to show for `pageId`: retired ids are followed; an unknown id gives the first listed page.\n * `undefined` only while no page is registered.\n */\n resolve(pageId: string): HxSettingsPage | undefined {\n const retired = this.retired();\n const seen = new Set<string>();\n let id = pageId;\n while (retired.has(id) && !seen.has(id)) {\n seen.add(id);\n id = retired.get(id)!;\n }\n const pages = this.groups().flatMap((group) => group.pages);\n return pages.find((page) => page.id === id) ?? pages[0];\n }\n}\n\n/**\n * The groups, pages, sections and items that match `query`. Every word has to appear, ignoring case, in the\n * group title, page title, section title, item label, description or keywords. A page whose title matches\n * keeps all its items. An empty query keeps everything.\n */\nexport function hxFilterSettings(\n groups: readonly HxSettingsGroupWithPages[],\n query: string,\n): readonly HxSettingsGroupWithPages[] {\n const words = searchWords(query);\n if (words.length === 0) return groups;\n\n const matches = (...texts: readonly (string | undefined)[]): boolean => {\n const haystack = searchText(texts);\n return words.every((word) => haystack.includes(word));\n };\n\n return groups.flatMap((group) => {\n const pages = group.pages.flatMap((page): HxSettingsPage[] => {\n if (matches(page.title)) return [page];\n const sections = page.sections().flatMap((section): HxSettingsSection[] => {\n const items = section.items.filter((item) =>\n matches(\n group.title,\n page.title,\n section.title,\n item.label,\n item.description,\n ...(item.keywords ?? []),\n ),\n );\n return items.length ? [{ ...section, items }] : [];\n });\n return sections.length ? [{ ...page, sections: () => sections }] : [];\n });\n return pages.length ? [{ ...group, pages }] : [];\n });\n}\n\ninterface Entry {\n readonly id: string;\n readonly title: string;\n readonly order?: number;\n}\n\nfunction compareEntries(a: Entry, b: Entry): number {\n return (a.order ?? DEFAULT_ORDER) - (b.order ?? DEFAULT_ORDER) || a.title.localeCompare(b.title);\n}\n\nfunction register<T extends Entry>(list: WritableSignal<readonly T[]>, entry: T): () => void {\n list.update((entries) => [...entries.filter((e) => e.id !== entry.id), entry]);\n // By identity: a stale unregister function does not remove the entry that replaced this one.\n return () => list.update((entries) => entries.filter((e) => e !== entry));\n}\n","import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n computed,\n DestroyRef,\n type EnvironmentProviders,\n effect,\n inject,\n makeEnvironmentProviders,\n PLATFORM_ID,\n provideEnvironmentInitializer,\n signal,\n untracked,\n} from '@angular/core';\nimport { HX_THEME_OPTIONS, type HxColorMode, type HxDensity, HxTheme } from '@gravionlabs/helix-ui';\nimport type { HxSettingItem, HxSettingsSection } from './settings-model';\nimport { HX_SETTINGS_GROUP_APPEARANCE, HxSettingsRegistry } from './settings-registry';\n\n/** The id of the page \"Appearance\" in the group \"Appearance & Behavior\". */\nexport const HX_SETTINGS_PAGE_APPEARANCE = 'appearance';\n\nconst FONT_SIZE_MIN = 10;\nconst FONT_SIZE_MAX = 24;\n/** The root font sizes of the densities (docs/THEMING.md), shown while no size is chosen. */\nconst DENSITY_FONT_SIZE: Record<HxDensity, number> = { comfortable: 14, compact: 13 };\nconst FONT_FAMILY_VARIABLE = '--hx-font-family';\n\n/**\n * Where the values of the Appearance page are kept, for an app with a settings file of its own. The getters are\n * signals, so a change from outside (the file is loaded again) updates the page and the theme.\n */\nexport interface HxAppearanceStore {\n readonly mode: () => HxColorMode;\n setMode(mode: HxColorMode): void | Promise<void>;\n /** An empty string: the font of the app. */\n readonly uiFontFamily: () => string;\n setUiFontFamily(family: string): void | Promise<void>;\n /** The root font size in px, applied from 10 to 24. */\n readonly uiFontSize: () => number;\n setUiFontSize(size: number): void | Promise<void>;\n /** `null`: the density of the theme preset. Without `density` and `setDensity` the page has no density item. */\n readonly density?: () => HxDensity | null;\n setDensity?(density: HxDensity): void | Promise<void>;\n}\n\nexport interface HxAppearanceOptions {\n /**\n * Keeps the values instead of `HxTheme`: the page reads and writes only the store, its values are applied to\n * `HxTheme` and the font variables, and nothing is written to `HxTheme`'s `storageKey`.\n */\n readonly store?: HxAppearanceStore;\n /** Sections of the app on the Appearance page, after \"Theme\" and \"Fonts\". Read like `HxSettingsPage.sections`. */\n readonly extraSections?: () => readonly HxSettingsSection[];\n /** `false` hides the density item. */\n readonly density?: boolean;\n}\n\nexport interface HxSettingsOptions {\n readonly appearance?: HxAppearanceOptions;\n /**\n * Where the font settings are remembered (localStorage) without a `store`; by default the `storageKey` of\n * `HxTheme`. Without either, they are not remembered.\n */\n readonly fontStorageKey?: string;\n}\n\n/** The fonts to apply; `size` is `null` while none is chosen. */\ninterface Fonts {\n readonly family: () => string;\n readonly size: () => number | null;\n}\n\n/**\n * Registers the shared settings (ADR 0014): the page \"Appearance\" (theme, density, UI font) in the group\n * \"Appearance & Behavior\". The group \"General\" has no page of its own; apps add pages to it. The remembered\n * values are applied at start-up.\n *\n * ```ts\n * providers: [provideHxTheme({ storageKey: 'my-app-theme' }), provideHxSettings()]\n * ```\n */\nexport function provideHxSettings(options: HxSettingsOptions = {}): EnvironmentProviders {\n return makeEnvironmentProviders([provideEnvironmentInitializer(() => setUp(options))]);\n}\n\nfunction setUp(options: HxSettingsOptions): void {\n const theme = inject(HxTheme);\n const registry = inject(HxSettingsRegistry);\n const appearance = options.appearance ?? {};\n const custom = appearance.store;\n let store: HxAppearanceStore;\n let fonts: Fonts;\n if (custom) {\n store = custom;\n fonts = { family: () => custom.uiFontFamily(), size: () => custom.uiFontSize() };\n theme.stopRemembering();\n applyToTheme(custom, theme);\n } else {\n const key = options.fontStorageKey ?? inject(HX_THEME_OPTIONS).storageKey ?? null;\n ({ store, fonts } = themeStore(theme, key));\n }\n applyFonts(fonts);\n\n const items = appearanceSections(store, theme, appearance.density !== false);\n const unregister = registry.registerPage({\n id: HX_SETTINGS_PAGE_APPEARANCE,\n group: HX_SETTINGS_GROUP_APPEARANCE,\n title: 'Appearance',\n order: 0,\n sections: () => [...items, ...(appearance.extraSections?.() ?? [])],\n });\n inject(DestroyRef).onDestroy(unregister);\n}\n\nfunction appearanceSections(\n store: HxAppearanceStore,\n theme: HxTheme,\n withDensity: boolean,\n): readonly HxSettingsSection[] {\n const themeItems: HxSettingItem[] = [\n {\n id: 'theme',\n kind: 'segmented',\n label: 'Theme',\n keywords: ['color mode', 'dark mode'],\n options: [\n { value: 'light', label: 'Light' },\n { value: 'dark', label: 'Dark' },\n { value: 'system', label: 'System' },\n ],\n get: () => store.mode(),\n set: (value) => store.setMode(value as HxColorMode),\n },\n ];\n if (withDensity && store.density && store.setDensity) {\n themeItems.push({\n id: 'density',\n kind: 'segmented',\n label: 'Density',\n options: [\n { value: 'comfortable', label: 'Comfortable' },\n { value: 'compact', label: 'Compact' },\n ],\n get: () => store.density!() ?? theme.density(),\n set: (value) => store.setDensity!(value as HxDensity),\n });\n }\n return [\n { id: 'theme', title: 'Theme', items: themeItems },\n {\n id: 'fonts',\n title: 'Fonts',\n items: [\n {\n id: 'ui-font-family',\n kind: 'text',\n label: 'UI font family',\n placeholder: 'Default',\n get: () => store.uiFontFamily(),\n set: (value) => store.setUiFontFamily(value),\n },\n {\n id: 'ui-font-size',\n kind: 'number',\n label: 'UI font size',\n min: FONT_SIZE_MIN,\n max: FONT_SIZE_MAX,\n get: () => store.uiFontSize(),\n set: (value) => store.setUiFontSize(value),\n },\n ],\n },\n ];\n}\n\n/** The default store: mode and density are `HxTheme`'s, the fonts are kept under `key`. */\nfunction themeStore(\n theme: HxTheme,\n key: string | null,\n): { store: HxAppearanceStore; fonts: Fonts } {\n const view = inject(DOCUMENT).defaultView;\n const storage = isPlatformBrowser(inject(PLATFORM_ID)) && key ? { key, view } : null;\n\n /** What is under the key, with the values of others (`HxTheme`'s) that have to stay. */\n const read = (): Record<string, unknown> => {\n if (!storage) return {};\n try {\n const value: unknown = JSON.parse(storage.view?.localStorage.getItem(storage.key) ?? 'null');\n return value && typeof value === 'object' ? (value as Record<string, unknown>) : {};\n } catch {\n return {}; // blocked or damaged storage: start from the defaults\n }\n };\n const write = (name: 'uiFontFamily' | 'uiFontSize', value: string | number): void => {\n if (!storage) return;\n try {\n storage.view?.localStorage.setItem(storage.key, JSON.stringify({ ...read(), [name]: value }));\n } catch {\n // storage full or blocked: the choice just does not survive a reload\n }\n };\n\n const saved = read();\n const family = signal(typeof saved['uiFontFamily'] === 'string' ? saved['uiFontFamily'] : '');\n const size = signal(\n typeof saved['uiFontSize'] === 'number' ? clampSize(saved['uiFontSize']) : null,\n );\n const shownSize = computed(() => size() ?? DENSITY_FONT_SIZE[theme.density()]);\n\n return {\n fonts: { family, size },\n store: {\n mode: theme.mode,\n setMode: (mode) => theme.setMode(mode),\n density: theme.density,\n setDensity: (density) => theme.setDensity(density),\n uiFontFamily: family,\n setUiFontFamily: (value) => {\n family.set(value.trim());\n write('uiFontFamily', value.trim());\n },\n uiFontSize: shownSize,\n setUiFontSize: (value) => {\n const next = clampSize(value);\n if (next === null) return;\n size.set(next);\n write('uiFontSize', next);\n },\n },\n };\n}\n\n/**\n * Applies mode and density of a store to the theme. Each has its own `computed`, so only a change of that value\n * is applied: another change in the app's settings file does not undo a `setDark()` of a color scheme.\n */\nfunction applyToTheme(store: HxAppearanceStore, theme: HxTheme): void {\n const mode = computed(() => store.mode());\n effect(() => {\n const value = mode();\n untracked(() => theme.setMode(value));\n });\n if (!store.density) return;\n const density = computed(() => store.density!());\n effect(() => {\n const value = density();\n untracked(() => theme.setDensity(value));\n });\n}\n\n/** Writes the fonts to `<html>` and takes back only what it has written. */\nfunction applyFonts(fonts: Fonts): void {\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const style = inject(DOCUMENT).documentElement.style;\n let sized = false;\n let named = false;\n const setFamily = (family: string) => {\n if (family) style.setProperty(FONT_FAMILY_VARIABLE, family);\n else if (named) style.removeProperty(FONT_FAMILY_VARIABLE);\n named = family !== '';\n };\n const setSize = (size: number | null) => {\n if (size !== null) style.fontSize = `${size}px`;\n else if (sized) style.removeProperty('font-size');\n sized = size !== null;\n };\n const family = computed(() => fonts.family().trim());\n const size = computed(() => {\n const value = fonts.size();\n return value === null ? null : clampSize(value);\n });\n effect(() => setFamily(family()));\n effect(() => setSize(size()));\n inject(DestroyRef).onDestroy(() => {\n setFamily('');\n setSize(null);\n });\n}\n\n/** The size within the allowed range; `null` for what is no size (0, `NaN`). */\nfunction clampSize(size: number): number | null {\n if (!Number.isFinite(size) || size <= 0) return null;\n return Math.min(FONT_SIZE_MAX, Math.max(FONT_SIZE_MIN, size));\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ErrorHandler,\n inject,\n input,\n signal,\n type TemplateRef,\n} from '@angular/core';\nimport {\n HxButton,\n HxField,\n HxInput,\n HxInputNumber,\n HxMessage,\n HxSelect,\n HxSelectButton,\n HxSwitch,\n} from '@gravionlabs/helix-ui';\nimport type {\n HxActionSettingItem,\n HxSettingItem,\n HxSettingsForm,\n HxSettingsSection,\n HxSettingValueItem,\n} from './settings-model';\n\n/**\n * One section of a page of `hx-settings-view`, with its item rows and the state of its form. Internal to the\n * view.\n */\n@Component({\n selector: 'hx-settings-section',\n imports: [\n HxButton,\n HxField,\n HxInput,\n HxInputNumber,\n HxMessage,\n HxSelect,\n HxSelectButton,\n HxSwitch,\n NgTemplateOutlet,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './settings-section.html',\n styleUrl: './settings-section.css',\n})\nexport class HxSettingsSectionView {\n private readonly errorHandler = inject(ErrorHandler);\n\n readonly section = input.required<HxSettingsSection>();\n /** The id for the heading. */\n readonly headingId = input.required<string>();\n /** The ids of the items to highlight. */\n readonly hits = input.required<ReadonlySet<string>>();\n /** Renders every item in place of the rows. */\n readonly itemTemplate = input<TemplateRef<{ $implicit: HxSettingItem }>>();\n\n /** The last error of the form, with the item that caused it (`null`: the save). */\n protected readonly failure = signal<{ source: string | null; message: string } | null>(null);\n protected readonly saving = signal(false);\n /** The number of `set` calls of an item that have not finished. */\n private readonly pending = new Map<string, number>();\n\n /** A switch shows what `get` returns, also when `set` failed or did not take the value. */\n protected async toggle(item: HxSettingValueItem<boolean>, box: HTMLInputElement): Promise<void> {\n await this.set(item, box.checked);\n if (!this.pending.has(item.id)) box.checked = item.get();\n }\n\n /** A text that failed stays in the field, so it can be corrected. */\n protected async enter(item: HxSettingValueItem<string>, field: HTMLInputElement): Promise<void> {\n const saved = await this.set(item, field.value);\n if (saved && !this.pending.has(item.id)) field.value = item.get();\n }\n\n /** The `valueChange` of a select, a select button or a number field. */\n protected async pick<T>(\n item: HxSettingValueItem<T>,\n value: unknown,\n control: { set(value: T): void },\n ): Promise<void> {\n // `null`: an emptied number field. The current value: nothing to save, and the echo of the line below.\n if (value === null || (!this.pending.has(item.id) && Object.is(value, item.get()))) return;\n await this.set(item, value as T);\n if (!this.pending.has(item.id)) control.set(item.get());\n }\n\n protected async run(item: HxActionSettingItem): Promise<void> {\n try {\n await item.run();\n } catch (error) {\n this.errorHandler.handleError(error);\n }\n }\n\n protected async save(form: HxSettingsForm): Promise<void> {\n if (this.saving()) return;\n this.saving.set(true);\n this.failure.set(null);\n try {\n await form.save();\n } catch (error) {\n this.fail(null, error);\n } finally {\n this.saving.set(false);\n }\n }\n\n /** Calls `set` and reports its error; `false` when it failed. */\n private async set<T>(item: HxSettingValueItem<T>, value: T): Promise<boolean> {\n this.pending.set(item.id, (this.pending.get(item.id) ?? 0) + 1);\n try {\n await item.set(value);\n if (this.failure()?.source === item.id) this.failure.set(null);\n return true;\n } catch (error) {\n if (this.section().form) this.fail(item.id, error);\n else this.errorHandler.handleError(error);\n return false;\n } finally {\n const left = this.pending.get(item.id)! - 1;\n if (left) this.pending.set(item.id, left);\n else this.pending.delete(item.id);\n }\n }\n\n private fail(source: string | null, error: unknown): void {\n this.failure.set({ source, message: error instanceof Error ? error.message : String(error) });\n }\n}\n","<section [attr.aria-labelledby]=\"section().title ? headingId() : null\">\n @if (section().title) {\n <h2 [id]=\"headingId()\">{{ section().title }}</h2>\n }\n @if (section().description) {\n <p class=\"hx-settings-description\">{{ section().description }}</p>\n }\n @for (item of section().items; track item.id) {\n <div class=\"hx-settings-item\" [class.hx-settings-hit]=\"hits().has(item.id)\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n } @else {\n <hx-field [label]=\"item.label\" [hint]=\"item.description\">\n @switch (item.kind) {\n @case ('toggle') {\n <input\n #box\n hx-switch\n type=\"checkbox\"\n [checked]=\"item.get()\"\n [disabled]=\"item.disabled?.() ?? false\"\n (change)=\"toggle(item, box)\"\n />\n }\n @case ('select') {\n <hx-select\n #select\n size=\"small\"\n [options]=\"item.options\"\n [value]=\"item.get()\"\n [disabled]=\"item.disabled?.() ?? false\"\n (valueChange)=\"pick(item, $event, select.value)\"\n />\n }\n @case ('segmented') {\n <!-- a group of buttons takes no label[for]: it is named here -->\n <hx-select-button\n #segments\n size=\"small\"\n [options]=\"item.options\"\n [allowEmpty]=\"false\"\n [ariaLabel]=\"item.label\"\n [attr.aria-description]=\"item.description\"\n [value]=\"item.get()\"\n [disabled]=\"item.disabled?.() ?? false\"\n (valueChange)=\"pick(item, $event, segments.value)\"\n />\n }\n @case ('text') {\n <input\n #field\n hx-input\n size=\"small\"\n type=\"text\"\n [value]=\"item.get()\"\n [placeholder]=\"item.placeholder ?? ''\"\n [disabled]=\"item.disabled?.() ?? false\"\n (change)=\"enter(item, field)\"\n />\n }\n @case ('number') {\n <hx-input-number\n #number\n size=\"small\"\n [min]=\"item.min\"\n [max]=\"item.max\"\n [step]=\"item.step ?? 1\"\n [value]=\"item.get()\"\n [disabled]=\"item.disabled?.() ?? false\"\n (valueChange)=\"pick(item, $event, number.value)\"\n />\n }\n @case ('action') {\n <button\n hx-button\n size=\"small\"\n type=\"button\"\n [severity]=\"item.severity ?? 'primary'\"\n [attr.aria-description]=\"item.label\"\n [disabled]=\"item.disabled?.() ?? false\"\n (click)=\"run(item)\"\n >\n {{ item.buttonLabel }}\n </button>\n }\n @case ('readonly') {\n <span class=\"hx-settings-value\">{{ item.value() }}</span>\n @if (item.source) {\n <span class=\"hx-settings-source\">{{ item.source() }}</span>\n }\n }\n @case ('custom') {\n <ng-container\n [ngTemplateOutlet]=\"item.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n }\n }\n </hx-field>\n }\n </div>\n }\n @if (failure(); as failed) {\n <hx-message class=\"hx-settings-error\" severity=\"error\">{{ failed.message }}</hx-message>\n }\n @if (section().form; as form) {\n <div class=\"hx-settings-actions\">\n <button\n hx-button\n size=\"small\"\n type=\"button\"\n class=\"hx-settings-save\"\n [loading]=\"saving()\"\n [disabled]=\"!form.dirty()\"\n (click)=\"save(form)\"\n >\n Save\n </button>\n </div>\n }\n</section>\n","import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n Directive,\n type ElementRef,\n inject,\n model,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport {\n HxField,\n HxInput,\n HxTree,\n type HxTreeNode,\n HxTreeNodeTemplate,\n type HxTreeSelection,\n hxShortcut,\n} from '@gravionlabs/helix-ui';\nimport { searchText, searchWords } from './settings-match';\nimport type { HxSettingItem, HxSettingsSection } from './settings-model';\nimport { hxFilterSettings, HxSettingsRegistry } from './settings-registry';\nimport { HxSettingsSectionView } from './settings-section';\n\n/**\n * The content slot of `hx-settings-view`: the template renders one item of the current page. Without it the\n * view renders each item as an `hx-field` row with the control of its kind.\n *\n * ```html\n * <hx-settings-view [(page)]=\"page\">\n * <ng-template hxSettingItem let-item>{{ item.label }}</ng-template>\n * </hx-settings-view>\n * ```\n */\n@Directive({ selector: 'ng-template[hxSettingItem]' })\nexport class HxSettingItemTemplate {\n readonly template = inject<TemplateRef<{ $implicit: HxSettingItem }>>(TemplateRef);\n\n static ngTemplateContextGuard(\n _directive: HxSettingItemTemplate,\n _context: unknown,\n ): _context is { $implicit: HxSettingItem } {\n return true;\n }\n}\n\nconst NO_HITS: ReadonlySet<string> = new Set();\n\nlet nextViewId = 0;\n\n/**\n * The frame of the settings (ADR 0014): a search field and the tree of groups and pages beside the current\n * page with its breadcrumb. It shows what `HxSettingsRegistry` holds; groups without pages are not listed.\n * The app decides where it appears, and persists the two models: `page` (set it to open a deep link; a retired\n * or unknown id is resolved by the registry) and `collapsed` (the ids of the closed groups).\n *\n * ```html\n * <hx-settings-view [(page)]=\"pageId\" [(collapsed)]=\"closedGroups\" />\n * ```\n *\n * The tree is an `hx-tree`, so it has its keyboard support; Enter, Space or a click on a group opens or closes\n * it. Ctrl+F (Command+F on Apple) focuses the search, Escape clears it. A search lists the matching pages with\n * every group open, highlights the matching rows of the current page and leaves `collapsed` as it is.\n *\n * Each item is an `hx-field` row with the label, the description and the control of its kind. A change calls\n * `set` (a text field on change or blur). A section with a `form` has a Save button, enabled while `dirty()`;\n * there `set` only stages the value, and what `set` or `save` throw is shown in the section. Outside a form,\n * what `set` throws goes to the `ErrorHandler`.\n */\n@Component({\n selector: 'hx-settings-view',\n imports: [HxField, HxInput, HxSettingsSectionView, HxTree, HxTreeNodeTemplate],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hx-settings-view',\n '(keydown)': 'onKeydown($event)',\n },\n templateUrl: './settings-view.html',\n styleUrl: './settings-view.css',\n})\nexport class HxSettingsView {\n private readonly registry = inject(HxSettingsRegistry);\n private readonly searchShortcut = hxShortcut('Mod+F');\n\n /** The id of the current page. */\n readonly page = model('');\n /** The ids of the collapsed groups. */\n readonly collapsed = model<readonly string[]>([]);\n\n protected readonly itemTemplate = contentChild(HxSettingItemTemplate);\n private readonly search = viewChild.required<ElementRef<HTMLInputElement>>('search');\n private readonly tree = viewChild(HxTree);\n\n protected readonly idPrefix = `hx-settings-view-${nextViewId++}`;\n protected readonly query = signal('');\n private readonly searching = computed(() => this.query().trim() !== '');\n\n protected readonly visibleGroups = computed(() =>\n hxFilterSettings(this.registry.groups(), this.query()).filter((g) => g.pages.length > 0),\n );\n\n /** The page shown, with its group; `undefined` while no page is registered. */\n protected readonly current = computed(() => {\n const page = this.registry.resolve(this.page());\n const group = this.registry.groups().find((g) => g.id === page?.group);\n return page && group ? { page, group } : undefined;\n });\n\n protected readonly sections = computed(() => this.current()?.page.sections() ?? []);\n\n /** The groups as tree nodes with their pages as leaves; the keys are `g:<group id>` and `p:<page id>`. */\n protected readonly nodes = computed(() =>\n this.visibleGroups().map((group): HxTreeNode => ({\n key: `g:${group.id}`,\n label: group.title,\n leaf: false,\n children: group.pages.map((page) => ({ key: `p:${page.id}`, label: page.title })),\n })),\n );\n\n /** The tree key of the current page. */\n protected readonly selection = computed(() => {\n const current = this.current();\n return current ? `p:${current.page.id}` : null;\n });\n\n constructor() {\n // the tree keeps its own expanded state: bring it in line with `collapsed`, or open all during a search\n afterRenderEffect(() => {\n const tree = this.tree();\n const nodes = this.nodes();\n const collapsed = this.collapsed();\n const searching = this.searching();\n if (!tree) return;\n untracked(() => {\n for (const { key } of nodes) {\n if (searching || !collapsed.includes(key.slice(2))) tree.expand(key);\n else tree.collapse(key);\n }\n });\n });\n }\n\n /**\n * The ids of the items of a section to highlight during a search: every word is in the titles around the\n * item or in its own texts, and at least one is in its own texts, so a matching title alone marks no row.\n */\n protected hits(group: string, page: string, section: HxSettingsSection): ReadonlySet<string> {\n const words = searchWords(this.query());\n if (words.length === 0) return NO_HITS;\n const around = searchText([group, page, section.title]);\n const matching = section.items.filter((item) => {\n const own = searchText([item.label, item.description, ...(item.keywords ?? [])]);\n return (\n words.some((word) => own.includes(word)) &&\n words.every((word) => own.includes(word) || around.includes(word))\n );\n });\n return new Set(matching.map((item) => item.id));\n }\n\n protected sectionKey(section: HxSettingsSection): string {\n return `${this.current()?.page.id}/${section.id}`;\n }\n\n protected setQuery(event: Event): void {\n this.query.set((event.target as HTMLInputElement).value);\n }\n\n /** A page becomes the current one; a group opens or closes, and the current page stays selected. */\n protected onSelect(tree: HxTree, selection: HxTreeSelection): void {\n const current = this.selection();\n if (selection === current) return;\n if (typeof selection === 'string') {\n if (selection.startsWith('p:')) {\n this.page.set(selection.slice(2));\n return;\n }\n if (!this.searching()) tree.toggle(selection);\n }\n tree.selection.set(current);\n }\n\n protected groupOpened(key: string): void {\n const id = key.slice(2);\n if (this.searching() || !this.collapsed().includes(id)) return;\n this.collapsed.update((ids) => ids.filter((other) => other !== id));\n }\n\n /** During a search every group stays open. */\n protected groupClosed(tree: HxTree, key: string): void {\n const id = key.slice(2);\n if (this.searching()) tree.expand(key);\n else if (!this.collapsed().includes(id)) this.collapsed.update((ids) => [...ids, id]);\n }\n\n /** Ctrl+F (Command+F on Apple) anywhere in the view moves to the search field. */\n protected onKeydown(event: KeyboardEvent): void {\n if (!this.searchShortcut.matches(event)) return;\n event.preventDefault();\n const search = this.search().nativeElement;\n search.focus();\n search.select();\n }\n\n /** Escape in the search field clears it. */\n protected onSearchKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || this.query() === '') return;\n event.preventDefault();\n event.stopPropagation();\n this.query.set('');\n }\n}\n","<nav class=\"hx-settings-nav\" aria-label=\"Settings categories\">\n <hx-field>\n <input\n #search\n hx-input\n fluid\n size=\"small\"\n type=\"search\"\n class=\"hx-settings-search\"\n placeholder=\"Search settings\"\n aria-label=\"Search settings\"\n [value]=\"query()\"\n (input)=\"setQuery($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n />\n </hx-field>\n @if (nodes().length) {\n <hx-tree\n #tree\n class=\"hx-settings-tree\"\n selectionMode=\"single\"\n ariaLabel=\"Settings\"\n [value]=\"nodes()\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSelect(tree, $event)\"\n (nodeExpand)=\"groupOpened($event.node.key)\"\n (nodeCollapse)=\"groupClosed(tree, $event.node.key)\"\n >\n <ng-template hxTreeNode let-node>\n <!-- hx-tree-node-label: the type-ahead of the tree reads the label from it -->\n <span class=\"hx-tree-node-label\" [class.hx-settings-group]=\"node.children\">\n {{ node.label }}\n </span>\n </ng-template>\n </hx-tree>\n }\n <!-- always in the DOM: a live region announces only what changes inside it -->\n <div class=\"hx-settings-empty\" role=\"status\">\n @if (query().trim() && !visibleGroups().length) {\n No settings match.\n }\n </div>\n</nav>\n\n<div class=\"hx-settings-main\">\n @if (current(); as shown) {\n <header class=\"hx-settings-header\">\n <h1>\n <span class=\"hx-settings-crumb-group\">{{ shown.group.title }}</span>\n <span class=\"hx-settings-crumb-separator\"> › </span>\n <span>{{ shown.page.title }}</span>\n </h1>\n </header>\n <div class=\"hx-settings-scroll\">\n <div class=\"hx-settings-page\" [class.hx-settings-page-wide]=\"shown.page.wide\">\n <!-- the page id is part of the key: another page starts with fresh sections, without old errors -->\n @for (section of sections(); track sectionKey(section)) {\n <hx-settings-section\n [section]=\"section\"\n [headingId]=\"idPrefix + '-section-' + $index\"\n [hits]=\"hits(shown.group.title, shown.page.title, section)\"\n [itemTemplate]=\"itemTemplate()?.template\"\n />\n }\n </div>\n </div>\n }\n</div>\n","import type { TemplateRef, Type } from '@angular/core';\nimport { getHxPlatform, getHxPlatformKind, type HxPlatform } from './platform';\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/** Where a view opens: in the sidebar or as a tab (ADR 0005). */\nexport type HelixViewPlacement = 'sidebar' | 'tab';\n\n/** The end of the activity bar a view sits at. */\nexport type HelixViewPosition = 'top' | 'bottom';\n\n/** Where a view sits in the mobile shell: the bottom bar or the drawer. */\nexport type HelixViewMobilePlacement = 'bar' | 'drawer';\n\n/** The content of a view: a component type or a lazy loader of one. */\nexport type HelixViewContent = Type<unknown> | (() => Promise<Type<unknown>>);\n\n/**\n * One view of the app, declared once for the desktop and the mobile shell (ADR 0005). The content is\n * supplied by the app for the `id`.\n */\nexport interface HelixView {\n readonly id: string;\n readonly label: string;\n /** An inline SVG template, or an icon name the app resolves through its own icon registry. */\n readonly icon: TemplateRef<unknown> | string;\n readonly placement: HelixViewPlacement;\n readonly position: HelixViewPosition;\n /** The platforms the view exists on (a platform or its kind); absent means all. */\n readonly platforms?: readonly HxPlatform[];\n /** Where the view sits on mobile; absent means the drawer. `placement` is the one on desktop and web. */\n readonly mobilePlacement?: HelixViewMobilePlacement;\n /** The order in the bottom bar; views without one come after those with one. */\n readonly barOrder?: number;\n /** The content on every platform without an entry in `platformContent`. */\n readonly content?: HelixViewContent;\n /** The content per platform kind. */\n readonly platformContent?: Partial<Record<'desktop' | 'mobile' | 'web', HelixViewContent>>;\n}\n\n/** The views that exist on the platform, in list order. */\nexport function hxViewsFor<V extends HelixView>(\n views: readonly V[],\n platform: HxPlatform = getHxPlatform(),\n): V[] {\n const kind = getHxPlatformKind(platform);\n return views.filter(\n (view) => !view.platforms || view.platforms.some((p) => p === platform || p === kind),\n );\n}\n\n/**\n * Split the views of the platform into the bottom bar (`mobilePlacement: 'bar'`, by `barOrder`, at most\n * `HX_BOTTOM_BAR_MAX_ITEMS`) and the drawer (the rest, in list order).\n */\nexport function hxMobileViews<V extends HelixView>(\n views: readonly V[],\n platform: HxPlatform = getHxPlatform(),\n): { bar: V[]; drawer: V[] } {\n const available = hxViewsFor(views, platform);\n const order = (view: V): number => view.barOrder ?? Number.POSITIVE_INFINITY;\n const candidates = available\n .filter((view) => view.mobilePlacement === 'bar')\n .sort((a, b) => (order(a) === order(b) ? 0 : order(a) < order(b) ? -1 : 1));\n const bar = candidates.slice(0, HX_BOTTOM_BAR_MAX_ITEMS);\n const drawer = available.filter((view) => !bar.includes(view));\n return { bar, drawer };\n}\n\n/** The content of a view on the platform: `platformContent` of its kind, else `content`. */\nexport function hxViewContent(\n view: HelixView,\n platform: HxPlatform = getHxPlatform(),\n): HelixViewContent | undefined {\n return view.platformContent?.[getHxPlatformKind(platform)] ?? view.content;\n}\n","/**\n * The smallest width of a desktop window in CSS px. From this width up `hx-app-shell`, with the sidebar at its\n * default width, lays out without horizontal scroll. A Tauri app sets at least this as `minWidth` of its main window.\n */\nexport const HX_WINDOW_MIN_WIDTH = 720;\n\n/** The smallest height of a desktop window in CSS px: at least the `minHeight` of a Tauri app's main window. */\nexport const HX_WINDOW_MIN_HEIGHT = 480;\n","/*\n * Public API Surface of @gravionlabs/helix-app\n *\n * The view contract, the platform switch, the window and the settings (ADR 0005, ADR 0036). This entry imports\n * nothing from `@tauri-apps/*` and nothing of the frame components: those are in the secondary entry points\n * `/tauri` and `/frame` of this package.\n */\n\nexport const HELIX_DESKTOP_VERSION = '0.1.0';\n\nexport * from './lib/platform';\nexport * from './lib/settings/provide-settings';\nexport * from './lib/settings/settings-model';\nexport * from './lib/settings/settings-registry';\nexport * from './lib/settings/settings-view';\nexport * from './lib/view';\nexport * from './lib/window';\n"],"mappings":";;;;AASA,MAAM,YAAmC;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AAGD,SAAgB,kBAAkB,UAAoB;CACpD,IAAI,aAAa,SAAS,aAAa,aAAa,aAAa,UAAU,OAAO;CAClF,OAAO,aAAa,QAAQ,QAAQ;AACtC;AAGA,SAAgB,cAAc,OAAoB,SAAS,iBAAe;CACxE,MAAM,QAAQ,KAAK,aAAa,eAAe;CAC/C,OAAO,SAAS,UAAU,SAAS,KAAK,IAAI,QAAQ;AACtD;AAGA,SAAgB,cACd,UACA,OAAoB,SAAS,iBAAe;CAE5C,KAAK,aAAa,iBAAiB,QAAQ;AAC7C;ACnCA,SAAgB,YAAY,OAAa;CACvC,OAAO,MAAM,YAAW,CAAE,CAAC,MAAM,KAAK,CAAC,CAAC,OAAO,OAAO;AACxD;AAGA,SAAgB,WAAW,OAAsC;CAC/D,OAAO,MAAM,KAAK,GAAG,CAAC,CAAC,YAAW;AACpC;ACAA,MAAa,+BAA+B;AAG5C,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