Skip to content

Commit

Permalink
feat(ui5-timepicker): implement new component (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsanislavgatev committed Mar 24, 2020
1 parent 736080f commit 56e39bc
Show file tree
Hide file tree
Showing 33 changed files with 1,713 additions and 7 deletions.
2 changes: 2 additions & 0 deletions packages/main/bundle.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ import TableCell from "./dist/TableCell.js";
import TextArea from "./dist/TextArea.js";
import Timeline from "./dist/Timeline.js";
import TimelineItem from "./dist/TimelineItem.js";
import TimePicker from "./dist/TimePicker.js";
import Title from "./dist/Title.js";
import Toast from "./dist/Toast.js";
import ToggleButton from "./dist/ToggleButton.js";



import List from "./dist/List.js";
import StandardListItem from "./dist/StandardListItem.js";
import CustomListItem from "./dist/CustomListItem.js";
Expand Down
24 changes: 24 additions & 0 deletions packages/main/src/TimePicker.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<div id="{{this._id}}" class="ui5-timepicker-root" @keydown="{{_ontimepickerkeydown}}">
<ui5-input
id="{{_id}}-inner"
value="{{value}}"
?disabled="{{disabled}}"
?readonly="{{readonly}}"
value-state="{{valueState}}"
@ui5-change="{{_handleInputChange}}"
@ui5-input="{{_handleInputLiveChange}}"
>
{{#unless readonly}}
<ui5-icon
slot="icon"
name="time-entry-request"
tabindex="-1"
show-tooltip
@click="{{togglePicker}}"
input-icon
?pressed="{{_isPickerOpen}}"
class="ui5-timepicker-input-icon-button"
></ui5-icon>
{{/unless}}
</ui5-input>
</div>

0 comments on commit 56e39bc

Please sign in to comment.