@ui5/webcomponents 1.10.0 → 1.10.2
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/.dev-server-port +1 -0
- package/CHANGELOG.md +101 -0
- package/dist/Avatar.d.ts +2 -2
- package/dist/Badge.d.ts +3 -3
- package/dist/Breadcrumbs.d.ts +5 -5
- package/dist/Breadcrumbs.js +1 -1
- package/dist/BusyIndicator.d.ts +136 -0
- package/dist/BusyIndicator.js +126 -208
- package/dist/BusyIndicator.js.map +1 -0
- package/dist/Button.d.ts +3 -3
- package/dist/Calendar.d.ts +3 -3
- package/dist/Calendar.js +1 -1
- package/dist/CalendarHeader.d.ts +2 -2
- package/dist/Card.d.ts +3 -3
- package/dist/Card.js +1 -1
- package/dist/CardHeader.d.ts +2 -2
- package/dist/Carousel.d.ts +318 -0
- package/dist/Carousel.js +446 -642
- package/dist/Carousel.js.map +1 -0
- package/dist/CheckBox.d.ts +3 -3
- package/dist/ColorPalette.d.ts +5 -5
- package/dist/ColorPalette.js +1 -1
- package/dist/ColorPaletteItem.d.ts +2 -2
- package/dist/ColorPalettePopover.d.ts +2 -2
- package/dist/ColorPicker.d.ts +2 -2
- package/dist/ComboBox.js +2 -2
- package/dist/CustomListItem.d.ts +1 -1
- package/dist/DatePicker.d.ts +2 -2
- package/dist/DateTimePicker.d.ts +1 -1
- package/dist/DayPicker.d.ts +2 -2
- package/dist/Dialog.d.ts +4 -5
- package/dist/FileUploader.d.ts +4 -4
- package/dist/GroupHeaderListItem.d.ts +1 -1
- package/dist/Icon.d.ts +2 -2
- package/dist/Input.d.ts +5 -5
- package/dist/Input.js +1 -1
- package/dist/Label.d.ts +2 -2
- package/dist/Link.d.ts +2 -2
- package/dist/List.d.ts +4 -3
- package/dist/List.js +1 -1
- package/dist/ListItem.d.ts +1 -1
- package/dist/Menu.d.ts +3 -3
- package/dist/Menu.js +1 -1
- package/dist/MessageStrip.d.ts +2 -2
- package/dist/MonthPicker.d.ts +2 -2
- package/dist/MultiComboBox.js +6 -2
- package/dist/MultiInput.js +1 -1
- package/dist/Panel.d.ts +2 -2
- package/dist/Popover.d.ts +1 -1
- package/dist/Popup.d.ts +3 -3
- package/dist/ProgressIndicator.d.ts +2 -2
- package/dist/RangeSlider.d.ts +1 -1
- package/dist/ResponsivePopover.d.ts +1 -1
- package/dist/SegmentedButton.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/Slider.d.ts +1 -1
- package/dist/SplitButton.d.ts +2 -2
- package/dist/StandardListItem.d.ts +2 -2
- package/dist/StepInput.d.ts +2 -2
- package/dist/SuggestionListItem.d.ts +1 -1
- package/dist/Switch.d.ts +2 -2
- package/dist/TabContainer.js +1 -2
- package/dist/Table.d.ts +6 -4
- package/dist/Table.js +1 -1
- package/dist/TableCell.d.ts +2 -2
- package/dist/TableColumn.d.ts +2 -2
- package/dist/TableGroupRow.d.ts +2 -2
- package/dist/TableRow.d.ts +2 -2
- package/dist/TimePickerBase.d.ts +4 -4
- package/dist/TimeSelection.d.ts +2 -2
- package/dist/Title.d.ts +2 -2
- package/dist/Tree.js +1 -1
- package/dist/WheelSlider.d.ts +2 -2
- package/dist/YearPicker.d.ts +2 -2
- package/dist/api.json +1 -1
- package/dist/generated/templates/CarouselTemplate.lit.js +2 -2
- package/global.d.ts +2 -2
- package/package.json +7 -7
- package/src/Badge.ts +1 -1
- package/src/Breadcrumbs.ts +1 -1
- package/src/{BusyIndicator.js → BusyIndicator.ts} +95 -100
- package/src/Calendar.ts +1 -1
- package/src/Card.ts +1 -1
- package/src/Carousel.hbs +3 -3
- package/src/{Carousel.js → Carousel.ts} +242 -234
- package/src/CheckBox.ts +1 -1
- package/src/ColorPalette.ts +1 -1
- package/src/ComboBox.js +2 -2
- package/src/Dialog.ts +2 -2
- package/src/Input.ts +1 -1
- package/src/List.ts +1 -1
- package/src/ListItem.ts +1 -1
- package/src/Menu.ts +1 -1
- package/src/MultiComboBox.js +6 -2
- package/src/MultiInput.js +1 -1
- package/src/SegmentedButton.js +1 -1
- package/src/Select.js +1 -1
- package/src/TabContainer.js +1 -2
- package/src/Table.ts +1 -1
- package/src/Tree.hbs +1 -1
- package/src/Tree.js +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint no-unused-vars: 0 */
|
|
2
2
|
import { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
|
3
3
|
|
|
4
|
-
const block0 = (context, tags, suffix) => html`<section class="ui5-carousel-root" tabindex="0" role="listbox" aria-activedescendant="${ifDefined(context.ariaActiveDescendant)}" @focusin="${context._onfocusin}" @keydown=${context._onkeydown} @mouseout="${context._onmouseout}" @mouseover="${context._onmouseover}"><div class="${classMap(context.classes.viewport)}" part="content"><div class="${classMap(context.classes.content)}" style="${styleMap(context.styles.content)}">${ repeat(context.items, (item, index) => item._id || index, (item, index) => block1(item, index, context, tags, suffix)) }</div></div>${ context.
|
|
4
|
+
const block0 = (context, tags, suffix) => html`<section class="ui5-carousel-root" tabindex="0" role="listbox" aria-activedescendant="${ifDefined(context.ariaActiveDescendant)}" @focusin="${context._onfocusin}" @keydown=${context._onkeydown} @mouseout="${context._onmouseout}" @mouseover="${context._onmouseover}"><div class="${classMap(context.classes.viewport)}" part="content"><div class="${classMap(context.classes.content)}" style="${styleMap(context.styles.content)}">${ repeat(context.items, (item, index) => item._id || index, (item, index) => block1(item, index, context, tags, suffix)) }</div></div>${ context.showArrows.content ? block2(context, tags, suffix) : undefined }${ context.renderNavigation ? block3(context, tags, suffix) : undefined }</div></section> `;
|
|
5
5
|
const block1 = (item, index, context, tags, suffix) => html`<div id="${ifDefined(item.id)}" class="ui5-carousel-item ${ifDefined(item.classes)}" style="${styleMap(item.styles)}" role="option" aria-posinset="${ifDefined(item.posinset)}" aria-setsize="${ifDefined(item.setsize)}" part="item"><slot name="${ifDefined(item.item._individualSlot)}" tabindex="${ifDefined(item.tabIndex)}"></slot></div>`;
|
|
6
6
|
const block2 = (context, tags, suffix) => suffix ? html`<div class="ui5-carousel-navigation-arrows"><${scopeTag("ui5-button", tags, suffix)} arrow-back tooltip="${ifDefined(context.previousPageText)}" class="ui5-carousel-navigation-button ${classMap(context.classes.navPrevButton)}" icon="slim-arrow-left" tabindex="-1" @click=${context._navButtonClick}></${scopeTag("ui5-button", tags, suffix)}><${scopeTag("ui5-button", tags, suffix)} arrow-forward tooltip="${ifDefined(context.nextPageText)}" class="ui5-carousel-navigation-button ${classMap(context.classes.navNextButton)}" icon="slim-arrow-right" tabindex="-1" @click=${context._navButtonClick}></${scopeTag("ui5-button", tags, suffix)}></div>` : html`<div class="ui5-carousel-navigation-arrows"><ui5-button arrow-back tooltip="${ifDefined(context.previousPageText)}" class="ui5-carousel-navigation-button ${classMap(context.classes.navPrevButton)}" icon="slim-arrow-left" tabindex="-1" @click=${context._navButtonClick}></ui5-button><ui5-button arrow-forward tooltip="${ifDefined(context.nextPageText)}" class="ui5-carousel-navigation-button ${classMap(context.classes.navNextButton)}" icon="slim-arrow-right" tabindex="-1" @click=${context._navButtonClick}></ui5-button></div>`;
|
|
7
|
-
const block3 = (context, tags, suffix) => html`<div class="${classMap(context.classes.navigation)}">${ context.
|
|
7
|
+
const block3 = (context, tags, suffix) => html`<div class="${classMap(context.classes.navigation)}">${ context.showArrows.navigation ? block4(context, tags, suffix) : undefined }<div class="ui5-carousel-navigation">${ !context.hidePageIndicator ? block5(context, tags, suffix) : undefined }</div>${ context.showArrows.navigation ? block9(context, tags, suffix) : undefined }</div>`;
|
|
8
8
|
const block4 = (context, tags, suffix) => suffix ? html`<${scopeTag("ui5-button", tags, suffix)} arrow-back tooltip="${ifDefined(context.previousPageText)}" class="ui5-carousel-navigation-button ${classMap(context.classes.navPrevButton)}" icon="slim-arrow-left" tabindex="-1" @click=${context._navButtonClick}></${scopeTag("ui5-button", tags, suffix)}>` : html`<ui5-button arrow-back tooltip="${ifDefined(context.previousPageText)}" class="ui5-carousel-navigation-button ${classMap(context.classes.navPrevButton)}" icon="slim-arrow-left" tabindex="-1" @click=${context._navButtonClick}></ui5-button>`;
|
|
9
9
|
const block5 = (context, tags, suffix) => html`${ context.isPageTypeDots ? block6(context, tags, suffix) : block8(context, tags, suffix) }`;
|
|
10
10
|
const block6 = (context, tags, suffix) => html`${ repeat(context.dots, (item, index) => item._id || index, (item, index) => block7(item, index, context, tags, suffix)) }`;
|
package/global.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line
|
|
2
|
-
import "@ui5/webcomponents-base/global";
|
|
3
|
-
import { TemplateFunction } from "@ui5/webcomponents-base/
|
|
2
|
+
import "@ui5/webcomponents-base/dist/global";
|
|
3
|
+
import { TemplateFunction } from "@ui5/webcomponents-base/dist/renderer/executeTemplate.js";
|
|
4
4
|
|
|
5
5
|
export {};
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.main",
|
|
5
5
|
"ui5": {
|
|
6
6
|
"webComponentsPackage": true
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"directory": "packages/main"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ui5/webcomponents-base": "1.10.
|
|
46
|
-
"@ui5/webcomponents-icons": "1.10.
|
|
47
|
-
"@ui5/webcomponents-localization": "1.10.
|
|
48
|
-
"@ui5/webcomponents-theming": "1.10.
|
|
45
|
+
"@ui5/webcomponents-base": "1.10.2",
|
|
46
|
+
"@ui5/webcomponents-icons": "1.10.2",
|
|
47
|
+
"@ui5/webcomponents-localization": "1.10.2",
|
|
48
|
+
"@ui5/webcomponents-theming": "1.10.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@ui5/webcomponents-tools": "1.10.
|
|
52
|
-
"chromedriver": "
|
|
51
|
+
"@ui5/webcomponents-tools": "1.10.2",
|
|
52
|
+
"chromedriver": "109.0.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/Badge.ts
CHANGED
package/src/Breadcrumbs.ts
CHANGED
|
@@ -91,7 +91,7 @@ type FocusAdaptor = ITabbable & {
|
|
|
91
91
|
* @alias sap.ui.webc.main.Breadcrumbs
|
|
92
92
|
* @extends sap.ui.webc.base.UI5Element
|
|
93
93
|
* @tagname ui5-breadcrumbs
|
|
94
|
-
* @appenddocs BreadcrumbsItem
|
|
94
|
+
* @appenddocs sap.ui.webc.main.BreadcrumbsItem
|
|
95
95
|
* @public
|
|
96
96
|
* @since 1.0.0-rc.15
|
|
97
97
|
*/
|
|
@@ -1,105 +1,26 @@
|
|
|
1
1
|
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
2
|
+
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
|
|
3
|
+
import languageAware from "@ui5/webcomponents-base/dist/decorators/languageAware.js";
|
|
4
|
+
import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
2
5
|
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
|
3
6
|
import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
|
7
|
+
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
|
8
|
+
import type { I18nText } from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
|
4
9
|
import { isTabNext } from "@ui5/webcomponents-base/dist/Keys.js";
|
|
5
10
|
import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
|
|
11
|
+
import type { Timeout } from "@ui5/webcomponents-base/dist/types.js";
|
|
6
12
|
import BusyIndicatorSize from "./types/BusyIndicatorSize.js";
|
|
7
13
|
import Label from "./Label.js";
|
|
8
14
|
|
|
9
15
|
// Template
|
|
10
16
|
import BusyIndicatorTemplate from "./generated/templates/BusyIndicatorTemplate.lit.js";
|
|
11
17
|
|
|
18
|
+
// @ts-ignore
|
|
12
19
|
import { BUSY_INDICATOR_TITLE } from "./generated/i18n/i18n-defaults.js";
|
|
13
20
|
|
|
14
21
|
// Styles
|
|
15
22
|
import busyIndicatorCss from "./generated/themes/BusyIndicator.css.js";
|
|
16
23
|
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
const metadata = {
|
|
21
|
-
tag: "ui5-busy-indicator",
|
|
22
|
-
languageAware: true,
|
|
23
|
-
slots: /** @lends sap.ui.webc.main.BusyIndicator.prototype */ {
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Determines the content over which the component will appear.
|
|
27
|
-
*
|
|
28
|
-
* @type {Node[]}
|
|
29
|
-
* @slot
|
|
30
|
-
* @public
|
|
31
|
-
*/
|
|
32
|
-
"default": {
|
|
33
|
-
type: Node,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
properties: /** @lends sap.ui.webc.main.BusyIndicator.prototype */ {
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Defines text to be displayed below the component. It can be used to inform the user of the current operation.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @public
|
|
42
|
-
* @defaultvalue ""
|
|
43
|
-
* @since 1.0.0-rc.7
|
|
44
|
-
*/
|
|
45
|
-
text: {
|
|
46
|
-
type: String,
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Defines the size of the component.
|
|
51
|
-
*
|
|
52
|
-
* <br><br>
|
|
53
|
-
* <b>Note:</b>
|
|
54
|
-
*
|
|
55
|
-
* <ul>
|
|
56
|
-
* <li><code>Small</code></li>
|
|
57
|
-
* <li><code>Medium</code></li>
|
|
58
|
-
* <li><code>Large</code></li>
|
|
59
|
-
* </ul>
|
|
60
|
-
*
|
|
61
|
-
* @type {sap.ui.webc.main.types.BusyIndicatorSize}
|
|
62
|
-
* @defaultvalue "Medium"
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
65
|
-
size: {
|
|
66
|
-
type: BusyIndicatorSize,
|
|
67
|
-
defaultValue: BusyIndicatorSize.Medium,
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Defines if the busy indicator is visible on the screen. By default it is not.
|
|
72
|
-
*
|
|
73
|
-
* @type {boolean}
|
|
74
|
-
* @defaultvalue false
|
|
75
|
-
* @public
|
|
76
|
-
*/
|
|
77
|
-
active: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Defines the delay in milliseconds, after which the busy indicator will be visible on the screen.
|
|
83
|
-
*
|
|
84
|
-
* @type {sap.ui.webc.base.types.Integer}
|
|
85
|
-
* @defaultValue 1000
|
|
86
|
-
* @public
|
|
87
|
-
*/
|
|
88
|
-
delay: {
|
|
89
|
-
type: Integer,
|
|
90
|
-
defaultValue: 1000,
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Defines if the component is currently in busy state.
|
|
95
|
-
* @private
|
|
96
|
-
*/
|
|
97
|
-
_isBusy: {
|
|
98
|
-
type: Boolean,
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
|
-
|
|
103
24
|
/**
|
|
104
25
|
* @class
|
|
105
26
|
*
|
|
@@ -143,7 +64,85 @@ const metadata = {
|
|
|
143
64
|
* @public
|
|
144
65
|
* @since 0.12.0
|
|
145
66
|
*/
|
|
67
|
+
@customElement("ui5-busy-indicator")
|
|
68
|
+
@languageAware
|
|
146
69
|
class BusyIndicator extends UI5Element {
|
|
70
|
+
/**
|
|
71
|
+
* Defines text to be displayed below the component. It can be used to inform the user of the current operation.
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @name sap.ui.webc.main.BusyIndicator.prototype.text
|
|
74
|
+
* @public
|
|
75
|
+
* @defaultvalue ""
|
|
76
|
+
* @since 1.0.0-rc.7
|
|
77
|
+
*/
|
|
78
|
+
@property()
|
|
79
|
+
text!: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Defines the size of the component.
|
|
83
|
+
*
|
|
84
|
+
* <br><br>
|
|
85
|
+
* <b>Note:</b>
|
|
86
|
+
*
|
|
87
|
+
* <ul>
|
|
88
|
+
* <li><code>Small</code></li>
|
|
89
|
+
* <li><code>Medium</code></li>
|
|
90
|
+
* <li><code>Large</code></li>
|
|
91
|
+
* </ul>
|
|
92
|
+
*
|
|
93
|
+
* @type {sap.ui.webc.main.types.BusyIndicatorSize}
|
|
94
|
+
* @name sap.ui.webc.main.BusyIndicator.prototype.size
|
|
95
|
+
* @defaultvalue "Medium"
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
@property({ type: BusyIndicatorSize, defaultValue: BusyIndicatorSize.Medium })
|
|
99
|
+
size!: BusyIndicatorSize;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Defines if the busy indicator is visible on the screen. By default it is not.
|
|
103
|
+
*
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @name sap.ui.webc.main.BusyIndicator.prototype.active
|
|
106
|
+
* @defaultvalue false
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
@property({ type: Boolean })
|
|
110
|
+
active!: boolean;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Defines the delay in milliseconds, after which the busy indicator will be visible on the screen.
|
|
114
|
+
*
|
|
115
|
+
* @type {sap.ui.webc.base.types.Integer}
|
|
116
|
+
* @name sap.ui.webc.main.BusyIndicator.prototype.delay
|
|
117
|
+
* @defaultValue 1000
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
@property({ validator: Integer, defaultValue: 1000 })
|
|
121
|
+
delay!: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Defines if the component is currently in busy state.
|
|
125
|
+
* @private
|
|
126
|
+
*/
|
|
127
|
+
@property({ type: Boolean })
|
|
128
|
+
_isBusy!: boolean;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Determines the content over which the component will appear.
|
|
132
|
+
*
|
|
133
|
+
* @type {Node[]}
|
|
134
|
+
* @name sap.ui.webc.main.BusyIndicator.prototype.default
|
|
135
|
+
* @slot
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
_keydownHandler: (e: KeyboardEvent) => void;
|
|
140
|
+
_preventEventHandler: (e: KeyboardEvent) => void;
|
|
141
|
+
_busyTimeoutId?: Timeout;
|
|
142
|
+
focusForward?: boolean;
|
|
143
|
+
|
|
144
|
+
static i18nBundle: I18nBundle;
|
|
145
|
+
|
|
147
146
|
constructor() {
|
|
148
147
|
super();
|
|
149
148
|
this._keydownHandler = this._handleKeydown.bind(this);
|
|
@@ -169,10 +168,6 @@ class BusyIndicator extends UI5Element {
|
|
|
169
168
|
this.removeEventListener("keyup", this._preventEventHandler, true);
|
|
170
169
|
}
|
|
171
170
|
|
|
172
|
-
static get metadata() {
|
|
173
|
-
return metadata;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
171
|
static get styles() {
|
|
177
172
|
return busyIndicatorCss;
|
|
178
173
|
}
|
|
@@ -194,7 +189,7 @@ class BusyIndicator extends UI5Element {
|
|
|
194
189
|
}
|
|
195
190
|
|
|
196
191
|
get ariaTitle() {
|
|
197
|
-
return BusyIndicator.i18nBundle.getText(BUSY_INDICATOR_TITLE);
|
|
192
|
+
return BusyIndicator.i18nBundle.getText(BUSY_INDICATOR_TITLE as I18nText);
|
|
198
193
|
}
|
|
199
194
|
|
|
200
195
|
get labelId() {
|
|
@@ -226,37 +221,37 @@ class BusyIndicator extends UI5Element {
|
|
|
226
221
|
}
|
|
227
222
|
}
|
|
228
223
|
|
|
229
|
-
_handleKeydown(
|
|
224
|
+
_handleKeydown(e: KeyboardEvent) {
|
|
230
225
|
if (!this._isBusy) {
|
|
231
226
|
return;
|
|
232
227
|
}
|
|
233
228
|
|
|
234
|
-
|
|
229
|
+
e.stopImmediatePropagation();
|
|
235
230
|
|
|
236
231
|
// move the focus to the last element in this DOM and let TAB continue to the next focusable element
|
|
237
|
-
if (isTabNext(
|
|
232
|
+
if (isTabNext(e)) {
|
|
238
233
|
this.focusForward = true;
|
|
239
|
-
this.shadowRoot
|
|
234
|
+
this.shadowRoot!.querySelector<HTMLElement>("[data-ui5-focus-redirect]")!.focus();
|
|
240
235
|
this.focusForward = false;
|
|
241
236
|
}
|
|
242
237
|
}
|
|
243
238
|
|
|
244
|
-
_preventEvent(
|
|
239
|
+
_preventEvent(e: KeyboardEvent) {
|
|
245
240
|
if (this._isBusy) {
|
|
246
|
-
|
|
241
|
+
e.stopImmediatePropagation();
|
|
247
242
|
}
|
|
248
243
|
}
|
|
249
244
|
|
|
250
245
|
/**
|
|
251
246
|
* Moves the focus to busy area when coming with SHIFT + TAB
|
|
252
247
|
*/
|
|
253
|
-
_redirectFocus(
|
|
248
|
+
_redirectFocus(e: FocusEvent) {
|
|
254
249
|
if (this.focusForward) {
|
|
255
250
|
return;
|
|
256
251
|
}
|
|
257
252
|
|
|
258
|
-
|
|
259
|
-
this.shadowRoot
|
|
253
|
+
e.preventDefault();
|
|
254
|
+
this.shadowRoot!.querySelector<HTMLElement>(".ui5-busy-indicator-busy-area")!.focus();
|
|
260
255
|
}
|
|
261
256
|
}
|
|
262
257
|
|
package/src/Calendar.ts
CHANGED
|
@@ -161,7 +161,7 @@ type CalendarChangeEventDetail = {
|
|
|
161
161
|
* @alias sap.ui.webc.main.Calendar
|
|
162
162
|
* @extends sap.ui.webc.main.CalendarPart
|
|
163
163
|
* @tagname ui5-calendar
|
|
164
|
-
* @appenddocs CalendarDate
|
|
164
|
+
* @appenddocs sap.ui.webc.main.CalendarDate
|
|
165
165
|
* @public
|
|
166
166
|
* @since 1.0.0-rc.11
|
|
167
167
|
*/
|
package/src/Card.ts
CHANGED
package/src/Carousel.hbs
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
-
{{#if
|
|
28
|
+
{{#if showArrows.content}}
|
|
29
29
|
<div class="ui5-carousel-navigation-arrows">
|
|
30
30
|
{{> arrow-back}}
|
|
31
31
|
{{> arrow-forward}}
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
{{#if renderNavigation}}
|
|
36
36
|
<div class="{{classes.navigation}}">
|
|
37
|
-
{{#if
|
|
37
|
+
{{#if showArrows.navigation}}
|
|
38
38
|
{{> arrow-back}}
|
|
39
39
|
{{/if}}
|
|
40
40
|
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
{{/unless}}
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
|
-
{{#if
|
|
58
|
+
{{#if showArrows.navigation}}
|
|
59
59
|
{{> arrow-forward}}
|
|
60
60
|
{{/if}}
|
|
61
61
|
</div>
|