Repository navigation
v0.6.0
Minor Changes
-
d42da81: Add the app shell:
AppShell,Sidebar,TopbarAppShellarranges a topbar, sidebar, and main content. On large screens the sidebar is
docked; below thelgbreakpointcollapsible(default) turns it into an off-canvas panel
thatTopbaropens with a menu button. The three share an injection context, so the button
carriesaria-expanded/aria-controlstargeting the sidebar's id, the backdrop and Esc
close it, and the off-canvas offset mirrors under RTL. Exported from@myghf/uiand
auto-imported by the Nuxt module. -
9d6de12: Add chart components:
SparklineandBarChartSparklinedraws a compact line or area trend;BarChartdraws categorical bars and exposes
the same values through a visually-hidden table. Both are accessible by default (Sparklineis
role="img"with alabel, or decorative without one).- Built on the new external dependencies
d3-scaleandd3-shape(externalised in the build, so
a bundler only includes them for the pages that import a chart). Exported from@myghf/uiand
auto-imported by the Nuxt module.
-
23643ae: Add the
ComboboxcomponentA searchable select built on reka-ui's combobox: type to filter, pick one or several. Supports
multiple(selections render as removableTags),clearable, size variants, and an
emptyLabelfor no-match states. The input isrole="combobox"and wiresid,
aria-describedby,aria-invalid, andaria-requiredthrough the shareduseFieldControl
contract. Exported from@myghf/uiand auto-imported by the Nuxt module. -
138529c: Add the CommandPalette component
A keyboard-first command launcher built on the Dialog: type to filter a flat list of commands,
move with the arrow keys, run with Enter, and close with Escape. Items carry an optional
description, group label, keywords, and icon, and the palette matches against all of them.
Exports theCommandItemtype, is exported from@myghf/ui, and is auto-imported by the Nuxt
module. -
1723e2f: Add dashboard primitives: StatCard, StatusBadge, Timeline, Stepper
StatCard: a metric card with a label, headline value, optional hint, and a signedtrend
(announced to screen readers as "up/down N percent").StatusBadge: a toned pill with a decorative dot and an optionalpulse.Timeline+TimelineItem: a labelled activity list with<time>stamps.Stepper: a step indicator that marks the current step witharia-current="step"and shows a
check for completed steps, plus aSteptype.
All are exported from
@myghf/uiand auto-imported by the Nuxt module. -
9eb1946: Add the
FileUploadcomponentA drop zone over a native
<input type="file">: the input stays focusable and is the actual
control, so click, drag-and-drop, and keyboard all work without scripting. Selected files are
listed with name, size, a remove button, and an optional per-fileProgressbar via a
progressForcallback. Supportsmultiple,accept,disabled, and the field contract
(id,aria-describedby,aria-invalid,required) through the shareduseFieldControl
composable. Exported from@myghf/uiand auto-imported by the Nuxt module. -
dfe1094: Add the
FormErrorscomponentA form-level validation summary: a
role="alert"box that lists each error, where every entry
is a button that focuses the field it refers to.focusFirstmoves focus to the first invalid
field on submit. Exports theFormErrortype, is exported from@myghf/ui, and is
auto-imported by the Nuxt module. -
a1d263c: Add layout primitives:
Container,Stack,Inline,GridFour small structural wrappers: a centred page column (
Container, with size/padding), a
vertical stack and a wrapping row with a shared spacing scale and optional alignment
(Stack,Inline), and a grid with fixedcolsor responsive auto-fitminItemWidth
(Grid). Each takes anasprop to choose the element and passes attributes through. Exported
from@myghf/uiand auto-imported by the Nuxt module. -
806b27f: Add Tooltip, Popover, and Accordion
Tooltip: a short hover/focus label for a single trigger, built on reka-ui, withtext/side/
align/sideOffset/delayDurationand acontentslot.Popover: a floating panel anchored to a trigger, withv-model:openand positioning props.Accordion+AccordionItem: collapsible sections withsingle/multipletypes and
v-modelover the open value(s).
All are exported from
@myghf/uiand auto-imported by the Nuxt module. -
986af2d: Add page chrome:
Breadcrumbs,PageHeader,PageContentBreadcrumbs: a labellednavtrail witharia-currenton the last item, anaria-hidden
RTL-aware separator, and anitemslot for router links. Exports theBreadcrumbItemtype.PageHeader: an<h1>title with optional description, plusbreadcrumbsandactions
slots.PageContent: the padded, width-capped page body (wrapsContainer).
Exported from
@myghf/uiand auto-imported by the Nuxt module. -
a69fa8c: Add the
ProgresscomponentA horizontal progress bar built on reka-ui's progress primitive: determinate with
modelValue/max, or indeterminate when the value is omitted. Supportssm/default/lg
sizes, tones, and an accessiblelabel. The fill is width-based so it mirrors correctly under
RTL. Exported from@myghf/uiand auto-imported by the Nuxt module. -
bc37380: Add the
RadioGroupcomponentA single-choice control for a small, always-visible set of options, built on reka-ui's
radio group. Options render a labelledrole="radio"each (named via<label for>), with
vertical/horizontalorientations, per-optiondisabled, and an optionaloptionslot for
custom label content. It wiresid,aria-describedby,aria-invalid, andaria-required
through the shareduseFieldControlcontract, and is exported from@myghf/ui(and
auto-imported by the Nuxt module). -
c63df0f: Add the
SwitchcomponentA boolean on/off toggle built on reka-ui with
sm/defaultsizes,disabled, and
invalid/requiredprops. It wiresid,aria-describedby,aria-invalid, and
aria-requiredthrough the shareduseFieldControlcontract, animates its thumb with logical
translation for RTL, and is exported from@myghf/ui(and auto-imported by the Nuxt module).
Also corrects the staleCheckboxdocs now that it consumes the form-field context. -
4d70147: DataTable: column visibility, order, pinning, and resizing
- Register TanStack's
columnVisibilityFeature,columnOrderingFeature,columnPinningFeature,
columnSizingFeature, andcolumnResizingFeature. - New
v-modelbindings:column-visibility(id → visible),column-order(ids), and
column-pinning({ start, end }). Pinning is logical, so pinned cells stick with
inset-inline-start/inset-inline-endand mirror under RTL. - New
resizableprop renders drag handles on each header (double-click resets a column's size).
- Register TanStack's
-
0bfa4af: DataTable keyboard expansion + CSV export utilities
DataTablenow renders a leading expander button per row whenexpandable, a real
<button>witharia-expandedand anaria-label(expandRowLabel). Row expansion is no
longer pointer-only.- Add
toCsvanddownloadCsv(with theCsvColumn/CsvOptionstypes): RFC 4180 CSV
serialization with a UTF-8 BOM by default, and a browser download helper that is a no-op
outside a DOM. Exported from@myghf/uiand auto-imported by the Nuxt module.
-
76f1220: DataTable: searching and column filters
- Register TanStack's
columnFilteringFeature+globalFilteringFeature(with the filtered row
model andfilterFns) inDataTableFeatures. - New
searchableprop renders a global search input bound withv-model:global-filter. - New
filtersprop (ColumnFiltersState) bound withv-model:filters; active filters render as
removable chips in the toolbar, with a Clear filters button (clearFiltersLabel). - New
noResultsLabeldistinguishes "no rows match your filters" from the empty state, and a
toolbarslot lets consumers add their own controls.
- Register TanStack's
-
50c84ef: DataTable: pagination and server-side mode
- New
paginateprop renders the pagination footer over the client-side rows, bound with
v-model:page-index/v-model:page-sizeand apageSizeOptionslist. - New
manualprop switches to server-side mode: TanStack skips client sorting, filtering, and
pagination;rowCountsupplies the server total, and the component emitsupdate:pageIndex/
update:pageSize(alongside the existingupdate:sorting/update:filters) for you to refetch. - A
paginationslot can replace the default footer. - Fix:
DataTableno longer caps the body at the default page size (10) — TanStack's paginated
row model is now handedpageSize: Infinityunlesspaginate/manualis set.
- New
-
ddd6a13: DataTable: row selection, bulk actions, and an error state
- Register TanStack's
rowSelectionFeature, soDataTableFeaturesnow includes row selection. - New
selectableprop adds a labelled checkbox column (header select-all + per-row), bound
withv-model:selection(a map keyed by row id) and emittingupdate:selection. - New
bulk-actionsslot renders a bar with the selected count while rows are selected,
receiving{ rows, clear }. - New
errorprop/slot replaces the body with an error message (unlessloading).
- Register TanStack's
-
635219b: DataTable: virtual scrolling
Set
maxHeightandvirtualtogether andDataTablerenders only the visible slice of rows
(plus a small overscan), padding the rest with spacer rows so the DOM stays small for very large
datasets. The windowing math lives in a new puresrc/lib/virtual.ts(virtualWindow). It assumes
a uniformrowHeight(configurable, default 40) and does not account for expansion rows. -
40e075a: Unify the form-field error wiring across every control
- Add
useFieldControl, a shared composable that resolves a control'sid,
aria-describedby,aria-invalid, andrequiredwith one consistent precedence
(explicit prop →FormFieldcontext → default). It is exported so custom controls can opt
into the same contract. Input,Textarea,Select, andPasswordnow use it (no behavior change).- Wire the remaining controls into the
FormFieldcontext:Checkbox,InputNumber,
SelectButton,DatePicker,TreeSelect, andTransferListacceptinvalid/required
(andidwhere missing) and associate their error text witharia-describedby. - Add specs for
TreeSelectandTransferList(previously untested) and extend the a11y
catalog to mount the field-wired controls.
- Add
-
f65d7bd: Add Hijri (Umm al-Qura) calendar support to DatePicker
- New
calendarprop ('gregory' | 'islamic-umalqura', default'gregory') lays the grid out,
labels the month, numbers the days, and formats the selected date in the chosen calendar. The
emittedmodelValuestays a GregorianDate. - New hijri utilities —
addDays,hijriParts,startOfHijriMonth,hijriMonthLength,
hijriMonthLabel,formatHijriDate(and theCalendarSystem/HijriPartstypes) — backed by
the platform'sIntlUmm al-Qura data. Exported from@myghf/uiand auto-imported by the Nuxt
module.
- New
-
8cadb17: Add locale number formatting helpers and an RTL source guard
- New
formatNumber,formatCurrency, andformatPercenthelpers: locale-awareIntlformatting
that falls back toString(value)on an invalid locale. Exported from@myghf/uiand
auto-imported by the Nuxt module. - Add
src/lib/rtlCoverage.spec.ts, a guard that fails when a component uses a physical
left/right utility (pl-,pr-,ml-,mr-,text-left,text-right,border-l-,
border-r-,rounded-l-,rounded-r-) instead of its logical equivalent.
- New
-
96f86e1: Add a localization layer (config provider + English/Arabic labels)
- New
createConfig/provideMyGhfConfig/useMyGhfConfig(plusmyghfConfigKeyand
defaultConfig): provide a{ locale, labels }config at the app root to localize built-in
control strings. Ships English and Arabic label sets, matching the locale's base language and
falling back to English. - Migrate the previously hardcoded strings to the config:
Select/Combobox"Clear selection",
Combobox"Show options",Password"Toggle password visibility",Toast/Dialog/Drawer
"Close",Drawer's title,TreeSelect"Clear",TransferList"Empty" and its four move
labels, andFormErrors' default title. Existing per-component label props still override.
- New
Patch Changes
-
40e075a: Add automated accessibility and contrast guards, and fix form-field wiring
- New axe-core accessibility catalog (
src/a11y.spec.ts) that mounts every public component and
fails on missing names, unlabelled controls, nested interactive elements, and broken ARIA. - New token contrast guard (
src/lib/contrast.spec.ts) asserting WCAG AA for body text and brand
tints, and pinning the documented brand exceptions so they cannot regress. Passwordnow consumes theFormFieldcontext, wiringid,required,aria-invalid, and
aria-describedby(the input previously had no associated label inside aFormField).TablePagination's page-size<select>now has an accessible name.TransferListrows no longer nest interactive controls; the option checkbox has an accessible
name and row labels use logicaltext-startso they follow the writing direction.- New PR-triggered CI workflow (
.github/workflows/ci.yml) running typecheck, tests, and the docs
build.
- New axe-core accessibility catalog (