|
1 | 1 | <div
|
2 | 2 | class="{{classes.wrapper}}"
|
3 | 3 | dir="{{rtl}}"
|
4 |
| - @keydown={{_onkeydown}} |
5 | 4 | >
|
6 | 5 | <div class="ui5-shellbar-overflow-container ui5-shellbar-overflow-container-left">
|
7 | 6 |
|
|
14 | 13 | {{/unless}}
|
15 | 14 |
|
16 | 15 | {{#if showArrowDown}}
|
17 |
| - <button tabindex="0" class="{{classes.button}}" @click="{{_header.press}}"> |
| 16 | + <button tabindex="{{menuBtnTabindex}}" class="{{classes.button}}" @click="{{_header.press}}"> |
18 | 17 | {{#if interactiveLogo}}
|
19 | 18 | <img class="ui5-shellbar-logo" src="{{logo}}" @click="{{_logoPress}}" />
|
20 | 19 | {{/if}}
|
|
34 | 33 |
|
35 | 34 | <div class="ui5-shellbar-overflow-container ui5-shellbar-overflow-container-middle">
|
36 | 35 | {{#if showCoPilot}}
|
37 |
| - {{> coPilot}} |
| 36 | + <div class="ui5-shellbar-copilot-wrapper" |
| 37 | + tabindex="0" |
| 38 | + @keydown="{{_coPilotKeydown}}" |
| 39 | + @keyup="{{_coPilotKeyup}}" |
| 40 | + ?active="{{coPilotActive}}"> |
| 41 | + {{> coPilot}} |
| 42 | + </div> |
38 | 43 | {{else}}
|
39 | 44 | <span class="ui5-shellbar-co-pilot-placeholder"></span>
|
40 | 45 | {{/if}}
|
41 | 46 | </div>
|
42 | 47 |
|
43 |
| - <div class="ui5-shellbar-overflow-container ui5-shellbar-overflow-container-right"> |
44 |
| - |
45 |
| - <div class="ui5-shellbar-overflow-container-right-child"> |
46 |
| - {{#each _itemsInfo}} |
47 |
| - {{#if this.icon}} |
48 |
| - <ui5-icon |
49 |
| - tabindex="{{this._tabIndex}}" |
50 |
| - data-count="{{this.count}}" |
51 |
| - data-ui5-notification-count="{{../notificationCount}}" |
52 |
| - data-ui5-external-action-item-id="{{this.refItemid}}" |
53 |
| - class="{{this.classes}}" |
54 |
| - name="{{this.icon}}" |
55 |
| - id="{{this.id}}" |
56 |
| - style="{{this.style}}" |
57 |
| - @click={{this.press}}> |
58 |
| - </ui5-icon> |
59 |
| - {{else}} |
60 |
| - <slot |
61 |
| - name="profile" |
62 |
| - id="{{this.id}}" |
63 |
| - style="{{this.style}}" |
64 |
| - class="{{this.classes}}" |
65 |
| - tabindex="{{this._tabIndex}}" |
66 |
| - @click={{this.press}} |
67 |
| - ></slot> |
68 |
| - {{/if}} |
69 |
| - {{/each}} |
70 |
| - </div> |
71 |
| - </div> |
72 |
| - |
73 | 48 | <div id="{{_id}}-searchfield-wrapper"
|
74 | 49 | class="ui5-shellbar-search-field"
|
75 | 50 | style="{{styles.searchField}}"
|
|
78 | 53 | <slot name="searchField"></slot>
|
79 | 54 | {{/if}}
|
80 | 55 | </div>
|
| 56 | + |
| 57 | + <div class="ui5-shellbar-overflow-container ui5-shellbar-overflow-container-right"> |
| 58 | + |
| 59 | + <div class="ui5-shellbar-overflow-container-right-child"> |
| 60 | + |
| 61 | + {{#if hasSearchField}} |
| 62 | + <ui5-button |
| 63 | + id="{{this._id}}-item-1" |
| 64 | + class="{{classes.items.search}} ui5-shellbar-button ui5-shellbar-search-button" |
| 65 | + icon="sap-icon://search" |
| 66 | + data-ui5-text="Search" |
| 67 | + data-ui5-notification-count="{{notificationCount}}" |
| 68 | + @click={{_handleSearchIconPress}} |
| 69 | + ></ui5-button> |
| 70 | + {{/if}} |
| 71 | + |
| 72 | + {{#each customItemsInfo}} |
| 73 | + <ui5-button |
| 74 | + id="{{this.id}}" |
| 75 | + style="{{this.style}}" |
| 76 | + class="{{this.classes}}" |
| 77 | + icon="{{this.icon}}" |
| 78 | + data-count="{{this.count}}" |
| 79 | + data-ui5-notification-count="{{../notificationCount}}" |
| 80 | + data-ui5-external-action-item-id="{{this.refItemid}}" |
| 81 | + @click={{this.press}} |
| 82 | + ></ui5-button> |
| 83 | + {{/each}} |
| 84 | + |
| 85 | + {{#if showNotifications}} |
| 86 | + <ui5-button |
| 87 | + id="{{this._id}}-item-2" |
| 88 | + style="{{styles.items.notification}}" |
| 89 | + class="{{classes.items.notification}} ui5-shellbar-button ui5-shellbar-bell-button" |
| 90 | + icon="sap-icon://bell" |
| 91 | + data-ui5-text="Notifications" |
| 92 | + data-ui5-notification-count="{{notificationCount}}" |
| 93 | + @click={{_handleNotificationsPress}} |
| 94 | + ></ui5-button> |
| 95 | + {{/if}} |
| 96 | + |
| 97 | + <ui5-button |
| 98 | + id="{{this._id}}-item-5" |
| 99 | + style="{{styles.items.overflow}}" |
| 100 | + class="{{classes.items.overflow}} ui5-shellbar-button ui5-shellbar-overflow-button-shown ui5-shellbar-overflow-button" |
| 101 | + icon="sap-icon://overflow" |
| 102 | + @click="{{_handleOverflowPress}}" |
| 103 | + ></ui5-button> |
| 104 | + |
| 105 | + {{#if hasProfile}} |
| 106 | + <ui5-button |
| 107 | + profile-btn |
| 108 | + id="{{this._id}}-item-3" |
| 109 | + @click={{_handleProfilePress}} |
| 110 | + style="{{styles.items.profile}}" |
| 111 | + class="ui5-shellbar-button ui5-shellbar-image-button"> |
| 112 | + <slot |
| 113 | + name="profile" |
| 114 | + ></slot> |
| 115 | + </ui5-button> |
| 116 | + {{/if}} |
| 117 | + |
| 118 | + {{#if showProductSwitch}} |
| 119 | + <ui5-button |
| 120 | + id="{{this._id}}-item-4" |
| 121 | + style="{{styles.items.product}}" |
| 122 | + class="{{classes.items.product}} ui5-shellbar-button ui5-shellbar-button-product-switch" |
| 123 | + icon="sap-icon://grid" |
| 124 | + data-ui5-text="Product Switch" |
| 125 | + @click={{_handleProductSwitchPress}} |
| 126 | + ></ui5-button> |
| 127 | + {{/if}} |
| 128 | + </div> |
| 129 | + </div> |
81 | 130 | </div>
|
82 | 131 |
|
83 | 132 | {{#*inline "coPilot"}}
|
84 |
| - <svg @click="{{_coPilotPress}}" width="44" height="44" viewBox="-150 -150 300 300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="ui5-shellbar-coPilot"> |
| 133 | + <svg @click="{{_coPilotClick}}" focusable="false" width="44" height="44" viewBox="-150 -150 300 300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="ui5-shellbar-coPilot"> |
85 | 134 | <defs>
|
86 | 135 | <linearGradient id="f" x1="0%" x2="100%" y1="100%" y2="0%"><stop offset="0%" stop-color="#c0d9f2" stop-opacity=".87"/><stop offset="80%" stop-color="#fff" stop-opacity=".87"/></linearGradient>
|
87 | 136 | <linearGradient id="e" x1="0%" x2="100%" y1="100%" y2="0%"><stop offset="0%" stop-color="#b4d2ff" stop-opacity=".16"/><stop offset="80%" stop-color="#fff" stop-opacity=".16"/></linearGradient>
|
|
0 commit comments