Skip to content

3.0.0

Choose a tag to compare

@skerbis skerbis released this 14 Sep 17:12
· 3 commits to main since this release

First release under the new name

This addon was renamed from FriendsOfREDAXO/flatpickr to a11y_datetime_addon. The old repository is archived; development continues here.

BREAKING CHANGE

  • Package name (package.yml), PHP namespace (FriendsOfREDAXO\A11yDatetimeAddon), YForm value type name (a11y_datetime_addon), and file names changed. The CSS marker class is now .a11y_datetime / .a11y_datetime_range.
  • Named a11y_datetime_addon rather than plain a11y_datetime to avoid colliding with the vendor's own source checkout when both live side by side in the same REDAXO installation.
  • Existing YForm fields using the old flatpickr type are migrated automatically via a new install.php (idempotent SQL update on rex_yform_field.type_name) — no manual action needed.
  • A thin deprecated shim class rex_yform_value_flatpickr is kept for installations whose fields haven't run the migration yet.
  • Two data-* attributes were renamed: data-flatpickr-disable-callback → data-a11y-datetime-disable-callback, data-flatpickr-expert-json → data-a11y-datetime-expert-json.

Changed

  • boot.php and FrontendHelper now share one asset list (FrontendHelper::assetList()) instead of two independently maintained ones.
  • Init script simplified: single CSS class detection per picker type, dead window.flatpickr fallback removed (the vendor bundle always sets both globals).
  • YForm Manager form: the "year range as JSON" textarea replaced by two plain number fields (years back / years ahead) — no more manual JSON typing. Same simplification for direct HTML/module usage via data-yearRangePast / data-yearRangeFuture (JSON object attribute kept as fallback).

See CHANGELOG.md for the full list.