@ui5/webcomponents-ai 0.0.0-dd5d66a9a → 0.0.0-e03cd01f3

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 (192) hide show
  1. package/.ui5-cem-aliases.json +4 -0
  2. package/CHANGELOG.md +216 -0
  3. package/LICENSE.txt +201 -0
  4. package/README.md +4 -2
  5. package/dist/.tsbuildinfo +1 -1
  6. package/dist/Assets-fetch.js +1 -1
  7. package/dist/Assets-fetch.js.map +1 -1
  8. package/dist/Assets-node.js +1 -1
  9. package/dist/Assets-node.js.map +1 -1
  10. package/dist/Button.d.ts +1 -1
  11. package/dist/Button.js +4 -4
  12. package/dist/Button.js.map +1 -1
  13. package/dist/Input.d.ts +143 -0
  14. package/dist/Input.js +288 -0
  15. package/dist/Input.js.map +1 -0
  16. package/dist/InputTemplate.d.ts +10 -0
  17. package/dist/InputTemplate.js +28 -0
  18. package/dist/InputTemplate.js.map +1 -0
  19. package/dist/TextArea.d.ts +123 -0
  20. package/dist/TextArea.js +271 -0
  21. package/dist/TextArea.js.map +1 -0
  22. package/dist/TextAreaTemplate.d.ts +2 -0
  23. package/dist/TextAreaTemplate.js +13 -0
  24. package/dist/TextAreaTemplate.js.map +1 -0
  25. package/dist/ToolbarLabel.d.ts +39 -0
  26. package/dist/ToolbarLabel.js +67 -0
  27. package/dist/ToolbarLabel.js.map +1 -0
  28. package/dist/ToolbarLabelTemplate.d.ts +2 -0
  29. package/dist/ToolbarLabelTemplate.js +5 -0
  30. package/dist/ToolbarLabelTemplate.js.map +1 -0
  31. package/dist/Versioning.d.ts +95 -0
  32. package/dist/Versioning.js +187 -0
  33. package/dist/Versioning.js.map +1 -0
  34. package/dist/VersioningTemplate.d.ts +4 -0
  35. package/dist/VersioningTemplate.js +9 -0
  36. package/dist/VersioningTemplate.js.map +1 -0
  37. package/dist/WritingAssistant.d.ts +101 -0
  38. package/dist/WritingAssistant.js +201 -0
  39. package/dist/WritingAssistant.js.map +1 -0
  40. package/dist/WritingAssistantTemplate.d.ts +2 -0
  41. package/dist/WritingAssistantTemplate.js +12 -0
  42. package/dist/WritingAssistantTemplate.js.map +1 -0
  43. package/dist/bundle.esm.js +2 -0
  44. package/dist/bundle.esm.js.map +1 -1
  45. package/dist/css/themes/Button.css +1 -1
  46. package/dist/css/themes/Input.css +1 -0
  47. package/dist/css/themes/PromptInput.css +1 -1
  48. package/dist/css/themes/TextArea.css +1 -0
  49. package/dist/css/themes/Versioning.css +1 -0
  50. package/dist/css/themes/WritingAssistant.css +1 -0
  51. package/dist/custom-elements-internal.json +643 -0
  52. package/dist/custom-elements.json +562 -0
  53. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  54. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  55. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  56. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
  57. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  58. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  59. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  60. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  61. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  62. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  63. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  64. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  65. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  66. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  67. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  68. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  69. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  70. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  71. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  72. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  73. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  74. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  75. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  76. package/dist/generated/assets/i18n/messagebundle_id.json +1 -1
  77. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  78. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  79. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  80. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  81. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  82. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  83. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  84. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
  85. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  86. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  87. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  88. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  89. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  90. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  91. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  92. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  93. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  94. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  95. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  96. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
  97. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  98. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  99. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  100. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  101. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  102. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  103. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  104. package/dist/generated/i18n/i18n-defaults.d.ts +14 -1
  105. package/dist/generated/i18n/i18n-defaults.js +14 -1
  106. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  107. package/dist/generated/themes/Button.css.d.ts +1 -1
  108. package/dist/generated/themes/Button.css.js +1 -1
  109. package/dist/generated/themes/Button.css.js.map +1 -1
  110. package/dist/generated/themes/Input.css.d.ts +2 -0
  111. package/dist/generated/themes/Input.css.js +8 -0
  112. package/dist/generated/themes/Input.css.js.map +1 -0
  113. package/dist/generated/themes/PromptInput.css.d.ts +1 -1
  114. package/dist/generated/themes/PromptInput.css.js +1 -1
  115. package/dist/generated/themes/PromptInput.css.js.map +1 -1
  116. package/dist/generated/themes/TextArea.css.d.ts +2 -0
  117. package/dist/generated/themes/TextArea.css.js +8 -0
  118. package/dist/generated/themes/TextArea.css.js.map +1 -0
  119. package/dist/generated/themes/Versioning.css.d.ts +2 -0
  120. package/dist/generated/themes/Versioning.css.js +8 -0
  121. package/dist/generated/themes/Versioning.css.js.map +1 -0
  122. package/dist/generated/themes/WritingAssistant.css.d.ts +2 -0
  123. package/dist/generated/themes/WritingAssistant.css.js +8 -0
  124. package/dist/generated/themes/WritingAssistant.css.js.map +1 -0
  125. package/dist/vscode.html-custom-data.json +100 -0
  126. package/dist/web-types.json +296 -1
  127. package/package-scripts.cjs +0 -1
  128. package/package.json +20 -18
  129. package/src/InputTemplate.tsx +197 -0
  130. package/src/TextArea.css +25 -0
  131. package/src/TextAreaTemplate.tsx +91 -0
  132. package/src/ToolbarLabelTemplate.tsx +9 -0
  133. package/src/VersioningTemplate.tsx +34 -0
  134. package/src/WritingAssistantTemplate.tsx +51 -0
  135. package/src/i18n/messagebundle.properties +38 -0
  136. package/src/i18n/messagebundle_ar.properties +28 -0
  137. package/src/i18n/messagebundle_bg.properties +28 -0
  138. package/src/i18n/messagebundle_ca.properties +28 -0
  139. package/src/i18n/messagebundle_cnr.properties +28 -0
  140. package/src/i18n/messagebundle_cs.properties +28 -0
  141. package/src/i18n/messagebundle_cy.properties +28 -0
  142. package/src/i18n/messagebundle_da.properties +28 -0
  143. package/src/i18n/messagebundle_de.properties +25 -0
  144. package/src/i18n/messagebundle_el.properties +28 -0
  145. package/src/i18n/messagebundle_en.properties +41 -1
  146. package/src/i18n/messagebundle_en_GB.properties +28 -0
  147. package/src/i18n/messagebundle_en_US_sappsd.properties +25 -0
  148. package/src/i18n/messagebundle_en_US_saprigi.properties +25 -0
  149. package/src/i18n/messagebundle_en_US_saptrc.properties +25 -0
  150. package/src/i18n/messagebundle_es.properties +28 -0
  151. package/src/i18n/messagebundle_es_MX.properties +29 -1
  152. package/src/i18n/messagebundle_et.properties +28 -0
  153. package/src/i18n/messagebundle_fi.properties +28 -0
  154. package/src/i18n/messagebundle_fr.properties +28 -0
  155. package/src/i18n/messagebundle_fr_CA.properties +28 -0
  156. package/src/i18n/messagebundle_hi.properties +28 -0
  157. package/src/i18n/messagebundle_hr.properties +30 -2
  158. package/src/i18n/messagebundle_hu.properties +28 -0
  159. package/src/i18n/messagebundle_id.properties +28 -0
  160. package/src/i18n/messagebundle_it.properties +28 -0
  161. package/src/i18n/messagebundle_iw.properties +28 -0
  162. package/src/i18n/messagebundle_ja.properties +28 -0
  163. package/src/i18n/messagebundle_kk.properties +28 -0
  164. package/src/i18n/messagebundle_ko.properties +28 -0
  165. package/src/i18n/messagebundle_lt.properties +28 -0
  166. package/src/i18n/messagebundle_lv.properties +28 -0
  167. package/src/i18n/messagebundle_mk.properties +28 -0
  168. package/src/i18n/messagebundle_ms.properties +28 -0
  169. package/src/i18n/messagebundle_nl.properties +28 -0
  170. package/src/i18n/messagebundle_no.properties +28 -0
  171. package/src/i18n/messagebundle_pl.properties +28 -0
  172. package/src/i18n/messagebundle_pt.properties +28 -0
  173. package/src/i18n/messagebundle_pt_PT.properties +28 -0
  174. package/src/i18n/messagebundle_ro.properties +28 -0
  175. package/src/i18n/messagebundle_ru.properties +28 -0
  176. package/src/i18n/messagebundle_sh.properties +28 -0
  177. package/src/i18n/messagebundle_sk.properties +28 -0
  178. package/src/i18n/messagebundle_sl.properties +28 -0
  179. package/src/i18n/messagebundle_sr.properties +28 -0
  180. package/src/i18n/messagebundle_sv.properties +28 -0
  181. package/src/i18n/messagebundle_th.properties +30 -2
  182. package/src/i18n/messagebundle_tr.properties +28 -0
  183. package/src/i18n/messagebundle_uk.properties +28 -0
  184. package/src/i18n/messagebundle_vi.properties +28 -0
  185. package/src/i18n/messagebundle_zh_CN.properties +28 -0
  186. package/src/i18n/messagebundle_zh_TW.properties +28 -0
  187. package/src/themes/Input.css +83 -0
  188. package/src/themes/PromptInput.css +5 -1
  189. package/src/themes/TextArea.css +45 -0
  190. package/src/themes/Versioning.css +20 -0
  191. package/src/themes/WritingAssistant.css +23 -0
  192. package/tsconfig.json +6 -0
@@ -357,6 +357,179 @@
357
357
  }
358
358
  ]
359
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"
427
+ },
428
+ "description": "Fired when an item from the AI actions menu is clicked.",
429
+ "_ui5Cancelable": false,
430
+ "_ui5allowPreventDefault": false,
431
+ "_ui5Bubbles": false
432
+ },
433
+ {
434
+ "name": "stop-generation",
435
+ "_ui5privacy": "public",
436
+ "type": {
437
+ "text": "CustomEvent"
438
+ },
439
+ "description": "Fired when the user selects the \"Stop\" button to stop ongoing AI text generation.",
440
+ "_ui5Cancelable": false,
441
+ "_ui5allowPreventDefault": false,
442
+ "_ui5Bubbles": false
443
+ },
444
+ {
445
+ "name": "version-change",
446
+ "_ui5privacy": "public",
447
+ "type": {
448
+ "text": "CustomEvent<InputVersionChangeEventDetail>",
449
+ "references": [
450
+ {
451
+ "name": "InputVersionChangeEventDetail",
452
+ "package": "@ui5/webcomponents-ai",
453
+ "module": "dist/Input.js"
454
+ }
455
+ ]
456
+ },
457
+ "description": "Fired when the user selects the version navigation buttons.",
458
+ "_ui5Cancelable": false,
459
+ "_ui5allowPreventDefault": false,
460
+ "_ui5Bubbles": false,
461
+ "_ui5parameters": [
462
+ {
463
+ "type": {
464
+ "text": "boolean"
465
+ },
466
+ "name": "backwards",
467
+ "_ui5privacy": "public",
468
+ "description": "Indicates if navigation is backwards (true) or forwards (false, default)"
469
+ }
470
+ ]
471
+ }
472
+ ],
473
+ "attributes": [
474
+ {
475
+ "description": "Indicates the index of the currently displayed version.",
476
+ "name": "current-version",
477
+ "default": "0",
478
+ "fieldName": "currentVersion",
479
+ "type": {
480
+ "text": "number"
481
+ }
482
+ },
483
+ {
484
+ "description": "Indicates the total number of result versions available.\n\nWhen not set or set to 0, the versioning will be hidden.",
485
+ "name": "total-versions",
486
+ "default": "0",
487
+ "fieldName": "totalVersions",
488
+ "type": {
489
+ "text": "number"
490
+ }
491
+ },
492
+ {
493
+ "description": "Defines whether the AI Writing Assistant is currently loading.\n\nWhen `true`, indicates that an AI action is in progress.",
494
+ "name": "loading",
495
+ "default": "false",
496
+ "fieldName": "loading",
497
+ "type": {
498
+ "text": "boolean"
499
+ }
500
+ }
501
+ ],
502
+ "superclass": {
503
+ "name": "Input",
504
+ "package": "@ui5/webcomponents",
505
+ "module": "dist/Input.js"
506
+ },
507
+ "tagName": "ui5-ai-input",
508
+ "customElement": true,
509
+ "_ui5experimental": "The **@ui5/webcomponents-ai** package is under active development and considered experimental. Component APIs are subject to change.",
510
+ "_ui5since": "2.16.0",
511
+ "_ui5privacy": "public"
512
+ }
513
+ ],
514
+ "exports": [
515
+ {
516
+ "kind": "js",
517
+ "name": "default",
518
+ "declaration": {
519
+ "name": "Input",
520
+ "module": "dist/Input.js"
521
+ }
522
+ },
523
+ {
524
+ "kind": "custom-element-definition",
525
+ "name": "ui5-ai-input",
526
+ "declaration": {
527
+ "name": "Input",
528
+ "module": "dist/Input.js"
529
+ }
530
+ }
531
+ ]
532
+ },
360
533
  {
361
534
  "kind": "javascript-module",
362
535
  "path": "dist/PromptInput.js",
@@ -669,6 +842,476 @@
669
842
  }
670
843
  }
671
844
  ]
845
+ },
846
+ {
847
+ "kind": "javascript-module",
848
+ "path": "dist/TextArea.js",
849
+ "declarations": [
850
+ {
851
+ "kind": "class",
852
+ "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\";`",
853
+ "name": "TextArea",
854
+ "slots": [
855
+ {
856
+ "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.",
857
+ "name": "menu",
858
+ "_ui5privacy": "public",
859
+ "_ui5type": {
860
+ "text": "HTMLElement"
861
+ }
862
+ }
863
+ ],
864
+ "members": [
865
+ {
866
+ "kind": "field",
867
+ "name": "loading",
868
+ "type": {
869
+ "text": "boolean"
870
+ },
871
+ "default": "false",
872
+ "description": "Defines whether the `ui5-ai-textarea` is currently in a loading(processing) state.",
873
+ "privacy": "public"
874
+ },
875
+ {
876
+ "kind": "field",
877
+ "name": "promptDescription",
878
+ "type": {
879
+ "text": "string"
880
+ },
881
+ "default": "\"\"",
882
+ "description": "Defines the prompt description of the current action.",
883
+ "privacy": "public"
884
+ },
885
+ {
886
+ "kind": "field",
887
+ "name": "currentVersion",
888
+ "type": {
889
+ "text": "number"
890
+ },
891
+ "default": "0",
892
+ "description": "Indicates the index of the currently displayed version.",
893
+ "privacy": "public"
894
+ },
895
+ {
896
+ "kind": "field",
897
+ "name": "totalVersions",
898
+ "type": {
899
+ "text": "number"
900
+ },
901
+ "default": "0",
902
+ "description": "Indicates the total number of result versions available.\n\nNotes:\nVersioning is hidden if the value is `0`",
903
+ "privacy": "public"
904
+ }
905
+ ],
906
+ "events": [
907
+ {
908
+ "name": "version-change",
909
+ "_ui5privacy": "public",
910
+ "type": {
911
+ "text": "CustomEvent<TextAreaVersionChangeEventDetail>",
912
+ "references": [
913
+ {
914
+ "name": "TextAreaVersionChangeEventDetail",
915
+ "package": "@ui5/webcomponents-ai",
916
+ "module": "dist/TextArea.js"
917
+ }
918
+ ]
919
+ },
920
+ "description": "Fired when the user clicks on version navigation buttons.",
921
+ "_ui5Cancelable": false,
922
+ "_ui5allowPreventDefault": false,
923
+ "_ui5Bubbles": false,
924
+ "_ui5parameters": [
925
+ {
926
+ "type": {
927
+ "text": "boolean"
928
+ },
929
+ "name": "backwards",
930
+ "_ui5privacy": "public",
931
+ "description": "Indicates if navigation is backwards (true) or forwards (false, default)."
932
+ }
933
+ ]
934
+ },
935
+ {
936
+ "name": "stop-generation",
937
+ "_ui5privacy": "public",
938
+ "type": {
939
+ "text": "CustomEvent"
940
+ },
941
+ "description": "Fired when the user requests to stop AI text generation.",
942
+ "_ui5Cancelable": false,
943
+ "_ui5allowPreventDefault": false,
944
+ "_ui5Bubbles": false
945
+ }
946
+ ],
947
+ "attributes": [
948
+ {
949
+ "description": "Defines whether the `ui5-ai-textarea` is currently in a loading(processing) state.",
950
+ "name": "loading",
951
+ "default": "false",
952
+ "fieldName": "loading",
953
+ "type": {
954
+ "text": "boolean"
955
+ }
956
+ },
957
+ {
958
+ "description": "Defines the prompt description of the current action.",
959
+ "name": "prompt-description",
960
+ "default": "\"\"",
961
+ "fieldName": "promptDescription",
962
+ "type": {
963
+ "text": "string"
964
+ }
965
+ },
966
+ {
967
+ "description": "Indicates the index of the currently displayed version.",
968
+ "name": "current-version",
969
+ "default": "0",
970
+ "fieldName": "currentVersion",
971
+ "type": {
972
+ "text": "number"
973
+ }
974
+ },
975
+ {
976
+ "description": "Indicates the total number of result versions available.\n\nNotes:\nVersioning is hidden if the value is `0`",
977
+ "name": "total-versions",
978
+ "default": "0",
979
+ "fieldName": "totalVersions",
980
+ "type": {
981
+ "text": "number"
982
+ }
983
+ }
984
+ ],
985
+ "superclass": {
986
+ "name": "TextArea",
987
+ "package": "@ui5/webcomponents",
988
+ "module": "dist/TextArea.js"
989
+ },
990
+ "tagName": "ui5-ai-textarea",
991
+ "customElement": true,
992
+ "_ui5experimental": "The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.",
993
+ "_ui5since": "2.16.0",
994
+ "_ui5privacy": "public"
995
+ }
996
+ ],
997
+ "exports": [
998
+ {
999
+ "kind": "js",
1000
+ "name": "default",
1001
+ "declaration": {
1002
+ "name": "TextArea",
1003
+ "module": "dist/TextArea.js"
1004
+ }
1005
+ },
1006
+ {
1007
+ "kind": "custom-element-definition",
1008
+ "name": "ui5-ai-textarea",
1009
+ "declaration": {
1010
+ "name": "TextArea",
1011
+ "module": "dist/TextArea.js"
1012
+ }
1013
+ }
1014
+ ]
1015
+ },
1016
+ {
1017
+ "kind": "javascript-module",
1018
+ "path": "dist/ToolbarLabel.js",
1019
+ "declarations": [
1020
+ {
1021
+ "kind": "class",
1022
+ "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\";`",
1023
+ "name": "ToolbarLabel",
1024
+ "members": [
1025
+ {
1026
+ "kind": "field",
1027
+ "name": "text",
1028
+ "type": {
1029
+ "text": "string"
1030
+ },
1031
+ "default": "\"\"",
1032
+ "description": "Defines the text of the label.",
1033
+ "privacy": "public"
1034
+ }
1035
+ ],
1036
+ "attributes": [
1037
+ {
1038
+ "description": "Defines the text of the label.",
1039
+ "name": "text",
1040
+ "default": "\"\"",
1041
+ "fieldName": "text",
1042
+ "type": {
1043
+ "text": "string"
1044
+ }
1045
+ }
1046
+ ],
1047
+ "superclass": {
1048
+ "name": "ToolbarItem",
1049
+ "package": "@ui5/webcomponents",
1050
+ "module": "dist/ToolbarItem.js"
1051
+ },
1052
+ "tagName": "ui5-ai-toolbar-label",
1053
+ "customElement": true,
1054
+ "_ui5since": "1.0.0-rc.1",
1055
+ "_ui5privacy": "private"
1056
+ }
1057
+ ],
1058
+ "exports": [
1059
+ {
1060
+ "kind": "js",
1061
+ "name": "default",
1062
+ "declaration": {
1063
+ "name": "ToolbarLabel",
1064
+ "module": "dist/ToolbarLabel.js"
1065
+ }
1066
+ },
1067
+ {
1068
+ "kind": "custom-element-definition",
1069
+ "name": "ui5-ai-toolbar-label",
1070
+ "declaration": {
1071
+ "name": "ToolbarLabel",
1072
+ "module": "dist/ToolbarLabel.js"
1073
+ }
1074
+ }
1075
+ ]
1076
+ },
1077
+ {
1078
+ "kind": "javascript-module",
1079
+ "path": "dist/Versioning.js",
1080
+ "declarations": [
1081
+ {
1082
+ "kind": "class",
1083
+ "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\";`",
1084
+ "name": "Versioning",
1085
+ "members": [
1086
+ {
1087
+ "kind": "field",
1088
+ "name": "currentStep",
1089
+ "type": {
1090
+ "text": "number"
1091
+ },
1092
+ "default": "0",
1093
+ "description": "Indicates the index of the currently displayed result version.\n\nThis property represents the current position in the version history.",
1094
+ "privacy": "public"
1095
+ },
1096
+ {
1097
+ "kind": "field",
1098
+ "name": "totalSteps",
1099
+ "type": {
1100
+ "text": "number"
1101
+ },
1102
+ "default": "0",
1103
+ "description": "The total number of available result versions.\n\nNote: Versioning is hidden if the value is `0`.",
1104
+ "privacy": "public"
1105
+ }
1106
+ ],
1107
+ "events": [
1108
+ {
1109
+ "name": "version-change",
1110
+ "_ui5privacy": "public",
1111
+ "type": {
1112
+ "text": "CustomEvent"
1113
+ },
1114
+ "description": "Fired when the user clicks on version navigation buttons.",
1115
+ "_ui5Cancelable": false,
1116
+ "_ui5allowPreventDefault": false,
1117
+ "_ui5Bubbles": false
1118
+ }
1119
+ ],
1120
+ "attributes": [
1121
+ {
1122
+ "description": "Indicates the index of the currently displayed result version.\n\nThis property represents the current position in the version history.",
1123
+ "name": "current-step",
1124
+ "default": "0",
1125
+ "fieldName": "currentStep",
1126
+ "type": {
1127
+ "text": "number"
1128
+ }
1129
+ },
1130
+ {
1131
+ "description": "The total number of available result versions.\n\nNote: Versioning is hidden if the value is `0`.",
1132
+ "name": "total-steps",
1133
+ "default": "0",
1134
+ "fieldName": "totalSteps",
1135
+ "type": {
1136
+ "text": "number"
1137
+ }
1138
+ }
1139
+ ],
1140
+ "superclass": {
1141
+ "name": "ToolbarItem",
1142
+ "package": "@ui5/webcomponents",
1143
+ "module": "dist/ToolbarItem.js"
1144
+ },
1145
+ "tagName": "ui5-ai-versioning",
1146
+ "customElement": true,
1147
+ "_ui5since": "2.16.0",
1148
+ "_ui5privacy": "private"
1149
+ }
1150
+ ],
1151
+ "exports": [
1152
+ {
1153
+ "kind": "js",
1154
+ "name": "default",
1155
+ "declaration": {
1156
+ "name": "Versioning",
1157
+ "module": "dist/Versioning.js"
1158
+ }
1159
+ },
1160
+ {
1161
+ "kind": "custom-element-definition",
1162
+ "name": "ui5-ai-versioning",
1163
+ "declaration": {
1164
+ "name": "Versioning",
1165
+ "module": "dist/Versioning.js"
1166
+ }
1167
+ }
1168
+ ]
1169
+ },
1170
+ {
1171
+ "kind": "javascript-module",
1172
+ "path": "dist/WritingAssistant.js",
1173
+ "declarations": [
1174
+ {
1175
+ "kind": "class",
1176
+ "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\";`",
1177
+ "name": "WritingAssistant",
1178
+ "members": [
1179
+ {
1180
+ "kind": "field",
1181
+ "name": "promptDescription",
1182
+ "type": {
1183
+ "text": "string"
1184
+ },
1185
+ "default": "\"\"",
1186
+ "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\").",
1187
+ "privacy": "public"
1188
+ },
1189
+ {
1190
+ "kind": "field",
1191
+ "name": "currentVersion",
1192
+ "type": {
1193
+ "text": "number"
1194
+ },
1195
+ "default": "0",
1196
+ "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.",
1197
+ "privacy": "public",
1198
+ "_ui5since": "2.16.0"
1199
+ },
1200
+ {
1201
+ "kind": "field",
1202
+ "name": "totalVersions",
1203
+ "type": {
1204
+ "text": "number"
1205
+ },
1206
+ "default": "0",
1207
+ "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.",
1208
+ "privacy": "public"
1209
+ },
1210
+ {
1211
+ "kind": "method",
1212
+ "name": "handleButtonClick",
1213
+ "return": {
1214
+ "type": {
1215
+ "text": "void"
1216
+ }
1217
+ },
1218
+ "description": "Handles the click event for the AI generate button.\nToggles between generate and stop states based on current button state.",
1219
+ "privacy": "public"
1220
+ }
1221
+ ],
1222
+ "events": [
1223
+ {
1224
+ "name": "version-change",
1225
+ "_ui5privacy": "public",
1226
+ "type": {
1227
+ "text": "CustomEvent"
1228
+ },
1229
+ "description": "Fired when the user clicks on version navigation buttons.",
1230
+ "_ui5Cancelable": false,
1231
+ "_ui5allowPreventDefault": false,
1232
+ "_ui5Bubbles": false
1233
+ },
1234
+ {
1235
+ "name": "button-click",
1236
+ "_ui5privacy": "public",
1237
+ "type": {
1238
+ "text": "CustomEvent"
1239
+ },
1240
+ "description": "Fired when the user clicks on the AI button.",
1241
+ "_ui5Cancelable": false,
1242
+ "_ui5allowPreventDefault": false,
1243
+ "_ui5Bubbles": false
1244
+ },
1245
+ {
1246
+ "name": "stop-generation",
1247
+ "_ui5privacy": "public",
1248
+ "type": {
1249
+ "text": "CustomEvent"
1250
+ },
1251
+ "description": "Fired when the user clicks on the \"Stop\" button to stop ongoing AI text generation.",
1252
+ "_ui5Cancelable": false,
1253
+ "_ui5allowPreventDefault": false,
1254
+ "_ui5Bubbles": false
1255
+ }
1256
+ ],
1257
+ "attributes": [
1258
+ {
1259
+ "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\").",
1260
+ "name": "prompt-description",
1261
+ "default": "\"\"",
1262
+ "fieldName": "promptDescription",
1263
+ "type": {
1264
+ "text": "string"
1265
+ }
1266
+ },
1267
+ {
1268
+ "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.",
1269
+ "name": "current-version",
1270
+ "default": "0",
1271
+ "fieldName": "currentVersion",
1272
+ "type": {
1273
+ "text": "number"
1274
+ }
1275
+ },
1276
+ {
1277
+ "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.",
1278
+ "name": "total-versions",
1279
+ "default": "0",
1280
+ "fieldName": "totalVersions",
1281
+ "type": {
1282
+ "text": "number"
1283
+ }
1284
+ }
1285
+ ],
1286
+ "superclass": {
1287
+ "name": "UI5Element",
1288
+ "package": "@ui5/webcomponents-base",
1289
+ "module": "dist/UI5Element.js"
1290
+ },
1291
+ "tagName": "ui5-ai-writing-assistant",
1292
+ "customElement": true,
1293
+ "_ui5since": "2.16.0",
1294
+ "_ui5privacy": "private"
1295
+ }
1296
+ ],
1297
+ "exports": [
1298
+ {
1299
+ "kind": "js",
1300
+ "name": "default",
1301
+ "declaration": {
1302
+ "name": "WritingAssistant",
1303
+ "module": "dist/WritingAssistant.js"
1304
+ }
1305
+ },
1306
+ {
1307
+ "kind": "custom-element-definition",
1308
+ "name": "ui5-ai-writing-assistant",
1309
+ "declaration": {
1310
+ "name": "WritingAssistant",
1311
+ "module": "dist/WritingAssistant.js"
1312
+ }
1313
+ }
1314
+ ]
672
1315
  }
673
1316
  ]
674
1317
  }