feat(ui5-number-input): introduce NumberInput component#13799
feat(ui5-number-input): introduce NumberInput component#13799GDamyanov wants to merge 14 commits into
Conversation
👋 Heads-up: dev close is in effectThanks for the contribution! This repository is currently in dev close ahead of release This PR appears to introduce public-API changes (detected by diffing the Custom Elements Manifest against the latest published version on npm):
Could you please hold off on merging into If this change must ship in the current release, please request a review from one or two members of @UI5/ui5-team-webc so the team can sign off explicitly.
Posted automatically by the Dev Close Notice workflow. |
|
🚀 Deployed on https://pr-13799--ui5-webcomponents-preview.netlify.app |
Summary
Introduces a new
ui5-number-inputcomponent as the dedicated numeric input primitive, and refactorsui5-step-inputto be built on top of it.New Component:
ui5-number-inputA numeric input field
ui5-number-inputhas been extracted as a standalone component. It handles all numeric input logic internally:_showStepButtons)Refactored: ui5-step-input
ui5-step-inputis now a thin wrapper aroundui5-number-input, delegating all numeric logic to itA new private property is added in the
ui5-number-input:_showStepButtonsis a @Private, noAttribute boolean property onui5-number-input(defaults to false) that controls whether the increment/decrement buttons are rendered. When false,ui5-number-inputrenders as a plain numeric input with no step buttons — suitable for standalone use.ui5-step-inputsets_showStepButtons={true}in its template, which activates the buttons and the associated CSS modifier class (ui5-number-input-root--with-buttons). This means the step button UI lives entirely insideui5-number-input;ui5-step-inputdoes not render any buttons of its own.