/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * Every word the Plan says itself (#820) — ONE typed message table. The * canvas's own chrome (the toolbar, the footer, the diagnostics, a failed * run's line, the narrow layout's tabs and cards), the words it gives a reader for what * it shows only by shape or colour, and what its live region announces all * come from here. What the AUTHOR wrote — a row's label, * a footer item, a series title — is data, and never passes through it. * * Each message is a function of named parameters, so a translation can put * them where its grammar wants them and choose its own plural forms. Numbers * and dates arrive already formatted for the canvas's locale (`words.ts`); * `n` is the raw count beside a formatted `count`, for plural rules. * * English is the default. A host overrides any subset for a subtree with * {@link PlanMessagesProvider}; the locale numbers and dates format in comes * from react-aria's `I18nProvider` above the app (the browser's otherwise). * * @packageDocumentation */ import { type ReactNode } from "react"; import type { ValueTypeOf } from "@elaraai/east"; import type { PlanPayloadType } from "@elaraai/e3-ui/internal"; import { type EditingMessages } from "@elaraai/east-ui-components"; import { type PagedLoadingMessages } from "../shared/loading.js"; import { type HiddenWords } from "../shared/schedule/words.js"; import { type TimeMessages } from "../shared/time/scale.js"; import type { PlanTool } from "./links/connect.js"; import type { PlanFocusRole } from "./body-items.js"; /** A lifecycle state as the words name it — `EventStateType`, with the * proposal arms spelled out. */ export type PlanStateWord = "estimated" | "added" | "recommended" | "removed" | "confirmed" | "in-progress" | "actual" | "rejected"; /** The grains, as a message receives them. */ export type PlanGrainWord = "group" | "resource"; /** An axis kind, as a message receives it (#631). */ export type PlanAxisWord = "time" | "number" | "ordinal"; /** A part of the canvas that can fail to render on its own (#811). A row is * named to a reader by its label, and in `data-plan-error` by its key. */ export type PlanPart = { kind: "row"; key: string; label: string; } | { kind: "group"; label: string; } | { kind: "expandRender"; } | { kind: "expandGutter"; } | { kind: "linksLayer"; } | { kind: "popover"; } | { kind: "hoverCard"; }; /** The unit a horizon caption counts in — a time resolution, or a number axis's step. */ export type PlanHorizonUnit = "hour" | "day" | "week" | "month" | "quarter" | "year" | "step"; /** The period a horizon's bars count by (#1438). */ export type PlanHorizonBucket = "month" | "quarter" | "year"; /** A chart layer kind, as the chart's summary names it. */ export type PlanChartLayerWord = "line" | "area" | "column" | "scatter" | "band"; /** An event mark's kind, as its name says it. */ export type PlanMarkWord = "milestone" | "decision" | "exception"; /** A tab of the library pane (#1195): the templates, the backlog, the series, or one of the author's own. */ export type PlanLibraryTabWord = "events" | "backlog" | "series" | "tab"; /** When a backlog event is due, as the Backlog tab groups it (PB28). */ export type PlanDueWord = "thisWeek" | "nextWeek" | "later" | "none"; /** A section of the inspector pane (#1197). */ export type PlanInspectorSection = "fields" | "bulk" | "window" | "measures"; /** A fact the inspector pane shows of an event or a row (#1197). */ export type PlanInspectorFact = "resource" | "start" | "end" | "at" | "lane" | "state" | "quantity" | "group" | "events" | "hours" | "quantities" | "from" | "to"; /** * What the inspector pane counts when nothing is selected (#1197, PB41): the * hours over the rows drawn (#1039), where a kind read by its cells counts * its events exactly and its hours over the rows on screen. The hours are those * of the kinds read — none where no kind's are, a kind past the cap named * among those not counted. */ export type PlanInspectorStat = "events" | "hours" | "hoursInView" | "backlog"; /** * The Plan's message table. * * @remarks * Parameters named `count`, `from`, `to`, `total`, `index` and `percent` are * numbers already formatted for the locale (a `percent` with its sign); `n` * is the raw number beside them, for plural rules. Dates (`date`, `at`, * `bucket`, `span`) are words the locale formatted. * * It carries the editing session's messages too ({@link EditingMessages}, * #880: the history bar and the draft issues), so a host translates the * canvas's history bar where it translates the canvas; the time scale's * ({@link TimeMessages}, #1148: its ruler's week and quarter ticks and their * words), which the scale the Plan shares with the Calendar speaks; and the * footer's loading line over a paged source ({@link PagedLoadingMessages}, * #1398: `lineLoading`, `lineFiltering`, `lineFailed`, `lineShort`), in what * the rail counts the rows in. */ export interface PlanMessages extends EditingMessages, TimeMessages, PagedLoadingMessages, HiddenWords { /** The treegrid's accessible name. */ gridLabel: () => string; /** No window: a time or number axis that states none, with no bound slice * range to supply one (#822 — the rows never do). */ noWindow: () => string; /** No window: an ordinal axis with no values. */ noWindowOrdinal: () => string; /** A part of the canvas, named — what its render-failure line says failed. */ partName: (p: { part: PlanPart; }) => string; /** A part's render-failure line. */ partFailed: (p: { part: string; message: string; }) => string; /** A row whose instants ride another arm than the axis (#811). */ axisMismatch: (p: { found: PlanAxisWord; expected: PlanAxisWord; }) => string; /** A row repeating the id of an earlier row on the canvas (#822) — `id` is * the id's canonical text. */ duplicateRow: (p: { id: string; }) => string; /** The gutter's right rule, a separator a drag or a key moves (#1680's review): what a reader hears it as. */ gutterHandle: () => string; /** The grain segment's accessible name. */ grainLabel: () => string; /** A grain's name — the grain segment and the ruler caption. */ grainName: (p: { grain: PlanGrainWord; }) => string; /** Expand every parent row, including nested groups. */ expandAll: () => string; /** Collapse every parent row, including nested groups. */ collapseAll: () => string; /** The resolution segment's (and its one-chip menu's) accessible name. */ resolutionLabel: () => string; /** A time resolution's name — its segment and its one-chip menu. */ resolutionName: (p: { resolution: string; }) => string; /** The key search's icon — what a toolbar short of room folds its box * to — and the head of the popover it opens the box in (#1193). */ keySearch: () => string; /** What the key search says where no record matches: it finds a record, and the rail narrows by its fields (#1513). */ keySearchNoMatches: () => string; /** Why a pick could not go to its row, where the read threw no words of its own (#1513). */ keySearchUnplaced: () => string; /** Why the choices hiding a row could not be cleared, where the clear threw no words of its own (#1513). */ keySearchUncleared: () => string; /** The overlaps chip (#1198, PB52) — `3 overlaps`: the pairs of events * that overlap in the window. */ overlaps: (p: { n: number; count: string; }) => string; /** The chip shortened to its count — `3` — what a toolbar short of room keeps of it. */ overlapsShort: (p: { n: number; count: string; }) => string; /** The chip's accessible name: its count, and what a click on it does. */ overlapsLabel: (p: { n: number; count: string; }) => string; /** Rows drawn as diagnostic rows. */ rowsSkipped: (p: { n: number; count: string; }) => string; /** The same chip's accessible name, where it seeks to the first. */ rowsSkippedSeek: (p: { n: number; count: string; }) => string; /** A source that could not report its size. */ sourceUnavailable: (p: { reason: string; }) => string; /** A key search that failed. */ searchFailed: (p: { reason: string; }) => string; /** An axis the grid had to truncate. */ truncated: (p: { n: number; count: string; }) => string; /** The event kinds' events in the window — `64 events`. */ footerEvents: (p: { n: number; count: string; }) => string; /** * The event kinds' events in the window when a kind's are not counted (#1039): its count is no number of them, the * days they run on — `13 events, print jobs not counted`; `count` `undefined` when no kind's are counted, `print * jobs not counted`. `kinds` are their names as running text writes them. */ footerEventsNotCounted: (p: { n: number; count: string | undefined; kinds: readonly string[]; }) => string; /** The event kinds' unscheduled events — `9 in backlog`. */ footerBacklog: (p: { n: number; count: string; }) => string; /** The changes waiting on Save — `4 pending`. */ footerPending: (p: { n: number; count: string; }) => string; /** When an event kind's record was last saved — `saved 14:02`: `when` is its time today, else its date and time. */ footerSaved: (p: { when: string; }) => string; /** What a source's Save notice counts (#1344) — the `rows` source's `row`, `rows`; an event kind's `print job event`: `kind` its name as running text writes it. */ saveNoticeNoun: (p: { kind: string | undefined; n: number; }) => string; /** * What the footer's loading line names a failed read of the event kinds' rows by (#1398, CL3): the kinds whose own * events it could not read, as the rail counts them — `print job events`, `print job events and stop events` * (`kinds` each kind's noun) — else, none of theirs failing, the rows. */ eventsFailedNoun: (p: { kinds: readonly string[]; }) => string; /** A source of the slice whose narrowing could not be read: its banner's title — `Customers results unavailable`; `name` its label, or the noun the rail counts it in. */ narrowingUnavailable: (p: { name: string; }) => string; /** Its results moved while they were read. */ narrowingChanged: (p: { name: string; }) => string; /** Its results could not be read. */ narrowingFailed: (p: { name: string; }) => string; /** The window could not be written into a source of the slice: its banner's title — on a time axis, its dates. */ windowUnavailable: (p: { axis: PlanAxisWord; }) => string; /** A library tab the rail leaves no card — `No templates match the filters`; `name` an author's tab's name as running text writes it. */ libraryNarrowed: (p: { tab: PlanLibraryTabWord; name: string; }) => string; /** The line under it. */ libraryNarrowedHint: (p: { tab: PlanLibraryTabWord; name: string; }) => string; /** The notice's title: a kind with more events in view than it draws, and no summary to shade them at this * resolution — `12,480 print job events in view`; `kind` its name as running text writes it. */ tooManyEvents: (p: { kind: string; n: number; count: string; }) => string; /** The notice's title for a kind whose count is no number of its events, a day index's (#1039) — `Print job events in * view: not counted`; `kind` its name as running text writes it. */ tooManyEventsNotCounted: (p: { kind: string; }) => string; /** The line under it: the resolution its summary shades at — `Too many to draw at this resolution: switch to month to * see where they fall`; `undefined`, it has none. */ tooManyEventsHint: (p: { resolution: string | undefined; }) => string; /** The notice's title: a link kind holding more links than are read — `10,001 flow links`; `kind` its name as running * text writes it. */ tooManyLinks: (p: { kind: string; n: number; count: string; }) => string; /** The line under it. */ tooManyLinksHint: () => string; /** The tools' strip's accessible name (#1541, U10). */ toolsLabel: () => string; /** A tool's name — `Select`, `Connect`. */ toolName: (p: { tool: PlanTool; }) => string; /** A tool's hint: what a gesture does while it is held — `kind`, the link kind Connect draws, by its name. */ toolHint: (p: { tool: PlanTool; kind: string; }) => string; /** Connect's menu's accessible name: the link kind it draws. */ connectDraws: () => string; /** What Connect's ghost says of the event it drags from: the link kind it draws, by its name — `Draw a feed`. */ connectGhost: (p: { kind: string; }) => string; /** What Connect's ghost says where its link may land: the kind and the two events it joins — `Feed · Catalogue covers → Catalogue`. */ linkDrawn: (p: { kind: string; from: string; to: string; }) => string; /** What a screen reader is told as Connect's drop draws its link — `Drew a feed from Catalogue covers to Catalogue.` (#1680's review). */ linkDrawnSaid: (p: { kind: string; from: string; to: string; }) => string; /** * Why Connect's draft doesn't land: its kind's end — `start` its `from`, `end` its `to` — holds no event of that * kind: `Feed can't end at Van 2`. */ linkEndRefused: (p: { kind: string; end: "start" | "end"; item: string; }) => string; /** Why Connect's draft doesn't land: the kind's record holds a link under the key this one's row builds. */ linkHeld: (p: { kind: string; }) => string; /** Why Connect's draft doesn't land: no key can be made for a new link of the kind, or its `key` failed. */ linkUnkeyed: (p: { kind: string; }) => string; /** Why Connect's draft doesn't land: the kind's new row failed as it was made. */ linkFailed: (p: { kind: string; }) => string; /** The inspector's Connect to…, by the link kind it draws: its group's name — `Connect a flow`. */ inspectorConnect: (p: { kind: string; }) => string; /** A field of Connect to…: the link `kind` it draws, and the event it runs `to`. */ inspectorConnectField: (p: { field: "kind" | "to"; }) => string; /** The library pane's name. */ libraryPane: () => string; /** A library tab — the author names their own tabs. */ libraryTab: (p: { tab: Exclude; }) => string; /** A library tab's empty state: its title — `No templates`, `Backlog clear`, `Nothing in Customers` (PB30); `name` is an author's tab's. */ libraryEmpty: (p: { tab: PlanLibraryTabWord; name: string; }) => string; /** The line under it. */ libraryEmptyHint: (p: { tab: PlanLibraryTabWord; name: string; }) => string; /** What a library tab's search box counts its cards as — `template`, `templates`. */ libraryNoun: (p: { tab: PlanLibraryTabWord; n: number; }) => string; /** What a library tab's cards are grouped by: its grouping control's words. */ libraryGroupBy: (p: { tab: PlanLibraryTabWord; }) => string; /** A template card's head: its kind's name, then the template's `group` (PB27) — `Print job · Jobs`. */ templateGroup: (p: { kind: string; group: string | undefined; }) => string; /** A template card's line — `Print job · 6 h · presses`: its kind's name, how long it runs (an instant kind's runs none), and the series it lands on. */ templateLine: (p: { kind: string; duration: string | undefined; resources: readonly string[]; }) => string; /** A link kind's template's second line (#1541, U10): its kind, and how it is used — `Flow · click to hold for Connect`. */ linkTemplateLine: (p: { kind: string; }) => string; /** A backlog card's line — `6 h · Press A · due Fri 16`: how long it takes, the resource it is on (`undefined`, on none), and when it is due. */ backlogLine: (p: { duration: string; resource: string | undefined; due: string | undefined; }) => string; /** When a backlog event is due — `due Fri 16`: `weekday` and `day` are its day's, formatted. */ backlogDue: (p: { weekday: string; day: string; }) => string; /** A backlog group, by when its events are due (PB28) — `Due this week`. */ dueGroup: (p: { due: PlanDueWord; }) => string; /** How long something takes — `6 h`, `2 h 15 m`, `45 m`: `hours` and `minutes` formatted, each `undefined` when it is none. */ duration: (p: { hours: string | undefined; minutes: string | undefined; }) => string; /** The inspector pane's name. */ inspectorPane: () => string; /** Several events selected — `3 events`: the head of their list, and the collapsed pane's line. */ inspectorEvents: (p: { n: number; count: string; }) => string; /** How many of the events selected are of one kind — `Print job ×2`: `kind` is its name. */ inspectorKindCount: (p: { kind: string; n: number; count: string; }) => string; /** When an event runs — `Mon, Oct 5 · 06:00–14:00`; across days, `Mon, Oct 5, 22:00 – Tue, Oct 6, 06:00` * (`endDay` its last day); an instant's, `Wed, Oct 7 · 12:00` (`to` undefined). Days and times are formatted. */ inspectorWhen: (p: { day: string; from: string; endDay: string | undefined; to: string | undefined; }) => string; /** An event with no time: in its kind's backlog. */ inspectorUnscheduled: () => string; /** A section's head. */ inspectorSection: (p: { section: PlanInspectorSection; }) => string; /** A fact's label. */ inspectorFact: (p: { fact: PlanInspectorFact; }) => string; /** An event on no resource — and an event kind's row of them. */ inspectorUnassigned: () => string; /** A row that is no resource's: the eyebrow over its name. */ inspectorRow: () => string; /** One of the gestures on what is selected. */ inspectorAction: (p: { action: "duplicate" | "delete"; }) => string; /** A step of the bulk edit's shift in time — `−1 d`, `+1 h`. */ inspectorShift: (p: { by: -1 | 1; unit: "day" | "hour"; }) => string; /** The bulk edit's shift in time: its steps' group's name. */ inspectorShiftLabel: () => string; /** A row's measures at the bucket a click on its plot named — `At Tue, Oct 20`: `bucket` in the axis's words. */ inspectorAt: (p: { bucket: string; }) => string; /** A row's measures before a click on its plot has named a bucket. */ inspectorNoBucket: () => string; /** A measure with no value at the bucket. */ inspectorNoValue: () => string; /** What a count says it counts when nothing is selected. */ inspectorStat: (p: { stat: PlanInspectorStat; n: number; }) => string; /** * What a row's facts, or the window's, leave out (#1039), as one line: the kinds they count none of, too many of * their events in view, none of them read — `Print jobs not counted: too many to draw at this resolution` — and the * kinds whose events they count but whose hours they do not, none of them read — `Print job hours not counted: too * many to draw at this resolution`; both, `Print jobs and Press check hours not counted: …`. `kinds` and `hours` are * the kinds' names. */ inspectorNotCounted: (p: { kinds: readonly string[]; hours: readonly string[]; }) => string; /** A hint when nothing is selected — three of them. */ inspectorHint: (p: { n: 1 | 2 | 3; }) => string; /** The hint in a phone's pane, nothing selected (ruled 3 Nov 2026): its cards take a tap, and it has no Esc or modifier keys. */ inspectorHintTouch: () => string; /** One event's overlaps banner (#1198, PB53) — `Overlaps 2 events on Press B2`: `on` is its resource's name. */ inspectorOverlaps: (p: { n: number; count: string; on: string; }) => string; /** A row's overlaps banner (PB40) — `2 overlaps`: the pairs on the row's resource in the window. */ inspectorRowOverlaps: (p: { n: number; count: string; }) => string; /** One pair in a row's banner — `Market posters · Loyalty cards`: its events' titles. */ inspectorOverlapPair: (p: { first: string; second: string; }) => string; /** The banner over one event's form while the app's `ready` refuses it, which holds Save (#1525). */ inspectorRefusals: () => string; /** The banner over one event its kind's `locked` holds where it is (#1541, U9): its form is read only, and it has no gestures. */ inspectorLocked: () => string; /** The line under it. */ inspectorLockedDetail: () => string; /** How many of several events selected are locked, which the bulk edit and Delete leave as they are — `2 locked: left as they are`. */ inspectorLockedCount: (p: { n: number; count: string; }) => string; /** The words of a selected link's × (#1541, U10) — `Remove flow`: its link kind's name. */ linkRemove: (p: { name: string; }) => string; /** A link kind's link, as the inspector names it — its head and its rail — by the two events it joins: `Event posters → Fold and trim`. */ linkEnds: (p: { from: string; to: string; }) => string; /** Several links selected — `3 links`. */ inspectorLinks: (p: { n: number; count: string; }) => string; /** The horizon strip's caption — `HORIZON · 26 WK`. */ horizon: (p: { n: number; count: string; unit: PlanHorizonUnit; }) => string; /** The horizon strip's meta line (#1438) — `max 1,559 items / mo`: its largest bucket's count, and the period its buckets are. */ horizonMax: (p: { n: number; count: string; unit: PlanHorizonBucket; }) => string; /** The horizon strip's meta line where nothing is in the horizon (#1438). */ horizonNoData: () => string; /** A horizon bucket's count, after its period in its tooltip (#1438) — `1,284 items`. */ horizonCount: (p: { n: number; count: string; }) => string; /** The horizon brush's start handle, as a reader hears it (#1438). */ horizonStart: () => string; /** The horizon brush's window, between its handles (#1438). */ horizonWindow: () => string; /** The horizon brush's end handle (#1438). */ horizonEnd: () => string; /** The ruler's now chip. */ now: () => string; /** The focus band's way back. */ allRows: () => string; /** The links focus caption — `Links · H1-P03 · 2 upstream · 1 linked · 3 downstream` (the band sets it in * capitals); `label` is the focused row's gutter label, each count the rows its role gathers, formatted — * `linked` `undefined` where no row is both upstream and downstream (#1680's review). */ focusLinks: (p: { label: string; upstream: string | undefined; linked: string | undefined; downstream: string | undefined; }) => string; /** The expand focus caption — `label` is the focused row's gutter label. */ focusExpanded: (p: { label: string; }) => string; /** A links focus's role band (#1680's review) — `Upstream`, `Focused`, `Linked`, `Downstream`. */ focusRole: (p: { role: PlanFocusRole; }) => string; /** What a role band with no rows says beside its name — `none`. */ focusNone: () => string; /** A row a links focus gathers: its sub line — the rows it nests under, outermost first, then its own sub when it * has one: `Contract A`, `Hall 1 / Press bay · 12k/h` (#1680's review). */ focusPath: (p: { path: readonly string[]; sub: string | undefined; }) => string; /** The links-focus control's accessible name. */ linksControl: () => string; /** The expand control's accessible name. */ expandControl: () => string; /** A group's derived member count — `8 rows`. While it covers only the * loaded windows (a top-level section on a paged canvas still loading — * the one parent whose members span windows, #822) it is a short bar, * never a count (#1398, CL13). */ groupMeta: (p: { n: number; count: string; }) => string; /** A failed window's retry button. */ retry: () => string; /** A run bar's churn counter — `moved ×3`. */ moved: (p: { n: number; count: string; }) => string; /** A rollup band's caption — `×2 · 208 k sheets`. Always exact: a span parent * rolls up one entry's subtree, which a window holds whole (#822). */ rollupCaption: (p: { count: string | undefined; quantity: string | undefined; }) => string; /** A quantity's caption — `96 k sheets` (#824): `value` is already formatted, * through the quantity's own format; `unit` is the author's, when declared. */ quantity: (p: { value: string; unit: string | undefined; }) => string; /** Totals in several units, read together — a rollup band's `208 k sheets · 12 h`. */ quantities: (p: { parts: readonly string[]; }) => string; /** The resting chip of a proposed bucket tile. */ planChip: () => string; /** A bucket cell's `+n` chip (#1267) — `+2`: the cell's tiles it has no room for. */ tileMore: (p: { n: number; count: string; }) => string; /** The chip's accessible name — `2 more events, Week of Jul 13, 2026, AM`: its cell's bucket and lane in words; * `every` where it stands for every event the cell holds, none of them drawn — `1 event, …` (#1680's review). */ tileMoreLabel: (p: { n: number; count: string; bucket: string; lane: string | undefined; every: boolean; }) => string; /** How a keyboard reader moves an element — the description of every one that moves. */ moveHelp: () => string; /** An element picked up with the keyboard — `target` its row's name, `span` where it is, in words. */ movePickedUp: (p: { item: string; target: string; span: string; }) => string; /** Where a carried element would land now. */ moveOver: (p: { item: string; target: string; span: string; }) => string; /** Where the canvas's `canDrop` refuses a carried element — and why, when the event kinds' drag says (#1196). */ moveRefused: (p: { item: string; target: string; span: string; reason?: string | undefined; }) => string; /** A carried element dropped. */ moveDropped: (p: { item: string; target: string; span: string; }) => string; /** A carried element whose move could not be written — nothing changed. */ moveFailed: (p: { item: string; }) => string; /** A carry cancelled — the element stays where it was. */ moveCancelled: (p: { item: string; }) => string; /** * What the ghost says a drop does — `Brochure run · Press A1 · Mon, Oct 12, * 2026`: what lands (a template's name, an event's title, or `3 events`), * where (a resource's name, or `Unassigned`), and the day it starts, its * time after it when it has one (`· 06:00`). */ dropCaption: (p: { what: string; where: string; day: string; time: string | undefined; }) => string; /** Why an event can't land on a row: its kind lands on other series — `Needs presses`, their names lowercased; none, on no resource. */ dropNeeds: (p: { resources: readonly string[]; }) => string; /** The resource matches, but this sub-row displays a different event kind. */ dropNeedsRow: (p: { kind: string; }) => string; /** Why an event can't change now: its kind's record is not read yet, or a Save of it is under way — `kind` its name. */ dropBusy: (p: { kind: string; }) => string; /** Why a drop the kind's own write refuses can't land. */ dropRefused: () => string; /** Why a drop that would change an event its kind's `locked` holds where it is can't land (#1541, U9) — `Spring catalogue is locked`. */ dropLocked: (p: { event: string; }) => string; /** An author's card over an event of its patch's kind — `Harbour Arts Society → Spring catalogue`. */ dropCardOnEvent: (p: { card: string; event: string; }) => string; /** An author's card anywhere but an event — `Drop a customer onto an event`: `fields` the fields its patch sets. */ dropCardNeedsEvent: (p: { fields: readonly string[]; }) => string; /** An author's card over an event of another kind — `Stops take no customer`: `kind` that kind's name, `fields` the fields the patch sets. */ dropKindTakesNo: (p: { kind: string; fields: readonly string[]; }) => string; /** An event over the Backlog tab, which unschedules it — `Spring catalogue → Backlog`. */ dropUnschedule: (p: { what: string; }) => string; /** An event over the Backlog tab whose kind has no backlog — its times are no Options: `Stops have no backlog`. */ dropNoBacklog: (p: { kind: string; }) => string; /** The Groups tab. */ tabGroups: () => string; /** The Rows tab. */ tabRows: () => string; /** The Measures tab. */ tabMeasures: () => string; /** A tab's count — "…" in its place over a partial prefix, until the source's read completes (#1398, CL13). */ tabCount: (p: { n: number; count: string; }) => string; /** A tab's count where a paged source's entries make no fixed number of what it lists — the Measures tab's, where * some entries make more chart rows than others (#1398): `not counted`, as the Plan's event counts say theirs. */ tabNotCounted: () => string; /** The card and section for rows in no group — and the band a links focus folds the rows it does not gather into * (#1680's review). */ otherRows: () => string; /** Back to the group list. */ backToGroups: () => string; /** Back to every row. */ backToAllRows: () => string; /** An empty row list. */ noRows: () => string; /** More groups to show — `3 more groups · 24 rows`. */ moreGroups: (p: { n: number; count: string; members: string | undefined; }) => string; /** More rows to show. */ moreRows: (p: { n: number; count: string; }) => string; /** More measures to show. */ moreMeasures: (p: { n: number; count: string; }) => string; /** A lifecycle state. */ state: (p: { state: PlanStateWord; }) => string; /** A status tone — `warning`. */ tone: (p: { tone: string; }) => string; /** A status dot's accessible name — `Status: warning`. */ status: (p: { tone: string; }) => string; /** A span in words — `Jun 29, 2026 – Jul 27, 2026`. */ span: (p: { from: string; to: string; }) => string; /** A run bar's churn, in words. */ movedTimes: (p: { n: number; count: string; }) => string; /** What an element's name says of one held where it is (#1541, U9), which its lock says by look — `locked`. */ lockedWord: () => string; /** A run bar's accessible name; `status` its status's own words (#1541), which its ring says by colour; `locked` the lock's word, on a locked one. */ runName: (p: { label: string; span: string; state: string; quantity: string | undefined; moved: string | undefined; status: string | undefined; locked: string | undefined; }) => string; /** A span row's decision diamond's accessible name. */ decisionName: (p: { at: string; applied: boolean; }) => string; /** A bucket tile's accessible name; `status` its status's own words (#1541). */ tileName: (p: { label: string | undefined; bucket: string; lane: string | undefined; state: string; status: string | undefined; locked: string | undefined; }) => string; /** A cards chip's accessible name; `status` its status's own words (#1541). */ chipName: (p: { label: string; span: string; state: string; status: string | undefined; locked: string | undefined; }) => string; /** An event mark's accessible name; `status` its status's own words (#1541). */ markName: (p: { label: string | undefined; kind: PlanMarkWord; applied: boolean; at: string; status: string | undefined; locked: string | undefined; }) => string; /** A heat cell's value — `91, at or above the warning threshold`. */ heatValue: (p: { value: string; warn: boolean; }) => string; /** A cell or bucket with no value. */ noData: () => string; /** A weight bar's value — `60% booked, planned`. */ weightValue: (p: { percent: string; planned: boolean; }) => string; /** One segment of a composition — `booked 60%`: its fill tag, and its * share (the author's in-bar label, else the share as a percent). */ segmentPart: (p: { fill: string; share: string; }) => string; /** Parts read out together — a composition's segments, a table cell's * parts: `booked 60%, slack 25%`. */ list: (p: { parts: readonly string[]; }) => string; /** A table part with no value (the muted em-dash). */ noValue: () => string; /** A range of two values — a band's `lo–hi`. */ valueRange: (p: { from: string; to: string; }) => string; /** A bucket-quantised element's accessible name — `Week of Jun 29, 2026: 72`. */ cellName: (p: { bucket: string; value: string; }) => string; /** A table cell's input's accessible name — `Week of Jun 29, 2026: type a number` (#1438). */ typedName: (p: { bucket: string; }) => string; /** The history's step for a number typed into a table cell — `Set Orders, Week of Jun 29, 2026 to 15` (#1438). */ typedStep: (p: { row: string; bucket: string; value: string; }) => string; /** The history's step for a table cell cleared — `Clear Orders, Week of Jun 29, 2026` (#1438). */ clearedStep: (p: { row: string; bucket: string; }) => string; /** A table cell's typed text that reads as no number (#1438). */ typedNotNumber: () => string; /** A fraction typed into a table cell whose values are whole numbers (#1438). */ typedNotWhole: () => string; /** What a table cell folding several values of a position that takes typing says: the resolution they are at, and the * Plan's zoom showing them apart — `Holds several values, one each week: zoom to week to type one` — or that it has * none (#1438). */ typedFolded: (p: { resolution: string | undefined; zoom: string | undefined; }) => string; /** What a table cell of a position taking typing says at a zoom coarser than the Plan's finest, where it is a summary * and takes none — `Zoom to week to edit`; a double click on it does (#1438). */ typedZoomTo: (p: { zoom: string; }) => string; /** A tone-strip block's value — `101, beyond threshold`. */ toneValue: (p: { value: string; warn: boolean; }) => string; /** A chart layer's name in the chart's summary — `line`, or `columns 2` * when the chart has more than one of its kind. */ chartLayer: (p: { kind: PlanChartLayerWord; index: string | undefined; }) => string; /** A chart layer's values. */ chartLayerValues: (p: { layer: string; min: string; max: string; last: string; n: number; breaches: string; }) => string; /** A chart layer with no value in the window. */ chartLayerEmpty: (p: { layer: string; }) => string; /** A chart row's accessible name. */ chartSummary: (p: { parts: readonly string[]; }) => string; /** A chart row with no data layers. */ chartNoData: () => string; /** A row was selected. */ announceSelected: (p: { label: string; }) => string; /** The events selected on the canvas changed (#1197) — `3 events selected`; `n` 0 when the last left. */ announceEvents: (p: { n: number; count: string; }) => string; /** A section closed. */ announceCollapsed: (p: { label: string; }) => string; /** A section opened. */ announceExpanded: (p: { label: string; }) => string; /** A chart row changed height. */ announceChart: (p: { label: string; expanded: boolean; }) => string; /** A links focus opened. */ announceLinked: (p: { label: string; }) => string; /** An expand focus opened. */ announceOpened: (p: { label: string; }) => string; /** A row focus closed. */ announceAllRows: () => string; /** The selection was cleared. */ announceCleared: () => string; /** The grain changed. */ announceGrain: (p: { grain: PlanGrainWord; }) => string; /** The resolution changed. */ announceResolution: (p: { resolution: string; }) => string; } /** * The Plan's English messages — the default table. */ export declare const planMessages: PlanMessages; /** The app's words for what the Plan draws of its own, as the payload carries them (#1516). */ export type PlanVocabulary = ValueTypeOf["vocabulary"]; /** * A table in the app's own words (#1516): each word the app gave over the table above it, wherever the table says it, and * the rest as they stood, so a host's translation stands where the app gave none. * * @param parent - The table above * @param v - The app's words * @returns The table */ export declare function planMessagesIn(parent: PlanMessages, v: PlanVocabulary): PlanMessages; /** * The message table in effect — {@link planMessages} with every * {@link PlanMessagesProvider} above overriding it. * * @returns The table */ export declare function usePlanMessages(): PlanMessages; /** Props of {@link PlanVocabularyProvider}. */ export interface PlanVocabularyProviderProps { /** The app's words, the same object while they hold. */ vocabulary: PlanVocabulary; /** The subtree they apply to. */ children?: ReactNode; } /** * The app's own words for a Plan (#1516), over whatever table a host gives it. * * @param props - The words and the subtree * @returns The provider */ export declare function PlanVocabularyProvider({ vocabulary, children }: PlanVocabularyProviderProps): import("react").FunctionComponentElement>; /** Props of {@link PlanMessagesProvider}. */ export interface PlanMessagesProviderProps { /** The messages to override — any subset; the rest come from the table above. */ messages: Partial; /** The subtree the overrides apply to. */ children?: ReactNode; } /** * Override the Plan's words for a subtree — a translation, or a house style. * Providers nest: each overrides the table the one above it resolved. * * @remarks * The overrides are read by identity: define them once (module scope, or a * memo), as below. A new object on every render hands every canvas beneath * a new table, and each re-derives all of its words. * * @param props - The overrides and the subtree * @returns The provider * * @example * ```tsx * const GERMAN: Partial = { * allRows: () => "← Alle Zeilen", * tabRows: () => "Zeilen", * groupMeta: ({ count }) => `${count} Zeilen`, * }; * * * * * * * ``` */ export declare function PlanMessagesProvider({ messages, children }: PlanMessagesProviderProps): import("react").FunctionComponentElement>; //# sourceMappingURL=messages.d.ts.map