@sapudex/web-components 0.226.2 → 0.228.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/dist/Button.d.ts +1 -1
- package/dist/Button.js +0 -2
- package/dist/Button.js.map +1 -1
- package/dist/MastheadShell.d.ts +4 -1
- package/dist/MastheadShell.js +21 -5
- package/dist/MastheadShell.js.map +1 -1
- package/dist/Pagination.d.ts +16 -0
- package/dist/Pagination.js +28 -6
- package/dist/Pagination.js.map +1 -1
- package/dist/PhoneNumberField.d.ts +5 -5
- package/dist/PhoneNumberField.js +1 -1
- package/dist/PhoneNumberField.js.map +1 -1
- package/dist/SearchableListBase.d.ts +9 -0
- package/dist/SearchableListBase.js +10 -2
- package/dist/SearchableListBase.js.map +1 -1
- package/dist/Wizard.d.ts +20 -0
- package/dist/Wizard.js +21 -6
- package/dist/Wizard.js.map +1 -1
- package/dist/assets/{bundle.esm-8390abc2.js → bundle.esm-ed96d940.js} +192 -192
- package/dist/css/themes/Button.css +1 -1
- package/dist/css/themes/MastheadCountrySelector.css +1 -1
- package/dist/css/themes/MastheadItem.css +1 -1
- package/dist/css/themes/MastheadShell.css +1 -1
- package/dist/css/themes/Modal.css +1 -1
- package/dist/css/themes/Pagination.css +1 -1
- package/dist/css/themes/RatingIndicator.css +1 -1
- package/dist/css/themes/Slider.css +1 -1
- package/dist/custom-elements-internal.json +186 -84
- package/dist/custom-elements.json +181 -83
- package/dist/data/CountryListISO3166.d.ts +13 -4
- package/dist/data/CountryListISO3166.js +8 -0
- package/dist/data/CountryListISO3166.js.map +1 -1
- package/dist/generated/templates/PaginationTemplate.lit.js +3 -3
- package/dist/generated/templates/PaginationTemplate.lit.js.map +1 -1
- package/dist/generated/templates/PhoneNumberFieldTemplate.lit.js +2 -2
- package/dist/generated/templates/PhoneNumberFieldTemplate.lit.js.map +1 -1
- package/dist/generated/templates/WizardTemplate.lit.js +5 -3
- package/dist/generated/templates/WizardTemplate.lit.js.map +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/MastheadCountrySelector.css.js +1 -1
- package/dist/generated/themes/MastheadCountrySelector.css.js.map +1 -1
- package/dist/generated/themes/MastheadItem.css.js +1 -1
- package/dist/generated/themes/MastheadItem.css.js.map +1 -1
- package/dist/generated/themes/MastheadShell.css.js +1 -1
- package/dist/generated/themes/MastheadShell.css.js.map +1 -1
- package/dist/generated/themes/Modal.css.js +1 -1
- package/dist/generated/themes/Modal.css.js.map +1 -1
- package/dist/generated/themes/Pagination.css.js +1 -1
- package/dist/generated/themes/Pagination.css.js.map +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.js +1 -1
- package/dist/generated/themes/Slider.css.js.map +1 -1
- package/dist/vscode.html-custom-data.json +25 -5
- package/dist/web-types.json +41 -11
- package/package.json +1 -1
- package/src/Button.ts +1 -3
- package/src/MastheadShell.ts +25 -5
- package/src/Pagination.hbs +11 -5
- package/src/Pagination.ts +42 -5
- package/src/PhoneNumberField.hbs +1 -1
- package/src/PhoneNumberField.ts +7 -2
- package/src/SearchableListBase.ts +18 -2
- package/src/Wizard.hbs +9 -1
- package/src/Wizard.ts +39 -7
- package/src/data/CountryListISO3166.ts +10 -2
- package/src/generated/templates/PaginationTemplate.lit.ts +3 -3
- package/src/generated/templates/PhoneNumberFieldTemplate.lit.ts +1 -1
- package/src/generated/templates/WizardTemplate.lit.ts +5 -3
- package/src/generated/themes/Button.css.ts +1 -1
- package/src/generated/themes/MastheadCountrySelector.css.ts +1 -1
- package/src/generated/themes/MastheadItem.css.ts +1 -1
- package/src/generated/themes/MastheadShell.css.ts +1 -1
- package/src/generated/themes/Modal.css.ts +1 -1
- package/src/generated/themes/Pagination.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/Button.css +96 -168
- package/src/themes/MastheadCountrySelector.css +8 -5
- package/src/themes/MastheadItem.css +12 -4
- package/src/themes/MastheadShell.css +3 -1
- package/src/themes/Modal.css +4 -0
- package/src/themes/Pagination.css +17 -3
- package/dist/generated/templates/ButtonTemplate.lit.d.ts +0 -4
- package/dist/generated/templates/ButtonTemplate.lit.js +0 -7
- package/dist/generated/templates/ButtonTemplate.lit.js.map +0 -1
- package/src/Button.hbs +0 -50
- package/src/generated/templates/ButtonTemplate.lit.ts +0 -12
|
@@ -3,7 +3,7 @@ import defaultThemeBase from "@ui5/webcomponents-theming/dist/generated/themes/s
|
|
|
3
3
|
import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
|
|
4
4
|
registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
|
|
5
5
|
registerThemePropertiesLoader("@sapudex/web-components", "sap_horizon", async () => defaultTheme);
|
|
6
|
-
const styleData = { packageName: "@sapudex/web-components", fileName: "themes/RatingIndicator.css.ts", content: `: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)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-
|
|
6
|
+
const styleData = { packageName: "@sapudex/web-components", fileName: "themes/RatingIndicator.css.ts", content: `: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)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-228-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{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-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.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)}
|
|
7
7
|
` };
|
|
8
8
|
export default styleData;
|
|
9
9
|
//# sourceMappingURL=RatingIndicator.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingIndicator.css.js","sourceRoot":"","sources":["../../../src/generated/themes/RatingIndicator.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,yBAAyB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAElG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,yBAAyB,EAAC,QAAQ,EAAC,+BAA+B,EAAC,OAAO,EAAC;CACpH,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { 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(\"@sapudex/web-components\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@sapudex/web-components\",fileName:\"themes/RatingIndicator.css.ts\",content:`: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)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-
|
|
1
|
+
{"version":3,"file":"RatingIndicator.css.js","sourceRoot":"","sources":["../../../src/generated/themes/RatingIndicator.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,yBAAyB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAElG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,yBAAyB,EAAC,QAAQ,EAAC,+BAA+B,EAAC,OAAO,EAAC;CACpH,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { 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(\"@sapudex/web-components\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@sapudex/web-components\",fileName:\"themes/RatingIndicator.css.ts\",content:`: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)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-228-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{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-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.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)}\n`};\nexport default styleData;\n\t"]}
|
|
@@ -3,7 +3,7 @@ import defaultThemeBase from "@ui5/webcomponents-theming/dist/generated/themes/s
|
|
|
3
3
|
import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
|
|
4
4
|
registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
|
|
5
5
|
registerThemePropertiesLoader("@sapudex/web-components", "sap_horizon", async () => defaultTheme);
|
|
6
|
-
const styleData = { packageName: "@sapudex/web-components", fileName: "themes/Slider.css.ts", content: `: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, .5rem)}: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)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-
|
|
6
|
+
const styleData = { packageName: "@sapudex/web-components", fileName: "themes/Slider.css.ts", content: `: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, .5rem)}: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)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-228-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)}
|
|
7
7
|
` };
|
|
8
8
|
export default styleData;
|
|
9
9
|
//# sourceMappingURL=Slider.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Slider.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,yBAAyB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAElG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,yBAAyB,EAAC,QAAQ,EAAC,sBAAsB,EAAC,OAAO,EAAC;CAC3G,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { 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(\"@sapudex/web-components\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@sapudex/web-components\",fileName:\"themes/Slider.css.ts\",content:`: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, .5rem)}: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)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-
|
|
1
|
+
{"version":3,"file":"Slider.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Slider.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,yBAAyB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAElG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,yBAAyB,EAAC,QAAQ,EAAC,sBAAsB,EAAC,OAAO,EAAC;CAC3G,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { 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(\"@sapudex/web-components\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@sapudex/web-components\",fileName:\"themes/Slider.css.ts\",content:`: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, .5rem)}: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)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-228-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)}\n`};\nexport default styleData;\n\t"]}
|
|
@@ -207,11 +207,6 @@
|
|
|
207
207
|
"description": "Defines if button is in toggled state",
|
|
208
208
|
"values": []
|
|
209
209
|
},
|
|
210
|
-
{
|
|
211
|
-
"name": "_aria-disabled",
|
|
212
|
-
"description": "Defines if button has pseudo aria-disabled state",
|
|
213
|
-
"values": []
|
|
214
|
-
},
|
|
215
210
|
{
|
|
216
211
|
"name": "design",
|
|
217
212
|
"description": "Defines the component design.",
|
|
@@ -351,6 +346,11 @@
|
|
|
351
346
|
"values": []
|
|
352
347
|
},
|
|
353
348
|
{ "name": "hide-flag-images", "values": [] },
|
|
349
|
+
{
|
|
350
|
+
"name": "show-search-input",
|
|
351
|
+
"description": "Defines if the search input is visible.",
|
|
352
|
+
"values": []
|
|
353
|
+
},
|
|
354
354
|
{
|
|
355
355
|
"name": "busy",
|
|
356
356
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -642,6 +642,11 @@
|
|
|
642
642
|
"description": "Allows setting a custom role for dropdown trigger.",
|
|
643
643
|
"values": []
|
|
644
644
|
},
|
|
645
|
+
{
|
|
646
|
+
"name": "show-search-input",
|
|
647
|
+
"description": "Defines if the search input is visible.",
|
|
648
|
+
"values": []
|
|
649
|
+
},
|
|
645
650
|
{
|
|
646
651
|
"name": "busy",
|
|
647
652
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -2383,6 +2388,11 @@
|
|
|
2383
2388
|
"name": "udex-searchable-list-base",
|
|
2384
2389
|
"description": "A class to serve as a foundation\nfor the <code>UDExFilterMenu</code> , <code>UDExSelectBox</code> and <code>UDExCountrySelector/code> classes.\n\n\n---\n\n\n\n\n### **Events:**\n - **selection-change** - \n- **select-all** - Fired event when the user clicks on the Select All header.\n- **submit-search** - Fired event when the user clicks on the submitted icon in the search.\n- **reset-search** - Fired event when the user clicks on the reset button in the search.\n- **change-search** - Fired event when the user submitted the value in the search.\n\n### **Methods:**\n - **resetSearch()** - Reset the search value.\n\n### **Slots:**\n - **default** - Slot for items.",
|
|
2385
2390
|
"attributes": [
|
|
2391
|
+
{
|
|
2392
|
+
"name": "show-search-input",
|
|
2393
|
+
"description": "Defines if the search input is visible.",
|
|
2394
|
+
"values": []
|
|
2395
|
+
},
|
|
2386
2396
|
{
|
|
2387
2397
|
"name": "busy",
|
|
2388
2398
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -2658,6 +2668,11 @@
|
|
|
2658
2668
|
{ "name": "Bottom" }
|
|
2659
2669
|
]
|
|
2660
2670
|
},
|
|
2671
|
+
{
|
|
2672
|
+
"name": "show-search-input",
|
|
2673
|
+
"description": "Defines if the search input is visible.",
|
|
2674
|
+
"values": []
|
|
2675
|
+
},
|
|
2661
2676
|
{
|
|
2662
2677
|
"name": "busy",
|
|
2663
2678
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -3902,6 +3917,11 @@
|
|
|
3902
3917
|
"name": "indeterminate",
|
|
3903
3918
|
"description": "Defines whether the component has unknown number of steps.",
|
|
3904
3919
|
"values": []
|
|
3920
|
+
},
|
|
3921
|
+
{
|
|
3922
|
+
"name": "accessible-name",
|
|
3923
|
+
"description": "Defines aria-label of the wizard, read by screen readers with the first step.",
|
|
3924
|
+
"values": []
|
|
3905
3925
|
}
|
|
3906
3926
|
],
|
|
3907
3927
|
"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": "0.
|
|
4
|
+
"version": "0.228.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -447,11 +447,6 @@
|
|
|
447
447
|
"description": "Defines if button is in toggled state",
|
|
448
448
|
"value": { "type": "boolean", "default": "false" }
|
|
449
449
|
},
|
|
450
|
-
{
|
|
451
|
-
"name": "_aria-disabled",
|
|
452
|
-
"description": "Defines if button has pseudo aria-disabled state",
|
|
453
|
-
"value": { "type": "boolean", "default": "false" }
|
|
454
|
-
},
|
|
455
450
|
{
|
|
456
451
|
"name": "design",
|
|
457
452
|
"description": "Defines the component design.",
|
|
@@ -474,11 +469,6 @@
|
|
|
474
469
|
"description": "Defines if button is in toggled state",
|
|
475
470
|
"value": { "type": "boolean" }
|
|
476
471
|
},
|
|
477
|
-
{
|
|
478
|
-
"name": "_aria-disabled",
|
|
479
|
-
"description": "Defines if button has pseudo aria-disabled state",
|
|
480
|
-
"value": { "type": "boolean" }
|
|
481
|
-
},
|
|
482
472
|
{
|
|
483
473
|
"name": "design",
|
|
484
474
|
"description": "Defines the component design.",
|
|
@@ -650,6 +640,11 @@
|
|
|
650
640
|
"name": "hide-flag-images",
|
|
651
641
|
"value": { "type": "boolean | undefined" }
|
|
652
642
|
},
|
|
643
|
+
{
|
|
644
|
+
"name": "show-search-input",
|
|
645
|
+
"description": "Defines if the search input is visible.",
|
|
646
|
+
"value": { "type": "boolean", "default": "false" }
|
|
647
|
+
},
|
|
653
648
|
{
|
|
654
649
|
"name": "busy",
|
|
655
650
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -797,6 +792,11 @@
|
|
|
797
792
|
"name": "hide-flag-images",
|
|
798
793
|
"value": { "type": "boolean | undefined" }
|
|
799
794
|
},
|
|
795
|
+
{
|
|
796
|
+
"name": "show-search-input",
|
|
797
|
+
"description": "Defines if the search input is visible.",
|
|
798
|
+
"value": { "type": "boolean" }
|
|
799
|
+
},
|
|
800
800
|
{
|
|
801
801
|
"name": "busy",
|
|
802
802
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -1304,6 +1304,11 @@
|
|
|
1304
1304
|
"description": "Allows setting a custom role for dropdown trigger.",
|
|
1305
1305
|
"value": { "type": "string", "default": "\"combobox\"" }
|
|
1306
1306
|
},
|
|
1307
|
+
{
|
|
1308
|
+
"name": "show-search-input",
|
|
1309
|
+
"description": "Defines if the search input is visible.",
|
|
1310
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1311
|
+
},
|
|
1307
1312
|
{
|
|
1308
1313
|
"name": "busy",
|
|
1309
1314
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -1476,6 +1481,11 @@
|
|
|
1476
1481
|
"description": "Allows setting a custom role for dropdown trigger.",
|
|
1477
1482
|
"value": { "type": "string" }
|
|
1478
1483
|
},
|
|
1484
|
+
{
|
|
1485
|
+
"name": "show-search-input",
|
|
1486
|
+
"description": "Defines if the search input is visible.",
|
|
1487
|
+
"value": { "type": "boolean" }
|
|
1488
|
+
},
|
|
1479
1489
|
{
|
|
1480
1490
|
"name": "busy",
|
|
1481
1491
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -5472,6 +5482,11 @@
|
|
|
5472
5482
|
"default": "\"Bottom\""
|
|
5473
5483
|
}
|
|
5474
5484
|
},
|
|
5485
|
+
{
|
|
5486
|
+
"name": "show-search-input",
|
|
5487
|
+
"description": "Defines if the search input is visible.",
|
|
5488
|
+
"value": { "type": "boolean", "default": "false" }
|
|
5489
|
+
},
|
|
5475
5490
|
{
|
|
5476
5491
|
"name": "busy",
|
|
5477
5492
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -5609,6 +5624,11 @@
|
|
|
5609
5624
|
"type": "\"Left\" | \"Right\" | \"Top\" | \"Bottom\""
|
|
5610
5625
|
}
|
|
5611
5626
|
},
|
|
5627
|
+
{
|
|
5628
|
+
"name": "show-search-input",
|
|
5629
|
+
"description": "Defines if the search input is visible.",
|
|
5630
|
+
"value": { "type": "boolean" }
|
|
5631
|
+
},
|
|
5612
5632
|
{
|
|
5613
5633
|
"name": "busy",
|
|
5614
5634
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -8119,6 +8139,11 @@
|
|
|
8119
8139
|
"name": "indeterminate",
|
|
8120
8140
|
"description": "Defines whether the component has unknown number of steps.",
|
|
8121
8141
|
"value": { "type": "boolean", "default": "false" }
|
|
8142
|
+
},
|
|
8143
|
+
{
|
|
8144
|
+
"name": "accessible-name",
|
|
8145
|
+
"description": "Defines aria-label of the wizard, read by screen readers with the first step.",
|
|
8146
|
+
"value": { "type": "string" }
|
|
8122
8147
|
}
|
|
8123
8148
|
],
|
|
8124
8149
|
"events": [],
|
|
@@ -8128,6 +8153,11 @@
|
|
|
8128
8153
|
"name": "indeterminate",
|
|
8129
8154
|
"description": "Defines whether the component has unknown number of steps.",
|
|
8130
8155
|
"value": { "type": "boolean" }
|
|
8156
|
+
},
|
|
8157
|
+
{
|
|
8158
|
+
"name": "accessible-name",
|
|
8159
|
+
"description": "Defines aria-label of the wizard, read by screen readers with the first step.",
|
|
8160
|
+
"value": { "type": "string" }
|
|
8131
8161
|
}
|
|
8132
8162
|
],
|
|
8133
8163
|
"events": []
|
package/package.json
CHANGED
package/src/Button.ts
CHANGED
|
@@ -7,7 +7,6 @@ import I18nBundle, { I18nText, getI18nBundle } from "@ui5/webcomponents-base/dis
|
|
|
7
7
|
import {
|
|
8
8
|
BUTTON_ARIA_ATTENTION, BUTTON_ARIA_DEFAULT, BUTTON_ARIA_EMPHASIZED, BUTTON_ARIA_TRANSPARENT, BUTTON_ARIA_TYPE_NEGATIVE, BUTTON_ARIA_TYPE_POSITIVE, BUTTON_ARIA_TYPE_PRIMARY, BUTTON_ARIA_TYPE_SECONDARY, BUTTON_ARIA_TYPE_TERTIARY, BUTTON_ARIA_TYPE_WARNING, TOGGLED,
|
|
9
9
|
} from "./generated/i18n/i18n-defaults.js";
|
|
10
|
-
import ButtonTemplate from "./generated/templates/ButtonTemplate.lit.js";
|
|
11
10
|
|
|
12
11
|
// Styles
|
|
13
12
|
import ButtonCss from "./generated/themes/Button.css";
|
|
@@ -39,7 +38,6 @@ export enum UDExButtonDesign {
|
|
|
39
38
|
tag: "udex-button",
|
|
40
39
|
renderer: litRender,
|
|
41
40
|
styles: [Button.styles, ButtonCss],
|
|
42
|
-
template: ButtonTemplate,
|
|
43
41
|
})
|
|
44
42
|
class UDExButton extends Button {
|
|
45
43
|
/**
|
|
@@ -66,7 +64,7 @@ class UDExButton extends Button {
|
|
|
66
64
|
* Defines if button has pseudo aria-disabled state
|
|
67
65
|
*
|
|
68
66
|
* @default false
|
|
69
|
-
* @
|
|
67
|
+
* @private
|
|
70
68
|
*/
|
|
71
69
|
@property({ type: Boolean })
|
|
72
70
|
_ariaDisabled!: boolean;
|
package/src/MastheadShell.ts
CHANGED
|
@@ -375,6 +375,12 @@ class UDExMastheadShell extends UI5Element {
|
|
|
375
375
|
this._handleResizeBound = this._handleResize.bind(this);
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
+
onBeforeRendering() {
|
|
379
|
+
if (this.isMobileMenuMode) {
|
|
380
|
+
this.setMobileMenuHeight();
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
378
384
|
onAfterRendering() {
|
|
379
385
|
this._rootHolder = this.mastheadHolder;
|
|
380
386
|
this._searchOpener = this.searchOpener;
|
|
@@ -402,7 +408,7 @@ class UDExMastheadShell extends UI5Element {
|
|
|
402
408
|
this.handleMobileMode();
|
|
403
409
|
}
|
|
404
410
|
|
|
405
|
-
if (this.
|
|
411
|
+
if (this.isAtMostBreakpointSizeM) {
|
|
406
412
|
this._isSearchOpened = false;
|
|
407
413
|
}
|
|
408
414
|
|
|
@@ -412,6 +418,10 @@ class UDExMastheadShell extends UI5Element {
|
|
|
412
418
|
return;
|
|
413
419
|
}
|
|
414
420
|
|
|
421
|
+
if (this.isMobileMenuMode) {
|
|
422
|
+
this.setMobileMenuHeight();
|
|
423
|
+
}
|
|
424
|
+
|
|
415
425
|
this._shouldHandleResize = true;
|
|
416
426
|
}
|
|
417
427
|
|
|
@@ -701,6 +711,12 @@ class UDExMastheadShell extends UI5Element {
|
|
|
701
711
|
});
|
|
702
712
|
}
|
|
703
713
|
|
|
714
|
+
setMobileMenuHeight(): void {
|
|
715
|
+
const mastheadHeight = parseInt(window.getComputedStyle(this).getPropertyValue("--udex-masthead-shell-height"));
|
|
716
|
+
const mobileMenuHeight = `${window.innerHeight - mastheadHeight}px`;
|
|
717
|
+
this.style.setProperty("--udex-masthead-shell-mobile-menu-height", mobileMenuHeight);
|
|
718
|
+
}
|
|
719
|
+
|
|
704
720
|
removeMobileMode(): void {
|
|
705
721
|
this._isMobileMode = false;
|
|
706
722
|
this.slottedItems.forEach((item: MastheadSlottedItem) => {
|
|
@@ -723,7 +739,7 @@ class UDExMastheadShell extends UI5Element {
|
|
|
723
739
|
*/
|
|
724
740
|
openSearch(): void {
|
|
725
741
|
const shouldPreventOpeningSearch = this._isSearchOpened
|
|
726
|
-
|| (this.
|
|
742
|
+
|| (this.isAtMostBreakpointSizeM && !this.showSearchByDefault)
|
|
727
743
|
|| this._isMobileMode
|
|
728
744
|
|| (this.isAtLeastBreakpointSizeM && this.showSearchByDefault);
|
|
729
745
|
|
|
@@ -746,7 +762,7 @@ class UDExMastheadShell extends UI5Element {
|
|
|
746
762
|
* @public
|
|
747
763
|
*/
|
|
748
764
|
openMobileMenu(): void {
|
|
749
|
-
if (!this._isMobileMenuOpen &&
|
|
765
|
+
if (!this._isMobileMenuOpen && this.isMobileMenuMode) {
|
|
750
766
|
this.mobileBtn?.handleSelectedChange();
|
|
751
767
|
this.handleOpenMobileMenu();
|
|
752
768
|
}
|
|
@@ -861,7 +877,7 @@ class UDExMastheadShell extends UI5Element {
|
|
|
861
877
|
return !!this.mobileMenu.length;
|
|
862
878
|
}
|
|
863
879
|
|
|
864
|
-
get
|
|
880
|
+
get isAtMostBreakpointSizeM(): boolean {
|
|
865
881
|
return BreakpointUtils.isAtMost("M");
|
|
866
882
|
}
|
|
867
883
|
|
|
@@ -869,6 +885,10 @@ class UDExMastheadShell extends UI5Element {
|
|
|
869
885
|
return BreakpointUtils.isAtLeast("M");
|
|
870
886
|
}
|
|
871
887
|
|
|
888
|
+
get isMobileMenuMode(): boolean {
|
|
889
|
+
return this._isMobileMode || this.isAtMostBreakpointSizeM;
|
|
890
|
+
}
|
|
891
|
+
|
|
872
892
|
get isMainMenuVisible(): boolean {
|
|
873
893
|
return !this.showSearchByDefault && !this._isSearchOpened;
|
|
874
894
|
}
|
|
@@ -878,7 +898,7 @@ class UDExMastheadShell extends UI5Element {
|
|
|
878
898
|
}
|
|
879
899
|
|
|
880
900
|
get shouldHandleMobileView(): boolean {
|
|
881
|
-
return !this.
|
|
901
|
+
return !this.isAtMostBreakpointSizeM && !this.showSearchByDefault;
|
|
882
902
|
}
|
|
883
903
|
|
|
884
904
|
get mainNavigationAriaLabel(): string {
|
package/src/Pagination.hbs
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
{{#if absoluteNavigation}}
|
|
5
5
|
<li class="udex-pagination__item--first udex-pagination__item">
|
|
6
6
|
<udex-button
|
|
7
|
-
|
|
7
|
+
aria-disabled="{{effectivePrevButtonDisabled}}"
|
|
8
|
+
?_aria-disabled="{{_prevButtonPseudoDisabled}}"
|
|
8
9
|
accessible-name="{{firstPageAccessibleName}}"
|
|
9
10
|
size="Large"
|
|
10
11
|
icon="close-command-field"
|
|
@@ -15,13 +16,15 @@
|
|
|
15
16
|
{{/if}}
|
|
16
17
|
<li class="udex-pagination__item--prev udex-pagination__item">
|
|
17
18
|
<udex-button
|
|
18
|
-
|
|
19
|
+
aria-disabled="{{effectivePrevButtonDisabled}}"
|
|
20
|
+
?_aria-disabled="{{_prevButtonPseudoDisabled}}"
|
|
19
21
|
accessible-name="{{previousPageAccessibleName}}"
|
|
20
22
|
tooltip="{{previousBtnTooltip}}"
|
|
21
23
|
size="Large"
|
|
22
24
|
icon="navigation-left-arrow"
|
|
23
25
|
design="Tertiary"
|
|
24
26
|
@click="{{setPrevPage}}"
|
|
27
|
+
@focusout="{{handlePrevFocusOut}}"
|
|
25
28
|
></udex-button>
|
|
26
29
|
</li>
|
|
27
30
|
{{#if typeFull}}
|
|
@@ -29,7 +32,7 @@
|
|
|
29
32
|
<li class="udex-pagination__item">
|
|
30
33
|
<a class="udex-pagination__page" href="#"
|
|
31
34
|
aria-label="{{accessibleName}}"
|
|
32
|
-
@click="{{../onPageClick}}"
|
|
35
|
+
@click="{{../onPageClick}}"
|
|
33
36
|
?active="{{active}}"
|
|
34
37
|
aria-current="{{ariaCurrent}}"
|
|
35
38
|
index="{{index}}">
|
|
@@ -47,19 +50,22 @@
|
|
|
47
50
|
{{/if}}
|
|
48
51
|
<li class="udex-pagination__item--next udex-pagination__item">
|
|
49
52
|
<udex-button
|
|
50
|
-
|
|
53
|
+
aria-disabled="{{effectiveNextButtonDisabled}}"
|
|
54
|
+
?_aria-disabled="{{_nextButtonPseudoDisabled}}"
|
|
51
55
|
tooltip="{{nextBtnTooltip}}"
|
|
52
56
|
accessible-name="{{nextPageAccessibleName}}"
|
|
53
57
|
size="Large"
|
|
54
58
|
icon="navigation-right-arrow"
|
|
55
59
|
design="Tertiary"
|
|
56
60
|
@click="{{setNextPage}}"
|
|
61
|
+
@focusout="{{handleNextFocusOut}}"
|
|
57
62
|
></udex-button>
|
|
58
63
|
</li>
|
|
59
64
|
{{#if absoluteNavigation}}
|
|
60
65
|
<li class="udex-pagination__item--last udex-pagination__item">
|
|
61
66
|
<udex-button
|
|
62
|
-
|
|
67
|
+
aria-disabled="{{effectiveNextButtonDisabled}}"
|
|
68
|
+
?_aria-disabled="{{_nextButtonPseudoDisabled}}"
|
|
63
69
|
accessible-name="{{lastPageAccessibleName}}"
|
|
64
70
|
size="Large"
|
|
65
71
|
icon="open-command-field"
|
package/src/Pagination.ts
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
PREVIOUS_PAGE,
|
|
18
18
|
NEXT_PAGE,
|
|
19
19
|
CURRENT_PAGE,
|
|
20
|
+
DISABLED,
|
|
20
21
|
} from "./generated/i18n/i18n-defaults.js";
|
|
21
22
|
import Button from "./Button.js";
|
|
22
23
|
import "@ui5/webcomponents/dist/Icon.js";
|
|
@@ -129,6 +130,22 @@ class UDExPagination extends UI5Element {
|
|
|
129
130
|
@property({ type: String })
|
|
130
131
|
_direction?: string;
|
|
131
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Defines if the previous button is in pseudo-disabled.
|
|
135
|
+
*
|
|
136
|
+
* @private
|
|
137
|
+
*/
|
|
138
|
+
@property({ type: Boolean })
|
|
139
|
+
_nextButtonPseudoDisabled!: boolean;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Defines if the previous button is in pseudo-disabled.
|
|
143
|
+
*
|
|
144
|
+
* @private
|
|
145
|
+
*/
|
|
146
|
+
@property({ type: Boolean })
|
|
147
|
+
_prevButtonPseudoDisabled!: boolean;
|
|
148
|
+
|
|
132
149
|
_pages: Page[];
|
|
133
150
|
_visiblePages: Page[];
|
|
134
151
|
|
|
@@ -235,10 +252,11 @@ class UDExPagination extends UI5Element {
|
|
|
235
252
|
|
|
236
253
|
get previousPageAccessibleName(): string {
|
|
237
254
|
const currentPageText = `${UDExPagination.i18nBundle.getText(CURRENT_PAGE)} ${this.currentPageIndex + 1}.`;
|
|
238
|
-
if (this.
|
|
239
|
-
|
|
255
|
+
if (this._prevButtonPseudoDisabled || this.prevButtonDisabled) {
|
|
256
|
+
const effectiveDisabledText = this._prevButtonPseudoDisabled ? `${UDExPagination.i18nBundle.getText(DISABLED)}` : "";
|
|
257
|
+
return `${currentPageText} ${UDExPagination.i18nBundle.getText(PREVIOUS_PAGE)} ${effectiveDisabledText}`;
|
|
240
258
|
}
|
|
241
|
-
return `${currentPageText}
|
|
259
|
+
return `${currentPageText} ${UDExPagination.i18nBundle.getText(PREVIOUS_PAGE)}. ${this.activatePageAccessibleText} ${this.currentPageIndex}`;
|
|
242
260
|
}
|
|
243
261
|
|
|
244
262
|
get previousBtnTooltip(): string {
|
|
@@ -247,8 +265,9 @@ class UDExPagination extends UI5Element {
|
|
|
247
265
|
|
|
248
266
|
get nextPageAccessibleName(): string {
|
|
249
267
|
const currentPageText = `${UDExPagination.i18nBundle.getText(CURRENT_PAGE)} ${this.currentPageIndex + 1}.`;
|
|
250
|
-
if (this.
|
|
251
|
-
|
|
268
|
+
if (this._nextButtonPseudoDisabled || this.nextButtonDisabled) {
|
|
269
|
+
const effectiveDisabledText = this._nextButtonPseudoDisabled ? `${UDExPagination.i18nBundle.getText(DISABLED)}` : "";
|
|
270
|
+
return `${currentPageText} ${UDExPagination.i18nBundle.getText(NEXT_PAGE)} ${effectiveDisabledText}`;
|
|
252
271
|
}
|
|
253
272
|
return `${currentPageText} ${UDExPagination.i18nBundle.getText(NEXT_PAGE)}. ${this.activatePageAccessibleText} ${this.currentPageIndex + 2}`;
|
|
254
273
|
}
|
|
@@ -288,6 +307,22 @@ class UDExPagination extends UI5Element {
|
|
|
288
307
|
UDExPagination.i18nBundle = await getI18nBundle("@sapudex/web-components");
|
|
289
308
|
}
|
|
290
309
|
|
|
310
|
+
get effectivePrevButtonDisabled(): boolean {
|
|
311
|
+
return !this._prevButtonPseudoDisabled && this.prevButtonDisabled;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
get effectiveNextButtonDisabled(): boolean {
|
|
315
|
+
return !this._nextButtonPseudoDisabled && this.nextButtonDisabled;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
handlePrevFocusOut(): void {
|
|
319
|
+
this._prevButtonPseudoDisabled = false;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
handleNextFocusOut(): void {
|
|
323
|
+
this._nextButtonPseudoDisabled = false;
|
|
324
|
+
}
|
|
325
|
+
|
|
291
326
|
setActive(element: HTMLElement): void {
|
|
292
327
|
const pageIndex = element.getAttribute("index")
|
|
293
328
|
? parseInt(element.getAttribute("index") || "")
|
|
@@ -310,6 +345,7 @@ class UDExPagination extends UI5Element {
|
|
|
310
345
|
|
|
311
346
|
this.currentPageIndex = currentPage + 1;
|
|
312
347
|
this._pageFocusedManually = false;
|
|
348
|
+
this._nextButtonPseudoDisabled = this.currentPageIndex === (this.pages - 1);
|
|
313
349
|
|
|
314
350
|
this.emitChangeEvent();
|
|
315
351
|
}
|
|
@@ -322,6 +358,7 @@ class UDExPagination extends UI5Element {
|
|
|
322
358
|
}
|
|
323
359
|
this.currentPageIndex -= 1;
|
|
324
360
|
this._pageFocusedManually = false;
|
|
361
|
+
this._prevButtonPseudoDisabled = this.currentPageIndex === 0;
|
|
325
362
|
|
|
326
363
|
this.emitChangeEvent();
|
|
327
364
|
}
|
package/src/PhoneNumberField.hbs
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<img
|
|
69
69
|
class="udex-phone-number-field__flag"
|
|
70
70
|
aria-label="{{selectedCountryName}}"
|
|
71
|
-
style="{{selectedFlagBackgroundPosition}}">
|
|
71
|
+
style="background-position-x: {{selectedFlagBackgroundPosition.x}}; background-position-y: {{selectedFlagBackgroundPosition.y}}">
|
|
72
72
|
</div>
|
|
73
73
|
</udex-button>
|
|
74
74
|
{{/unless}}
|
package/src/PhoneNumberField.ts
CHANGED
|
@@ -42,6 +42,11 @@ export enum FieldState {
|
|
|
42
42
|
Error = "Error",
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
export type BackgroundPosition = {
|
|
46
|
+
x?: string,
|
|
47
|
+
y?: string,
|
|
48
|
+
};
|
|
49
|
+
|
|
45
50
|
const initialPlaceholder: string = "+X XXX-XXX-XXXX";
|
|
46
51
|
/**
|
|
47
52
|
* Maximum number of possible digits based on international standard https://en.wikipedia.org/wiki/E.164
|
|
@@ -571,7 +576,7 @@ class UDExPhoneNumberField extends UI5Element {
|
|
|
571
576
|
|| this.updatedCountriesList[0]?.countryName;
|
|
572
577
|
}
|
|
573
578
|
|
|
574
|
-
get selectedFlagBackgroundPosition() {
|
|
579
|
+
get selectedFlagBackgroundPosition(): BackgroundPosition {
|
|
575
580
|
if (!this.countryIso) {
|
|
576
581
|
return {};
|
|
577
582
|
}
|
|
@@ -582,7 +587,7 @@ class UDExPhoneNumberField extends UI5Element {
|
|
|
582
587
|
return {};
|
|
583
588
|
}
|
|
584
589
|
|
|
585
|
-
return {
|
|
590
|
+
return { x: selectedCountry?.flagX, y: selectedCountry?.flagY };
|
|
586
591
|
}
|
|
587
592
|
|
|
588
593
|
get ariaInvalid() {
|
|
@@ -83,6 +83,15 @@ import { NO_MATCHES_FOUND } from "./generated/i18n/i18n-defaults.js";
|
|
|
83
83
|
})
|
|
84
84
|
|
|
85
85
|
class UDExSearchableListBase extends UI5Element {
|
|
86
|
+
/**
|
|
87
|
+
* Defines if the search input is visible.
|
|
88
|
+
*
|
|
89
|
+
* @default false
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
@property({ type: Boolean })
|
|
93
|
+
showSearchInput!: boolean;
|
|
94
|
+
|
|
86
95
|
/**
|
|
87
96
|
* Defines if the component would display a loading indicator.
|
|
88
97
|
*
|
|
@@ -496,8 +505,15 @@ class UDExSearchableListBase extends UI5Element {
|
|
|
496
505
|
}
|
|
497
506
|
|
|
498
507
|
get showSearch(): boolean {
|
|
499
|
-
|
|
500
|
-
|
|
508
|
+
return this.showSearchInput || (this.isSearchActive && !this.modeRadioGroup);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
get isSearchActive(): boolean {
|
|
512
|
+
return this.nonGroupItems.length > SHOW_SEARCH_AFTER_COUNT;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
get nonGroupItems(): Array<UDExListItemBase> {
|
|
516
|
+
return this.getSlottedItems(this.items).filter(item => !item.isGroup);
|
|
501
517
|
}
|
|
502
518
|
|
|
503
519
|
get roleForGroupList(): string {
|