-
Notifications
You must be signed in to change notification settings - Fork 274
/
Copy pathTimeSelectionClocks.hbs
75 lines (73 loc) · 1.82 KB
/
TimeSelectionClocks.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<div
id="{{_id}}"
class="ui5-time-picker-tsc-container"
tabindex="-1"
@keydown={{_onkeydown}}
@keyup={{_onkeyup}}
@focusin={{_clocksFocusIn}}
@focusout={{_clocksFocusOut}}
format-pattern="{{formatPattern}}"
>
<div
class="ui5-time-picker-tsc-buttons"
>
{{#each _entities}}
{{#if this.hasSeparator}}
<span separator>:</span>
{{/if}}
<ui5-toggle-spin-button
id="{{../_id}}_button_{{this.entity}}"
data-sap-clock="{{this.entity}}"
.valueMin="{{this.attributes.min}}"
.valueMax="{{this.attributes.max}}"
.valueNow="{{this.value}}"
.valueText="{{this.textValue}}"
.accessibleName="{{this.label}}"
.pressed="{{this.active}}"
?focused="{{this.focused}}"
@focusin="{{../_buttonFocusIn}}"
>{{this.stringValue}}</ui5-toggle-spin-button>
{{/each}}
{{#if _periods.length}}
<span separator> </span>
<ui5-segmented-button
id="{{_id}}_AmPm"
@click={{_periodChange}}
@focusin={{_amPmFocusIn}}
@focusout={{_amPmFocusOut}}
>
{{#each _periods}}
<ui5-segmented-button-item
?selected={{this.selected}}
>
{{this.label}}
</ui5-segmented-button-item>
{{/each}}
</ui5-segmented-button>
{{/if}}
</div>
<div
class="ui5-time-picker-tsc-clocks"
role="img"
aria-label="{{clockDialAriaLabel}}"
>
{{#each _entities}}
<ui5-time-picker-clock
id="{{../_id}}_clock_{{this.entity}}"
data-sap-clock="{{this.entity}}"
.active="{{this.active}}"
.label="{{this.label}}"
.itemMin="{{this.itemMin}}"
.itemMax="{{this.itemMax}}"
.selectedValue="{{this.value}}"
.displayStep="{{this.displayStep}}"
.valueStep="{{this.attributes.step}}"
.lastItemReplacement="{{this.lastItemReplacement}}"
.showInnerCircle="{{this.showInnerCircle}}"
.prependZero="{{this.prependZero}}"
@ui5-change={{../_clockChange}}
>
</ui5-time-picker-clock>
{{/each}}
</div>
</div>