@sapudex/web-components 0.226.1 → 0.227.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/Breadcrumbs.js +3 -2
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/Button.d.ts +7 -0
- package/dist/Button.js +3 -0
- package/dist/Button.js.map +1 -1
- package/dist/ListItem.d.ts +3 -2
- package/dist/ListItem.js +2 -2
- package/dist/ListItem.js.map +1 -1
- package/dist/MastheadItem.js +1 -1
- package/dist/MastheadItem.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 +18 -2
- package/dist/Pagination.js +35 -11
- 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/Search.js +1 -2
- package/dist/Search.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/SecondaryNavigation.d.ts +4 -1
- package/dist/SecondaryNavigation.js +37 -10
- package/dist/SecondaryNavigation.js.map +1 -1
- package/dist/SecondaryNavigationItem.d.ts +10 -0
- package/dist/SecondaryNavigationItem.js +19 -0
- package/dist/SecondaryNavigationItem.js.map +1 -1
- package/dist/SecondaryNavigationItemBase.d.ts +1 -0
- package/dist/SecondaryNavigationItemBase.js +3 -0
- package/dist/SecondaryNavigationItemBase.js.map +1 -1
- package/dist/SecondaryNavigationSubItem.d.ts +0 -1
- package/dist/SecondaryNavigationSubItem.js +0 -3
- package/dist/SecondaryNavigationSubItem.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-a49b6527.js → bundle.esm-8018708a.js} +182 -182
- package/dist/css/themes/Breadcrumbs.css +1 -1
- 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/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/Search.css +1 -1
- package/dist/css/themes/Slider.css +1 -1
- package/dist/custom-elements-internal.json +202 -66
- package/dist/custom-elements.json +181 -64
- 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/BreadcrumbsTemplate.lit.js +1 -1
- package/dist/generated/templates/BreadcrumbsTemplate.lit.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/SearchTemplate.lit.js +3 -3
- package/dist/generated/templates/SearchTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SecondaryNavigationItemTemplate.lit.js +2 -2
- package/dist/generated/templates/SecondaryNavigationItemTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SecondaryNavigationTemplate.lit.js +1 -1
- package/dist/generated/templates/SecondaryNavigationTemplate.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/Breadcrumbs.css.js +1 -1
- package/dist/generated/themes/Breadcrumbs.css.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/ListItem.css.js +1 -1
- package/dist/generated/themes/ListItem.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/Search.css.js +1 -1
- package/dist/generated/themes/Search.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 -0
- package/dist/web-types.json +41 -1
- package/package.json +1 -1
- package/src/Breadcrumbs.hbs +10 -12
- package/src/Breadcrumbs.ts +3 -2
- package/src/Button.ts +9 -0
- package/src/ListItem.ts +4 -4
- package/src/MastheadItem.ts +1 -1
- package/src/MastheadShell.ts +25 -5
- package/src/Pagination.hbs +11 -5
- package/src/Pagination.ts +51 -8
- package/src/PhoneNumberField.hbs +1 -1
- package/src/PhoneNumberField.ts +8 -3
- package/src/Search.hbs +3 -2
- package/src/Search.ts +1 -2
- package/src/SearchableListBase.ts +18 -2
- package/src/SecondaryNavigation.hbs +1 -0
- package/src/SecondaryNavigation.ts +41 -12
- package/src/SecondaryNavigationItem.hbs +2 -1
- package/src/SecondaryNavigationItem.ts +31 -0
- package/src/SecondaryNavigationItemBase.ts +3 -0
- package/src/SecondaryNavigationSubItem.ts +0 -3
- package/src/Wizard.hbs +9 -1
- package/src/Wizard.ts +39 -7
- package/src/data/CountryListISO3166.ts +10 -2
- package/src/generated/templates/BreadcrumbsTemplate.lit.ts +1 -1
- package/src/generated/templates/PaginationTemplate.lit.ts +3 -3
- package/src/generated/templates/PhoneNumberFieldTemplate.lit.ts +1 -1
- package/src/generated/templates/SearchTemplate.lit.ts +3 -3
- package/src/generated/templates/SecondaryNavigationItemTemplate.lit.ts +2 -2
- package/src/generated/templates/SecondaryNavigationTemplate.lit.ts +1 -1
- package/src/generated/templates/WizardTemplate.lit.ts +5 -3
- package/src/generated/themes/Breadcrumbs.css.ts +1 -1
- 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/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/Search.css.ts +1 -1
- package/src/generated/themes/Slider.css.ts +1 -1
- package/src/themes/Breadcrumbs.css +3 -0
- package/src/themes/Button.css +84 -29
- package/src/themes/ListItem.css +5 -1
- package/src/themes/MastheadCountrySelector.css +8 -5
- package/src/themes/MastheadItem.css +12 -4
- package/src/themes/MastheadShell.css +5 -2
- package/src/themes/Modal.css +6 -1
- package/src/themes/Pagination.css +19 -0
- package/src/themes/Search.css +8 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Search.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/Search.css.ts\",content:`:host{--udex-input-color-border: var(--sapField_BorderColor, var(--udexColorGrey6));--udex-input-color-label: var(--sapField_PlaceholderTextColor, var(--udexColorGrey7));--udex-input-font-family-label: var(--sapFontFamily, sans-serif);--udex-input-font-size-label: var(--sapFontLargeSize, var(--udexTypographyBodySFontSize));--udex-input-font-weight-label: var(--udexTypographyFontWeightRegular, 400);--udex-input-line-height-label: var(--udexTypographyBodyLineHeight, 24px);--udex-input-background-color: var(--sapList_Hover_Background, var(--udexColorGrey1));--udex-input-font-family-label-active: var(--sapFontFamily, sans-serif);--udex-input-font-size-label-active: var(--sapFontSmallSize, var(--udexTypographyBodyXXSFontSize));--udex-input-font-weight-label-active: var(--udexTypographyFontWeightRegular, 400);--udex-input-line-height-label-active: var(--udexTypographyBodyLineHeight, 1.5);--udex-input-color-typed-text: var(--sapField_TextColor, var(--udexCoreTextDark));--udex-input-color-background-light: var(--sapField_Background, var(--udexColorNeutralWhite));--udex-input-color-hover-border: var(--sapField_Hover_BorderColor, var(--udexColorBlue6));--udex-input-color-active-border: var(--sapField_Active_BorderColor, var(--udexColorBlue9));--udex-input-radius: var(--sapField_BorderCornerRadius, var(--udexRadiusXS));--udex-input-padding-horizontal: var(--udexSpacer12, 12px);--udex-input-padding-vertical: 8px;--udex-home-input-padding-left: var(--udexSpacer12, 12px);--udex-home-input-padding-right: var(--udexSpacer8, 8px);--udex-home-input-padding-vertical: 8px;--udex-button-size: var(--sapFontHeader2Size, 28px);--udex-button-color: var(--sapAccentColor10, var(--udexColorGrey7));--udex-button-non-interactive-icon-color: var(--sapContent_NonInteractiveIconColor, var(--udexColorGrey7));--udex-button-non-interactive-icon-size: var(--sapFontHeader5Size, 18px);--udex-dropdown-border-width: auto;--udex-search-container-padding-inline-end: var(--udexSpacer12, 12px);--udex-search-home-container-padding-inline-end: var(--udexSpacer8, 8px);--udex-search-label-inset-inline-start: var(--udexSpacer12, 12px);--udex-search-icons-column-gap: 0;--udex-search-home-icons-column-gap: var(--udexSpacer4, 4px);--udex-search-label-width: calc( 100% - var(--udex-search-label-inset-inline-start) - var(--udex-input-padding-horizontal) - var(--udex-search-container-padding-inline-end) );display:block;width:100%;position:relative}:host([mode=\"Standard\"]) .udex-search__label.udex-search__label--active{display:none}:host(:not([mode=\"Home Search\"])) .udex-search__label.udex-search__label--active.udex-search__label--animation-enabled,:host(:not([mode=\"Home Search\"])) .udex-search-prefix .udex-search__label.udex-search__label--active.udex-search__label--animation-enabled{display:block;inset-block-start:9px;line-height:18px;transform:translateY(-110%);padding:0 4px;font-family:var(--udex-input-font-family-label-active);font-size:var(--udex-input-font-size-label-active);font-weight:var(--udex-input-font-weight-label-active);line-height:var(--udex-input-line-height-label-active);background-color:#fff}:host([mode=\"Home Search\"]) .udex-search__root,:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix{--udex-input-radius: var(--udexRadiusXXL, 24px);position:relative;z-index:1}:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix{display:flex;width:100%;position:relative;z-index:1}:host([mode=\"Home Search\"]) .udex-search-prefix .udex-search__prefix+.udex-search__container{border-start-start-radius:0;border-start-end-radius:var(--udexRadiusXXL, 24px);border-end-start-radius:0;border-end-end-radius:var(--udexRadiusXXL, 24px);flex-grow:1}:host([mode=\"Home Search\"]) .udex-search__root.udex-search__root--show-popover:after,:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover:after,:host([mode=\"Home Search\"]) .udex-search__root.udex-search__root--show-popover-top:after,:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover-top:after{content:\"\";position:absolute;z-index:-1;height:21px;inset-inline:0;inset-block-end:0;background-color:var(--udexColorNeutralWhite, #fff);border-left:1px solid var(--udexColorGrey6, #5B738B);border-right:1px solid var(--udexColorGrey6, #5B738B);box-shadow:var(--sapContent_Shadow1, 0px 2px 8px 0px rgba(34, 54, 73, .3));overflow-y:hidden}:host([mode=\"Home Search\"]) .udex-search__root.udex-search__root--show-popover-top:after,:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover-top:after,.udex-search__prefix--show-popover-top:after{transform:translateY(-21px)}:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover:after{inset-inline-start:auto;width:50px}:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover-top:after{inset-inline-start:auto;width:50px}:host([mode=\"Home Search\"]) .udex-search__container:not(.udex-search__container--has-value),:host([mode=\"Home Search\"]) .udex-search__container:not(.udex-search__container--has-value) .udex-search__field,:host([mode=\"Home Search\"]) .udex-search-prefix .udex-search__container:not(.udex-search__container--has-value),:host([mode=\"Home Search\"]) .udex-search-prefix .udex-search__container:not(.udex-search__container--has-value) .udex-search__field{background-color:var(--udex-input-background-color)}:host([mode=\"Home Search\"]) .udex-search__label.udex-search__label--active,:host([mode=\"Home Search\"]) .udex-search-prefix .udex-search__label.udex-search__label--active{display:none}.udex-search__container{padding-inline-end:var(--udex-search-container-padding-inline-end);display:flex;align-items:center;position:relative;z-index:1;border:1px solid var(--udex-input-color-border);border-radius:var(--udex-input-radius);background-color:field}.udex-search-mode-home-search .udex-search__container{padding-inline-end:var(--udex-search-home-container-padding-inline-end)}.udex-search__container:not(.udex-search__container--focus):hover{border-color:var(--udex-input-color-hover-border)}.udex-search__container--focus{border-color:var(--udex-input-color-active-border)}:host(:not([_is-touched])[active]) .udex-search__root:before{content:\"\";position:absolute;inset:-5px;border:2px solid var(--udexColorBlue10);border-radius:var(--udex-input-radius)}:host([mode=\"Home Search\"]:not([_is-touched])[active]) .udex-search__root:before{z-index:-1}.udex-search__field{display:block;width:100%;color:var(--udex-input-color-typed-text);font-size:16px;font-family:var(--sapFontFamily);line-height:24px;padding:var(--udex-input-padding-vertical) var(--udex-input-padding-horizontal);box-sizing:border-box;border:0;border-radius:var(--udex-input-radius);font-weight:var(--udexTypographyFontWeightRegular, 400);background:var(--udex-input-color-background-light)}.udex-search-mode-home-search .udex-search__field{padding:var(--udex-home-input-padding-vertical) var(--udex-home-input-padding-right) var(--udex-home-input-padding-vertical) var(--udex-home-input-padding-left)}.udex-search__field::placeholder{color:var(--udexColorGrey7);font-family:var(--sapFontFamily, sans-serif);font-size:16px}.udex-search__field:focus{outline:none}input[type=search]::-ms-clear{display:none;width:0;height:0}input[type=search]::-ms-reveal{display:none;width:0;height:0}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.udex-search__label{position:absolute;inset-inline-start:var(--udex-search-label-inset-inline-start);z-index:2;color:var(--udex-input-color-label);font-family:var(--udex-input-font-family-label);font-size:var(--udex-input-font-size-label);font-weight:var(--udex-input-font-weight-label);line-height:var(--udex-input-line-height-label);transition:transform .15s ease-out,font-size .15s ease-out;overflow:hidden;white-space:nowrap;max-width:var(--udex-search-label-width)}.udex-search__label-with-search-icon,.udex-search__label-with-voice-icon{max-width:calc(var(--udex-search-label-width) - var(--udex-button-size))}.udex-search__label-with-search-icon.udex-search__label-with-voice-icon{max-width:calc(var(--udex-search-label-width) - var(--udex-button-size) * 2 - var(--udex-search-icons-column-gap))}.udex-search__icons{display:flex;align-items:center;column-gap:var(--udex-search-icons-column-gap)}.udex-search-mode-home-search .udex-search__icons{column-gap:var(--udex-search-home-icons-column-gap)}.udex-search__icon{margin-inline:5px;background-color:transparent;border:none;color:var(--udex-button-non-interactive-icon-color);min-width:var(--udex-button-non-interactive-icon-size);height:var(--udex-button-non-interactive-icon-size);border-radius:50%;position:relative;z-index:1;overflow:visible}.udex-search__button{background-color:transparent;border:none;color:var(--udex-button-color);min-width:var(--udex-button-size);height:var(--udex-button-size);border-radius:50%;position:relative;z-index:1;overflow:visible}[udex-control-button]{--udex-control-button-large-height: 40px;--udex-control-button-large-width: 40px}[udex-control-button].udex-search__reset-button{--sapButton_BorderWidth: 0px 1px 0 1px}[udex-control-button].udex-search__submit-button{margin:0px calc((var(--udex-search-container-padding-inline-end)) * -1) 0px 0;--sapButton_BorderWidth: 0 0 0 1px}[ui5-button].udex-search__button::part(button):focus-visible:before{content:\"\";position:absolute;inset-block-start:0;inset-inline-start:0;width:28px;height:28px;border:2px solid var(--udexColorBlue9, #0040B0);border-radius:50%;box-sizing:border-box}[ui5-button].udex-search__button::part(button){padding:0;width:28px;height:28px;line-height:0}[ui5-icon].udex-search__button-icon{color:inherit;width:18px;height:18px}[ui5-button].udex-search__button::part(icon){width:18px;height:18px}[ui5-button].udex-search__button::part(button):after{display:none}[ui5-button].udex-search__button.udex-search__voice-button:hover{background-color:#0000001a;border:none;box-shadow:none}[ui5-button].udex-search__button.udex-search__voice-button.udex-search__voice-button--active,[ui5-button][active].udex-search__button.udex-search__voice-button{background:var(--udexColorBlue8, #0057D2);color:var(--udexColorNeutralWhite, #FFFFFF)}[ui5-button].udex-search__button:focus{outline:none}.udex-search__prefix{position:relative;z-index:1}.udex-search__prefix--show-popover:after,.udex-search__prefix--show-popover-top:after{content:\"\";position:absolute;z-index:-1;height:50%;width:50px;inset-inline-start:0;inset-block-end:0;background-color:var(--udexColorNeutralWhite, #fff);border-left:1px solid var(--udexColorGrey6, #5B738B);border-right:1px solid var(--udexColorGrey6, #5B738B);box-shadow:var(--sapContent_Shadow1, 0px 2px 8px 0px rgba(34, 54, 73, .3));overflow-y:hidden}.udex-search__prefix-button{padding-inline:var(--udexSpacer12) var(--udexSpacer8);display:flex;align-items:center;max-width:200px;height:100%;border:1px solid var(--udex-input-color-border);border-inline-end:0;border-start-start-radius:var(--udexRadiusXXL, 24px);border-end-start-radius:var(--udexRadiusXXL, 24px);background-color:var(--sapShell_Navigation_Active_Background, var(--udexColorGrey1));color:var(--sapContent_LabelColor, var(--udexColorGrey7));font-family:var(--sapFontFamily, sans-serif);font-size:var(--udexTypographyBodySFontSize, 16px);font-weight:var(--udexTypographyFontWeightRegular, 400);line-height:var(--udexTypographyBodyLineHeight, 1.5);text-align:start;white-space:nowrap}.udex-search__prefix-button:hover{cursor:pointer;background-color:var(--udexCoreBase);color:var(--udexColorBlue8)}.udex-search__prefix-button:focus,.udex-search__prefix-button:focus-visible{outline:2px solid var(--udexColorBlue10, #002A86);outline-offset:-2px}.udex-search__prefix-button--active{background-color:var(--udexCoreBase);color:var(--udexColorBlue10)}.udex-search__prefix-label{margin-inline-end:var(--udexSpacer4, 4px);max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis}.udex-search__prefix-icon{width:16px;height:16px;color:inherit;flex-shrink:1}.udex-search__prefix-popover{border-start-start-radius:0;border-start-end-radius:0;border:1px solid var(--udexCoreBorderDefault);border-block-start:0;box-shadow:var(--sapContent_Shadow1, 0px 2px 8px 0px rgba(34,54,73,.3));background-color:var(--udexColorNeutralWhite, #fff);clip-path:inset(0px -10px -10px -10px)}.udex-search__prefix-popover-top{border-end-start-radius:0;border-end-end-radius:0;border:1px solid var(--udexCoreBorderDefault);border-block-end:0;box-shadow:none;background-color:var(--udexColorNeutralWhite, #fff);clip-path:inset(0px -10px -10px -10px)}.udex-search__prefix-popover::part(content),.udex-search__prefix-popover-top::part(content){padding:0}[udex-dropdown]{--udex-dropdown-pane-max-width: 100%}.hidden{display:none}\n`};\nexport default styleData;\n\t"]}
|
|
1
|
+
{"version":3,"file":"Search.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Search.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/Search.css.ts\",content:`:host{--udex-input-color-border: var(--sapField_BorderColor, var(--udexColorGrey6));--udex-input-color-label: var(--sapField_PlaceholderTextColor, var(--udexColorGrey7));--udex-input-font-family-label: var(--sapFontFamily, sans-serif);--udex-input-font-size-label: var(--sapFontLargeSize, var(--udexTypographyBodySFontSize));--udex-input-font-weight-label: var(--udexTypographyFontWeightRegular, 400);--udex-input-line-height-label: var(--udexTypographyBodyLineHeight, 24px);--udex-input-background-color: var(--sapList_Hover_Background, var(--udexColorGrey1));--udex-input-font-family-label-active: var(--sapFontFamily, sans-serif);--udex-input-font-size-label-active: var(--sapFontSmallSize, var(--udexTypographyBodyXXSFontSize));--udex-input-font-weight-label-active: var(--udexTypographyFontWeightRegular, 400);--udex-input-line-height-label-active: var(--udexTypographyBodyLineHeight, 1.5);--udex-input-color-typed-text: var(--sapField_TextColor, var(--udexCoreTextDark));--udex-input-color-background-light: var(--sapField_Background, var(--udexColorNeutralWhite));--udex-input-color-hover-border: var(--sapField_Hover_BorderColor, var(--udexColorBlue6));--udex-input-color-active-border: var(--sapField_Active_BorderColor, var(--udexColorBlue9));--udex-input-radius: var(--sapField_BorderCornerRadius, var(--udexRadiusXS));--udex-input-padding-horizontal: var(--udexSpacer12, 12px);--udex-input-padding-vertical: 8px;--udex-home-input-padding-left: var(--udexSpacer12, 12px);--udex-home-input-padding-right: var(--udexSpacer8, 8px);--udex-home-input-padding-vertical: 8px;--udex-button-size: var(--sapFontHeader2Size, 28px);--udex-button-color: var(--sapAccentColor10, var(--udexColorGrey7));--udex-button-non-interactive-icon-color: var(--sapContent_NonInteractiveIconColor, var(--udexColorGrey7));--udex-button-non-interactive-icon-size: var(--sapFontHeader5Size, 18px);--udex-dropdown-border-width: auto;--udex-search-container-padding-inline-end: var(--udexSpacer12, 12px);--udex-search-home-container-padding-inline-end: var(--udexSpacer8, 8px);--udex-search-label-inset-inline-start: var(--udexSpacer12, 12px);--udex-search-icons-column-gap: 0;--udex-search-home-icons-column-gap: var(--udexSpacer4, 4px);--udex-search-label-width: calc( 100% - var(--udex-search-label-inset-inline-start) - var(--udex-input-padding-horizontal) - var(--udex-search-container-padding-inline-end) );display:block;width:100%;position:relative}:host([mode=\"Standard\"]) .udex-search__label.udex-search__label--active{display:none}:host(:not([mode=\"Home Search\"])) .udex-search__label.udex-search__label--active.udex-search__label--animation-enabled,:host(:not([mode=\"Home Search\"])) .udex-search-prefix .udex-search__label.udex-search__label--active.udex-search__label--animation-enabled{display:block;inset-block-start:9px;line-height:18px;transform:translateY(-110%);padding:0 4px;font-family:var(--udex-input-font-family-label-active);font-size:var(--udex-input-font-size-label-active);font-weight:var(--udex-input-font-weight-label-active);line-height:var(--udex-input-line-height-label-active);background-color:#fff}:host([mode=\"Home Search\"]) .udex-search__root,:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix{--udex-input-radius: var(--udexRadiusXXL, 24px);position:relative;z-index:1}:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix{display:flex;width:100%;position:relative;z-index:1}:host([mode=\"Home Search\"]) .udex-search-prefix .udex-search__prefix+.udex-search__container{border-start-start-radius:0;border-start-end-radius:var(--udexRadiusXXL, 24px);border-end-start-radius:0;border-end-end-radius:var(--udexRadiusXXL, 24px);flex-grow:1}:host([mode=\"Home Search\"]) .udex-search__root.udex-search__root--show-popover:after,:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover:after,:host([mode=\"Home Search\"]) .udex-search__root.udex-search__root--show-popover-top:after,:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover-top:after{content:\"\";position:absolute;z-index:-1;height:21px;inset-inline:0;inset-block-end:0;background-color:var(--udexColorNeutralWhite, #fff);border-left:1px solid var(--udexColorGrey6, #5B738B);border-right:1px solid var(--udexColorGrey6, #5B738B);box-shadow:var(--sapContent_Shadow1, 0px 2px 8px 0px rgba(34, 54, 73, .3));overflow-y:hidden}:host([mode=\"Home Search\"]) .udex-search__root.udex-search__root--show-popover-top:after,:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover-top:after,.udex-search__prefix--show-popover-top:after{transform:translateY(-21px)}:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover:after{inset-inline-start:auto;width:50px}:host([mode=\"Home Search\"]) .udex-search__root.udex-search-prefix.udex-search__root--show-popover-top:after{inset-inline-start:auto;width:50px}:host([mode=\"Home Search\"]) .udex-search__container:not(.udex-search__container--has-value),:host([mode=\"Home Search\"]) .udex-search__container:not(.udex-search__container--has-value) .udex-search__field,:host([mode=\"Home Search\"]) .udex-search-prefix .udex-search__container:not(.udex-search__container--has-value),:host([mode=\"Home Search\"]) .udex-search-prefix .udex-search__container:not(.udex-search__container--has-value) .udex-search__field{background-color:var(--udex-input-background-color)}:host([mode=\"Home Search\"]) .udex-search__label.udex-search__label--active,:host([mode=\"Home Search\"]) .udex-search-prefix .udex-search__label.udex-search__label--active{display:none}.udex-search__container{padding-inline-end:var(--udex-search-container-padding-inline-end);display:flex;align-items:center;position:relative;z-index:1;border:1px solid var(--udex-input-color-border);border-radius:var(--udex-input-radius);background-color:field}.udex-search-mode-home-search .udex-search__container{padding-inline-end:var(--udex-search-home-container-padding-inline-end)}.udex-search__container:not(.udex-search__container--focus):hover{border-color:var(--udex-input-color-hover-border)}.udex-search__container--focus{border-color:var(--udex-input-color-active-border)}:host(:not([_is-touched])[active]) .udex-search__root:before{content:\"\";position:absolute;inset:-5px;border:2px solid var(--udexColorBlue10);border-radius:var(--udex-input-radius)}:host([mode=\"Home Search\"]:not([_is-touched])[active]) .udex-search__root:before{z-index:-1}.udex-search__field{display:block;width:100%;color:var(--udex-input-color-typed-text);font-size:16px;font-family:var(--sapFontFamily);line-height:24px;padding:var(--udex-input-padding-vertical) var(--udex-input-padding-horizontal);box-sizing:border-box;border:0;border-radius:var(--udex-input-radius);font-weight:var(--udexTypographyFontWeightRegular, 400);background:var(--udex-input-color-background-light)}.udex-search-mode-home-search .udex-search__field{padding:var(--udex-home-input-padding-vertical) var(--udex-home-input-padding-right) var(--udex-home-input-padding-vertical) var(--udex-home-input-padding-left)}.udex-search__field::placeholder{color:var(--udexColorGrey7);font-family:var(--sapFontFamily, sans-serif);font-size:16px}.udex-search__field:focus{outline:none}input[type=search]::-ms-clear{display:none;width:0;height:0}input[type=search]::-ms-reveal{display:none;width:0;height:0}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.udex-search__label{position:absolute;inset-inline-start:var(--udex-search-label-inset-inline-start);z-index:2;color:var(--udex-input-color-label);font-family:var(--udex-input-font-family-label);font-size:var(--udex-input-font-size-label);font-weight:var(--udex-input-font-weight-label);line-height:var(--udex-input-line-height-label);transition:transform .15s ease-out,font-size .15s ease-out;overflow:hidden;white-space:nowrap;max-width:var(--udex-search-label-width)}.udex-search__label-with-search-icon,.udex-search__label-with-voice-icon{max-width:calc(var(--udex-search-label-width) - var(--udex-button-size))}.udex-search__label-with-search-icon.udex-search__label-with-voice-icon{max-width:calc(var(--udex-search-label-width) - var(--udex-button-size) * 2 - var(--udex-search-icons-column-gap))}.udex-search__icons{display:flex;align-items:center;column-gap:var(--udex-search-icons-column-gap)}.udex-search-mode-home-search .udex-search__icons{column-gap:var(--udex-search-home-icons-column-gap)}.udex-search__icon{margin-inline:5px;background-color:transparent;border:none;color:var(--udex-button-non-interactive-icon-color);min-width:var(--udex-button-non-interactive-icon-size);height:var(--udex-button-non-interactive-icon-size);border-radius:50%;position:relative;z-index:1;overflow:visible}.udex-search__button{background-color:transparent;border:none;color:var(--udex-button-color);min-width:var(--udex-button-size);height:var(--udex-button-size);border-radius:50%;position:relative;z-index:1;overflow:visible}[udex-control-button]{--udex-control-button-large-height: 40px;--udex-control-button-large-width: 40px}[udex-control-button].udex-search__reset-button{--sapButton_BorderWidth: 0px 1px 0 1px}[udex-control-button].udex-search__submit-button{margin:0px calc((var(--udex-search-container-padding-inline-end)) * -1) 0px 0;--sapButton_BorderWidth: 0 0 0 1px}[ui5-button].udex-search__button::part(button):focus-visible:before{content:\"\";position:absolute;inset-block-start:0;inset-inline-start:0;width:28px;height:28px;border:2px solid var(--udexColorBlue9, #0040B0);border-radius:50%;box-sizing:border-box}[ui5-button].udex-search__button::part(button){padding:0;width:28px;height:28px;line-height:0}[ui5-icon].udex-search__button-icon{color:inherit;width:18px;height:18px}[ui5-button].udex-search__button::part(icon){width:18px;height:18px}[ui5-button].udex-search__button::part(button):after{display:none}[ui5-button].udex-search__button.udex-search__voice-button:hover{background-color:#0000001a;border:none;box-shadow:none}[ui5-button].udex-search__button.udex-search__voice-button.udex-search__voice-button--active,[ui5-button][active].udex-search__button.udex-search__voice-button{background:var(--udexColorBlue8, #0057D2);color:var(--udexColorNeutralWhite, #FFFFFF)}[ui5-button].udex-search__button:focus{outline:none}.udex-search__prefix{position:relative;z-index:1}.udex-search__prefix--show-popover:after,.udex-search__prefix--show-popover-top:after{content:\"\";position:absolute;z-index:-1;height:50%;width:50px;inset-inline-start:0;inset-block-end:0;background-color:var(--udexColorNeutralWhite, #fff);border-left:1px solid var(--udexColorGrey6, #5B738B);border-right:1px solid var(--udexColorGrey6, #5B738B);box-shadow:var(--sapContent_Shadow1, 0px 2px 8px 0px rgba(34, 54, 73, .3));overflow-y:hidden}.udex-search__prefix-button{padding-inline:var(--udexSpacer12) var(--udexSpacer8);display:flex;align-items:center;max-width:200px;height:100%;border:1px solid var(--udex-input-color-border);border-inline-end:0;border-start-start-radius:var(--udexRadiusXXL, 24px);border-end-start-radius:var(--udexRadiusXXL, 24px);background-color:var(--sapShell_Navigation_Active_Background, var(--udexColorGrey1));color:var(--sapContent_LabelColor, var(--udexColorGrey7));font-family:var(--sapFontFamily, sans-serif);font-size:var(--udexTypographyBodySFontSize, 16px);font-weight:var(--udexTypographyFontWeightRegular, 400);line-height:var(--udexTypographyBodyLineHeight, 1.5);text-align:start;white-space:nowrap}.udex-search__prefix-button:hover{cursor:pointer;background-color:var(--udexCoreBase);color:var(--udexColorBlue8)}.udex-search__prefix-button:focus,.udex-search__prefix-button:focus-visible{outline:2px solid var(--udexColorBlue10, #002A86);outline-offset:-2px}.udex-search__prefix-button--active{background-color:var(--udexCoreBase);color:var(--udexColorBlue10)}.udex-search__prefix-label{margin-inline-end:var(--udexSpacer4, 4px);max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis}.udex-search__prefix-icon{width:16px;height:16px;color:inherit;flex-shrink:1}.udex-search__prefix-popover{border-start-start-radius:0;border-start-end-radius:0;border:1px solid var(--udexCoreBorderDefault);border-block-start:0;box-shadow:var(--sapContent_Shadow1, 0px 2px 8px 0px rgba(34,54,73,.3));background-color:var(--udexColorNeutralWhite, #fff);clip-path:inset(0px -10px -10px -10px)}.udex-search__prefix-popover-top{border-end-start-radius:0;border-end-end-radius:0;border:1px solid var(--udexCoreBorderDefault);border-block-end:0;box-shadow:none;background-color:var(--udexColorNeutralWhite, #fff);clip-path:inset(0px -10px -10px -10px)}.udex-search__prefix-popover::part(content),.udex-search__prefix-popover-top::part(content){padding:0}[udex-dropdown]{--udex-dropdown-pane-max-width: 100%}.hidden{position:absolute;width:0px;height:0px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;padding:0}\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-227-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-227-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"]}
|
|
@@ -346,6 +346,11 @@
|
|
|
346
346
|
"values": []
|
|
347
347
|
},
|
|
348
348
|
{ "name": "hide-flag-images", "values": [] },
|
|
349
|
+
{
|
|
350
|
+
"name": "show-search-input",
|
|
351
|
+
"description": "Defines if the search input is visible.",
|
|
352
|
+
"values": []
|
|
353
|
+
},
|
|
349
354
|
{
|
|
350
355
|
"name": "busy",
|
|
351
356
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -637,6 +642,11 @@
|
|
|
637
642
|
"description": "Allows setting a custom role for dropdown trigger.",
|
|
638
643
|
"values": []
|
|
639
644
|
},
|
|
645
|
+
{
|
|
646
|
+
"name": "show-search-input",
|
|
647
|
+
"description": "Defines if the search input is visible.",
|
|
648
|
+
"values": []
|
|
649
|
+
},
|
|
640
650
|
{
|
|
641
651
|
"name": "busy",
|
|
642
652
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -2378,6 +2388,11 @@
|
|
|
2378
2388
|
"name": "udex-searchable-list-base",
|
|
2379
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.",
|
|
2380
2390
|
"attributes": [
|
|
2391
|
+
{
|
|
2392
|
+
"name": "show-search-input",
|
|
2393
|
+
"description": "Defines if the search input is visible.",
|
|
2394
|
+
"values": []
|
|
2395
|
+
},
|
|
2381
2396
|
{
|
|
2382
2397
|
"name": "busy",
|
|
2383
2398
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -2653,6 +2668,11 @@
|
|
|
2653
2668
|
{ "name": "Bottom" }
|
|
2654
2669
|
]
|
|
2655
2670
|
},
|
|
2671
|
+
{
|
|
2672
|
+
"name": "show-search-input",
|
|
2673
|
+
"description": "Defines if the search input is visible.",
|
|
2674
|
+
"values": []
|
|
2675
|
+
},
|
|
2656
2676
|
{
|
|
2657
2677
|
"name": "busy",
|
|
2658
2678
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -3897,6 +3917,11 @@
|
|
|
3897
3917
|
"name": "indeterminate",
|
|
3898
3918
|
"description": "Defines whether the component has unknown number of steps.",
|
|
3899
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": []
|
|
3900
3925
|
}
|
|
3901
3926
|
],
|
|
3902
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.227.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -640,6 +640,11 @@
|
|
|
640
640
|
"name": "hide-flag-images",
|
|
641
641
|
"value": { "type": "boolean | undefined" }
|
|
642
642
|
},
|
|
643
|
+
{
|
|
644
|
+
"name": "show-search-input",
|
|
645
|
+
"description": "Defines if the search input is visible.",
|
|
646
|
+
"value": { "type": "boolean", "default": "false" }
|
|
647
|
+
},
|
|
643
648
|
{
|
|
644
649
|
"name": "busy",
|
|
645
650
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -787,6 +792,11 @@
|
|
|
787
792
|
"name": "hide-flag-images",
|
|
788
793
|
"value": { "type": "boolean | undefined" }
|
|
789
794
|
},
|
|
795
|
+
{
|
|
796
|
+
"name": "show-search-input",
|
|
797
|
+
"description": "Defines if the search input is visible.",
|
|
798
|
+
"value": { "type": "boolean" }
|
|
799
|
+
},
|
|
790
800
|
{
|
|
791
801
|
"name": "busy",
|
|
792
802
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -1294,6 +1304,11 @@
|
|
|
1294
1304
|
"description": "Allows setting a custom role for dropdown trigger.",
|
|
1295
1305
|
"value": { "type": "string", "default": "\"combobox\"" }
|
|
1296
1306
|
},
|
|
1307
|
+
{
|
|
1308
|
+
"name": "show-search-input",
|
|
1309
|
+
"description": "Defines if the search input is visible.",
|
|
1310
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1311
|
+
},
|
|
1297
1312
|
{
|
|
1298
1313
|
"name": "busy",
|
|
1299
1314
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -1466,6 +1481,11 @@
|
|
|
1466
1481
|
"description": "Allows setting a custom role for dropdown trigger.",
|
|
1467
1482
|
"value": { "type": "string" }
|
|
1468
1483
|
},
|
|
1484
|
+
{
|
|
1485
|
+
"name": "show-search-input",
|
|
1486
|
+
"description": "Defines if the search input is visible.",
|
|
1487
|
+
"value": { "type": "boolean" }
|
|
1488
|
+
},
|
|
1469
1489
|
{
|
|
1470
1490
|
"name": "busy",
|
|
1471
1491
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -5462,6 +5482,11 @@
|
|
|
5462
5482
|
"default": "\"Bottom\""
|
|
5463
5483
|
}
|
|
5464
5484
|
},
|
|
5485
|
+
{
|
|
5486
|
+
"name": "show-search-input",
|
|
5487
|
+
"description": "Defines if the search input is visible.",
|
|
5488
|
+
"value": { "type": "boolean", "default": "false" }
|
|
5489
|
+
},
|
|
5465
5490
|
{
|
|
5466
5491
|
"name": "busy",
|
|
5467
5492
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -5599,6 +5624,11 @@
|
|
|
5599
5624
|
"type": "\"Left\" | \"Right\" | \"Top\" | \"Bottom\""
|
|
5600
5625
|
}
|
|
5601
5626
|
},
|
|
5627
|
+
{
|
|
5628
|
+
"name": "show-search-input",
|
|
5629
|
+
"description": "Defines if the search input is visible.",
|
|
5630
|
+
"value": { "type": "boolean" }
|
|
5631
|
+
},
|
|
5602
5632
|
{
|
|
5603
5633
|
"name": "busy",
|
|
5604
5634
|
"description": "Defines if the component would display a loading indicator.",
|
|
@@ -8109,6 +8139,11 @@
|
|
|
8109
8139
|
"name": "indeterminate",
|
|
8110
8140
|
"description": "Defines whether the component has unknown number of steps.",
|
|
8111
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" }
|
|
8112
8147
|
}
|
|
8113
8148
|
],
|
|
8114
8149
|
"events": [],
|
|
@@ -8118,6 +8153,11 @@
|
|
|
8118
8153
|
"name": "indeterminate",
|
|
8119
8154
|
"description": "Defines whether the component has unknown number of steps.",
|
|
8120
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" }
|
|
8121
8161
|
}
|
|
8122
8162
|
],
|
|
8123
8163
|
"events": []
|
package/package.json
CHANGED
package/src/Breadcrumbs.hbs
CHANGED
|
@@ -2,19 +2,17 @@
|
|
|
2
2
|
class="udex-breadcrumbs ui5-breadcrumbs-root"
|
|
3
3
|
aria-label="{{_accessibleNameText}}">
|
|
4
4
|
<ol @focusin="{{_onfocusin}}">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@click="{{_toggleDropdown}}"
|
|
5
|
+
<li class="ui5-breadcrumbs-dropdown-arrow-link-wrapper">
|
|
6
|
+
<udex-link
|
|
7
|
+
@ui5-click="{{_toggleDropdown}}"
|
|
8
8
|
class="udex-breadcrumbs__trigger {{_triggerClass}}"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
</
|
|
16
|
-
</button>
|
|
17
|
-
</li>
|
|
9
|
+
accessible-role="button"
|
|
10
|
+
aria-label="{{_dropdownArrowAccessibleNameText}}"
|
|
11
|
+
icon="slim-arrow-down"
|
|
12
|
+
icon-placement="Start"
|
|
13
|
+
aria-haspopup="true">
|
|
14
|
+
</udex-link>
|
|
15
|
+
</li>
|
|
18
16
|
{{#each _linksData}}
|
|
19
17
|
<li
|
|
20
18
|
class="udex-breadcrumbs__link-wrapper ui5-breadcrumbs-link-wrapper"
|
package/src/Breadcrumbs.ts
CHANGED
|
@@ -162,6 +162,7 @@ class UDExBreadcrumbs extends UI5Element {
|
|
|
162
162
|
|
|
163
163
|
onAfterRendering(): void {
|
|
164
164
|
this._initItemNavigation();
|
|
165
|
+
this._dropdownArrowLink.forcedTabIndex = "0";
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
_preprocessItems(): void {
|
|
@@ -289,7 +290,7 @@ class UDExBreadcrumbs extends UI5Element {
|
|
|
289
290
|
}
|
|
290
291
|
|
|
291
292
|
_focusFirstVisibleItem(): void {
|
|
292
|
-
Array.from(this.shadowRoot!.querySelectorAll<UDExLink>("[udex-link]"))[0].focus();
|
|
293
|
+
Array.from(this.shadowRoot!.querySelectorAll<UDExLink>(".udex-breadcrumbs__link-wrapper [udex-link]"))[0].focus();
|
|
293
294
|
this._shouldFocusFirstVisibleItem = false;
|
|
294
295
|
}
|
|
295
296
|
|
|
@@ -305,7 +306,7 @@ class UDExBreadcrumbs extends UI5Element {
|
|
|
305
306
|
* Getter for the list of links corresponding to the abstract breadcrumb items
|
|
306
307
|
*/
|
|
307
308
|
get _links(): Array<UDExLink> {
|
|
308
|
-
return Array.from(this.shadowRoot!.querySelectorAll<UDExLink>(".
|
|
309
|
+
return Array.from(this.shadowRoot!.querySelectorAll<UDExLink>(".ui5-breadcrumbs-link-wrapper [udex-link]"));
|
|
309
310
|
}
|
|
310
311
|
|
|
311
312
|
/**
|
package/src/Button.ts
CHANGED
|
@@ -60,6 +60,15 @@ class UDExButton extends Button {
|
|
|
60
60
|
@property({ type: Boolean })
|
|
61
61
|
toggled!: boolean;
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Defines if button has pseudo aria-disabled state
|
|
65
|
+
*
|
|
66
|
+
* @default false
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
69
|
+
@property({ type: Boolean })
|
|
70
|
+
_ariaDisabled!: boolean;
|
|
71
|
+
|
|
63
72
|
/**
|
|
64
73
|
* Defines the component design.
|
|
65
74
|
* @default "Primary"
|
package/src/ListItem.ts
CHANGED
|
@@ -230,16 +230,16 @@ class UDExListItem extends UDExListItemBase {
|
|
|
230
230
|
* @slot
|
|
231
231
|
* @public
|
|
232
232
|
*/
|
|
233
|
-
@slot()
|
|
234
|
-
firstIcon!: Array<
|
|
233
|
+
@slot({ type: UDExButton })
|
|
234
|
+
firstIcon!: Array<UDExButton>;
|
|
235
235
|
/**
|
|
236
236
|
* Slot for second icon.
|
|
237
237
|
*
|
|
238
238
|
* @slot
|
|
239
239
|
* @public
|
|
240
240
|
*/
|
|
241
|
-
@slot()
|
|
242
|
-
secondIcon!: Array<
|
|
241
|
+
@slot({ type: UDExButton })
|
|
242
|
+
secondIcon!: Array<UDExButton>;
|
|
243
243
|
|
|
244
244
|
/**
|
|
245
245
|
* Defines the role attribute of component
|
package/src/MastheadItem.ts
CHANGED
|
@@ -564,7 +564,7 @@ class UDExMastheadItem extends UI5Element implements IMastheadItem {
|
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
get isMobile(): boolean {
|
|
567
|
-
return BreakpointUtils.
|
|
567
|
+
return BreakpointUtils.isAtMost("M") || this.mastheadShell?._isMobileMode;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
get isTargetBlank(): 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
|
|
|
@@ -163,11 +180,11 @@ class UDExPagination extends UI5Element {
|
|
|
163
180
|
this.setupPages(this.pages);
|
|
164
181
|
}
|
|
165
182
|
|
|
166
|
-
get
|
|
183
|
+
get nextButtonDisabled(): boolean {
|
|
167
184
|
return this.currentPageIndex + 1 === this.pages;
|
|
168
185
|
}
|
|
169
186
|
|
|
170
|
-
get
|
|
187
|
+
get prevButtonDisabled(): boolean {
|
|
171
188
|
return this.currentPageIndex === 0;
|
|
172
189
|
}
|
|
173
190
|
|
|
@@ -234,21 +251,29 @@ class UDExPagination extends UI5Element {
|
|
|
234
251
|
}
|
|
235
252
|
|
|
236
253
|
get previousPageAccessibleName(): string {
|
|
237
|
-
|
|
238
|
-
|
|
254
|
+
const currentPageText = `${UDExPagination.i18nBundle.getText(CURRENT_PAGE)} ${this.currentPageIndex + 1}.`;
|
|
255
|
+
if (this._prevButtonPseudoDisabled || this.prevButtonDisabled) {
|
|
256
|
+
const effectiveDisabledText = this._prevButtonPseudoDisabled ? `${UDExPagination.i18nBundle.getText(DISABLED)}` : "";
|
|
257
|
+
return `${currentPageText} ${UDExPagination.i18nBundle.getText(PREVIOUS_PAGE)} ${effectiveDisabledText}`;
|
|
258
|
+
}
|
|
259
|
+
return `${currentPageText} ${UDExPagination.i18nBundle.getText(PREVIOUS_PAGE)}. ${this.activatePageAccessibleText} ${this.currentPageIndex}`;
|
|
239
260
|
}
|
|
240
261
|
|
|
241
262
|
get previousBtnTooltip(): string {
|
|
242
|
-
return !this.
|
|
263
|
+
return !this.prevButtonDisabled ? `${UDExPagination.i18nBundle.getText(PREVIOUS_PAGE)}` : "";
|
|
243
264
|
}
|
|
244
265
|
|
|
245
266
|
get nextPageAccessibleName(): string {
|
|
246
|
-
|
|
247
|
-
|
|
267
|
+
const currentPageText = `${UDExPagination.i18nBundle.getText(CURRENT_PAGE)} ${this.currentPageIndex + 1}.`;
|
|
268
|
+
if (this._nextButtonPseudoDisabled || this.nextButtonDisabled) {
|
|
269
|
+
const effectiveDisabledText = this._nextButtonPseudoDisabled ? `${UDExPagination.i18nBundle.getText(DISABLED)}` : "";
|
|
270
|
+
return `${currentPageText} ${UDExPagination.i18nBundle.getText(NEXT_PAGE)} ${effectiveDisabledText}`;
|
|
271
|
+
}
|
|
272
|
+
return `${currentPageText} ${UDExPagination.i18nBundle.getText(NEXT_PAGE)}. ${this.activatePageAccessibleText} ${this.currentPageIndex + 2}`;
|
|
248
273
|
}
|
|
249
274
|
|
|
250
275
|
get nextBtnTooltip(): string {
|
|
251
|
-
return !this.
|
|
276
|
+
return !this.nextButtonDisabled ? `${UDExPagination.i18nBundle.getText(NEXT_PAGE)}` : "";
|
|
252
277
|
}
|
|
253
278
|
|
|
254
279
|
get pagination(): Page[] {
|
|
@@ -282,6 +307,22 @@ class UDExPagination extends UI5Element {
|
|
|
282
307
|
UDExPagination.i18nBundle = await getI18nBundle("@sapudex/web-components");
|
|
283
308
|
}
|
|
284
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
|
+
|
|
285
326
|
setActive(element: HTMLElement): void {
|
|
286
327
|
const pageIndex = element.getAttribute("index")
|
|
287
328
|
? parseInt(element.getAttribute("index") || "")
|
|
@@ -304,6 +345,7 @@ class UDExPagination extends UI5Element {
|
|
|
304
345
|
|
|
305
346
|
this.currentPageIndex = currentPage + 1;
|
|
306
347
|
this._pageFocusedManually = false;
|
|
348
|
+
this._nextButtonPseudoDisabled = this.currentPageIndex === (this.pages - 1);
|
|
307
349
|
|
|
308
350
|
this.emitChangeEvent();
|
|
309
351
|
}
|
|
@@ -316,6 +358,7 @@ class UDExPagination extends UI5Element {
|
|
|
316
358
|
}
|
|
317
359
|
this.currentPageIndex -= 1;
|
|
318
360
|
this._pageFocusedManually = false;
|
|
361
|
+
this._prevButtonPseudoDisabled = this.currentPageIndex === 0;
|
|
319
362
|
|
|
320
363
|
this.emitChangeEvent();
|
|
321
364
|
}
|