@sapudex/web-components 2.32.0 → 2.33.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/fixtures/masthead-shell.ts +281 -0
- package/cypress/specs/Breadcrumbs.cy.tsx +196 -1
- package/cypress/specs/MastheadShell.cy.tsx +645 -0
- package/cypress/specs/SecondaryNavigationDesktop.cy.tsx +289 -95
- package/cypress/specs/SecondaryNavigationMobile.cy.tsx +42 -0
- package/cypress/specs/SelectBox.cy.tsx +35 -0
- package/cypress/specs/StepInput.cy.tsx +507 -0
- package/cypress/specs/TabNavigation.cy.tsx +431 -10
- package/cypress/support/component-imports.instrumented.ts +16 -0
- package/cypress/support/component-imports.src.ts +15 -3
- package/dist/Breadcrumbs.d.ts +12 -0
- package/dist/Breadcrumbs.js +30 -6
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/BreadcrumbsPopoverTemplate.js +10 -1
- package/dist/BreadcrumbsPopoverTemplate.js.map +1 -1
- package/dist/BreadcrumbsTemplate.js +1 -1
- package/dist/BreadcrumbsTemplate.js.map +1 -1
- package/dist/HeroBanner.d.ts +0 -3
- package/dist/HeroBanner.js +0 -5
- package/dist/HeroBanner.js.map +1 -1
- package/dist/HeroBannerTemplate.d.ts +2 -0
- package/dist/HeroBannerTemplate.js +6 -1
- package/dist/HeroBannerTemplate.js.map +1 -1
- package/dist/SecondaryNavigation.d.ts +1 -6
- package/dist/SecondaryNavigation.js +6 -59
- package/dist/SecondaryNavigation.js.map +1 -1
- package/dist/SecondaryNavigationItem.d.ts +5 -12
- package/dist/SecondaryNavigationItem.js +34 -65
- package/dist/SecondaryNavigationItem.js.map +1 -1
- package/dist/SecondaryNavigationItemBase.d.ts +0 -1
- package/dist/SecondaryNavigationItemBase.js +0 -4
- package/dist/SecondaryNavigationItemBase.js.map +1 -1
- package/dist/SelectBase.js +2 -1
- package/dist/SelectBase.js.map +1 -1
- package/dist/StepInput.d.ts +3 -0
- package/dist/StepInput.js +17 -0
- package/dist/StepInput.js.map +1 -1
- package/dist/StepInputTemplate.js +1 -1
- package/dist/StepInputTemplate.js.map +1 -1
- package/dist/Tab.d.ts +19 -0
- package/dist/Tab.js +22 -0
- package/dist/Tab.js.map +1 -1
- package/dist/TabNavigation.d.ts +9 -1
- package/dist/TabNavigation.js +25 -7
- package/dist/TabNavigation.js.map +1 -1
- package/dist/assets/{InputSuggestions-CHLLTki3.js → InputSuggestions-B_Dl2L6w.js} +1 -1
- package/dist/assets/{ListItemStandardExpandableTextTemplate-vM1eIFe4.js → ListItemStandardExpandableTextTemplate-9Z-aZmJx.js} +1 -1
- package/dist/assets/{bundle-S1uYREqT.css → bundle-DbTEs-Za.css} +1 -1
- package/dist/assets/{bundle.esm-fUZ1I3qm.js → bundle.esm-BlIxH9k1.js} +210 -210
- package/dist/css/themes/Breadcrumbs.css +1 -1
- package/dist/css/themes/BreadcrumbsPopover.css +1 -1
- package/dist/css/themes/FilterMenu.css +1 -1
- package/dist/css/themes/HeroBanner.css +1 -1
- package/dist/css/themes/ListItem.css +1 -1
- package/dist/css/themes/Modal.css +1 -1
- package/dist/css/themes/RatingIndicator.css +1 -1
- package/dist/css/themes/SecondaryNavigationItem.css +1 -1
- package/dist/css/themes/Slider.css +1 -1
- package/dist/css/themes/TabNavigation.css +1 -1
- package/dist/custom-elements-internal.json +57 -2
- package/dist/custom-elements.json +57 -2
- package/dist/generated/templates/ListItemTemplate.lit.js +4 -4
- package/dist/generated/templates/ListItemTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SecondaryNavigationItemTemplate.lit.js +4 -4
- package/dist/generated/templates/SecondaryNavigationItemTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SecondaryNavigationSubItemTemplate.lit.js +3 -3
- package/dist/generated/templates/SecondaryNavigationSubItemTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SecondaryNavigationTemplate.lit.js +5 -5
- package/dist/generated/templates/SecondaryNavigationTemplate.lit.js.map +1 -1
- package/dist/generated/templates/TabHeaderTemplate.lit.js +40 -24
- package/dist/generated/templates/TabHeaderTemplate.lit.js.map +1 -1
- package/dist/generated/templates/TabNavigationTemplate.lit.js +1 -1
- package/dist/generated/templates/TabNavigationTemplate.lit.js.map +1 -1
- package/dist/generated/themes/Breadcrumbs.css.d.ts +1 -1
- package/dist/generated/themes/Breadcrumbs.css.js +1 -1
- package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
- package/dist/generated/themes/BreadcrumbsPopover.css.d.ts +1 -1
- package/dist/generated/themes/BreadcrumbsPopover.css.js +1 -1
- package/dist/generated/themes/BreadcrumbsPopover.css.js.map +1 -1
- package/dist/generated/themes/FilterMenu.css.d.ts +1 -1
- package/dist/generated/themes/FilterMenu.css.js +1 -1
- package/dist/generated/themes/FilterMenu.css.js.map +1 -1
- package/dist/generated/themes/HeroBanner.css.d.ts +1 -1
- package/dist/generated/themes/HeroBanner.css.js +1 -1
- package/dist/generated/themes/HeroBanner.css.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/Modal.css.d.ts +1 -1
- package/dist/generated/themes/Modal.css.js +1 -1
- package/dist/generated/themes/Modal.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/SecondaryNavigationItem.css.d.ts +1 -1
- package/dist/generated/themes/SecondaryNavigationItem.css.js +1 -1
- package/dist/generated/themes/SecondaryNavigationItem.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/generated/themes/TabNavigation.css.d.ts +1 -1
- package/dist/generated/themes/TabNavigation.css.js +1 -1
- package/dist/generated/themes/TabNavigation.css.js.map +1 -1
- package/dist/vscode.html-custom-data.json +16 -1
- package/dist/web-types.json +33 -3
- package/package.json +1 -1
- package/src/Breadcrumbs.ts +26 -7
- package/src/BreadcrumbsPopoverTemplate.tsx +53 -41
- package/src/BreadcrumbsTemplate.tsx +35 -21
- package/src/HeroBanner.ts +0 -5
- package/src/HeroBannerTemplate.tsx +6 -1
- package/src/ListItem.hbs +16 -12
- package/src/SecondaryNavigation.hbs +6 -6
- package/src/SecondaryNavigation.ts +7 -66
- package/src/SecondaryNavigationItem.hbs +4 -6
- package/src/SecondaryNavigationItem.ts +40 -83
- package/src/SecondaryNavigationItemBase.ts +0 -3
- package/src/SecondaryNavigationSubItem.hbs +3 -7
- package/src/SelectBase.ts +2 -1
- package/src/StepInput.ts +20 -0
- package/src/StepInputTemplate.tsx +1 -1
- package/src/Tab.ts +32 -0
- package/src/TabHeader.hbs +40 -19
- package/src/TabNavigation.hbs +5 -9
- package/src/TabNavigation.ts +25 -8
- package/src/generated/templates/ListItemTemplate.lit.ts +4 -4
- package/src/generated/templates/SecondaryNavigationItemTemplate.lit.ts +4 -4
- package/src/generated/templates/SecondaryNavigationSubItemTemplate.lit.ts +3 -3
- package/src/generated/templates/SecondaryNavigationTemplate.lit.ts +5 -5
- package/src/generated/templates/TabHeaderTemplate.lit.ts +40 -24
- package/src/generated/templates/TabNavigationTemplate.lit.ts +1 -1
- package/src/generated/themes/Breadcrumbs.css.ts +1 -1
- package/src/generated/themes/BreadcrumbsPopover.css.ts +1 -1
- package/src/generated/themes/FilterMenu.css.ts +1 -1
- package/src/generated/themes/HeroBanner.css.ts +1 -1
- package/src/generated/themes/ListItem.css.ts +1 -1
- package/src/generated/themes/Modal.css.ts +1 -1
- package/src/generated/themes/RatingIndicator.css.ts +1 -1
- package/src/generated/themes/SecondaryNavigationItem.css.ts +1 -1
- package/src/generated/themes/Slider.css.ts +1 -1
- package/src/generated/themes/TabNavigation.css.ts +1 -1
- package/src/themes/Breadcrumbs.css +6 -0
- package/src/themes/BreadcrumbsPopover.css +12 -2
- package/src/themes/FilterMenu.css +5 -1
- package/src/themes/HeroBanner.css +93 -76
- package/src/themes/ListItem.css +6 -1
- package/src/themes/Modal.css +3 -2
- package/src/themes/SecondaryNavigationItem.css +4 -1
- package/src/themes/TabNavigation.css +58 -73
- package/dist/generated/templates/HeroBannerTemplate.lit.d.ts +0 -3
- package/dist/generated/templates/HeroBannerTemplate.lit.js +0 -15
- package/dist/generated/templates/HeroBannerTemplate.lit.js.map +0 -1
- package/src/HeroBanner.hbs +0 -46
- package/src/generated/templates/HeroBannerTemplate.lit.ts +0 -19
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
--udexHeroBannerBackroundVideoZIndex: 1;
|
|
9
9
|
--udexHeroBannerContentZIndex: 2;
|
|
10
10
|
--udexHeroBannerContentPaddingHorizontal: var(--udexGridXSMargins, 24px);
|
|
11
|
-
--udexHeroBannerContentPaddingVertical:
|
|
11
|
+
--udexHeroBannerContentPaddingVertical: 40px;
|
|
12
12
|
--udexHeroBannerContentPaddingVerticalXLtoM: var(--udexSpacer56, 56px);
|
|
13
13
|
--udexHeroBannerPaddingHorizontalLandM: var(--udexSpacer72);
|
|
14
|
+
--udexHeroBannerPaddingVerticalBottomS: var(--udexSpacer48);
|
|
15
|
+
--udexHeroBannerPaddingVerticalBottomXS: var(--udexSpacer48);
|
|
14
16
|
--udexHeroBannerPaddingHorizontalS: var(--udexSpacer48);
|
|
15
17
|
--udexHeroBannerPaddingHorizontalXS: var(--udexSpacer24);
|
|
16
18
|
--udexHeroBannerBackgroundVideoColor: trasparent;
|
|
@@ -58,41 +60,20 @@
|
|
|
58
60
|
padding: var(--udexHeroBannerContentPaddingVerticalXLtoM) var(--udexSpacer84);
|
|
59
61
|
height: 100%;
|
|
60
62
|
box-sizing: border-box;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
justify-content: center;
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
.udex-hero-banner__background-video-wrapper .udex-hero-banner__background-image {
|
|
64
69
|
display: none;
|
|
65
70
|
}
|
|
66
71
|
|
|
67
|
-
.udex-hero-banner__media-button:dir(rtl) {
|
|
68
|
-
left: 0;
|
|
69
|
-
right: initial;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.udex-hero-banner__media-button:hover {
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
background: var(--udexColorNeutralBlack70);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.udex-hero-banner__media-button ui5-icon {
|
|
78
|
-
color: var(--udexColorNeutralWhite);
|
|
79
|
-
display: flex;
|
|
80
|
-
align-items: center;
|
|
81
|
-
justify-content: center;
|
|
82
|
-
height: 1.5rem;
|
|
83
|
-
width: 1.5rem;
|
|
84
|
-
}
|
|
85
72
|
.udex-hero-banner__background-image:dir(rtl),
|
|
86
73
|
.udex-hero-banner__background-video-overlay:dir(rtl) {
|
|
87
74
|
transform: scaleX(-1);
|
|
88
75
|
}
|
|
89
76
|
|
|
90
|
-
.udex-hero-banner__background-video,
|
|
91
|
-
.udex-hero-banner__background-video-overlay,
|
|
92
|
-
.udex-hero-banner__media-button {
|
|
93
|
-
display: none;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
77
|
#udex-hero-banner__content,
|
|
97
78
|
#udex-hero-banner__additionalContent {
|
|
98
79
|
position: relative;
|
|
@@ -115,6 +96,77 @@
|
|
|
115
96
|
height: var(--udexHeroBannerHeight, auto);
|
|
116
97
|
}
|
|
117
98
|
|
|
99
|
+
.udex-hero-banner--video {
|
|
100
|
+
height: 28.125rem; /* 450px */
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.udex-hero-banner__media-button {
|
|
104
|
+
border: none;
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
align-items: center;
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
padding: 0;
|
|
110
|
+
width: 3rem;
|
|
111
|
+
height: 3rem;
|
|
112
|
+
position: absolute;
|
|
113
|
+
bottom: var(--udexSpacer48);
|
|
114
|
+
right: var(--udexSpacer84);
|
|
115
|
+
z-index: 3;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.udex-hero-banner__media-button:before {
|
|
121
|
+
content: '';
|
|
122
|
+
position: absolute;
|
|
123
|
+
inset: 0;
|
|
124
|
+
background: var(--udexColorNeutralBlack);
|
|
125
|
+
opacity: 0.8;
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
z-index: -1;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.udex-hero-banner__media-button:dir(rtl) {
|
|
131
|
+
left: var(--udexSpacer84);
|
|
132
|
+
right: auto;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.udex-hero-banner__media-button:hover [ui5-icon] {
|
|
136
|
+
color: var(--udexColorGrey4);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.udex-hero-banner__media-button [ui5-icon] {
|
|
140
|
+
color: var(--udexColorNeutralWhite);
|
|
141
|
+
height: 100%;
|
|
142
|
+
width: 100%;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.udex-hero-banner__background-video {
|
|
146
|
+
position: absolute;
|
|
147
|
+
display: block;
|
|
148
|
+
width: 100%;
|
|
149
|
+
object-fit: cover;
|
|
150
|
+
object-position: center;
|
|
151
|
+
height: 100%;
|
|
152
|
+
top: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.udex-hero-banner__background-video-overlay {
|
|
157
|
+
position: absolute;
|
|
158
|
+
display: block;
|
|
159
|
+
width: 100%;
|
|
160
|
+
height: 100%;
|
|
161
|
+
background: linear-gradient(90deg, rgba(18, 23, 28, 0.765) 0%, rgba(18, 23, 28, 0.09) 100%);
|
|
162
|
+
top: 0;
|
|
163
|
+
left: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.udex-hero-banner__background-image {
|
|
167
|
+
object-position: var(--udexHeroBannerHorizontalLayoutBackgroundImageAlignment, top right);
|
|
168
|
+
}
|
|
169
|
+
|
|
118
170
|
@media (max-width: 1599px) {
|
|
119
171
|
.udex-hero-banner__container {
|
|
120
172
|
padding: var(--udexHeroBannerContentPaddingVerticalXLtoM) var(--udexHeroBannerPaddingHorizontalLandM);
|
|
@@ -124,9 +176,23 @@
|
|
|
124
176
|
.udex-hero-banner__background-video-wrapper {
|
|
125
177
|
padding: var(--udexHeroBannerContentPaddingVerticalXLtoM) var(--udexHeroBannerPaddingHorizontalLandM);
|
|
126
178
|
}
|
|
179
|
+
|
|
180
|
+
.udex-hero-banner__media-button {
|
|
181
|
+
right: var(--udexSpacer72);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.udex-hero-banner__media-button:dir(rtl) {
|
|
185
|
+
left: var(--udexSpacer72);
|
|
186
|
+
}
|
|
127
187
|
}
|
|
128
188
|
|
|
129
189
|
@media (max-width: 979px) {
|
|
190
|
+
.udex-hero-banner__background-video,
|
|
191
|
+
.udex-hero-banner__background-video-overlay,
|
|
192
|
+
.udex-hero-banner__media-button {
|
|
193
|
+
display: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
130
196
|
.udex-hero-banner__container {
|
|
131
197
|
padding: var(--udexHeroBannerContentPaddingVertical) var(--udexHeroBannerPaddingHorizontalS);
|
|
132
198
|
max-width: 100%;
|
|
@@ -139,7 +205,7 @@
|
|
|
139
205
|
}
|
|
140
206
|
|
|
141
207
|
.udex-hero-banner__background-video-wrapper {
|
|
142
|
-
padding: var(--udexHeroBannerContentPaddingVertical) var(--udexHeroBannerPaddingHorizontalS);
|
|
208
|
+
padding: var(--udexHeroBannerContentPaddingVertical) var(--udexHeroBannerPaddingHorizontalS) var(--udexHeroBannerPaddingVerticalBottomS);
|
|
143
209
|
background-color: var(--udexHeroBannerBackgroundVideoColor);
|
|
144
210
|
}
|
|
145
211
|
|
|
@@ -161,59 +227,10 @@
|
|
|
161
227
|
}
|
|
162
228
|
|
|
163
229
|
.udex-hero-banner__background-video-wrapper {
|
|
164
|
-
padding: var(--udexHeroBannerContentPaddingVertical) var(--udexHeroBannerPaddingHorizontalXS);
|
|
230
|
+
padding: var(--udexHeroBannerContentPaddingVertical) var(--udexHeroBannerPaddingHorizontalXS) var(--udexHeroBannerPaddingVerticalBottomXS);
|
|
165
231
|
}
|
|
166
232
|
|
|
167
233
|
.udex-hero-banner__background-video-wrapper .udex-hero-banner__background-image {
|
|
168
234
|
display: none;
|
|
169
235
|
}
|
|
170
236
|
}
|
|
171
|
-
|
|
172
|
-
@media (min-width: 980px) {
|
|
173
|
-
.udex-hero-banner--video {
|
|
174
|
-
height: 28.125rem; /* 450px */
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.udex-hero-banner__media-button {
|
|
178
|
-
border: 3px solid var(--udexColorNeutralWhite);
|
|
179
|
-
color: var(--udexColorNeutralWhite);
|
|
180
|
-
background: var(--udexColorNeutralBlack40);
|
|
181
|
-
display: flex;
|
|
182
|
-
justify-content: center;
|
|
183
|
-
align-items: center;
|
|
184
|
-
border-radius: 50%;
|
|
185
|
-
padding: 0;
|
|
186
|
-
width: 3rem;
|
|
187
|
-
height: 3rem;
|
|
188
|
-
position: absolute;
|
|
189
|
-
bottom: 0;
|
|
190
|
-
right: 0;
|
|
191
|
-
margin: var(--udexHeroBannerContentPaddingHorizontal);
|
|
192
|
-
z-index: 3;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.udex-hero-banner__background-video {
|
|
196
|
-
position: absolute;
|
|
197
|
-
display: block;
|
|
198
|
-
width: 100%;
|
|
199
|
-
object-fit: cover;
|
|
200
|
-
object-position: center;
|
|
201
|
-
height: 100%;
|
|
202
|
-
top: 0;
|
|
203
|
-
left: 0;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.udex-hero-banner__background-video-overlay {
|
|
207
|
-
position: absolute;
|
|
208
|
-
display: block;
|
|
209
|
-
width: 100%;
|
|
210
|
-
height: 100%;
|
|
211
|
-
background: linear-gradient(90deg, rgba(18, 23, 28, 0.765) 0%, rgba(18, 23, 28, 0.09) 100%);
|
|
212
|
-
top: 0;
|
|
213
|
-
left: 0;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.udex-hero-banner__background-image {
|
|
217
|
-
object-position: var(--udexHeroBannerHorizontalLayoutBackgroundImageAlignment, top right);
|
|
218
|
-
}
|
|
219
|
-
}
|
package/src/themes/ListItem.css
CHANGED
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
|
|
160
160
|
:host::part(additional-text) {
|
|
161
161
|
margin-inline-start: 0;
|
|
162
|
-
margin-inline-end: var(--
|
|
162
|
+
margin-inline-end: var(--udexSpacer12, 12px);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
:host([mode="SingleContent"])::part(button) {
|
|
@@ -206,6 +206,11 @@
|
|
|
206
206
|
width: 100%;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
.udex-list__btn-wrap {
|
|
210
|
+
display: flex;
|
|
211
|
+
gap: var(--udexSpacer8, 8px);
|
|
212
|
+
}
|
|
213
|
+
|
|
209
214
|
.udex-list__number {
|
|
210
215
|
margin-inline-end: var(--udexSpacer8, 8px);
|
|
211
216
|
}
|
package/src/themes/Modal.css
CHANGED
|
@@ -190,7 +190,6 @@
|
|
|
190
190
|
display: none;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
|
|
194
193
|
:host([desktop]) .udex-secondary-navigation__item:focus {
|
|
195
194
|
outline: none;
|
|
196
195
|
}
|
|
@@ -226,6 +225,10 @@
|
|
|
226
225
|
.udex-secondary-navigation__item:hover {
|
|
227
226
|
color: var(--udex-secondary-navigation-item-color);
|
|
228
227
|
}
|
|
228
|
+
|
|
229
|
+
.udex-secondary-navigation__dropdown-list {
|
|
230
|
+
padding: var(--udexSpacer16) 0;
|
|
231
|
+
}
|
|
229
232
|
}
|
|
230
233
|
|
|
231
234
|
@media (max-width: 639px) {
|
|
@@ -11,19 +11,20 @@
|
|
|
11
11
|
--udex-button-tab-font-size-default: var(--sapFontSize, var(--udexTypographyNavigationBoldXLFontSize));
|
|
12
12
|
--udex-button-tab-font-family: var(--sapFontFamily, sans-serif);
|
|
13
13
|
--udex-button-tab-font-weight: var(--sapButton_Emphasized_FontWeight, var(--udexTypographyFontWeightBold));
|
|
14
|
-
--udex-button-tab-line-height: 1.
|
|
14
|
+
--udex-button-tab-line-height: 1.1;
|
|
15
15
|
--udex-button-tab-padding-vertical: var(--udexSpacer12, 12px);
|
|
16
16
|
--udex-button-tab-padding-horizontal: var(--udexSpacer4, 4px);
|
|
17
17
|
|
|
18
18
|
--udex-button-tab-with-icon-without-background-border-color-active: transparent;
|
|
19
19
|
|
|
20
|
-
--udex-button-tab-with-icon-background: var(--
|
|
21
|
-
--udex-button-tab-with-icon-background-hover: var(--
|
|
22
|
-
--udex-button-tab-with-icon-color: var(--
|
|
23
|
-
--udex-button-tab-with-icon-color-hover: var(--
|
|
20
|
+
--udex-button-tab-with-icon-background: var(--udexColorNeutralWhite, #FFFFFF);
|
|
21
|
+
--udex-button-tab-with-icon-background-hover: var(--udexColorBlue2, #D1EFFF);
|
|
22
|
+
--udex-button-tab-with-icon-color: var(--udexColorGrey7, #475E75);
|
|
23
|
+
--udex-button-tab-with-icon-color-hover: var(--udexColorGrey9, #223548);
|
|
24
24
|
--udex-button-tab-with-icon-margin-bottom: var(--udexSpacer8, 8px);
|
|
25
|
-
--udex-button-tab-with-icon-background-active: var(--
|
|
25
|
+
--udex-button-tab-with-icon-background-active: var(--udexColorBlue8, #0057D2);
|
|
26
26
|
--udex-button-tab-with-icon-color-active: var(--sapBackgroundColor, var(--udexColorNeutralWhite));
|
|
27
|
+
--udex-button-tab-with-icon-border-color: var(--udexColorGrey3, #D5DADD);
|
|
27
28
|
|
|
28
29
|
--udex-button-tab-with-icon-without-background-color: var(--sapShell_Navigation_TextColor, var(--udexColorGrey9));
|
|
29
30
|
--udex-button-tab-with-icon-without-background-color-active: var(--sapHighlightColor, var(--udexColorBlue7));
|
|
@@ -37,26 +38,6 @@
|
|
|
37
38
|
--udex-tab-navigation-tab-with-icon-without-background-color-active: transparent;
|
|
38
39
|
|
|
39
40
|
--udex-button-more-margin-inline-end: 0;
|
|
40
|
-
--udex-button-more-s-font-size: var(--udexTypographyNavigationMediumMFontSize, 14px);
|
|
41
|
-
--udex-button-more-s-font-family: var(--sapFontFamily, sans-serif);
|
|
42
|
-
--udex-button-more-s-font-weight: var(--udexTypographyFontWeightMedium, 500);
|
|
43
|
-
--udex-button-more-s-line-height: 1.07143;
|
|
44
|
-
--udex-button-more-s-text-color: var(--sapTextColor, var(--udexColorGrey9));
|
|
45
|
-
--udex-button-more-s-padding-vertical: var(--udexSpacer4, 4px);
|
|
46
|
-
--udex-button-more-s-padding-horizontal: var(--udexSpacer8, 8px);
|
|
47
|
-
--udex-button-more-s-border-color: var(--sapButton_Neutral_BorderColor, var(--udexColorGrey4));
|
|
48
|
-
--udex-button-more-s-icon-margin-inline-start: var(--udexSpacer4, 4px);
|
|
49
|
-
--udex-button-more-s-icon-color: var(--sapTextColor, var(--udexColorGrey9));
|
|
50
|
-
--udex-button-more-s-border-color-toggled: var(--udexColorBlue4);
|
|
51
|
-
--udex-button-more-s-text-color-toggled: var(--sapContent_Selected_FocusColor, var(--udexColorBlue9));
|
|
52
|
-
--udex-button-more-s-icon-color-toggled: var(--sapContent_Selected_FocusColor, var(--udexColorBlue9));
|
|
53
|
-
|
|
54
|
-
--udex-button-more-m-font-size: var(--sapFontSize, var(--udexTypographyNavigationMediumXLFontSize));
|
|
55
|
-
--udex-button-more-m-font-family: var(--sapFontFamily, sans-serif);
|
|
56
|
-
--udex-button-more-m-font-weight: var(--udexTypographyFontWeightMedium, 500);
|
|
57
|
-
--udex-button-more-m-line-height: 1.125;
|
|
58
|
-
--udex-button-more-m-padding-vertical: var(--udexSpacer8, 8px);
|
|
59
|
-
--udex-button-more-m-padding-horizontal: var(--udexSpacer12, 12px);
|
|
60
41
|
|
|
61
42
|
--udex-tab-navigation-content-padding-vertical-desktop: var(--udexSpacer40, 40px);
|
|
62
43
|
--udex-tab-navigation-content-padding-vertical-mobile: var(--udexSpacer32, 32px);
|
|
@@ -132,14 +113,6 @@
|
|
|
132
113
|
height: 32px;
|
|
133
114
|
}
|
|
134
115
|
|
|
135
|
-
:host([size-more-button="Medium"]) .udex-tab-navigation__button-more {
|
|
136
|
-
padding: var(--udex-button-more-m-padding-vertical) var(--udex-button-more-m-padding-horizontal);
|
|
137
|
-
height: 34px;
|
|
138
|
-
font-size: var(--udex-button-more-m-font-size);
|
|
139
|
-
font-family: var(--udex-button-more-m-font-family);
|
|
140
|
-
font-weight: var(--udex-button-more-m-font-weight);
|
|
141
|
-
line-height: var(--udex-button-more-m-line-height);
|
|
142
|
-
}
|
|
143
116
|
|
|
144
117
|
:host([desktop]) .udex-tab-navigation__button-tab:focus .udex-tab-navigation__button-text,
|
|
145
118
|
.udex-tab-navigation__button-tab:focus-visible .udex-tab-navigation__button-text {
|
|
@@ -176,8 +149,7 @@
|
|
|
176
149
|
white-space: nowrap;
|
|
177
150
|
}
|
|
178
151
|
|
|
179
|
-
.udex-tab-navigation__button-tab
|
|
180
|
-
.udex-tab-navigation__button-more {
|
|
152
|
+
.udex-tab-navigation__button-tab {
|
|
181
153
|
padding: 0;
|
|
182
154
|
display: block;
|
|
183
155
|
background: none;
|
|
@@ -270,50 +242,14 @@
|
|
|
270
242
|
|
|
271
243
|
.udex-tab-navigation__button-more {
|
|
272
244
|
margin-inline-start: auto;
|
|
273
|
-
|
|
274
|
-
display: flex;
|
|
275
|
-
align-items: center;
|
|
276
|
-
flex: 0 0 0;
|
|
277
|
-
font-size: var(--udex-button-more-s-font-size);
|
|
278
|
-
font-family: var(--udex-button-more-s-font-family);
|
|
279
|
-
font-weight: var(--udex-button-more-s-font-weight);
|
|
280
|
-
line-height: var(--udex-button-more-s-line-height);
|
|
281
|
-
color: var(--udex-button-more-s-text-color);
|
|
282
|
-
border: 1px solid var(--udex-button-more-s-border-color);
|
|
283
|
-
border-radius: var(--udexRadiusM, 8px);
|
|
245
|
+
flex: 0 0 auto;
|
|
284
246
|
margin-inline-end: var(--udex-button-more-margin-inline-end);
|
|
285
247
|
}
|
|
286
|
-
:host([desktop]) .udex-tab-navigation__button-more:focus,
|
|
287
|
-
.udex-tab-navigation__button-more:focus-visible {
|
|
288
|
-
outline: 2px solid var(--udex-button-tab-text-color-active);
|
|
289
|
-
outline-offset: 2px;
|
|
290
|
-
}
|
|
291
248
|
|
|
292
249
|
.udex-tab-navigation__button-more[hidden] {
|
|
293
250
|
display: none;
|
|
294
251
|
}
|
|
295
252
|
|
|
296
|
-
.udex-tab-navigation__button-more--lg .udex-tab-navigation__button-more-icon {
|
|
297
|
-
width: 16px;
|
|
298
|
-
height: 16px;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.udex-tab-navigation__button-more-icon {
|
|
302
|
-
margin-inline-start: var(--udex-button-more-s-icon-margin-inline-start);
|
|
303
|
-
width: 14px;
|
|
304
|
-
height: 14px;
|
|
305
|
-
color: var(--udex-button-more-s-icon-color);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.udex-tab-navigation__button-more--toggled {
|
|
309
|
-
border-color: var(--udex-button-more-s-border-color-toggled);
|
|
310
|
-
color: var(--udex-button-more-s-text-color-toggled);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.udex-tab-navigation__button-more--toggled .udex-tab-navigation__button-more-icon {
|
|
314
|
-
color: var(--udex-button-more-s-icon-color-toggled);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
253
|
.udex-tab-navigation__button-icon-outer {
|
|
318
254
|
margin-left: auto;
|
|
319
255
|
margin-right: auto;
|
|
@@ -327,6 +263,7 @@
|
|
|
327
263
|
border-radius: 50%;
|
|
328
264
|
background-color: var(--udex-button-tab-with-icon-background);
|
|
329
265
|
color: var(--udex-button-tab-with-icon-color);
|
|
266
|
+
box-shadow: inset 0 0 0 1px var(--udex-button-tab-with-icon-border-color);
|
|
330
267
|
position: relative;
|
|
331
268
|
z-index: 0;
|
|
332
269
|
}
|
|
@@ -344,6 +281,7 @@
|
|
|
344
281
|
|
|
345
282
|
.udex-tab-navigation__button-tab--active .udex-tab-navigation__button-icon-outer {
|
|
346
283
|
background-color: var(--udex-button-tab-with-icon-background-active);
|
|
284
|
+
box-shadow: none;
|
|
347
285
|
}
|
|
348
286
|
|
|
349
287
|
.udex-tab-navigation__button-tab--active .udex-tab-navigation__button-icon {
|
|
@@ -352,6 +290,7 @@
|
|
|
352
290
|
|
|
353
291
|
.udex-tab-navigation__button-tab.udex-tab-navigation__button-tab--icon-tab:not(.udex-tab-navigation__button-tab--active):hover .udex-tab-navigation__button-icon-outer {
|
|
354
292
|
background-color: var(--udex-button-tab-with-icon-background-hover);
|
|
293
|
+
box-shadow: none;
|
|
355
294
|
}
|
|
356
295
|
|
|
357
296
|
.udex-tab-navigation__button-tab.udex-tab-navigation__button-tab--icon-tab:not(.udex-tab-navigation__button-tab--active):hover .udex-tab-navigation__button-icon {
|
|
@@ -598,3 +537,49 @@
|
|
|
598
537
|
margin-block-start: var(--udex-tab-navigation-footer-spacing, var(--udexSpacer20, 20px));
|
|
599
538
|
padding-inline-start: var(--udexSpacer16, 16px);
|
|
600
539
|
}
|
|
540
|
+
|
|
541
|
+
/* ===== Process Tab Variant ===== */
|
|
542
|
+
|
|
543
|
+
:host([process-tab]) {
|
|
544
|
+
--udex-button-tab-process-item-count-font-size: var(--udexTypographyNavigationRegularXSFontSize, 12px);
|
|
545
|
+
--udex-button-tab-process-item-count-font-weight: var(--udexTypographyFontWeightRegular, 400);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
:host([process-tab]) .udex-tab-navigation__button-tab--process {
|
|
549
|
+
flex-direction: row;
|
|
550
|
+
align-items: flex-start;
|
|
551
|
+
padding: var(--udexSpacer12, 12px) 0 calc(var(--udexSpacer12, 12px) + 3px);
|
|
552
|
+
gap: var(--udexSpacer8, 8px);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
:host([process-tab]) .udex-tab-navigation__button-tab--process:not(:last-child) {
|
|
556
|
+
margin-inline-end: var(--udexSpacer32, 32px);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
:host([process-tab]) .udex-tab-navigation__button-tab--process .udex-tab-navigation__button-icon-outer {
|
|
560
|
+
flex-shrink: 0;
|
|
561
|
+
margin: 0;
|
|
562
|
+
align-self: center;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
:host([process-tab]) .udex-tab-navigation__button-text-block {
|
|
566
|
+
display: flex;
|
|
567
|
+
flex-direction: column;
|
|
568
|
+
align-items: flex-start;
|
|
569
|
+
justify-content: center;
|
|
570
|
+
gap: var(--udexSpacer4, 4px);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
:host([process-tab]) .udex-tab-navigation__button-item-count {
|
|
574
|
+
display: block;
|
|
575
|
+
font-size: var(--udex-button-tab-process-item-count-font-size);
|
|
576
|
+
font-weight: var(--udex-button-tab-process-item-count-font-weight);
|
|
577
|
+
line-height: 1.1;
|
|
578
|
+
color: var(--udexColorGrey7, #475E75);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
:host([process-tab]) .udex-tab-navigation__button-text-block .udex-tab-navigation__button-text {
|
|
582
|
+
text-align: start;
|
|
583
|
+
font-weight: var(--udex-button-tab-font-weight);
|
|
584
|
+
font-size: var(--udex-button-tab-font-size-default);
|
|
585
|
+
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* eslint no-unused-vars: 0 */
|
|
2
|
-
import { html, ifDefined, scopeTag } from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
|
3
|
-
import { getCustomElementsScopingSuffix } from "@ui5/webcomponents-base/dist/CustomElementsScopeUtils.js";
|
|
4
|
-
function block0(context, tags, suffix) { return html `<div class="${ifDefined(this.heroBannerClasses)}" part="wrapper" style="background-color: ${ifDefined(this.wrapperBackgroundColor)}; ${ifDefined(this.wrapperBackgroundImage)}">${this.hasBackgroundVideo ? block1.call(this, context, tags, suffix) : block3.call(this, context, tags, suffix)}</div>${this.hasMediaContent ? block8.call(this, context, tags, suffix) : undefined} `; }
|
|
5
|
-
function block1(context, tags, suffix) { return suffix ? html `<div class="udex-hero-banner__background-video-wrapper" tabindex="0" @keydown="${this._handleKeydown}"><video ?autoplay="${this.shouldVideoAutoplay}" muted loop playsinline part="background-video" class="udex-hero-banner__background-video" alt="${ifDefined(this.backgroundVideoLabel)}"><source src="${ifDefined(this.backgroundVideo)}" type="video/mp4" /></video><div class="udex-hero-banner__background-video-overlay"></div>${this.hasBackgroundImage ? block2.call(this, context, tags, suffix) : undefined}<div class="udex-hero-banner__content-container"><slot id="udex-hero-banner__content" name="content" part="content"></slot><slot id="udex-hero-banner__additionalContent" name="additionalContent" part="additionalContent"></slot></div><button class="udex-hero-banner__media-button" aria-label="Play / Pause button" role="button" @click="${this._toggleMediaButton}"><${scopeTag("ui5-icon", tags, suffix)} name="${ifDefined(this.mediaButtonIconName)}"></${scopeTag("ui5-icon", tags, suffix)}></button></div>` : html `<div class="udex-hero-banner__background-video-wrapper" tabindex="0" @keydown="${this._handleKeydown}"><video ?autoplay="${this.shouldVideoAutoplay}" muted loop playsinline part="background-video" class="udex-hero-banner__background-video" alt="${ifDefined(this.backgroundVideoLabel)}"><source src="${ifDefined(this.backgroundVideo)}" type="video/mp4" /></video><div class="udex-hero-banner__background-video-overlay"></div>${this.hasBackgroundImage ? block2.call(this, context, tags, suffix) : undefined}<div class="udex-hero-banner__content-container"><slot id="udex-hero-banner__content" name="content" part="content"></slot><slot id="udex-hero-banner__additionalContent" name="additionalContent" part="additionalContent"></slot></div><button class="udex-hero-banner__media-button" aria-label="Play / Pause button" role="button" @click="${this._toggleMediaButton}"><ui5-icon name="${ifDefined(this.mediaButtonIconName)}"></ui5-icon></button></div>`; }
|
|
6
|
-
function block2(context, tags, suffix) { return html `<picture><img loading="${ifDefined(this.backgroundImageLoadingStrategy)}" src="${ifDefined(this.backgroundImage)}" part="background-image" class="udex-hero-banner__background-image" alt="${ifDefined(this.backgroundImageLabel)}" /></picture>`; }
|
|
7
|
-
function block3(context, tags, suffix) { return html `<div class="udex-hero-banner__container">${this.hasCustomBackgroundPicture ? block4.call(this, context, tags, suffix) : block5.call(this, context, tags, suffix)}<div class="udex-hero-banner__content-container"><slot id="udex-hero-banner__content" name="content" part="content"></slot>${this.hasAdditionalContent ? block7.call(this, context, tags, suffix) : undefined}</div></div>`; }
|
|
8
|
-
function block4(context, tags, suffix) { return html `<slot name="backgroundPicture"></slot>`; }
|
|
9
|
-
function block5(context, tags, suffix) { return html `${this.hasBackgroundImage ? block6.call(this, context, tags, suffix) : undefined}`; }
|
|
10
|
-
function block6(context, tags, suffix) { return html `<picture><img loading="${ifDefined(this.backgroundImageLoadingStrategy)}" src="${ifDefined(this.backgroundImage)}" part="background-image" class="udex-hero-banner__background-image" alt="${ifDefined(this.backgroundImageLabel)}" /></picture>`; }
|
|
11
|
-
function block7(context, tags, suffix) { return html `<slot id="udex-hero-banner__additionalContent" name="additionalContent" part="additionalContent"></slot>`; }
|
|
12
|
-
function block8(context, tags, suffix) { return html `<slot id="udex-hero-banner__mediaContent" name="mediaContent" part="mediaContent"></slot>`; }
|
|
13
|
-
function template() { return block0.call(this, this, this.constructor.tagsToScope, getCustomElementsScopingSuffix()); }
|
|
14
|
-
export default template;
|
|
15
|
-
//# sourceMappingURL=HeroBannerTemplate.lit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeroBannerTemplate.lit.js","sourceRoot":"","sources":["../../../src/generated/templates/HeroBannerTemplate.lit.ts"],"names":[],"mappings":"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","sourcesContent":["/* eslint no-unused-vars: 0 */\nimport { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { getCustomElementsScopingSuffix } from \"@ui5/webcomponents-base/dist/CustomElementsScopeUtils.js\";\nimport type UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type HeroBanner from \"../../HeroBanner.js\";\nimport type { ClassMapValue } from \"@ui5/webcomponents-base/dist/types.js\";\n\t\nfunction block0 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class=\"${ifDefined(this.heroBannerClasses)}\" part=\"wrapper\" style=\"background-color: ${ifDefined(this.wrapperBackgroundColor)}; ${ifDefined(this.wrapperBackgroundImage)}\">${ this.hasBackgroundVideo ? block1.call(this, context, tags, suffix) : block3.call(this, context, tags, suffix) }</div>${ this.hasMediaContent ? block8.call(this, context, tags, suffix) : undefined } `;}\nfunction block1 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<div class=\"udex-hero-banner__background-video-wrapper\" tabindex=\"0\" @keydown=\"${this._handleKeydown}\"><video ?autoplay=\"${this.shouldVideoAutoplay}\" muted loop playsinline part=\"background-video\" class=\"udex-hero-banner__background-video\" alt=\"${ifDefined(this.backgroundVideoLabel)}\"><source src=\"${ifDefined(this.backgroundVideo)}\" type=\"video/mp4\" /></video><div class=\"udex-hero-banner__background-video-overlay\"></div>${ this.hasBackgroundImage ? block2.call(this, context, tags, suffix) : undefined }<div class=\"udex-hero-banner__content-container\"><slot id=\"udex-hero-banner__content\" name=\"content\" part=\"content\"></slot><slot id=\"udex-hero-banner__additionalContent\" name=\"additionalContent\" part=\"additionalContent\"></slot></div><button class=\"udex-hero-banner__media-button\" aria-label=\"Play / Pause button\" role=\"button\" @click=\"${this._toggleMediaButton}\"><${scopeTag(\"ui5-icon\", tags, suffix)} name=\"${ifDefined(this.mediaButtonIconName)}\"></${scopeTag(\"ui5-icon\", tags, suffix)}></button></div>` : html`<div class=\"udex-hero-banner__background-video-wrapper\" tabindex=\"0\" @keydown=\"${this._handleKeydown}\"><video ?autoplay=\"${this.shouldVideoAutoplay}\" muted loop playsinline part=\"background-video\" class=\"udex-hero-banner__background-video\" alt=\"${ifDefined(this.backgroundVideoLabel)}\"><source src=\"${ifDefined(this.backgroundVideo)}\" type=\"video/mp4\" /></video><div class=\"udex-hero-banner__background-video-overlay\"></div>${ this.hasBackgroundImage ? block2.call(this, context, tags, suffix) : undefined }<div class=\"udex-hero-banner__content-container\"><slot id=\"udex-hero-banner__content\" name=\"content\" part=\"content\"></slot><slot id=\"udex-hero-banner__additionalContent\" name=\"additionalContent\" part=\"additionalContent\"></slot></div><button class=\"udex-hero-banner__media-button\" aria-label=\"Play / Pause button\" role=\"button\" @click=\"${this._toggleMediaButton}\"><ui5-icon name=\"${ifDefined(this.mediaButtonIconName)}\"></ui5-icon></button></div>`;}\nfunction block2 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<picture><img loading=\"${ifDefined(this.backgroundImageLoadingStrategy)}\" src=\"${ifDefined(this.backgroundImage)}\" part=\"background-image\" class=\"udex-hero-banner__background-image\" alt=\"${ifDefined(this.backgroundImageLabel)}\" /></picture>`;}\nfunction block3 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class=\"udex-hero-banner__container\">${ this.hasCustomBackgroundPicture ? block4.call(this, context, tags, suffix) : block5.call(this, context, tags, suffix) }<div class=\"udex-hero-banner__content-container\"><slot id=\"udex-hero-banner__content\" name=\"content\" part=\"content\"></slot>${ this.hasAdditionalContent ? block7.call(this, context, tags, suffix) : undefined }</div></div>`;}\nfunction block4 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name=\"backgroundPicture\"></slot>`;}\nfunction block5 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.hasBackgroundImage ? block6.call(this, context, tags, suffix) : undefined }`;}\nfunction block6 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<picture><img loading=\"${ifDefined(this.backgroundImageLoadingStrategy)}\" src=\"${ifDefined(this.backgroundImage)}\" part=\"background-image\" class=\"udex-hero-banner__background-image\" alt=\"${ifDefined(this.backgroundImageLabel)}\" /></picture>`;}\nfunction block7 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot id=\"udex-hero-banner__additionalContent\" name=\"additionalContent\" part=\"additionalContent\"></slot>`;}\nfunction block8 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot id=\"udex-hero-banner__mediaContent\" name=\"mediaContent\" part=\"mediaContent\"></slot>`;}\n\nfunction template(this: HeroBanner) { return block0.call(this, this, (this.constructor as typeof UI5Element).tagsToScope, getCustomElementsScopingSuffix()); }\nexport default template;"]}
|
package/src/HeroBanner.hbs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<div class="{{heroBannerClasses}}" part="wrapper" style="background-color: {{wrapperBackgroundColor}}; {{wrapperBackgroundImage}}">
|
|
2
|
-
{{#if hasBackgroundVideo}}
|
|
3
|
-
<div class="udex-hero-banner__background-video-wrapper" tabindex="0" @keydown="{{_handleKeydown}}">
|
|
4
|
-
<video ?autoplay="{{shouldVideoAutoplay}}" muted loop playsinline part="background-video" class="udex-hero-banner__background-video" alt="{{backgroundVideoLabel}}">
|
|
5
|
-
<source src="{{backgroundVideo}}" type="video/mp4" />
|
|
6
|
-
</video>
|
|
7
|
-
<div class="udex-hero-banner__background-video-overlay"></div>
|
|
8
|
-
{{#if hasBackgroundImage}}
|
|
9
|
-
<picture>
|
|
10
|
-
<img loading="{{backgroundImageLoadingStrategy}}" src="{{backgroundImage}}" part="background-image" class="udex-hero-banner__background-image" alt="{{backgroundImageLabel}}" />
|
|
11
|
-
</picture>
|
|
12
|
-
{{/if}}
|
|
13
|
-
<div class="udex-hero-banner__content-container">
|
|
14
|
-
<slot id="udex-hero-banner__content" name="content" part="content"></slot>
|
|
15
|
-
<slot id="udex-hero-banner__additionalContent" name="additionalContent" part="additionalContent"></slot>
|
|
16
|
-
</div>
|
|
17
|
-
<button class="udex-hero-banner__media-button" aria-label="Play / Pause button" role="button" @click="{{_toggleMediaButton}}">
|
|
18
|
-
<ui5-icon name="{{mediaButtonIconName}}"></ui5-icon>
|
|
19
|
-
</button>
|
|
20
|
-
</div>
|
|
21
|
-
{{else}}
|
|
22
|
-
<div class="udex-hero-banner__container">
|
|
23
|
-
{{#if hasCustomBackgroundPicture}}
|
|
24
|
-
<slot name="backgroundPicture"></slot>
|
|
25
|
-
{{else if hasBackgroundImage}}
|
|
26
|
-
<picture>
|
|
27
|
-
<img loading="{{backgroundImageLoadingStrategy}}" src="{{backgroundImage}}" part="background-image" class="udex-hero-banner__background-image" alt="{{backgroundImageLabel}}" />
|
|
28
|
-
</picture>
|
|
29
|
-
{{/if}}
|
|
30
|
-
<div class="udex-hero-banner__content-container">
|
|
31
|
-
{{> hero-content}}
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
{{/if}}
|
|
35
|
-
</div>
|
|
36
|
-
{{#if hasMediaContent}}
|
|
37
|
-
<slot id="udex-hero-banner__mediaContent" name="mediaContent" part="mediaContent"></slot>
|
|
38
|
-
{{/if}}
|
|
39
|
-
|
|
40
|
-
{{#*inline "hero-content"}}
|
|
41
|
-
<slot id="udex-hero-banner__content" name="content" part="content"></slot>
|
|
42
|
-
|
|
43
|
-
{{#if hasAdditionalContent}}
|
|
44
|
-
<slot id="udex-hero-banner__additionalContent" name="additionalContent" part="additionalContent"></slot>
|
|
45
|
-
{{/if}}
|
|
46
|
-
{{/inline}}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* eslint no-unused-vars: 0 */
|
|
2
|
-
import { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
|
3
|
-
import { getCustomElementsScopingSuffix } from "@ui5/webcomponents-base/dist/CustomElementsScopeUtils.js";
|
|
4
|
-
import type UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
5
|
-
import type HeroBanner from "../../HeroBanner.js";
|
|
6
|
-
import type { ClassMapValue } from "@ui5/webcomponents-base/dist/types.js";
|
|
7
|
-
|
|
8
|
-
function block0 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="${ifDefined(this.heroBannerClasses)}" part="wrapper" style="background-color: ${ifDefined(this.wrapperBackgroundColor)}; ${ifDefined(this.wrapperBackgroundImage)}">${ this.hasBackgroundVideo ? block1.call(this, context, tags, suffix) : block3.call(this, context, tags, suffix) }</div>${ this.hasMediaContent ? block8.call(this, context, tags, suffix) : undefined } `;}
|
|
9
|
-
function block1 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<div class="udex-hero-banner__background-video-wrapper" tabindex="0" @keydown="${this._handleKeydown}"><video ?autoplay="${this.shouldVideoAutoplay}" muted loop playsinline part="background-video" class="udex-hero-banner__background-video" alt="${ifDefined(this.backgroundVideoLabel)}"><source src="${ifDefined(this.backgroundVideo)}" type="video/mp4" /></video><div class="udex-hero-banner__background-video-overlay"></div>${ this.hasBackgroundImage ? block2.call(this, context, tags, suffix) : undefined }<div class="udex-hero-banner__content-container"><slot id="udex-hero-banner__content" name="content" part="content"></slot><slot id="udex-hero-banner__additionalContent" name="additionalContent" part="additionalContent"></slot></div><button class="udex-hero-banner__media-button" aria-label="Play / Pause button" role="button" @click="${this._toggleMediaButton}"><${scopeTag("ui5-icon", tags, suffix)} name="${ifDefined(this.mediaButtonIconName)}"></${scopeTag("ui5-icon", tags, suffix)}></button></div>` : html`<div class="udex-hero-banner__background-video-wrapper" tabindex="0" @keydown="${this._handleKeydown}"><video ?autoplay="${this.shouldVideoAutoplay}" muted loop playsinline part="background-video" class="udex-hero-banner__background-video" alt="${ifDefined(this.backgroundVideoLabel)}"><source src="${ifDefined(this.backgroundVideo)}" type="video/mp4" /></video><div class="udex-hero-banner__background-video-overlay"></div>${ this.hasBackgroundImage ? block2.call(this, context, tags, suffix) : undefined }<div class="udex-hero-banner__content-container"><slot id="udex-hero-banner__content" name="content" part="content"></slot><slot id="udex-hero-banner__additionalContent" name="additionalContent" part="additionalContent"></slot></div><button class="udex-hero-banner__media-button" aria-label="Play / Pause button" role="button" @click="${this._toggleMediaButton}"><ui5-icon name="${ifDefined(this.mediaButtonIconName)}"></ui5-icon></button></div>`;}
|
|
10
|
-
function block2 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<picture><img loading="${ifDefined(this.backgroundImageLoadingStrategy)}" src="${ifDefined(this.backgroundImage)}" part="background-image" class="udex-hero-banner__background-image" alt="${ifDefined(this.backgroundImageLabel)}" /></picture>`;}
|
|
11
|
-
function block3 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-hero-banner__container">${ this.hasCustomBackgroundPicture ? block4.call(this, context, tags, suffix) : block5.call(this, context, tags, suffix) }<div class="udex-hero-banner__content-container"><slot id="udex-hero-banner__content" name="content" part="content"></slot>${ this.hasAdditionalContent ? block7.call(this, context, tags, suffix) : undefined }</div></div>`;}
|
|
12
|
-
function block4 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name="backgroundPicture"></slot>`;}
|
|
13
|
-
function block5 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.hasBackgroundImage ? block6.call(this, context, tags, suffix) : undefined }`;}
|
|
14
|
-
function block6 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<picture><img loading="${ifDefined(this.backgroundImageLoadingStrategy)}" src="${ifDefined(this.backgroundImage)}" part="background-image" class="udex-hero-banner__background-image" alt="${ifDefined(this.backgroundImageLabel)}" /></picture>`;}
|
|
15
|
-
function block7 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot id="udex-hero-banner__additionalContent" name="additionalContent" part="additionalContent"></slot>`;}
|
|
16
|
-
function block8 (this: HeroBanner, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot id="udex-hero-banner__mediaContent" name="mediaContent" part="mediaContent"></slot>`;}
|
|
17
|
-
|
|
18
|
-
function template(this: HeroBanner) { return block0.call(this, this, (this.constructor as typeof UI5Element).tagsToScope, getCustomElementsScopingSuffix()); }
|
|
19
|
-
export default template;
|