@sapudex/web-components 2.16.1 → 2.17.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/AccordionItem.cy.tsx +18 -1
- package/cypress/specs/Quote.cy.tsx +2 -2
- package/cypress/specs/SecondaryNavigationDesktop.cy.tsx +2 -2
- package/dist/AccordionItem.d.ts +4 -0
- package/dist/AccordionItem.js +16 -1
- package/dist/AccordionItem.js.map +1 -1
- package/dist/MastheadShell.js +2 -1
- package/dist/MastheadShell.js.map +1 -1
- package/dist/Quote.js +3 -4
- package/dist/Quote.js.map +1 -1
- package/dist/QuoteTemplate.d.ts +2 -0
- package/dist/QuoteTemplate.js +6 -0
- package/dist/QuoteTemplate.js.map +1 -0
- package/dist/Search.d.ts +0 -1
- package/dist/Search.js +0 -13
- package/dist/Search.js.map +1 -1
- package/dist/Tag.js +3 -3
- package/dist/Tag.js.map +1 -1
- package/dist/TagGroup.d.ts +0 -2
- package/dist/TagGroup.js +3 -9
- package/dist/TagGroup.js.map +1 -1
- package/dist/TagGroupTemplate.d.ts +2 -0
- package/dist/TagGroupTemplate.js +12 -0
- package/dist/TagGroupTemplate.js.map +1 -0
- package/dist/TagTemplate.d.ts +2 -0
- package/dist/TagTemplate.js +18 -0
- package/dist/TagTemplate.js.map +1 -0
- package/dist/assets/{InputSuggestions-C-OeoyHk.js → InputSuggestions-EyZxsb7i.js} +1 -1
- package/dist/assets/{ListItemStandardExpandableTextTemplate-D05JXl_S.js → ListItemStandardExpandableTextTemplate-DgdZLN5V.js} +1 -1
- package/dist/assets/{bundle.esm-jB2aQPid.js → bundle.esm-ChjL9w9f.js} +205 -205
- package/dist/css/themes/Quote.css +1 -1
- package/dist/css/themes/RatingIndicator.css +1 -1
- package/dist/css/themes/Slider.css +1 -1
- package/dist/generated/templates/SearchTemplate.lit.js +1 -1
- package/dist/generated/templates/SearchTemplate.lit.js.map +1 -1
- package/dist/generated/themes/Quote.css.d.ts +1 -1
- package/dist/generated/themes/Quote.css.js +1 -1
- package/dist/generated/themes/Quote.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/web-types.json +1 -1
- package/package.json +1 -1
- package/src/AccordionItem.ts +21 -1
- package/src/MastheadShell.ts +2 -1
- package/src/Quote.ts +3 -5
- package/src/QuoteTemplate.tsx +28 -0
- package/src/Search.hbs +1 -1
- package/src/Search.ts +0 -14
- package/src/Tag.ts +3 -3
- package/src/TagGroup.ts +3 -11
- package/src/TagGroupTemplate.tsx +75 -0
- package/src/TagTemplate.tsx +79 -0
- package/src/generated/templates/SearchTemplate.lit.ts +1 -1
- package/src/generated/themes/Quote.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/Quote.css +38 -29
- package/dist/generated/templates/QuoteTemplate.lit.d.ts +0 -3
- package/dist/generated/templates/QuoteTemplate.lit.js +0 -10
- package/dist/generated/templates/QuoteTemplate.lit.js.map +0 -1
- package/dist/generated/templates/TagGroupTemplate.lit.d.ts +0 -3
- package/dist/generated/templates/TagGroupTemplate.lit.js +0 -10
- package/dist/generated/templates/TagGroupTemplate.lit.js.map +0 -1
- package/dist/generated/templates/TagTemplate.lit.d.ts +0 -3
- package/dist/generated/templates/TagTemplate.lit.js +0 -19
- package/dist/generated/templates/TagTemplate.lit.js.map +0 -1
- package/src/Quote.hbs +0 -20
- package/src/Tag.hbs +0 -76
- package/src/TagGroup.hbs +0 -57
- package/src/generated/templates/QuoteTemplate.lit.ts +0 -14
- package/src/generated/templates/TagGroupTemplate.lit.ts +0 -14
- package/src/generated/templates/TagTemplate.lit.ts +0 -23
package/src/AccordionItem.ts
CHANGED
|
@@ -6,6 +6,7 @@ import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
|
|
|
6
6
|
import jsxRenderer from "@ui5/webcomponents-base/renderer/JsxRenderer.js";
|
|
7
7
|
import { isEnter, isSpace } from "@ui5/webcomponents-base/dist/Keys.js";
|
|
8
8
|
import { isDesktop } from "@ui5/webcomponents-base/dist/Device.js";
|
|
9
|
+
import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
|
|
9
10
|
import AccordionItemTemplate from "./AccordionItemTemplate.js";
|
|
10
11
|
|
|
11
12
|
// Styles
|
|
@@ -130,12 +131,18 @@ class UDExAccordionItem extends UI5Element {
|
|
|
130
131
|
@slot({ type: Node, "default": true })
|
|
131
132
|
content!: Array<Node>;
|
|
132
133
|
|
|
134
|
+
_resizeHandler: () => void;
|
|
135
|
+
contentElement: HTMLElement | null | undefined;
|
|
136
|
+
|
|
133
137
|
constructor() {
|
|
134
138
|
super();
|
|
139
|
+
this._resizeHandler = this._onResize.bind(this);
|
|
140
|
+
this.contentElement = null;
|
|
135
141
|
}
|
|
136
142
|
|
|
137
143
|
onAfterRendering() {
|
|
138
144
|
this.handleDirection();
|
|
145
|
+
this.contentElement = this.shadowRoot?.querySelector(".udex-accordion-item__content-inner");
|
|
139
146
|
this.setContentHeight();
|
|
140
147
|
}
|
|
141
148
|
|
|
@@ -143,10 +150,23 @@ class UDExAccordionItem extends UI5Element {
|
|
|
143
150
|
if (isDesktop()) {
|
|
144
151
|
this.setAttribute("desktop", "");
|
|
145
152
|
}
|
|
153
|
+
if (this.contentElement) {
|
|
154
|
+
ResizeHandler.register(this.contentElement, this._resizeHandler);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
onExitDOM(): void {
|
|
159
|
+
if (this.contentElement) {
|
|
160
|
+
ResizeHandler.deregister(this.contentElement, this._resizeHandler);
|
|
161
|
+
}
|
|
146
162
|
}
|
|
147
163
|
|
|
148
164
|
setContentHeight() {
|
|
149
|
-
this.style.setProperty("--udex-accordion-item-content-max-height", `${this.
|
|
165
|
+
this.style.setProperty("--udex-accordion-item-content-max-height", `${this.contentElement?.scrollHeight}px`);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
_onResize(): void {
|
|
169
|
+
this.setContentHeight();
|
|
150
170
|
}
|
|
151
171
|
|
|
152
172
|
contentKeydown(e: KeyboardEvent) {
|
package/src/MastheadShell.ts
CHANGED
|
@@ -859,7 +859,8 @@ class UDExMastheadShell extends UI5Element {
|
|
|
859
859
|
|
|
860
860
|
setMobileMenuHeight(): void {
|
|
861
861
|
const mastheadHeight = parseInt(window.getComputedStyle(this).getPropertyValue(UDExMastheadVariable.mastheadHeight));
|
|
862
|
-
const
|
|
862
|
+
const rectTop = this.getBoundingClientRect().top;
|
|
863
|
+
const mobileMenuHeight = `${window.innerHeight - mastheadHeight - rectTop}px`;
|
|
863
864
|
this.style.setProperty(UDExMastheadVariable.mobileMenuHeight, mobileMenuHeight);
|
|
864
865
|
}
|
|
865
866
|
|
package/src/Quote.ts
CHANGED
|
@@ -2,10 +2,8 @@ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
|
2
2
|
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
|
|
3
3
|
import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
4
4
|
import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
// Template
|
|
8
|
-
import QuoteTemplate from "./generated/templates/QuoteTemplate.lit.js";
|
|
5
|
+
import jsxRenderer from "@ui5/webcomponents-base/renderer/JsxRenderer.js";
|
|
6
|
+
import QuoteTemplate from "./QuoteTemplate.js";
|
|
9
7
|
|
|
10
8
|
// Styles
|
|
11
9
|
import QuoteCss from "./generated/themes/Quote.css.js";
|
|
@@ -39,7 +37,7 @@ export enum UDExImagePlacement {
|
|
|
39
37
|
*/
|
|
40
38
|
@customElement({
|
|
41
39
|
tag: "udex-quote",
|
|
42
|
-
renderer:
|
|
40
|
+
renderer: jsxRenderer,
|
|
43
41
|
styles: QuoteCss,
|
|
44
42
|
template: QuoteTemplate,
|
|
45
43
|
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type UDExQuote from "./Quote.js";
|
|
2
|
+
|
|
3
|
+
export default function QuoteTemplate(this: UDExQuote) {
|
|
4
|
+
const rootClass = "udex-quote";
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
<div class={`${rootClass}__container`}>
|
|
8
|
+
{this.image?.length > 0 && (
|
|
9
|
+
<div class={`${rootClass}__image-container`}>
|
|
10
|
+
<slot name="image" slot="image"></slot>
|
|
11
|
+
</div>
|
|
12
|
+
)}
|
|
13
|
+
<div class={`${rootClass}__content-container`}>
|
|
14
|
+
<blockquote class={`${rootClass}__text-container`}>
|
|
15
|
+
<p class={`${rootClass}__text`}>
|
|
16
|
+
<slot></slot>
|
|
17
|
+
</p>
|
|
18
|
+
</blockquote>
|
|
19
|
+
{this.author && (
|
|
20
|
+
<slot slot="author" name="author"></slot>
|
|
21
|
+
)}
|
|
22
|
+
{this.link && (
|
|
23
|
+
<slot slot="link" name="link"></slot>
|
|
24
|
+
)}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
}
|
package/src/Search.hbs
CHANGED
package/src/Search.ts
CHANGED
|
@@ -931,7 +931,6 @@ class UDExSearch extends UI5Element {
|
|
|
931
931
|
prefixObserver.observe(popoverNode, { attributes: true, attributeOldValue: true });
|
|
932
932
|
}
|
|
933
933
|
|
|
934
|
-
this.handleOutsideClick();
|
|
935
934
|
this.handleOpenSuggestionPopover();
|
|
936
935
|
this.setSearchWidth();
|
|
937
936
|
}
|
|
@@ -944,19 +943,6 @@ class UDExSearch extends UI5Element {
|
|
|
944
943
|
}
|
|
945
944
|
}
|
|
946
945
|
|
|
947
|
-
handleOutsideClick(): void {
|
|
948
|
-
document.addEventListener("mousedown", (e: MouseEvent) => {
|
|
949
|
-
const popover = (e.target as HTMLElement).shadowRoot?.querySelector("[ui5-popover]");
|
|
950
|
-
if (e.target !== this && popover !== this.Suggestion?.popover) {
|
|
951
|
-
this.handleBlur();
|
|
952
|
-
this.onClosePopover();
|
|
953
|
-
if (this.isShowSearchHomePrefix) {
|
|
954
|
-
this.handleAfterClosePrefixPopover();
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
|
|
960
946
|
handleBlur(): void {
|
|
961
947
|
this._isTouched = false;
|
|
962
948
|
if (this.value) {
|
package/src/Tag.ts
CHANGED
|
@@ -2,7 +2,7 @@ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
|
2
2
|
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
|
|
3
3
|
import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
4
4
|
import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
|
|
5
|
-
import
|
|
5
|
+
import jsxRenderer from "@ui5/webcomponents-base/renderer/JsxRenderer.js";
|
|
6
6
|
import Icon from "@ui5/webcomponents/dist/Icon.js";
|
|
7
7
|
import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
|
|
8
8
|
import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
|
|
@@ -10,7 +10,7 @@ import { isEnter } from "@ui5/webcomponents-base/dist/Keys.js";
|
|
|
10
10
|
import { isDesktop } from "@ui5/webcomponents-base/dist/Device.js";
|
|
11
11
|
import UDExIconPlacement from "./types/IconPlacement.js";
|
|
12
12
|
|
|
13
|
-
import TagTemplate from "./
|
|
13
|
+
import TagTemplate from "./TagTemplate.js";
|
|
14
14
|
|
|
15
15
|
// Styles
|
|
16
16
|
import TagCss from "./generated/themes/Tag.css.js";
|
|
@@ -52,7 +52,7 @@ type UDExTagLinkClickEventDetail = {
|
|
|
52
52
|
*/
|
|
53
53
|
@customElement({
|
|
54
54
|
tag: "udex-tag",
|
|
55
|
-
renderer:
|
|
55
|
+
renderer: jsxRenderer,
|
|
56
56
|
styles: TagCss,
|
|
57
57
|
template: TagTemplate,
|
|
58
58
|
dependencies: [Icon],
|
package/src/TagGroup.ts
CHANGED
|
@@ -6,12 +6,12 @@ import { isEnter, isSpace, isEscape } from "@ui5/webcomponents-base/dist/Keys.js
|
|
|
6
6
|
import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
7
7
|
import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
|
|
8
8
|
import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
|
|
9
|
-
import
|
|
9
|
+
import jsxRenderer from "@ui5/webcomponents-base/renderer/JsxRenderer.js";
|
|
10
10
|
import Token from "@ui5/webcomponents/dist/Token.js";
|
|
11
11
|
import UDExTag from "./Tag.js";
|
|
12
12
|
import UDExTooltip from "./Tooltip.js";
|
|
13
13
|
|
|
14
|
-
import TagGroupTemplate from "./
|
|
14
|
+
import TagGroupTemplate from "./TagGroupTemplate.js";
|
|
15
15
|
|
|
16
16
|
// Styles
|
|
17
17
|
import TagGroupCss from "./generated/themes/TagGroup.css.js";
|
|
@@ -48,7 +48,7 @@ type UDExTagKeydownEventDetail = {
|
|
|
48
48
|
*/
|
|
49
49
|
@customElement({
|
|
50
50
|
tag: "udex-tag-group",
|
|
51
|
-
renderer:
|
|
51
|
+
renderer: jsxRenderer,
|
|
52
52
|
styles: TagGroupCss,
|
|
53
53
|
template: TagGroupTemplate,
|
|
54
54
|
dependencies: [UDExTag, UDExTooltip, Tokenizer, Token],
|
|
@@ -160,18 +160,10 @@ class UDExTagGroup extends UI5Element {
|
|
|
160
160
|
return this.readonly || this.displayonly;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
get tagTabIndex(): string {
|
|
164
|
-
return this.disabled ? "-1" : "";
|
|
165
|
-
}
|
|
166
|
-
|
|
167
163
|
get tokenizer(): Tokenizer {
|
|
168
164
|
return this.shadowRoot!.querySelector<Tokenizer>(`#${this._id}-tag-group-tokenizer`)!;
|
|
169
165
|
}
|
|
170
166
|
|
|
171
|
-
get tagRole(): string {
|
|
172
|
-
return this.displayonly || this.readonly ? "option" : "";
|
|
173
|
-
}
|
|
174
|
-
|
|
175
167
|
onAfterRendering(): void {
|
|
176
168
|
this._tokenizer = this.tokenizer;
|
|
177
169
|
this._nMoreBtn = this._tokenizer.moreLink || null;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type UDExTagGroup from "./TagGroup.js";
|
|
2
|
+
import UDExTag from "./Tag.js";
|
|
3
|
+
import UDExTooltip from "./Tooltip.js";
|
|
4
|
+
import UI5Tokenizer from "@ui5/webcomponents/dist/Tokenizer.js";
|
|
5
|
+
|
|
6
|
+
export default function TagTemplate(this: UDExTagGroup) {
|
|
7
|
+
const rootClass = "udex-tag-group";
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<>
|
|
11
|
+
<div class={`${rootClass}`}
|
|
12
|
+
id={`${this._id}-tag-group`}
|
|
13
|
+
role="group">
|
|
14
|
+
<UI5Tokenizer
|
|
15
|
+
part="tokenizer"
|
|
16
|
+
show-more
|
|
17
|
+
prevent-popover-open
|
|
18
|
+
disabled={this.disabled}
|
|
19
|
+
expanded={this.tokenizerExpanded}
|
|
20
|
+
id={`${this._id}-tag-group-tokenizer`}
|
|
21
|
+
class={`${rootClass}__tokenizer`}
|
|
22
|
+
onShowMoreItemsPress={this.showMoreItems}>
|
|
23
|
+
{this.items.map((item, index) => (
|
|
24
|
+
tag.call(this, rootClass, item, index)
|
|
25
|
+
))}
|
|
26
|
+
</UI5Tokenizer>
|
|
27
|
+
{this._isHiddenTags && (
|
|
28
|
+
<>
|
|
29
|
+
<UDExTooltip
|
|
30
|
+
id={`${this._id}-tag-group-tooltip`}
|
|
31
|
+
placement={this.tooltipPlacement}
|
|
32
|
+
onKeyDown={this.handleShowMoreButtonKeydown}>
|
|
33
|
+
<div
|
|
34
|
+
role="group"
|
|
35
|
+
class={`${rootClass}-tooltip__content`}>
|
|
36
|
+
{this.hiddenTags.map((item, index) => (
|
|
37
|
+
tag.call(this, rootClass, item, index)
|
|
38
|
+
))}
|
|
39
|
+
</div>
|
|
40
|
+
</UDExTooltip>
|
|
41
|
+
</>
|
|
42
|
+
)}
|
|
43
|
+
</div>
|
|
44
|
+
</>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function tag(this: UDExTagGroup, rootClass: string, item: any, index: number) {
|
|
49
|
+
return (
|
|
50
|
+
<>
|
|
51
|
+
<UDExTag
|
|
52
|
+
key={index}
|
|
53
|
+
accessibleRole="option"
|
|
54
|
+
class={`${rootClass}__tag`}
|
|
55
|
+
data-id={`${item.id}`}
|
|
56
|
+
part={`token-${index}`}
|
|
57
|
+
read-only={this.isReadOrDisplayOnly}
|
|
58
|
+
id={`${this._id}-tag-group-tag`}
|
|
59
|
+
text={item.text}
|
|
60
|
+
icon={item.icon}
|
|
61
|
+
href={item.href}
|
|
62
|
+
design={item.design}
|
|
63
|
+
size={item.size}
|
|
64
|
+
icon-placement={item.iconPlacement}
|
|
65
|
+
accessible-name={item.accessibleName}
|
|
66
|
+
non-selectable={item.nonSelectable}
|
|
67
|
+
data-overflows={item.overflows}
|
|
68
|
+
onKeyDown={this.handleTagKeyDown}
|
|
69
|
+
onSelectionChange={this.handleTagClick}
|
|
70
|
+
onIconClick={this.tagIconClickHandler}
|
|
71
|
+
{...(this.disabled ? { tabindex: -1 } : {})}>
|
|
72
|
+
</UDExTag>
|
|
73
|
+
</>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type UDExTag from "./Tag.js";
|
|
2
|
+
import UI5Icon from "@ui5/webcomponents/dist/Icon.js";
|
|
3
|
+
import type { AriaRole } from "@ui5/webcomponents-base/dist/types.js";
|
|
4
|
+
|
|
5
|
+
export default function TagTemplate(this: UDExTag) {
|
|
6
|
+
const rootClass = "udex-tag";
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
this.readOnly ? (
|
|
10
|
+
<div class={this.tagClasses}>
|
|
11
|
+
<span class={`${rootClass}__text`}>{this.text}</span>
|
|
12
|
+
</div>
|
|
13
|
+
) : this.href ? (
|
|
14
|
+
<a class={this.tagClasses}
|
|
15
|
+
role={this.accessibleRole as AriaRole}
|
|
16
|
+
href={this.href}
|
|
17
|
+
onClick={this.tagLinkClickHandler}>
|
|
18
|
+
{tagContent.call(this, rootClass)}
|
|
19
|
+
</a>
|
|
20
|
+
) : this.nonSelectable ? (
|
|
21
|
+
<div class={this.tagClasses}>
|
|
22
|
+
{tagContent.call(this, rootClass, false, true)}
|
|
23
|
+
</div>
|
|
24
|
+
) : (
|
|
25
|
+
<div
|
|
26
|
+
tabindex={this._tabIndex}
|
|
27
|
+
class={this.tagClasses}
|
|
28
|
+
onClick={this.tagClickHandler}
|
|
29
|
+
onFocusIn={this._focusin}
|
|
30
|
+
onFocusOut={this._focusout}
|
|
31
|
+
onKeyDown={this.tagKeyDown}
|
|
32
|
+
role={this.accessibleRole as AriaRole}
|
|
33
|
+
aria-label={this.accessibleName}
|
|
34
|
+
aria-pressed={this.selected}>
|
|
35
|
+
{tagContent.call(this, rootClass, true)}
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function tagContent(this: UDExTag, rootClass: string, isIconClickable: boolean = false, isIconBtn: boolean = false) {
|
|
42
|
+
return (
|
|
43
|
+
<>
|
|
44
|
+
{this.startIcon && (
|
|
45
|
+
isIconBtn ? tagBtnIcon.call(this, rootClass, "start")
|
|
46
|
+
: tagIcon.call(this, rootClass, "start", isIconClickable))}
|
|
47
|
+
<span class={`${rootClass}__text`}>{this.text}</span>
|
|
48
|
+
{this.endIcon && (
|
|
49
|
+
isIconBtn ? tagBtnIcon.call(this, rootClass, "end")
|
|
50
|
+
: tagIcon.call(this, rootClass, "end", isIconClickable))}
|
|
51
|
+
</>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function tagBtnIcon(this: UDExTag, rootClass: string, iconType: string) {
|
|
56
|
+
return (
|
|
57
|
+
<>
|
|
58
|
+
<button
|
|
59
|
+
class={`${rootClass}__btn-icon`}
|
|
60
|
+
onClick={this.iconClickHandler}
|
|
61
|
+
role={this.accessibleRole as AriaRole}
|
|
62
|
+
aria-label={this.iconAccessibleName}>
|
|
63
|
+
{tagIcon.call(this, rootClass, iconType)}
|
|
64
|
+
</button>
|
|
65
|
+
</>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function tagIcon(this: UDExTag, rootClass: string, iconType: string, isIconClickable: boolean = false) {
|
|
70
|
+
return (
|
|
71
|
+
<>
|
|
72
|
+
<UI5Icon
|
|
73
|
+
class={`${rootClass}__icon ${rootClass}__icon--${iconType}`}
|
|
74
|
+
name={this.icon}
|
|
75
|
+
{...(isIconClickable ? { onClick: this.iconClickHandler } : {})}>
|
|
76
|
+
</UI5Icon>
|
|
77
|
+
</>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -6,7 +6,7 @@ import type Search from "../../Search.js";
|
|
|
6
6
|
import type { ClassMapValue } from "@ui5/webcomponents-base/dist/types.js";
|
|
7
7
|
|
|
8
8
|
function block0 (this: Search, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<div class="udex-search__root ${ifDefined(this.searchClasses)}">${ this.isShowSearchHomePrefix ? block1.call(this, context, tags, suffix) : undefined }<form role="search" class="udex-search__container ${ifDefined(this.focusClasses)}${ifDefined(this.isNotEmptyClass)}">${ this.labelAnimationDisabled ? block2.call(this, context, tags, suffix) : block3.call(this, context, tags, suffix) }${ this.open ? block5.call(this, context, tags, suffix) : undefined }<div class="udex-search__icons">${ this.isShowHomeResetButton ? block6.call(this, context, tags, suffix) : undefined }${ this.isShowResetButton ? block7.call(this, context, tags, suffix) : undefined }${ this.isVoiceButton ? block8.call(this, context, tags, suffix) : undefined }${ this.showNonInteractiveButton ? block9.call(this, context, tags, suffix) : undefined }${ this.showSubmitHomeButton ? block10.call(this, context, tags, suffix) : undefined }${ this.showSubmitStandardButton ? block11.call(this, context, tags, suffix) : undefined }</div></form></div><${scopeTag("ui5-popover", tags, suffix)} class="udex-search-suggestions__root ${ifDefined(this.homeSearchPopoverClass)}" hide-arrow prevent-initial-focus placement="Bottom" horizontal-align="End" style="${styleMap(this.popoverStyles)}" id="${ifDefined(this.getSuggestionsPopoverId)}" aria-orientation="vertical" accessible-role="Dialog" @keydown="${this.handleKeyPressSuggestionList}" accessible-name="${ifDefined(this.suggestionsAccessibleName)}">${ this.showNoResultMessage ? block12.call(this, context, tags, suffix) : block13.call(this, context, tags, suffix) }</${scopeTag("ui5-popover", tags, suffix)}>` : html`<div class="udex-search__root ${ifDefined(this.searchClasses)}">${ this.isShowSearchHomePrefix ? block1.call(this, context, tags, suffix) : undefined }<form role="search" class="udex-search__container ${ifDefined(this.focusClasses)}${ifDefined(this.isNotEmptyClass)}">${ this.labelAnimationDisabled ? block2.call(this, context, tags, suffix) : block3.call(this, context, tags, suffix) }${ this.open ? block5.call(this, context, tags, suffix) : undefined }<div class="udex-search__icons">${ this.isShowHomeResetButton ? block6.call(this, context, tags, suffix) : undefined }${ this.isShowResetButton ? block7.call(this, context, tags, suffix) : undefined }${ this.isVoiceButton ? block8.call(this, context, tags, suffix) : undefined }${ this.showNonInteractiveButton ? block9.call(this, context, tags, suffix) : undefined }${ this.showSubmitHomeButton ? block10.call(this, context, tags, suffix) : undefined }${ this.showSubmitStandardButton ? block11.call(this, context, tags, suffix) : undefined }</div></form></div><ui5-popover class="udex-search-suggestions__root ${ifDefined(this.homeSearchPopoverClass)}" hide-arrow prevent-initial-focus placement="Bottom" horizontal-align="End" style="${styleMap(this.popoverStyles)}" id="${ifDefined(this.getSuggestionsPopoverId)}" aria-orientation="vertical" accessible-role="Dialog" @keydown="${this.handleKeyPressSuggestionList}" accessible-name="${ifDefined(this.suggestionsAccessibleName)}">${ this.showNoResultMessage ? block12.call(this, context, tags, suffix) : block13.call(this, context, tags, suffix) }</ui5-popover>`;}
|
|
9
|
-
function block1 (this: Search, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<div class="udex-search__prefix ${ifDefined(this.prefixWrapperClasses)}"><button type="button" role="combobox" aria-expanded="${ifDefined(this._prefixDropdownExpanded)}" aria-label="${ifDefined(this.labelPrefix)}" aria-haspopup="true" aria-controls="udex-search-prefix" class="udex-search__prefix-button" @click="${this.handleDropdownClick}"><span class="udex-search__prefix-label">${ifDefined(this.labelPrefix)}</span><${scopeTag("ui5-icon", tags, suffix)} class="udex-search__prefix-icon" name="slim-arrow-down" mode="Decorative"></${scopeTag("ui5-icon", tags, suffix)}></button><${scopeTag("ui5-popover", tags, suffix)} id="udex-search-prefix" class="${ifDefined(this.prefixPopoverClasses)}" hide-arrow placement="Bottom" horizontal-align="Start" style="${styleMap(this.prefixPopoverStyles)}" @
|
|
9
|
+
function block1 (this: Search, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<div class="udex-search__prefix ${ifDefined(this.prefixWrapperClasses)}"><button type="button" role="combobox" aria-expanded="${ifDefined(this._prefixDropdownExpanded)}" aria-label="${ifDefined(this.labelPrefix)}" aria-haspopup="true" aria-controls="udex-search-prefix" class="udex-search__prefix-button" @click="${this.handleDropdownClick}"><span class="udex-search__prefix-label">${ifDefined(this.labelPrefix)}</span><${scopeTag("ui5-icon", tags, suffix)} class="udex-search__prefix-icon" name="slim-arrow-down" mode="Decorative"></${scopeTag("ui5-icon", tags, suffix)}></button><${scopeTag("ui5-popover", tags, suffix)} id="udex-search-prefix" class="${ifDefined(this.prefixPopoverClasses)}" hide-arrow placement="Bottom" horizontal-align="Start" style="${styleMap(this.prefixPopoverStyles)}" @close="${this.handleAfterClosePrefixPopover}"><slot></slot></${scopeTag("ui5-popover", tags, suffix)}></div>` : html`<div class="udex-search__prefix ${ifDefined(this.prefixWrapperClasses)}"><button type="button" role="combobox" aria-expanded="${ifDefined(this._prefixDropdownExpanded)}" aria-label="${ifDefined(this.labelPrefix)}" aria-haspopup="true" aria-controls="udex-search-prefix" class="udex-search__prefix-button" @click="${this.handleDropdownClick}"><span class="udex-search__prefix-label">${ifDefined(this.labelPrefix)}</span><ui5-icon class="udex-search__prefix-icon" name="slim-arrow-down" mode="Decorative"></ui5-icon></button><ui5-popover id="udex-search-prefix" class="${ifDefined(this.prefixPopoverClasses)}" hide-arrow placement="Bottom" horizontal-align="Start" style="${styleMap(this.prefixPopoverStyles)}" @close="${this.handleAfterClosePrefixPopover}"><slot></slot></ui5-popover></div>`;}
|
|
10
10
|
function block2 (this: Search, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<input role="searchbox" id="search-input" type="search" name="search" class="udex-search__field" autocomplete="off" aria-autocomplete="list" aria-haspopup="${ifDefined(this.getAriaHasPopup)}" aria-label="${ifDefined(this.accInfo.ariaLabel)}" aria-describedby="search-description" placeholder="${ifDefined(this.effectivePlaceholder)}" .value="${ifDefined(this.value)}" @input="${this.handleSearchChange}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @focusout="${this.handleFocusout}" @blur="${this.handleBlur}" @click="${this.handleInputClick}" />`;}
|
|
11
11
|
function block3 (this: Search, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.label ? block4.call(this, context, tags, suffix) : undefined }<input role="searchbox" id="search-input" type="search" name="search" class="udex-search__field" autocomplete="off" aria-autocomplete="list" aria-label="${ifDefined(this.accInfo.ariaLabel)}" aria-describedby="search-description" aria-haspopup="${ifDefined(this.getAriaHasPopup)}" .value="${ifDefined(this.value)}" @input="${this.handleSearchChange}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @focusout="${this.handleFocusout}" @blur="${this.handleBlur}" @click="${this.handleInputClick}" />`;}
|
|
12
12
|
function block4 (this: Search, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<label for="search-input" class="${ifDefined(this.labelClasses)}">${ifDefined(this.label)}</label>`;}
|
|
@@ -5,5 +5,5 @@ import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
|
|
|
5
5
|
|
|
6
6
|
registerThemePropertiesLoader("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
|
|
7
7
|
registerThemePropertiesLoader("@" + "s" + "a" + "p" + "u" + "d" + "e" + "x" + "/" + "w" + "e" + "b" + "-" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => defaultTheme);
|
|
8
|
-
export default `:host{display:block;width:100%;container-type:inline-size}.udex-quote__container{display:flex;flex-direction:row;width:100%;text-align:left;gap:var(--udexSpacer24)}.udex-quote__container:dir(rtl){text-align:right}:host([image-placement="right"]) .udex-quote__container{flex-direction:row-reverse}:host([image-size="small"]) .udex-quote__container,:host([text-size="small"]) .udex-quote__container{gap:var(--udexSpacer16)}.
|
|
8
|
+
export default `:host{display:block;width:100%;container-type:inline-size}.udex-quote__container{display:flex;flex-direction:row;width:100%;text-align:left;gap:var(--udexSpacer24)}.udex-quote__container:dir(rtl){text-align:right}:host([image-placement="right"]) .udex-quote__container{flex-direction:row-reverse}:host([image-size="small"]) .udex-quote__container,:host([text-size="small"]) .udex-quote__container{gap:var(--udexSpacer16)}.udex-quote__text,::slotted([slot="author"]),::slotted([slot="link"]){padding:0 50px}::slotted([slot="image"]){display:block;width:120px;height:120px}:host([mask="rectangle"]) ::slotted([slot="image"]){display:block;width:200px;height:100px;background-color:transparent;object-fit:contain}:host([image-size="small"]) ::slotted([slot="image"]){width:var(--udexSpacer64);height:var(--udexSpacer64)}:host([image-size="small"][mask="rectangle"]) ::slotted([slot="image"]){width:160px;height:80px}.udex-quote__text-container{position:relative;margin:0}.udex-quote__text{margin:0 0 var(--udexSpacer24);font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyBodyXLFontSize, 24px);line-height:var(--udexTypographyBodyLineHeight, 1.5);color:var(--udexColorGrey8, #354A5F)}.udex-quote__text ::slotted(*){margin:0}.udex-quote__text-container:before,.udex-quote__text-container:after{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightMedium, 500);text-align:center;position:absolute;display:inline-block;font-size:84px;line-height:84px;height:58px;width:34px;color:var(--udexColorGrey8, #354A5F);margin-top:-9px}.udex-quote__text-container:before{content:open-quote;top:0;left:0}.udex-quote__text-container:after{content:close-quote;top:0;right:0}:host([text-size="small"]) .udex-quote__text-container:after,:host([text-size="small"]) .udex-quote__text-container:before{font-size:72px;line-height:72px;font-weight:var(--udexTypographyFontWeightRegular, 400);height:50px;width:26px;margin-top:-12px}::slotted([slot="author"]){display:block;margin-bottom:var(--udexSpacer24);font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyHeadingRegularXXSFontSize, 20px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--udexColorGrey8, #354A5F)}:host([text-size="small"]) .udex-quote__text{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 1.5);padding-inline:34px}:host([text-size="small"]) ::slotted([slot="author"]){font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);padding-inline:34px}:host([text-size="small"]) ::slotted([slot="link"]){padding-inline:34px}@media screen and (max-width: 1279px){.udex-quote__container{gap:var(--udexSpacer16)}::slotted([slot="author"]){font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);padding:0 34px}::slotted([slot="link"]){padding:0 34px}::slotted([slot="image"]){width:var(--udexSpacer64);height:var(--udexSpacer64)}:host([mask="rectangle"]) ::slotted([slot="image"]){width:160px;height:80px}.udex-quote__text-container:after,.udex-quote__text-container:before{font-size:72px;font-weight:var(--udexTypographyFontWeightRegular, 400);line-height:72px;height:50px;width:26px}.udex-quote__text{font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 1.5);padding:0 34px}}@media (max-width: 639px){.udex-quote__container,:host([image-placement="right"]) .udex-quote__container{flex-direction:column;gap:var(--udexSpacer16)}::slotted([slot="image"]){margin:0 auto}}
|
|
9
9
|
`
|
|
@@ -5,5 +5,5 @@ import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
|
|
|
5
5
|
|
|
6
6
|
registerThemePropertiesLoader("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
|
|
7
7
|
registerThemePropertiesLoader("@" + "s" + "a" + "p" + "u" + "d" + "e" + "x" + "/" + "w" + "e" + "b" + "-" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => defaultTheme);
|
|
8
|
-
export default `:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v2-
|
|
8
|
+
export default `:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v2-17-0_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px);padding:0;outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-sel,.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
|
|
9
9
|
`
|
|
@@ -5,5 +5,5 @@ import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
|
|
|
5
5
|
|
|
6
6
|
registerThemePropertiesLoader("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
|
|
7
7
|
registerThemePropertiesLoader("@" + "s" + "a" + "p" + "u" + "d" + "e" + "x" + "/" + "w" + "e" + "b" + "-" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => defaultTheme);
|
|
8
|
-
export default `:host{--udex-slider-color-track-start-point: var(--sapSlider_Selected_Background, #0070f2);--udex-slider-color-track-active: var(--sapSlider_Selected_Background, #0070f2);--udex-slider-color-handle-focus-range: var(--sapSlider_Selected_BorderColor, #0070f2);--udex-slider-color-handle-active-background: var(--sapSlider_Active_HandleBackground, #ffffff);--udex-slider-color-handle-default-icon: var(--sapContent_Selected_ForegroundColor, #0040b0);--udex-slider-radius-range-size: var(--udexRadiusM, 8px);--udex-slider-handle-width: 2.75rem;--udex-slider-handle-top: -.875rem;--udex-slider-handle-height: var(--udexSpacer32, 2rem);--udex-slider-start-end-point-left: -.875rem;--udex-slider-start-end-point-right: -.875rem;--udex-slider-progress-after-background: var(--sapContent_MeasureIndicatorColor,#5b738b);--udex-slider-handle-icon-size: var(--udexSpacer20, 1.25rem);--udex-slider-tooltip-bottom: 2.5rem;--udex-slider-tooltip-border: 1px solid var(--sapField_BorderColor, #5B738B);--udex-slider-tooltip-border-radius: var(--udexSpacer4, .25rem);--udex-slider-tooltip-font-size: var(--udexTypographyNavigationRegularMFontSize,14px);--udex-slider-tooltip-color: var(--sapContent_MeasureIndicatorColor, #5b738b);--udex-slider-tooltip-height: var(--udexSpacer32, 2rem);--udex-slider-tooltip-min-width: 2.75rem;--udex-slider-tickmark-in-range-bg: var(--sapSlider_Selected_BorderColor,#0070f2);--udex-slider-tickmark-bg: var(--sapContent_MeasureIndicatorColor, #5b738b);--udex-slider-label-color: var(--sapContent_MeasureIndicatorColor, #5b738b);--udex-slider-handle-focus-border: 2px solid var(--sapSlider_Active_HandleBorderColor);--udex-slider-progress-focus-top: -1.18rem;--udex-slider-progress-focus-left:calc(-1.375rem - 5px);--udex-slider-progress-focus-height: 42px;--udex-slider-progress-focus-width:calc(100% + 2.75rem + 10px)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size);top:var(--udex-slider-progress-focus-top);height:var(--udex-slider-progress-focus-height);width:var(--udex-slider-progress-focus-width);left:var(--udex-slider-progress-focus-left)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v2-
|
|
8
|
+
export default `:host{--udex-slider-color-track-start-point: var(--sapSlider_Selected_Background, #0070f2);--udex-slider-color-track-active: var(--sapSlider_Selected_Background, #0070f2);--udex-slider-color-handle-focus-range: var(--sapSlider_Selected_BorderColor, #0070f2);--udex-slider-color-handle-active-background: var(--sapSlider_Active_HandleBackground, #ffffff);--udex-slider-color-handle-default-icon: var(--sapContent_Selected_ForegroundColor, #0040b0);--udex-slider-radius-range-size: var(--udexRadiusM, 8px);--udex-slider-handle-width: 2.75rem;--udex-slider-handle-top: -.875rem;--udex-slider-handle-height: var(--udexSpacer32, 2rem);--udex-slider-start-end-point-left: -.875rem;--udex-slider-start-end-point-right: -.875rem;--udex-slider-progress-after-background: var(--sapContent_MeasureIndicatorColor,#5b738b);--udex-slider-handle-icon-size: var(--udexSpacer20, 1.25rem);--udex-slider-tooltip-bottom: 2.5rem;--udex-slider-tooltip-border: 1px solid var(--sapField_BorderColor, #5B738B);--udex-slider-tooltip-border-radius: var(--udexSpacer4, .25rem);--udex-slider-tooltip-font-size: var(--udexTypographyNavigationRegularMFontSize,14px);--udex-slider-tooltip-color: var(--sapContent_MeasureIndicatorColor, #5b738b);--udex-slider-tooltip-height: var(--udexSpacer32, 2rem);--udex-slider-tooltip-min-width: 2.75rem;--udex-slider-tickmark-in-range-bg: var(--sapSlider_Selected_BorderColor,#0070f2);--udex-slider-tickmark-bg: var(--sapContent_MeasureIndicatorColor, #5b738b);--udex-slider-label-color: var(--sapContent_MeasureIndicatorColor, #5b738b);--udex-slider-handle-focus-border: 2px solid var(--sapSlider_Active_HandleBorderColor);--udex-slider-progress-focus-top: -1.18rem;--udex-slider-progress-focus-left:calc(-1.375rem - 5px);--udex-slider-progress-focus-height: 42px;--udex-slider-progress-focus-width:calc(100% + 2.75rem + 10px)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size);top:var(--udex-slider-progress-focus-top);height:var(--udex-slider-progress-focus-height);width:var(--udex-slider-progress-focus-width);left:var(--udex-slider-progress-focus-left)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v2-17-0_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}.ui5-slider-root:focus .ui5-slider-inner .ui5-slider-handle,.ui5-slider-handle:focus{border:var(--udex-slider-handle-focus-border)}.ui5-slider-labels li{color:var(--udex-slider-label-color)}.ui5-slider-tickmarks li{border-inline-start:1px solid var(--udex-slider-tickmark-bg)}.ui5-slider-tickmarks li.ui5-slider-tickmark-in-range{border-inline-start:1px solid var(--udex-slider-tickmark-in-range-bg)}:host(:not([hidden])) .ui5-slider-handle-container .ui5-slider-tooltip{bottom:var(--udex-slider-tooltip-bottom);border:var(--udex-slider-tooltip-border);border-radius:var(--udex-slider-tooltip-border-radius);font-size:var(--udex-slider-tooltip-font-size);color:var(--udex-slider-tooltip-color);height:var(--udex-slider-tooltip-height);min-width:var(--udex-slider-tooltip-min-width)}[slider-icon]{width:var(--udex-slider-handle-icon-size);height:var(--udex-slider-handle-icon-size)}.ui5-slider-progress-container:after{background-color:var(--udex-slider-progress-after-background)}.ui5-slider-progress-container:before{inset-inline-start:var(--udex-slider-start-end-point-left)}.ui5-slider-progress-container:after{inset-inline-end:var(--udex-slider-start-end-point-right)}.ui5-slider-handle-container{margin-inline-start:calc(-1 * var(--udex-slider-handle-width) / 2);top:var(--udex-slider-handle-top)}.ui5-slider-handle{height:var(--udex-slider-handle-height);width:var(--udex-slider-handle-width)}
|
|
9
9
|
`
|