@sapudex/web-components 2.32.0 → 2.32.1

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.
Files changed (68) hide show
  1. package/cypress/specs/SelectBox.cy.tsx +35 -0
  2. package/cypress/specs/StepInput.cy.tsx +507 -0
  3. package/cypress/support/component-imports.instrumented.ts +2 -0
  4. package/cypress/support/component-imports.src.ts +5 -3
  5. package/dist/HeroBanner.d.ts +0 -3
  6. package/dist/HeroBanner.js +0 -5
  7. package/dist/HeroBanner.js.map +1 -1
  8. package/dist/HeroBannerTemplate.d.ts +2 -0
  9. package/dist/HeroBannerTemplate.js +6 -1
  10. package/dist/HeroBannerTemplate.js.map +1 -1
  11. package/dist/SelectBase.js +2 -1
  12. package/dist/SelectBase.js.map +1 -1
  13. package/dist/StepInput.d.ts +3 -0
  14. package/dist/StepInput.js +17 -0
  15. package/dist/StepInput.js.map +1 -1
  16. package/dist/StepInputTemplate.js +1 -1
  17. package/dist/StepInputTemplate.js.map +1 -1
  18. package/dist/assets/{InputSuggestions-CHLLTki3.js → InputSuggestions-DeXhpK0F.js} +1 -1
  19. package/dist/assets/{ListItemStandardExpandableTextTemplate-vM1eIFe4.js → ListItemStandardExpandableTextTemplate-jMEdrC07.js} +1 -1
  20. package/dist/assets/{bundle.esm-fUZ1I3qm.js → bundle.esm-CwJAt93x.js} +198 -198
  21. package/dist/css/themes/FilterMenu.css +1 -1
  22. package/dist/css/themes/HeroBanner.css +1 -1
  23. package/dist/css/themes/Modal.css +1 -1
  24. package/dist/css/themes/RatingIndicator.css +1 -1
  25. package/dist/css/themes/SecondaryNavigationItem.css +1 -1
  26. package/dist/css/themes/Slider.css +1 -1
  27. package/dist/custom-elements-internal.json +154 -154
  28. package/dist/custom-elements.json +139 -139
  29. package/dist/generated/themes/FilterMenu.css.d.ts +1 -1
  30. package/dist/generated/themes/FilterMenu.css.js +1 -1
  31. package/dist/generated/themes/FilterMenu.css.js.map +1 -1
  32. package/dist/generated/themes/HeroBanner.css.d.ts +1 -1
  33. package/dist/generated/themes/HeroBanner.css.js +1 -1
  34. package/dist/generated/themes/HeroBanner.css.js.map +1 -1
  35. package/dist/generated/themes/Modal.css.d.ts +1 -1
  36. package/dist/generated/themes/Modal.css.js +1 -1
  37. package/dist/generated/themes/Modal.css.js.map +1 -1
  38. package/dist/generated/themes/RatingIndicator.css.d.ts +1 -1
  39. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  40. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  41. package/dist/generated/themes/SecondaryNavigationItem.css.d.ts +1 -1
  42. package/dist/generated/themes/SecondaryNavigationItem.css.js +1 -1
  43. package/dist/generated/themes/SecondaryNavigationItem.css.js.map +1 -1
  44. package/dist/generated/themes/Slider.css.d.ts +1 -1
  45. package/dist/generated/themes/Slider.css.js +1 -1
  46. package/dist/generated/themes/Slider.css.js.map +1 -1
  47. package/dist/web-types.json +1 -1
  48. package/package.json +1 -1
  49. package/src/HeroBanner.ts +0 -5
  50. package/src/HeroBannerTemplate.tsx +6 -1
  51. package/src/SelectBase.ts +2 -1
  52. package/src/StepInput.ts +20 -0
  53. package/src/StepInputTemplate.tsx +1 -1
  54. package/src/generated/themes/FilterMenu.css.ts +1 -1
  55. package/src/generated/themes/HeroBanner.css.ts +1 -1
  56. package/src/generated/themes/Modal.css.ts +1 -1
  57. package/src/generated/themes/RatingIndicator.css.ts +1 -1
  58. package/src/generated/themes/SecondaryNavigationItem.css.ts +1 -1
  59. package/src/generated/themes/Slider.css.ts +1 -1
  60. package/src/themes/FilterMenu.css +5 -1
  61. package/src/themes/HeroBanner.css +93 -76
  62. package/src/themes/Modal.css +3 -2
  63. package/src/themes/SecondaryNavigationItem.css +4 -1
  64. package/dist/generated/templates/HeroBannerTemplate.lit.d.ts +0 -3
  65. package/dist/generated/templates/HeroBannerTemplate.lit.js +0 -15
  66. package/dist/generated/templates/HeroBannerTemplate.lit.js.map +0 -1
  67. package/src/HeroBanner.hbs +0 -46
  68. package/src/generated/templates/HeroBannerTemplate.lit.ts +0 -19
@@ -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;