@ui5/webcomponents-ai 0.0.0-4e88b8243

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 +376 -0
  5. package/README.md +38 -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 +127 -0
  10. package/dist/Button.js +269 -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,376 @@
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.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.5...v2.6.0) (2025-01-07)
7
+
8
+ **Note:** Version bump only for package @ui5/webcomponents-ai
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * 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))
20
+
21
+
22
+
23
+
24
+
25
+ # [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)
26
+
27
+ **Note:** Version bump only for package @ui5/webcomponents-ai
28
+
29
+
30
+
31
+
32
+
33
+ # [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)
34
+
35
+
36
+ ### Features
37
+
38
+ * **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))
39
+
40
+
41
+
42
+
43
+
44
+ # [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)
45
+
46
+ **Note:** Version bump only for package @ui5/webcomponents-ai
47
+
48
+
49
+
50
+
51
+
52
+ # [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)
53
+
54
+ **Note:** Version bump only for package @ui5/webcomponents-ai
55
+
56
+
57
+
58
+
59
+
60
+ # [2.6.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0...v2.6.0-rc.0) (2024-12-12)
61
+
62
+
63
+ ### Features
64
+
65
+ * **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))
66
+
67
+
68
+
69
+
70
+
71
+ # [2.5.0](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0-rc.3...v2.5.0) (2024-12-05)
72
+
73
+ **Note:** Version bump only for package @ui5/webcomponents-ai
74
+
75
+
76
+
77
+
78
+
79
+ # [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)
80
+
81
+
82
+ ### Features
83
+
84
+ * **framework:** add strict event type checking ([#10235](https://github.com/SAP/ui5-webcomponents/issues/10235)) ([4ff8ab7](https://github.com/SAP/ui5-webcomponents/commit/4ff8ab7c34db5058b92511767be1b96c69a91cb5))
85
+
86
+
87
+
88
+
89
+
90
+ # [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)
91
+
92
+ **Note:** Version bump only for package @ui5/webcomponents-ai
93
+
94
+
95
+
96
+
97
+
98
+ # [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)
99
+
100
+ **Note:** Version bump only for package @ui5/webcomponents-ai
101
+
102
+
103
+
104
+
105
+
106
+ # [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)
107
+
108
+ **Note:** Version bump only for package @ui5/webcomponents-ai
109
+
110
+
111
+
112
+
113
+
114
+ ## [2.4.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.4.0...v2.4.1-rc.0) (2024-11-07)
115
+
116
+ **Note:** Version bump only for package @ui5/webcomponents-ai
117
+
118
+
119
+
120
+
121
+
122
+ # [2.4.0](https://github.com/SAP/ui5-webcomponents/compare/v2.4.0-rc.4...v2.4.0) (2024-11-03)
123
+
124
+ **Note:** Version bump only for package @ui5/webcomponents-ai
125
+
126
+
127
+
128
+
129
+
130
+ # [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)
131
+
132
+ **Note:** Version bump only for package @ui5/webcomponents-ai
133
+
134
+
135
+
136
+
137
+
138
+ # [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)
139
+
140
+ **Note:** Version bump only for package @ui5/webcomponents-ai
141
+
142
+
143
+
144
+
145
+
146
+ # [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)
147
+
148
+ **Note:** Version bump only for package @ui5/webcomponents-ai
149
+
150
+
151
+
152
+
153
+
154
+ # [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)
155
+
156
+
157
+ ### Bug Fixes
158
+
159
+ * 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))
160
+ * **tools:** revert tsconfig moduleResolution to node ([#10014](https://github.com/SAP/ui5-webcomponents/issues/10014)) ([0724b92](https://github.com/SAP/ui5-webcomponents/commit/0724b9289ad04f88972d4978ed37e76f13abca13))
161
+
162
+
163
+
164
+
165
+
166
+ # [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)
167
+
168
+
169
+ ### Bug Fixes
170
+
171
+ * **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))
172
+
173
+
174
+ ### Features
175
+
176
+ * 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))
177
+
178
+
179
+
180
+
181
+
182
+ ## [2.3.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0...v2.3.1-rc.0) (2024-10-03)
183
+
184
+ **Note:** Version bump only for package @ui5/webcomponents-ai
185
+
186
+
187
+
188
+
189
+
190
+ # [2.3.0](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0-rc.3...v2.3.0) (2024-10-02)
191
+
192
+
193
+ ### Features
194
+
195
+ * **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))
196
+
197
+
198
+
199
+
200
+
201
+ # [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)
202
+
203
+ **Note:** Version bump only for package @ui5/webcomponents-ai
204
+
205
+
206
+
207
+
208
+
209
+ # [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)
210
+
211
+ **Note:** Version bump only for package @ui5/webcomponents-ai
212
+
213
+
214
+
215
+
216
+
217
+ # [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)
218
+
219
+ **Note:** Version bump only for package @ui5/webcomponents-ai
220
+
221
+
222
+
223
+
224
+
225
+ # [2.3.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.2.0...v2.3.0-rc.0) (2024-09-05)
226
+
227
+ **Note:** Version bump only for package @ui5/webcomponents-ai
228
+
229
+
230
+
231
+
232
+
233
+ # [2.2.0](https://github.com/SAP/ui5-webcomponents/compare/v2.2.0-rc.3...v2.2.0) (2024-09-03)
234
+
235
+ **Note:** Version bump only for package @ui5/webcomponents-ai
236
+
237
+
238
+
239
+
240
+
241
+ # [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)
242
+
243
+ **Note:** Version bump only for package @ui5/webcomponents-ai
244
+
245
+
246
+
247
+
248
+
249
+ # [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)
250
+
251
+ **Note:** Version bump only for package @ui5/webcomponents-ai
252
+
253
+
254
+
255
+
256
+
257
+ # [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)
258
+
259
+ **Note:** Version bump only for package @ui5/webcomponents-ai
260
+
261
+
262
+
263
+
264
+
265
+ # [2.2.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.1.1...v2.2.0-rc.0) (2024-08-08)
266
+
267
+ **Note:** Version bump only for package @ui5/webcomponents-ai
268
+
269
+
270
+
271
+
272
+
273
+ ## [2.1.1](https://github.com/SAP/ui5-webcomponents/compare/v2.1.0...v2.1.1) (2024-08-02)
274
+
275
+ **Note:** Version bump only for package @ui5/webcomponents-ai
276
+
277
+
278
+
279
+
280
+
281
+ # [2.1.0](https://github.com/SAP/ui5-webcomponents/compare/v2.1.0-rc.3...v2.1.0) (2024-08-02)
282
+
283
+ **Note:** Version bump only for package @ui5/webcomponents-ai
284
+
285
+
286
+
287
+
288
+
289
+ # [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)
290
+
291
+ **Note:** Version bump only for package @ui5/webcomponents-ai
292
+
293
+
294
+
295
+
296
+
297
+ # [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)
298
+
299
+ **Note:** Version bump only for package @ui5/webcomponents-ai
300
+
301
+
302
+
303
+
304
+
305
+ # [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)
306
+
307
+
308
+ ### Features
309
+
310
+ * **ui5-prompt-input:** implement suggestions ([#9390](https://github.com/SAP/ui5-webcomponents/issues/9390)) ([a261cfb](https://github.com/SAP/ui5-webcomponents/commit/a261cfbfa06328e1f496a8a2acd1e4b22e78243d))
311
+
312
+
313
+
314
+
315
+
316
+ # [2.1.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.0.1...v2.1.0-rc.0) (2024-07-11)
317
+
318
+ **Note:** Version bump only for package @ui5/webcomponents-ai
319
+
320
+
321
+
322
+
323
+
324
+ ## [2.0.1](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0...v2.0.1) (2024-07-05)
325
+
326
+ **Note:** Version bump only for package @ui5/webcomponents-ai
327
+
328
+
329
+
330
+
331
+
332
+ # [2.0.0](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.6...v2.0.0) (2024-07-03)
333
+
334
+
335
+ ### Features
336
+
337
+ * add property initializers ([#8846](https://github.com/SAP/ui5-webcomponents/issues/8846)) ([eef0cc9](https://github.com/SAP/ui5-webcomponents/commit/eef0cc9b663fda6268b98e516ed46439435fa2b0))
338
+ * **ui5-ai-button:** initial implementation ([b39548f](https://github.com/SAP/ui5-webcomponents/commit/b39548f7af9e0dd76543327d5bab5242d9ef15a0))
339
+
340
+
341
+ ### BREAKING CHANGES
342
+
343
+ * @property decorator must be adapted according to new type parameter
344
+
345
+
346
+
347
+
348
+
349
+ # [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)
350
+
351
+
352
+ ### Features
353
+
354
+ * **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))
355
+
356
+
357
+
358
+
359
+
360
+ # [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)
361
+
362
+ **Note:** Version bump only for package @ui5/webcomponents-ai
363
+
364
+
365
+
366
+
367
+
368
+ # [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)
369
+
370
+ **Note:** Version bump only for package @ui5/webcomponents-ai
371
+
372
+
373
+
374
+
375
+
376
+ # Change Log
package/README.md ADDED
@@ -0,0 +1,38 @@
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
+ | PromptInput | `ui5-ai-prompt-input` | `import "@ui5/webcomponents-ai/dist/PromptInput.js";` |
17
+
18
+ ## Provided assets
19
+
20
+
21
+ | Assets | Module | Notes
22
+ |------------|-----------|-----------
23
+ | `i18n`, `themes` | `@ui5/webcomponents-compat/dist/Assets.js` | Theming parameters and translations for the components
24
+
25
+
26
+ ## Resources
27
+ - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
28
+ - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/)
29
+
30
+ ## Support
31
+ 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/).
32
+
33
+ ## Contribute
34
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
35
+
36
+ ## License
37
+ Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
38
+ 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,127 @@
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
+ /**
6
+ * @class
7
+ *
8
+ * ### Overview
9
+ *
10
+ * 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`
11
+ * or by pressing keyboard keys like [Enter] or [Space].
12
+ *
13
+ * ### Usage
14
+ *
15
+ * 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.
16
+ * Each state has a name for identification and can include text, an icon, and an end icon, as needed for its purpose.
17
+ * You can define a split mode for the `ui5-ai-button`, which will results in displaying an arrow button for additional actions.
18
+ *
19
+ * You can choose from a set of predefined designs for `ui5-ai-button` (as in `ui5-button`) to match the desired styling.
20
+ *
21
+ * 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
22
+ * in split mode, you can activate the default button action by clicking or tapping it, or by pressing keyboard keys like [Enter] or [Space].
23
+ * You can activate the arrow button by clicking or tapping it, or by pressing keyboard keys like [Arrow Up], [Arrow Down], or [F4].
24
+ * To display additional actions, you can attach a menu to the arrow button.
25
+ *
26
+ * ### ES6 Module Import
27
+ *
28
+ * `import "@ui5/webcomponents-ai/dist/Button.js";`
29
+ *
30
+ * @constructor
31
+ * @extends UI5Element
32
+ * @since 2.0.0
33
+ * @public
34
+ * @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.
35
+ */
36
+ declare class Button extends UI5Element {
37
+ eventDetails: {
38
+ "click": void;
39
+ "arrow-click": void;
40
+ };
41
+ /**
42
+ * Defines the component design.
43
+ * @default "Default"
44
+ * @public
45
+ */
46
+ design?: `${ButtonDesign}`;
47
+ /**
48
+ * Defines whether the component is disabled.
49
+ * A disabled component can't be pressed or
50
+ * focused, and it is not in the tab chain.
51
+ * @default false
52
+ * @public
53
+ */
54
+ disabled: boolean;
55
+ /**
56
+ * Defines the current state of the component.
57
+ *
58
+ * @default undefined
59
+ * @public
60
+ */
61
+ state?: string;
62
+ /**
63
+ * Defines the active state of the arrow button in split mode.
64
+ * Set to true when the button is in split mode and a menu with additional options
65
+ * is opened by the arrow button. Set back to false when the menu is closed.
66
+ * @default false
67
+ * @public
68
+ * @since 2.6.0
69
+ */
70
+ activeArrowButton: boolean;
71
+ /**
72
+ * Keeps the current state object of the component.
73
+ * @private
74
+ */
75
+ _currentStateObject?: ButtonState;
76
+ /**
77
+ * Determines if the button is in icon-only mode.
78
+ * This property is animation related only.
79
+ * @default false
80
+ * @private
81
+ */
82
+ iconOnly?: boolean | undefined;
83
+ /**
84
+ * Defines the available states of the component.
85
+ * **Note:** Although this slot accepts HTML Elements, it is strongly recommended that
86
+ * you only use `ui5-ai-button-state` components in order to preserve the intended design.
87
+ * @public
88
+ */
89
+ states: Array<ButtonState>;
90
+ _splitButton?: SplitButton;
91
+ _hiddenSplitButton?: SplitButton;
92
+ get _hideArrowButton(): boolean;
93
+ get _effectiveState(): string;
94
+ get _effectiveStateObject(): ButtonState | undefined;
95
+ get _stateIconOnly(): boolean;
96
+ get _stateText(): string | undefined;
97
+ get _stateIcon(): string | undefined;
98
+ get _stateEndIcon(): string | undefined;
99
+ get _hasText(): boolean;
100
+ onBeforeRendering(): void;
101
+ /**
102
+ * Starts the fade-out animation.
103
+ * @private
104
+ */
105
+ _fadeOut(): Promise<void>;
106
+ /**
107
+ * Starts the fade-in animation.
108
+ * @private
109
+ */
110
+ _fadeIn(): void;
111
+ /**
112
+ * Resets the fade phases when the animation is completed.
113
+ * @private
114
+ */
115
+ _resetFade(): void;
116
+ /**
117
+ * Handles the click event.
118
+ * @private
119
+ */
120
+ _onClick(e: CustomEvent): void;
121
+ /**
122
+ * Handles the arrow-click event when `ui5-ai-button` is in split mode.
123
+ * @private
124
+ */
125
+ _onArrowClick(e: CustomEvent): void;
126
+ }
127
+ export default Button;