@sapudex/web-components 2.28.0 → 2.29.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/PromoTile.cy.tsx +16 -2
- package/cypress/specs/Tag.cy.tsx +6 -0
- package/dist/MastheadCountrySelector.d.ts +16 -0
- package/dist/MastheadCountrySelector.js +21 -6
- package/dist/MastheadCountrySelector.js.map +1 -1
- package/dist/MessageStrip.d.ts +14 -0
- package/dist/MessageStrip.js +7 -1
- package/dist/MessageStrip.js.map +1 -1
- package/dist/MessageStripTemplate.js +1 -1
- package/dist/MessageStripTemplate.js.map +1 -1
- package/dist/PromoTile.d.ts +8 -1
- package/dist/PromoTile.js +9 -6
- package/dist/PromoTile.js.map +1 -1
- package/dist/PromoTileTemplate.js +5 -5
- package/dist/PromoTileTemplate.js.map +1 -1
- package/dist/SearchableListBase.js +1 -1
- package/dist/SearchableListBase.js.map +1 -1
- package/dist/SelectBase.js +1 -1
- package/dist/SelectBase.js.map +1 -1
- package/dist/TabNavigation.d.ts +1 -1
- package/dist/TabNavigation.js +2 -7
- package/dist/TabNavigation.js.map +1 -1
- package/dist/Tag.d.ts +7 -1
- package/dist/Tag.js +4 -1
- package/dist/Tag.js.map +1 -1
- package/dist/TagTemplate.js +1 -1
- package/dist/TagTemplate.js.map +1 -1
- package/dist/assets/{InputSuggestions-DTdaDbps.js → InputSuggestions-GMbG8xQ2.js} +1 -1
- package/dist/assets/{ListItemStandardExpandableTextTemplate-DoV7tVwi.js → ListItemStandardExpandableTextTemplate-IyZB_qzJ.js} +1 -1
- package/dist/assets/{bundle.esm-BUg2IPOZ.js → bundle.esm-Dg7j0PXg.js} +185 -185
- package/dist/css/themes/Button.css +1 -1
- package/dist/css/themes/ListItem.css +1 -1
- package/dist/css/themes/MastheadCountrySelector.css +1 -1
- package/dist/css/themes/MastheadMenuItem.css +1 -1
- package/dist/css/themes/MastheadProfileMenu.css +1 -1
- package/dist/css/themes/PromoTile.css +1 -1
- package/dist/css/themes/RatingIndicator.css +1 -1
- package/dist/css/themes/SearchableList.css +1 -1
- package/dist/css/themes/Slider.css +1 -1
- package/dist/custom-elements-internal.json +122 -0
- package/dist/custom-elements.json +118 -0
- package/dist/generated/templates/MastheadCountrySelectorTemplate.lit.js +1 -1
- package/dist/generated/templates/MastheadCountrySelectorTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MastheadItemTemplate.lit.js +3 -3
- package/dist/generated/templates/MastheadItemTemplate.lit.js.map +1 -1
- package/dist/generated/themes/Button.css.d.ts +1 -1
- package/dist/generated/themes/Button.css.js +1 -1
- package/dist/generated/themes/Button.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/MastheadCountrySelector.css.d.ts +1 -1
- package/dist/generated/themes/MastheadCountrySelector.css.js +1 -1
- package/dist/generated/themes/MastheadCountrySelector.css.js.map +1 -1
- package/dist/generated/themes/MastheadMenuItem.css.d.ts +1 -1
- package/dist/generated/themes/MastheadMenuItem.css.js +1 -1
- package/dist/generated/themes/MastheadMenuItem.css.js.map +1 -1
- package/dist/generated/themes/MastheadProfileMenu.css.d.ts +1 -1
- package/dist/generated/themes/MastheadProfileMenu.css.js +1 -1
- package/dist/generated/themes/MastheadProfileMenu.css.js.map +1 -1
- package/dist/generated/themes/PromoTile.css.d.ts +1 -1
- package/dist/generated/themes/PromoTile.css.js +1 -1
- package/dist/generated/themes/PromoTile.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/SearchableList.css.d.ts +1 -1
- package/dist/generated/themes/SearchableList.css.js +1 -1
- package/dist/generated/themes/SearchableList.css.js.map +1 -1
- package/dist/generated/themes/Slider.css.d.ts +1 -1
- package/dist/generated/themes/Slider.css.js +1 -1
- package/dist/generated/themes/Slider.css.js.map +1 -1
- package/dist/vscode.html-custom-data.json +31 -1
- package/dist/web-types.json +66 -2
- package/package.json +1 -1
- package/src/MastheadCountrySelector.hbs +1 -0
- package/src/MastheadCountrySelector.ts +36 -6
- package/src/MastheadItem.hbs +1 -0
- package/src/MessageStrip.ts +19 -1
- package/src/MessageStripTemplate.tsx +1 -0
- package/src/PromoTile.ts +17 -10
- package/src/PromoTileTemplate.tsx +18 -14
- package/src/SearchableListBase.ts +1 -1
- package/src/SelectBase.ts +1 -1
- package/src/TabNavigation.ts +3 -10
- package/src/Tag.ts +10 -2
- package/src/TagTemplate.tsx +4 -0
- package/src/generated/templates/MastheadCountrySelectorTemplate.lit.ts +1 -1
- package/src/generated/templates/MastheadItemTemplate.lit.ts +3 -3
- package/src/generated/themes/Button.css.ts +1 -1
- package/src/generated/themes/ListItem.css.ts +1 -1
- package/src/generated/themes/MastheadCountrySelector.css.ts +1 -1
- package/src/generated/themes/MastheadMenuItem.css.ts +1 -1
- package/src/generated/themes/MastheadProfileMenu.css.ts +1 -1
- package/src/generated/themes/PromoTile.css.ts +1 -1
- package/src/generated/themes/RatingIndicator.css.ts +1 -1
- package/src/generated/themes/SearchableList.css.ts +1 -1
- package/src/generated/themes/Slider.css.ts +1 -1
- package/src/themes/Button.css +9 -20
- package/src/themes/ListItem.css +1 -0
- package/src/themes/MastheadCountrySelector.css +4 -0
- package/src/themes/MastheadMenuItem.css +8 -2
- package/src/themes/MastheadProfileMenu.css +2 -0
- package/src/themes/PromoTile.css +4 -0
- package/src/themes/SearchableList.css +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Slider.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,uBAAuB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACxH,6BAA6B,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAChN,eAAe;CACd,CAAA","sourcesContent":["import { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nimport defaultThemeBase from \"@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js\";\nimport defaultTheme from \"./sap_horizon/parameters-bundle.css.js\";\n\nregisterThemePropertiesLoader(\"@\" + \"ui5\" + \"/\" + \"webcomponents-theming\", \"sap_horizon\", async () => defaultThemeBase);\nregisterThemePropertiesLoader(\"@\" + \"s\" + \"a\" + \"p\" + \"u\" + \"d\" + \"e\" + \"x\" + \"/\" + \"w\" + \"e\" + \"b\" + \"-\" + \"c\" + \"o\" + \"m\" + \"p\" + \"o\" + \"n\" + \"e\" + \"n\" + \"t\" + \"s\", \"sap_horizon\", async () => defaultTheme);\nexport 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-
|
|
1
|
+
{"version":3,"file":"Slider.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Slider.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,uBAAuB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACxH,6BAA6B,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAChN,eAAe;CACd,CAAA","sourcesContent":["import { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nimport defaultThemeBase from \"@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js\";\nimport defaultTheme from \"./sap_horizon/parameters-bundle.css.js\";\n\nregisterThemePropertiesLoader(\"@\" + \"ui5\" + \"/\" + \"webcomponents-theming\", \"sap_horizon\", async () => defaultThemeBase);\nregisterThemePropertiesLoader(\"@\" + \"s\" + \"a\" + \"p\" + \"u\" + \"d\" + \"e\" + \"x\" + \"/\" + \"w\" + \"e\" + \"b\" + \"-\" + \"c\" + \"o\" + \"m\" + \"p\" + \"o\" + \"n\" + \"e\" + \"n\" + \"t\" + \"s\", \"sap_horizon\", async () => defaultTheme);\nexport 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-29-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)}\n`"]}
|
|
@@ -2026,6 +2026,16 @@
|
|
|
2026
2026
|
"name": "udex-masthead-country-selector",
|
|
2027
2027
|
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>masthead-country-selector</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/MastheadCountrySelector.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **region-item-click** - Fires when region item is clicked\n- **country-item-click** - Fires when region item is clicked\n- **country-selector-search** - Fired event when the user typed to search field.",
|
|
2028
2028
|
"attributes": [
|
|
2029
|
+
{
|
|
2030
|
+
"name": "active-country-code",
|
|
2031
|
+
"description": "Defines active country code of the regions menu",
|
|
2032
|
+
"values": []
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"name": "active-country-url",
|
|
2036
|
+
"description": "Defines active country url of the regions menu",
|
|
2037
|
+
"values": []
|
|
2038
|
+
},
|
|
2029
2039
|
{
|
|
2030
2040
|
"name": "region-title",
|
|
2031
2041
|
"description": "Defines title of the regions menu",
|
|
@@ -2465,6 +2475,16 @@
|
|
|
2465
2475
|
"name": "hide-close-button",
|
|
2466
2476
|
"description": "Defines whether the MessageStrip renders close button.",
|
|
2467
2477
|
"values": []
|
|
2478
|
+
},
|
|
2479
|
+
{
|
|
2480
|
+
"name": "close-icon-accessible-name",
|
|
2481
|
+
"description": "Defines accessible name for close icon",
|
|
2482
|
+
"values": []
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
"name": "close-icon-tooltip",
|
|
2486
|
+
"description": "Defines tooltip for close icon",
|
|
2487
|
+
"values": []
|
|
2468
2488
|
}
|
|
2469
2489
|
],
|
|
2470
2490
|
"references": []
|
|
@@ -2676,7 +2696,7 @@
|
|
|
2676
2696
|
},
|
|
2677
2697
|
{
|
|
2678
2698
|
"name": "udex-promo-tile",
|
|
2679
|
-
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-promo-tile</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/PromoTile.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **button-click** - Triggered when the user clicks on the CTA button\n\n### **Slots:**\n - **default** - Defines the text content of the Promo Tile.",
|
|
2699
|
+
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-promo-tile</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/PromoTile.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **button-click** - Triggered when the user clicks on the CTA button\n\n### **Slots:**\n - **default** - Defines the text content of the Promo Tile.\n- **pictogram** - Defines the custom pictogram of the Promo Tile.",
|
|
2680
2700
|
"attributes": [
|
|
2681
2701
|
{
|
|
2682
2702
|
"name": "orientation",
|
|
@@ -4107,6 +4127,16 @@
|
|
|
4107
4127
|
"name": "selected",
|
|
4108
4128
|
"description": "Defines if tag is selected",
|
|
4109
4129
|
"values": []
|
|
4130
|
+
},
|
|
4131
|
+
{
|
|
4132
|
+
"name": "non-selectable",
|
|
4133
|
+
"description": "Toggle on/off nonSelectable property on tag",
|
|
4134
|
+
"values": []
|
|
4135
|
+
},
|
|
4136
|
+
{
|
|
4137
|
+
"name": "non-interactive",
|
|
4138
|
+
"description": "Defined if tag should be nonSelectable and icon should be non-interactive",
|
|
4139
|
+
"values": []
|
|
4110
4140
|
}
|
|
4111
4141
|
],
|
|
4112
4142
|
"references": []
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@sapudex/web-components",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.29.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -4236,6 +4236,16 @@
|
|
|
4236
4236
|
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>masthead-country-selector</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/MastheadCountrySelector.js\";</code>\n---\n\n\n### **Events:**\n - **region-item-click** - Fires when region item is clicked\n- **country-item-click** - Fires when region item is clicked\n- **country-selector-search** - Fired event when the user typed to search field.",
|
|
4237
4237
|
"doc-url": "",
|
|
4238
4238
|
"attributes": [
|
|
4239
|
+
{
|
|
4240
|
+
"name": "active-country-code",
|
|
4241
|
+
"description": "Defines active country code of the regions menu",
|
|
4242
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
4243
|
+
},
|
|
4244
|
+
{
|
|
4245
|
+
"name": "active-country-url",
|
|
4246
|
+
"description": "Defines active country url of the regions menu",
|
|
4247
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
4248
|
+
},
|
|
4239
4249
|
{
|
|
4240
4250
|
"name": "region-title",
|
|
4241
4251
|
"description": "Defines title of the regions menu",
|
|
@@ -4283,6 +4293,16 @@
|
|
|
4283
4293
|
],
|
|
4284
4294
|
"js": {
|
|
4285
4295
|
"properties": [
|
|
4296
|
+
{
|
|
4297
|
+
"name": "active-country-code",
|
|
4298
|
+
"description": "Defines active country code of the regions menu",
|
|
4299
|
+
"value": { "type": "string" }
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
"name": "active-country-url",
|
|
4303
|
+
"description": "Defines active country url of the regions menu",
|
|
4304
|
+
"value": { "type": "string" }
|
|
4305
|
+
},
|
|
4286
4306
|
{
|
|
4287
4307
|
"name": "region-title",
|
|
4288
4308
|
"description": "Defines title of the regions menu",
|
|
@@ -5435,6 +5455,16 @@
|
|
|
5435
5455
|
"name": "hide-close-button",
|
|
5436
5456
|
"description": "Defines whether the MessageStrip renders close button.",
|
|
5437
5457
|
"value": { "type": "boolean" }
|
|
5458
|
+
},
|
|
5459
|
+
{
|
|
5460
|
+
"name": "close-icon-accessible-name",
|
|
5461
|
+
"description": "Defines accessible name for close icon",
|
|
5462
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
"name": "close-icon-tooltip",
|
|
5466
|
+
"description": "Defines tooltip for close icon",
|
|
5467
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
5438
5468
|
}
|
|
5439
5469
|
],
|
|
5440
5470
|
"slots": [
|
|
@@ -5462,6 +5492,16 @@
|
|
|
5462
5492
|
"name": "hide-close-button",
|
|
5463
5493
|
"description": "Defines whether the MessageStrip renders close button.",
|
|
5464
5494
|
"value": { "type": "boolean" }
|
|
5495
|
+
},
|
|
5496
|
+
{
|
|
5497
|
+
"name": "close-icon-accessible-name",
|
|
5498
|
+
"description": "Defines accessible name for close icon",
|
|
5499
|
+
"value": { "type": "string" }
|
|
5500
|
+
},
|
|
5501
|
+
{
|
|
5502
|
+
"name": "close-icon-tooltip",
|
|
5503
|
+
"description": "Defines tooltip for close icon",
|
|
5504
|
+
"value": { "type": "string" }
|
|
5465
5505
|
}
|
|
5466
5506
|
],
|
|
5467
5507
|
"events": []
|
|
@@ -5896,7 +5936,7 @@
|
|
|
5896
5936
|
},
|
|
5897
5937
|
{
|
|
5898
5938
|
"name": "udex-promo-tile",
|
|
5899
|
-
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-promo-tile</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/PromoTile.js\";</code>\n---\n\n\n### **Events:**\n - **button-click** - Triggered when the user clicks on the CTA button\n\n### **Slots:**\n - **default** - Defines the text content of the Promo Tile.",
|
|
5939
|
+
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-promo-tile</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/PromoTile.js\";</code>\n---\n\n\n### **Events:**\n - **button-click** - Triggered when the user clicks on the CTA button\n\n### **Slots:**\n - **default** - Defines the text content of the Promo Tile.\n- **pictogram** - Defines the custom pictogram of the Promo Tile.",
|
|
5900
5940
|
"doc-url": "",
|
|
5901
5941
|
"attributes": [
|
|
5902
5942
|
{
|
|
@@ -5963,6 +6003,10 @@
|
|
|
5963
6003
|
{
|
|
5964
6004
|
"name": "default",
|
|
5965
6005
|
"description": "Defines the text content of the Promo Tile."
|
|
6006
|
+
},
|
|
6007
|
+
{
|
|
6008
|
+
"name": "pictogram",
|
|
6009
|
+
"description": "Defines the custom pictogram of the Promo Tile."
|
|
5966
6010
|
}
|
|
5967
6011
|
],
|
|
5968
6012
|
"events": [
|
|
@@ -8714,6 +8758,16 @@
|
|
|
8714
8758
|
"name": "selected",
|
|
8715
8759
|
"description": "Defines if tag is selected",
|
|
8716
8760
|
"value": { "type": "boolean", "default": "false" }
|
|
8761
|
+
},
|
|
8762
|
+
{
|
|
8763
|
+
"name": "non-selectable",
|
|
8764
|
+
"description": "Toggle on/off nonSelectable property on tag",
|
|
8765
|
+
"value": { "type": "boolean", "default": "true" }
|
|
8766
|
+
},
|
|
8767
|
+
{
|
|
8768
|
+
"name": "non-interactive",
|
|
8769
|
+
"description": "Defined if tag should be nonSelectable and icon should be non-interactive",
|
|
8770
|
+
"value": { "type": "boolean", "default": "true" }
|
|
8717
8771
|
}
|
|
8718
8772
|
],
|
|
8719
8773
|
"events": [
|
|
@@ -8783,6 +8837,16 @@
|
|
|
8783
8837
|
"name": "selected",
|
|
8784
8838
|
"description": "Defines if tag is selected",
|
|
8785
8839
|
"value": { "type": "boolean" }
|
|
8840
|
+
},
|
|
8841
|
+
{
|
|
8842
|
+
"name": "non-selectable",
|
|
8843
|
+
"description": "Toggle on/off nonSelectable property on tag",
|
|
8844
|
+
"value": { "type": "boolean" }
|
|
8845
|
+
},
|
|
8846
|
+
{
|
|
8847
|
+
"name": "non-interactive",
|
|
8848
|
+
"description": "Defined if tag should be nonSelectable and icon should be non-interactive",
|
|
8849
|
+
"value": { "type": "boolean" }
|
|
8786
8850
|
}
|
|
8787
8851
|
],
|
|
8788
8852
|
"events": [
|
package/package.json
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
class="udex-masthead-country-selector__item udex-masthead-country-selector__item_countries"
|
|
35
35
|
@click="{{../handleCountryClick}}"
|
|
36
36
|
_country-code="{{this.countryCode}}"
|
|
37
|
+
?_is-active-country="{{this.active}}"
|
|
37
38
|
url="{{this.url}}"
|
|
38
39
|
label="{{this.displayTitle}}"
|
|
39
40
|
index="{{@index}}"
|
|
@@ -32,6 +32,7 @@ export type Country = {
|
|
|
32
32
|
displayTitle: string,
|
|
33
33
|
countryCode: string,
|
|
34
34
|
url: string,
|
|
35
|
+
active: boolean,
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
type UDExMastheadCountrySelectorRegionClickEventDetail = {
|
|
@@ -127,6 +128,25 @@ class UDExMastheadCountrySelector extends UI5Element {
|
|
|
127
128
|
"country-selector-search": UDExMastheadCountrySelectorSearchEventDetail,
|
|
128
129
|
"region-item-click": UDExMastheadCountrySelectorRegionClickEventDetail
|
|
129
130
|
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Defines active country code of the regions menu
|
|
134
|
+
*
|
|
135
|
+
* @default ""
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
@property({ type: String })
|
|
139
|
+
activeCountryCode !: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Defines active country url of the regions menu
|
|
143
|
+
*
|
|
144
|
+
* @default ""
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
@property({ type: String })
|
|
148
|
+
activeCountryUrl!: string;
|
|
149
|
+
|
|
130
150
|
/**
|
|
131
151
|
* Defines title of the regions menu
|
|
132
152
|
*
|
|
@@ -279,11 +299,8 @@ class UDExMastheadCountrySelector extends UI5Element {
|
|
|
279
299
|
}
|
|
280
300
|
|
|
281
301
|
handleBackKeyboard(e: KeyboardEvent): void {
|
|
282
|
-
if (isLeft(e) && !this.isRtlDirection) {
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
if (isRight(e) && this.isRtlDirection) {
|
|
286
|
-
return this.backToRegions();
|
|
302
|
+
if ((isLeft(e) && !this.isRtlDirection) || (isRight(e) && this.isRtlDirection)) {
|
|
303
|
+
this.backToRegions();
|
|
287
304
|
}
|
|
288
305
|
}
|
|
289
306
|
|
|
@@ -562,6 +579,12 @@ class UDExMastheadCountrySelector extends UI5Element {
|
|
|
562
579
|
this.countryListHolder.classList.remove(`${this._countriesListHolderClassName}_scrollable`);
|
|
563
580
|
}
|
|
564
581
|
|
|
582
|
+
isActiveCountry(countryCode: string, url: string): boolean {
|
|
583
|
+
const matchedURL = this.activeCountryUrl?.toUpperCase() === url.toUpperCase();
|
|
584
|
+
const matchedCode = this.activeCountryCode?.toUpperCase() === countryCode.toUpperCase();
|
|
585
|
+
return matchedURL && matchedCode;
|
|
586
|
+
}
|
|
587
|
+
|
|
565
588
|
get scrollBottomCountriesList(): number {
|
|
566
589
|
const countriesList = this.countryListHolder;
|
|
567
590
|
return countriesList.scrollHeight - countriesList.scrollTop - countriesList.clientHeight;
|
|
@@ -590,7 +613,14 @@ class UDExMastheadCountrySelector extends UI5Element {
|
|
|
590
613
|
}
|
|
591
614
|
|
|
592
615
|
get regionsData(): Array<Region> {
|
|
593
|
-
|
|
616
|
+
const regions: Array<Region> = this.regions ? JSON.parse(this.regions) as Array<Region> : [];
|
|
617
|
+
return regions.map(region => ({
|
|
618
|
+
...region,
|
|
619
|
+
countries: region.countries.map(country => ({
|
|
620
|
+
...country,
|
|
621
|
+
active: this.isActiveCountry(country.countryCode, country.url),
|
|
622
|
+
})),
|
|
623
|
+
}));
|
|
594
624
|
}
|
|
595
625
|
|
|
596
626
|
get isRtlDirection(): boolean {
|
package/src/MastheadItem.hbs
CHANGED
package/src/MessageStrip.ts
CHANGED
|
@@ -64,6 +64,24 @@ class UDExMessageStrip extends MessageStrip {
|
|
|
64
64
|
@property({ type: Boolean })
|
|
65
65
|
hideCloseButton!: boolean;
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Defines accessible name for close icon
|
|
69
|
+
*
|
|
70
|
+
* @default ""
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
@property()
|
|
74
|
+
closeIconAccessibleName!: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Defines tooltip for close icon
|
|
78
|
+
*
|
|
79
|
+
* @default ""
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
@property()
|
|
83
|
+
closeIconTooltip!: string;
|
|
84
|
+
|
|
67
85
|
/**
|
|
68
86
|
* Defines the content of the component.
|
|
69
87
|
*
|
|
@@ -126,7 +144,7 @@ class UDExMessageStrip extends MessageStrip {
|
|
|
126
144
|
}
|
|
127
145
|
|
|
128
146
|
get _closeButtonText(): string {
|
|
129
|
-
return `${this.textStatus ?? ""} ${this.getTranslation(MESSAGE_STRIP_CLOSE_BUTTON)}`;
|
|
147
|
+
return this.closeIconTooltip || `${this.textStatus ?? ""} ${this.getTranslation(MESSAGE_STRIP_CLOSE_BUTTON)}`;
|
|
130
148
|
}
|
|
131
149
|
|
|
132
150
|
get isNotIconStatusType(): boolean {
|
package/src/PromoTile.ts
CHANGED
|
@@ -16,10 +16,10 @@ import type UDExButton from "./Button.js";
|
|
|
16
16
|
import UDExButtonSize from "./types/ButtonSize.js";
|
|
17
17
|
import UDExButtonDesign from "./types/ButtonDesign.js";
|
|
18
18
|
import { UDExPromoTileColorScheme, UDExPromoTileMode } from "./types/PromoTile.js";
|
|
19
|
+
import translate from "./utils/translate.js";
|
|
19
20
|
|
|
20
21
|
// Styles
|
|
21
22
|
import PromoTileCss from "./generated/themes/PromoTile.css.js";
|
|
22
|
-
import translate from "./utils/translate.js";
|
|
23
23
|
|
|
24
24
|
export enum UDExOrientation {
|
|
25
25
|
Vertical = "Vertical",
|
|
@@ -72,6 +72,15 @@ class UDExPromoTile extends UI5Element {
|
|
|
72
72
|
@slot({ type: HTMLElement, "default": true })
|
|
73
73
|
content!: Array<HTMLElement>;
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Defines the custom pictogram of the Promo Tile.
|
|
77
|
+
*
|
|
78
|
+
* @slot pictogram
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
@slot({ type: HTMLElement })
|
|
82
|
+
pictogram?: Array<HTMLElement>;
|
|
83
|
+
|
|
75
84
|
/**
|
|
76
85
|
* Defines the orientation of the Promo Tile component.
|
|
77
86
|
*
|
|
@@ -199,9 +208,7 @@ class UDExPromoTile extends UI5Element {
|
|
|
199
208
|
}
|
|
200
209
|
|
|
201
210
|
getButton(): UDExButton | undefined {
|
|
202
|
-
return this.shadowRoot!.querySelector<UDExButton>(
|
|
203
|
-
"[udex-button]",
|
|
204
|
-
)!;
|
|
211
|
+
return this.shadowRoot!.querySelector<UDExButton>("[udex-button]")!;
|
|
205
212
|
}
|
|
206
213
|
|
|
207
214
|
applyColorScheme(): void {
|
|
@@ -250,6 +257,11 @@ class UDExPromoTile extends UI5Element {
|
|
|
250
257
|
return color;
|
|
251
258
|
}
|
|
252
259
|
|
|
260
|
+
handleCTAButtonClick(e: Event) {
|
|
261
|
+
e.preventDefault();
|
|
262
|
+
this.fireDecoratorEvent("button-click");
|
|
263
|
+
}
|
|
264
|
+
|
|
253
265
|
get isMobile(): boolean {
|
|
254
266
|
return BreakpointUtils.isAtMost("S");
|
|
255
267
|
}
|
|
@@ -259,7 +271,7 @@ class UDExPromoTile extends UI5Element {
|
|
|
259
271
|
}
|
|
260
272
|
|
|
261
273
|
get _showPictogram(): boolean {
|
|
262
|
-
return !!this.icon || !!this.logoUrl;
|
|
274
|
+
return !!this.icon || !!this.logoUrl || !!this.pictogram?.length;
|
|
263
275
|
}
|
|
264
276
|
|
|
265
277
|
get _showLogo(): boolean {
|
|
@@ -269,11 +281,6 @@ class UDExPromoTile extends UI5Element {
|
|
|
269
281
|
get _imageLabel(): string {
|
|
270
282
|
return this.imageLabel || translate(UDExPromoTile, PROMO_TILE_ICON);
|
|
271
283
|
}
|
|
272
|
-
|
|
273
|
-
handleCTAButtonClick(e: Event) {
|
|
274
|
-
e.preventDefault();
|
|
275
|
-
this.fireDecoratorEvent("button-click");
|
|
276
|
-
}
|
|
277
284
|
}
|
|
278
285
|
|
|
279
286
|
UDExPromoTile.define();
|
|
@@ -18,22 +18,26 @@ export default function PromoTileTemplate(this: UDExPromoTile) {
|
|
|
18
18
|
part="image"
|
|
19
19
|
class={{
|
|
20
20
|
"udex-promo-tile__pictogram": true,
|
|
21
|
-
"udex-promo-tile__pictogram--logo": this.logoUrl
|
|
21
|
+
"udex-promo-tile__pictogram--logo": this.logoUrl && !this.pictogram?.length
|
|
22
22
|
}}
|
|
23
23
|
title={this._imageLabel}>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
<slot slot="pictogram" name="pictogram">
|
|
25
|
+
{this.icon &&
|
|
26
|
+
<UI5Icon
|
|
27
|
+
class={`${rootClass}__icon`}
|
|
28
|
+
name={this.icon?.toLowerCase()}
|
|
29
|
+
mode={IconMode.Decorative}
|
|
30
|
+
accessibleName={this._imageLabel}>
|
|
31
|
+
</UI5Icon>
|
|
32
|
+
}
|
|
33
|
+
{this._showLogo &&
|
|
34
|
+
<img
|
|
35
|
+
src={this.logoUrl}
|
|
36
|
+
class={`${rootClass}__icon`}
|
|
37
|
+
aria-label={this._imageLabel}
|
|
38
|
+
alt={this._imageLabel} />
|
|
39
|
+
}
|
|
40
|
+
</slot>
|
|
37
41
|
</div>
|
|
38
42
|
}
|
|
39
43
|
<div part="content" class={`${rootClass}__content`}>
|
|
@@ -589,7 +589,7 @@ class UDExSearchableListBase extends UI5Element {
|
|
|
589
589
|
|
|
590
590
|
get isControlled(): boolean {
|
|
591
591
|
const isGrouping = this.items.some(({ isGroup }) => isGroup);
|
|
592
|
-
return this.
|
|
592
|
+
return this.modeMultiSelect && isGrouping;
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
get additionalClassName(): string {
|
package/src/SelectBase.ts
CHANGED
package/src/TabNavigation.ts
CHANGED
|
@@ -336,16 +336,9 @@ class UDExTabNavigation extends UI5Element {
|
|
|
336
336
|
this.emitClickEvent(selectedTabIndex + 1);
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
getTab(el: HTMLElement | null) {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
return el as Tab;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
el = el.parentElement;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
return false;
|
|
339
|
+
getTab(el: HTMLElement | null): Tab | false {
|
|
340
|
+
const tab = el?.closest<Tab>("button[role=\"tab\"]");
|
|
341
|
+
return tab || false;
|
|
349
342
|
}
|
|
350
343
|
|
|
351
344
|
updateSelectedTab(selectedTabIndex: number) {
|
package/src/Tag.ts
CHANGED
|
@@ -205,11 +205,19 @@ class UDExTag extends UI5Element {
|
|
|
205
205
|
/**
|
|
206
206
|
* Toggle on/off nonSelectable property on tag
|
|
207
207
|
* @default true
|
|
208
|
-
* @
|
|
208
|
+
* @public
|
|
209
209
|
*/
|
|
210
210
|
@property({ type: Boolean })
|
|
211
211
|
nonSelectable!: boolean;
|
|
212
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Defined if tag should be nonSelectable and icon should be non-interactive
|
|
215
|
+
* @default true
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
@property({ type: Boolean })
|
|
219
|
+
nonInteractive!: boolean;
|
|
220
|
+
|
|
213
221
|
_handleResizeBound: ResizeObserverCallback;
|
|
214
222
|
|
|
215
223
|
constructor() {
|
|
@@ -276,7 +284,7 @@ class UDExTag extends UI5Element {
|
|
|
276
284
|
get tagClasses(): string {
|
|
277
285
|
const hasIconClass = this.hasIcon ? "udex-tag--has-icon" : "";
|
|
278
286
|
const readOnlyClass = this.readOnly ? "udex-tag--readonly" : "";
|
|
279
|
-
const nonSelectableClass = this.nonSelectable && !this.href ? "udex-tag--nonselectable" : "";
|
|
287
|
+
const nonSelectableClass = this.nonSelectable && !this.href && !this.nonInteractive ? "udex-tag--nonselectable" : "";
|
|
280
288
|
const linkTagClass = this.href ? "udex-tag--link" : "";
|
|
281
289
|
const selectableClass = this.selected ? "udex-tag--selected" : "";
|
|
282
290
|
const designClass = `udex-tag-${this.design?.toLowerCase()}`;
|
package/src/TagTemplate.tsx
CHANGED
|
@@ -19,6 +19,10 @@ export default function TagTemplate(this: UDExTag) {
|
|
|
19
19
|
onClick={this.tagLinkClickHandler}>
|
|
20
20
|
{tagContent.call(this, rootClass)}
|
|
21
21
|
</a>
|
|
22
|
+
) : this.nonInteractive ? (
|
|
23
|
+
<div class={this.tagClasses}>
|
|
24
|
+
{tagContent.call(this, rootClass, false, false)}
|
|
25
|
+
</div>
|
|
22
26
|
) : this.nonSelectable ? (
|
|
23
27
|
<div class={this.tagClasses}>
|
|
24
28
|
{tagContent.call(this, rootClass, false, true)}
|
|
@@ -8,7 +8,7 @@ import type { ClassMapValue } from "@ui5/webcomponents-base/dist/types.js";
|
|
|
8
8
|
function block0 (this: MastheadCountrySelector, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-masthead-country-selector" @keydown="${this.handleKeyDown}">${ this._isActiveRegionOpen ? block1.call(this, context, tags, suffix) : block4.call(this, context, tags, suffix) }</div>`;}
|
|
9
9
|
function block1 (this: MastheadCountrySelector, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<span class="udex-masthead-country-selector__title">${ifDefined(this.countryTitle)}</span>${ !this.isSingleMode ? block2.call(this, context, tags, suffix) : undefined }<${scopeTag("udex-search", tags, suffix)} class="udex-masthead-country-selector__search" @ui5-handle-value-search="${ifDefined(this.handleSearch)}" @ui5-handle-value-reset="${ifDefined(this.handleSearchReset)}" @ui5-submit-search-value="${ifDefined(this.handleSearch)}" language-voice="${ifDefined(this.languageVoice)}" label="${ifDefined(this.searchLabel)}" mode="${ifDefined(this.homeSearchMode)}" ?show-voice-button="${this.showSearchVoiceButton}" non-interactive-submit-button show-submit-button></${scopeTag("udex-search", tags, suffix)}><span aria-live="polite" aria-atomic="true" class="hidden">${ifDefined(this._accSearchResultInfo)}</span><div class="udex-masthead-country-selector__list-container"><div class="udex-masthead-country-selector__list-wrap" @scroll=${this.handleCountryListShadowVisible}><ul class="udex-masthead-country-selector__list udex-masthead-country-selector__list_countries" role="menu">${ repeat(this._activeCountries, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block3.call(this, context, tags, suffix, item, index)) }</ul></div></div>` : html`<span class="udex-masthead-country-selector__title">${ifDefined(this.countryTitle)}</span>${ !this.isSingleMode ? block2.call(this, context, tags, suffix) : undefined }<udex-search class="udex-masthead-country-selector__search" @ui5-handle-value-search="${ifDefined(this.handleSearch)}" @ui5-handle-value-reset="${ifDefined(this.handleSearchReset)}" @ui5-submit-search-value="${ifDefined(this.handleSearch)}" language-voice="${ifDefined(this.languageVoice)}" label="${ifDefined(this.searchLabel)}" mode="${ifDefined(this.homeSearchMode)}" ?show-voice-button="${this.showSearchVoiceButton}" non-interactive-submit-button show-submit-button></udex-search><span aria-live="polite" aria-atomic="true" class="hidden">${ifDefined(this._accSearchResultInfo)}</span><div class="udex-masthead-country-selector__list-container"><div class="udex-masthead-country-selector__list-wrap" @scroll=${this.handleCountryListShadowVisible}><ul class="udex-masthead-country-selector__list udex-masthead-country-selector__list_countries" role="menu">${ repeat(this._activeCountries, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block3.call(this, context, tags, suffix, item, index)) }</ul></div></div>`;}
|
|
10
10
|
function block2 (this: MastheadCountrySelector, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("udex-masthead-menu-item", tags, suffix)} class="udex-masthead-country-selector__region-back-item" @click="${this.backToRegions}" label="${ifDefined(this._activeRegion?.title)}" type="Button" part="menu-item" is-back icon-start></${scopeTag("udex-masthead-menu-item", tags, suffix)}>` : html`<udex-masthead-menu-item class="udex-masthead-country-selector__region-back-item" @click="${this.backToRegions}" label="${ifDefined(this._activeRegion?.title)}" type="Button" part="menu-item" is-back icon-start></udex-masthead-menu-item>`;}
|
|
11
|
-
function block3 (this: MastheadCountrySelector, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<li role="none"><${scopeTag("udex-masthead-menu-item", tags, suffix)} class="udex-masthead-country-selector__item udex-masthead-country-selector__item_countries" @click="${this.handleCountryClick}" _country-code="${ifDefined(item.countryCode)}" url="${ifDefined(item.url)}" label="${ifDefined(item.displayTitle)}" index="${index}" part="menu-item" is-nav-item></${scopeTag("udex-masthead-menu-item", tags, suffix)}></li>` : html`<li role="none"><udex-masthead-menu-item class="udex-masthead-country-selector__item udex-masthead-country-selector__item_countries" @click="${this.handleCountryClick}" _country-code="${ifDefined(item.countryCode)}" url="${ifDefined(item.url)}" label="${ifDefined(item.displayTitle)}" index="${index}" part="menu-item" is-nav-item></udex-masthead-menu-item></li>`;}
|
|
11
|
+
function block3 (this: MastheadCountrySelector, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<li role="none"><${scopeTag("udex-masthead-menu-item", tags, suffix)} class="udex-masthead-country-selector__item udex-masthead-country-selector__item_countries" @click="${this.handleCountryClick}" _country-code="${ifDefined(item.countryCode)}" ?_is-active-country="${ifDefined(item.active)}" url="${ifDefined(item.url)}" label="${ifDefined(item.displayTitle)}" index="${index}" part="menu-item" is-nav-item></${scopeTag("udex-masthead-menu-item", tags, suffix)}></li>` : html`<li role="none"><udex-masthead-menu-item class="udex-masthead-country-selector__item udex-masthead-country-selector__item_countries" @click="${this.handleCountryClick}" _country-code="${ifDefined(item.countryCode)}" ?_is-active-country="${ifDefined(item.active)}" url="${ifDefined(item.url)}" label="${ifDefined(item.displayTitle)}" index="${index}" part="menu-item" is-nav-item></udex-masthead-menu-item></li>`;}
|
|
12
12
|
function block4 (this: MastheadCountrySelector, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="udex-masthead-country-selector__title">${ifDefined(this.regionTitle)}</span><ul class="udex-masthead-country-selector__list" role="menu">${ repeat(this.regionsData, (item, index) => (item as typeof item & {_id?: any})._id || index, (item, index: number) => block5.call(this, context, tags, suffix, item, index)) }</ul>`;}
|
|
13
13
|
function block5 (this: MastheadCountrySelector, context: UI5Element, tags: string[], suffix: string | undefined, item: any, index: number) { return suffix ? html`<li role="none"><${scopeTag("udex-masthead-menu-item", tags, suffix)} id="${ifDefined(item._id)}" @click="${this.handleRegionClick}" index="${index}" class="udex-masthead-country-selector__item udex-masthead-country-selector__item_region" aria-has-popup="true" type="Button" part="menu-item" is-nav-item has-border icon-end label="${ifDefined(item.title)}"></${scopeTag("udex-masthead-menu-item", tags, suffix)}></li>` : html`<li role="none"><udex-masthead-menu-item id="${ifDefined(item._id)}" @click="${this.handleRegionClick}" index="${index}" class="udex-masthead-country-selector__item udex-masthead-country-selector__item_region" aria-has-popup="true" type="Button" part="menu-item" is-nav-item has-border icon-end label="${ifDefined(item.title)}"></udex-masthead-menu-item></li>`;}
|
|
14
14
|
|
|
@@ -9,7 +9,7 @@ function block0 (this: MastheadItem, context: UI5Element, tags: string[], suffix
|
|
|
9
9
|
function block1 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<a id="${ifDefined(this._id)}" class="${ifDefined(this.additionalClass)}" tabindex="0" role="${ifDefined(this.accessibleRoleName)}" target="${ifDefined(this.target)}" href="${ifDefined(this.href)}" aria-label="${ifDefined(this.accessibleLabel)}" aria-describedby="${ifDefined(this.ariaDescribedBy)}" @click="${this.handleItemClick}" @mousedown="${this.handleMouseDown}" @mouseup="${this.handleMouseUp}">${ this.icon ? block2.call(this, context, tags, suffix) : block3.call(this, context, tags, suffix) }</a>${ this.isTargetBlank ? block8.call(this, context, tags, suffix) : undefined }`;}
|
|
10
10
|
function block2 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("ui5-icon", tags, suffix)} class="udex-masthead-item__icon" name="${ifDefined(this.icon)}" show-tooltip="${ifDefined(this.iconAltText)}" accessible-name="${ifDefined(this.iconAltText)}" mode="Decorative"></${scopeTag("ui5-icon", tags, suffix)}>` : html`<ui5-icon class="udex-masthead-item__icon" name="${ifDefined(this.icon)}" show-tooltip="${ifDefined(this.iconAltText)}" accessible-name="${ifDefined(this.iconAltText)}" mode="Decorative"></ui5-icon>`;}
|
|
11
11
|
function block3 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.image ? block4.call(this, context, tags, suffix) : block6.call(this, context, tags, suffix) }`;}
|
|
12
|
-
function block4 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-masthead-item__image-wrap"><img class="udex-masthead-item__image" id="${ifDefined(this._id)}_image-alt" src="${ifDefined(this.image)}" alt="${ifDefined(this.imageAlt)}"/></div>${ this.imageAlt ? block5.call(this, context, tags, suffix) : undefined }`;}
|
|
12
|
+
function block4 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-masthead-item__image-wrap"><img class="udex-masthead-item__image" id="${ifDefined(this._id)}_image-alt" src="${ifDefined(this.image)}" aria-hidden="${ifDefined(this.isCountrySelectorBtn)}" alt="${ifDefined(this.imageAlt)}"/></div>${ this.imageAlt ? block5.call(this, context, tags, suffix) : undefined }`;}
|
|
13
13
|
function block5 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span id="image-desc" class="udex-masthead-hidden-text">${ifDefined(this.imageAlt)}</span>`;}
|
|
14
14
|
function block6 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="udex-masthead-item__text"><slot></slot>${ this.hasArrowDown ? block7.call(this, context, tags, suffix) : undefined }</span>`;}
|
|
15
15
|
function block7 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("ui5-icon", tags, suffix)} class="udex-masthead-item__dropdown-icon" name="slim-arrow-down" mode="Decorative"></${scopeTag("ui5-icon", tags, suffix)}>` : html`<ui5-icon class="udex-masthead-item__dropdown-icon" name="slim-arrow-down" mode="Decorative"></ui5-icon>`;}
|
|
@@ -18,7 +18,7 @@ function block9 (this: MastheadItem, context: UI5Element, tags: string[], suffix
|
|
|
18
18
|
function block10 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span id="${ifDefined(this._id)}" class="udex-masthead-item__btn ${ifDefined(this.additionalClass)}" aria-expanded="${ifDefined(this.selected)}" aria-describedby="${ifDefined(this.ariaDescribedBy)}" aria-controls="${ifDefined(this._id)}_dropdown" aria-haspopup="${ifDefined(this.hasDropdownSlot)}" aria-label="${ifDefined(this.accessibleLabel)}" @keydown="${this.handleKeyDown}" @click="${this.handleItemClick}" @mousedown="${this.handleMouseDown}" @mouseup="${this.handleMouseUp}">${ this.icon ? block11.call(this, context, tags, suffix) : block12.call(this, context, tags, suffix) }</span>${ this.isDropdownOpened ? block17.call(this, context, tags, suffix) : undefined }`;}
|
|
19
19
|
function block11 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("ui5-icon", tags, suffix)} class="udex-masthead-item__icon" name="${ifDefined(this.icon)}" show-tooltip="${ifDefined(this.iconAltText)}" accessible-name="${ifDefined(this.iconAltText)}" mode="Decorative"></${scopeTag("ui5-icon", tags, suffix)}>` : html`<ui5-icon class="udex-masthead-item__icon" name="${ifDefined(this.icon)}" show-tooltip="${ifDefined(this.iconAltText)}" accessible-name="${ifDefined(this.iconAltText)}" mode="Decorative"></ui5-icon>`;}
|
|
20
20
|
function block12 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.image ? block13.call(this, context, tags, suffix) : block15.call(this, context, tags, suffix) }`;}
|
|
21
|
-
function block13 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-masthead-item__image-wrap"><img class="udex-masthead-item__image" id="${ifDefined(this._id)}_image-alt" src="${ifDefined(this.image)}" alt="${ifDefined(this.imageAlt)}"/></div>${ this.imageAlt ? block14.call(this, context, tags, suffix) : undefined }`;}
|
|
21
|
+
function block13 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-masthead-item__image-wrap"><img class="udex-masthead-item__image" id="${ifDefined(this._id)}_image-alt" src="${ifDefined(this.image)}" aria-hidden="${ifDefined(this.isCountrySelectorBtn)}" alt="${ifDefined(this.imageAlt)}"/></div>${ this.imageAlt ? block14.call(this, context, tags, suffix) : undefined }`;}
|
|
22
22
|
function block14 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span id="image-desc" class="udex-masthead-hidden-text">${ifDefined(this.imageAlt)}</span>`;}
|
|
23
23
|
function block15 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="udex-masthead-item__text"><slot></slot>${ this.hasArrowDown ? block16.call(this, context, tags, suffix) : undefined }</span>`;}
|
|
24
24
|
function block16 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("ui5-icon", tags, suffix)} class="udex-masthead-item__dropdown-icon" name="slim-arrow-down" mode="Decorative"></${scopeTag("ui5-icon", tags, suffix)}>` : html`<ui5-icon class="udex-masthead-item__dropdown-icon" name="slim-arrow-down" mode="Decorative"></ui5-icon>`;}
|
|
@@ -26,7 +26,7 @@ function block17 (this: MastheadItem, context: UI5Element, tags: string[], suffi
|
|
|
26
26
|
function block18 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<button role="${ifDefined(this.accessibleRoleName)}" id="${ifDefined(this._id)}" class="udex-masthead-item__btn ${ifDefined(this.additionalClass)}" aria-expanded="${ifDefined(this.buttonAriaExpanded)}" aria-controls="${ifDefined(this._id)}_dropdown" aria-describedby="${ifDefined(this.ariaDescribedBy)}" aria-haspopup="${ifDefined(this.hasDropdownSlot)}" aria-label="${ifDefined(this.accessibleLabel)}" @keydown="${this.handleKeyDown}" @mousedown="${this.handleMouseDown}" @mouseup="${this.handleMouseUp}" @click="${this.handleItemClick}">${ this.icon ? block19.call(this, context, tags, suffix) : block20.call(this, context, tags, suffix) }</button>${ this.isDropdownOpened ? block25.call(this, context, tags, suffix) : undefined }`;}
|
|
27
27
|
function block19 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("ui5-icon", tags, suffix)} class="udex-masthead-item__icon" name="${ifDefined(this.icon)}" show-tooltip="${ifDefined(this.iconAltText)}" accessible-name="${ifDefined(this.iconAltText)}" mode="Decorative"></${scopeTag("ui5-icon", tags, suffix)}>` : html`<ui5-icon class="udex-masthead-item__icon" name="${ifDefined(this.icon)}" show-tooltip="${ifDefined(this.iconAltText)}" accessible-name="${ifDefined(this.iconAltText)}" mode="Decorative"></ui5-icon>`;}
|
|
28
28
|
function block20 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.image ? block21.call(this, context, tags, suffix) : block23.call(this, context, tags, suffix) }`;}
|
|
29
|
-
function block21 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-masthead-item__image-wrap"><img class="udex-masthead-item__image" id="${ifDefined(this._id)}_image-alt" src="${ifDefined(this.image)}" alt="${ifDefined(this.imageAlt)}"/></div>${ this.imageAlt ? block22.call(this, context, tags, suffix) : undefined }`;}
|
|
29
|
+
function block21 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-masthead-item__image-wrap"><img class="udex-masthead-item__image" id="${ifDefined(this._id)}_image-alt" src="${ifDefined(this.image)}" aria-hidden="${ifDefined(this.isCountrySelectorBtn)}" alt="${ifDefined(this.imageAlt)}"/></div>${ this.imageAlt ? block22.call(this, context, tags, suffix) : undefined }`;}
|
|
30
30
|
function block22 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span id="image-desc" class="udex-masthead-hidden-text">${ifDefined(this.imageAlt)}</span>`;}
|
|
31
31
|
function block23 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="udex-masthead-item__text"><slot></slot>${ this.hasArrowDown ? block24.call(this, context, tags, suffix) : undefined }</span>`;}
|
|
32
32
|
function block24 (this: MastheadItem, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag("ui5-icon", tags, suffix)} class="udex-masthead-item__dropdown-icon" name="slim-arrow-down" mode="Decorative"></${scopeTag("ui5-icon", tags, suffix)}>` : html`<ui5-icon class="udex-masthead-item__dropdown-icon" name="slim-arrow-down" mode="Decorative"></ui5-icon>`;}
|