Open sun-mota opened 1 week ago
This PR adds select@3.3.0 to Auro-formkit, introducing a new select component that uses auro-formkit/menu and auro-dropdown@3.2.0. The implementation includes comprehensive component files, tests, documentation, and styling for the select, menu, and checkbox components.
classDiagram
class AuroSelect {
+String validity
+String setCustomValidity
+String setCustomValidityCustomError
+String setCustomValidityValueMissing
+String error
+Boolean noValidate
+Boolean required
+Boolean flexMenuWidth
+String placeholder
+String value
+Boolean disabled
+Boolean noCheckmark
+Object optionSelected
+slot label
+slot helpText
+auroSelect-ready()
+auroSelect-valueSet()
+auroFormElement-validated()
+register(name="auro-select")
+updateDisplayedValue(option)
+configureDropdown()
+configureMenu()
+configureSelect()
+handleFocusin()
+notifyReady()
+checkReadiness()
+generateOptionsArray()
+readyActions()
+performUpdate()
+firstUpdated()
+updated(changedProperties)
+labelForSr()
}
AuroSelect --> AuroDropdown
AuroSelect --> AuroMenu
AuroSelect --> AuroFormValidation
AuroSelect --> AuroLibraryRuntimeUtils
AuroSelect --> AuroDependencyVersioning
classDiagram
class BaseInput {
+String[] dateTypes
+String[] autoFormattingTypes
+handleClickClear()
+setCustomValidityForType
+dateStrLength
+helpText
+placeholder
}
note for BaseInput "Added new date types: 'month', 'year', 'fullYear'"
note for BaseInput "Updated handleClickClear to set value to an empty string"
Change | Details | Files |
---|---|---|
Added new select component with menu and dropdown integration |
|
components/select/src/auro-select.js components/select/src/style.scss components/select/src/color.scss |
Added menu component implementation |
|
components/menu/src/auro-menu.js components/menu/src/auro-menuoption.js components/menu/src/style-menu.scss components/menu/src/style-menuoption.scss |
Added checkbox component implementation |
|
components/checkbox/src/auro-checkbox.js components/checkbox/src/auro-checkbox-group.js components/checkbox/src/auro-checkbox.scss components/checkbox/src/auro-checkbox-group.scss |
Added comprehensive test coverage |
|
components/select/test/auro-select.test.js components/menu/test/auro-menu.test.js components/checkbox/test/auro-checkbox.test.js |
Added documentation and examples |
|
components/select/docs/api.md components/menu/docs/api.md components/checkbox/docs/api.md components/select/demo/index.md components/menu/demo/index.md components/checkbox/demo/index.md |
Alaska Airlines Pull Request
This is to add Auro-select into Auro-formkit This select is using
auro-formkit/menu
and@aurodesignsystem/auro-dropdown@3.2.0
currently and will have another PR of a revision to replace the use of@aurodesignsystem/auro-dropdown@3.2.0
toauro-formkit/dropdown
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I have performed a self-review of my own update.
Summary by Sourcery
Add the auro-select component to the project, integrating it with auro-menu and auro-dropdown to provide a comprehensive dropdown menu solution. Enhance the auro-input component with new date input types and improve validation. Update build scripts and dependencies to support new components and ensure compatibility. Expand documentation and tests to cover new features and changes.
New Features:
Enhancements:
Build:
Documentation:
Tests: