1
+ <div class =" ui5-multi-combobox--wrapper" >
2
+ <ui5-input id =" ui5-multi-combobox--input"
3
+ value =" {{ ctr.value }} "
4
+ placeholder =" {{ ctr.placeholder }} "
5
+ ?disabled ={{ ctr.disabled }}
6
+ ?readonly ={{ ctr.readonly }}
7
+ value-state =" {{ ctr.valueState }} "
8
+ show-suggestions
9
+ @ui5-input =" {{ ctr._inputLiveChange }} "
10
+ @ui5-change ={{ ctr._inputChange }}
11
+ @keydown =" {{ ctr._keydown }} " >
12
+
13
+ <ui5-tokenizer slot =" _beginContent"
14
+ show-more
15
+ class =" ui5-multi-combobox-tokenizer"
16
+ ?disabled =" {{ ctr.disabled }} "
17
+ @ui5-showMoreItemsPress =" {{ ctr._showMorePopover }} "
18
+ @ui5-tokenDelete =" {{ ctr._tokenDelete }} "
19
+ @focusout =" {{ ctr._tokenizerFocusOut }} "
20
+ >
21
+ {{ #each ctr.items }}
22
+ {{ #if this.selected }}
23
+ <ui5-token ?readonly =" {{ ../../ctr.readonly }} " class =" ui5-multi-combobox--token" data-ui5-id =" {{ this._id }} " >{{ this.textContent }} </ui5-token >
24
+ {{ /if }}
25
+ {{ /each }}
26
+ </ui5-tokenizer >
27
+
28
+ {{ #unless ctr.readonly }}
29
+ <ui5-icon src =" sap-icon://slim-arrow-down"
30
+ slot =" icon"
31
+ @ui5-press ={{ ctr._showAllItemsPopover }}
32
+ class =" {{ classes.icon }} "
33
+ ></ui5-icon >
34
+ {{ /unless }}
35
+ </ui5-input >
36
+
37
+ <ui5-popover
38
+ class =" ui5-multi-combobox-selected-items--popover"
39
+ horizontal-align =" Stretch"
40
+ hide-header
41
+ ?hide-arrow ={{ editable }}
42
+ placement-type =" Bottom" >
43
+ <ui5-list separators =" None" mode =" {{ selectedItemsListMode }} "
44
+ @ui5-selectionChange ={{ ctr._selectedItemsSelectionChange }} >
45
+ {{ #each ctr.items }}
46
+ {{ #if this.selected }}
47
+ <ui5-li type =" Active" data-ui5-token-id =" {{ this._id }} " .selected =" {{ ../../editable }} " >{{ this.textContent }} </ui5-li >
48
+ {{ /if }}
49
+ {{ /each }}
50
+ </ui5-list >
51
+ </ui5-popover >
52
+
53
+ <ui5-popover class =" ui5-multi-combobox-all-items--popover"
54
+ hide-header
55
+ hide-arrow
56
+ horizontal-align =" Stretch"
57
+ initial-focus =" ui5-multi-combobox--input"
58
+ horizontal-align =" Left"
59
+ placement-type =" Bottom"
60
+ @ui5-selectionChange ={{ ctr._allItemsSelectionChange }}
61
+ @ui5-afterClose ={{ ctr._afterAllPopoverClose }}
62
+ @ui5-afterOpen ={{ ctr._afterAllPopoverOpen }} >
63
+ <ui5-list separators =" None" mode =" MultiSelect" class =" ui5-multi-combobox-all-items-list" >
64
+ {{ #each ctr._filteredItems }}
65
+ <ui5-li type =" Active" ?selected ={{ this.selected }} data-ui5-token-id =" {{ this._id }} " >{{ this.textContent }} </ui5-li >
66
+ {{ /each }}
67
+ </ui5-list >
68
+ </ui5-popover >
69
+
70
+ </div >
0 commit comments