-
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.
feat(ui5-time-picker): Redesign the Time Picker component according t…
…o the new design (#6818) * WIP(ui5-time-picker-clock): initial implementation * feat(ui5-time-picker-clock): initial implementation * feat(ui5-time-picker-clock) mark component as private * time selection with clocks - updated main * optimization and time selection methods integration, part 1 * wip(ui5-time-picker): replace sliders with clocks * feat(ui5-time-picker): fix lint errors * add initial tests * feat(ui5-time-picker): fix comments and add tests * feat(ui5-time-picker): fix comments * feat(ui5-time-picker): fix comments and tests * feat(ui5-time-picker): fix latest comments * feat(ui5-time-picker): fix comments for tests and global event
- Loading branch information
1 parent
12ffea6
commit 1d910cf
Showing
22 changed files
with
3,242 additions
and
88 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<div | ||
id="{{_id}}" | ||
ondragstart="return false;" | ||
ondrop="return false;" | ||
aria-hidden="true" | ||
class="{{classes.clock}}" | ||
> | ||
<div | ||
data-label="{{label}}" | ||
class="ui5-tp-clock-dial" | ||
> | ||
</div> | ||
|
||
<div> | ||
{{#each _items}} | ||
<div class="ui5-tp-clock-item" style="{{this.outerStyles}}"> | ||
{{#if this.item}} | ||
<span class="ui5-tp-clock-dot"></span> | ||
<span id="{{../_id}}-{{this.item}}" class="ui5-tp-clock-number" style="{{this.innerStyles}}">{{this.item}}</span> | ||
{{#if this.innerItem}} | ||
<span id="{{../_id}}-{{this.innerItem}}" class="ui5-tp-clock-number" style="{{this.innerStyles}}">{{this.innerItem}}</span> | ||
{{/if}} | ||
{{else unless ../hideFractions}} | ||
<span class="ui5-tp-clock-mid-dot"></span> | ||
{{/if}} | ||
</div> | ||
{{/each}} | ||
|
||
{{#if _selectedItem.showMarker}} | ||
<div class="ui5-tp-clock-item" style="{{_selectedItem.outerStyles}}" marker> | ||
<div class="ui5-tp-clock-marker"></div> | ||
<div class="{{_selectedItem.itemClasses}}" style="{{_selectedItem.innerStyles}}">{{_selectedItem.item}}</div> | ||
<div id="{{_id}}-selected" class="{{_selectedItem.innerItemClasses}}" style="{{_selectedItem.innerStyles}}">{{_selectedItem.innerItem}}</div> | ||
</div> | ||
{{/if}} | ||
|
||
</div> | ||
|
||
<div | ||
class="ui5-tp-clock-cover" | ||
@touchstart="{{_onTouchStart}}" | ||
@touchmove="{{_onTouchMove}}" | ||
@touchend="{{_onTouchEnd}}" | ||
@mousedown="{{_onTouchStart}}" | ||
@mousemove="{{_onTouchMove}}" | ||
@mouseup="{{_onTouchEnd}}" | ||
@mouseout="{{_onMouseOut}}" | ||
@mousewheel="{{_onMouseWheel}}" | ||
@DOMMouseScroll="{{_onMouseWheel}}" | ||
></div> | ||
</div> |
Oops, something went wrong.