Closed sun-mota closed 6 days ago
This PR adds the auro-menu component to the project, including its implementation, build scripts, documentation, and tests. The menu component provides users with a list of selectable options and supports features like nested menus, disabled states, keyboard navigation, and custom events.
classDiagram
class AuroMenu {
-String value
-Object optionSelected
-String matchWord
-Boolean noCheckmark
-Boolean ready
-Object optionActive
-Boolean rootMenu
-AuroLibraryRuntimeUtils runtimeUtils
-String nestingSpacer
+resetOptionsStates()
+makeSelection()
+selectNextItem(String moveDirection)
+selectByValue(String value)
+updateActiveOption(int index)
+handleSlotItems()
+notifyReady()
}
class AuroMenuOption {
-Boolean nocheckmark
-Boolean disabled
-Boolean selected
-String value
-Number tabIndex
-AuroLibraryRuntimeUtils runtimeUtils
+generateIconHtml(String svgContent)
}
AuroMenu --> AuroMenuOption : uses
AuroMenuOption --> AuroIcon : uses
AuroMenuOption --> AuroLibraryRuntimeUtils : uses
AuroMenu --> AuroLibraryRuntimeUtils : uses
AuroMenu --> AuroMenuOption : contains
AuroMenuOption --> AuroIcon : contains
Change | Details | Files |
---|---|---|
Add auro-menu and auro-menuoption component implementations |
|
components/menu/src/auro-menu.js components/menu/src/auro-menuoption.js components/menu/src/style-menu.scss components/menu/src/style-menuoption.scss components/menu/src/color-menu.scss components/menu/src/color-menuoption.scss |
Add build configuration and scripts for menu component |
|
package.json |
Add comprehensive documentation and examples |
|
components/menu/docs/api.md components/menu/demo/api.md components/menu/docs/partials/description.md components/menu/docs/partials/useCases.md components/menu/apiExamples/*.html |
Add test suite for menu component |
|
components/menu/test/auro-menu.test.js |
Fix input component clear functionality |
|
components/input/src/base-input.js components/input/test/auro-input.test.js |
Issue | Objective | Addressed | Explanation |
---|---|---|---|
#28 | Add menu component to the project | ✅ |
Alaska Airlines Pull Request
close #28
adding
auro-menu@4.1.4
toauro-formkit
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 a new 'auro-menu' component to the project, complete with build scripts, documentation, and tests to support its integration and usage.
New Features:
Enhancements:
Documentation:
Tests: