-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui5-timepicker, ui5-duration-picker): enable width customization (#…
…1669) Several issues has been resolved with this change: - the input field now expands together with the host tag - the Popover with the time sliders remains the same, when the input gets bigger - the TimePicker on phone used to have a header with a close button that is not supposed to be displayed, the component has a cancel button in the footer, this default header is meant for other components. FIXES: #1659
- Loading branch information
Showing
8 changed files
with
82 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
<div class="ui5-duration-picker-root"> | ||
<ui5-input | ||
value="{{value}}" | ||
?disabled="{{disabled}}" | ||
?readonly="{{readonly}}" | ||
value-state="{{valueState}}" | ||
@ui5-change="{{_handleInputChange}}" | ||
@ui5-input="{{_handleInputLiveChange}}" | ||
@keydown="{{_onkeydown}}" | ||
> | ||
{{#unless readonly}} | ||
<ui5-icon | ||
slot="icon" | ||
name="fob-watch" | ||
tabindex="-1" | ||
show-tooltip | ||
@click="{{togglePicker}}" | ||
input-icon | ||
?pressed="{{_isPickerOpen}}" | ||
class="ui5-duration-picker-input-icon-button" | ||
></ui5-icon> | ||
{{/unless}} | ||
</ui5-input> | ||
<ui5-input | ||
value="{{value}}" | ||
?disabled="{{disabled}}" | ||
?readonly="{{readonly}}" | ||
value-state="{{valueState}}" | ||
@ui5-change="{{_handleInputChange}}" | ||
@ui5-input="{{_handleInputLiveChange}}" | ||
@keydown="{{_onkeydown}}" | ||
class="ui5-duration-picker-input" | ||
> | ||
{{#unless readonly}} | ||
<ui5-icon | ||
slot="icon" | ||
name="fob-watch" | ||
tabindex="-1" | ||
show-tooltip | ||
@click="{{togglePicker}}" | ||
input-icon | ||
?pressed="{{_isPickerOpen}}" | ||
class="ui5-duration-picker-input-icon-button" | ||
></ui5-icon> | ||
{{/unless}} | ||
</ui5-input> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
<ui5-responsive-popover | ||
allow-target-overlap="{{_respPopover.allowTargetOverlap}}" | ||
placement-type="{{_respPopover.placementType}}" | ||
no-arrow | ||
allow-target-overlap="{{_respPopover.allowTargetOverlap}}" | ||
placement-type="{{_respPopover.placementType}}" | ||
_hide-header | ||
horizontal-align="{{_respPopover.horizontalAlign}}" | ||
stay-open-on-scroll="{{_respPopover.stayOpenOnScroll}}" | ||
@ui5-afterClose="{{_respPopover._onAfterClose}}" | ||
@keydown="{{_handleKeysDown}}" | ||
|
||
no-arrow | ||
no-stretch | ||
horizontal-align="{{_respPopover.horizontalAlign}}" | ||
stay-open-on-scroll="{{_respPopover.stayOpenOnScroll}}" | ||
@ui5-afterClose="{{_respPopover._onAfterClose}}" | ||
@keydown="{{_handleKeysDown}}" | ||
> | ||
<div class="{{classes.container}}"> | ||
{{#unless hideHours}} | ||
<ui5-wheelslider | ||
cyclic="true" | ||
._items="{{hoursArray}}" | ||
value="{{selectedHours}}" | ||
class="ui5-duration-picker-wheelslider ui5-duration-picker-hours-wheelslider" | ||
label = "{{hoursSliderTitle}}" | ||
></ui5-wheelslider> | ||
{{/unless}} | ||
<div class="{{classes.container}}"> | ||
{{#unless hideHours}} | ||
<ui5-wheelslider | ||
cyclic="true" | ||
._items="{{hoursArray}}" | ||
value="{{selectedHours}}" | ||
class="ui5-duration-picker-wheelslider ui5-duration-picker-hours-wheelslider" | ||
label = "{{hoursSliderTitle}}" | ||
></ui5-wheelslider> | ||
{{/unless}} | ||
|
||
{{#unless hideMinutes}} | ||
<ui5-wheelslider | ||
cyclic="true" | ||
._items="{{minutesArray}}" | ||
value="{{selectedMinutes}}" | ||
class="ui5-duration-picker-wheelslider ui5-duration-picker-minutes-wheelslider" | ||
label = "{{minutesSliderTitle}}" | ||
></ui5-wheelslider> | ||
{{/unless}} | ||
{{#unless hideMinutes}} | ||
<ui5-wheelslider | ||
cyclic="true" | ||
._items="{{minutesArray}}" | ||
value="{{selectedMinutes}}" | ||
class="ui5-duration-picker-wheelslider ui5-duration-picker-minutes-wheelslider" | ||
label = "{{minutesSliderTitle}}" | ||
></ui5-wheelslider> | ||
{{/unless}} | ||
|
||
{{#unless hideSeconds}} | ||
<ui5-wheelslider | ||
cyclic="true" | ||
._items="{{secondsArray}}" | ||
value="{{selectedSeconds}}" | ||
class="ui5-duration-picker-wheelslider ui5-duration-picker-seconds-wheelslider" | ||
label = "{{secondsSliderTitle}}" | ||
></ui5-wheelslider> | ||
{{/unless}} | ||
</div> | ||
{{#unless hideSeconds}} | ||
<ui5-wheelslider | ||
cyclic="true" | ||
._items="{{secondsArray}}" | ||
value="{{selectedSeconds}}" | ||
class="ui5-duration-picker-wheelslider ui5-duration-picker-seconds-wheelslider" | ||
label = "{{secondsSliderTitle}}" | ||
></ui5-wheelslider> | ||
{{/unless}} | ||
</div> | ||
|
||
<div slot="footer" class="ui5-duration-picker-footer" @keydown={{_onfooterkeydown}}> | ||
<ui5-button id="submit" design="Emphasized" @click="{{submitPickers}}">{{submitButtonLabel}}</ui5-button> | ||
<ui5-button id="close" design="Transparent" @click="{{togglePicker}}">{{cancelButtonLabel}}</ui5-button> | ||
</div> | ||
<div slot="footer" class="ui5-duration-picker-footer" @keydown={{_onfooterkeydown}}> | ||
<ui5-button id="submit" design="Emphasized" @click="{{submitPickers}}">{{submitButtonLabel}}</ui5-button> | ||
<ui5-button id="close" design="Transparent" @click="{{togglePicker}}">{{cancelButtonLabel}}</ui5-button> | ||
</div> | ||
</ui5-responsive-popover> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters