* Add time-based conditional visibility for cards
* Move clearTimeout outside of scheduleUpdate
* Add time string validation
* Add time string validation
* Remove runtime validation as config shouldnt allow bad values
* Fix for midnight crossing
* Cap timeout to 32-bit signed integer
* Add listener tests
* Additional tests
* Format
* Refactor ConditionalListenerMixin and extract shared utilities
* Remove
* Use proper type
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
* Import
* Fix typing
* Docstrings
* Use generic types and refactor visibility handling
* Fix function signature and handle other keys separately
---------
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
* Update media query to new APIs
* Refactor conditional rendering
* Cleanup
* Restore original functionality
* Restore
* Reduce
* Reduce
* Reduce
* Restore legacy code while we still support them
* Clear conditional listeners before setting up again