Closed jason-capsule42 closed 1 week ago
This PR adds support for three new date input formats: month (MM), year (YY), and full year (YYYY). The implementation extends the existing date input functionality by adding new type configurations, validation rules, and corresponding UI examples.
classDiagram
class BaseInput {
+String[] supportedTypes
+String[] autoFormattingTypes
+String inputMode
+String setCustomValidityForType
+int dateStrLength
+String helpText
+String placeholder
+void configureInput(String type)
+void setCustomValidity(String type)
+void setDateStrLength(String type)
+void setHelpText(String type)
+String getPlaceholder(String type)
}
note for BaseInput "Added support for 'month', 'year', and 'fullYear' types"
classDiagram
class AuroInput {
+boolean isDateType()
+void render()
}
AuroInput --|> BaseInput
note for AuroInput "Added isDateType method to check for new date types"
Change | Details | Files |
---|---|---|
Added new date input types to the base configuration |
|
src/base-input.js |
Implemented validation and formatting logic for new date types |
|
src/base-input.js |
Updated component UI and documentation |
|
demo/api.md docs/partials/api.md apiExamples/month.html apiExamples/year.html apiExamples/fullYear.html |
Refactored date type detection logic |
|
src/auro-input.js |
:tada: This PR is included in version 4.2.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Alaska Airlines Pull Request
Type of change:
Please delete options that are not relevant.
Checklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Add support for new date formats 'month', 'year', and 'fullYear' in the input component and update the documentation with examples for these formats.
New Features:
Documentation: