@ui5/webcomponents-ai 0.0.0-37338d49d

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 (195) hide show
  1. package/.env.production +1 -0
  2. package/.env.testing +4 -0
  3. package/.npsrc.json +3 -0
  4. package/CHANGELOG.md +400 -0
  5. package/README.md +39 -0
  6. package/dist/Assets.d.ts +3 -0
  7. package/dist/Assets.js +6 -0
  8. package/dist/Assets.js.map +1 -0
  9. package/dist/Button.d.ts +128 -0
  10. package/dist/Button.js +270 -0
  11. package/dist/Button.js.map +1 -0
  12. package/dist/ButtonState.d.ts +67 -0
  13. package/dist/ButtonState.js +64 -0
  14. package/dist/ButtonState.js.map +1 -0
  15. package/dist/ButtonTemplate.d.ts +2 -0
  16. package/dist/ButtonTemplate.js +6 -0
  17. package/dist/ButtonTemplate.js.map +1 -0
  18. package/dist/PromptInput.d.ts +154 -0
  19. package/dist/PromptInput.js +227 -0
  20. package/dist/PromptInput.js.map +1 -0
  21. package/dist/PromptInputTemplate.d.ts +2 -0
  22. package/dist/PromptInputTemplate.js +12 -0
  23. package/dist/PromptInputTemplate.js.map +1 -0
  24. package/dist/bundle.esm.d.ts +3 -0
  25. package/dist/bundle.esm.js +9 -0
  26. package/dist/bundle.esm.js.map +1 -0
  27. package/dist/bundle.scoped.config.d.ts +1 -0
  28. package/dist/bundle.scoped.config.js +3 -0
  29. package/dist/bundle.scoped.config.js.map +1 -0
  30. package/dist/bundle.scoped.esm.d.ts +2 -0
  31. package/dist/bundle.scoped.esm.js +3 -0
  32. package/dist/bundle.scoped.esm.js.map +1 -0
  33. package/dist/css/themes/Button.css +1 -0
  34. package/dist/css/themes/PromptInput.css +1 -0
  35. package/dist/css/themes/sap_horizon/parameters-bundle.css +0 -0
  36. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +0 -0
  37. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +0 -0
  38. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +0 -0
  39. package/dist/custom-elements-internal.json +635 -0
  40. package/dist/custom-elements.json +562 -0
  41. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -0
  42. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -0
  43. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -0
  44. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -0
  45. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -0
  46. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -0
  47. package/dist/generated/assets/i18n/messagebundle_da.json +1 -0
  48. package/dist/generated/assets/i18n/messagebundle_de.json +1 -0
  49. package/dist/generated/assets/i18n/messagebundle_el.json +1 -0
  50. package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
  51. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -0
  52. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
  53. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
  54. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
  55. package/dist/generated/assets/i18n/messagebundle_es.json +1 -0
  56. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -0
  57. package/dist/generated/assets/i18n/messagebundle_et.json +1 -0
  58. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -0
  59. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -0
  60. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -0
  61. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -0
  62. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -0
  63. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -0
  64. package/dist/generated/assets/i18n/messagebundle_it.json +1 -0
  65. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -0
  66. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -0
  67. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -0
  68. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -0
  69. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -0
  70. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -0
  71. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -0
  72. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -0
  73. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -0
  74. package/dist/generated/assets/i18n/messagebundle_no.json +1 -0
  75. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -0
  76. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -0
  77. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -0
  78. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -0
  79. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -0
  80. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -0
  81. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -0
  82. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -0
  83. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -0
  84. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -0
  85. package/dist/generated/assets/i18n/messagebundle_th.json +1 -0
  86. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -0
  87. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -0
  88. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -0
  89. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -0
  90. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -0
  91. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -0
  92. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -0
  93. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -0
  94. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -0
  95. package/dist/generated/i18n/i18n-defaults.d.ts +4 -0
  96. package/dist/generated/i18n/i18n-defaults.js +4 -0
  97. package/dist/generated/i18n/i18n-defaults.js.map +1 -0
  98. package/dist/generated/json-imports/Themes-fetch.d.ts +1 -0
  99. package/dist/generated/json-imports/Themes-fetch.js +21 -0
  100. package/dist/generated/json-imports/Themes-fetch.js.map +1 -0
  101. package/dist/generated/json-imports/Themes.d.ts +1 -0
  102. package/dist/generated/json-imports/Themes.js +21 -0
  103. package/dist/generated/json-imports/Themes.js.map +1 -0
  104. package/dist/generated/json-imports/i18n-fetch.d.ts +1 -0
  105. package/dist/generated/json-imports/i18n-fetch.js +118 -0
  106. package/dist/generated/json-imports/i18n-fetch.js.map +1 -0
  107. package/dist/generated/json-imports/i18n.d.ts +1 -0
  108. package/dist/generated/json-imports/i18n.js +118 -0
  109. package/dist/generated/json-imports/i18n.js.map +1 -0
  110. package/dist/generated/themes/Button.css.d.ts +2 -0
  111. package/dist/generated/themes/Button.css.js +8 -0
  112. package/dist/generated/themes/Button.css.js.map +1 -0
  113. package/dist/generated/themes/PromptInput.css.d.ts +2 -0
  114. package/dist/generated/themes/PromptInput.css.js +8 -0
  115. package/dist/generated/themes/PromptInput.css.js.map +1 -0
  116. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +2 -0
  117. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +2 -0
  118. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -0
  119. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +2 -0
  120. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +2 -0
  121. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -0
  122. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +2 -0
  123. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +2 -0
  124. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -0
  125. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +2 -0
  126. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +2 -0
  127. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -0
  128. package/dist/tsconfig.tsbuildinfo +1 -0
  129. package/dist/vscode.html-custom-data.json +134 -0
  130. package/dist/web-types.json +315 -0
  131. package/jsconfig.json +11 -0
  132. package/package-scripts.cjs +15 -0
  133. package/package.json +57 -0
  134. package/src/ButtonTemplate.tsx +26 -0
  135. package/src/PromptInputTemplate.tsx +49 -0
  136. package/src/i18n/messagebundle.properties +8 -0
  137. package/src/i18n/messagebundle_ar.properties +4 -0
  138. package/src/i18n/messagebundle_bg.properties +4 -0
  139. package/src/i18n/messagebundle_ca.properties +4 -0
  140. package/src/i18n/messagebundle_cnr.properties +4 -0
  141. package/src/i18n/messagebundle_cs.properties +4 -0
  142. package/src/i18n/messagebundle_cy.properties +4 -0
  143. package/src/i18n/messagebundle_da.properties +4 -0
  144. package/src/i18n/messagebundle_de.properties +4 -0
  145. package/src/i18n/messagebundle_el.properties +4 -0
  146. package/src/i18n/messagebundle_en.properties +4 -0
  147. package/src/i18n/messagebundle_en_GB.properties +4 -0
  148. package/src/i18n/messagebundle_en_US_sappsd.properties +4 -0
  149. package/src/i18n/messagebundle_en_US_saprigi.properties +4 -0
  150. package/src/i18n/messagebundle_en_US_saptrc.properties +4 -0
  151. package/src/i18n/messagebundle_es.properties +4 -0
  152. package/src/i18n/messagebundle_es_MX.properties +4 -0
  153. package/src/i18n/messagebundle_et.properties +4 -0
  154. package/src/i18n/messagebundle_fi.properties +4 -0
  155. package/src/i18n/messagebundle_fr.properties +4 -0
  156. package/src/i18n/messagebundle_fr_CA.properties +4 -0
  157. package/src/i18n/messagebundle_hi.properties +4 -0
  158. package/src/i18n/messagebundle_hr.properties +4 -0
  159. package/src/i18n/messagebundle_hu.properties +4 -0
  160. package/src/i18n/messagebundle_id.properties +4 -0
  161. package/src/i18n/messagebundle_it.properties +4 -0
  162. package/src/i18n/messagebundle_iw.properties +4 -0
  163. package/src/i18n/messagebundle_ja.properties +4 -0
  164. package/src/i18n/messagebundle_kk.properties +4 -0
  165. package/src/i18n/messagebundle_ko.properties +4 -0
  166. package/src/i18n/messagebundle_lt.properties +4 -0
  167. package/src/i18n/messagebundle_lv.properties +4 -0
  168. package/src/i18n/messagebundle_mk.properties +4 -0
  169. package/src/i18n/messagebundle_ms.properties +4 -0
  170. package/src/i18n/messagebundle_nl.properties +4 -0
  171. package/src/i18n/messagebundle_no.properties +4 -0
  172. package/src/i18n/messagebundle_pl.properties +4 -0
  173. package/src/i18n/messagebundle_pt.properties +4 -0
  174. package/src/i18n/messagebundle_pt_PT.properties +4 -0
  175. package/src/i18n/messagebundle_ro.properties +4 -0
  176. package/src/i18n/messagebundle_ru.properties +4 -0
  177. package/src/i18n/messagebundle_sh.properties +4 -0
  178. package/src/i18n/messagebundle_sk.properties +4 -0
  179. package/src/i18n/messagebundle_sl.properties +4 -0
  180. package/src/i18n/messagebundle_sr.properties +4 -0
  181. package/src/i18n/messagebundle_sv.properties +4 -0
  182. package/src/i18n/messagebundle_th.properties +4 -0
  183. package/src/i18n/messagebundle_tr.properties +4 -0
  184. package/src/i18n/messagebundle_uk.properties +4 -0
  185. package/src/i18n/messagebundle_vi.properties +4 -0
  186. package/src/i18n/messagebundle_zh_CN.properties +4 -0
  187. package/src/i18n/messagebundle_zh_TW.properties +4 -0
  188. package/src/themes/Button.css +142 -0
  189. package/src/themes/PromptInput.css +30 -0
  190. package/src/themes/base/Button-parameters.css +2 -0
  191. package/src/themes/sap_horizon/parameters-bundle.css +1 -0
  192. package/src/themes/sap_horizon_dark/parameters-bundle.css +1 -0
  193. package/src/themes/sap_horizon_hcb/parameters-bundle.css +1 -0
  194. package/src/themes/sap_horizon_hcw/parameters-bundle.css +1 -0
  195. package/tsconfig.json +36 -0
@@ -0,0 +1 @@
1
+ VITE_BUNDLE_PATH="../../dist/bundle.esm.js"
package/.env.testing ADDED
@@ -0,0 +1,4 @@
1
+ # .env.testing
2
+ VITE_BUNDLE_PATH="../../dist/bundle.esm.js"
3
+ # take the "development" conditional exports
4
+ NODE_ENV=development
package/.npsrc.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "config": "./package-scripts.cjs"
3
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,400 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [2.6.2](https://github.com/SAP/ui5-webcomponents/compare/v2.6.2-rc.0...v2.6.2) (2025-01-09)
7
+
8
+ **Note:** Version bump only for package @ui5/webcomponents-ai
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.6.2-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.1...v2.6.2-rc.0) (2025-01-09)
15
+
16
+ **Note:** Version bump only for package @ui5/webcomponents-ai
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.6.1](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0...v2.6.1) (2025-01-08)
23
+
24
+ **Note:** Version bump only for package @ui5/webcomponents-ai
25
+
26
+
27
+
28
+
29
+
30
+ # [2.6.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.5...v2.6.0) (2025-01-07)
31
+
32
+ **Note:** Version bump only for package @ui5/webcomponents-ai
33
+
34
+
35
+
36
+
37
+
38
+ # [2.6.0-rc.5](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.4...v2.6.0-rc.5) (2025-01-07)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * remove dependencies for TSX components and fix features ([#10449](https://github.com/SAP/ui5-webcomponents/issues/10449)) ([a2b5f6f](https://github.com/SAP/ui5-webcomponents/commit/a2b5f6fb768499a8b757a9b7abad5f19033a33a7))
44
+
45
+
46
+
47
+
48
+
49
+ # [2.6.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.3...v2.6.0-rc.4) (2025-01-02)
50
+
51
+ **Note:** Version bump only for package @ui5/webcomponents-ai
52
+
53
+
54
+
55
+
56
+
57
+ # [2.6.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.2...v2.6.0-rc.3) (2024-12-26)
58
+
59
+
60
+ ### Features
61
+
62
+ * **ui5-ai-button:** implement split button functionality ([#10242](https://github.com/SAP/ui5-webcomponents/issues/10242)) ([55c9e4d](https://github.com/SAP/ui5-webcomponents/commit/55c9e4d67800d82a0d357eda8859b78d69dc25ab))
63
+
64
+
65
+
66
+
67
+
68
+ # [2.6.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.1...v2.6.0-rc.2) (2024-12-19)
69
+
70
+ **Note:** Version bump only for package @ui5/webcomponents-ai
71
+
72
+
73
+
74
+
75
+
76
+ # [2.6.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.0...v2.6.0-rc.1) (2024-12-16)
77
+
78
+ **Note:** Version bump only for package @ui5/webcomponents-ai
79
+
80
+
81
+
82
+
83
+
84
+ # [2.6.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0...v2.6.0-rc.0) (2024-12-12)
85
+
86
+
87
+ ### Features
88
+
89
+ * **framework:** add JSX template support with TypeScript ([#10046](https://github.com/SAP/ui5-webcomponents/issues/10046)) ([f42e7c1](https://github.com/SAP/ui5-webcomponents/commit/f42e7c18c846f923df4fec6ae02f1b4c20c006fa))
90
+
91
+
92
+
93
+
94
+
95
+ # [2.5.0](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0-rc.3...v2.5.0) (2024-12-05)
96
+
97
+ **Note:** Version bump only for package @ui5/webcomponents-ai
98
+
99
+
100
+
101
+
102
+
103
+ # [2.5.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0-rc.2...v2.5.0-rc.3) (2024-12-05)
104
+
105
+
106
+ ### Features
107
+
108
+ * **framework:** add strict event type checking ([#10235](https://github.com/SAP/ui5-webcomponents/issues/10235)) ([4ff8ab7](https://github.com/SAP/ui5-webcomponents/commit/4ff8ab7c34db5058b92511767be1b96c69a91cb5))
109
+
110
+
111
+
112
+
113
+
114
+ # [2.5.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0-rc.1...v2.5.0-rc.2) (2024-11-28)
115
+
116
+ **Note:** Version bump only for package @ui5/webcomponents-ai
117
+
118
+
119
+
120
+
121
+
122
+ # [2.5.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0-rc.0...v2.5.0-rc.1) (2024-11-21)
123
+
124
+ **Note:** Version bump only for package @ui5/webcomponents-ai
125
+
126
+
127
+
128
+
129
+
130
+ # [2.5.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.4.1-rc.0...v2.5.0-rc.0) (2024-11-14)
131
+
132
+ **Note:** Version bump only for package @ui5/webcomponents-ai
133
+
134
+
135
+
136
+
137
+
138
+ ## [2.4.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.4.0...v2.4.1-rc.0) (2024-11-07)
139
+
140
+ **Note:** Version bump only for package @ui5/webcomponents-ai
141
+
142
+
143
+
144
+
145
+
146
+ # [2.4.0](https://github.com/SAP/ui5-webcomponents/compare/v2.4.0-rc.4...v2.4.0) (2024-11-03)
147
+
148
+ **Note:** Version bump only for package @ui5/webcomponents-ai
149
+
150
+
151
+
152
+
153
+
154
+ # [2.4.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v2.4.0-rc.3...v2.4.0-rc.4) (2024-10-31)
155
+
156
+ **Note:** Version bump only for package @ui5/webcomponents-ai
157
+
158
+
159
+
160
+
161
+
162
+ # [2.4.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.4.0-rc.2...v2.4.0-rc.3) (2024-10-28)
163
+
164
+ **Note:** Version bump only for package @ui5/webcomponents-ai
165
+
166
+
167
+
168
+
169
+
170
+ # [2.4.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.4.0-rc.1...v2.4.0-rc.2) (2024-10-24)
171
+
172
+ **Note:** Version bump only for package @ui5/webcomponents-ai
173
+
174
+
175
+
176
+
177
+
178
+ # [2.4.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.4.0-rc.0...v2.4.0-rc.1) (2024-10-17)
179
+
180
+
181
+ ### Bug Fixes
182
+
183
+ * scoping issues and document how scoping is used correctly ([#10023](https://github.com/SAP/ui5-webcomponents/issues/10023)) ([ee808c3](https://github.com/SAP/ui5-webcomponents/commit/ee808c309f316fe145b05d292c92328396c655ab))
184
+ * **tools:** revert tsconfig moduleResolution to node ([#10014](https://github.com/SAP/ui5-webcomponents/issues/10014)) ([0724b92](https://github.com/SAP/ui5-webcomponents/commit/0724b9289ad04f88972d4978ed37e76f13abca13))
185
+
186
+
187
+
188
+
189
+
190
+ # [2.4.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.3.1-rc.0...v2.4.0-rc.0) (2024-10-10)
191
+
192
+
193
+ ### Bug Fixes
194
+
195
+ * **ui5-ai-button:** reset button width after animations ([#9923](https://github.com/SAP/ui5-webcomponents/issues/9923)) ([2a5c7db](https://github.com/SAP/ui5-webcomponents/commit/2a5c7db734b08f629f41b586f4aa0f39b20de632))
196
+
197
+
198
+ ### Features
199
+
200
+ * enhance `[@event](https://github.com/event)` decorator ([#9944](https://github.com/SAP/ui5-webcomponents/issues/9944)) ([fe1d816](https://github.com/SAP/ui5-webcomponents/commit/fe1d816f512400b839fd4ce1b9af1506d0cb4c9a))
201
+
202
+
203
+
204
+
205
+
206
+ ## [2.3.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0...v2.3.1-rc.0) (2024-10-03)
207
+
208
+ **Note:** Version bump only for package @ui5/webcomponents-ai
209
+
210
+
211
+
212
+
213
+
214
+ # [2.3.0](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0-rc.3...v2.3.0) (2024-10-02)
215
+
216
+
217
+ ### Features
218
+
219
+ * **framework:** introduce the `i18n` decorator and the `cldr` option ([#9897](https://github.com/SAP/ui5-webcomponents/issues/9897)) ([1f29d23](https://github.com/SAP/ui5-webcomponents/commit/1f29d231fe892a850871e7f73afca93c730ecffd))
220
+
221
+
222
+
223
+
224
+
225
+ # [2.3.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0-rc.2...v2.3.0-rc.3) (2024-09-26)
226
+
227
+ **Note:** Version bump only for package @ui5/webcomponents-ai
228
+
229
+
230
+
231
+
232
+
233
+ # [2.3.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0-rc.1...v2.3.0-rc.2) (2024-09-19)
234
+
235
+ **Note:** Version bump only for package @ui5/webcomponents-ai
236
+
237
+
238
+
239
+
240
+
241
+ # [2.3.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0-rc.0...v2.3.0-rc.1) (2024-09-12)
242
+
243
+ **Note:** Version bump only for package @ui5/webcomponents-ai
244
+
245
+
246
+
247
+
248
+
249
+ # [2.3.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.2.0...v2.3.0-rc.0) (2024-09-05)
250
+
251
+ **Note:** Version bump only for package @ui5/webcomponents-ai
252
+
253
+
254
+
255
+
256
+
257
+ # [2.2.0](https://github.com/SAP/ui5-webcomponents/compare/v2.2.0-rc.3...v2.2.0) (2024-09-03)
258
+
259
+ **Note:** Version bump only for package @ui5/webcomponents-ai
260
+
261
+
262
+
263
+
264
+
265
+ # [2.2.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.2.0-rc.2...v2.2.0-rc.3) (2024-08-29)
266
+
267
+ **Note:** Version bump only for package @ui5/webcomponents-ai
268
+
269
+
270
+
271
+
272
+
273
+ # [2.2.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.2.0-rc.1...v2.2.0-rc.2) (2024-08-22)
274
+
275
+ **Note:** Version bump only for package @ui5/webcomponents-ai
276
+
277
+
278
+
279
+
280
+
281
+ # [2.2.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.2.0-rc.0...v2.2.0-rc.1) (2024-08-15)
282
+
283
+ **Note:** Version bump only for package @ui5/webcomponents-ai
284
+
285
+
286
+
287
+
288
+
289
+ # [2.2.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.1.1...v2.2.0-rc.0) (2024-08-08)
290
+
291
+ **Note:** Version bump only for package @ui5/webcomponents-ai
292
+
293
+
294
+
295
+
296
+
297
+ ## [2.1.1](https://github.com/SAP/ui5-webcomponents/compare/v2.1.0...v2.1.1) (2024-08-02)
298
+
299
+ **Note:** Version bump only for package @ui5/webcomponents-ai
300
+
301
+
302
+
303
+
304
+
305
+ # [2.1.0](https://github.com/SAP/ui5-webcomponents/compare/v2.1.0-rc.3...v2.1.0) (2024-08-02)
306
+
307
+ **Note:** Version bump only for package @ui5/webcomponents-ai
308
+
309
+
310
+
311
+
312
+
313
+ # [2.1.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.1.0-rc.2...v2.1.0-rc.3) (2024-08-01)
314
+
315
+ **Note:** Version bump only for package @ui5/webcomponents-ai
316
+
317
+
318
+
319
+
320
+
321
+ # [2.1.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.1.0-rc.1...v2.1.0-rc.2) (2024-07-25)
322
+
323
+ **Note:** Version bump only for package @ui5/webcomponents-ai
324
+
325
+
326
+
327
+
328
+
329
+ # [2.1.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.1.0-rc.0...v2.1.0-rc.1) (2024-07-18)
330
+
331
+
332
+ ### Features
333
+
334
+ * **ui5-prompt-input:** implement suggestions ([#9390](https://github.com/SAP/ui5-webcomponents/issues/9390)) ([a261cfb](https://github.com/SAP/ui5-webcomponents/commit/a261cfbfa06328e1f496a8a2acd1e4b22e78243d))
335
+
336
+
337
+
338
+
339
+
340
+ # [2.1.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.0.1...v2.1.0-rc.0) (2024-07-11)
341
+
342
+ **Note:** Version bump only for package @ui5/webcomponents-ai
343
+
344
+
345
+
346
+
347
+
348
+ ## [2.0.1](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0...v2.0.1) (2024-07-05)
349
+
350
+ **Note:** Version bump only for package @ui5/webcomponents-ai
351
+
352
+
353
+
354
+
355
+
356
+ # [2.0.0](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.6...v2.0.0) (2024-07-03)
357
+
358
+
359
+ ### Features
360
+
361
+ * add property initializers ([#8846](https://github.com/SAP/ui5-webcomponents/issues/8846)) ([eef0cc9](https://github.com/SAP/ui5-webcomponents/commit/eef0cc9b663fda6268b98e516ed46439435fa2b0))
362
+ * **ui5-ai-button:** initial implementation ([b39548f](https://github.com/SAP/ui5-webcomponents/commit/b39548f7af9e0dd76543327d5bab5242d9ef15a0))
363
+
364
+
365
+ ### BREAKING CHANGES
366
+
367
+ * @property decorator must be adapted according to new type parameter
368
+
369
+
370
+
371
+
372
+
373
+ # [2.0.0-rc.6](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.5...v2.0.0-rc.6) (2024-06-17)
374
+
375
+
376
+ ### Features
377
+
378
+ * **ui5-ai-prompt-input:** initial (experimental) implementation ([#9078](https://github.com/SAP/ui5-webcomponents/issues/9078)) ([9dcdfdb](https://github.com/SAP/ui5-webcomponents/commit/9dcdfdbcf78eda087099e12301ad91e624038a17))
379
+
380
+
381
+
382
+
383
+
384
+ # [2.0.0-rc.5](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.4...v2.0.0-rc.5) (2024-06-06)
385
+
386
+ **Note:** Version bump only for package @ui5/webcomponents-ai
387
+
388
+
389
+
390
+
391
+
392
+ # [2.0.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2024-05-29)
393
+
394
+ **Note:** Version bump only for package @ui5/webcomponents-ai
395
+
396
+
397
+
398
+
399
+
400
+ # Change Log
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_water.png)UI5 Web Components - AI
2
+
3
+ [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
4
+
5
+ Provides web components implementing AI-related visual and interaction.
6
+
7
+
8
+ **Note:** The package is available since 2.0 and experimental
9
+
10
+
11
+ ## Provided components
12
+
13
+ | Web Component | Tag name | Module import |
14
+ |--------------------------|--------------------------------|---------------------------------------------------------|
15
+ | Button | `ui5-ai-button` | `import "@ui5/webcomponents-ai/dist/Button.js";` |
16
+ | Button State | `ui5-ai-button-state` | comes with `ui5-ai-button` |
17
+ | PromptInput | `ui5-ai-prompt-input` | `import "@ui5/webcomponents-ai/dist/PromptInput.js";` |
18
+
19
+ ## Provided assets
20
+
21
+
22
+ | Assets | Module | Notes
23
+ |------------|-----------|-----------
24
+ | `i18n`, `themes` | `@ui5/webcomponents-compat/dist/Assets.js` | Theming parameters and translations for the components
25
+
26
+
27
+ ## Resources
28
+ - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
29
+ - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/)
30
+
31
+ ## Support
32
+ We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/).
33
+
34
+ ## Contribute
35
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
36
+
37
+ ## License
38
+ Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
39
+ This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/main/LICENSE.txt) file.
@@ -0,0 +1,3 @@
1
+ import "@ui5/webcomponents/dist/Assets.js";
2
+ import "./generated/json-imports/Themes.js";
3
+ import "./generated/json-imports/i18n.js";
package/dist/Assets.js ADDED
@@ -0,0 +1,6 @@
1
+ // main package assets (transitively base, theming and icons)
2
+ import "@ui5/webcomponents/dist/Assets.js";
3
+ // own ai package assets
4
+ import "./generated/json-imports/Themes.js";
5
+ import "./generated/json-imports/i18n.js";
6
+ //# sourceMappingURL=Assets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Assets.js","sourceRoot":"","sources":["../src/Assets.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,OAAO,mCAAmC,CAAC;AAE3C,wBAAwB;AACxB,OAAO,oCAAoC,CAAC;AAC5C,OAAO,kCAAkC,CAAC","sourcesContent":["// main package assets (transitively base, theming and icons)\nimport \"@ui5/webcomponents/dist/Assets.js\";\n\n// own ai package assets\nimport \"./generated/json-imports/Themes.js\";\nimport \"./generated/json-imports/i18n.js\";\n"]}
@@ -0,0 +1,128 @@
1
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ import type SplitButton from "@ui5/webcomponents/dist/SplitButton.js";
3
+ import type ButtonDesign from "@ui5/webcomponents/dist/types/ButtonDesign.js";
4
+ import type ButtonState from "./ButtonState.js";
5
+ import "./ButtonState.js";
6
+ /**
7
+ * @class
8
+ *
9
+ * ### Overview
10
+ *
11
+ * The `ui5-ai-button` component serves as a button for AI-related scenarios. Users can trigger actions by clicking or tapping the `ui5-ai-button`
12
+ * or by pressing keyboard keys like [Enter] or [Space].
13
+ *
14
+ * ### Usage
15
+ *
16
+ * For the `ui5-ai-button` user interface, you can define one or more button states by placing `ui5-ai-button-state` components in their default slot.
17
+ * Each state has a name for identification and can include text, an icon, and an end icon, as needed for its purpose.
18
+ * You can define a split mode for the `ui5-ai-button`, which will results in displaying an arrow button for additional actions.
19
+ *
20
+ * You can choose from a set of predefined designs for `ui5-ai-button` (as in `ui5-button`) to match the desired styling.
21
+ *
22
+ * The `ui5-ai-button` can be activated by clicking or tapping it. You can change the button state in the click event handler. When the button is
23
+ * in split mode, you can activate the default button action by clicking or tapping it, or by pressing keyboard keys like [Enter] or [Space].
24
+ * You can activate the arrow button by clicking or tapping it, or by pressing keyboard keys like [Arrow Up], [Arrow Down], or [F4].
25
+ * To display additional actions, you can attach a menu to the arrow button.
26
+ *
27
+ * ### ES6 Module Import
28
+ *
29
+ * `import "@ui5/webcomponents-ai/dist/Button.js";`
30
+ *
31
+ * @constructor
32
+ * @extends UI5Element
33
+ * @since 2.0.0
34
+ * @public
35
+ * @experimental The Button and ButtonState web components are availabe since 2.0 under an experimental flag and their API and behaviour are subject to change.
36
+ */
37
+ declare class Button extends UI5Element {
38
+ eventDetails: {
39
+ "click": void;
40
+ "arrow-click": void;
41
+ };
42
+ /**
43
+ * Defines the component design.
44
+ * @default "Default"
45
+ * @public
46
+ */
47
+ design?: `${ButtonDesign}`;
48
+ /**
49
+ * Defines whether the component is disabled.
50
+ * A disabled component can't be pressed or
51
+ * focused, and it is not in the tab chain.
52
+ * @default false
53
+ * @public
54
+ */
55
+ disabled: boolean;
56
+ /**
57
+ * Defines the current state of the component.
58
+ *
59
+ * @default undefined
60
+ * @public
61
+ */
62
+ state?: string;
63
+ /**
64
+ * Defines the active state of the arrow button in split mode.
65
+ * Set to true when the button is in split mode and a menu with additional options
66
+ * is opened by the arrow button. Set back to false when the menu is closed.
67
+ * @default false
68
+ * @public
69
+ * @since 2.6.0
70
+ */
71
+ activeArrowButton: boolean;
72
+ /**
73
+ * Keeps the current state object of the component.
74
+ * @private
75
+ */
76
+ _currentStateObject?: ButtonState;
77
+ /**
78
+ * Determines if the button is in icon-only mode.
79
+ * This property is animation related only.
80
+ * @default false
81
+ * @private
82
+ */
83
+ iconOnly?: boolean | undefined;
84
+ /**
85
+ * Defines the available states of the component.
86
+ * **Note:** Although this slot accepts HTML Elements, it is strongly recommended that
87
+ * you only use `ui5-ai-button-state` components in order to preserve the intended design.
88
+ * @public
89
+ */
90
+ states: Array<ButtonState>;
91
+ _splitButton?: SplitButton;
92
+ _hiddenSplitButton?: SplitButton;
93
+ get _hideArrowButton(): boolean;
94
+ get _effectiveState(): string;
95
+ get _effectiveStateObject(): ButtonState | undefined;
96
+ get _stateIconOnly(): boolean;
97
+ get _stateText(): string | undefined;
98
+ get _stateIcon(): string | undefined;
99
+ get _stateEndIcon(): string | undefined;
100
+ get _hasText(): boolean;
101
+ onBeforeRendering(): void;
102
+ /**
103
+ * Starts the fade-out animation.
104
+ * @private
105
+ */
106
+ _fadeOut(): Promise<void>;
107
+ /**
108
+ * Starts the fade-in animation.
109
+ * @private
110
+ */
111
+ _fadeIn(): void;
112
+ /**
113
+ * Resets the fade phases when the animation is completed.
114
+ * @private
115
+ */
116
+ _resetFade(): void;
117
+ /**
118
+ * Handles the click event.
119
+ * @private
120
+ */
121
+ _onClick(e: CustomEvent): void;
122
+ /**
123
+ * Handles the arrow-click event when `ui5-ai-button` is in split mode.
124
+ * @private
125
+ */
126
+ _onArrowClick(e: CustomEvent): void;
127
+ }
128
+ export default Button;