@ui5/webcomponents-fiori 2.24.0-rc.3 → 2.24.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 (45) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/FlexibleColumnLayoutTemplate.js +2 -2
  4. package/dist/FlexibleColumnLayoutTemplate.js.map +1 -1
  5. package/dist/Search.d.ts +2 -0
  6. package/dist/Search.js +7 -6
  7. package/dist/Search.js.map +1 -1
  8. package/dist/SearchPopoverTemplate.js +1 -1
  9. package/dist/SearchPopoverTemplate.js.map +1 -1
  10. package/dist/ShellBar.js +10 -1
  11. package/dist/ShellBar.js.map +1 -1
  12. package/dist/ShellBarBranding.d.ts +3 -1
  13. package/dist/ShellBarBranding.js +16 -9
  14. package/dist/ShellBarBranding.js.map +1 -1
  15. package/dist/ShellBarItem.d.ts +2 -1
  16. package/dist/ShellBarItem.js.map +1 -1
  17. package/dist/ShellBarItemTemplate.js +1 -1
  18. package/dist/ShellBarItemTemplate.js.map +1 -1
  19. package/dist/ShellBarSearch.d.ts +1 -0
  20. package/dist/ShellBarSearch.js +7 -0
  21. package/dist/ShellBarSearch.js.map +1 -1
  22. package/dist/UserMenu.d.ts +15 -0
  23. package/dist/UserMenu.js +20 -0
  24. package/dist/UserMenu.js.map +1 -1
  25. package/dist/UserMenuTemplate.js +1 -1
  26. package/dist/UserMenuTemplate.js.map +1 -1
  27. package/dist/css/themes/DynamicPage.css +1 -1
  28. package/dist/custom-elements-internal.json +26 -6
  29. package/dist/custom-elements.json +25 -6
  30. package/dist/fcl-utils/FCLLayout.js +1 -1
  31. package/dist/fcl-utils/FCLLayout.js.map +1 -1
  32. package/dist/generated/themes/DynamicPage.css.d.ts +1 -1
  33. package/dist/generated/themes/DynamicPage.css.js +1 -1
  34. package/dist/generated/themes/DynamicPage.css.js.map +1 -1
  35. package/dist/shellbar/ShellBarSearch.d.ts +3 -1
  36. package/dist/shellbar/ShellBarSearch.js +3 -2
  37. package/dist/shellbar/ShellBarSearch.js.map +1 -1
  38. package/dist/vscode.html-custom-data.json +5 -0
  39. package/dist/web-types.json +11 -1
  40. package/package.json +7 -7
  41. package/src/FlexibleColumnLayoutTemplate.tsx +4 -2
  42. package/src/SearchPopoverTemplate.tsx +1 -1
  43. package/src/ShellBarItemTemplate.tsx +1 -0
  44. package/src/UserMenuTemplate.tsx +1 -1
  45. package/src/themes/DynamicPage.css +11 -13
@@ -1463,6 +1463,11 @@
1463
1463
  "name": "ui5-user-menu",
1464
1464
  "description": "### Overview\n\nThe `ui5-user-menu` is an SAP Fiori specific web component that is used in `ui5-shellbar`\nand allows the user to easily see information and settings for the current user and all other logged in accounts.\n\n### ES6 Module Import\n`import \"@ui5/webcomponents-fiori/dist/UserMenu.js\";`\n\n`import \"@ui5/webcomponents-fiori/dist/UserMenuItem.js\";` (for `ui5-user-menu-item`)\n\n\n---\n\n\n\n\n### **Events:**\n - **avatar-click** - Fired when the account avatar is selected.\n- **change-account** - Fired when the account is switched to a different one.\n- **close** - Fired when a user menu is close.\n- **edit-accounts-click** - Fired when the \"Edit Accounts\" button is selected.\n- **item-click** - Fired when a menu item is selected.\n- **manage-account-click** - Fired when the \"Manage Account\" button is selected.\n- **open** - Fired when a user menu is open.\n- **sign-out-click** - Fired when the \"Sign Out\" button is selected.\n\n### **Slots:**\n - **accounts** - Defines the user accounts.\n\n**Note:** If one item is used, it will be shown as the selected one. If more than one item is used, the first one will be shown as selected unless\nthere is an item with `selected` property set to `true`.\n- **default** - Defines the menu items.\n- **footer** - Defines custom footer content.\n\n**Note:** When provided, replaces the default \"Sign Out\" button. Use an empty element to hide the footer completely.\n- **infoArea** - Defines the content of the info area inside the User Menu's account block.\n\n**Note:** When empty, the User Menu renders unchanged.",
1465
1465
  "attributes": [
1466
+ {
1467
+ "name": "avatar-interactive",
1468
+ "description": "Defines whether the avatar of the selected account is interactive (focusable and pressable).\n\nWhen `false` (default), the avatar is rendered as a non-interactive image\nand is not announced as a button by screen readers.\n\n**Note:** When `showEditButton` is set to `true`, the avatar is treated as interactive\nregardless of this property's value, to preserve the edit affordance.",
1469
+ "values": []
1470
+ },
1466
1471
  {
1467
1472
  "name": "open",
1468
1473
  "description": "Defines if the User Menu is opened.",
@@ -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-fiori",
4
- "version": "2.24.0-rc.3",
4
+ "version": "2.24.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -3428,6 +3428,11 @@
3428
3428
  "description": "### Overview\n\nThe `ui5-user-menu` is an SAP Fiori specific web component that is used in `ui5-shellbar`\nand allows the user to easily see information and settings for the current user and all other logged in accounts.\n\n### ES6 Module Import\n`import \"@ui5/webcomponents-fiori/dist/UserMenu.js\";`\n\n`import \"@ui5/webcomponents-fiori/dist/UserMenuItem.js\";` (for `ui5-user-menu-item`)\n---\n\n\n### **Events:**\n - **avatar-click** - Fired when the account avatar is selected.\n- **change-account** - Fired when the account is switched to a different one.\n- **close** - Fired when a user menu is close.\n- **edit-accounts-click** - Fired when the \"Edit Accounts\" button is selected.\n- **item-click** - Fired when a menu item is selected.\n- **manage-account-click** - Fired when the \"Manage Account\" button is selected.\n- **open** - Fired when a user menu is open.\n- **sign-out-click** - Fired when the \"Sign Out\" button is selected.\n\n### **Slots:**\n - **accounts** - Defines the user accounts.\n\n**Note:** If one item is used, it will be shown as the selected one. If more than one item is used, the first one will be shown as selected unless\nthere is an item with `selected` property set to `true`.\n- **default** - Defines the menu items.\n- **footer** - Defines custom footer content.\n\n**Note:** When provided, replaces the default \"Sign Out\" button. Use an empty element to hide the footer completely.\n- **infoArea** - Defines the content of the info area inside the User Menu's account block.\n\n**Note:** When empty, the User Menu renders unchanged.",
3429
3429
  "doc-url": "",
3430
3430
  "attributes": [
3431
+ {
3432
+ "name": "avatar-interactive",
3433
+ "description": "Defines whether the avatar of the selected account is interactive (focusable and pressable).\n\nWhen `false` (default), the avatar is rendered as a non-interactive image\nand is not announced as a button by screen readers.\n\n**Note:** When `showEditButton` is set to `true`, the avatar is treated as interactive\nregardless of this property's value, to preserve the edit affordance.",
3434
+ "value": { "type": "boolean", "default": "false" }
3435
+ },
3431
3436
  {
3432
3437
  "name": "open",
3433
3438
  "description": "Defines if the User Menu is opened.",
@@ -3513,6 +3518,11 @@
3513
3518
  ],
3514
3519
  "js": {
3515
3520
  "properties": [
3521
+ {
3522
+ "name": "avatar-interactive",
3523
+ "description": "Defines whether the avatar of the selected account is interactive (focusable and pressable).\n\nWhen `false` (default), the avatar is rendered as a non-interactive image\nand is not announced as a button by screen readers.\n\n**Note:** When `showEditButton` is set to `true`, the avatar is treated as interactive\nregardless of this property's value, to preserve the edit affordance.",
3524
+ "value": { "type": "boolean" }
3525
+ },
3516
3526
  {
3517
3527
  "name": "open",
3518
3528
  "description": "Defines if the User Menu is opened.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-fiori",
3
- "version": "2.24.0-rc.3",
3
+ "version": "2.24.2",
4
4
  "description": "UI5 Web Components: webcomponents.fiori",
5
5
  "ui5": {
6
6
  "webComponentsPackage": true
@@ -54,20 +54,20 @@
54
54
  "directory": "packages/fiori"
55
55
  },
56
56
  "dependencies": {
57
- "@ui5/webcomponents": "2.24.0-rc.3",
58
- "@ui5/webcomponents-base": "2.24.0-rc.3",
59
- "@ui5/webcomponents-icons": "2.24.0-rc.3",
60
- "@ui5/webcomponents-theming": "2.24.0-rc.3",
57
+ "@ui5/webcomponents": "2.24.2",
58
+ "@ui5/webcomponents-base": "2.24.2",
59
+ "@ui5/webcomponents-icons": "2.24.2",
60
+ "@ui5/webcomponents-theming": "2.24.2",
61
61
  "@zxing/library": "^0.21.3"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@custom-elements-manifest/analyzer": "^0.10.10",
65
65
  "@ui5/cypress-internal": "0.1.0",
66
- "@ui5/webcomponents-tools": "2.24.0-rc.3",
66
+ "@ui5/webcomponents-tools": "2.24.2",
67
67
  "cypress": "15.9.0",
68
68
  "lit": "^2.0.0",
69
69
  "vite": "5.4.21",
70
70
  "yarn": "^1.22.22"
71
71
  },
72
- "gitHead": "4e2fcc7b63a5a9156ecb89f839a698f2a59743b2"
72
+ "gitHead": "d2839e0e479bccb85bd3810650aaa25428873016"
73
73
  }
@@ -29,11 +29,12 @@ export default function FlexibleColumnLayoutTemplate(this: FlexibleColumnLayout)
29
29
 
30
30
  <div
31
31
  role={this.accStartSeparatorRole}
32
- title={this.accStartSeparatorText}
32
+ aria-label={this.accStartSeparatorText}
33
33
  class="ui5-fcl-separator ui5-fcl-separator-start"
34
34
  style={{ display: this.showStartSeparator ? "flex" : "none" }}
35
35
  tabindex={this.startSeparatorTabIndex}
36
36
  aria-valuenow={this.startSeparatorValue}
37
+ aria-orientation="vertical"
37
38
  onMouseDown={this.onSeparatorPress}
38
39
  onTouchStart={this.onSeparatorPress}
39
40
  onKeyDown={this._onSeparatorKeydown}
@@ -60,11 +61,12 @@ export default function FlexibleColumnLayoutTemplate(this: FlexibleColumnLayout)
60
61
 
61
62
  <div
62
63
  role={this.accEndSeparatorRole}
63
- title={this.accEndSeparatorText}
64
+ aria-label={this.accEndSeparatorText}
64
65
  class="ui5-fcl-separator ui5-fcl-separator-end"
65
66
  style={{ display: this.showEndSeparator ? "flex" : "none" }}
66
67
  tabindex={this.endSeparatorTabIndex}
67
68
  aria-valuenow={this.endSeparatorValue}
69
+ aria-orientation="vertical"
68
70
  onMouseDown={this.onSeparatorPress}
69
71
  onTouchStart={this.onSeparatorPress}
70
72
  onKeyDown={this._onSeparatorKeydown}
@@ -40,7 +40,7 @@ export default function SearchPopoverTemplate(this: Search, headerTemplate?: Jsx
40
40
  {isPhone() ? (headerTemplate ? headerTemplate.call(this) : (
41
41
  <>
42
42
  <header slot="header" class="ui5-search-popup-searching-header">
43
- <Input class="ui5-search-popover-search-field" onInput={this._handleMobileInput} showClearIcon={this.showClearIcon} noTypeahead={this.noTypeahead} hint={InputKeyHint.Search} onKeyDown={this._onMobileInputKeydown}>
43
+ <Input value={this.value} class="ui5-search-popover-search-field" onInput={this._handleMobileInput} showClearIcon={this.showClearIcon} noTypeahead={this.noTypeahead} hint={InputKeyHint.Search} onKeyDown={this._onMobileInputKeydown}>
44
44
  {this._flattenItems.map(item => {
45
45
  return (<SuggestionItem text={item.text}></SuggestionItem>);
46
46
  })}
@@ -12,6 +12,7 @@ export default function ShellBarItemTemplate(this: ShellBarItem) {
12
12
  data-count={this.count}
13
13
  data-ui5-stable={this.stableDomRef}
14
14
  accessibilityAttributes={this.accessibilityAttributes}
15
+ onClick={this.fireClickEvent}
15
16
  >
16
17
  {this.text}
17
18
  </ListItemStandard>
@@ -106,7 +106,7 @@ function headerContent(this: UserMenu) {
106
106
  {this._selectedAccount &&
107
107
  <div class="ui5-user-menu-selected-account" aria-label={this._ariaLabelledByAccountInformationText}>
108
108
  <span title={this.showEditButton ? this._editAvatarTooltip : undefined}>
109
- <Avatar size="L" onClick={this._handleAvatarClick} initials={this._selectedAccount._initials} colorScheme={this._selectedAccount.avatarColorScheme} fallbackIcon={personPlaceholder} class="ui5-user-menu-selected-account-avatar" interactive>
109
+ <Avatar size="L" onClick={this._isAvatarInteractive ? this._handleAvatarClick : undefined} initials={this._selectedAccount._initials} colorScheme={this._selectedAccount.avatarColorScheme} fallbackIcon={personPlaceholder} class="ui5-user-menu-selected-account-avatar" mode={this._isAvatarInteractive ? "Interactive" : "Image"}>
110
110
  {this._selectedAccount.avatarSrc &&
111
111
  <img src={this._selectedAccount.avatarSrc}/>
112
112
  }
@@ -83,21 +83,19 @@
83
83
 
84
84
  /* Responsive paddings */
85
85
 
86
- /* S Size */
87
- @container (max-width: 599px) {
88
- .ui5-dynamic-page-fit-content {
89
- padding: var(--_ui5_dynamic_page_content_padding_S);
90
- }
91
- ::slotted([slot="titleArea"]) {
92
- padding: var(--_ui5_dynamic_page_title_padding_S);
93
- }
94
- ::slotted([slot="headerArea"]) {
95
- padding: var(--_ui5_dynamic_page_header_padding_S);
96
- }
86
+ /* S Size (default, no container query needed) */
87
+ .ui5-dynamic-page-fit-content {
88
+ padding: var(--_ui5_dynamic_page_content_padding_S);
89
+ }
90
+ ::slotted([slot="titleArea"]) {
91
+ padding: var(--_ui5_dynamic_page_title_padding_S);
92
+ }
93
+ ::slotted([slot="headerArea"]) {
94
+ padding: var(--_ui5_dynamic_page_header_padding_S);
97
95
  }
98
96
 
99
97
  /* M Size */
100
- @container (min-width: 600px) and (max-width: 1023px) {
98
+ @container (min-width: 600px) {
101
99
  .ui5-dynamic-page-fit-content {
102
100
  padding: var(--_ui5_dynamic_page_content_padding_M);
103
101
  }
@@ -110,7 +108,7 @@
110
108
  }
111
109
 
112
110
  /* L Size */
113
- @container (min-width: 1024px) and (max-width: 1439px) {
111
+ @container (min-width: 1024px) {
114
112
  .ui5-dynamic-page-fit-content {
115
113
  padding: var(--_ui5_dynamic_page_content_padding_L);
116
114
  }