@ui5/webcomponents-ai 0.0.0-a3b95fa49 → 0.0.0-a8a75c830

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 (243) hide show
  1. package/.ui5-cem-aliases.json +4 -0
  2. package/CHANGELOG.md +569 -0
  3. package/LICENSE.txt +201 -0
  4. package/README.md +11 -10
  5. package/dist/.tsbuildinfo +1 -1
  6. package/dist/Assets-fetch.d.ts +3 -0
  7. package/dist/Assets-fetch.js +6 -0
  8. package/dist/Assets-fetch.js.map +1 -0
  9. package/dist/Assets-node.d.ts +14 -0
  10. package/dist/Assets-node.js +17 -0
  11. package/dist/Assets-node.js.map +1 -0
  12. package/dist/Button.d.ts +41 -2
  13. package/dist/Button.js +59 -4
  14. package/dist/Button.js.map +1 -1
  15. package/dist/ButtonState.d.ts +2 -1
  16. package/dist/ButtonState.js +2 -1
  17. package/dist/ButtonState.js.map +1 -1
  18. package/dist/ButtonTemplate.js +1 -1
  19. package/dist/ButtonTemplate.js.map +1 -1
  20. package/dist/Input.d.ts +146 -0
  21. package/dist/Input.js +291 -0
  22. package/dist/Input.js.map +1 -0
  23. package/dist/InputTemplate.d.ts +10 -0
  24. package/dist/InputTemplate.js +28 -0
  25. package/dist/InputTemplate.js.map +1 -0
  26. package/dist/PromptInput.d.ts +4 -2
  27. package/dist/PromptInput.js +2 -1
  28. package/dist/PromptInput.js.map +1 -1
  29. package/dist/TextArea.d.ts +125 -0
  30. package/dist/TextArea.js +272 -0
  31. package/dist/TextArea.js.map +1 -0
  32. package/dist/TextAreaTemplate.d.ts +2 -0
  33. package/dist/TextAreaTemplate.js +13 -0
  34. package/dist/TextAreaTemplate.js.map +1 -0
  35. package/dist/ToolbarLabel.d.ts +39 -0
  36. package/dist/ToolbarLabel.js +67 -0
  37. package/dist/ToolbarLabel.js.map +1 -0
  38. package/dist/ToolbarLabelTemplate.d.ts +2 -0
  39. package/dist/ToolbarLabelTemplate.js +5 -0
  40. package/dist/ToolbarLabelTemplate.js.map +1 -0
  41. package/dist/Versioning.d.ts +95 -0
  42. package/dist/Versioning.js +187 -0
  43. package/dist/Versioning.js.map +1 -0
  44. package/dist/VersioningTemplate.d.ts +4 -0
  45. package/dist/VersioningTemplate.js +9 -0
  46. package/dist/VersioningTemplate.js.map +1 -0
  47. package/dist/WritingAssistant.d.ts +101 -0
  48. package/dist/WritingAssistant.js +201 -0
  49. package/dist/WritingAssistant.js.map +1 -0
  50. package/dist/WritingAssistantTemplate.d.ts +2 -0
  51. package/dist/WritingAssistantTemplate.js +12 -0
  52. package/dist/WritingAssistantTemplate.js.map +1 -0
  53. package/dist/bundle.esm.js +2 -0
  54. package/dist/bundle.esm.js.map +1 -1
  55. package/dist/css/themes/Button.css +1 -1
  56. package/dist/css/themes/Input.css +1 -0
  57. package/dist/css/themes/PromptInput.css +1 -1
  58. package/dist/css/themes/TextArea.css +1 -0
  59. package/dist/css/themes/Versioning.css +1 -0
  60. package/dist/css/themes/WritingAssistant.css +1 -0
  61. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -0
  62. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -0
  63. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -0
  64. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -0
  65. package/dist/custom-elements-internal.json +710 -3
  66. package/dist/custom-elements.json +607 -0
  67. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  68. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  69. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  70. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
  71. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  72. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  73. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  74. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  75. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  76. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  77. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  78. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  79. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  80. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  81. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  82. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  83. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  84. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  85. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  86. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  87. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  88. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  89. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  90. package/dist/generated/assets/i18n/messagebundle_id.json +1 -0
  91. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  92. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  93. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  94. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  95. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  96. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  97. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  98. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
  99. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  100. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  101. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  102. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  103. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  104. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  105. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  106. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  107. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  108. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  109. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  110. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
  111. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  112. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  113. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  114. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  115. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  116. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  117. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  118. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  119. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  120. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  121. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  122. package/dist/generated/i18n/i18n-defaults.d.ts +15 -1
  123. package/dist/generated/i18n/i18n-defaults.js +15 -1
  124. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  125. package/dist/generated/json-imports/Themes-fetch.js +1 -1
  126. package/dist/generated/json-imports/Themes-fetch.js.map +1 -1
  127. package/dist/generated/json-imports/Themes-node.d.ts +1 -0
  128. package/dist/generated/json-imports/Themes-node.js +21 -0
  129. package/dist/generated/json-imports/Themes-node.js.map +1 -0
  130. package/dist/generated/json-imports/Themes.js +1 -1
  131. package/dist/generated/json-imports/Themes.js.map +1 -1
  132. package/dist/generated/json-imports/i18n-fetch.js +3 -1
  133. package/dist/generated/json-imports/i18n-fetch.js.map +1 -1
  134. package/dist/generated/json-imports/i18n-node.d.ts +1 -0
  135. package/dist/generated/json-imports/i18n-node.js +120 -0
  136. package/dist/generated/json-imports/i18n-node.js.map +1 -0
  137. package/dist/generated/json-imports/i18n.js +3 -1
  138. package/dist/generated/json-imports/i18n.js.map +1 -1
  139. package/dist/generated/themes/Button.css.d.ts +1 -1
  140. package/dist/generated/themes/Button.css.js +3 -3
  141. package/dist/generated/themes/Button.css.js.map +1 -1
  142. package/dist/generated/themes/Input.css.d.ts +2 -0
  143. package/dist/generated/themes/Input.css.js +8 -0
  144. package/dist/generated/themes/Input.css.js.map +1 -0
  145. package/dist/generated/themes/PromptInput.css.d.ts +1 -1
  146. package/dist/generated/themes/PromptInput.css.js +3 -3
  147. package/dist/generated/themes/PromptInput.css.js.map +1 -1
  148. package/dist/generated/themes/TextArea.css.d.ts +2 -0
  149. package/dist/generated/themes/TextArea.css.js +8 -0
  150. package/dist/generated/themes/TextArea.css.js.map +1 -0
  151. package/dist/generated/themes/Versioning.css.d.ts +2 -0
  152. package/dist/generated/themes/Versioning.css.js +8 -0
  153. package/dist/generated/themes/Versioning.css.js.map +1 -0
  154. package/dist/generated/themes/WritingAssistant.css.d.ts +2 -0
  155. package/dist/generated/themes/WritingAssistant.css.js +8 -0
  156. package/dist/generated/themes/WritingAssistant.css.js.map +1 -0
  157. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
  158. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  159. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  160. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
  161. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  162. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  163. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +1 -1
  164. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  165. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  166. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +1 -1
  167. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  168. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  169. package/dist/vscode.html-custom-data.json +105 -0
  170. package/dist/web-types.json +309 -1
  171. package/package-scripts.cjs +4 -0
  172. package/package.json +22 -21
  173. package/src/ButtonTemplate.tsx +1 -0
  174. package/src/InputTemplate.tsx +197 -0
  175. package/src/TextArea.css +25 -0
  176. package/src/TextAreaTemplate.tsx +91 -0
  177. package/src/ToolbarLabelTemplate.tsx +9 -0
  178. package/src/VersioningTemplate.tsx +34 -0
  179. package/src/WritingAssistantTemplate.tsx +51 -0
  180. package/src/i18n/messagebundle.properties +43 -1
  181. package/src/i18n/messagebundle_ar.properties +28 -0
  182. package/src/i18n/messagebundle_bg.properties +28 -0
  183. package/src/i18n/messagebundle_ca.properties +28 -0
  184. package/src/i18n/messagebundle_cnr.properties +28 -0
  185. package/src/i18n/messagebundle_cs.properties +28 -0
  186. package/src/i18n/messagebundle_cy.properties +28 -0
  187. package/src/i18n/messagebundle_da.properties +28 -0
  188. package/src/i18n/messagebundle_de.properties +28 -0
  189. package/src/i18n/messagebundle_el.properties +28 -0
  190. package/src/i18n/messagebundle_en.properties +28 -0
  191. package/src/i18n/messagebundle_en_GB.properties +28 -0
  192. package/src/i18n/messagebundle_en_US_sappsd.properties +28 -0
  193. package/src/i18n/messagebundle_en_US_saprigi.properties +28 -0
  194. package/src/i18n/messagebundle_en_US_saptrc.properties +28 -0
  195. package/src/i18n/messagebundle_es.properties +28 -0
  196. package/src/i18n/messagebundle_es_MX.properties +29 -1
  197. package/src/i18n/messagebundle_et.properties +28 -0
  198. package/src/i18n/messagebundle_fi.properties +28 -0
  199. package/src/i18n/messagebundle_fr.properties +28 -0
  200. package/src/i18n/messagebundle_fr_CA.properties +28 -0
  201. package/src/i18n/messagebundle_hi.properties +28 -0
  202. package/src/i18n/messagebundle_hr.properties +30 -2
  203. package/src/i18n/messagebundle_hu.properties +28 -0
  204. package/src/i18n/messagebundle_id.properties +28 -0
  205. package/src/i18n/messagebundle_it.properties +28 -0
  206. package/src/i18n/messagebundle_iw.properties +28 -0
  207. package/src/i18n/messagebundle_ja.properties +28 -0
  208. package/src/i18n/messagebundle_kk.properties +28 -0
  209. package/src/i18n/messagebundle_ko.properties +28 -0
  210. package/src/i18n/messagebundle_lt.properties +28 -0
  211. package/src/i18n/messagebundle_lv.properties +28 -0
  212. package/src/i18n/messagebundle_mk.properties +28 -0
  213. package/src/i18n/messagebundle_ms.properties +28 -0
  214. package/src/i18n/messagebundle_nl.properties +28 -0
  215. package/src/i18n/messagebundle_no.properties +28 -0
  216. package/src/i18n/messagebundle_pl.properties +28 -0
  217. package/src/i18n/messagebundle_pt.properties +28 -0
  218. package/src/i18n/messagebundle_pt_PT.properties +28 -0
  219. package/src/i18n/messagebundle_ro.properties +28 -0
  220. package/src/i18n/messagebundle_ru.properties +28 -0
  221. package/src/i18n/messagebundle_sh.properties +28 -0
  222. package/src/i18n/messagebundle_sk.properties +28 -0
  223. package/src/i18n/messagebundle_sl.properties +28 -0
  224. package/src/i18n/messagebundle_sr.properties +28 -0
  225. package/src/i18n/messagebundle_sv.properties +28 -0
  226. package/src/i18n/messagebundle_th.properties +30 -2
  227. package/src/i18n/messagebundle_tr.properties +28 -0
  228. package/src/i18n/messagebundle_uk.properties +28 -0
  229. package/src/i18n/messagebundle_vi.properties +28 -0
  230. package/src/i18n/messagebundle_zh_CN.properties +28 -0
  231. package/src/i18n/messagebundle_zh_TW.properties +28 -0
  232. package/src/themes/Input.css +83 -0
  233. package/src/themes/PromptInput.css +5 -1
  234. package/src/themes/TextArea.css +45 -0
  235. package/src/themes/Versioning.css +20 -0
  236. package/src/themes/WritingAssistant.css +23 -0
  237. package/src/themes/base/Button-parameters.css +1 -1
  238. package/tsconfig.json +6 -0
  239. package/cypress/specs/Button.cy.tsx +0 -14
  240. package/cypress/support/commands.ts +0 -40
  241. package/cypress/support/component-index.html +0 -12
  242. package/cypress/support/component.ts +0 -36
  243. package/cypress/tsconfig.json +0 -43
@@ -2,6 +2,18 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "dist/Assets-fetch.js",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
11
+ {
12
+ "kind": "javascript-module",
13
+ "path": "dist/Assets-node.js",
14
+ "declarations": [],
15
+ "exports": []
16
+ },
5
17
  {
6
18
  "kind": "javascript-module",
7
19
  "path": "dist/Assets.js",
@@ -83,6 +95,24 @@
83
95
  "privacy": "public",
84
96
  "_ui5since": "2.6.0",
85
97
  "_ui5noAttribute": true
98
+ },
99
+ {
100
+ "kind": "field",
101
+ "name": "accessibilityAttributes",
102
+ "type": {
103
+ "text": "AIButtonAccessibilityAttributes",
104
+ "references": [
105
+ {
106
+ "name": "AIButtonAccessibilityAttributes",
107
+ "package": "@ui5/webcomponents-ai",
108
+ "module": "dist/Button.js"
109
+ }
110
+ ]
111
+ },
112
+ "default": "{}",
113
+ "description": "Defines the additional accessibility attributes that will be applied to the component.\n\nThis property allows for fine-tuned control of ARIA attributes for screen reader support.\nIt accepts an object with the following optional fields:\n\n- **root**: Accessibility attributes that will be applied to the root element.\n - **hasPopup**: Indicates the availability and type of interactive popup element (such as a menu or dialog).\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **roleDescription**: Defines a human-readable description for the button's role.\n Accepts any string value.\n - **title**: Specifies a tooltip or description for screen readers.\n Accepts any string value.\n- **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or focus the button.\n\n- **arrowButton**: Accessibility attributes that will be applied to the arrow (split) button element.\n - **hasPopup**: Indicates the type of popup triggered by the arrow button.\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **expanded**: Indicates whether the popup controlled by the arrow button is currently expanded.\n Accepts boolean values: `true` or `false`.",
114
+ "privacy": "public",
115
+ "_ui5since": "2.6.0"
86
116
  }
87
117
  ],
88
118
  "events": [
@@ -145,6 +175,15 @@
145
175
  "type": {
146
176
  "text": "boolean"
147
177
  }
178
+ },
179
+ {
180
+ "description": "Defines the additional accessibility attributes that will be applied to the component.\n\nThis property allows for fine-tuned control of ARIA attributes for screen reader support.\nIt accepts an object with the following optional fields:\n\n- **root**: Accessibility attributes that will be applied to the root element.\n - **hasPopup**: Indicates the availability and type of interactive popup element (such as a menu or dialog).\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **roleDescription**: Defines a human-readable description for the button's role.\n Accepts any string value.\n - **title**: Specifies a tooltip or description for screen readers.\n Accepts any string value.\n- **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or focus the button.\n\n- **arrowButton**: Accessibility attributes that will be applied to the arrow (split) button element.\n - **hasPopup**: Indicates the type of popup triggered by the arrow button.\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **expanded**: Indicates whether the popup controlled by the arrow button is currently expanded.\n Accepts boolean values: `true` or `false`.",
181
+ "name": "accessibility-attributes",
182
+ "default": "{}",
183
+ "fieldName": "accessibilityAttributes",
184
+ "type": {
185
+ "text": "AIButtonAccessibilityAttributes"
186
+ }
148
187
  }
149
188
  ],
150
189
  "superclass": {
@@ -154,7 +193,7 @@
154
193
  },
155
194
  "tagName": "ui5-ai-button",
156
195
  "customElement": true,
157
- "_ui5experimental": "The Button and ButtonState web components are availabe since 2.0 under an experimental flag and their API and behaviour are subject to change.",
196
+ "_ui5experimental": "The **@ui5/webcomponents-ai** package (including Button and ButtonState) is under active development and considered experimental. Component APIs are subject to change.\nFurthermore, the package supports **Horizon** themes only.",
158
197
  "_ui5since": "2.0.0",
159
198
  "_ui5privacy": "public"
160
199
  }
@@ -293,7 +332,7 @@
293
332
  },
294
333
  "tagName": "ui5-ai-button-state",
295
334
  "customElement": true,
296
- "_ui5experimental": "The Button and ButtonState web components are available since 2.0 under an experimental flag and their API and behaviour are subject to change.",
335
+ "_ui5experimental": "The **@ui5/webcomponents-ai** package (including ButtonState) is under active development and considered experimental. Component APIs are subject to change.\nFurthermore, the package supports **Horizon** themes only.",
297
336
  "_ui5since": "2.0.0",
298
337
  "_ui5privacy": "public",
299
338
  "_ui5abstract": true
@@ -318,6 +357,204 @@
318
357
  }
319
358
  ]
320
359
  },
360
+ {
361
+ "kind": "javascript-module",
362
+ "path": "dist/Input.js",
363
+ "declarations": [
364
+ {
365
+ "kind": "class",
366
+ "description": "### Overview\n\nThe `ui5-ai-input` component extends the standard `ui5-input` with **AI Writing Assistant** capabilities.\n\n### Structure\n\nThe `ui5-ai-input` consists of the following main parts:\n\n- **Input Field** – Inherits all standard Input behaviors.\n- **AI Action Button** – Appears when focused or loading, providing access to AI-related actions or stopping generation.\n\nThe component automatically determines which elements to render based on its internal state:\n- The AI Button is only shown when there are available `actions`.\n- The version navigation appears only when `totalVersions > 1`.\n\n### Keyboard Support\n\n- **Shift + F4** — Opens the AI menu.\n- **Ctrl + Shift + Z / Y** — Navigates backward/forward between AI-generated versions.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Input.js\";`",
367
+ "name": "Input",
368
+ "slots": [
369
+ {
370
+ "name": "actions",
371
+ "description": "Defines the items of the menu for the component.",
372
+ "_ui5type": {
373
+ "text": "Array<HTMLElement>"
374
+ },
375
+ "_ui5privacy": "public"
376
+ }
377
+ ],
378
+ "members": [
379
+ {
380
+ "kind": "field",
381
+ "name": "currentVersion",
382
+ "type": {
383
+ "text": "number"
384
+ },
385
+ "default": "0",
386
+ "description": "Indicates the index of the currently displayed version.",
387
+ "privacy": "public"
388
+ },
389
+ {
390
+ "kind": "field",
391
+ "name": "totalVersions",
392
+ "type": {
393
+ "text": "number"
394
+ },
395
+ "default": "0",
396
+ "description": "Indicates the total number of result versions available.\n\nWhen not set or set to 0, the versioning will be hidden.",
397
+ "privacy": "public"
398
+ },
399
+ {
400
+ "kind": "field",
401
+ "name": "loading",
402
+ "type": {
403
+ "text": "boolean"
404
+ },
405
+ "default": "false",
406
+ "description": "Defines whether the AI Writing Assistant is currently loading.\n\nWhen `true`, indicates that an AI action is in progress.",
407
+ "privacy": "public"
408
+ }
409
+ ],
410
+ "events": [
411
+ {
412
+ "name": "button-click",
413
+ "_ui5privacy": "public",
414
+ "type": {
415
+ "text": "CustomEvent"
416
+ },
417
+ "description": "Fired when the user selects the AI button.",
418
+ "_ui5Cancelable": true,
419
+ "_ui5allowPreventDefault": true,
420
+ "_ui5Bubbles": false
421
+ },
422
+ {
423
+ "name": "item-click",
424
+ "_ui5privacy": "public",
425
+ "type": {
426
+ "text": "CustomEvent<InputItemClickEventDetail>",
427
+ "references": [
428
+ {
429
+ "name": "InputItemClickEventDetail",
430
+ "package": "@ui5/webcomponents-ai",
431
+ "module": "dist/Input.js"
432
+ }
433
+ ]
434
+ },
435
+ "description": "Fired when an item from the AI actions menu is clicked.",
436
+ "_ui5Cancelable": false,
437
+ "_ui5allowPreventDefault": false,
438
+ "_ui5Bubbles": false,
439
+ "_ui5parameters": [
440
+ {
441
+ "type": {
442
+ "text": "HTMLElement"
443
+ },
444
+ "name": "item",
445
+ "_ui5privacy": "public",
446
+ "description": "The currently clicked menu item."
447
+ },
448
+ {
449
+ "type": {
450
+ "text": "string"
451
+ },
452
+ "name": "text",
453
+ "_ui5privacy": "public",
454
+ "description": "The text of the currently clicked menu item."
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "name": "stop-generation",
460
+ "_ui5privacy": "public",
461
+ "type": {
462
+ "text": "CustomEvent"
463
+ },
464
+ "description": "Fired when the user selects the \"Stop\" button to stop ongoing AI text generation.",
465
+ "_ui5Cancelable": false,
466
+ "_ui5allowPreventDefault": false,
467
+ "_ui5Bubbles": false
468
+ },
469
+ {
470
+ "name": "version-change",
471
+ "_ui5privacy": "public",
472
+ "type": {
473
+ "text": "CustomEvent<InputVersionChangeEventDetail>",
474
+ "references": [
475
+ {
476
+ "name": "InputVersionChangeEventDetail",
477
+ "package": "@ui5/webcomponents-ai",
478
+ "module": "dist/Input.js"
479
+ }
480
+ ]
481
+ },
482
+ "description": "Fired when the user selects the version navigation buttons.",
483
+ "_ui5Cancelable": false,
484
+ "_ui5allowPreventDefault": false,
485
+ "_ui5Bubbles": false,
486
+ "_ui5parameters": [
487
+ {
488
+ "type": {
489
+ "text": "boolean"
490
+ },
491
+ "name": "backwards",
492
+ "_ui5privacy": "public",
493
+ "description": "Indicates if navigation is backwards (true) or forwards (false, default)"
494
+ }
495
+ ]
496
+ }
497
+ ],
498
+ "attributes": [
499
+ {
500
+ "description": "Indicates the index of the currently displayed version.",
501
+ "name": "current-version",
502
+ "default": "0",
503
+ "fieldName": "currentVersion",
504
+ "type": {
505
+ "text": "number"
506
+ }
507
+ },
508
+ {
509
+ "description": "Indicates the total number of result versions available.\n\nWhen not set or set to 0, the versioning will be hidden.",
510
+ "name": "total-versions",
511
+ "default": "0",
512
+ "fieldName": "totalVersions",
513
+ "type": {
514
+ "text": "number"
515
+ }
516
+ },
517
+ {
518
+ "description": "Defines whether the AI Writing Assistant is currently loading.\n\nWhen `true`, indicates that an AI action is in progress.",
519
+ "name": "loading",
520
+ "default": "false",
521
+ "fieldName": "loading",
522
+ "type": {
523
+ "text": "boolean"
524
+ }
525
+ }
526
+ ],
527
+ "superclass": {
528
+ "name": "Input",
529
+ "package": "@ui5/webcomponents",
530
+ "module": "dist/Input.js"
531
+ },
532
+ "tagName": "ui5-ai-input",
533
+ "customElement": true,
534
+ "_ui5experimental": "The **@ui5/webcomponents-ai** package is under active development and considered experimental. Component APIs are subject to change.\nFurthermore, the package supports **Horizon** themes only.",
535
+ "_ui5since": "2.16.0",
536
+ "_ui5privacy": "public"
537
+ }
538
+ ],
539
+ "exports": [
540
+ {
541
+ "kind": "js",
542
+ "name": "default",
543
+ "declaration": {
544
+ "name": "Input",
545
+ "module": "dist/Input.js"
546
+ }
547
+ },
548
+ {
549
+ "kind": "custom-element-definition",
550
+ "name": "ui5-ai-input",
551
+ "declaration": {
552
+ "name": "Input",
553
+ "module": "dist/Input.js"
554
+ }
555
+ }
556
+ ]
557
+ },
321
558
  {
322
559
  "kind": "javascript-module",
323
560
  "path": "dist/PromptInput.js",
@@ -608,7 +845,7 @@
608
845
  },
609
846
  "tagName": "ui5-ai-prompt-input",
610
847
  "customElement": true,
611
- "_ui5experimental": "The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.",
848
+ "_ui5experimental": "The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.\nFurthermore, the package supports **Horizon** themes only.",
612
849
  "_ui5privacy": "public"
613
850
  }
614
851
  ],
@@ -630,6 +867,476 @@
630
867
  }
631
868
  }
632
869
  ]
870
+ },
871
+ {
872
+ "kind": "javascript-module",
873
+ "path": "dist/TextArea.js",
874
+ "declarations": [
875
+ {
876
+ "kind": "class",
877
+ "description": "### Overview\n\nThe `ui5-ai-textarea` component extends the standard TextArea with Writing Assistant capabilities.\nIt provides AI-powered text generation, editing suggestions, and version management functionality.\n\n### Structure\nThe `ui5-ai-textarea` consists of the following elements:\n- TextArea: The main text input area with all standard textarea functionality\n- WritingAssistant: Dedicated toolbar containing:\n - Versioning: A component with left/right navigation buttons and a label for browsing AI-generated versions\n - AI Button: Opens a menu that can be extended with custom AI generation options through slotting\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/TextArea.js\";`",
878
+ "name": "TextArea",
879
+ "slots": [
880
+ {
881
+ "description": "Defines a slot for `ui5-menu` integration. This slot allows you to pass a `ui5-menu` instance that will be associated with the assistant.",
882
+ "name": "menu",
883
+ "_ui5privacy": "public",
884
+ "_ui5type": {
885
+ "text": "HTMLElement"
886
+ }
887
+ }
888
+ ],
889
+ "members": [
890
+ {
891
+ "kind": "field",
892
+ "name": "loading",
893
+ "type": {
894
+ "text": "boolean"
895
+ },
896
+ "default": "false",
897
+ "description": "Defines whether the `ui5-ai-textarea` is currently in a loading(processing) state.",
898
+ "privacy": "public"
899
+ },
900
+ {
901
+ "kind": "field",
902
+ "name": "promptDescription",
903
+ "type": {
904
+ "text": "string"
905
+ },
906
+ "default": "\"\"",
907
+ "description": "Defines the prompt description of the current action.",
908
+ "privacy": "public"
909
+ },
910
+ {
911
+ "kind": "field",
912
+ "name": "currentVersion",
913
+ "type": {
914
+ "text": "number"
915
+ },
916
+ "default": "0",
917
+ "description": "Indicates the index of the currently displayed version.",
918
+ "privacy": "public"
919
+ },
920
+ {
921
+ "kind": "field",
922
+ "name": "totalVersions",
923
+ "type": {
924
+ "text": "number"
925
+ },
926
+ "default": "0",
927
+ "description": "Indicates the total number of result versions available.\n\nNotes:\nVersioning is hidden if the value is `0`",
928
+ "privacy": "public"
929
+ }
930
+ ],
931
+ "events": [
932
+ {
933
+ "name": "version-change",
934
+ "_ui5privacy": "public",
935
+ "type": {
936
+ "text": "CustomEvent<TextAreaVersionChangeEventDetail>",
937
+ "references": [
938
+ {
939
+ "name": "TextAreaVersionChangeEventDetail",
940
+ "package": "@ui5/webcomponents-ai",
941
+ "module": "dist/TextArea.js"
942
+ }
943
+ ]
944
+ },
945
+ "description": "Fired when the user clicks on version navigation buttons.",
946
+ "_ui5Cancelable": false,
947
+ "_ui5allowPreventDefault": false,
948
+ "_ui5Bubbles": false,
949
+ "_ui5parameters": [
950
+ {
951
+ "type": {
952
+ "text": "boolean"
953
+ },
954
+ "name": "backwards",
955
+ "_ui5privacy": "public",
956
+ "description": "Indicates if navigation is backwards (true) or forwards (false, default)."
957
+ }
958
+ ]
959
+ },
960
+ {
961
+ "name": "stop-generation",
962
+ "_ui5privacy": "public",
963
+ "type": {
964
+ "text": "CustomEvent"
965
+ },
966
+ "description": "Fired when the user requests to stop AI text generation.",
967
+ "_ui5Cancelable": false,
968
+ "_ui5allowPreventDefault": false,
969
+ "_ui5Bubbles": false
970
+ }
971
+ ],
972
+ "attributes": [
973
+ {
974
+ "description": "Defines whether the `ui5-ai-textarea` is currently in a loading(processing) state.",
975
+ "name": "loading",
976
+ "default": "false",
977
+ "fieldName": "loading",
978
+ "type": {
979
+ "text": "boolean"
980
+ }
981
+ },
982
+ {
983
+ "description": "Defines the prompt description of the current action.",
984
+ "name": "prompt-description",
985
+ "default": "\"\"",
986
+ "fieldName": "promptDescription",
987
+ "type": {
988
+ "text": "string"
989
+ }
990
+ },
991
+ {
992
+ "description": "Indicates the index of the currently displayed version.",
993
+ "name": "current-version",
994
+ "default": "0",
995
+ "fieldName": "currentVersion",
996
+ "type": {
997
+ "text": "number"
998
+ }
999
+ },
1000
+ {
1001
+ "description": "Indicates the total number of result versions available.\n\nNotes:\nVersioning is hidden if the value is `0`",
1002
+ "name": "total-versions",
1003
+ "default": "0",
1004
+ "fieldName": "totalVersions",
1005
+ "type": {
1006
+ "text": "number"
1007
+ }
1008
+ }
1009
+ ],
1010
+ "superclass": {
1011
+ "name": "TextArea",
1012
+ "package": "@ui5/webcomponents",
1013
+ "module": "dist/TextArea.js"
1014
+ },
1015
+ "tagName": "ui5-ai-textarea",
1016
+ "customElement": true,
1017
+ "_ui5experimental": "The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.\nFurthermore, the package supports **Horizon** themes only.",
1018
+ "_ui5since": "2.16.0",
1019
+ "_ui5privacy": "public"
1020
+ }
1021
+ ],
1022
+ "exports": [
1023
+ {
1024
+ "kind": "js",
1025
+ "name": "default",
1026
+ "declaration": {
1027
+ "name": "TextArea",
1028
+ "module": "dist/TextArea.js"
1029
+ }
1030
+ },
1031
+ {
1032
+ "kind": "custom-element-definition",
1033
+ "name": "ui5-ai-textarea",
1034
+ "declaration": {
1035
+ "name": "TextArea",
1036
+ "module": "dist/TextArea.js"
1037
+ }
1038
+ }
1039
+ ]
1040
+ },
1041
+ {
1042
+ "kind": "javascript-module",
1043
+ "path": "dist/ToolbarLabel.js",
1044
+ "declarations": [
1045
+ {
1046
+ "kind": "class",
1047
+ "description": "### Overview\nThe `ui5-ai-toolbar-label` represents a text label,\nused in the `ui5-toolbar`.\n\n### ES6 Module Import\n`import \"@ui5/webcomponents-ai/dist/ToolbarLabel.js\";`",
1048
+ "name": "ToolbarLabel",
1049
+ "members": [
1050
+ {
1051
+ "kind": "field",
1052
+ "name": "text",
1053
+ "type": {
1054
+ "text": "string"
1055
+ },
1056
+ "default": "\"\"",
1057
+ "description": "Defines the text of the label.",
1058
+ "privacy": "public"
1059
+ }
1060
+ ],
1061
+ "attributes": [
1062
+ {
1063
+ "description": "Defines the text of the label.",
1064
+ "name": "text",
1065
+ "default": "\"\"",
1066
+ "fieldName": "text",
1067
+ "type": {
1068
+ "text": "string"
1069
+ }
1070
+ }
1071
+ ],
1072
+ "superclass": {
1073
+ "name": "ToolbarItem",
1074
+ "package": "@ui5/webcomponents",
1075
+ "module": "dist/ToolbarItem.js"
1076
+ },
1077
+ "tagName": "ui5-ai-toolbar-label",
1078
+ "customElement": true,
1079
+ "_ui5since": "1.0.0-rc.1",
1080
+ "_ui5privacy": "private"
1081
+ }
1082
+ ],
1083
+ "exports": [
1084
+ {
1085
+ "kind": "js",
1086
+ "name": "default",
1087
+ "declaration": {
1088
+ "name": "ToolbarLabel",
1089
+ "module": "dist/ToolbarLabel.js"
1090
+ }
1091
+ },
1092
+ {
1093
+ "kind": "custom-element-definition",
1094
+ "name": "ui5-ai-toolbar-label",
1095
+ "declaration": {
1096
+ "name": "ToolbarLabel",
1097
+ "module": "dist/ToolbarLabel.js"
1098
+ }
1099
+ }
1100
+ ]
1101
+ },
1102
+ {
1103
+ "kind": "javascript-module",
1104
+ "path": "dist/Versioning.js",
1105
+ "declarations": [
1106
+ {
1107
+ "kind": "class",
1108
+ "description": "### Overview\n\nThe `ui5-ai-versioning` component provides navigation controls for AI-generated content versions.\nIt displays the current version index and total versions, with previous/next navigation buttons.\nThis component extends ToolbarItem to participate in toolbar overflow behavior as a single unit.\n\n### Structure\nThe `ui5-ai-versioning` consists of the following elements:\n- Previous Button: Navigates to the previous version (disabled when at first version)\n- Version Counter: Shows current version / total versions (e.g., \"2 / 5\")\n- Next Button: Navigates to the nex\nt version (disabled when at last version)\n\n### Focus Management\nThe component automatically manages focus when users reach version boundaries,\nmoving focus to the available navigation button when one becomes disabled.\n\n### Responsive Behavior\nWhen used in a toolbar, the entire versioning component (buttons + label) will overflow\ntogether as a single unit when there is insufficient space.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Versioning.js\";`",
1109
+ "name": "Versioning",
1110
+ "members": [
1111
+ {
1112
+ "kind": "field",
1113
+ "name": "currentStep",
1114
+ "type": {
1115
+ "text": "number"
1116
+ },
1117
+ "default": "0",
1118
+ "description": "Indicates the index of the currently displayed result version.\n\nThis property represents the current position in the version history.",
1119
+ "privacy": "public"
1120
+ },
1121
+ {
1122
+ "kind": "field",
1123
+ "name": "totalSteps",
1124
+ "type": {
1125
+ "text": "number"
1126
+ },
1127
+ "default": "0",
1128
+ "description": "The total number of available result versions.\n\nNote: Versioning is hidden if the value is `0`.",
1129
+ "privacy": "public"
1130
+ }
1131
+ ],
1132
+ "events": [
1133
+ {
1134
+ "name": "version-change",
1135
+ "_ui5privacy": "public",
1136
+ "type": {
1137
+ "text": "CustomEvent"
1138
+ },
1139
+ "description": "Fired when the user clicks on version navigation buttons.",
1140
+ "_ui5Cancelable": false,
1141
+ "_ui5allowPreventDefault": false,
1142
+ "_ui5Bubbles": false
1143
+ }
1144
+ ],
1145
+ "attributes": [
1146
+ {
1147
+ "description": "Indicates the index of the currently displayed result version.\n\nThis property represents the current position in the version history.",
1148
+ "name": "current-step",
1149
+ "default": "0",
1150
+ "fieldName": "currentStep",
1151
+ "type": {
1152
+ "text": "number"
1153
+ }
1154
+ },
1155
+ {
1156
+ "description": "The total number of available result versions.\n\nNote: Versioning is hidden if the value is `0`.",
1157
+ "name": "total-steps",
1158
+ "default": "0",
1159
+ "fieldName": "totalSteps",
1160
+ "type": {
1161
+ "text": "number"
1162
+ }
1163
+ }
1164
+ ],
1165
+ "superclass": {
1166
+ "name": "ToolbarItem",
1167
+ "package": "@ui5/webcomponents",
1168
+ "module": "dist/ToolbarItem.js"
1169
+ },
1170
+ "tagName": "ui5-ai-versioning",
1171
+ "customElement": true,
1172
+ "_ui5since": "2.16.0",
1173
+ "_ui5privacy": "private"
1174
+ }
1175
+ ],
1176
+ "exports": [
1177
+ {
1178
+ "kind": "js",
1179
+ "name": "default",
1180
+ "declaration": {
1181
+ "name": "Versioning",
1182
+ "module": "dist/Versioning.js"
1183
+ }
1184
+ },
1185
+ {
1186
+ "kind": "custom-element-definition",
1187
+ "name": "ui5-ai-versioning",
1188
+ "declaration": {
1189
+ "name": "Versioning",
1190
+ "module": "dist/Versioning.js"
1191
+ }
1192
+ }
1193
+ ]
1194
+ },
1195
+ {
1196
+ "kind": "javascript-module",
1197
+ "path": "dist/WritingAssistant.js",
1198
+ "declarations": [
1199
+ {
1200
+ "kind": "class",
1201
+ "description": "### Overview\n\nThe `ui5-ai-textarea-toolbar` component provides a specialized toolbar for AI TextArea functionality.\nIt manages different states of the AI assistant and provides version navigation capabilities.\n\n### Structure\nThe `ui5-ai-textarea-toolbar` consists of the following elements:\n- AI Generate Button: Triggers AI text generation or stops ongoing generation\n- Version Navigation: Allows navigation between multiple AI-generated results\n- Action Label: Displays the current AI action being performed\n\n### ES6 Module Import\n\n`import \"@sap-webcomponents/ai/dist/WritingAssistant.js\";`",
1202
+ "name": "WritingAssistant",
1203
+ "members": [
1204
+ {
1205
+ "kind": "field",
1206
+ "name": "promptDescription",
1207
+ "type": {
1208
+ "text": "string"
1209
+ },
1210
+ "default": "\"\"",
1211
+ "description": "Defines the prompt description of the Writing Assistant.\n\nThis text is displayed in the toolbar to indicate the current or last\nperformed AI action (e.g., \"Generated text\", \"Simplified text\").",
1212
+ "privacy": "public"
1213
+ },
1214
+ {
1215
+ "kind": "field",
1216
+ "name": "currentVersion",
1217
+ "type": {
1218
+ "text": "number"
1219
+ },
1220
+ "default": "0",
1221
+ "description": "Indicates the index of the currently displayed result version.\n\nThe index is **0-based** (i.e. `0` represents the first result).\nThis property is synchronized with the parent AI TextArea component.",
1222
+ "privacy": "public",
1223
+ "_ui5since": "2.16.0"
1224
+ },
1225
+ {
1226
+ "kind": "field",
1227
+ "name": "totalVersions",
1228
+ "type": {
1229
+ "text": "number"
1230
+ },
1231
+ "default": "0",
1232
+ "description": "Indicates the total number of result versions available.\n\nThis property determines whether version navigation controls are displayed.\nWhen totalVersions > 0, previous/next buttons become available.",
1233
+ "privacy": "public"
1234
+ },
1235
+ {
1236
+ "kind": "method",
1237
+ "name": "handleButtonClick",
1238
+ "return": {
1239
+ "type": {
1240
+ "text": "void"
1241
+ }
1242
+ },
1243
+ "description": "Handles the click event for the AI generate button.\nToggles between generate and stop states based on current button state.",
1244
+ "privacy": "public"
1245
+ }
1246
+ ],
1247
+ "events": [
1248
+ {
1249
+ "name": "version-change",
1250
+ "_ui5privacy": "public",
1251
+ "type": {
1252
+ "text": "CustomEvent"
1253
+ },
1254
+ "description": "Fired when the user clicks on version navigation buttons.",
1255
+ "_ui5Cancelable": false,
1256
+ "_ui5allowPreventDefault": false,
1257
+ "_ui5Bubbles": false
1258
+ },
1259
+ {
1260
+ "name": "button-click",
1261
+ "_ui5privacy": "public",
1262
+ "type": {
1263
+ "text": "CustomEvent"
1264
+ },
1265
+ "description": "Fired when the user clicks on the AI button.",
1266
+ "_ui5Cancelable": false,
1267
+ "_ui5allowPreventDefault": false,
1268
+ "_ui5Bubbles": false
1269
+ },
1270
+ {
1271
+ "name": "stop-generation",
1272
+ "_ui5privacy": "public",
1273
+ "type": {
1274
+ "text": "CustomEvent"
1275
+ },
1276
+ "description": "Fired when the user clicks on the \"Stop\" button to stop ongoing AI text generation.",
1277
+ "_ui5Cancelable": false,
1278
+ "_ui5allowPreventDefault": false,
1279
+ "_ui5Bubbles": false
1280
+ }
1281
+ ],
1282
+ "attributes": [
1283
+ {
1284
+ "description": "Defines the prompt description of the Writing Assistant.\n\nThis text is displayed in the toolbar to indicate the current or last\nperformed AI action (e.g., \"Generated text\", \"Simplified text\").",
1285
+ "name": "prompt-description",
1286
+ "default": "\"\"",
1287
+ "fieldName": "promptDescription",
1288
+ "type": {
1289
+ "text": "string"
1290
+ }
1291
+ },
1292
+ {
1293
+ "description": "Indicates the index of the currently displayed result version.\n\nThe index is **0-based** (i.e. `0` represents the first result).\nThis property is synchronized with the parent AI TextArea component.",
1294
+ "name": "current-version",
1295
+ "default": "0",
1296
+ "fieldName": "currentVersion",
1297
+ "type": {
1298
+ "text": "number"
1299
+ }
1300
+ },
1301
+ {
1302
+ "description": "Indicates the total number of result versions available.\n\nThis property determines whether version navigation controls are displayed.\nWhen totalVersions > 0, previous/next buttons become available.",
1303
+ "name": "total-versions",
1304
+ "default": "0",
1305
+ "fieldName": "totalVersions",
1306
+ "type": {
1307
+ "text": "number"
1308
+ }
1309
+ }
1310
+ ],
1311
+ "superclass": {
1312
+ "name": "UI5Element",
1313
+ "package": "@ui5/webcomponents-base",
1314
+ "module": "dist/UI5Element.js"
1315
+ },
1316
+ "tagName": "ui5-ai-writing-assistant",
1317
+ "customElement": true,
1318
+ "_ui5since": "2.16.0",
1319
+ "_ui5privacy": "private"
1320
+ }
1321
+ ],
1322
+ "exports": [
1323
+ {
1324
+ "kind": "js",
1325
+ "name": "default",
1326
+ "declaration": {
1327
+ "name": "WritingAssistant",
1328
+ "module": "dist/WritingAssistant.js"
1329
+ }
1330
+ },
1331
+ {
1332
+ "kind": "custom-element-definition",
1333
+ "name": "ui5-ai-writing-assistant",
1334
+ "declaration": {
1335
+ "name": "WritingAssistant",
1336
+ "module": "dist/WritingAssistant.js"
1337
+ }
1338
+ }
1339
+ ]
633
1340
  }
634
1341
  ]
635
1342
  }