@ui5/webcomponents-ai 0.0.0-1c3388f4d → 0.0.0-2c875c3d3

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 (191) hide show
  1. package/CHANGELOG.md +154 -0
  2. package/LICENSE.txt +201 -0
  3. package/README.md +10 -8
  4. package/dist/.tsbuildinfo +1 -1
  5. package/dist/Assets-fetch.js +1 -1
  6. package/dist/Assets-fetch.js.map +1 -1
  7. package/dist/Assets-node.js +1 -1
  8. package/dist/Assets-node.js.map +1 -1
  9. package/dist/Button.d.ts +5 -2
  10. package/dist/Button.js +8 -4
  11. package/dist/Button.js.map +1 -1
  12. package/dist/Input.d.ts +143 -0
  13. package/dist/Input.js +288 -0
  14. package/dist/Input.js.map +1 -0
  15. package/dist/InputTemplate.d.ts +10 -0
  16. package/dist/InputTemplate.js +28 -0
  17. package/dist/InputTemplate.js.map +1 -0
  18. package/dist/TextArea.d.ts +118 -0
  19. package/dist/TextArea.js +230 -0
  20. package/dist/TextArea.js.map +1 -0
  21. package/dist/TextAreaTemplate.d.ts +2 -0
  22. package/dist/TextAreaTemplate.js +13 -0
  23. package/dist/TextAreaTemplate.js.map +1 -0
  24. package/dist/ToolbarLabel.d.ts +39 -0
  25. package/dist/ToolbarLabel.js +67 -0
  26. package/dist/ToolbarLabel.js.map +1 -0
  27. package/dist/ToolbarLabelTemplate.d.ts +2 -0
  28. package/dist/ToolbarLabelTemplate.js +5 -0
  29. package/dist/ToolbarLabelTemplate.js.map +1 -0
  30. package/dist/Versioning.d.ts +95 -0
  31. package/dist/Versioning.js +187 -0
  32. package/dist/Versioning.js.map +1 -0
  33. package/dist/VersioningTemplate.d.ts +4 -0
  34. package/dist/VersioningTemplate.js +9 -0
  35. package/dist/VersioningTemplate.js.map +1 -0
  36. package/dist/WritingAssistant.d.ts +100 -0
  37. package/dist/WritingAssistant.js +197 -0
  38. package/dist/WritingAssistant.js.map +1 -0
  39. package/dist/WritingAssistantTemplate.d.ts +2 -0
  40. package/dist/WritingAssistantTemplate.js +12 -0
  41. package/dist/WritingAssistantTemplate.js.map +1 -0
  42. package/dist/bundle.esm.js +2 -0
  43. package/dist/bundle.esm.js.map +1 -1
  44. package/dist/css/themes/Button.css +1 -1
  45. package/dist/css/themes/Input.css +1 -0
  46. package/dist/css/themes/PromptInput.css +1 -1
  47. package/dist/css/themes/TextArea.css +1 -0
  48. package/dist/css/themes/Versioning.css +1 -0
  49. package/dist/css/themes/WritingAssistant.css +1 -0
  50. package/dist/custom-elements-internal.json +390 -2
  51. package/dist/custom-elements.json +332 -2
  52. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  53. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  54. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  55. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
  56. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  57. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  58. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  59. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  60. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  61. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  62. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  63. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  64. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  65. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  66. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  67. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  68. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  69. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  70. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  71. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  72. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  73. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  74. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  75. package/dist/generated/assets/i18n/messagebundle_id.json +1 -1
  76. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  77. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  78. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  79. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  80. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  81. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  82. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  83. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
  84. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  85. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  86. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  87. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  88. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  89. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  90. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  91. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  92. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  93. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  94. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  95. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
  96. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  97. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  98. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  99. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  100. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  101. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  102. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  103. package/dist/generated/i18n/i18n-defaults.d.ts +14 -1
  104. package/dist/generated/i18n/i18n-defaults.js +14 -1
  105. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  106. package/dist/generated/themes/Button.css.d.ts +1 -1
  107. package/dist/generated/themes/Button.css.js +1 -1
  108. package/dist/generated/themes/Button.css.js.map +1 -1
  109. package/dist/generated/themes/Input.css.d.ts +2 -0
  110. package/dist/generated/themes/Input.css.js +8 -0
  111. package/dist/generated/themes/Input.css.js.map +1 -0
  112. package/dist/generated/themes/PromptInput.css.d.ts +1 -1
  113. package/dist/generated/themes/PromptInput.css.js +1 -1
  114. package/dist/generated/themes/PromptInput.css.js.map +1 -1
  115. package/dist/generated/themes/TextArea.css.d.ts +2 -0
  116. package/dist/generated/themes/TextArea.css.js +8 -0
  117. package/dist/generated/themes/TextArea.css.js.map +1 -0
  118. package/dist/generated/themes/Versioning.css.d.ts +2 -0
  119. package/dist/generated/themes/Versioning.css.js +8 -0
  120. package/dist/generated/themes/Versioning.css.js.map +1 -0
  121. package/dist/generated/themes/WritingAssistant.css.d.ts +2 -0
  122. package/dist/generated/themes/WritingAssistant.css.js +8 -0
  123. package/dist/generated/themes/WritingAssistant.css.js.map +1 -0
  124. package/dist/vscode.html-custom-data.json +50 -1
  125. package/dist/web-types.json +163 -3
  126. package/package-scripts.cjs +0 -1
  127. package/package.json +24 -21
  128. package/src/InputTemplate.tsx +197 -0
  129. package/src/TextArea.css +45 -0
  130. package/src/TextAreaTemplate.tsx +90 -0
  131. package/src/ToolbarLabelTemplate.tsx +9 -0
  132. package/src/VersioningTemplate.tsx +34 -0
  133. package/src/WritingAssistantTemplate.tsx +49 -0
  134. package/src/i18n/messagebundle.properties +38 -0
  135. package/src/i18n/messagebundle_ar.properties +20 -0
  136. package/src/i18n/messagebundle_bg.properties +20 -0
  137. package/src/i18n/messagebundle_ca.properties +20 -0
  138. package/src/i18n/messagebundle_cnr.properties +20 -0
  139. package/src/i18n/messagebundle_cs.properties +20 -0
  140. package/src/i18n/messagebundle_cy.properties +20 -0
  141. package/src/i18n/messagebundle_da.properties +20 -0
  142. package/src/i18n/messagebundle_de.properties +17 -0
  143. package/src/i18n/messagebundle_el.properties +20 -0
  144. package/src/i18n/messagebundle_en.properties +17 -0
  145. package/src/i18n/messagebundle_en_GB.properties +20 -0
  146. package/src/i18n/messagebundle_en_US_sappsd.properties +17 -0
  147. package/src/i18n/messagebundle_en_US_saprigi.properties +17 -0
  148. package/src/i18n/messagebundle_en_US_saptrc.properties +17 -0
  149. package/src/i18n/messagebundle_es.properties +20 -0
  150. package/src/i18n/messagebundle_es_MX.properties +21 -1
  151. package/src/i18n/messagebundle_et.properties +20 -0
  152. package/src/i18n/messagebundle_fi.properties +20 -0
  153. package/src/i18n/messagebundle_fr.properties +20 -0
  154. package/src/i18n/messagebundle_fr_CA.properties +20 -0
  155. package/src/i18n/messagebundle_hi.properties +20 -0
  156. package/src/i18n/messagebundle_hr.properties +22 -2
  157. package/src/i18n/messagebundle_hu.properties +20 -0
  158. package/src/i18n/messagebundle_id.properties +20 -0
  159. package/src/i18n/messagebundle_it.properties +20 -0
  160. package/src/i18n/messagebundle_iw.properties +20 -0
  161. package/src/i18n/messagebundle_ja.properties +20 -0
  162. package/src/i18n/messagebundle_kk.properties +20 -0
  163. package/src/i18n/messagebundle_ko.properties +20 -0
  164. package/src/i18n/messagebundle_lt.properties +20 -0
  165. package/src/i18n/messagebundle_lv.properties +20 -0
  166. package/src/i18n/messagebundle_mk.properties +20 -0
  167. package/src/i18n/messagebundle_ms.properties +20 -0
  168. package/src/i18n/messagebundle_nl.properties +20 -0
  169. package/src/i18n/messagebundle_no.properties +20 -0
  170. package/src/i18n/messagebundle_pl.properties +20 -0
  171. package/src/i18n/messagebundle_pt.properties +20 -0
  172. package/src/i18n/messagebundle_pt_PT.properties +20 -0
  173. package/src/i18n/messagebundle_ro.properties +20 -0
  174. package/src/i18n/messagebundle_ru.properties +20 -0
  175. package/src/i18n/messagebundle_sh.properties +20 -0
  176. package/src/i18n/messagebundle_sk.properties +20 -0
  177. package/src/i18n/messagebundle_sl.properties +20 -0
  178. package/src/i18n/messagebundle_sr.properties +20 -0
  179. package/src/i18n/messagebundle_sv.properties +20 -0
  180. package/src/i18n/messagebundle_th.properties +22 -2
  181. package/src/i18n/messagebundle_tr.properties +20 -0
  182. package/src/i18n/messagebundle_uk.properties +20 -0
  183. package/src/i18n/messagebundle_vi.properties +20 -0
  184. package/src/i18n/messagebundle_zh_CN.properties +20 -0
  185. package/src/i18n/messagebundle_zh_TW.properties +20 -0
  186. package/src/themes/Input.css +83 -0
  187. package/src/themes/PromptInput.css +5 -1
  188. package/src/themes/TextArea.css +45 -0
  189. package/src/themes/Versioning.css +20 -0
  190. package/src/themes/WritingAssistant.css +45 -0
  191. package/tsconfig.json +6 -0
@@ -0,0 +1,2 @@
1
+ import type WritingAssistant from "./WritingAssistant.js";
2
+ export default function WritingAssistantTemplate(this: WritingAssistant): import("@ui5/webcomponents-base/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@ui5/webcomponents-base/jsx-runtime";
2
+ import Versioning from "./Versioning.js";
3
+ import ToolbarLabel from "./ToolbarLabel.js";
4
+ import Toolbar from "@ui5/webcomponents/dist/Toolbar.js";
5
+ import ToolbarSpacer from "@ui5/webcomponents/dist/ToolbarSpacer.js";
6
+ import ToolbarButton from "@ui5/webcomponents/dist/ToolbarButton.js";
7
+ export default function WritingAssistantTemplate() {
8
+ const isMultiResults = this.totalVersions > 1;
9
+ const hasResults = (this.totalVersions > 0 && this.promptDescription) || this.loading;
10
+ return (_jsxs(Toolbar, { accessibleName: this._toolbarAccessibleName, "aria-roledescription": "toolbar", class: `ui5-ai-writing-assistant-footer-bar${hasResults ? "--with-border" : ""}`, children: [isMultiResults && !this.loading && (_jsx(Versioning, { currentStep: this.currentVersion, totalSteps: this.totalVersions, "onVersion-change": this.handleVersionChange })), hasResults && this.promptDescription && (_jsx(ToolbarLabel, { text: this.promptDescription, class: "ui5-ai-writing-assistant-action-label" })), _jsx(ToolbarSpacer, {}), _jsx(ToolbarButton, { id: "ai-menu-btn", design: "Transparent", icon: this.loading ? "stop" : "ai", "data-state": this.loading ? "generating" : "generate", onClick: this.handleButtonClick, tooltip: this.loading ? this._stopTooltip : this._buttonTooltip, accessibilityAttributes: { hasPopup: this.loading ? "false" : "menu" }, accessibleName: this._buttonAccessibleName, overflowPriority: "NeverOverflow" })] }));
11
+ }
12
+ //# sourceMappingURL=WritingAssistantTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WritingAssistantTemplate.js","sourceRoot":"","sources":["../src/WritingAssistantTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,OAAO,OAAO,MAAM,oCAAoC,CAAC;AACzD,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,aAAa,MAAM,0CAA0C,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,wBAAwB;IAC/C,MAAM,cAAc,GAAG,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;IAC9C,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,aAAa,GAAG,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC;IAEtF,OAAO,CACN,MAAC,OAAO,IACP,cAAc,EAAE,IAAI,CAAC,sBAAsB,0BACtB,SAAS,EAC9B,KAAK,EAAE,sCAAsC,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,aAE/E,cAAc,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CACnC,KAAC,UAAU,IACV,WAAW,EAAE,IAAI,CAAC,cAAc,EAChC,UAAU,EAAE,IAAI,CAAC,aAAa,sBACZ,IAAI,CAAC,mBAAmB,GACzC,CACF,EAEA,UAAU,IAAI,IAAI,CAAC,iBAAiB,IAAI,CACxC,KAAC,YAAY,IACZ,IAAI,EAAE,IAAI,CAAC,iBAAiB,EAC5B,KAAK,EAAC,uCAAuC,GAC5C,CACF,EAED,KAAC,aAAa,KAAG,EAEjB,KAAC,aAAa,IACb,EAAE,EAAC,aAAa,EAChB,MAAM,EAAC,aAAa,EACpB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,gBACtB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EACpD,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,EAC/D,uBAAuB,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,EACtE,cAAc,EAAE,IAAI,CAAC,qBAAqB,EAC1C,gBAAgB,EAAC,eAAe,GAC/B,IACO,CACV,CAAC;AACH,CAAC","sourcesContent":["import type WritingAssistant from \"./WritingAssistant.js\";\nimport Versioning from \"./Versioning.js\";\nimport ToolbarLabel from \"./ToolbarLabel.js\";\n\nimport Toolbar from \"@ui5/webcomponents/dist/Toolbar.js\";\nimport ToolbarSpacer from \"@ui5/webcomponents/dist/ToolbarSpacer.js\";\nimport ToolbarButton from \"@ui5/webcomponents/dist/ToolbarButton.js\";\n\nexport default function WritingAssistantTemplate(this: WritingAssistant) {\n\tconst isMultiResults = this.totalVersions > 1;\n\tconst hasResults = (this.totalVersions > 0 && this.promptDescription) || this.loading;\n\n\treturn (\n\t\t<Toolbar\n\t\t\taccessibleName={this._toolbarAccessibleName}\n\t\t\taria-roledescription=\"toolbar\"\n\t\t\tclass={`ui5-ai-writing-assistant-footer-bar${hasResults ? \"--with-border\" : \"\"}`}\n\t\t>\n\t\t\t{isMultiResults && !this.loading && (\n\t\t\t\t<Versioning\n\t\t\t\t\tcurrentStep={this.currentVersion}\n\t\t\t\t\ttotalSteps={this.totalVersions}\n\t\t\t\t\tonVersion-change={this.handleVersionChange}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{hasResults && this.promptDescription && (\n\t\t\t\t<ToolbarLabel\n\t\t\t\t\ttext={this.promptDescription}\n\t\t\t\t\tclass=\"ui5-ai-writing-assistant-action-label\"\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t<ToolbarSpacer />\n\n\t\t\t<ToolbarButton\n\t\t\t\tid=\"ai-menu-btn\"\n\t\t\t\tdesign=\"Transparent\"\n\t\t\t\ticon={this.loading ? \"stop\" : \"ai\"}\n\t\t\t\tdata-state={this.loading ? \"generating\" : \"generate\"}\n\t\t\t\tonClick={this.handleButtonClick}\n\t\t\t\ttooltip={this.loading ? this._stopTooltip : this._buttonTooltip}\n\t\t\t\taccessibilityAttributes={{ hasPopup: this.loading ? \"false\" : \"menu\" }}\n\t\t\t\taccessibleName={this._buttonAccessibleName}\n\t\t\t\toverflowPriority=\"NeverOverflow\"\n\t\t\t/>\n\t\t</Toolbar>\n\t);\n}\n"]}
@@ -5,5 +5,7 @@ import "./Assets.js";
5
5
  import Button from "./Button.js";
6
6
  import ButtonState from "./ButtonState.js";
7
7
  import PromptInput from "./PromptInput.js";
8
+ import TextArea from "./TextArea.js";
9
+ import Input from "./Input.js";
8
10
  export default testAssets;
9
11
  //# sourceMappingURL=bundle.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.esm.js","sourceRoot":"","sources":["../src/bundle.esm.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,UAAU,MAAM,uCAAuC,CAAC;AAE/D,YAAY;AACZ,OAAO,aAAa,CAAC;AAErB,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAE3C,eAAe,UAAU,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport testAssets from \"@ui5/webcomponents/dist/bundle.esm.js\";\n\n// AI assets\nimport \"./Assets.js\";\n\nimport Button from \"./Button.js\";\nimport ButtonState from \"./ButtonState.js\";\nimport PromptInput from \"./PromptInput.js\";\n\nexport default testAssets;\n"]}
1
+ {"version":3,"file":"bundle.esm.js","sourceRoot":"","sources":["../src/bundle.esm.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,UAAU,MAAM,uCAAuC,CAAC;AAE/D,YAAY;AACZ,OAAO,aAAa,CAAC;AAErB,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,eAAe,UAAU,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport testAssets from \"@ui5/webcomponents/dist/bundle.esm.js\";\n\n// AI assets\nimport \"./Assets.js\";\n\nimport Button from \"./Button.js\";\nimport ButtonState from \"./ButtonState.js\";\nimport PromptInput from \"./PromptInput.js\";\nimport TextArea from \"./TextArea.js\";\nimport Input from \"./Input.js\";\n\nexport default testAssets;\n"]}
@@ -1 +1 @@
1
- :host{display:inline-block}:host([disabled]){pointer-events:none}.ui5-ai-button-text{display:inline-block}:host([icon-only]) .ui5-ai-button-text{min-width:0;margin-inline-start:0}.ui5-ai-button-hidden{position:absolute;top:-10000px;left:-10000px;visibility:hidden;display:block;width:fit-content}:host .ui5-ai-button-inner{width:100%}:host{width:auto;position:relative;transition:width .18s cubic-bezier(.67,1,.95,1.3) .12s}:host([icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(textButton),:host(.ui5-ai-button-menu-to-button[icon-only]) .ui5-ai-button-inner::part(textButton){min-width:var(--_ui5-v2-14-0-rc-6_button_base_min_width)!important;max-width:var(--_ui5-v2-14-0-rc-6_button_base_min_width)!important}:host(.ui5-ai-button-menu-to-button) .ui5-ai-button-inner::part(button),:host(.ui5-ai-button-fade-out:not([icon-only])) .ui5-ai-button-inner::part(button){justify-content:flex-start}:host([icon-only]) .ui5-ai-button-inner[_end-icon]:not([_end-icon=""])::part(button),:host([icon-only]) .ui5-ai-button-inner[_hide-arrow-button]::part(button){justify-content:flex-start;padding-inline-start:var(--_ui5-v2-14-0-rc-6_button_base_padding)}:host(.ui5-ai-button-fade-in[icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(button){max-width:var(--_ui5-v2-14-0-rc-6_button_base_min_width)}:host([icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(textButton),:host(.ui5-ai-button-menu-to-button[icon-only]) .ui5-ai-button-inner::part(textButton){min-width:var(--_ui5-v2-14-0-rc-6_button_base_min_width);max-width:var(--_ui5-v2-14-0-rc-6_button_base_min_width)}:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) .ui5-ai-button-text,:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) ::part(endIcon),:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) ::part(arrowButton){opacity:1;transform:translateY(0)}:host(.ui5-ai-button-button-to-menu) .ui5-ai-button-inner::part(endIcon),:host(.ui5-ai-button-button-to-menu) .ui5-ai-button-inner::part(arrowButton){display:none;transform:translateY(0);opacity:0}:host(.ui5-ai-button-fade-out) .ui5-ai-button-text{opacity:0;transform:translateY(-1rem);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host(.ui5-ai-button-fade-out) ::part(icon){opacity:0;transform:translateY(-1rem);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host(.ui5-ai-button-fade-out) ::part(endIcon){opacity:0;transform:translateY(-1rem);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host(.ui5-ai-button-fade-mid) .ui5-ai-button-text,:host(.ui5-ai-button-fade-mid) ::part(icon),:host(.ui5-ai-button-fade-mid) ::part(endIcon),:host(.ui5-ai-button-fade-mid) ::part(arrowButton){opacity:0;transform:translateY(1rem);transition:none}:host(.ui5-ai-button-fade-in) .ui5-ai-button-text{opacity:1;transform:translateY(0);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host(.ui5-ai-button-fade-in) ::part(icon){opacity:1;transform:translateY(0);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host(.ui5-ai-button-fade-in) ::part(endIcon){opacity:1;transform:translateY(0);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}
1
+ :host{display:inline-block}:host([disabled]){pointer-events:none}.ui5-ai-button-text{display:inline-block}:host([icon-only]) .ui5-ai-button-text{min-width:0;margin-inline-start:0}.ui5-ai-button-hidden{position:absolute;top:-10000px;left:-10000px;visibility:hidden;display:block;width:fit-content}:host .ui5-ai-button-inner{width:100%}:host{width:auto;position:relative;transition:width .18s cubic-bezier(.67,1,.95,1.3) .12s}:host([icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(textButton),:host(.ui5-ai-button-menu-to-button[icon-only]) .ui5-ai-button-inner::part(textButton){min-width:var(--_ui5-v0-0-0-2c875c3d3_button_base_min_width)!important;max-width:var(--_ui5-v0-0-0-2c875c3d3_button_base_min_width)!important}:host(.ui5-ai-button-menu-to-button) .ui5-ai-button-inner::part(button),:host(.ui5-ai-button-fade-out:not([icon-only])) .ui5-ai-button-inner::part(button){justify-content:flex-start}:host([icon-only]) .ui5-ai-button-inner[_end-icon]:not([_end-icon=""])::part(button),:host([icon-only]) .ui5-ai-button-inner[_hide-arrow-button]::part(button){justify-content:flex-start;padding-inline-start:var(--_ui5-v0-0-0-2c875c3d3_button_base_padding)}:host(.ui5-ai-button-fade-in[icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(button){max-width:var(--_ui5-v0-0-0-2c875c3d3_button_base_min_width)}:host([icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(textButton),:host(.ui5-ai-button-menu-to-button[icon-only]) .ui5-ai-button-inner::part(textButton){min-width:var(--_ui5-v0-0-0-2c875c3d3_button_base_min_width);max-width:var(--_ui5-v0-0-0-2c875c3d3_button_base_min_width)}:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) .ui5-ai-button-text,:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) ::part(endIcon),:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) ::part(arrowButton){opacity:1;transform:translateY(0)}:host(.ui5-ai-button-button-to-menu) .ui5-ai-button-inner::part(endIcon),:host(.ui5-ai-button-button-to-menu) .ui5-ai-button-inner::part(arrowButton){display:none;transform:translateY(0);opacity:0}:host(.ui5-ai-button-fade-out) .ui5-ai-button-text{opacity:0;transform:translateY(-1rem);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host(.ui5-ai-button-fade-out) ::part(icon){opacity:0;transform:translateY(-1rem);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host(.ui5-ai-button-fade-out) ::part(endIcon){opacity:0;transform:translateY(-1rem);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host(.ui5-ai-button-fade-mid) .ui5-ai-button-text,:host(.ui5-ai-button-fade-mid) ::part(icon),:host(.ui5-ai-button-fade-mid) ::part(endIcon),:host(.ui5-ai-button-fade-mid) ::part(arrowButton){opacity:0;transform:translateY(1rem);transition:none}:host(.ui5-ai-button-fade-in) .ui5-ai-button-text{opacity:1;transform:translateY(0);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host(.ui5-ai-button-fade-in) ::part(icon){opacity:1;transform:translateY(0);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host(.ui5-ai-button-fade-in) ::part(endIcon){opacity:1;transform:translateY(0);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}
@@ -0,0 +1 @@
1
+ .ui5-ai-input-root{width:100%;height:100%;border-right:none}:host([focused]:not([opened])[_is-menu-open]) .ui5-ai-input-root:hover{border-radius:var(--_ui5-v0-0-0-2c875c3d3_input_border_radius);box-shadow:var(--sapField_Hover_Shadow)}:host([focused]:not([opened])[_is-menu-open]) .ui5-input-focusable-element:after{border:var(--_ui5-v0-0-0-2c875c3d3-input-border)}.ui5-input-busy-indicator{flex:1;width:100%;height:100%;position:relative;box-sizing:border-box;display:block}.ui5-ai-input-busy .ui5-ai-input-button-wrapper{background-color:inherit;border:none}.ui5-ai-input-button-wrapper{display:flex;justify-content:center;align-items:center;width:var(--_ui5-v0-0-0-2c875c3d3_input_icon_width);min-width:var(--_ui5-v0-0-0-2c875c3d3_input_icon_width);height:var(--_ui5-v0-0-0-2c875c3d3_input_icon_wrapper_height);padding:0;box-sizing:border-box;border-radius:var(--_ui5-v0-0-0-2c875c3d3_input_border_radius);cursor:pointer;border:none}.ui5-input-ai-button[hidden]{display:none}.ui5-ai-input-button-wrapper.ui5-input-button-menu-open,.ui5-ai-input-button-wrapper:active{background-color:var(--sapButton_Selected_Background);box-shadow:var(--sapField_Hover_Shadow);color:var(--sapButton_Selected_TextColor)}.ui5-ai-input-button-wrapper:not(.ui5-input-button-menu-open):not(.ui5-ai-input-loading):not(:active):hover,.ui5-ai-input-button-wrapper.ui5-ai-input-loading:hover{background-color:var(--sapButton_Hover_Background);border:1px solid var(--sapButton_Hover_BorderColor);box-shadow:inset 0 0 0 .0625rem var(--sapContent_Neutral_Shadow)}.ui5-input-button-menu-open{background-color:var(--sapButton_Selected_Background);box-shadow:var(--sapField_Hover_Shadow)}[ui5-menu-item].ui5-ai-versioning-menu-footer:hover{background-color:inherit}.ui5-ai-versioning-menu-footer::part(native-li){padding-right:.25rem}#ai-menu-btn{--_ui5-v0-0-0-2c875c3d3_button_focused_border: none}
@@ -1 +1 @@
1
- .ai-prompt-input-button{margin-left:.5rem;margin-top:3px}.ai-prompt-input-wrapper{display:flex;flex-direction:column;width:270px}.ai-prompt-input-form-wrapper{display:flex;flex:1}.ai-prompt-input-counter{font-size:.75rem;align-self:flex-end}#input{width:100%}.ai-prompt-inner-input-wrapper{display:flex;flex-direction:column;flex:1}
1
+ :host(:not([hidden])){display:inline-block}.ai-prompt-input-button{margin-left:.5rem;margin-top:3px}.ai-prompt-input-wrapper{display:flex;flex-direction:column;min-width:270px}.ai-prompt-input-form-wrapper{display:flex;flex:1}.ai-prompt-input-counter{font-size:.75rem;align-self:flex-end}#input{width:100%}.ai-prompt-inner-input-wrapper{display:flex;flex-direction:column;flex:1}
@@ -0,0 +1 @@
1
+ .ui5-ai-textarea-root{position:relative;display:flex;flex-direction:column;width:100%;height:100%}.ui5-ai-textarea-root .ui5-textarea-wrapper{display:flex;flex-direction:column;flex:1;position:relative}.ui5-ai-textarea-root [part=footer]{position:relative;width:100%;margin-top:auto;flex-shrink:0}.ui5-ai-writing-assistant-footer-bar{background:var(--_ui5-v0-0-0-2c875c3d3_texteditor_toolbar_background, var(--sapPageFooter_Background));width:100%;box-sizing:border-box;box-shadow:none;border-bottom:none;border-top:none}.ui5-ai-writing-assistant-footer-bar--with-border{border-top:1px solid var(--sapPageFooter_BorderColor)}.ui5-ai-writing-assistant-action-label{margin-left:.5rem;color:var(--sapContent_LabelColor);font-size:var(--sapFontSmallSize)}#ai-menu-wrapper{position:relative;z-index:1000}
@@ -0,0 +1 @@
1
+ :host{display:inline-flex;align-items:center}#versioning-history{display:flex;align-items:center;gap:0}.version-step-counter{margin:0 .25rem;display:flex;align-items:center;color:var(--sapContent_LabelColor);font-size:var(--sapFontSmallSize);line-height:1}
@@ -0,0 +1 @@
1
+ .ui5-ai-textarea-root{position:relative;display:flex;flex-direction:column;width:100%;height:100%}.ui5-ai-textarea-root .ui5-textarea-wrapper{display:flex;flex-direction:column;flex:1;position:relative}.ui5-ai-textarea-root [part=footer]{width:100%;margin-top:auto;flex-shrink:0}.ui5-ai-writing-assistant-footer-bar{background:var(--_ui5-v0-0-0-2c875c3d3_texteditor_toolbar_background, var(--sapPageFooter_Background));width:100%;box-sizing:border-box;box-shadow:none;border-bottom:none;border-top:none;padding:.5rem;min-height:2.75rem;display:flex;align-items:center;justify-content:flex-start}.ui5-ai-writing-assistant-footer-bar--with-border{border-top:1px solid var(--sapPageFooter_BorderColor)}.ui5-ai-writing-assistant-action-label{color:var(--sapContent_LabelColor);font-size:var(--sapFontSize);font-family:"72override",var(--sapFontFamily);margin-left:.25rem}
@@ -110,7 +110,7 @@
110
110
  ]
111
111
  },
112
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\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`.",
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
114
  "privacy": "public",
115
115
  "_ui5since": "2.6.0"
116
116
  }
@@ -177,7 +177,7 @@
177
177
  }
178
178
  },
179
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\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`.",
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
181
  "name": "accessibility-attributes",
182
182
  "default": "{}",
183
183
  "fieldName": "accessibilityAttributes",
@@ -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": "BaseInput",
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,221 @@
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": "BaseTextArea",
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
+ "exports": [
1021
+ {
1022
+ "kind": "js",
1023
+ "name": "default",
1024
+ "declaration": {
1025
+ "name": "ToolbarLabel",
1026
+ "module": "dist/ToolbarLabel.js"
1027
+ }
1028
+ }
1029
+ ]
1030
+ },
1031
+ {
1032
+ "kind": "javascript-module",
1033
+ "path": "dist/Versioning.js",
1034
+ "declarations": [],
1035
+ "exports": [
1036
+ {
1037
+ "kind": "js",
1038
+ "name": "default",
1039
+ "declaration": {
1040
+ "name": "Versioning",
1041
+ "module": "dist/Versioning.js"
1042
+ }
1043
+ }
1044
+ ]
1045
+ },
1046
+ {
1047
+ "kind": "javascript-module",
1048
+ "path": "dist/WritingAssistant.js",
1049
+ "declarations": [],
1050
+ "exports": [
1051
+ {
1052
+ "kind": "js",
1053
+ "name": "default",
1054
+ "declaration": {
1055
+ "name": "WritingAssistant",
1056
+ "module": "dist/WritingAssistant.js"
1057
+ }
1058
+ }
1059
+ ]
672
1060
  }
673
1061
  ]
674
1062
  }