@sapudex/web-components 0.111.0 → 0.114.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 (189) hide show
  1. package/.npmrc +1 -2
  2. package/bundle.esm.js +1 -0
  3. package/dist/AccordionItem.d.ts +7 -0
  4. package/dist/AccordionItem.js +6 -2
  5. package/dist/AccordionItem.js.map +1 -1
  6. package/dist/CountrySelector.d.ts +5 -7
  7. package/dist/CountrySelector.js +12 -7
  8. package/dist/CountrySelector.js.map +1 -1
  9. package/dist/Dropdown.d.ts +10 -0
  10. package/dist/Dropdown.js +10 -0
  11. package/dist/Dropdown.js.map +1 -1
  12. package/dist/Footer.d.ts +40 -1
  13. package/dist/Footer.js +151 -1
  14. package/dist/Footer.js.map +1 -1
  15. package/dist/InputGroup.d.ts +75 -0
  16. package/dist/InputGroup.js +101 -0
  17. package/dist/InputGroup.js.map +1 -0
  18. package/dist/MastheadMobileMenu.d.ts +4 -1
  19. package/dist/MastheadMobileMenu.js +10 -3
  20. package/dist/MastheadMobileMenu.js.map +1 -1
  21. package/dist/PhoneNumberField.d.ts +8 -0
  22. package/dist/PhoneNumberField.js +23 -10
  23. package/dist/PhoneNumberField.js.map +1 -1
  24. package/dist/Search.d.ts +58 -2
  25. package/dist/Search.js +159 -12
  26. package/dist/Search.js.map +1 -1
  27. package/dist/SecondaryNavigation.d.ts +5 -1
  28. package/dist/SecondaryNavigation.js +18 -2
  29. package/dist/SecondaryNavigation.js.map +1 -1
  30. package/dist/SelectBox.d.ts +6 -0
  31. package/dist/SelectBox.js +14 -1
  32. package/dist/SelectBox.js.map +1 -1
  33. package/dist/Table.d.ts +5 -5
  34. package/dist/Table.js +5 -5
  35. package/dist/Table.js.map +1 -1
  36. package/dist/Tag.d.ts +7 -1
  37. package/dist/Tag.js +6 -2
  38. package/dist/Tag.js.map +1 -1
  39. package/dist/TextArea.js.map +1 -1
  40. package/dist/assets/{bundle.esm-b7920968.js → bundle.esm-ab45813e.js} +181 -179
  41. package/dist/css/themes/AccordionItem.css +1 -1
  42. package/dist/css/themes/Breadcrumbs.css +1 -1
  43. package/dist/css/themes/CountrySelector.css +1 -1
  44. package/dist/css/themes/DatePicker.css +1 -1
  45. package/dist/css/themes/Dropdown.css +1 -1
  46. package/dist/css/themes/InputGroup.css +1 -0
  47. package/dist/css/themes/MastheadItem.css +1 -1
  48. package/dist/css/themes/MastheadMenuItem.css +1 -1
  49. package/dist/css/themes/MastheadShell.css +1 -1
  50. package/dist/css/themes/PhoneNumberField.css +1 -1
  51. package/dist/css/themes/RatingIndicator.css +1 -1
  52. package/dist/css/themes/Search.css +1 -1
  53. package/dist/css/themes/SearchSuggestions.css +1 -1
  54. package/dist/css/themes/Slider.css +1 -1
  55. package/dist/css/themes/Tag.css +1 -1
  56. package/dist/css/themes/TextField.css +1 -1
  57. package/dist/custom-elements-internal.json +405 -53
  58. package/dist/custom-elements.json +358 -52
  59. package/dist/features/SearchSuggestionsPopover.d.ts +3 -3
  60. package/dist/features/SearchSuggestionsPopover.js +16 -18
  61. package/dist/features/SearchSuggestionsPopover.js.map +1 -1
  62. package/dist/generated/templates/AccordionItemTemplate.lit.js +2 -1
  63. package/dist/generated/templates/AccordionItemTemplate.lit.js.map +1 -1
  64. package/dist/generated/templates/CountrySelectorTemplate.lit.js +1 -1
  65. package/dist/generated/templates/CountrySelectorTemplate.lit.js.map +1 -1
  66. package/dist/generated/templates/FooterTemplate.lit.js +15 -15
  67. package/dist/generated/templates/FooterTemplate.lit.js.map +1 -1
  68. package/dist/generated/templates/InputGroupTemplate.lit.d.ts +4 -0
  69. package/dist/generated/templates/InputGroupTemplate.lit.js +7 -0
  70. package/dist/generated/templates/InputGroupTemplate.lit.js.map +1 -0
  71. package/dist/generated/templates/MastheadMobileMenuTemplate.lit.js +15 -10
  72. package/dist/generated/templates/MastheadMobileMenuTemplate.lit.js.map +1 -1
  73. package/dist/generated/templates/MastheadProfileMenuTemplate.lit.js +1 -1
  74. package/dist/generated/templates/MastheadProfileMenuTemplate.lit.js.map +1 -1
  75. package/dist/generated/templates/SearchSuggestionsTemplate.lit.js +11 -10
  76. package/dist/generated/templates/SearchSuggestionsTemplate.lit.js.map +1 -1
  77. package/dist/generated/templates/SearchTemplate.lit.js +11 -10
  78. package/dist/generated/templates/SearchTemplate.lit.js.map +1 -1
  79. package/dist/generated/templates/SecondaryNavigationTemplate.lit.js +2 -1
  80. package/dist/generated/templates/SecondaryNavigationTemplate.lit.js.map +1 -1
  81. package/dist/generated/themes/AccordionItem.css.js +1 -1
  82. package/dist/generated/themes/AccordionItem.css.js.map +1 -1
  83. package/dist/generated/themes/Breadcrumbs.css.js +1 -1
  84. package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
  85. package/dist/generated/themes/CountrySelector.css.js +1 -1
  86. package/dist/generated/themes/CountrySelector.css.js.map +1 -1
  87. package/dist/generated/themes/DatePicker.css.js +1 -1
  88. package/dist/generated/themes/DatePicker.css.js.map +1 -1
  89. package/dist/generated/themes/Dropdown.css.js +1 -1
  90. package/dist/generated/themes/Dropdown.css.js.map +1 -1
  91. package/dist/generated/themes/InputGroup.css.d.ts +3 -0
  92. package/dist/generated/themes/InputGroup.css.js +9 -0
  93. package/dist/generated/themes/InputGroup.css.js.map +1 -0
  94. package/dist/generated/themes/MastheadItem.css.js +1 -1
  95. package/dist/generated/themes/MastheadItem.css.js.map +1 -1
  96. package/dist/generated/themes/MastheadMenuItem.css.js +1 -1
  97. package/dist/generated/themes/MastheadMenuItem.css.js.map +1 -1
  98. package/dist/generated/themes/MastheadShell.css.js +1 -1
  99. package/dist/generated/themes/MastheadShell.css.js.map +1 -1
  100. package/dist/generated/themes/PhoneNumberField.css.js +1 -1
  101. package/dist/generated/themes/PhoneNumberField.css.js.map +1 -1
  102. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  103. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  104. package/dist/generated/themes/Search.css.js +1 -1
  105. package/dist/generated/themes/Search.css.js.map +1 -1
  106. package/dist/generated/themes/SearchSuggestions.css.js +1 -1
  107. package/dist/generated/themes/SearchSuggestions.css.js.map +1 -1
  108. package/dist/generated/themes/Slider.css.js +1 -1
  109. package/dist/generated/themes/Slider.css.js.map +1 -1
  110. package/dist/generated/themes/Tag.css.js +1 -1
  111. package/dist/generated/themes/Tag.css.js.map +1 -1
  112. package/dist/generated/themes/TextField.css.js +1 -1
  113. package/dist/generated/themes/TextField.css.js.map +1 -1
  114. package/dist/types/callback.d.ts +2 -0
  115. package/dist/types/callback.js +2 -0
  116. package/dist/types/callback.js.map +1 -0
  117. package/dist/utils/debounce.d.ts +2 -2
  118. package/dist/utils/debounce.js.map +1 -1
  119. package/dist/utils/retryUntilSuccessful.d.ts +3 -0
  120. package/dist/utils/retryUntilSuccessful.js +21 -0
  121. package/dist/utils/retryUntilSuccessful.js.map +1 -0
  122. package/dist/vscode.html-custom-data.json +48 -12
  123. package/dist/web-types.json +205 -29
  124. package/package.json +1 -1
  125. package/src/AccordionItem.hbs +12 -1
  126. package/src/AccordionItem.ts +11 -2
  127. package/src/CountrySelector.hbs +1 -2
  128. package/src/CountrySelector.ts +18 -20
  129. package/src/Dropdown.ts +10 -0
  130. package/src/Footer.hbs +154 -91
  131. package/src/Footer.ts +158 -1
  132. package/src/InputGroup.hbs +20 -0
  133. package/src/InputGroup.ts +136 -0
  134. package/src/MastheadMobileMenu.hbs +51 -28
  135. package/src/MastheadMobileMenu.ts +12 -3
  136. package/src/MastheadProfileMenu.hbs +1 -1
  137. package/src/PhoneNumberField.ts +27 -3
  138. package/src/Search.hbs +23 -1
  139. package/src/Search.ts +203 -15
  140. package/src/SearchSuggestions.hbs +46 -48
  141. package/src/SecondaryNavigation.hbs +6 -4
  142. package/src/SecondaryNavigation.ts +23 -3
  143. package/src/SelectBox.ts +22 -0
  144. package/src/Table.ts +7 -7
  145. package/src/Tag.ts +12 -3
  146. package/src/TextArea.ts +1 -1
  147. package/src/features/SearchSuggestionsPopover.ts +18 -20
  148. package/src/generated/templates/AccordionItemTemplate.lit.ts +2 -1
  149. package/src/generated/templates/CountrySelectorTemplate.lit.ts +1 -1
  150. package/src/generated/templates/FooterTemplate.lit.ts +15 -15
  151. package/src/generated/templates/InputGroupTemplate.lit.ts +12 -0
  152. package/src/generated/templates/MastheadMobileMenuTemplate.lit.ts +15 -10
  153. package/src/generated/templates/MastheadProfileMenuTemplate.lit.ts +1 -1
  154. package/src/generated/templates/SearchSuggestionsTemplate.lit.ts +11 -10
  155. package/src/generated/templates/SearchTemplate.lit.ts +10 -9
  156. package/src/generated/templates/SecondaryNavigationTemplate.lit.ts +2 -1
  157. package/src/generated/themes/AccordionItem.css.ts +1 -1
  158. package/src/generated/themes/Breadcrumbs.css.ts +1 -1
  159. package/src/generated/themes/CountrySelector.css.ts +1 -1
  160. package/src/generated/themes/DatePicker.css.ts +1 -1
  161. package/src/generated/themes/Dropdown.css.ts +1 -1
  162. package/src/generated/themes/InputGroup.css.ts +13 -0
  163. package/src/generated/themes/MastheadItem.css.ts +1 -1
  164. package/src/generated/themes/MastheadMenuItem.css.ts +1 -1
  165. package/src/generated/themes/MastheadShell.css.ts +1 -1
  166. package/src/generated/themes/PhoneNumberField.css.ts +1 -1
  167. package/src/generated/themes/RatingIndicator.css.ts +1 -1
  168. package/src/generated/themes/Search.css.ts +1 -1
  169. package/src/generated/themes/SearchSuggestions.css.ts +1 -1
  170. package/src/generated/themes/Slider.css.ts +1 -1
  171. package/src/generated/themes/Tag.css.ts +1 -1
  172. package/src/generated/themes/TextField.css.ts +1 -1
  173. package/src/themes/AccordionItem.css +20 -15
  174. package/src/themes/Breadcrumbs.css +4 -2
  175. package/src/themes/CountrySelector.css +12 -1
  176. package/src/themes/DatePicker.css +1 -1
  177. package/src/themes/Dropdown.css +2 -2
  178. package/src/themes/InputGroup.css +19 -0
  179. package/src/themes/MastheadItem.css +2 -7
  180. package/src/themes/MastheadMenuItem.css +0 -4
  181. package/src/themes/MastheadShell.css +9 -10
  182. package/src/themes/PhoneNumberField.css +13 -3
  183. package/src/themes/Search.css +160 -17
  184. package/src/themes/SearchSuggestions.css +7 -1
  185. package/src/themes/Tag.css +6 -1
  186. package/src/themes/TextField.css +10 -1
  187. package/src/types/callback.ts +3 -0
  188. package/src/utils/debounce.ts +1 -1
  189. package/src/utils/retryUntilSuccessful.ts +23 -0
@@ -0,0 +1,21 @@
1
+ const retryUntilSuccessful = (checkFn, delay, maxAttempts, errorMessage) => {
2
+ return new Promise((resolve, reject) => {
3
+ let currentAttempt = 0;
4
+ const attempt = () => {
5
+ currentAttempt++;
6
+ const result = checkFn();
7
+ if (result !== undefined) {
8
+ resolve(result);
9
+ }
10
+ else if (currentAttempt < maxAttempts) {
11
+ setTimeout(attempt, delay);
12
+ }
13
+ else {
14
+ reject(new Error(errorMessage));
15
+ }
16
+ };
17
+ attempt();
18
+ });
19
+ };
20
+ export default retryUntilSuccessful;
21
+ //# sourceMappingURL=retryUntilSuccessful.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retryUntilSuccessful.js","sourceRoot":"","sources":["../../src/utils/retryUntilSuccessful.ts"],"names":[],"mappings":"AAEA,MAAM,oBAAoB,GAAG,CAAC,OAA+B,EAAE,KAAa,EAAE,WAAmB,EAAE,YAAoB,EAAiB,EAAE;IACxI,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAI,cAAc,GAAG,CAAC,CAAC;QAEvB,MAAM,OAAO,GAAG,GAAG,EAAE;YACnB,cAAc,EAAE,CAAC;YACjB,MAAM,MAAM,GAAG,OAAO,EAAE,CAAC;YACzB,IAAI,MAAM,KAAK,SAAS,EAAE;gBACxB,OAAO,CAAC,MAAM,CAAC,CAAC;aACjB;iBAAM,IAAI,cAAc,GAAG,WAAW,EAAE;gBACvC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;aAC5B;iBAAM;gBACL,MAAM,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;aACjC;QACH,CAAC,CAAC;QAEF,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import CallbackFunction from \"../types/callback.js\";\n\nconst retryUntilSuccessful = (checkFn: CallbackFunction<void>, delay: number, maxAttempts: number, errorMessage: string): Promise<void> => {\n return new Promise((resolve, reject) => {\n let currentAttempt = 0;\n\n const attempt = () => {\n currentAttempt++;\n const result = checkFn();\n if (result !== undefined) {\n resolve(result);\n } else if (currentAttempt < maxAttempts) {\n setTimeout(attempt, delay);\n } else {\n reject(new Error(errorMessage));\n }\n };\n\n attempt();\n });\n};\n\nexport default retryUntilSuccessful;\n"]}
@@ -17,6 +17,11 @@
17
17
  "name": "udex-accordion-item",
18
18
  "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-accordion-item</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/AccordionItem.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **accordion-item-focus** - Triggered when the user focuses on an accordion item.\n\n### **Slots:**\n - **default** - Slot for accordion item content.",
19
19
  "attributes": [
20
+ {
21
+ "name": "number-badge",
22
+ "description": "Defines the Badge at the end of the title item.",
23
+ "values": []
24
+ },
20
25
  {
21
26
  "name": "title",
22
27
  "description": "Defines the title of the accordion item component.",
@@ -263,11 +268,6 @@
263
268
  "description": "Defines whether the component is required.",
264
269
  "values": []
265
270
  },
266
- {
267
- "name": "width",
268
- "description": "Allows control over the width.",
269
- "values": []
270
- },
271
271
  {
272
272
  "name": "height",
273
273
  "description": "Allows control over the height.",
@@ -423,7 +423,7 @@
423
423
  },
424
424
  {
425
425
  "name": "udex-dropdown",
426
- "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-dropdown</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Dropdown.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **click-trigger** - Fired event when the user clicks the trigger.\n- **before-open** - Fired before the dropdown is opened.\n- **after-open** - Fired after the dropdown is opened.\n- **before-close** - Fired before the menu is closed.\n- **after-close** - Fired after the menu is closed.\n\n### **Slots:**\n - **default** - Defines the content of the Dropdown.\n- **header** - Defines the header HTML Element.\n- **footer** - Defines the footer HTML Element.\n- **trigger** - Defines the trigger HTML Element.",
426
+ "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-dropdown</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Dropdown.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **click-trigger** - Fired event when the user clicks the trigger.\n- **before-open** - Fired before the dropdown is opened.\n- **after-open** - Fired after the dropdown is opened.\n- **before-close** - Fired before the menu is closed.\n- **after-close** - Fired after the menu is closed.\n\n### **Methods:**\n - **onOpen(): _void_** - Open dropdown\n- **onClose(): _void_** - Close dropdown\n\n### **Slots:**\n - **default** - Defines the content of the Dropdown.\n- **header** - Defines the header HTML Element.\n- **footer** - Defines the footer HTML Element.\n- **trigger** - Defines the trigger HTML Element.",
427
427
  "attributes": [
428
428
  {
429
429
  "name": "height",
@@ -812,7 +812,7 @@
812
812
  },
813
813
  {
814
814
  "name": "udex-footer",
815
- "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-footer</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Footer.js\";</code>\n\n\n---\n\n\n",
815
+ "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-footer</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Footer.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **logo-click** - Triggered on click interaction with logo in footer\n- **back-to-top-click** - Triggered on click interaction with \"Back to Top\" button\n- **contact-phone-click** - Triggered on click interaction with phone number link in footer\n- **contact-phone-local-numbers-click** - Triggered on click interaction with local country numbers list link\n- **contact-email-click** - Triggered on click interaction with \"Contact us by email\" link\n- **contact-chat-click** - Triggered on click interaction with \"Contact us by chat\" link\n- **quick-links-click** - Triggered on click interaction with a link within \"Quick Links\" category\n- **trending-click** - Triggered on click interaction with a link within \"Trending\" category\n- **about-sap-click** - Triggered on click interaction with a link within \"About SAP\" category\n- **site-information-click** - Triggered on click interaction with a link within \"Site Information\" category\n- **social-media-link-click** - Triggered on click interaction with any of the social media links within footer",
816
816
  "attributes": [
817
817
  {
818
818
  "name": "logo-url",
@@ -910,6 +910,37 @@
910
910
  ],
911
911
  "references": []
912
912
  },
913
+ {
914
+ "name": "udex-input-group",
915
+ "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-input-group</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@udex/web-components/dist/InputGroup.js\";</code>\n\n\n---\n\n\n\n\n### **Slots:**\n - **default** - Slot for input elements items.",
916
+ "attributes": [
917
+ {
918
+ "name": "group-name",
919
+ "description": "Defines the group name of the component.",
920
+ "values": []
921
+ },
922
+ {
923
+ "name": "orientation",
924
+ "description": "Defines the orientation of the component.",
925
+ "values": [{ "name": "Vertical" }, { "name": "Horizontal" }]
926
+ },
927
+ {
928
+ "name": "value-state",
929
+ "description": "Defines the value state of the component.",
930
+ "values": [
931
+ { "name": "Success" },
932
+ { "name": "Error" },
933
+ { "name": "Standard" }
934
+ ]
935
+ },
936
+ {
937
+ "name": "supporting-text",
938
+ "description": "Defines supporting text under the Input Group.",
939
+ "values": []
940
+ }
941
+ ],
942
+ "references": []
943
+ },
913
944
  {
914
945
  "name": "udex-link",
915
946
  "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-link</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Link.js\";</code>\n\n\n---\n\n\n",
@@ -2059,7 +2090,7 @@
2059
2090
  },
2060
2091
  {
2061
2092
  "name": "udex-search",
2062
- "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-search</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Search.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **submit-search-value** - Fired event when the user submitted the value.\n- **handle-value-search** - Fired event when the user typed to search field.\n- **handle-value-reset** - Fired event when the user clicks on the reset button.\n- **dropdown-item-click** - Fired event when the user clicks on the item inside the popover.",
2093
+ "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-search</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Search.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **submit-search-value** - Fired event when the user submitted the value.\n- **handle-value-search** - Fired event when the user typed to search field.\n- **handle-value-reset** - Fired event when the user clicks on the reset button.\n- **dropdown-item-click** - Fired event when the user clicks on the item inside the popover.\n- **prefix-item-click** - Fired event when the user clicks on the intem inside the prefix dropdown.\n\n### **Slots:**\n - **default** - Defines the prefix dropdown of the Search component.",
2063
2094
  "attributes": [
2064
2095
  {
2065
2096
  "name": "value",
@@ -2109,7 +2140,7 @@
2109
2140
  {
2110
2141
  "name": "mode",
2111
2142
  "description": "Defines the mode of component.\n<br><br>\n<b>Note:</b> accepts a string \"Standard\" or \"Home Search\".",
2112
- "values": [{ "name": "Standard" }, { "name": "Home Search" }]
2143
+ "values": [{ "name": "Mode" }]
2113
2144
  },
2114
2145
  {
2115
2146
  "name": "show-popover-when-clicked-into-input",
@@ -2125,6 +2156,11 @@
2125
2156
  "name": "accessible-name",
2126
2157
  "description": "Defines the accessible ARIA name of the component.",
2127
2158
  "values": []
2159
+ },
2160
+ {
2161
+ "name": "no-result-text",
2162
+ "description": "Defines the text if the suggestion list doesn't return results.",
2163
+ "values": []
2128
2164
  }
2129
2165
  ],
2130
2166
  "references": []
@@ -2773,8 +2809,8 @@
2773
2809
  "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n<h3>Usage</h3>\n\nFor the <code>udex-table</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@udex/web-components/dist/Table.js\";</code>\n\n\n---\n\n\n\n\n### **Slots:**\n - **default** - Defines the rows of the table.\n- **headerRow** - Defines the header row of the table.\n- **actions** - Defines the actions of the table.\n- **noData** - Defines the custom visualization if there is no data available.\n- **footnotes** - Defines the footnotes of the table.",
2774
2810
  "attributes": [
2775
2811
  {
2776
- "name": "height",
2777
- "description": "Defines the height of the table.\nAllows control over the height.",
2812
+ "name": "max-height",
2813
+ "description": "Defines the height of the table.\nAllows control over the maximum height.",
2778
2814
  "values": []
2779
2815
  },
2780
2816
  {
@@ -2967,7 +3003,7 @@
2967
3003
  },
2968
3004
  {
2969
3005
  "name": "read-only",
2970
- "description": "Defines if tag is in readonly state",
3006
+ "description": "Defines if tag is in readnly state",
2971
3007
  "values": []
2972
3008
  },
2973
3009
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@sapudex/web-components",
4
- "version": "0.111.0",
4
+ "version": "0.114.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -47,6 +47,11 @@
47
47
  "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-accordion-item</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/AccordionItem.js\";</code>\n---\n\n\n### **Events:**\n - **accordion-item-focus** - Triggered when the user focuses on an accordion item.\n\n### **Slots:**\n - **default** - Slot for accordion item content.",
48
48
  "doc-url": "",
49
49
  "attributes": [
50
+ {
51
+ "name": "number-badge",
52
+ "description": "Defines the Badge at the end of the title item.",
53
+ "value": { "type": "string", "default": "\"\"" }
54
+ },
50
55
  {
51
56
  "name": "title",
52
57
  "description": "Defines the title of the accordion item component.",
@@ -77,6 +82,11 @@
77
82
  ],
78
83
  "js": {
79
84
  "properties": [
85
+ {
86
+ "name": "number-badge",
87
+ "description": "Defines the Badge at the end of the title item.",
88
+ "value": { "type": "string" }
89
+ },
80
90
  {
81
91
  "name": "title",
82
92
  "description": "Defines the title of the accordion item component.",
@@ -516,11 +526,6 @@
516
526
  "description": "Defines whether the component is required.",
517
527
  "value": { "type": "boolean", "default": "false" }
518
528
  },
519
- {
520
- "name": "width",
521
- "description": "Allows control over the width.",
522
- "value": { "type": "string | undefined" }
523
- },
524
529
  {
525
530
  "name": "height",
526
531
  "description": "Allows control over the height.",
@@ -641,11 +646,6 @@
641
646
  "description": "Defines whether the component is required.",
642
647
  "value": { "type": "boolean" }
643
648
  },
644
- {
645
- "name": "width",
646
- "description": "Allows control over the width.",
647
- "value": { "type": "string | undefined" }
648
- },
649
649
  {
650
650
  "name": "height",
651
651
  "description": "Allows control over the height.",
@@ -931,7 +931,7 @@
931
931
  },
932
932
  {
933
933
  "name": "udex-dropdown",
934
- "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-dropdown</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Dropdown.js\";</code>\n---\n\n\n### **Events:**\n - **click-trigger** - Fired event when the user clicks the trigger.\n- **before-open** - Fired before the dropdown is opened.\n- **after-open** - Fired after the dropdown is opened.\n- **before-close** - Fired before the menu is closed.\n- **after-close** - Fired after the menu is closed.\n\n### **Slots:**\n - **default** - Defines the content of the Dropdown.\n- **header** - Defines the header HTML Element.\n- **footer** - Defines the footer HTML Element.\n- **trigger** - Defines the trigger HTML Element.",
934
+ "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-dropdown</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Dropdown.js\";</code>\n---\n\n\n### **Events:**\n - **click-trigger** - Fired event when the user clicks the trigger.\n- **before-open** - Fired before the dropdown is opened.\n- **after-open** - Fired after the dropdown is opened.\n- **before-close** - Fired before the menu is closed.\n- **after-close** - Fired after the menu is closed.\n\n### **Methods:**\n - **onOpen(): _void_** - Open dropdown\n- **onClose(): _void_** - Close dropdown\n\n### **Slots:**\n - **default** - Defines the content of the Dropdown.\n- **header** - Defines the header HTML Element.\n- **footer** - Defines the footer HTML Element.\n- **trigger** - Defines the trigger HTML Element.",
935
935
  "doc-url": "",
936
936
  "attributes": [
937
937
  {
@@ -1789,7 +1789,7 @@
1789
1789
  },
1790
1790
  {
1791
1791
  "name": "udex-footer",
1792
- "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-footer</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Footer.js\";</code>\n---\n",
1792
+ "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-footer</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Footer.js\";</code>\n---\n\n\n### **Events:**\n - **logo-click** - Triggered on click interaction with logo in footer\n- **back-to-top-click** - Triggered on click interaction with \"Back to Top\" button\n- **contact-phone-click** - Triggered on click interaction with phone number link in footer\n- **contact-phone-local-numbers-click** - Triggered on click interaction with local country numbers list link\n- **contact-email-click** - Triggered on click interaction with \"Contact us by email\" link\n- **contact-chat-click** - Triggered on click interaction with \"Contact us by chat\" link\n- **quick-links-click** - Triggered on click interaction with a link within \"Quick Links\" category\n- **trending-click** - Triggered on click interaction with a link within \"Trending\" category\n- **about-sap-click** - Triggered on click interaction with a link within \"About SAP\" category\n- **site-information-click** - Triggered on click interaction with a link within \"Site Information\" category\n- **social-media-link-click** - Triggered on click interaction with any of the social media links within footer",
1793
1793
  "doc-url": "",
1794
1794
  "attributes": [
1795
1795
  {
@@ -1853,7 +1853,52 @@
1853
1853
  "value": { "type": "string", "default": "\"\"" }
1854
1854
  }
1855
1855
  ],
1856
- "events": [],
1856
+ "events": [
1857
+ {
1858
+ "name": "logo-click",
1859
+ "description": "Triggered on click interaction with logo in footer"
1860
+ },
1861
+ {
1862
+ "name": "back-to-top-click",
1863
+ "description": "Triggered on click interaction with \"Back to Top\" button"
1864
+ },
1865
+ {
1866
+ "name": "contact-phone-click",
1867
+ "description": "Triggered on click interaction with phone number link in footer"
1868
+ },
1869
+ {
1870
+ "name": "contact-phone-local-numbers-click",
1871
+ "description": "Triggered on click interaction with local country numbers list link"
1872
+ },
1873
+ {
1874
+ "name": "contact-email-click",
1875
+ "description": "Triggered on click interaction with \"Contact us by email\" link"
1876
+ },
1877
+ {
1878
+ "name": "contact-chat-click",
1879
+ "description": "Triggered on click interaction with \"Contact us by chat\" link"
1880
+ },
1881
+ {
1882
+ "name": "quick-links-click",
1883
+ "description": "Triggered on click interaction with a link within \"Quick Links\" category"
1884
+ },
1885
+ {
1886
+ "name": "trending-click",
1887
+ "description": "Triggered on click interaction with a link within \"Trending\" category"
1888
+ },
1889
+ {
1890
+ "name": "about-sap-click",
1891
+ "description": "Triggered on click interaction with a link within \"About SAP\" category"
1892
+ },
1893
+ {
1894
+ "name": "site-information-click",
1895
+ "description": "Triggered on click interaction with a link within \"Site Information\" category"
1896
+ },
1897
+ {
1898
+ "name": "social-media-link-click",
1899
+ "description": "Triggered on click interaction with any of the social media links within footer"
1900
+ }
1901
+ ],
1857
1902
  "js": {
1858
1903
  "properties": [
1859
1904
  {
@@ -1917,7 +1962,52 @@
1917
1962
  "value": { "type": "string" }
1918
1963
  }
1919
1964
  ],
1920
- "events": []
1965
+ "events": [
1966
+ {
1967
+ "name": "logo-click",
1968
+ "description": "Triggered on click interaction with logo in footer"
1969
+ },
1970
+ {
1971
+ "name": "back-to-top-click",
1972
+ "description": "Triggered on click interaction with \"Back to Top\" button"
1973
+ },
1974
+ {
1975
+ "name": "contact-phone-click",
1976
+ "description": "Triggered on click interaction with phone number link in footer"
1977
+ },
1978
+ {
1979
+ "name": "contact-phone-local-numbers-click",
1980
+ "description": "Triggered on click interaction with local country numbers list link"
1981
+ },
1982
+ {
1983
+ "name": "contact-email-click",
1984
+ "description": "Triggered on click interaction with \"Contact us by email\" link"
1985
+ },
1986
+ {
1987
+ "name": "contact-chat-click",
1988
+ "description": "Triggered on click interaction with \"Contact us by chat\" link"
1989
+ },
1990
+ {
1991
+ "name": "quick-links-click",
1992
+ "description": "Triggered on click interaction with a link within \"Quick Links\" category"
1993
+ },
1994
+ {
1995
+ "name": "trending-click",
1996
+ "description": "Triggered on click interaction with a link within \"Trending\" category"
1997
+ },
1998
+ {
1999
+ "name": "about-sap-click",
2000
+ "description": "Triggered on click interaction with a link within \"About SAP\" category"
2001
+ },
2002
+ {
2003
+ "name": "site-information-click",
2004
+ "description": "Triggered on click interaction with a link within \"Site Information\" category"
2005
+ },
2006
+ {
2007
+ "name": "social-media-link-click",
2008
+ "description": "Triggered on click interaction with any of the social media links within footer"
2009
+ }
2010
+ ]
1921
2011
  }
1922
2012
  },
1923
2013
  {
@@ -2004,6 +2094,71 @@
2004
2094
  "events": []
2005
2095
  }
2006
2096
  },
2097
+ {
2098
+ "name": "udex-input-group",
2099
+ "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-input-group</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@udex/web-components/dist/InputGroup.js\";</code>\n---\n\n\n### **Slots:**\n - **default** - Slot for input elements items.",
2100
+ "doc-url": "",
2101
+ "attributes": [
2102
+ {
2103
+ "name": "group-name",
2104
+ "description": "Defines the group name of the component.",
2105
+ "value": { "type": "string | undefined" }
2106
+ },
2107
+ {
2108
+ "name": "orientation",
2109
+ "description": "Defines the orientation of the component.",
2110
+ "value": {
2111
+ "type": "\"Vertical\" | \"Horizontal\"",
2112
+ "default": "\"Vertical\""
2113
+ }
2114
+ },
2115
+ {
2116
+ "name": "value-state",
2117
+ "description": "Defines the value state of the component.",
2118
+ "value": {
2119
+ "type": "\"Success\" | \"Error\" | \"Standard\"",
2120
+ "default": "\"Standard\""
2121
+ }
2122
+ },
2123
+ {
2124
+ "name": "supporting-text",
2125
+ "description": "Defines supporting text under the Input Group.",
2126
+ "value": { "type": "string", "default": "\"\"" }
2127
+ }
2128
+ ],
2129
+ "slots": [
2130
+ {
2131
+ "name": "default",
2132
+ "description": "Slot for input elements items."
2133
+ }
2134
+ ],
2135
+ "events": [],
2136
+ "js": {
2137
+ "properties": [
2138
+ {
2139
+ "name": "group-name",
2140
+ "description": "Defines the group name of the component.",
2141
+ "value": { "type": "string | undefined" }
2142
+ },
2143
+ {
2144
+ "name": "orientation",
2145
+ "description": "Defines the orientation of the component.",
2146
+ "value": { "type": "\"Vertical\" | \"Horizontal\"" }
2147
+ },
2148
+ {
2149
+ "name": "value-state",
2150
+ "description": "Defines the value state of the component.",
2151
+ "value": { "type": "\"Success\" | \"Error\" | \"Standard\"" }
2152
+ },
2153
+ {
2154
+ "name": "supporting-text",
2155
+ "description": "Defines supporting text under the Input Group.",
2156
+ "value": { "type": "string" }
2157
+ }
2158
+ ],
2159
+ "events": []
2160
+ }
2161
+ },
2007
2162
  {
2008
2163
  "name": "udex-link",
2009
2164
  "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-link</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Link.js\";</code>\n---\n",
@@ -4194,7 +4349,7 @@
4194
4349
  },
4195
4350
  {
4196
4351
  "name": "udex-search",
4197
- "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-search</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Search.js\";</code>\n---\n\n\n### **Events:**\n - **submit-search-value** - Fired event when the user submitted the value.\n- **handle-value-search** - Fired event when the user typed to search field.\n- **handle-value-reset** - Fired event when the user clicks on the reset button.\n- **dropdown-item-click** - Fired event when the user clicks on the item inside the popover.",
4352
+ "description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-search</code>\n<h3>ES6 Module Import</h3>\n\n<code>import @udex/web-components/dist/Search.js\";</code>\n---\n\n\n### **Events:**\n - **submit-search-value** - Fired event when the user submitted the value.\n- **handle-value-search** - Fired event when the user typed to search field.\n- **handle-value-reset** - Fired event when the user clicks on the reset button.\n- **dropdown-item-click** - Fired event when the user clicks on the item inside the popover.\n- **prefix-item-click** - Fired event when the user clicks on the intem inside the prefix dropdown.\n\n### **Slots:**\n - **default** - Defines the prefix dropdown of the Search component.",
4198
4353
  "doc-url": "",
4199
4354
  "attributes": [
4200
4355
  {
@@ -4245,10 +4400,7 @@
4245
4400
  {
4246
4401
  "name": "mode",
4247
4402
  "description": "Defines the mode of component.\n<br><br>\n<b>Note:</b> accepts a string \"Standard\" or \"Home Search\".",
4248
- "value": {
4249
- "type": "\"Standard\" | \"Home Search\"",
4250
- "default": "\"Standard\""
4251
- }
4403
+ "value": { "type": "Mode", "default": "\"Standard\"" }
4252
4404
  },
4253
4405
  {
4254
4406
  "name": "show-popover-when-clicked-into-input",
@@ -4264,6 +4416,17 @@
4264
4416
  "name": "accessible-name",
4265
4417
  "description": "Defines the accessible ARIA name of the component.",
4266
4418
  "value": { "type": "string", "default": "\"\"" }
4419
+ },
4420
+ {
4421
+ "name": "no-result-text",
4422
+ "description": "Defines the text if the suggestion list doesn't return results.",
4423
+ "value": { "type": "string", "default": "\"No matches found.\"" }
4424
+ }
4425
+ ],
4426
+ "slots": [
4427
+ {
4428
+ "name": "default",
4429
+ "description": "Defines the prefix dropdown of the Search component."
4267
4430
  }
4268
4431
  ],
4269
4432
  "events": [
@@ -4282,6 +4445,10 @@
4282
4445
  {
4283
4446
  "name": "dropdown-item-click",
4284
4447
  "description": "Fired event when the user clicks on the item inside the popover."
4448
+ },
4449
+ {
4450
+ "name": "prefix-item-click",
4451
+ "description": "Fired event when the user clicks on the intem inside the prefix dropdown."
4285
4452
  }
4286
4453
  ],
4287
4454
  "js": {
@@ -4334,7 +4501,7 @@
4334
4501
  {
4335
4502
  "name": "mode",
4336
4503
  "description": "Defines the mode of component.\n<br><br>\n<b>Note:</b> accepts a string \"Standard\" or \"Home Search\".",
4337
- "value": { "type": "\"Standard\" | \"Home Search\"" }
4504
+ "value": { "type": "Mode" }
4338
4505
  },
4339
4506
  {
4340
4507
  "name": "show-popover-when-clicked-into-input",
@@ -4350,6 +4517,11 @@
4350
4517
  "name": "accessible-name",
4351
4518
  "description": "Defines the accessible ARIA name of the component.",
4352
4519
  "value": { "type": "string" }
4520
+ },
4521
+ {
4522
+ "name": "no-result-text",
4523
+ "description": "Defines the text if the suggestion list doesn't return results.",
4524
+ "value": { "type": "string" }
4353
4525
  }
4354
4526
  ],
4355
4527
  "events": [
@@ -4368,6 +4540,10 @@
4368
4540
  {
4369
4541
  "name": "dropdown-item-click",
4370
4542
  "description": "Fired event when the user clicks on the item inside the popover."
4543
+ },
4544
+ {
4545
+ "name": "prefix-item-click",
4546
+ "description": "Fired event when the user clicks on the intem inside the prefix dropdown."
4371
4547
  }
4372
4548
  ]
4373
4549
  }
@@ -5604,9 +5780,9 @@
5604
5780
  "doc-url": "",
5605
5781
  "attributes": [
5606
5782
  {
5607
- "name": "height",
5608
- "description": "Defines the height of the table.\nAllows control over the height.",
5609
- "value": { "type": "string | undefined", "default": "undefined" }
5783
+ "name": "max-height",
5784
+ "description": "Defines the height of the table.\nAllows control over the maximum height.",
5785
+ "value": { "type": "string", "default": "\"\"" }
5610
5786
  },
5611
5787
  {
5612
5788
  "name": "accessible-name",
@@ -5670,9 +5846,9 @@
5670
5846
  "js": {
5671
5847
  "properties": [
5672
5848
  {
5673
- "name": "height",
5674
- "description": "Defines the height of the table.\nAllows control over the height.",
5675
- "value": { "type": "string | undefined" }
5849
+ "name": "max-height",
5850
+ "description": "Defines the height of the table.\nAllows control over the maximum height.",
5851
+ "value": { "type": "string" }
5676
5852
  },
5677
5853
  {
5678
5854
  "name": "accessible-name",
@@ -5930,7 +6106,7 @@
5930
6106
  },
5931
6107
  {
5932
6108
  "name": "read-only",
5933
- "description": "Defines if tag is in readonly state",
6109
+ "description": "Defines if tag is in readnly state",
5934
6110
  "value": { "type": "boolean", "default": "false" }
5935
6111
  },
5936
6112
  {
@@ -5990,7 +6166,7 @@
5990
6166
  },
5991
6167
  {
5992
6168
  "name": "read-only",
5993
- "description": "Defines if tag is in readonly state",
6169
+ "description": "Defines if tag is in readnly state",
5994
6170
  "value": { "type": "boolean" }
5995
6171
  },
5996
6172
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapudex/web-components",
3
- "version": "0.111.0",
3
+ "version": "0.114.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -16,7 +16,18 @@
16
16
  <div class="udex-accordion-item__icon-wrapper">
17
17
  <ui5-icon class="udex-accordion-item__icon" name="slim-arrow-right"></ui5-icon>
18
18
  </div>
19
- <h4 class="udex-accordion-item__title">{{title}}</h4>
19
+ <span class="udex-accordion-item__title">
20
+ {{title}}
21
+ {{#if numberBadge}}
22
+ <udex-badge
23
+ class="udex-accordion-item__badge"
24
+ type="Number"
25
+ number-design="Blue"
26
+ size="Large">
27
+ {{numberBadge}}
28
+ </udex-badge>
29
+ {{/if}}
30
+ </span>
20
31
  </div>
21
32
  </div>
22
33
  <div id="udex-accordion-item__{{_id}}-content" @keydown={{contentKeydown}} class="udex-accordion-item__content">
@@ -8,6 +8,7 @@ import "@ui5/webcomponents/dist/Icon.js";
8
8
  import "@ui5/webcomponents-icons/dist/AllIcons.js";
9
9
  import "@ui5/webcomponents-icons/dist/feeder-arrow.js";
10
10
  import { isDesktop } from "@ui5/webcomponents-base/dist/Device.js";
11
+ import UDExBadge from "./Badge.js";
11
12
 
12
13
  import AccordionItemTemplate from "./generated/templates/AccordionItemTemplate.lit.js";
13
14
 
@@ -41,7 +42,7 @@ type ToggleAllEvent = {
41
42
  renderer: litRender,
42
43
  styles: AccordionItemCss,
43
44
  template: AccordionItemTemplate,
44
- dependencies: [],
45
+ dependencies: [UDExBadge],
45
46
  })
46
47
 
47
48
  /**
@@ -51,13 +52,21 @@ type ToggleAllEvent = {
51
52
  @event("accordion-item-focus")
52
53
 
53
54
  class UDExAccordionItem extends UI5Element {
55
+ /**
56
+ * Defines the Badge at the end of the title item.
57
+ *
58
+ * @default ""
59
+ * @public
60
+ */
61
+ @property() numberBadge!: string;
62
+
54
63
  /**
55
64
  * Defines the title of the accordion item component.
56
65
  *
57
66
  * @default ""
58
67
  * @public
59
68
  */
60
- @property({ type: String }) title!: string;
69
+ @property() title!: string;
61
70
 
62
71
  /**
63
72
  * Defines if the accordion item is expanded by default
@@ -22,8 +22,7 @@
22
22
  class="{{countrySelectorTriggerClasses}}"
23
23
  ?disabled="{{isOpenerDisabled}}"
24
24
  value="{{selectedCountryName}}"
25
- slot="trigger"
26
- style="width:{{holderWidth}}">
25
+ slot="trigger">
27
26
  {{#if showFlagImages}}
28
27
  <img
29
28
  class="udex-country-selector__image"