ni / nimble

The NI Nimble Design System
https://nimble.ni.dev
MIT License
29 stars 9 forks source link

Custom filtering Angular #2218

Open atmgrifter00 opened 5 days ago

atmgrifter00 commented 5 days ago

Pull Request

๐Ÿคจ Rationale

๐Ÿ‘ฉโ€๐Ÿ’ป Implementation

Primarily this is just exposing the needed attribute for controlling the visibility of the loading indicator for the Select in Angular, accompanied with an update to the example application showing how to manage dynamic options.

However, in the making of the example it became clear that a change to the Select web component was needed to make the client experience cleaner. Now, when the filter-input event is issued as part of the action of changing the value, the change event will occur first, followed by the filter-input event. This required not tying the emitting of the filter-input event to the updating of the open attribute, as we will still update the open state prior to issuing the change event.

๐Ÿงช Testing

Wrote new tests validating the new expected event ordering. Added typical Angular tests for new attribute.

โœ… Checklist