@ui5/webcomponents-fiori 0.31.25 → 0.31.26
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/CHANGELOG.md +11 -0
- package/dist/Wizard.js +2 -0
- package/dist/generated/templates/WizardTemplate.lit.js +1 -1
- package/package.json +7 -7
- package/src/Wizard.hbs +2 -0
- package/src/Wizard.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.31.26](https://github.com/SAP/ui5-webcomponents/compare/v0.31.25...v0.31.26) (2021-12-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui5-wizard:** announce active step when navigating via a button ([#4298](https://github.com/SAP/ui5-webcomponents/issues/4298)) ([#4420](https://github.com/SAP/ui5-webcomponents/issues/4420)) ([1998db4](https://github.com/SAP/ui5-webcomponents/commit/1998db4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.31.25](https://github.com/SAP/ui5-webcomponents/compare/v0.31.24...v0.31.25) (2021-11-29)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @ui5/webcomponents-fiori
|
package/dist/Wizard.js
CHANGED
|
@@ -682,7 +682,9 @@ class Wizard extends UI5Element {
|
|
|
682
682
|
const lastEnabledStepIndex = this.getLastEnabledStepIndex();
|
|
683
683
|
|
|
684
684
|
return this.steps.map((step, idx) => {
|
|
685
|
+
const pos = idx + 1;
|
|
685
686
|
step.stretch = idx === lastEnabledStepIndex;
|
|
687
|
+
step.stepContentAriaLabel = (step.heading ? `${this.navStepDefaultHeading} ${pos} ${step.heading}` : `${pos}`).trim();
|
|
686
688
|
return step;
|
|
687
689
|
});
|
|
688
690
|
}
|
|
@@ -4,7 +4,7 @@ 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
5
|
const block0 = (context) => { return html`<div class="ui5-wiz-root" aria-label="${ifDefined(context.ariaLabelText)}" role="region"><nav class="ui5-wiz-nav" aria-label="${ifDefined(context.navAriaLabelText)}" tabindex="-1"><div class="ui5-wiz-nav-list" role="list" aria-label="${ifDefined(context.listAriaLabelText)}" aria-controls="${ifDefined(context._id)}-wiz-content">${ repeat(context._stepsInHeader, (item, index) => item._id || index, (item, index) => block1(item, index, context)) }</div></nav><div id="${ifDefined(context._id)}-wiz-content" class="ui5-wiz-content" @scroll="${context.onScroll}">${ repeat(context._steps, (item, index) => item._id || index, (item, index) => block2(item, index, context)) }</div></div>`; };
|
|
6
6
|
const block1 = (item, index, context) => { return html`<ui5-wizard-tab heading="${ifDefined(item.heading)}" subheading="${ifDefined(item.subheading)}" icon="${ifDefined(item.icon)}" number="${ifDefined(item.number)}" ?disabled="${item.disabled}" ?selected="${item.selected}" ?hide-separator="${item.hideSeparator}" ?active-separator="${item.activeSeparator}" ?branching-separator="${item.branchingSeparator}" ._wizardTabAccInfo="${ifDefined(item.accInfo)}" data-ui5-content-ref-id="${ifDefined(item.refStepId)}" data-ui5-index="${ifDefined(item.pos)}" _tab-index="${ifDefined(item.tabIndex)}" @selection-change-requested="${context.onSelectionChangeRequested}" @focused="${context.onStepInHeaderFocused}" @click="${context._onGroupedTabClick}" style=${ifDefined(item.styles)}></ui5-wizard-tab>`; };
|
|
7
|
-
const block2 = (item, index, context) => { return html`<div class="ui5-wiz-content-item" ?hidden="${item.disabled}" ?selected="${item.selected}" ?stretch="${item.stretch}" data-ui5-content-item-ref-id="${ifDefined(item._id)}"><slot name="${ifDefined(item._individualSlot)}"></slot></div>`; };
|
|
7
|
+
const block2 = (item, index, context) => { return html`<div class="ui5-wiz-content-item" ?hidden="${item.disabled}" ?selected="${item.selected}" ?stretch="${item.stretch}" aria-label="${ifDefined(item.stepContentAriaLabel)}" role="region" data-ui5-content-item-ref-id="${ifDefined(item._id)}"><slot name="${ifDefined(item._individualSlot)}"></slot></div>`; };
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
const main = (context, tags, suffix) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-fiori",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.26",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.fiori",
|
|
5
5
|
"ui5": {
|
|
6
6
|
"webComponentsPackage": true
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"directory": "packages/fiori"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ui5/webcomponents": "0.31.
|
|
34
|
-
"@ui5/webcomponents-base": "0.31.
|
|
35
|
-
"@ui5/webcomponents-icons": "0.31.
|
|
36
|
-
"@ui5/webcomponents-ie11": "0.31.
|
|
37
|
-
"@ui5/webcomponents-theme-base": "0.31.
|
|
33
|
+
"@ui5/webcomponents": "0.31.26",
|
|
34
|
+
"@ui5/webcomponents-base": "0.31.26",
|
|
35
|
+
"@ui5/webcomponents-icons": "0.31.26",
|
|
36
|
+
"@ui5/webcomponents-ie11": "0.31.26",
|
|
37
|
+
"@ui5/webcomponents-theme-base": "0.31.26"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ui5/webcomponents-tools": "0.31.
|
|
40
|
+
"@ui5/webcomponents-tools": "0.31.26",
|
|
41
41
|
"chromedriver": "96.0.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/Wizard.hbs
CHANGED
package/src/Wizard.js
CHANGED
|
@@ -682,7 +682,9 @@ class Wizard extends UI5Element {
|
|
|
682
682
|
const lastEnabledStepIndex = this.getLastEnabledStepIndex();
|
|
683
683
|
|
|
684
684
|
return this.steps.map((step, idx) => {
|
|
685
|
+
const pos = idx + 1;
|
|
685
686
|
step.stretch = idx === lastEnabledStepIndex;
|
|
687
|
+
step.stepContentAriaLabel = (step.heading ? `${this.navStepDefaultHeading} ${pos} ${step.heading}` : `${pos}`).trim();
|
|
686
688
|
return step;
|
|
687
689
|
});
|
|
688
690
|
}
|