Repository navigation
v1.3.0
References regenerated from vue-ecosphere 1.2.0 (was 1.1.0) and react-ecosphere 1.2.0 (was 1.1.0).
vue-ecosphere changes:
Fixes and additions found while moving the Logiforma apps onto Ecosphere.
Added
EcoButtonandEcoLink:to, a vue-router destination. With vue-router installed it renders an
anchor through RouterLink (resolvedhref, client-side navigation, server-rendered href); a string
falls back to a plain link when the router is absent. A disabled or loading button still renders a
<button>. The link to the current route carriesaria-current="page", and a tertiary button for it
shows it (--surface-sunken), so a row of tertiary buttons works as a topbar.EcoTabs: a tab item takesto. With vue-router installed the tab renders through RouterLink
(resolvedhref, client-side navigation, modifier-clicks left to the browser, server-rendered href)
and is current while its route is active, including a nested view below it; an empty-path "overview"
tab is not current while a sibling's route is. A stringtofalls back to a plain link.EcoProgressSteps(horizontal): a step takesto, rendered through RouterLink when the app has
vue-router (a string falls back to a plain link).reachablemarks an upcoming step the form lets
people skip ahead to: withhrefortoit links too, keeping its number. Complete steps link as
before; the current step never does.EcoDialog:closable(defaulttrue). Set it tofalsefor a dialog that must be answered, such
as a consent gate: the × is not rendered, and Escape and the scrim do nothing, so only the footer's
own buttons close it.EcoAppShell:contentTag("main"by default, see Fixed). An app whose slot already renders its
own<main>setscontent-tag="div"to keep a single main landmark.EcoToast:live(defaulttrue, so a standalone toast is still a status);EcoToastersets it to
false(see Fixed).
Fixed
EcoAppShell: the work area is now a<main>landmark (it was a<div>), so screen-reader users
can jump straight to the content.EcoToaster: toasts fromuseToast()are now read out reliably. The always-present.toastslist
is thearia-live="polite"region. Before, each toast was arole="status"region inserted together
with its text, which screen readers often skip.- Dialogs (and
useConfirm) now stack above an openEcoDrawer. Both sat at z-index 75 with the
dialog scrim at 70, so a confirm opened from a drawer left the drawer bright and clickable behind the
modal..dlgscrimis now 80 and.dlg85, still under toasts (95). .page(a free-form screen insideEcoAppShell) now carries the right--page-xgutter, like
.work__topand.listpane, so a page's content no longer runs to the right edge of the window.
The AppShell docs now say which containers bring the gutter.EcoMeteris arole="meter"witharia-valuenow(rounded),aria-valuemin="0",
aria-valuemax="100"andaria-valuetexton the bar or ring itself. A ring is named by its
label; anaria-labeloraria-labelledbypassed by the app names a bar (or an unlabelled ring).
Before, assistive tech got a barespan/divwith no value.EcoNumberField:- a typed figure outside
min/maxis pulled back to the nearest bound when the field loses
focus. Before, a typed400in a field with:max="40"reached the model unchanged. - text that stops being a number no longer keeps the last good figure:
12anow emitsnulland
setsaria-invalid="true"(a lone-or.while typing empties the model without flagging it). - a fractional
step(0.5, 0.1) setsinputmode="decimal", so phone keypads offer the decimal
point, and aninputmodepassed by the app now wins instead of being overwritten.
- a typed figure outside
EcoTextField,EcoEmailField,EcoNumberField,EcoTextareaandEcoSwitchkeep an
aria-describedbypassed by the app: it is merged after the field's own hint or error id instead of
being replaced (or dropped when the field had neither).EcoSearchFieldpasses extra attributes (id,role,aria-*, listeners) to its<input>
instead of the wrapper;classandstylestay on the wrapper, so the field can be the input of a
combobox. Akeydownhandler passed by the app runs first, and callingpreventDefault()in it
stops the field's own Enter (search) and Escape (clear).EcoPhoneFieldwithoutcodesshows the dial code as plain text (phonefield__cc--fixed) instead
of a focusable menu button that opened nothing, and the number input is described by it.EcoTimeline(trail): a stage status shows its badge dot by default, as itsEcoDataBadgetype
documents and every other data component does.dot: falsestill hides it.
react-ecosphere changes:
Matches vue-ecosphere 1.2.0: the stylesheet is copied from it, and the components carry its
additions and fixes.
Added
EcoButton,EcoLink,EcoTabsitems andEcoProgressStepssteps taketo. Pass your router's
link component asas(react-router'sLink), as onEcoNavItem: the link renders through it.
Withoutas, a stringtobecomes thehref. A disabled or loading button still renders a
<button>. The router decides the current page: passaria-current="page"to a button, and the
current route's key asEcoTabs'value(routed tabs have no first-tab fallback).EcoProgressSteps(horizontal):reachablemarks an upcoming step people may skip ahead to; with
hrefortoit links too, keeping its number.EcoDialog:closable(defaulttrue).falsedrops the × and makes Escape and the scrim do
nothing, for a dialog that must be answered.EcoAppShell:contentTag("main"by default;"div"when the children render their own
<main>).EcoToast:live(defaulttrue);EcoToastersets it tofalse.
Fixed
EcoAppShell: the work area is a<main>landmark.EcoToaster: the always-present.toastslist is thearia-live="polite"region, so toasts are
read out reliably; the toasts inside it are no longerrole="status"regions of their own.- Dialogs stack above an open drawer, and
.pagecarries the right gutter (stylesheet). EcoMeteris arole="meter"with its value on the bar or ring, named by the ring'slabelor an
aria-label/aria-labelledbyyou pass.EcoNumberField: a typed figure outsidemin/maxis pulled back to the nearest bound on blur;
text that is not a number reportsnulland setsaria-invalid; a fractionalstepuses
inputMode="decimal", and aninputModeyou pass wins.EcoTextField,EcoEmailField,EcoNumberField,EcoTextareaandEcoSwitchmerge an
aria-describedbyyou pass after their own hint or error id.EcoSearchField: attributes other thanclassNameandstyle(id,role,aria-*, handlers)
go to the<input>, so it can be a combobox's input; anonKeyDownthat calls
preventDefault()keeps Enter and Escape for itself. Its props type now extends the input's
attributes.EcoPhoneFieldwithoutcodesshows the dial code as text (phonefield__cc--fixed) that
describes the number, instead of a button that opened nothing.EcoTimeline(trail): a stage status shows its badge dot unlessdotisfalse.
References match vue-ecosphere 1.2.0 (97 components).
Claude Code
/plugin marketplace add bacon-delight/ecosphere-skill
/plugin install ecosphere@ecosphere
Codex / ChatGPT desktop: codex plugin marketplace add bacon-delight/ecosphere-skill, then install Ecosphere from the Plugins directory.
claude.ai or ChatGPT skill upload: download ecosphere-skill.zip (and ecosphere-migrate-skill.zip) below and upload it as a skill.