@ui5/webcomponents 2.22.0-rc.0 → 2.22.0-rc.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/AvatarBadge.d.ts +15 -1
  4. package/dist/AvatarBadge.js +40 -3
  5. package/dist/AvatarBadge.js.map +1 -1
  6. package/dist/AvatarBadgeTemplate.js +1 -1
  7. package/dist/AvatarBadgeTemplate.js.map +1 -1
  8. package/dist/Breadcrumbs.js +25 -0
  9. package/dist/Breadcrumbs.js.map +1 -1
  10. package/dist/BreadcrumbsItem.d.ts +10 -0
  11. package/dist/BreadcrumbsItem.js +18 -0
  12. package/dist/BreadcrumbsItem.js.map +1 -1
  13. package/dist/Calendar.d.ts +2 -2
  14. package/dist/ColorPaletteItem.d.ts +10 -1
  15. package/dist/ColorPaletteItem.js +7 -1
  16. package/dist/ColorPaletteItem.js.map +1 -1
  17. package/dist/ColorPaletteItemTemplate.js +1 -1
  18. package/dist/ColorPaletteItemTemplate.js.map +1 -1
  19. package/dist/ComboBox.js +6 -1
  20. package/dist/ComboBox.js.map +1 -1
  21. package/dist/DateComponentBase.d.ts +3 -3
  22. package/dist/DayPicker.js.map +1 -1
  23. package/dist/Input.d.ts +5 -2
  24. package/dist/Input.js +3 -2
  25. package/dist/Input.js.map +1 -1
  26. package/dist/MessageStrip.js +1 -0
  27. package/dist/MessageStrip.js.map +1 -1
  28. package/dist/MonthPicker.d.ts +3 -3
  29. package/dist/MonthPicker.js +1 -1
  30. package/dist/MonthPicker.js.map +1 -1
  31. package/dist/MultiComboBox.js +3 -0
  32. package/dist/MultiComboBox.js.map +1 -1
  33. package/dist/StepInput.d.ts +2 -2
  34. package/dist/StepInput.js +17 -7
  35. package/dist/StepInput.js.map +1 -1
  36. package/dist/Switch.d.ts +2 -0
  37. package/dist/Switch.js +7 -1
  38. package/dist/Switch.js.map +1 -1
  39. package/dist/SwitchTemplate.js +2 -2
  40. package/dist/SwitchTemplate.js.map +1 -1
  41. package/dist/TimePicker.d.ts +2 -2
  42. package/dist/YearPicker.js +2 -4
  43. package/dist/YearPicker.js.map +1 -1
  44. package/dist/YearRangePicker.js +2 -3
  45. package/dist/YearRangePicker.js.map +1 -1
  46. package/dist/css/themes/StepInput.css +1 -1
  47. package/dist/css/themes/Switch.css +1 -1
  48. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  49. package/dist/css/themes/sap_horizon_auto/parameters-bundle.css +2 -2
  50. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  51. package/dist/custom-elements-internal.json +105 -10
  52. package/dist/custom-elements.json +64 -10
  53. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  54. package/dist/generated/assets/themes/sap_horizon_auto/parameters-bundle.css.json +1 -1
  55. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  56. package/dist/generated/themes/StepInput.css.d.ts +1 -1
  57. package/dist/generated/themes/StepInput.css.js +1 -1
  58. package/dist/generated/themes/StepInput.css.js.map +1 -1
  59. package/dist/generated/themes/Switch.css.d.ts +1 -1
  60. package/dist/generated/themes/Switch.css.js +1 -1
  61. package/dist/generated/themes/Switch.css.js.map +1 -1
  62. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
  63. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  64. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  65. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.d.ts +1 -1
  66. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js +2 -2
  67. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js.map +1 -1
  68. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
  69. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  70. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  71. package/dist/vscode.html-custom-data.json +17 -7
  72. package/dist/web-types.json +46 -16
  73. package/package.json +9 -9
  74. package/src/AvatarBadgeTemplate.tsx +3 -1
  75. package/src/ColorPaletteItemTemplate.tsx +2 -2
  76. package/src/SwitchTemplate.tsx +3 -0
  77. package/src/themes/StepInput.css +2 -1
  78. package/src/themes/Switch.css +4 -2
  79. package/src/themes/sap_horizon/Select-parameters.css +2 -0
  80. package/src/themes/sap_horizon_dark/Select-parameters.css +2 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@ui5/webcomponents",
4
- "version": "2.22.0-rc.0",
4
+ "version": "2.22.0-rc.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -173,6 +173,11 @@
173
173
  "description": "### Overview\n\nThe `ui5-avatar-badge` component is used to display a badge on top of `ui5-avatar` component.\nThe badge can display an icon and supports different states for visual affordance.\n\n### Usage\n\nThe badge should be used as a child element of `ui5-avatar` in the `badge` slot.\n\n```html\n<ui5-avatar>\n <ui5-avatar-badge icon=\"edit\" slot=\"badge\"></ui5-avatar-badge>\n</ui5-avatar>\n```\n\n### Keyboard Handling\n\nThe badge does not receive keyboard focus.\n\n### ES6 Module Import\n`import \"@ui5/webcomponents/dist/AvatarBadge.js\";`\n---\n",
174
174
  "doc-url": "",
175
175
  "attributes": [
176
+ {
177
+ "name": "accessible-name",
178
+ "description": "Defines the custom text alternative of the badge icon.\n\n**Note:** If not provided, the badge uses the icon accessible name.\nIf no icon accessible name is available, a generic fallback text is used.",
179
+ "value": { "type": "string | undefined", "default": "undefined" }
180
+ },
176
181
  {
177
182
  "name": "icon",
178
183
  "description": "Defines the icon name to be displayed inside the badge.\n\n**Note:** You should import the desired icon first, then use its name as \"icon\".\n\n`import \"@ui5/webcomponents-icons/dist/{icon_name}.js\"`",
@@ -190,6 +195,11 @@
190
195
  "events": [],
191
196
  "js": {
192
197
  "properties": [
198
+ {
199
+ "name": "accessible-name",
200
+ "description": "Defines the custom text alternative of the badge icon.\n\n**Note:** If not provided, the badge uses the icon accessible name.\nIf no icon accessible name is available, a generic fallback text is used.",
201
+ "value": { "type": "string | undefined" }
202
+ },
193
203
  {
194
204
  "name": "icon",
195
205
  "description": "Defines the icon name to be displayed inside the badge.\n\n**Note:** You should import the desired icon first, then use its name as \"icon\".\n\n`import \"@ui5/webcomponents-icons/dist/{icon_name}.js\"`",
@@ -447,7 +457,7 @@
447
457
  },
448
458
  {
449
459
  "name": "ui5-breadcrumbs-item",
450
- "description": "### Overview\n\nThe `ui5-breadcrumbs-item` component defines the content of an item in `ui5-breadcrumbs`.\n---\n\n\n### **Slots:**\n - **default** - Defines the text of the component.\n\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.",
460
+ "description": "### Overview\n\nThe `ui5-breadcrumbs-item` component defines the content of an item in `ui5-breadcrumbs`.\n---\n\n\n### **Events:**\n - **click** - Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.\n\n**Note:** The event is also fired for the current page location item (the last item), which is not a link by design.\n\n### **Slots:**\n - **default** - Defines the text of the component.\n\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.",
451
461
  "doc-url": "",
452
462
  "attributes": [
453
463
  {
@@ -472,7 +482,12 @@
472
482
  "description": "Defines the text of the component.\n\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design."
473
483
  }
474
484
  ],
475
- "events": [],
485
+ "events": [
486
+ {
487
+ "name": "click",
488
+ "description": "Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.\n\n**Note:** The event is also fired for the current page location item (the last item), which is not a link by design."
489
+ }
490
+ ],
476
491
  "js": {
477
492
  "properties": [
478
493
  {
@@ -491,7 +506,12 @@
491
506
  "value": { "type": "string | undefined" }
492
507
  }
493
508
  ],
494
- "events": []
509
+ "events": [
510
+ {
511
+ "name": "click",
512
+ "description": "Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.\n\n**Note:** The event is also fired for the current page location item (the last item), which is not a link by design."
513
+ }
514
+ ]
495
515
  }
496
516
  },
497
517
  {
@@ -1634,6 +1654,11 @@
1634
1654
  "description": "Defines if the component is selected.\n\n**Note:** Only one item must be selected per <code>ui5-color-palette</code>.\nIf more than one item is defined as selected, the last one would be considered as the selected one.",
1635
1655
  "value": { "type": "boolean", "default": "false" }
1636
1656
  },
1657
+ {
1658
+ "name": "tooltip",
1659
+ "description": "Defines the tooltip of the component. When not set, the color value is used as the tooltip.",
1660
+ "value": { "type": "string | undefined", "default": "undefined" }
1661
+ },
1637
1662
  {
1638
1663
  "name": "value",
1639
1664
  "description": "Defines the colour of the component.\n\n**Note:** The value should be a valid CSS color.",
@@ -1648,6 +1673,11 @@
1648
1673
  "description": "Defines if the component is selected.\n\n**Note:** Only one item must be selected per <code>ui5-color-palette</code>.\nIf more than one item is defined as selected, the last one would be considered as the selected one.",
1649
1674
  "value": { "type": "boolean" }
1650
1675
  },
1676
+ {
1677
+ "name": "tooltip",
1678
+ "description": "Defines the tooltip of the component. When not set, the color value is used as the tooltip.",
1679
+ "value": { "type": "string | undefined" }
1680
+ },
1651
1681
  {
1652
1682
  "name": "value",
1653
1683
  "description": "Defines the colour of the component.\n\n**Note:** The value should be a valid CSS color.",
@@ -2908,7 +2938,7 @@
2908
2938
  },
2909
2939
  {
2910
2940
  "name": "ui5-datetime-input",
2911
- "description": "Extention of the UI5 Input, so we do not modify Input's private properties within the datetime components.\nIntended to be used for the DateTime components.\n---\n\n\n### **Events:**\n - **change** - Fired when the input operation has finished by pressing Enter or on focusout.\n- **close** - Fired when the suggestions picker is closed.\n- **input** - Fired when the value of the component changes at each keystroke,\nand when a suggestion item has been selected.\n- **open** - Fired when the suggestions picker is open.\n- **select** - Fired when some text has been selected.\n- **selection-change** - Fired when the user navigates to a suggestion item via the ARROW keys,\nas a preview, before the final selection.\n\n### **Slots:**\n - **default** - Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n- **icon** - Defines the icon to be displayed in the component.\n- **valueStateMessage** - Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n\n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed,\nwhen the component is in `Information`, `Critical` or `Negative` value state.\n\n**Note:** If the component has `suggestionItems`,\nthe `valueStateMessage` would be displayed as part of the same popover, if used on desktop, or dialog - on phone.\n\n### **CSS Parts:**\n - **clear-icon** - Used to style the clear icon, which can be pressed to clear user input text\n- **input** - Used to style the native input element\n- **root** - Used to style the root DOM element of the Input component",
2941
+ "description": "Extention of the UI5 Input, so we do not modify Input's private properties within the datetime components.\nIntended to be used for the DateTime components.\n---\n\n\n### **Events:**\n - **change** - Fired when the input operation has finished by pressing Enter or on focusout.\n- **close** - Fired when the suggestions picker is closed.\n- **input** - Fired when the value of the component changes at each keystroke,\nand when a suggestion item has been selected.\n- **open** - Fired when the suggestions picker is open.\n- **select** - Fired when some text has been selected.\n- **selection-change** - Fired when the user navigates to a suggestion item via the ARROW keys,\nas a preview, before the final selection.\n\n### **Slots:**\n - **default** - Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions.\n- **icon** - Defines the icon to be displayed in the component.\n- **valueStateMessage** - Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n\n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed,\nwhen the component is in `Information`, `Critical` or `Negative` value state.\n\n**Note:** If the component has `suggestionItems`,\nthe `valueStateMessage` would be displayed as part of the same popover, if used on desktop, or dialog - on phone.\n\n### **CSS Parts:**\n - **clear-icon** - Used to style the clear icon, which can be pressed to clear user input text\n- **input** - Used to style the native input element\n- **root** - Used to style the root DOM element of the Input component",
2912
2942
  "doc-url": "",
2913
2943
  "attributes": [
2914
2944
  {
@@ -2991,7 +3021,7 @@
2991
3021
  },
2992
3022
  {
2993
3023
  "name": "type",
2994
- "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
3024
+ "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
2995
3025
  "value": {
2996
3026
  "type": "\"Text\" | \"Email\" | \"Number\" | \"Password\" | \"Tel\" | \"URL\" | \"Search\"",
2997
3027
  "default": "\"Text\""
@@ -3014,7 +3044,7 @@
3014
3044
  "slots": [
3015
3045
  {
3016
3046
  "name": "default",
3017
- "description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items."
3047
+ "description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions."
3018
3048
  },
3019
3049
  {
3020
3050
  "name": "icon",
@@ -3132,7 +3162,7 @@
3132
3162
  },
3133
3163
  {
3134
3164
  "name": "type",
3135
- "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
3165
+ "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
3136
3166
  "value": {
3137
3167
  "type": "\"Text\" | \"Email\" | \"Number\" | \"Password\" | \"Tel\" | \"URL\" | \"Search\""
3138
3168
  }
@@ -4489,7 +4519,7 @@
4489
4519
  },
4490
4520
  {
4491
4521
  "name": "ui5-input",
4492
- "description": "### Overview\n\nThe `ui5-input` component allows the user to enter and edit text or numeric values in one line.\n\nAdditionally, you can provide `suggestionItems`,\nthat are displayed in a popover right under the input.\n\nThe text field can be editable or read-only (`readonly` property),\nand it can be enabled or disabled (`disabled` property).\nTo visualize semantic states, such as \"Negative\" or \"Critical\", the `valueState` property is provided.\nWhen the user makes changes to the text, the change event is fired,\nwhich enables you to react on any text change.\n\n### Keyboard Handling\nThe `ui5-input` provides the following keyboard shortcuts:\n\n- [Escape] - Closes the suggestion list, if open. If closed or not enabled, cancels changes and reverts to the value which the Input field had when it got the focus.\n- [Enter] or [Return] - If suggestion list is open takes over the current matching item and closes it. If value state or group header is focused, does nothing.\n- [Down] - Focuses the next matching item in the suggestion list. Selection-change event is fired.\n- [Up] - Focuses the previous matching item in the suggestion list. Selection-change event is fired.\n- [Home] - If focus is in the text input, moves caret before the first character. If focus is in the list, highlights the first item and updates the input accordingly.\n- [End] - If focus is in the text input, moves caret after the last character. If focus is in the list, highlights the last item and updates the input accordingly.\n- [Page Up] - If focus is in the list, moves highlight up by page size (10 items by default). If focus is in the input, does nothing.\n- [Page Down] - If focus is in the list, moves highlight down by page size (10 items by default). If focus is in the input, does nothing.\n- [Ctrl]+[Alt]+[F8] or [Command]+[Option]+[F8] - Focuses the first link in the value state message, if available. Pressing [Tab] moves the focus to the next link in the value state message, or closes the value state message if there are no more links.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/Input.js\";`\n---\n\n\n### **Events:**\n - **change** - Fired when the input operation has finished by pressing Enter or on focusout.\n- **close** - Fired when the suggestions picker is closed.\n- **input** - Fired when the value of the component changes at each keystroke,\nand when a suggestion item has been selected.\n- **open** - Fired when the suggestions picker is open.\n- **select** - Fired when some text has been selected.\n- **selection-change** - Fired when the user navigates to a suggestion item via the ARROW keys,\nas a preview, before the final selection.\n\n### **Slots:**\n - **default** - Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n- **icon** - Defines the icon to be displayed in the component.\n- **valueStateMessage** - Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n\n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed,\nwhen the component is in `Information`, `Critical` or `Negative` value state.\n\n**Note:** If the component has `suggestionItems`,\nthe `valueStateMessage` would be displayed as part of the same popover, if used on desktop, or dialog - on phone.\n\n### **CSS Parts:**\n - **clear-icon** - Used to style the clear icon, which can be pressed to clear user input text\n- **input** - Used to style the native input element\n- **root** - Used to style the root DOM element of the Input component",
4522
+ "description": "### Overview\n\nThe `ui5-input` component allows the user to enter and edit text or numeric values in one line.\n\nAdditionally, you can provide `suggestionItems`\nthat are displayed in a popover right under the input. Keep in mind that `ui5-input` with type `Number` does not support suggestions.\n\nThe text field can be editable or read-only (`readonly` property),\nand it can be enabled or disabled (`disabled` property).\nTo visualize semantic states, such as \"Negative\" or \"Critical\", the `valueState` property is provided.\nWhen the user makes changes to the text, the change event is fired,\nwhich enables you to react on any text change.\n\n### Keyboard Handling\nThe `ui5-input` provides the following keyboard shortcuts:\n\n- [Escape] - Closes the suggestion list, if open. If closed or not enabled, cancels changes and reverts to the value which the Input field had when it got the focus.\n- [Enter] or [Return] - If suggestion list is open takes over the current matching item and closes it. If value state or group header is focused, does nothing.\n- [Down] - Focuses the next matching item in the suggestion list. Selection-change event is fired.\n- [Up] - Focuses the previous matching item in the suggestion list. Selection-change event is fired.\n- [Home] - If focus is in the text input, moves caret before the first character. If focus is in the list, highlights the first item and updates the input accordingly.\n- [End] - If focus is in the text input, moves caret after the last character. If focus is in the list, highlights the last item and updates the input accordingly.\n- [Page Up] - If focus is in the list, moves highlight up by page size (10 items by default). If focus is in the input, does nothing.\n- [Page Down] - If focus is in the list, moves highlight down by page size (10 items by default). If focus is in the input, does nothing.\n- [Ctrl]+[Alt]+[F8] or [Command]+[Option]+[F8] - Focuses the first link in the value state message, if available. Pressing [Tab] moves the focus to the next link in the value state message, or closes the value state message if there are no more links.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/Input.js\";`\n---\n\n\n### **Events:**\n - **change** - Fired when the input operation has finished by pressing Enter or on focusout.\n- **close** - Fired when the suggestions picker is closed.\n- **input** - Fired when the value of the component changes at each keystroke,\nand when a suggestion item has been selected.\n- **open** - Fired when the suggestions picker is open.\n- **select** - Fired when some text has been selected.\n- **selection-change** - Fired when the user navigates to a suggestion item via the ARROW keys,\nas a preview, before the final selection.\n\n### **Slots:**\n - **default** - Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions.\n- **icon** - Defines the icon to be displayed in the component.\n- **valueStateMessage** - Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n\n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed,\nwhen the component is in `Information`, `Critical` or `Negative` value state.\n\n**Note:** If the component has `suggestionItems`,\nthe `valueStateMessage` would be displayed as part of the same popover, if used on desktop, or dialog - on phone.\n\n### **CSS Parts:**\n - **clear-icon** - Used to style the clear icon, which can be pressed to clear user input text\n- **input** - Used to style the native input element\n- **root** - Used to style the root DOM element of the Input component",
4493
4523
  "doc-url": "",
4494
4524
  "attributes": [
4495
4525
  {
@@ -4572,7 +4602,7 @@
4572
4602
  },
4573
4603
  {
4574
4604
  "name": "type",
4575
- "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
4605
+ "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
4576
4606
  "value": {
4577
4607
  "type": "\"Text\" | \"Email\" | \"Number\" | \"Password\" | \"Tel\" | \"URL\" | \"Search\"",
4578
4608
  "default": "\"Text\""
@@ -4595,7 +4625,7 @@
4595
4625
  "slots": [
4596
4626
  {
4597
4627
  "name": "default",
4598
- "description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items."
4628
+ "description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions."
4599
4629
  },
4600
4630
  {
4601
4631
  "name": "icon",
@@ -4713,7 +4743,7 @@
4713
4743
  },
4714
4744
  {
4715
4745
  "name": "type",
4716
- "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
4746
+ "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
4717
4747
  "value": {
4718
4748
  "type": "\"Text\" | \"Email\" | \"Number\" | \"Password\" | \"Tel\" | \"URL\" | \"Search\""
4719
4749
  }
@@ -6723,7 +6753,7 @@
6723
6753
  },
6724
6754
  {
6725
6755
  "name": "ui5-multi-input",
6726
- "description": "### Overview\nA `ui5-multi-input` field allows the user to enter multiple values, which are displayed as `ui5-token`.\n\nUser can choose interaction for creating tokens.\nFiori Guidelines say that user should create tokens when:\n\n- Type a value in the input and press enter or focus out the input field (`change` event is fired)\n- Move between suggestion items (`selection-change` event is fired)\n- Clicking on a suggestion item (`selection-change` event is fired if the clicked item is different than the current value. Also `change` event is fired )\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/MultiInput.js\";`\n---\n\n\n### **Events:**\n - **change** - Fired when the input operation has finished by pressing Enter or on focusout.\n- **close** - Fired when the suggestions picker is closed.\n- **input** - Fired when the value of the component changes at each keystroke,\nand when a suggestion item has been selected.\n- **open** - Fired when the suggestions picker is open.\n- **select** - Fired when some text has been selected.\n- **selection-change** - Fired when the user navigates to a suggestion item via the ARROW keys,\nas a preview, before the final selection.\n- **token-delete** - Fired when tokens are being deleted.\n- **value-help-trigger** - Fired when the value help icon is pressed\nand F4 or ALT/OPTION + ARROW_UP/ARROW_DOWN keyboard keys are used.\n\n### **Slots:**\n - **default** - Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n- **icon** - Defines the icon to be displayed in the component.\n- **tokens** - Defines the component tokens.\n- **valueStateMessage** - Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n\n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed,\nwhen the component is in `Information`, `Critical` or `Negative` value state.\n\n**Note:** If the component has `suggestionItems`,\nthe `valueStateMessage` would be displayed as part of the same popover, if used on desktop, or dialog - on phone.\n\n### **CSS Parts:**\n - **clear-icon** - Used to style the clear icon, which can be pressed to clear user input text\n- **input** - Used to style the native input element\n- **root** - Used to style the root DOM element of the Input component",
6756
+ "description": "### Overview\nA `ui5-multi-input` field allows the user to enter multiple values, which are displayed as `ui5-token`.\n\nUser can choose interaction for creating tokens.\nFiori Guidelines say that user should create tokens when:\n\n- Type a value in the input and press enter or focus out the input field (`change` event is fired)\n- Move between suggestion items (`selection-change` event is fired)\n- Clicking on a suggestion item (`selection-change` event is fired if the clicked item is different than the current value. Also `change` event is fired )\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/MultiInput.js\";`\n---\n\n\n### **Events:**\n - **change** - Fired when the input operation has finished by pressing Enter or on focusout.\n- **close** - Fired when the suggestions picker is closed.\n- **input** - Fired when the value of the component changes at each keystroke,\nand when a suggestion item has been selected.\n- **open** - Fired when the suggestions picker is open.\n- **select** - Fired when some text has been selected.\n- **selection-change** - Fired when the user navigates to a suggestion item via the ARROW keys,\nas a preview, before the final selection.\n- **token-delete** - Fired when tokens are being deleted.\n- **value-help-trigger** - Fired when the value help icon is pressed\nand F4 or ALT/OPTION + ARROW_UP/ARROW_DOWN keyboard keys are used.\n\n### **Slots:**\n - **default** - Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions.\n- **icon** - Defines the icon to be displayed in the component.\n- **tokens** - Defines the component tokens.\n- **valueStateMessage** - Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n\n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed,\nwhen the component is in `Information`, `Critical` or `Negative` value state.\n\n**Note:** If the component has `suggestionItems`,\nthe `valueStateMessage` would be displayed as part of the same popover, if used on desktop, or dialog - on phone.\n\n### **CSS Parts:**\n - **clear-icon** - Used to style the clear icon, which can be pressed to clear user input text\n- **input** - Used to style the native input element\n- **root** - Used to style the root DOM element of the Input component",
6727
6757
  "doc-url": "",
6728
6758
  "attributes": [
6729
6759
  {
@@ -6811,7 +6841,7 @@
6811
6841
  },
6812
6842
  {
6813
6843
  "name": "type",
6814
- "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
6844
+ "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
6815
6845
  "value": {
6816
6846
  "type": "\"Text\" | \"Email\" | \"Number\" | \"Password\" | \"Tel\" | \"URL\" | \"Search\"",
6817
6847
  "default": "\"Text\""
@@ -6834,7 +6864,7 @@
6834
6864
  "slots": [
6835
6865
  {
6836
6866
  "name": "default",
6837
- "description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items."
6867
+ "description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions."
6838
6868
  },
6839
6869
  {
6840
6870
  "name": "icon",
@@ -6969,7 +6999,7 @@
6969
6999
  },
6970
7000
  {
6971
7001
  "name": "type",
6972
- "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
7002
+ "description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
6973
7003
  "value": {
6974
7004
  "type": "\"Text\" | \"Email\" | \"Number\" | \"Password\" | \"Tel\" | \"URL\" | \"Search\""
6975
7005
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents",
3
- "version": "2.22.0-rc.0",
3
+ "version": "2.22.0-rc.2",
4
4
  "description": "UI5 Web Components: webcomponents.main",
5
5
  "ui5": {
6
6
  "webComponentsPackage": true
@@ -54,22 +54,22 @@
54
54
  "directory": "packages/main"
55
55
  },
56
56
  "dependencies": {
57
- "@ui5/webcomponents-base": "2.22.0-rc.0",
58
- "@ui5/webcomponents-icons": "2.22.0-rc.0",
59
- "@ui5/webcomponents-icons-business-suite": "2.22.0-rc.0",
60
- "@ui5/webcomponents-icons-tnt": "2.22.0-rc.0",
61
- "@ui5/webcomponents-localization": "2.22.0-rc.0",
62
- "@ui5/webcomponents-theming": "2.22.0-rc.0"
57
+ "@ui5/webcomponents-base": "2.22.0-rc.2",
58
+ "@ui5/webcomponents-icons": "2.22.0-rc.2",
59
+ "@ui5/webcomponents-icons-business-suite": "2.22.0-rc.2",
60
+ "@ui5/webcomponents-icons-tnt": "2.22.0-rc.2",
61
+ "@ui5/webcomponents-localization": "2.22.0-rc.2",
62
+ "@ui5/webcomponents-theming": "2.22.0-rc.2"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@custom-elements-manifest/analyzer": "^0.10.10",
66
66
  "@ui5/cypress-internal": "0.1.0",
67
- "@ui5/webcomponents-tools": "2.22.0-rc.0",
67
+ "@ui5/webcomponents-tools": "2.22.0-rc.2",
68
68
  "cypress": "15.9.0",
69
69
  "jsdom": "^26.0.0",
70
70
  "lit": "^2.0.0",
71
71
  "vite": "5.4.21",
72
72
  "vitest": "^3.0.2"
73
73
  },
74
- "gitHead": "8b8cd84a2bf81d5b7affa6233f990e85c455b931"
74
+ "gitHead": "9b3c209d9527a97ea969ed643014fa1616686b21"
75
75
  }
@@ -8,7 +8,9 @@ export default function AvatarBadgeTemplate(this: AvatarBadge) {
8
8
  <Icon
9
9
  name={this.icon}
10
10
  class="ui5-avatar-badge-icon"
11
- mode="Decorative"
11
+ accessibleName={this.effectiveAccessibleName}
12
+ showTooltip={true}
13
+ mode="Image"
12
14
  ></Icon>
13
15
  )}
14
16
  </>
@@ -6,9 +6,9 @@ export default function ColorPaletteItemTemplate(this: ColorPaletteItem) {
6
6
  class="ui5-cp-item"
7
7
  tabindex={parseInt(this.forcedTabIndex)}
8
8
  role="button"
9
- aria-label={`${this.colorLabel} - ${this.index}: ${this.value}`}
9
+ aria-label={this.getLabelText}
10
10
  aria-pressed={this.selected}
11
- title={`${this.colorLabel} - ${this.index}: ${this.value}`}
11
+ title={this.getLabelText}
12
12
  ></div>
13
13
  );
14
14
  }
@@ -22,6 +22,7 @@ export default function SwitchTemplate(this: Switch) {
22
22
  aria-disabled={this.effectiveAriaDisabled}
23
23
  aria-readonly={this.effectiveAriaReadonly}
24
24
  aria-required={this.required}
25
+ aria-describedby={this.ariaDescribedBy}
25
26
  onClick={this._onclick}
26
27
  onKeyUp={this._onkeyup}
27
28
  onKeyDown={this._onkeydown}
@@ -61,6 +62,8 @@ export default function SwitchTemplate(this: Switch) {
61
62
  </>
62
63
  }
63
64
 
65
+ {this.readonly && <span class="ui5-switch-text ui5-switch-text--readonly" id={this.ariaDescribedBy} aria-hidden={this._textAriaHidden}>{this.ariaDescribedByText}</span>}
66
+
64
67
  <span class="ui5-switch-handle" part="handle"></span>
65
68
  </div>
66
69
  </div>
@@ -18,6 +18,7 @@
18
18
  box-sizing: border-box;
19
19
  height: var(--_ui5_input_height);
20
20
  position: relative;
21
+ isolation: isolate;
21
22
  margin: var(--_ui5_input_margin_top_bottom) 0;
22
23
  min-width: var(--_ui5_step_input_min_width);
23
24
  text-align: right;
@@ -99,7 +100,7 @@
99
100
  pointer-events: none;
100
101
  border-radius: var(--sapField_BorderCornerRadius);
101
102
  border-style: var(--_ui5_input_error_warning_border_style);
102
- z-index: 1;
103
+ z-index: 0;
103
104
  border-width: 0px;
104
105
  }
105
106
 
@@ -145,10 +145,12 @@
145
145
  cursor: default;
146
146
  }
147
147
 
148
- .ui5-switch-root.ui5-switch--checked .ui5-switch-text--off {
148
+ .ui5-switch-root.ui5-switch--checked .ui5-switch-text--off,
149
+ .ui5-switch-root.ui5-switch--checked .ui5-switch-text--readonly {
149
150
  visibility: var(--_ui5_switch_text_hidden);
150
151
  }
151
- .ui5-switch-root:not(.ui5-switch--checked) .ui5-switch-text--on {
152
+ .ui5-switch-root:not(.ui5-switch--checked) .ui5-switch-text--on,
153
+ .ui5-switch-root:not(.ui5-switch--checked) .ui5-switch-text--readonly {
152
154
  visibility: var(--_ui5_switch_text_hidden);
153
155
  }
154
156
 
@@ -4,4 +4,6 @@
4
4
  --_ui5_select_hover_icon_left_border: none;
5
5
  --_ui5_select_icon_wrapper_height: calc(100% - 0.0625rem);
6
6
  --_ui5_select_icon_wrapper_state_height: calc(100% - 0.125rem);
7
+ --_ui5_input_focus_outline_color: var(--sapContent_FocusColor);
8
+ --_ui5_input_readonly_focus_border_radius: 0;
7
9
  }
@@ -4,4 +4,6 @@
4
4
  --_ui5_select_hover_icon_left_border: none;
5
5
  --_ui5_select_icon_wrapper_height: calc(100% - 0.0625rem);
6
6
  --_ui5_select_icon_wrapper_state_height: calc(100% - 0.125rem);
7
+ --_ui5_input_focus_outline_color: var(--sapContent_FocusColor);
8
+ --_ui5_input_readonly_focus_border_radius: 0;
7
9
  }