@ui5/webcomponents 0.31.23 → 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.
Files changed (39) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/CalendarHeader.js +2 -2
  3. package/dist/Card.js +1 -0
  4. package/dist/DayPicker.js +5 -0
  5. package/dist/Input.js +4 -0
  6. package/dist/List.js +1 -0
  7. package/dist/MessageStrip.js +30 -2
  8. package/dist/MultiComboBox.js +4 -0
  9. package/dist/SegmentedButton.js +14 -1
  10. package/dist/TabContainer.js +1 -1
  11. package/dist/TableRow.js +1 -1
  12. package/dist/TextArea.js +2 -1
  13. package/dist/api.json +1 -1
  14. package/dist/generated/i18n/i18n-defaults.js +2 -2
  15. package/dist/generated/templates/InputPopoverTemplate.lit.js +1 -1
  16. package/dist/generated/templates/MessageStripTemplate.lit.js +1 -1
  17. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -1
  18. package/dist/generated/templates/SegmentedButtonTemplate.lit.js +1 -1
  19. package/dist/generated/templates/TabContainerTemplate.lit.js +2 -2
  20. package/dist/generated/themes/DatePickerPopover.css.js +1 -1
  21. package/dist/i18n/messagebundle.properties +16 -1
  22. package/package.json +8 -8
  23. package/src/CalendarHeader.js +2 -2
  24. package/src/Card.js +1 -0
  25. package/src/DayPicker.js +5 -0
  26. package/src/Input.js +4 -0
  27. package/src/InputPopover.hbs +1 -1
  28. package/src/List.js +1 -0
  29. package/src/MessageStrip.hbs +6 -6
  30. package/src/MessageStrip.js +30 -2
  31. package/src/MultiComboBox.js +4 -0
  32. package/src/MultiComboBoxPopover.hbs +1 -1
  33. package/src/SegmentedButton.hbs +1 -0
  34. package/src/SegmentedButton.js +14 -1
  35. package/src/TabContainer.hbs +3 -0
  36. package/src/TabContainer.js +1 -1
  37. package/src/TableRow.js +1 -1
  38. package/src/TextArea.js +2 -1
  39. package/src/i18n/messagebundle.properties +16 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,60 @@
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.27](https://github.com/SAP/ui5-webcomponents/compare/v0.31.25...v0.31.27) (2021-12-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui5-message-strip:** make speech output more comprehensive ([e3fe05f](https://github.com/SAP/ui5-webcomponents/commit/e3fe05f)), closes [#4416](https://github.com/SAP/ui5-webcomponents/issues/4416)
12
+ * **ui5-textarea:** Calc properly TextArea's size for showExceeds property ([#4152](https://github.com/SAP/ui5-webcomponents/issues/4152)) ([#4417](https://github.com/SAP/ui5-webcomponents/issues/4417)) ([58e9249](https://github.com/SAP/ui5-webcomponents/commit/58e9249))
13
+
14
+
15
+ ### Features
16
+
17
+ * **ui5-segmented-button:** accessibleName property implemented ([#4418](https://github.com/SAP/ui5-webcomponents/issues/4418)) ([5cb963e](https://github.com/SAP/ui5-webcomponents/commit/5cb963e)), closes [#4000](https://github.com/SAP/ui5-webcomponents/issues/4000)
18
+
19
+
20
+
21
+
22
+
23
+ ## [0.31.26](https://github.com/SAP/ui5-webcomponents/compare/v0.31.25...v0.31.26) (2021-12-06)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * **ui5-message-strip:** make speech output more comprehensive ([e3fe05f](https://github.com/SAP/ui5-webcomponents/commit/e3fe05f)), closes [#4416](https://github.com/SAP/ui5-webcomponents/issues/4416)
29
+ * **ui5-textarea:** Calc properly TextArea's size for showExceeds property ([#4152](https://github.com/SAP/ui5-webcomponents/issues/4152)) ([#4417](https://github.com/SAP/ui5-webcomponents/issues/4417)) ([58e9249](https://github.com/SAP/ui5-webcomponents/commit/58e9249))
30
+
31
+
32
+
33
+
34
+
35
+ ## [0.31.25](https://github.com/SAP/ui5-webcomponents/compare/v0.31.24...v0.31.25) (2021-11-29)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * **ui5-input, ui5-multi-combobox:** value state popup now aligned properly in RTL mode ([#4310](https://github.com/SAP/ui5-webcomponents/issues/4310)) ([#4382](https://github.com/SAP/ui5-webcomponents/issues/4382)) ([a855dcc](https://github.com/SAP/ui5-webcomponents/commit/a855dcc))
41
+ * **ui5-table-row:** Prevent space when target is tr ([f891e9d](https://github.com/SAP/ui5-webcomponents/commit/f891e9d))
42
+
43
+
44
+
45
+
46
+
47
+ ## [0.31.24](https://github.com/SAP/ui5-webcomponents/compare/v0.31.23...v0.31.24) (2021-11-23)
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * adding stable selectors for tab container and shellbar ([#4369](https://github.com/SAP/ui5-webcomponents/issues/4369)) ([dc2ea58](https://github.com/SAP/ui5-webcomponents/commit/dc2ea58))
53
+ * **ui5-date-picker:** Align day names in hide-week-numbers mode ([#4309](https://github.com/SAP/ui5-webcomponents/issues/4309)) ([9dcc887](https://github.com/SAP/ui5-webcomponents/commit/9dcc887)), closes [#4260](https://github.com/SAP/ui5-webcomponents/issues/4260)
54
+ * **ui5-tab-container:** selector fixed ([#4261](https://github.com/SAP/ui5-webcomponents/issues/4261)) ([#4273](https://github.com/SAP/ui5-webcomponents/issues/4273)) ([735d9c4](https://github.com/SAP/ui5-webcomponents/commit/735d9c4))
55
+
56
+
57
+
58
+
59
+
6
60
  ## [0.31.23](https://github.com/SAP/ui5-webcomponents/compare/v0.31.22...v0.31.23) (2021-11-17)
7
61
 
8
62
 
@@ -205,11 +205,11 @@ class CalendarHeader extends UI5Element {
205
205
  return {
206
206
  prevButton: {
207
207
  "ui5-calheader-arrowbtn": true,
208
- "ui5-calheader-arrowbtn-disabled": this._isPrevButtonDisabled,
208
+ "ui5-calheader-arrowbtn-disabled": this.isPrevButtonDisabled,
209
209
  },
210
210
  nextButton: {
211
211
  "ui5-calheader-arrowbtn": true,
212
- "ui5-calheader-arrowbtn-disabled": this._isNextButtonDisabled,
212
+ "ui5-calheader-arrowbtn-disabled": this.isNextButtonDisabled,
213
213
  },
214
214
  };
215
215
  }
package/dist/Card.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
2
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
3
3
  import { fetchI18nBundle, getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
4
+ import findNodeOwner from "@ui5/webcomponents-base/dist/util/findNodeOwner.js";
4
5
  import { isSpace, isEnter } from "@ui5/webcomponents-base/dist/Keys.js";
5
6
  import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
6
7
  import CardTemplate from "./generated/templates/CardTemplate.lit.js";
package/dist/DayPicker.js CHANGED
@@ -318,6 +318,10 @@ class DayPicker extends CalendarPart {
318
318
  }
319
319
 
320
320
  this._dayNames[1].classes += " ui5-dp-firstday";
321
+
322
+ if (this.shouldHideWeekNumbers) {
323
+ this._dayNames.shift();
324
+ }
321
325
  }
322
326
 
323
327
  onAfterRendering() {
@@ -721,6 +725,7 @@ class DayPicker extends CalendarPart {
721
725
  return {
722
726
  wrapper: {
723
727
  display: this._hidden ? "none" : "flex",
728
+ "justify-content": "center",
724
729
  },
725
730
  main: {
726
731
  width: "100%",
package/dist/Input.js CHANGED
@@ -1275,6 +1275,10 @@ class Input extends UI5Element {
1275
1275
  return this.placeholder;
1276
1276
  }
1277
1277
 
1278
+ get _valueStatePopoverHorizontalAlign() {
1279
+ return this.effectiveDir !== "rtl" ? "Left" : "Right";
1280
+ }
1281
+
1278
1282
  /**
1279
1283
  * Returns the caret position inside the native input
1280
1284
  * @protected
package/dist/List.js CHANGED
@@ -820,6 +820,7 @@ class List extends UI5Element {
820
820
  } else {
821
821
  this.focusPreviouslyFocusedItem();
822
822
  }
823
+ event.stopImmediatePropagation();
823
824
  }
824
825
 
825
826
  this.setForwardingFocus(false);
@@ -10,7 +10,14 @@ import MessageStripType from "./types/MessageStripType.js";
10
10
  import MessageStripTemplate from "./generated/templates/MessageStripTemplate.lit.js";
11
11
  import Icon from "./Icon.js";
12
12
  import Button from "./Button.js";
13
- import { MESSAGE_STRIP_CLOSE_BUTTON } from "./generated/i18n/i18n-defaults.js";
13
+ import {
14
+ MESSAGE_STRIP_CLOSE_BUTTON,
15
+ MESSAGE_STRIP_CLOSABLE,
16
+ MESSAGE_STRIP_ERROR,
17
+ MESSAGE_STRIP_WARNING,
18
+ MESSAGE_STRIP_SUCCESS,
19
+ MESSAGE_STRIP_INFORMATION,
20
+ } from "./generated/i18n/i18n-defaults.js";
14
21
 
15
22
  // Styles
16
23
  import messageStripCss from "./generated/themes/MessageStrip.css.js";
@@ -189,14 +196,27 @@ class MessageStrip extends UI5Element {
189
196
  };
190
197
  }
191
198
 
199
+ get designAnnouncementMappings() {
200
+ return {
201
+ "Information": this.i18nBundle.getText(MESSAGE_STRIP_INFORMATION),
202
+ "Positive": this.i18nBundle.getText(MESSAGE_STRIP_SUCCESS),
203
+ "Negative": this.i18nBundle.getText(MESSAGE_STRIP_ERROR),
204
+ "Warning": this.i18nBundle.getText(MESSAGE_STRIP_WARNING),
205
+ };
206
+ }
207
+
192
208
  get hiddenText() {
193
- return `Message Strip ${this.type} ${this.noCloseButton ? "" : "closable"}`;
209
+ return `${this.designAnnouncementMappings[this.type]} ${this.noCloseButton ? "" : this._closableText}`;
194
210
  }
195
211
 
196
212
  get _closeButtonText() {
197
213
  return this.i18nBundle.getText(MESSAGE_STRIP_CLOSE_BUTTON);
198
214
  }
199
215
 
216
+ get _closableText() {
217
+ return this.i18nBundle.getText(MESSAGE_STRIP_CLOSABLE);
218
+ }
219
+
200
220
  get classes() {
201
221
  return {
202
222
  root: {
@@ -219,6 +239,14 @@ class MessageStrip extends UI5Element {
219
239
  get typeClasses() {
220
240
  return MessageStrip.typeClassesMappings()[this.type];
221
241
  }
242
+
243
+ get accInfo() {
244
+ return {
245
+ "button": {
246
+ "title": this._closeButtonText,
247
+ },
248
+ };
249
+ }
222
250
  }
223
251
 
224
252
  MessageStrip.define();
@@ -852,6 +852,10 @@ class MultiComboBox extends UI5Element {
852
852
  return (this._isFocusInside || this.open) && !this.readonly;
853
853
  }
854
854
 
855
+ get _valueStatePopoverHorizontalAlign() {
856
+ return this.effectiveDir !== "rtl" ? "Left" : "Right";
857
+ }
858
+
855
859
  get classes() {
856
860
  return {
857
861
  popoverValueState: {
@@ -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
 
@@ -458,7 +458,7 @@ class TabContainer extends UI5Element {
458
458
  }
459
459
 
460
460
  async _onOverflowButtonClick(event) {
461
- const button = this.overflowButton[0] || this.getDomRef().querySelector(".ui-tc__overflowButton > ui5-button");
461
+ const button = this.overflowButton[0] || this.getDomRef().querySelector(".ui-tc__overflowButton > [ui5-button]");
462
462
 
463
463
  if (event.target !== button) {
464
464
  return;
package/dist/TableRow.js CHANGED
@@ -105,7 +105,7 @@ class TableRow extends UI5Element {
105
105
  this.fireEvent("row-click", { row: this });
106
106
  }
107
107
 
108
- if (isSpace(event)) {
108
+ if (isSpace(event) && event.target.tagName.toLowerCase() === "tr") {
109
109
  event.preventDefault();
110
110
  }
111
111
  }
package/dist/TextArea.js CHANGED
@@ -542,6 +542,7 @@ class TextArea extends UI5Element {
542
542
 
543
543
  get styles() {
544
544
  const lineHeight = 1.4 * 16;
545
+ const mainHeight = (this.rows * lineHeight) + (this.showExceededText ? 32 : 0);
545
546
 
546
547
  return {
547
548
  mirror: {
@@ -549,7 +550,7 @@ class TextArea extends UI5Element {
549
550
  },
550
551
  main: {
551
552
  width: "100%",
552
- height: (this.rows && !this.growing) ? `${this.rows * lineHeight}px` : "100%",
553
+ height: (this.rows && !this.growing) ? `${mainHeight}px` : "100%",
553
554
  },
554
555
  focusDiv: {
555
556
  "height": (this.showExceededText ? "calc(100% - 26px)" : "100%"),