Michael created this task. Michael added projects: Wikidata Query Builder, Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION Similar to TextInput component <https://github.com/wmde/wikit/blob/master/vue-components/src/components/TextInput.vue>. - Validation should happen on every keystroke. - Use validation created in T275113 <https://phabricator.wikimedia.org/T275113>. - Emit event if input is invalid so that the consuming application can react to it - Maybe emit event if input is valid? **Error message handling** - Either let the consuming application provide the error message when it receives the error event - Or have it always provide the validation-error message via a prop and have this component decide when to show it **Storybook:** [ ] The extended number input component will be included in its own Storybook page, under the section "Wikibase components": [ ] Basic (controllable story displaying a single number input: Controls should allow users to modify the label and placeholder texts) [ ] All (story displaying all number input states for visual regression testing purposes) NOTE: The name is still open: ExtendedNumberInput or WikibaseNumberInput or PrecisionNumberComponent or what you come up with TASK DETAIL https://phabricator.wikimedia.org/T275114 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Michael Cc: Aklapper, Michael, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs