@sapudex/web-components 2.33.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/specs/FilterMenu.cy.tsx +53 -0
- package/cypress/specs/ListItem.cy.tsx +48 -0
- package/cypress/specs/MastheadMenu.cy.tsx +564 -0
- package/cypress/specs/MastheadMobileMenu.cy.tsx +573 -0
- package/cypress/specs/SelectBox.cy.tsx +63 -0
- package/dist/ListItem.d.ts +3 -0
- package/dist/ListItem.js +10 -1
- package/dist/ListItem.js.map +1 -1
- package/dist/ListItemBase.d.ts +29 -0
- package/dist/ListItemBase.js +22 -0
- package/dist/ListItemBase.js.map +1 -1
- package/dist/MastheadItem.d.ts +2 -1
- package/dist/MastheadItem.js.map +1 -1
- package/dist/MastheadMenu.d.ts +2 -1
- package/dist/MastheadMenu.js.map +1 -1
- package/dist/SearchableListBase.d.ts +3 -1
- package/dist/SearchableListBase.js +7 -1
- package/dist/SearchableListBase.js.map +1 -1
- package/dist/SelectBase.js +4 -2
- package/dist/SelectBase.js.map +1 -1
- package/dist/assets/{InputSuggestions-B_Dl2L6w.js → InputSuggestions-Bz7HZXUc.js} +1 -1
- package/dist/assets/{ListItemStandardExpandableTextTemplate-9Z-aZmJx.js → ListItemStandardExpandableTextTemplate-CjE7hAvu.js} +1 -1
- package/dist/assets/{bundle-DbTEs-Za.css → bundle-JYo3bV8v.css} +1 -1
- package/dist/assets/{bundle.esm-BlIxH9k1.js → bundle.esm-mAR7ytdB.js} +216 -216
- package/dist/css/themes/ListItem.css +1 -1
- package/dist/css/themes/MastheadMenu.css +1 -1
- package/dist/css/themes/MastheadMobileMenu.css +1 -1
- package/dist/css/themes/RatingIndicator.css +1 -1
- package/dist/css/themes/Slider.css +1 -1
- package/dist/custom-elements-internal.json +1113 -23
- package/dist/custom-elements.json +1114 -24
- package/dist/generated/templates/ListItemTemplate.lit.js +32 -28
- package/dist/generated/templates/ListItemTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MastheadMenuTemplate.lit.js +8 -1
- package/dist/generated/templates/MastheadMenuTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MastheadMobileMenuTemplate.lit.js +10 -4
- package/dist/generated/templates/MastheadMobileMenuTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SearchableListBaseTemplate.lit.js +3 -3
- package/dist/generated/templates/SearchableListBaseTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SelectBoxTemplate.lit.js +12 -10
- package/dist/generated/templates/SelectBoxTemplate.lit.js.map +1 -1
- package/dist/generated/themes/ListItem.css.d.ts +1 -1
- package/dist/generated/themes/ListItem.css.js +1 -1
- package/dist/generated/themes/ListItem.css.js.map +1 -1
- package/dist/generated/themes/MastheadMenu.css.d.ts +1 -1
- package/dist/generated/themes/MastheadMenu.css.js +1 -1
- package/dist/generated/themes/MastheadMenu.css.js.map +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.d.ts +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.js +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.js.map +1 -1
- package/dist/generated/themes/RatingIndicator.css.d.ts +1 -1
- package/dist/generated/themes/RatingIndicator.css.js +1 -1
- package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
- package/dist/generated/themes/Slider.css.d.ts +1 -1
- package/dist/generated/themes/Slider.css.js +1 -1
- package/dist/generated/themes/Slider.css.js.map +1 -1
- package/dist/vscode.html-custom-data.json +220 -0
- package/dist/web-types.json +361 -1
- package/package.json +1 -1
- package/src/ListItem.hbs +26 -2
- package/src/ListItem.ts +12 -1
- package/src/ListItemBase.ts +40 -0
- package/src/MastheadItem.ts +2 -1
- package/src/MastheadMenu.hbs +35 -0
- package/src/MastheadMenu.ts +2 -1
- package/src/MastheadMobileMenu.hbs +40 -9
- package/src/SearchableListBase.hbs +12 -0
- package/src/SearchableListBase.ts +11 -2
- package/src/SelectBase.ts +4 -2
- package/src/SelectBox.hbs +13 -5
- package/src/generated/templates/ListItemTemplate.lit.ts +32 -28
- package/src/generated/templates/MastheadMenuTemplate.lit.ts +8 -1
- package/src/generated/templates/MastheadMobileMenuTemplate.lit.ts +10 -4
- package/src/generated/templates/SearchableListBaseTemplate.lit.ts +3 -3
- package/src/generated/templates/SelectBoxTemplate.lit.ts +12 -10
- package/src/generated/themes/ListItem.css.ts +1 -1
- package/src/generated/themes/MastheadMenu.css.ts +1 -1
- package/src/generated/themes/MastheadMobileMenu.css.ts +1 -1
- package/src/generated/themes/RatingIndicator.css.ts +1 -1
- package/src/generated/themes/Slider.css.ts +1 -1
- package/src/themes/ListItem.css +6 -4
- package/src/themes/MastheadMenu.css +45 -0
- package/src/themes/MastheadMobileMenu.css +45 -0
package/src/MastheadMenu.hbs
CHANGED
|
@@ -77,6 +77,41 @@
|
|
|
77
77
|
<li>
|
|
78
78
|
{{#if this.isDivider}}
|
|
79
79
|
<udex-divider class="udex-masthead-menu__item-divider"></udex-divider>
|
|
80
|
+
{{else if this.subItems}}
|
|
81
|
+
{{#if this.url}}
|
|
82
|
+
<udex-masthead-menu-item
|
|
83
|
+
part="menu-item"
|
|
84
|
+
accessible-role="link"
|
|
85
|
+
exportparts="menu-item"
|
|
86
|
+
@click="{{../../../handleMenuItemClick}}"
|
|
87
|
+
url="{{this.url}}"
|
|
88
|
+
label="{{this.title}}"
|
|
89
|
+
class="udex-masthead-menu__sub-category">
|
|
90
|
+
</udex-masthead-menu-item>
|
|
91
|
+
{{else}}
|
|
92
|
+
<span class="udex-masthead-menu__sub-category">{{this.title}}</span>
|
|
93
|
+
{{/if}}
|
|
94
|
+
<ul class="udex-masthead-menu__sub-list" aria-label="{{this.title}}">
|
|
95
|
+
{{#each this.subItems}}
|
|
96
|
+
<li>
|
|
97
|
+
{{#if this.isDivider}}
|
|
98
|
+
<udex-divider class="udex-masthead-menu__item-divider"></udex-divider>
|
|
99
|
+
{{else}}
|
|
100
|
+
<udex-masthead-menu-item
|
|
101
|
+
part="menu-item"
|
|
102
|
+
accessible-role="link"
|
|
103
|
+
exportparts="menu-item"
|
|
104
|
+
exportparts="badge"
|
|
105
|
+
@click="{{../../../../handleMenuItemClick}}"
|
|
106
|
+
badge="{{this.badge}}"
|
|
107
|
+
?external-link="{{this.externalLink}}"
|
|
108
|
+
url="{{this.url}}"
|
|
109
|
+
label="{{this.title}}">
|
|
110
|
+
</udex-masthead-menu-item>
|
|
111
|
+
{{/if}}
|
|
112
|
+
</li>
|
|
113
|
+
{{/each}}
|
|
114
|
+
</ul>
|
|
80
115
|
{{else}}
|
|
81
116
|
<udex-masthead-menu-item
|
|
82
117
|
part="menu-item"
|
package/src/MastheadMenu.ts
CHANGED
|
@@ -205,17 +205,48 @@
|
|
|
205
205
|
</li>
|
|
206
206
|
{{/if}}
|
|
207
207
|
{{#each _category.items}}
|
|
208
|
-
{{#if this.
|
|
208
|
+
{{#if this.subItems}}
|
|
209
209
|
<li class="udex-masthead-mobile-menu__list-item" role="none">
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
210
|
+
{{#if this.url}}
|
|
211
|
+
<udex-masthead-menu-item
|
|
212
|
+
part="menu-item"
|
|
213
|
+
@click="{{../handleMobileCategoryItemEvent}}"
|
|
214
|
+
label="{{this.title}}"
|
|
215
|
+
url="{{this.url}}"
|
|
216
|
+
class="udex-masthead-mobile-menu__sub-category"
|
|
217
|
+
third-level>
|
|
218
|
+
</udex-masthead-menu-item>
|
|
219
|
+
{{else}}
|
|
220
|
+
<span class="udex-masthead-mobile-menu__sub-category">{{this.title}}</span>
|
|
221
|
+
{{/if}}
|
|
222
|
+
<ul class="udex-masthead-mobile-menu__sub-list" aria-label="{{this.title}}">
|
|
223
|
+
{{#each this.subItems}}
|
|
224
|
+
{{#if this.url}}
|
|
225
|
+
<li class="udex-masthead-mobile-menu__list-item" role="none">
|
|
226
|
+
<udex-masthead-menu-item
|
|
227
|
+
part="menu-item"
|
|
228
|
+
@click="{{../../handleMobileCategoryItemEvent}}"
|
|
229
|
+
label="{{this.title}}"
|
|
230
|
+
url="{{this.url}}"
|
|
231
|
+
third-level>
|
|
232
|
+
</udex-masthead-menu-item>
|
|
233
|
+
</li>
|
|
234
|
+
{{/if}}
|
|
235
|
+
{{/each}}
|
|
236
|
+
</ul>
|
|
218
237
|
</li>
|
|
238
|
+
{{else}}
|
|
239
|
+
{{#if this.url}}
|
|
240
|
+
<li class="udex-masthead-mobile-menu__list-item" role="none">
|
|
241
|
+
<udex-masthead-menu-item
|
|
242
|
+
part="menu-item"
|
|
243
|
+
@click="{{../handleMobileCategoryItemEvent}}"
|
|
244
|
+
label="{{this.title}}"
|
|
245
|
+
url="{{this.url}}"
|
|
246
|
+
third-level>
|
|
247
|
+
</udex-masthead-menu-item>
|
|
248
|
+
</li>
|
|
249
|
+
{{/if}}
|
|
219
250
|
{{/if}}
|
|
220
251
|
{{/each}}
|
|
221
252
|
{{/inline}}
|
|
@@ -62,6 +62,10 @@
|
|
|
62
62
|
?divider="{{this.divider}}"
|
|
63
63
|
?disabled="{{this.disabled}}"
|
|
64
64
|
?selected="{{this.selected}}"
|
|
65
|
+
rating="{{this.rating}}"
|
|
66
|
+
total-count="{{this.totalCount}}"
|
|
67
|
+
rating-count="{{this.ratingCount}}"
|
|
68
|
+
rating-max="{{this.ratingMax}}"
|
|
65
69
|
label="{{this.label}}">
|
|
66
70
|
{{{this.innerHTML}}}
|
|
67
71
|
</udex-list-item>
|
|
@@ -99,6 +103,10 @@
|
|
|
99
103
|
?divider="{{this.divider}}"
|
|
100
104
|
?disabled="{{this.disabled}}"
|
|
101
105
|
?selected="{{this.selected}}"
|
|
106
|
+
rating="{{this.rating}}"
|
|
107
|
+
total-count="{{this.totalCount}}"
|
|
108
|
+
rating-count="{{this.ratingCount}}"
|
|
109
|
+
rating-max="{{this.ratingMax}}"
|
|
102
110
|
label="{{this.label}}">
|
|
103
111
|
{{{this.innerHTML}}}
|
|
104
112
|
</udex-list-item>
|
|
@@ -118,6 +126,10 @@
|
|
|
118
126
|
?controlled="{{this.controlled}}"
|
|
119
127
|
?divider="{{this.divider}}"
|
|
120
128
|
?selected="{{this.item.selected}}"
|
|
129
|
+
rating="{{this.item.rating}}"
|
|
130
|
+
total-count="{{this.item.totalCount}}"
|
|
131
|
+
rating-count="{{this.item.ratingCount}}"
|
|
132
|
+
rating-max="{{this.item.ratingMax}}"
|
|
121
133
|
label="{{this.item.label}}"
|
|
122
134
|
accessible-role="{{../listItemRole}}">
|
|
123
135
|
{{{this.item.innerHTML}}}
|
|
@@ -14,8 +14,9 @@ import type UDExListGroupHeaderBase from "./ListGroupHeaderBase.js";
|
|
|
14
14
|
import type UDExList from "./List.js";
|
|
15
15
|
import type UDExListItem from "./ListItem.js";
|
|
16
16
|
import type UDExFilterMenuItem from "./FilterMenuItem.js";
|
|
17
|
+
import type UDExSelectBoxItem from "./SelectBoxItem.js";
|
|
17
18
|
import { SHOW_SEARCH_AFTER_COUNT, UDExPopoverPart } from "./types/SearchableListBase.js";
|
|
18
|
-
import { NO_MATCHES_FOUND, RESULT_RETURNED } from "./generated/i18n/i18n-defaults.js";
|
|
19
|
+
import { NO_MATCHES_FOUND, RESULT_RETURNED, STARS } from "./generated/i18n/i18n-defaults.js";
|
|
19
20
|
import translate from "./utils/translate.js";
|
|
20
21
|
|
|
21
22
|
export type UDExItemFromList = UDExListItemBase | UDExListGroupHeaderBase | null | undefined;
|
|
@@ -403,6 +404,10 @@ class UDExSearchableListBase extends UI5Element {
|
|
|
403
404
|
}
|
|
404
405
|
|
|
405
406
|
checkAndUpdateLabel(item: UDExListItemBase | UDExListGroupHeaderBase, str: string): boolean {
|
|
407
|
+
if (item.ratingCount) {
|
|
408
|
+
return this.isIncludes(item.ratingCount, str);
|
|
409
|
+
}
|
|
410
|
+
|
|
406
411
|
if (!item.label) {
|
|
407
412
|
console.warn("A label property is required for the item");
|
|
408
413
|
return false;
|
|
@@ -597,7 +602,7 @@ class UDExSearchableListBase extends UI5Element {
|
|
|
597
602
|
content.style.maxHeight = this.height || "";
|
|
598
603
|
}
|
|
599
604
|
|
|
600
|
-
_setItemsModeAndControl(items: Array<UDExFilterMenuItem>) {
|
|
605
|
+
_setItemsModeAndControl(items: Array<UDExFilterMenuItem | UDExSelectBoxItem>) {
|
|
601
606
|
items.forEach(item => {
|
|
602
607
|
item.mode = this.mode;
|
|
603
608
|
item.controlled = this.isControlled;
|
|
@@ -617,6 +622,10 @@ class UDExSearchableListBase extends UI5Element {
|
|
|
617
622
|
return translate(UDExSearchableListBase, RESULT_RETURNED);
|
|
618
623
|
}
|
|
619
624
|
|
|
625
|
+
get startsText(): string {
|
|
626
|
+
return translate(UDExSearchableListBase, STARS);
|
|
627
|
+
}
|
|
628
|
+
|
|
620
629
|
get isListEmpty(): boolean {
|
|
621
630
|
return this._filteredItems.length === 0;
|
|
622
631
|
}
|
package/src/SelectBase.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type UDExList from "./List.js";
|
|
|
11
11
|
import type UDExSearch from "./Search.js";
|
|
12
12
|
import "@ui5/webcomponents-icons/dist/decline.js";
|
|
13
13
|
import "@ui5/webcomponents-icons/dist/navigation-down-arrow.js";
|
|
14
|
-
import { COUNTRY_SELECT } from "./generated/i18n/i18n-defaults.js";
|
|
14
|
+
import { COUNTRY_SELECT, STARS } from "./generated/i18n/i18n-defaults.js";
|
|
15
15
|
import SearchableListBaseTemplate from "./generated/templates/SearchableListBaseTemplate.lit.js";
|
|
16
16
|
import CountrySelectorTemplate from "./generated/templates/CountrySelectorTemplate.lit.js";
|
|
17
17
|
import type { ResizeObserverCallback } from "@ui5/webcomponents-base/delegate/ResizeHandler.js";
|
|
@@ -508,7 +508,9 @@ class UDExSelectBase extends UDExSearchableListBase {
|
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
setSelectOption() {
|
|
511
|
-
|
|
511
|
+
const label = this.selectedItems[0]?.label;
|
|
512
|
+
const ratingLabel = `${this.selectedItems[0]?.ratingCount} ${translate(UDExSearchableListBase, STARS)}`;
|
|
513
|
+
this._selectedOption = label || ratingLabel || "";
|
|
512
514
|
}
|
|
513
515
|
|
|
514
516
|
updatePopoverWidth() {
|
package/src/SelectBox.hbs
CHANGED
|
@@ -18,11 +18,19 @@
|
|
|
18
18
|
_skip-more-button-focus>
|
|
19
19
|
{{#each selectedItems}}
|
|
20
20
|
{{#unless this.isGroup}}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
{{#if label}}
|
|
22
|
+
<udex-tag
|
|
23
|
+
text="{{this.label}}"
|
|
24
|
+
id="{{this._id}}"
|
|
25
|
+
icon="decline">
|
|
26
|
+
</udex-tag>
|
|
27
|
+
{{else}}
|
|
28
|
+
<udex-tag
|
|
29
|
+
text="{{this.rating}} {{../this.startsText}}"
|
|
30
|
+
id="{{this._id}}"
|
|
31
|
+
icon="decline">
|
|
32
|
+
</udex-tag>
|
|
33
|
+
{{/if}}
|
|
26
34
|
{{/unless}}
|
|
27
35
|
{{/each}}
|
|
28
36
|
</udex-tag-group>
|
|
@@ -5,41 +5,45 @@ import type UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
|
5
5
|
import type ListItem from "../../ListItem.js";
|
|
6
6
|
import type { ClassMapValue } from "@ui5/webcomponents-base/dist/types.js";
|
|
7
7
|
|
|
8
|
-
function block0 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.modeSelected ? block1.call(this, context, tags, suffix) : undefined }${ this.modeSingleContent ?
|
|
9
|
-
function block1 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div part="item" tabindex="${ifDefined(this._effectiveTabIndex)}" aria-disabled="${ifDefined(this._ariaDisabled)}" class="${ifDefined(this.className)}" role="${ifDefined(this.roleItem)}" @click="${this.handleItemClick}" @mousedown="${this.handleMouseDown}" @mouseup="${this.handleMouseUp}" @keyup="${this.handleKeyUp}" @keydown="${this.handleKeyDown}" @focusin="${this.handleFocusIn}" @focusout="${this.handleFocusOut}" ?divider="${this.divider}" _id="${ifDefined(this._id)}" data-selected="${ifDefined(this.selected)}" aria-describedby="${ifDefined(this.itemDescribedBy)}">${ this.modeMultiSelect ? block2.call(this, context, tags, suffix) : undefined }${ this.modeRadioGroup ? block3.call(this, context, tags, suffix) : undefined }<div class="udex-list__content-wrap" _id="${ifDefined(this._id)}" aria-labelledby="${ifDefined(this._id)}-invisibleText" aria-label="${ifDefined(this.accessibleListItemName)}">${ this.flag ? block4.call(this, context, tags, suffix) : undefined }${ this.typeIcon ? block5.call(this, context, tags, suffix) : undefined }${ this.image ? block6.call(this, context, tags, suffix) : undefined }<div class="udex-list__content" part="content">${ this.label ? block8.call(this, context, tags, suffix) :
|
|
8
|
+
function block0 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.modeSelected ? block1.call(this, context, tags, suffix) : undefined }${ this.modeSingleContent ? block21.call(this, context, tags, suffix) : undefined } `;}
|
|
9
|
+
function block1 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div part="item" tabindex="${ifDefined(this._effectiveTabIndex)}" aria-disabled="${ifDefined(this._ariaDisabled)}" class="${ifDefined(this.className)}" role="${ifDefined(this.roleItem)}" @click="${this.handleItemClick}" @mousedown="${this.handleMouseDown}" @mouseup="${this.handleMouseUp}" @keyup="${this.handleKeyUp}" @keydown="${this.handleKeyDown}" @focusin="${this.handleFocusIn}" @focusout="${this.handleFocusOut}" ?divider="${this.divider}" _id="${ifDefined(this._id)}" data-selected="${ifDefined(this.selected)}" aria-describedby="${ifDefined(this.itemDescribedBy)}">${ this.modeMultiSelect ? block2.call(this, context, tags, suffix) : undefined }${ this.modeRadioGroup ? block3.call(this, context, tags, suffix) : undefined }<div class="udex-list__content-wrap" _id="${ifDefined(this._id)}" aria-labelledby="${ifDefined(this._id)}-invisibleText" aria-label="${ifDefined(this.accessibleListItemName)}">${ this.flag ? block4.call(this, context, tags, suffix) : undefined }${ this.typeIcon ? block5.call(this, context, tags, suffix) : undefined }${ this.image ? block6.call(this, context, tags, suffix) : undefined }<div class="udex-list__content" part="content">${ this.label ? block8.call(this, context, tags, suffix) : block14.call(this, context, tags, suffix) }${ this.collapsible ? block20.call(this, context, tags, suffix) : undefined }</div><div class="hidden" id="${ifDefined(this._id)}-invisibleText">${ifDefined(this.accessibleListItemName)}</div><div class="hidden" id="${ifDefined(this._id)}-invisibleText-describedby">${ifDefined(this.itemState)}</div></div></div>`;}
|
|
10
10
|
function block2 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-checkbox", tags, suffix)} class="udex-list__checkbox" part="checkbox" tabindex="-1" ?indeterminate="${this.indeterminate}" accessible-name="checkbox ${ifDefined(this.stateAccessibleName)}" ?checked="${this.selected}" ?disabled="${this.disabled}"></${scopeTag("udex-checkbox", tags, suffix)}>` : html`<udex-checkbox class="udex-list__checkbox" part="checkbox" tabindex="-1" ?indeterminate="${this.indeterminate}" accessible-name="checkbox ${ifDefined(this.stateAccessibleName)}" ?checked="${this.selected}" ?disabled="${this.disabled}"></udex-checkbox>`;}
|
|
11
11
|
function block3 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-radio-button", tags, suffix)} class="udex-list__radio" part="radio" tabindex="-1" accessible-name="radio ${ifDefined(this.stateAccessibleName)}" ?checked="${this.selected}" ?disabled="${this.disabled}"></${scopeTag("udex-radio-button", tags, suffix)}>` : html`<udex-radio-button class="udex-list__radio" part="radio" tabindex="-1" accessible-name="radio ${ifDefined(this.stateAccessibleName)}" ?checked="${this.selected}" ?disabled="${this.disabled}"></udex-radio-button>`;}
|
|
12
12
|
function block4 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__flag-wrap"><span class="udex-list__flag" style="background-position: ${ifDefined(this.flagPosition)}"></span></div>`;}
|
|
13
13
|
function block5 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("ui5-icon", tags, suffix)} class="udex-list__icon" name="${ifDefined(this._icon)}" accessible-role="presentation" aria-hidden="true" part="icon"></${scopeTag("ui5-icon", tags, suffix)}>` : html`<ui5-icon class="udex-list__icon" name="${ifDefined(this._icon)}" accessible-role="presentation" aria-hidden="true" part="icon"></ui5-icon>`;}
|
|
14
14
|
function block6 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-avatar", tags, suffix)} class="udex-list__avatar" shape="${ifDefined(this.imageShape)}" size="${ifDefined(this.imageSize)}" part="avatar">${ this.imageBadgeState ? block7.call(this, context, tags, suffix) : undefined }<img src="${ifDefined(this.image)}" alt="${ifDefined(this.imageAlt)}" /></${scopeTag("udex-avatar", tags, suffix)}>` : html`<udex-avatar class="udex-list__avatar" shape="${ifDefined(this.imageShape)}" size="${ifDefined(this.imageSize)}" part="avatar">${ this.imageBadgeState ? block7.call(this, context, tags, suffix) : undefined }<img src="${ifDefined(this.image)}" alt="${ifDefined(this.imageAlt)}" /></udex-avatar>`;}
|
|
15
15
|
function block7 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-status-badge", tags, suffix)} slot="badge" value-state="${ifDefined(this.imageBadgeState)}" size="${ifDefined(this.imageSize)}"></${scopeTag("udex-status-badge", tags, suffix)}>` : html`<udex-status-badge slot="badge" value-state="${ifDefined(this.imageBadgeState)}" size="${ifDefined(this.imageSize)}"></udex-status-badge>`;}
|
|
16
|
-
function block8 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__text-holder"><span part="title">${unsafeHTML(this.label)}</span>${ this.supportingText ? block9.call(this, context, tags, suffix) : undefined }<slot part="content"></slot
|
|
16
|
+
function block8 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__text-holder"><span part="title">${unsafeHTML(this.label)}</span>${ this.supportingText ? block9.call(this, context, tags, suffix) : undefined }<slot part="content"></slot>${ this.hasRating ? block10.call(this, context, tags, suffix) : undefined }</div>${ this.additionalText ? block11.call(this, context, tags, suffix) : undefined }<div class="udex-list__btn-wrap">${ this.hasFirstIcon ? block12.call(this, context, tags, suffix) : undefined }${ this.hasSecondIcon ? block13.call(this, context, tags, suffix) : undefined }</div>`;}
|
|
17
17
|
function block9 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="udex-list__supporting-text" part="supporting">${ifDefined(this.supportingText)}</span>`;}
|
|
18
|
-
function block10 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html
|
|
19
|
-
function block11 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
20
|
-
function block12 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="
|
|
21
|
-
function block13 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
22
|
-
function block14 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
23
|
-
function block15 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
24
|
-
function block16 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
25
|
-
function block17 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
26
|
-
function block18 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return
|
|
27
|
-
function block19 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
28
|
-
function block20 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-
|
|
29
|
-
function block21 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return
|
|
30
|
-
function block22 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return
|
|
31
|
-
function block23 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("
|
|
32
|
-
function block24 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html
|
|
33
|
-
function block25 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html
|
|
34
|
-
function block26 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-
|
|
35
|
-
function block27 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
36
|
-
function block28 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
37
|
-
function block29 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-
|
|
38
|
-
function block30 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
39
|
-
function block31 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
40
|
-
function block32 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot
|
|
41
|
-
function block33 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<
|
|
42
|
-
function block34 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html
|
|
18
|
+
function block10 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-rating-indicator", tags, suffix)} aria-label="${ifDefined(this.ratingAriaLabel)}" value="${ifDefined(this.rating)}" rating-count="${ifDefined(this.ratingCount)}" total-count="${ifDefined(this.totalCount)}" max="${ifDefined(this.ratingMax)}" display="${ifDefined(this._displayRating)}" disabled readonly></${scopeTag("udex-rating-indicator", tags, suffix)}>` : html`<udex-rating-indicator aria-label="${ifDefined(this.ratingAriaLabel)}" value="${ifDefined(this.rating)}" rating-count="${ifDefined(this.ratingCount)}" total-count="${ifDefined(this.totalCount)}" max="${ifDefined(this.ratingMax)}" display="${ifDefined(this._displayRating)}" disabled readonly></udex-rating-indicator>`;}
|
|
19
|
+
function block11 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__add-text" part="additional-text">${ifDefined(this.additionalText)}</div>`;}
|
|
20
|
+
function block12 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="firstIcon" @click=${this._fireIconClickEvent}></slot>`;}
|
|
21
|
+
function block13 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="secondIcon" @click=${this._fireIconClickEvent}></slot>`;}
|
|
22
|
+
function block14 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__text-holder"><slot part="content"></slot>${ this.supportingText ? block15.call(this, context, tags, suffix) : undefined }${ this.hasRating ? block16.call(this, context, tags, suffix) : undefined }</div>${ this.additionalText ? block17.call(this, context, tags, suffix) : undefined }<div class="udex-list__btn-wrap">${ this.hasFirstIcon ? block18.call(this, context, tags, suffix) : undefined }${ this.hasSecondIcon ? block19.call(this, context, tags, suffix) : undefined }</div>`;}
|
|
23
|
+
function block15 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="udex-list__supporting-text" part="supporting">${ifDefined(this.supportingText)}</span>`;}
|
|
24
|
+
function block16 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-rating-indicator", tags, suffix)} aria-label="${ifDefined(this.ratingAriaLabel)}" value="${ifDefined(this.rating)}" rating-count="${ifDefined(this.ratingCount)}" total-count="${ifDefined(this.totalCount)}" max="${ifDefined(this.ratingMax)}" display="${ifDefined(this._displayRating)}" disabled readonly></${scopeTag("udex-rating-indicator", tags, suffix)}>` : html`<udex-rating-indicator aria-label="${ifDefined(this.ratingAriaLabel)}" value="${ifDefined(this.rating)}" rating-count="${ifDefined(this.ratingCount)}" total-count="${ifDefined(this.totalCount)}" max="${ifDefined(this.ratingMax)}" display="${ifDefined(this._displayRating)}" disabled readonly></udex-rating-indicator>`;}
|
|
25
|
+
function block17 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__add-text" part="additional-text">${ifDefined(this.additionalText)}</div>`;}
|
|
26
|
+
function block18 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="firstIcon" @click=${this._fireIconClickEvent}></slot>`;}
|
|
27
|
+
function block19 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="secondIcon" @click=${this._fireIconClickEvent}></slot>`;}
|
|
28
|
+
function block20 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<div class="udex-list__group-heading__icon-wrapper"><${scopeTag("udex-button", tags, suffix)} size="Small" design="Tertiary" @mousedown="${this.handleCollapseIconMouseDown}" @click="${this.handleCollapseIconClick}" mode="Interactive" tabindex="-1" accessible-name="${ifDefined(this.expandButtonAccessibleName)}" class="udex-list__group-heading__icon" icon="slim-arrow-right"></${scopeTag("udex-button", tags, suffix)}></div>` : html`<div class="udex-list__group-heading__icon-wrapper"><udex-button size="Small" design="Tertiary" @mousedown="${this.handleCollapseIconMouseDown}" @click="${this.handleCollapseIconClick}" mode="Interactive" tabindex="-1" accessible-name="${ifDefined(this.expandButtonAccessibleName)}" class="udex-list__group-heading__icon" icon="slim-arrow-right"></udex-button></div>`;}
|
|
29
|
+
function block21 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div part="item" role="${ifDefined(this.roleItem)}" aria-selected="${ifDefined(this.selected)}" class="${ifDefined(this.className)}"><div class="udex-list__content-wrap" _id="${ifDefined(this._id)}" aria-labelledby="${ifDefined(this._id)}-invisibleText" aria-label="${ifDefined(this.accessibleListItemName)}">${ this.flag ? block22.call(this, context, tags, suffix) : undefined }${ this.typeIcon ? block23.call(this, context, tags, suffix) : undefined }${ this.image ? block24.call(this, context, tags, suffix) : undefined }<div class="udex-list__content" part="content">${ this.label ? block26.call(this, context, tags, suffix) : block32.call(this, context, tags, suffix) }${ this.collapsible ? block38.call(this, context, tags, suffix) : undefined }</div><div class="hidden" id="${ifDefined(this._id)}-invisibleText">${ifDefined(this.accessibleListItemName)}</div><div class="hidden" id="${ifDefined(this._id)}-invisibleText-describedby">${ifDefined(this.itemState)}</div></div></div>`;}
|
|
30
|
+
function block22 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__flag-wrap"><span class="udex-list__flag" style="background-position: ${ifDefined(this.flagPosition)}"></span></div>`;}
|
|
31
|
+
function block23 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("ui5-icon", tags, suffix)} class="udex-list__icon" name="${ifDefined(this._icon)}" accessible-role="presentation" aria-hidden="true" part="icon"></${scopeTag("ui5-icon", tags, suffix)}>` : html`<ui5-icon class="udex-list__icon" name="${ifDefined(this._icon)}" accessible-role="presentation" aria-hidden="true" part="icon"></ui5-icon>`;}
|
|
32
|
+
function block24 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-avatar", tags, suffix)} class="udex-list__avatar" shape="${ifDefined(this.imageShape)}" size="${ifDefined(this.imageSize)}" part="avatar">${ this.imageBadgeState ? block25.call(this, context, tags, suffix) : undefined }<img src="${ifDefined(this.image)}" alt="${ifDefined(this.imageAlt)}" /></${scopeTag("udex-avatar", tags, suffix)}>` : html`<udex-avatar class="udex-list__avatar" shape="${ifDefined(this.imageShape)}" size="${ifDefined(this.imageSize)}" part="avatar">${ this.imageBadgeState ? block25.call(this, context, tags, suffix) : undefined }<img src="${ifDefined(this.image)}" alt="${ifDefined(this.imageAlt)}" /></udex-avatar>`;}
|
|
33
|
+
function block25 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-status-badge", tags, suffix)} slot="badge" value-state="${ifDefined(this.imageBadgeState)}" size="${ifDefined(this.imageSize)}"></${scopeTag("udex-status-badge", tags, suffix)}>` : html`<udex-status-badge slot="badge" value-state="${ifDefined(this.imageBadgeState)}" size="${ifDefined(this.imageSize)}"></udex-status-badge>`;}
|
|
34
|
+
function block26 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__text-holder"><span part="title">${unsafeHTML(this.label)}</span>${ this.supportingText ? block27.call(this, context, tags, suffix) : undefined }<slot part="content"></slot>${ this.hasRating ? block28.call(this, context, tags, suffix) : undefined }</div>${ this.additionalText ? block29.call(this, context, tags, suffix) : undefined }<div class="udex-list__btn-wrap">${ this.hasFirstIcon ? block30.call(this, context, tags, suffix) : undefined }${ this.hasSecondIcon ? block31.call(this, context, tags, suffix) : undefined }</div>`;}
|
|
35
|
+
function block27 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="udex-list__supporting-text" part="supporting">${ifDefined(this.supportingText)}</span>`;}
|
|
36
|
+
function block28 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-rating-indicator", tags, suffix)} aria-label="${ifDefined(this.ratingAriaLabel)}" value="${ifDefined(this.rating)}" rating-count="${ifDefined(this.ratingCount)}" total-count="${ifDefined(this.totalCount)}" max="${ifDefined(this.ratingMax)}" display="${ifDefined(this._displayRating)}" disabled readonly></${scopeTag("udex-rating-indicator", tags, suffix)}>` : html`<udex-rating-indicator aria-label="${ifDefined(this.ratingAriaLabel)}" value="${ifDefined(this.rating)}" rating-count="${ifDefined(this.ratingCount)}" total-count="${ifDefined(this.totalCount)}" max="${ifDefined(this.ratingMax)}" display="${ifDefined(this._displayRating)}" disabled readonly></udex-rating-indicator>`;}
|
|
37
|
+
function block29 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__add-text" part="additional-text">${ifDefined(this.additionalText)}</div>`;}
|
|
38
|
+
function block30 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="firstIcon" @click=${this._fireIconClickEvent}></slot>`;}
|
|
39
|
+
function block31 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="secondIcon" @click=${this._fireIconClickEvent}></slot>`;}
|
|
40
|
+
function block32 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__text-holder"><slot part="content"></slot>${ this.supportingText ? block33.call(this, context, tags, suffix) : undefined }${ this.hasRating ? block34.call(this, context, tags, suffix) : undefined }</div>${ this.additionalText ? block35.call(this, context, tags, suffix) : undefined }<div class="udex-list__btn-wrap">${ this.hasFirstIcon ? block36.call(this, context, tags, suffix) : undefined }${ this.hasSecondIcon ? block37.call(this, context, tags, suffix) : undefined }</div>`;}
|
|
41
|
+
function block33 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="udex-list__supporting-text" part="supporting">${ifDefined(this.supportingText)}</span>`;}
|
|
42
|
+
function block34 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-rating-indicator", tags, suffix)} aria-label="${ifDefined(this.ratingAriaLabel)}" value="${ifDefined(this.rating)}" rating-count="${ifDefined(this.ratingCount)}" total-count="${ifDefined(this.totalCount)}" max="${ifDefined(this.ratingMax)}" display="${ifDefined(this._displayRating)}" disabled readonly></${scopeTag("udex-rating-indicator", tags, suffix)}>` : html`<udex-rating-indicator aria-label="${ifDefined(this.ratingAriaLabel)}" value="${ifDefined(this.rating)}" rating-count="${ifDefined(this.ratingCount)}" total-count="${ifDefined(this.totalCount)}" max="${ifDefined(this.ratingMax)}" display="${ifDefined(this._displayRating)}" disabled readonly></udex-rating-indicator>`;}
|
|
43
|
+
function block35 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-list__add-text" part="additional-text">${ifDefined(this.additionalText)}</div>`;}
|
|
44
|
+
function block36 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="firstIcon" @click=${this._fireIconClickEvent}></slot>`;}
|
|
45
|
+
function block37 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="secondIcon" @click=${this._fireIconClickEvent}></slot>`;}
|
|
46
|
+
function block38 (this: ListItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<div class="udex-list__group-heading__icon-wrapper"><${scopeTag("udex-button", tags, suffix)} size="Small" design="Tertiary" @mousedown="${this.handleCollapseIconMouseDown}" @click="${this.handleCollapseIconClick}" mode="Interactive" tabindex="-1" accessible-name="${ifDefined(this.expandButtonAccessibleName)}" class="udex-list__group-heading__icon" icon="slim-arrow-right"></${scopeTag("udex-button", tags, suffix)}></div>` : html`<div class="udex-list__group-heading__icon-wrapper"><udex-button size="Small" design="Tertiary" @mousedown="${this.handleCollapseIconMouseDown}" @click="${this.handleCollapseIconClick}" mode="Interactive" tabindex="-1" accessible-name="${ifDefined(this.expandButtonAccessibleName)}" class="udex-list__group-heading__icon" icon="slim-arrow-right"></udex-button></div>`;}
|
|
43
47
|
|
|
44
48
|
function template(this: ListItem) { return block0.call(this, this, (this.constructor as typeof UI5Element).tagsToScope, getCustomElementsScopingSuffix()); }
|
|
45
49
|
export default template;
|
|
@@ -16,7 +16,14 @@ function block7 (this: MastheadMenu, context: UI5Element, tags: string[], suffix
|
|
|
16
16
|
function block8 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} id="category-${ifDefined(item.categoryId)}" type="Heading" part="menu-item" exportparts="menu-item" label="${ifDefined(item.category)}" has-border></${scopeTag("udex-masthead-menu-item", tags, suffix)}>` : html`<udex-masthead-menu-item id="category-${ifDefined(item.categoryId)}" type="Heading" part="menu-item" exportparts="menu-item" label="${ifDefined(item.category)}" has-border></udex-masthead-menu-item>`;}
|
|
17
17
|
function block9 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`<li>${ item.isDivider ? block10.call(this, context, tags, suffix, item, index) : block11.call(this, context, tags, suffix, item, index) }</li>`;}
|
|
18
18
|
function block10 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-divider", tags, suffix)} class="udex-masthead-menu__item-divider"></${scopeTag("udex-divider", tags, suffix)}>` : html`<udex-divider class="udex-masthead-menu__item-divider"></udex-divider>`;}
|
|
19
|
-
function block11 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return
|
|
19
|
+
function block11 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`${ item.subItems ? block12.call(this, context, tags, suffix, item, index) : block18.call(this, context, tags, suffix, item, index) }`;}
|
|
20
|
+
function block12 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`${ item.url ? block13.call(this, context, tags, suffix, item, index) : block14.call(this, context, tags, suffix, item, index) }<ul class="udex-masthead-menu__sub-list" aria-label="${ifDefined(item.title)}">${ repeat(item.subItems, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block15.call(this, context, tags, suffix, item, index)) }</ul>`;}
|
|
21
|
+
function block13 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" accessible-role="link" exportparts="menu-item" @click="${this.handleMenuItemClick}" url="${ifDefined(item.url)}" label="${ifDefined(item.title)}" class="udex-masthead-menu__sub-category"></${scopeTag("udex-masthead-menu-item", tags, suffix)}>` : html`<udex-masthead-menu-item part="menu-item" accessible-role="link" exportparts="menu-item" @click="${this.handleMenuItemClick}" url="${ifDefined(item.url)}" label="${ifDefined(item.title)}" class="udex-masthead-menu__sub-category"></udex-masthead-menu-item>`;}
|
|
22
|
+
function block14 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`<span class="udex-masthead-menu__sub-category">${ifDefined(item.title)}</span>`;}
|
|
23
|
+
function block15 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`<li>${ item.isDivider ? block16.call(this, context, tags, suffix, item, index) : block17.call(this, context, tags, suffix, item, index) }</li>`;}
|
|
24
|
+
function block16 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-divider", tags, suffix)} class="udex-masthead-menu__item-divider"></${scopeTag("udex-divider", tags, suffix)}>` : html`<udex-divider class="udex-masthead-menu__item-divider"></udex-divider>`;}
|
|
25
|
+
function block17 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" accessible-role="link" exportparts="menu-item" exportparts="badge" @click="${this.handleMenuItemClick}" badge="${ifDefined(item.badge)}" ?external-link="${item.externalLink}" url="${ifDefined(item.url)}" label="${ifDefined(item.title)}"></${scopeTag("udex-masthead-menu-item", tags, suffix)}>` : html`<udex-masthead-menu-item part="menu-item" accessible-role="link" exportparts="menu-item" exportparts="badge" @click="${this.handleMenuItemClick}" badge="${ifDefined(item.badge)}" ?external-link="${item.externalLink}" url="${ifDefined(item.url)}" label="${ifDefined(item.title)}"></udex-masthead-menu-item>`;}
|
|
26
|
+
function block18 (this: MastheadMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" accessible-role="link" exportparts="menu-item" exportparts="badge" @click="${this.handleMenuItemClick}" badge="${ifDefined(item.badge)}" ?external-link="${item.externalLink}" url="${ifDefined(item.url)}" label="${ifDefined(item.title)}"></${scopeTag("udex-masthead-menu-item", tags, suffix)}>` : html`<udex-masthead-menu-item part="menu-item" accessible-role="link" exportparts="menu-item" exportparts="badge" @click="${this.handleMenuItemClick}" badge="${ifDefined(item.badge)}" ?external-link="${item.externalLink}" url="${ifDefined(item.url)}" label="${ifDefined(item.title)}"></udex-masthead-menu-item>`;}
|
|
20
27
|
|
|
21
28
|
function template(this: MastheadMenu) { return block0.call(this, this, (this.constructor as typeof UI5Element).tagsToScope, getCustomElementsScopingSuffix()); }
|
|
22
29
|
export default template;
|
|
@@ -5,7 +5,7 @@ import type UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
|
5
5
|
import type MastheadMobileMenu from "../../MastheadMobileMenu.js";
|
|
6
6
|
import type { ClassMapValue } from "@ui5/webcomponents-base/dist/types.js";
|
|
7
7
|
|
|
8
|
-
function block0 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<nav class="udex-masthead-mobile-menu"><div class="udex-masthead-mobile-menu__nav-holder">${ this.hasSearchSlot ? block1.call(this, context, tags, suffix) : undefined }<ul class="udex-masthead-mobile-menu__list" role="menu" @keydown="${this.handlePressKey}">${ this.showNavigation ? block2.call(this, context, tags, suffix) : undefined }${ this._showCategories ? block6.call(this, context, tags, suffix) : undefined }${ this._showCategoryItems ? block20.call(this, context, tags, suffix) : undefined }</ul></div>${ this.showExploreBtn ?
|
|
8
|
+
function block0 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<nav class="udex-masthead-mobile-menu"><div class="udex-masthead-mobile-menu__nav-holder">${ this.hasSearchSlot ? block1.call(this, context, tags, suffix) : undefined }<ul class="udex-masthead-mobile-menu__list" role="menu" @keydown="${this.handlePressKey}">${ this.showNavigation ? block2.call(this, context, tags, suffix) : undefined }${ this._showCategories ? block6.call(this, context, tags, suffix) : undefined }${ this._showCategoryItems ? block20.call(this, context, tags, suffix) : undefined }</ul></div>${ this.showExploreBtn ? block30.call(this, context, tags, suffix) : undefined }</nav> `;}
|
|
9
9
|
function block1 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-masthead-mobile-menu__list-search"><slot name="search"></slot></div>`;}
|
|
10
10
|
function block2 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ repeat(this.items, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block3.call(this, context, tags, suffix, item, index)) }`;}
|
|
11
11
|
function block3 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`<li class="udex-masthead-mobile-menu__list-item" role="none">${ item.subItems ? block4.call(this, context, tags, suffix, item, index) : block5.call(this, context, tags, suffix, item, index) }</li>`;}
|
|
@@ -27,9 +27,15 @@ function block18 (this: MastheadMobileMenu, context: UI5Element, tags: string[],
|
|
|
27
27
|
function block19 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} id="${index}" @click="${this.handleMobileItemEvent}" label="${ifDefined(item.category)}" part="menu-item" type="Button" second-level has-border></${scopeTag("udex-masthead-menu-item", tags, suffix)}>` : html`<udex-masthead-menu-item id="${index}" @click="${this.handleMobileItemEvent}" label="${ifDefined(item.category)}" part="menu-item" type="Button" second-level has-border></udex-masthead-menu-item>`;}
|
|
28
28
|
function block20 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<li class="udex-masthead-mobile-menu__list-item" role="none"><${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" class="udex-masthead-mobile-menu__back-item" @click="${this.handleBackToCategories}" label="${ifDefined(this._category.category)}" type="Button" aria-haspopup="true" has-border icon-start is-back is-back-to-categories></${scopeTag("udex-masthead-menu-item", tags, suffix)}></li>${ this._category.url ? block21.call(this, context, tags, suffix) : undefined }${ repeat(this._category.items, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block22.call(this, context, tags, suffix, item, index)) }` : html`<li class="udex-masthead-mobile-menu__list-item" role="none"><udex-masthead-menu-item part="menu-item" class="udex-masthead-mobile-menu__back-item" @click="${this.handleBackToCategories}" label="${ifDefined(this._category.category)}" type="Button" aria-haspopup="true" has-border icon-start is-back is-back-to-categories></udex-masthead-menu-item></li>${ this._category.url ? block21.call(this, context, tags, suffix) : undefined }${ repeat(this._category.items, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block22.call(this, context, tags, suffix, item, index)) }`;}
|
|
29
29
|
function block21 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<li class="udex-masthead-mobile-menu__list-item" role="none"><${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" @click="${this.handleMobileCategoryItemEvent}" url="${ifDefined(this._category.url)}" label="${ifDefined(this.overviewLinkText)}" third-level has-border></${scopeTag("udex-masthead-menu-item", tags, suffix)}></li>` : html`<li class="udex-masthead-mobile-menu__list-item" role="none"><udex-masthead-menu-item part="menu-item" @click="${this.handleMobileCategoryItemEvent}" url="${ifDefined(this._category.url)}" label="${ifDefined(this.overviewLinkText)}" third-level has-border></udex-masthead-menu-item></li>`;}
|
|
30
|
-
function block22 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`${ item.
|
|
31
|
-
function block23 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return
|
|
32
|
-
function block24 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item"
|
|
30
|
+
function block22 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`${ item.subItems ? block23.call(this, context, tags, suffix, item, index) : block28.call(this, context, tags, suffix, item, index) }`;}
|
|
31
|
+
function block23 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`<li class="udex-masthead-mobile-menu__list-item" role="none">${ item.url ? block24.call(this, context, tags, suffix, item, index) : block25.call(this, context, tags, suffix, item, index) }<ul class="udex-masthead-mobile-menu__sub-list" aria-label="${ifDefined(item.title)}">${ repeat(item.subItems, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block26.call(this, context, tags, suffix, item, index)) }</ul></li>`;}
|
|
32
|
+
function block24 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" @click="${this.handleMobileCategoryItemEvent}" label="${ifDefined(item.title)}" url="${ifDefined(item.url)}" class="udex-masthead-mobile-menu__sub-category" third-level></${scopeTag("udex-masthead-menu-item", tags, suffix)}>` : html`<udex-masthead-menu-item part="menu-item" @click="${this.handleMobileCategoryItemEvent}" label="${ifDefined(item.title)}" url="${ifDefined(item.url)}" class="udex-masthead-mobile-menu__sub-category" third-level></udex-masthead-menu-item>`;}
|
|
33
|
+
function block25 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`<span class="udex-masthead-mobile-menu__sub-category">${ifDefined(item.title)}</span>`;}
|
|
34
|
+
function block26 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`${ item.url ? block27.call(this, context, tags, suffix, item, index) : undefined }`;}
|
|
35
|
+
function block27 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<li class="udex-masthead-mobile-menu__list-item" role="none"><${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" @click="${this.handleMobileCategoryItemEvent}" label="${ifDefined(item.title)}" url="${ifDefined(item.url)}" third-level></${scopeTag("udex-masthead-menu-item", tags, suffix)}></li>` : html`<li class="udex-masthead-mobile-menu__list-item" role="none"><udex-masthead-menu-item part="menu-item" @click="${this.handleMobileCategoryItemEvent}" label="${ifDefined(item.title)}" url="${ifDefined(item.url)}" third-level></udex-masthead-menu-item></li>`;}
|
|
36
|
+
function block28 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`${ item.url ? block29.call(this, context, tags, suffix, item, index) : undefined }`;}
|
|
37
|
+
function block29 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<li class="udex-masthead-mobile-menu__list-item" role="none"><${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" @click="${this.handleMobileCategoryItemEvent}" label="${ifDefined(item.title)}" url="${ifDefined(item.url)}" third-level></${scopeTag("udex-masthead-menu-item", tags, suffix)}></li>` : html`<li class="udex-masthead-mobile-menu__list-item" role="none"><udex-masthead-menu-item part="menu-item" @click="${this.handleMobileCategoryItemEvent}" label="${ifDefined(item.title)}" url="${ifDefined(item.url)}" third-level></udex-masthead-menu-item></li>`;}
|
|
38
|
+
function block30 (this: MastheadMobileMenu, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} part="menu-item" class="udex-masthead-mobile-menu__explore-btn" id="${ifDefined(this.exploreItem._id)}" @click="${this.handleExploreSapClick}" accessible-role-text="button" aria-haspopup="true" type="Button" first-level-btn first-level icon-end is-explore label="${ifDefined(this.exploreItem.innerText)}"></${scopeTag("udex-masthead-menu-item", tags, suffix)}>` : html`<udex-masthead-menu-item part="menu-item" class="udex-masthead-mobile-menu__explore-btn" id="${ifDefined(this.exploreItem._id)}" @click="${this.handleExploreSapClick}" accessible-role-text="button" aria-haspopup="true" type="Button" first-level-btn first-level icon-end is-explore label="${ifDefined(this.exploreItem.innerText)}"></udex-masthead-menu-item>`;}
|
|
33
39
|
|
|
34
40
|
function template(this: MastheadMobileMenu) { return block0.call(this, this, (this.constructor as typeof UI5Element).tagsToScope, getCustomElementsScopingSuffix()); }
|
|
35
41
|
export default template;
|
|
@@ -14,10 +14,10 @@ function block5 (this: SearchableListBase, context: UI5Element, tags: string[],
|
|
|
14
14
|
function block6 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`${ item.isGroup ? block7.call(this, context, tags, suffix, item, index) : block12.call(this, context, tags, suffix, item, index) }`;}
|
|
15
15
|
function block7 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return html`${ item.item.isSelectAllHeader ? block8.call(this, context, tags, suffix, item, index) : block10.call(this, context, tags, suffix, item, index) }`;}
|
|
16
16
|
function block8 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-list-select-all", tags, suffix)} _additional-class-name="${ifDefined(this.additionalClassName)}" data-token-id="${ifDefined(item.item._id)}" label="${ifDefined(item.item.label)}" ?controlled="${item.item.controlled}" supporting-text="${ifDefined(item.item.supportingText)}" ?disabled="${item.item.disabled}" ?selected="${item.item.selected}" ?indeterminate="${item.item.indeterminate}" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}">${ repeat(item.groupItems, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block9.call(this, context, tags, suffix, item, index)) }</${scopeTag("udex-list-select-all", tags, suffix)}>` : html`<udex-list-select-all _additional-class-name="${ifDefined(this.additionalClassName)}" data-token-id="${ifDefined(item.item._id)}" label="${ifDefined(item.item.label)}" ?controlled="${item.item.controlled}" supporting-text="${ifDefined(item.item.supportingText)}" ?disabled="${item.item.disabled}" ?selected="${item.item.selected}" ?indeterminate="${item.item.indeterminate}" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}">${ repeat(item.groupItems, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block9.call(this, context, tags, suffix, item, index)) }</udex-list-select-all>`;}
|
|
17
|
-
function block9 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-list-item", tags, suffix)} role="${ifDefined(this.listItemRole)}" data-role="${ifDefined(this.listItemRole)}" data-token-id="${ifDefined(item._id)}" ?controlled="${item.controlled}" mode="${ifDefined(item.mode)}" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" supporting-text="${ifDefined(item.supportingText)}" additional-text="${ifDefined(item.additionalText)}" additional-text-state="${ifDefined(item.additionalTextState)}" ?divider="${item.divider}" ?disabled="${item.disabled}" ?selected="${item.selected}" label="${ifDefined(item.label)}">${unsafeHTML(item.innerHTML)}</${scopeTag("udex-list-item", tags, suffix)}>` : html`<udex-list-item role="${ifDefined(this.listItemRole)}" data-role="${ifDefined(this.listItemRole)}" data-token-id="${ifDefined(item._id)}" ?controlled="${item.controlled}" mode="${ifDefined(item.mode)}" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" supporting-text="${ifDefined(item.supportingText)}" additional-text="${ifDefined(item.additionalText)}" additional-text-state="${ifDefined(item.additionalTextState)}" ?divider="${item.divider}" ?disabled="${item.disabled}" ?selected="${item.selected}" label="${ifDefined(item.label)}">${unsafeHTML(item.innerHTML)}</udex-list-item>`;}
|
|
17
|
+
function block9 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-list-item", tags, suffix)} role="${ifDefined(this.listItemRole)}" data-role="${ifDefined(this.listItemRole)}" data-token-id="${ifDefined(item._id)}" ?controlled="${item.controlled}" mode="${ifDefined(item.mode)}" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" supporting-text="${ifDefined(item.supportingText)}" additional-text="${ifDefined(item.additionalText)}" additional-text-state="${ifDefined(item.additionalTextState)}" ?divider="${item.divider}" ?disabled="${item.disabled}" ?selected="${item.selected}" rating="${ifDefined(item.rating)}" total-count="${ifDefined(item.totalCount)}" rating-count="${ifDefined(item.ratingCount)}" rating-max="${ifDefined(item.ratingMax)}" label="${ifDefined(item.label)}">${unsafeHTML(item.innerHTML)}</${scopeTag("udex-list-item", tags, suffix)}>` : html`<udex-list-item role="${ifDefined(this.listItemRole)}" data-role="${ifDefined(this.listItemRole)}" data-token-id="${ifDefined(item._id)}" ?controlled="${item.controlled}" mode="${ifDefined(item.mode)}" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" supporting-text="${ifDefined(item.supportingText)}" additional-text="${ifDefined(item.additionalText)}" additional-text-state="${ifDefined(item.additionalTextState)}" ?divider="${item.divider}" ?disabled="${item.disabled}" ?selected="${item.selected}" rating="${ifDefined(item.rating)}" total-count="${ifDefined(item.totalCount)}" rating-count="${ifDefined(item.ratingCount)}" rating-max="${ifDefined(item.ratingMax)}" label="${ifDefined(item.label)}">${unsafeHTML(item.innerHTML)}</udex-list-item>`;}
|
|
18
18
|
function block10 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-list-group-header", tags, suffix)} role="group" _additional-class-name="udex-searchable-list__header" class="${ifDefined(this.groupClassName)}" ?non-interactive="${item.item.nonInteractive}" data-token-id="${ifDefined(item.item._id)}" label="${ifDefined(item.item.label)}" supporting-text="${ifDefined(item.item.supportingText)}" ?controlled="${item.item.controlled}" ?collapsible="${item.item.collapsible}" ?collapsed="${item.item.collapsed}" ?_filtered="${ifDefined(this._shouldFilterItems)}" ?disabled="${item.item.disabled}" ?selected="${item.item.selected}" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" ?indeterminate="${item.item.indeterminate}">${ repeat(item.groupItems, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block11.call(this, context, tags, suffix, item, index)) }</${scopeTag("udex-list-group-header", tags, suffix)}>` : html`<udex-list-group-header role="group" _additional-class-name="udex-searchable-list__header" class="${ifDefined(this.groupClassName)}" ?non-interactive="${item.item.nonInteractive}" data-token-id="${ifDefined(item.item._id)}" label="${ifDefined(item.item.label)}" supporting-text="${ifDefined(item.item.supportingText)}" ?controlled="${item.item.controlled}" ?collapsible="${item.item.collapsible}" ?collapsed="${item.item.collapsed}" ?_filtered="${ifDefined(this._shouldFilterItems)}" ?disabled="${item.item.disabled}" ?selected="${item.item.selected}" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" ?indeterminate="${item.item.indeterminate}">${ repeat(item.groupItems, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block11.call(this, context, tags, suffix, item, index)) }</udex-list-group-header>`;}
|
|
19
|
-
function block11 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-list-item", tags, suffix)} role="none" data-token-id="${ifDefined(item._id)}" ?controlled="${item.controlled}" mode="${ifDefined(item.mode)}" supporting-text="${ifDefined(item.supportingText)}" additional-text="${ifDefined(item.additionalText)}" additional-text-state="${ifDefined(item.additionalTextState)}" @ui5-first-icon-click="${ifDefined(item.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(item.fireSecondIconClickEvent)}" ?divider="${item.divider}" ?disabled="${item.disabled}" ?selected="${item.selected}" label="${ifDefined(item.label)}">${unsafeHTML(item.innerHTML)}</${scopeTag("udex-list-item", tags, suffix)}>` : html`<udex-list-item role="none" data-token-id="${ifDefined(item._id)}" ?controlled="${item.controlled}" mode="${ifDefined(item.mode)}" supporting-text="${ifDefined(item.supportingText)}" additional-text="${ifDefined(item.additionalText)}" additional-text-state="${ifDefined(item.additionalTextState)}" @ui5-first-icon-click="${ifDefined(item.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(item.fireSecondIconClickEvent)}" ?divider="${item.divider}" ?disabled="${item.disabled}" ?selected="${item.selected}" label="${ifDefined(item.label)}">${unsafeHTML(item.innerHTML)}</udex-list-item>`;}
|
|
20
|
-
function block12 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-list-item", tags, suffix)} role="none" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" data-token-id="${ifDefined(item.item._id)}" supporting-text="${ifDefined(item.item.supportingText)}" additional-text="${ifDefined(item.item.additionalText)}" additional-text-state="${ifDefined(item.item.additionalTextState)}" ?disabled="${item.item.disabled}" ?controlled="${item.controlled}" ?divider="${item.divider}" ?selected="${item.item.selected}" label="${ifDefined(item.item.label)}" accessible-role="${ifDefined(this.listItemRole)}">${unsafeHTML(item.item.innerHTML)}</${scopeTag("udex-list-item", tags, suffix)}>` : html`<udex-list-item role="none" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" data-token-id="${ifDefined(item.item._id)}" supporting-text="${ifDefined(item.item.supportingText)}" additional-text="${ifDefined(item.item.additionalText)}" additional-text-state="${ifDefined(item.item.additionalTextState)}" ?disabled="${item.item.disabled}" ?controlled="${item.controlled}" ?divider="${item.divider}" ?selected="${item.item.selected}" label="${ifDefined(item.item.label)}" accessible-role="${ifDefined(this.listItemRole)}">${unsafeHTML(item.item.innerHTML)}</udex-list-item>`;}
|
|
19
|
+
function block11 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-list-item", tags, suffix)} role="none" data-token-id="${ifDefined(item._id)}" ?controlled="${item.controlled}" mode="${ifDefined(item.mode)}" supporting-text="${ifDefined(item.supportingText)}" additional-text="${ifDefined(item.additionalText)}" additional-text-state="${ifDefined(item.additionalTextState)}" @ui5-first-icon-click="${ifDefined(item.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(item.fireSecondIconClickEvent)}" ?divider="${item.divider}" ?disabled="${item.disabled}" ?selected="${item.selected}" rating="${ifDefined(item.rating)}" total-count="${ifDefined(item.totalCount)}" rating-count="${ifDefined(item.ratingCount)}" rating-max="${ifDefined(item.ratingMax)}" label="${ifDefined(item.label)}">${unsafeHTML(item.innerHTML)}</${scopeTag("udex-list-item", tags, suffix)}>` : html`<udex-list-item role="none" data-token-id="${ifDefined(item._id)}" ?controlled="${item.controlled}" mode="${ifDefined(item.mode)}" supporting-text="${ifDefined(item.supportingText)}" additional-text="${ifDefined(item.additionalText)}" additional-text-state="${ifDefined(item.additionalTextState)}" @ui5-first-icon-click="${ifDefined(item.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(item.fireSecondIconClickEvent)}" ?divider="${item.divider}" ?disabled="${item.disabled}" ?selected="${item.selected}" rating="${ifDefined(item.rating)}" total-count="${ifDefined(item.totalCount)}" rating-count="${ifDefined(item.ratingCount)}" rating-max="${ifDefined(item.ratingMax)}" label="${ifDefined(item.label)}">${unsafeHTML(item.innerHTML)}</udex-list-item>`;}
|
|
20
|
+
function block12 (this: SearchableListBase, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<${scopeTag("udex-list-item", tags, suffix)} role="none" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" data-token-id="${ifDefined(item.item._id)}" supporting-text="${ifDefined(item.item.supportingText)}" additional-text="${ifDefined(item.item.additionalText)}" additional-text-state="${ifDefined(item.item.additionalTextState)}" ?disabled="${item.item.disabled}" ?controlled="${item.controlled}" ?divider="${item.divider}" ?selected="${item.item.selected}" rating="${ifDefined(item.item.rating)}" total-count="${ifDefined(item.item.totalCount)}" rating-count="${ifDefined(item.item.ratingCount)}" rating-max="${ifDefined(item.item.ratingMax)}" label="${ifDefined(item.item.label)}" accessible-role="${ifDefined(this.listItemRole)}">${unsafeHTML(item.item.innerHTML)}</${scopeTag("udex-list-item", tags, suffix)}>` : html`<udex-list-item role="none" @ui5-first-icon-click="${ifDefined(this.fireFirstIconClickEvent)}" @ui5-second-icon-click="${ifDefined(this.fireSecondIconClickEvent)}" data-token-id="${ifDefined(item.item._id)}" supporting-text="${ifDefined(item.item.supportingText)}" additional-text="${ifDefined(item.item.additionalText)}" additional-text-state="${ifDefined(item.item.additionalTextState)}" ?disabled="${item.item.disabled}" ?controlled="${item.controlled}" ?divider="${item.divider}" ?selected="${item.item.selected}" rating="${ifDefined(item.item.rating)}" total-count="${ifDefined(item.item.totalCount)}" rating-count="${ifDefined(item.item.ratingCount)}" rating-max="${ifDefined(item.item.ratingMax)}" label="${ifDefined(item.item.label)}" accessible-role="${ifDefined(this.listItemRole)}">${unsafeHTML(item.item.innerHTML)}</udex-list-item>`;}
|
|
21
21
|
|
|
22
22
|
function template(this: SearchableListBase) { return block0.call(this, this, (this.constructor as typeof UI5Element).tagsToScope, getCustomElementsScopingSuffix()); }
|
|
23
23
|
export default template;
|