/
timelion_expression_input.html
38 lines (37 loc) · 1.3 KB
/
timelion_expression_input.html
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
<div
class="timelionExpressionInputContainer"
role="combobox"
aria-expanded="{{functionSuggestions.isVisible}}"
aria-owns="timelionSuggestionList"
aria-haspopup="true"
>
<!-- The `role=textbox` is required by VoiceOver to properly detect the autocompletion.
For some reasons it doesn't work without it (even though the default role of
the element is textbox anyway). -->
<textarea
data-expression-input
role="textbox"
rows="{{ rows }}"
class="timelionExpressionInput kuiTextArea fullWidth"
placeholder="Try a query with .es(*)"
ng-model="sheet"
ng-focus="onFocusInput()"
ng-keydown="onKeyDownInput($event)"
ng-keyup="onKeyUpInput($event)"
ng-blur="onBlurInput()"
ng-mousedown="onMouseDownInput()"
ng-mouseup="onMouseUpInput()"
aria-label="Timelion expression"
aria-multiline="false"
aria-autocomplete="list"
aria-controls="timelionSuggestionList"
aria-activedescendant="{{ getActiveSuggestionId() }}"
></textarea>
<timelion-expression-suggestions
ng-show="functionSuggestions.isVisible"
suggestions="functionSuggestions.list"
selected-index="functionSuggestions.index"
on-click-suggestion="onClickSuggestion(suggestionIndex)"
should-popover="shouldPopoverSuggestions"
></timelion-expression-suggestions>
</div>