Repository navigation
3.0.0
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_addonrather than plaina11y_datetimeto 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
flatpickrtype are migrated automatically via a newinstall.php(idempotent SQL update onrex_yform_field.type_name) — no manual action needed. - A thin deprecated shim class
rex_yform_value_flatpickris 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.phpandFrontendHelpernow share one asset list (FrontendHelper::assetList()) instead of two independently maintained ones.- Init script simplified: single CSS class detection per picker type, dead
window.flatpickrfallback 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.