@ui5/webcomponents 0.31.26 → 0.31.27

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.
@@ -2,7 +2,7 @@
2
2
  /* eslint no-unused-vars: 0 */
3
3
  import ifDefined from '@ui5/webcomponents-base/dist/renderer/ifDefined.js';
4
4
  import { html, svg, repeat, classMap, styleMap, unsafeHTML, setTags, setSuffix } from '@ui5/webcomponents-base/dist/renderer/LitRenderer.js';
5
- const block0 = (context) => { return html`<ul @click="${context._onclick}" @keydown="${context._onkeydown}" @keyup="${context._onkeyup}" @focusin="${context._onfocusin}" class="ui5-segmented-button-root" role="listbox" dir="${ifDefined(context.effectiveDir)}" aria-multiselectable="true" aria-describedby="${ifDefined(context._id)}-invisibleText" aria-roledescription=${ifDefined(context.ariaDescription)}><slot></slot><span id="${ifDefined(context._id)}-invisibleText" class="ui5-hidden-text">${ifDefined(context.ariaDescribedBy)}</span></ul>`; };
5
+ const block0 = (context) => { return html`<ul @click="${context._onclick}" @keydown="${context._onkeydown}" @keyup="${context._onkeyup}" @focusin="${context._onfocusin}" class="ui5-segmented-button-root" role="listbox" dir="${ifDefined(context.effectiveDir)}" aria-multiselectable="true" aria-describedby="${ifDefined(context._id)}-invisibleText" aria-roledescription=${ifDefined(context.ariaDescription)} aria-label=${ifDefined(context.accessibleName)}><slot></slot><span id="${ifDefined(context._id)}-invisibleText" class="ui5-hidden-text">${ifDefined(context.ariaDescribedBy)}</span></ul>`; };
6
6
 
7
7
 
8
8
  const main = (context, tags, suffix) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents",
3
- "version": "0.31.26",
3
+ "version": "0.31.27",
4
4
  "description": "UI5 Web Components: webcomponents.main",
5
5
  "ui5": {
6
6
  "webComponentsPackage": true
@@ -30,14 +30,14 @@
30
30
  "directory": "packages/main"
31
31
  },
32
32
  "dependencies": {
33
- "@ui5/webcomponents-base": "0.31.26",
34
- "@ui5/webcomponents-icons": "0.31.26",
35
- "@ui5/webcomponents-ie11": "0.31.26",
36
- "@ui5/webcomponents-localization": "0.31.26",
37
- "@ui5/webcomponents-theme-base": "0.31.26"
33
+ "@ui5/webcomponents-base": "0.31.27",
34
+ "@ui5/webcomponents-icons": "0.31.27",
35
+ "@ui5/webcomponents-ie11": "0.31.27",
36
+ "@ui5/webcomponents-localization": "0.31.27",
37
+ "@ui5/webcomponents-theme-base": "0.31.27"
38
38
  },
39
39
  "devDependencies": {
40
- "@ui5/webcomponents-tools": "0.31.26",
40
+ "@ui5/webcomponents-tools": "0.31.27",
41
41
  "chromedriver": "96.0.0"
42
42
  }
43
- }
43
+ }
@@ -9,6 +9,7 @@
9
9
  aria-multiselectable="true"
10
10
  aria-describedby="{{_id}}-invisibleText"
11
11
  aria-roledescription={{ariaDescription}}
12
+ aria-label={{accessibleName}}
12
13
  >
13
14
  <slot></slot>
14
15
 
@@ -22,7 +22,20 @@ const metadata = {
22
22
  tag: "ui5-segmented-button",
23
23
  altTag: "ui5-segmentedbutton",
24
24
  languageAware: true,
25
- properties: /** @lends sap.ui.webcomponents.main.SegmentedButton.prototype */ {},
25
+ properties: /** @lends sap.ui.webcomponents.main.SegmentedButton.prototype */ {
26
+ /**
27
+ * Sets the accessible aria name of the component.
28
+ *
29
+ * @type {String}
30
+ * @defaultvalue: ""
31
+ * @public
32
+ * @since 0.31.26
33
+ */
34
+ accessibleName: {
35
+ type: String,
36
+ defaultValue: undefined,
37
+ },
38
+ },
26
39
  managedSlots: true,
27
40
  slots: /** @lends sap.ui.webcomponents.main.SegmentedButton.prototype */ {
28
41