@ui5/webcomponents-ai 0.0.0-d473b9686 → 0.0.0-f6676abdd

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 (199) hide show
  1. package/.nyc_output/out.json +1 -0
  2. package/CHANGELOG.md +449 -0
  3. package/README.md +6 -7
  4. package/coverage/clover.xml +6 -0
  5. package/coverage/coverage-final.json +1 -0
  6. package/coverage/coverage-summary.json +2 -0
  7. package/coverage/lcov-report/base.css +224 -0
  8. package/coverage/lcov-report/block-navigation.js +87 -0
  9. package/coverage/lcov-report/favicon.png +0 -0
  10. package/coverage/lcov-report/index.html +101 -0
  11. package/coverage/lcov-report/prettify.css +1 -0
  12. package/coverage/lcov-report/prettify.js +2 -0
  13. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  14. package/coverage/lcov-report/sorter.js +196 -0
  15. package/coverage/lcov-report/src/generated/themes/Button.css.ts.html +109 -0
  16. package/coverage/lcov-report/src/generated/themes/index.html +116 -0
  17. package/coverage/lcov.info +0 -0
  18. package/cypress/specs/Button.cy.tsx +14 -0
  19. package/cypress/support/commands.ts +1 -0
  20. package/cypress/support/component.ts +3 -0
  21. package/cypress/tsconfig.json +44 -0
  22. package/cypress.config.js +10 -0
  23. package/dist/.tsbuildinfo +1 -0
  24. package/dist/Button.d.ts +119 -2
  25. package/dist/Button.js +241 -12
  26. package/dist/Button.js.map +1 -1
  27. package/dist/ButtonState.d.ts +67 -0
  28. package/dist/ButtonState.js +64 -0
  29. package/dist/ButtonState.js.map +1 -0
  30. package/dist/ButtonTemplate.d.ts +2 -0
  31. package/dist/ButtonTemplate.js +6 -0
  32. package/dist/ButtonTemplate.js.map +1 -0
  33. package/dist/PromptInput.d.ts +147 -0
  34. package/dist/PromptInput.js +225 -0
  35. package/dist/PromptInput.js.map +1 -0
  36. package/dist/PromptInputTemplate.d.ts +2 -0
  37. package/dist/PromptInputTemplate.js +12 -0
  38. package/dist/PromptInputTemplate.js.map +1 -0
  39. package/dist/bundle.esm.js +3 -1
  40. package/dist/bundle.esm.js.map +1 -1
  41. package/dist/bundle.scoped.config.d.ts +1 -0
  42. package/dist/bundle.scoped.config.js +3 -0
  43. package/dist/bundle.scoped.config.js.map +1 -0
  44. package/dist/bundle.scoped.esm.d.ts +2 -1
  45. package/dist/bundle.scoped.esm.js +2 -2
  46. package/dist/bundle.scoped.esm.js.map +1 -1
  47. package/dist/css/themes/Button.css +1 -0
  48. package/dist/css/themes/PromptInput.css +1 -0
  49. package/dist/custom-elements-internal.json +609 -1
  50. package/dist/custom-elements.json +536 -1
  51. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -0
  52. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -0
  53. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -0
  54. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -0
  55. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -0
  56. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -0
  57. package/dist/generated/assets/i18n/messagebundle_da.json +1 -0
  58. package/dist/generated/assets/i18n/messagebundle_de.json +1 -0
  59. package/dist/generated/assets/i18n/messagebundle_el.json +1 -0
  60. package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
  61. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -0
  62. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
  63. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
  64. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
  65. package/dist/generated/assets/i18n/messagebundle_es.json +1 -0
  66. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -0
  67. package/dist/generated/assets/i18n/messagebundle_et.json +1 -0
  68. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -0
  69. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -0
  70. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -0
  71. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -0
  72. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -0
  73. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -0
  74. package/dist/generated/assets/i18n/messagebundle_it.json +1 -0
  75. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -0
  76. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -0
  77. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -0
  78. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -0
  79. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -0
  80. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -0
  81. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -0
  82. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -0
  83. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -0
  84. package/dist/generated/assets/i18n/messagebundle_no.json +1 -0
  85. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -0
  86. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -0
  87. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -0
  88. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -0
  89. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -0
  90. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -0
  91. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -0
  92. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -0
  93. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -0
  94. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -0
  95. package/dist/generated/assets/i18n/messagebundle_th.json +1 -0
  96. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -0
  97. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -0
  98. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -0
  99. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -0
  100. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -0
  101. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  102. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  103. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  104. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  105. package/dist/generated/i18n/i18n-defaults.d.ts +4 -1
  106. package/dist/generated/i18n/i18n-defaults.js +3 -1
  107. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  108. package/dist/generated/json-imports/Themes-fetch.d.ts +1 -0
  109. package/dist/generated/json-imports/Themes-fetch.js +21 -0
  110. package/dist/generated/json-imports/Themes-fetch.js.map +1 -0
  111. package/dist/generated/json-imports/Themes.js.map +1 -1
  112. package/dist/generated/json-imports/i18n-fetch.d.ts +1 -0
  113. package/dist/generated/json-imports/i18n-fetch.js +118 -0
  114. package/dist/generated/json-imports/i18n-fetch.js.map +1 -0
  115. package/dist/generated/json-imports/i18n.d.ts +1 -0
  116. package/dist/generated/json-imports/i18n.js +117 -1
  117. package/dist/generated/json-imports/i18n.js.map +1 -1
  118. package/dist/generated/themes/Button.css.d.ts +2 -3
  119. package/dist/generated/themes/Button.css.js +2 -2
  120. package/dist/generated/themes/Button.css.js.map +1 -1
  121. package/dist/generated/themes/PromptInput.css.d.ts +2 -0
  122. package/dist/generated/themes/PromptInput.css.js +8 -0
  123. package/dist/generated/themes/PromptInput.css.js.map +1 -0
  124. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +2 -3
  125. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -2
  126. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  127. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +2 -3
  128. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -2
  129. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  130. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +2 -3
  131. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -2
  132. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  133. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +2 -3
  134. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -2
  135. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  136. package/dist/vscode.html-custom-data.json +131 -1
  137. package/dist/web-types.json +315 -0
  138. package/package.json +11 -8
  139. package/src/ButtonTemplate.tsx +26 -0
  140. package/src/PromptInputTemplate.tsx +49 -0
  141. package/src/i18n/messagebundle.properties +6 -0
  142. package/src/i18n/messagebundle_ar.properties +4 -0
  143. package/src/i18n/messagebundle_bg.properties +4 -0
  144. package/src/i18n/messagebundle_ca.properties +4 -0
  145. package/src/i18n/messagebundle_cnr.properties +4 -0
  146. package/src/i18n/messagebundle_cs.properties +4 -0
  147. package/src/i18n/messagebundle_cy.properties +4 -0
  148. package/src/i18n/messagebundle_da.properties +4 -0
  149. package/src/i18n/messagebundle_de.properties +4 -0
  150. package/src/i18n/messagebundle_el.properties +4 -0
  151. package/src/i18n/messagebundle_en.properties +4 -0
  152. package/src/i18n/messagebundle_en_GB.properties +4 -0
  153. package/src/i18n/messagebundle_en_US_sappsd.properties +4 -0
  154. package/src/i18n/messagebundle_en_US_saprigi.properties +4 -0
  155. package/src/i18n/messagebundle_en_US_saptrc.properties +4 -0
  156. package/src/i18n/messagebundle_es.properties +4 -0
  157. package/src/i18n/messagebundle_es_MX.properties +4 -0
  158. package/src/i18n/messagebundle_et.properties +4 -0
  159. package/src/i18n/messagebundle_fi.properties +4 -0
  160. package/src/i18n/messagebundle_fr.properties +4 -0
  161. package/src/i18n/messagebundle_fr_CA.properties +4 -0
  162. package/src/i18n/messagebundle_hi.properties +4 -0
  163. package/src/i18n/messagebundle_hr.properties +4 -0
  164. package/src/i18n/messagebundle_hu.properties +4 -0
  165. package/src/i18n/messagebundle_id.properties +4 -0
  166. package/src/i18n/messagebundle_it.properties +4 -0
  167. package/src/i18n/messagebundle_iw.properties +4 -0
  168. package/src/i18n/messagebundle_ja.properties +4 -0
  169. package/src/i18n/messagebundle_kk.properties +4 -0
  170. package/src/i18n/messagebundle_ko.properties +4 -0
  171. package/src/i18n/messagebundle_lt.properties +4 -0
  172. package/src/i18n/messagebundle_lv.properties +4 -0
  173. package/src/i18n/messagebundle_mk.properties +4 -0
  174. package/src/i18n/messagebundle_ms.properties +4 -0
  175. package/src/i18n/messagebundle_nl.properties +4 -0
  176. package/src/i18n/messagebundle_no.properties +4 -0
  177. package/src/i18n/messagebundle_pl.properties +4 -0
  178. package/src/i18n/messagebundle_pt.properties +4 -0
  179. package/src/i18n/messagebundle_pt_PT.properties +4 -0
  180. package/src/i18n/messagebundle_ro.properties +4 -0
  181. package/src/i18n/messagebundle_ru.properties +4 -0
  182. package/src/i18n/messagebundle_sh.properties +4 -0
  183. package/src/i18n/messagebundle_sk.properties +4 -0
  184. package/src/i18n/messagebundle_sl.properties +4 -0
  185. package/src/i18n/messagebundle_sr.properties +4 -0
  186. package/src/i18n/messagebundle_sv.properties +4 -0
  187. package/src/i18n/messagebundle_th.properties +4 -0
  188. package/src/i18n/messagebundle_tr.properties +4 -0
  189. package/src/i18n/messagebundle_uk.properties +4 -0
  190. package/src/i18n/messagebundle_vi.properties +4 -0
  191. package/src/i18n/messagebundle_zh_CN.properties +4 -0
  192. package/src/i18n/messagebundle_zh_TW.properties +4 -0
  193. package/src/themes/Button.css +142 -0
  194. package/src/themes/PromptInput.css +30 -0
  195. package/tsconfig.json +55 -26
  196. package/dist/generated/templates/ButtonTemplate.lit.d.ts +0 -4
  197. package/dist/generated/templates/ButtonTemplate.lit.js +0 -5
  198. package/dist/generated/templates/ButtonTemplate.lit.js.map +0 -1
  199. package/src/Button.hbs +0 -3
@@ -0,0 +1,225 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var PromptInput_1;
8
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
9
+ import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
10
+ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
11
+ import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
12
+ import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
13
+ import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
14
+ import jsxRenderer from "@ui5/webcomponents-base/dist/renderer/JsxRenderer.js";
15
+ import { isEnter, } from "@ui5/webcomponents-base/dist/Keys.js";
16
+ import { PROMPT_INPUT_CHARACTERS_LEFT, PROMPT_INPUT_CHARACTERS_EXCEEDED, } from "./generated/i18n/i18n-defaults.js";
17
+ import PromptInputTemplate from "./PromptInputTemplate.js";
18
+ // Styles
19
+ import PromptInputCss from "./generated/themes/PromptInput.css.js";
20
+ /**
21
+ * @class
22
+ * ### Overview
23
+ *
24
+ * The `ui5-ai-prompt-input` component allows the user to write custom instructions in natural language, so that AI is guided to generate content tailored to user needs.
25
+ *
26
+ * **Note:** The web component is in an experimental state
27
+ *
28
+ * ### ES6 Module Import
29
+ *
30
+ * `import "@ui5/webcomponents-ai/dist/PromptInput.js"`
31
+ * @class
32
+ * @constructor
33
+ * @public
34
+ * @extends UI5Element
35
+ * @experimental The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.
36
+ */
37
+ let PromptInput = PromptInput_1 = class PromptInput extends UI5Element {
38
+ constructor() {
39
+ super(...arguments);
40
+ /**
41
+ * Defines the value of the component.
42
+ *
43
+ * @default ""
44
+ * @since 2.0.0
45
+ * @public
46
+ */
47
+ this.value = "";
48
+ /**
49
+ * Defines whether the clear icon of the input will be shown.
50
+ * @default false
51
+ * @public
52
+ * @since 2.0.0
53
+ */
54
+ this.showClearIcon = false;
55
+ /**
56
+ * Determines whether the characters exceeding the maximum allowed character count are visible
57
+ * in the component.
58
+ *
59
+ * If set to `false`, the user is not allowed to enter more characters than what is set in the
60
+ * `maxlength` property.
61
+ * If set to `true` the characters exceeding the `maxlength` value are selected on
62
+ * paste and the counter below the component displays their number.
63
+ * @default false
64
+ * @public
65
+ * @since 2.0.0
66
+ */
67
+ this.showExceededText = false;
68
+ /**
69
+ * Defines whether the component is in disabled state.
70
+ *
71
+ * **Note:** A disabled component is completely noninteractive.
72
+ * @default false
73
+ * @public
74
+ * @since 2.0.0
75
+ */
76
+ this.disabled = false;
77
+ /**
78
+ * Defines whether the component is read-only.
79
+ *
80
+ * **Note:** A read-only component is not editable,
81
+ * but still provides visual feedback upon user interaction.
82
+ * @default false
83
+ * @public
84
+ * @since 2.0.0
85
+ */
86
+ this.readonly = false;
87
+ /**
88
+ * Defines the value state of the component.
89
+ * @default "None"
90
+ * @since 2.0.0
91
+ * @public
92
+ */
93
+ this.valueState = "None";
94
+ /**
95
+ * Defines whether the component should show suggestions, if such are present.
96
+ *
97
+ * @default false
98
+ * @public
99
+ */
100
+ this.showSuggestions = false;
101
+ }
102
+ _onkeydown(e) {
103
+ if (isEnter(e)) {
104
+ this.fireDecoratorEvent("submit");
105
+ }
106
+ }
107
+ _onInnerInput(e) {
108
+ this.value = e.target.value;
109
+ this.fireDecoratorEvent("input");
110
+ }
111
+ _onInnerChange() {
112
+ this.fireDecoratorEvent("change");
113
+ }
114
+ _onButtonClick() {
115
+ this.fireDecoratorEvent("submit");
116
+ }
117
+ _onTypeAhead(e) {
118
+ this.value = e.target.value;
119
+ }
120
+ get _exceededText() {
121
+ if (this.showExceededText) {
122
+ let leftCharactersCount;
123
+ const maxLength = this.maxlength;
124
+ if (maxLength !== undefined) {
125
+ leftCharactersCount = maxLength - this.value.length;
126
+ if (leftCharactersCount >= 0) {
127
+ return PromptInput_1.i18nBundle.getText(PROMPT_INPUT_CHARACTERS_LEFT, leftCharactersCount);
128
+ }
129
+ return PromptInput_1.i18nBundle.getText(PROMPT_INPUT_CHARACTERS_EXCEEDED, Math.abs(leftCharactersCount));
130
+ }
131
+ }
132
+ }
133
+ get _maxLenght() {
134
+ return this.maxlength || undefined;
135
+ }
136
+ get _submitButtonDisabled() {
137
+ return (this.value.length <= 0) || this.disabled || this.readonly;
138
+ }
139
+ };
140
+ __decorate([
141
+ property()
142
+ ], PromptInput.prototype, "value", void 0);
143
+ __decorate([
144
+ property()
145
+ ], PromptInput.prototype, "placeholder", void 0);
146
+ __decorate([
147
+ property()
148
+ ], PromptInput.prototype, "label", void 0);
149
+ __decorate([
150
+ property({ type: Boolean })
151
+ ], PromptInput.prototype, "showClearIcon", void 0);
152
+ __decorate([
153
+ property({ type: Boolean })
154
+ ], PromptInput.prototype, "showExceededText", void 0);
155
+ __decorate([
156
+ property({ type: Boolean })
157
+ ], PromptInput.prototype, "disabled", void 0);
158
+ __decorate([
159
+ property({ type: Boolean })
160
+ ], PromptInput.prototype, "readonly", void 0);
161
+ __decorate([
162
+ property({ type: Number })
163
+ ], PromptInput.prototype, "maxlength", void 0);
164
+ __decorate([
165
+ property()
166
+ ], PromptInput.prototype, "valueState", void 0);
167
+ __decorate([
168
+ property({ type: Boolean })
169
+ ], PromptInput.prototype, "showSuggestions", void 0);
170
+ __decorate([
171
+ slot({ type: HTMLElement, "default": true })
172
+ ], PromptInput.prototype, "suggestionItems", void 0);
173
+ __decorate([
174
+ slot({
175
+ type: HTMLElement,
176
+ invalidateOnChildChange: true,
177
+ })
178
+ ], PromptInput.prototype, "valueStateMessage", void 0);
179
+ __decorate([
180
+ i18n("@ui5/webcomponents-ai")
181
+ ], PromptInput, "i18nBundle", void 0);
182
+ PromptInput = PromptInput_1 = __decorate([
183
+ customElement({
184
+ tag: "ui5-ai-prompt-input",
185
+ renderer: jsxRenderer,
186
+ styles: PromptInputCss,
187
+ template: PromptInputTemplate,
188
+ })
189
+ /**
190
+ * Fired when the input operation has finished by pressing Enter
191
+ * or AI button is clicked.
192
+ *
193
+ * @since 2.0.0
194
+ * @public
195
+ */
196
+ ,
197
+ event("submit", {
198
+ bubbles: true,
199
+ })
200
+ /**
201
+ * Fired when the value of the component changes at each keystroke,
202
+ * and when a suggestion item has been selected.
203
+ *
204
+ * @since 2.0.0
205
+ * @public
206
+ */
207
+ ,
208
+ event("input", {
209
+ bubbles: true,
210
+ })
211
+ /**
212
+ * Fired when the input operation has finished by pressing Enter
213
+ * or on focusout.
214
+ *
215
+ * @since 2.0.0
216
+ * @public
217
+ */
218
+ ,
219
+ event("change", {
220
+ bubbles: true,
221
+ })
222
+ ], PromptInput);
223
+ PromptInput.define();
224
+ export default PromptInput;
225
+ //# sourceMappingURL=PromptInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromptInput.js","sourceRoot":"","sources":["../src/PromptInput.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,yDAAyD,CAAC;AAC5E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAK/E,OAAO,EACN,OAAO,GACP,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,4BAA4B,EAC5B,gCAAgC,GAChC,MAAM,mCAAmC,CAAC;AAE3C,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,SAAS;AACT,OAAO,cAAc,MAAM,uCAAuC,CAAC;AAEnE;;;;;;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uBAAuB,EAAE,IAAI;KAC7B,CAAC;sDACqC;AAGhC;IADN,IAAI,CAAC,uBAAuB,CAAC;qCACA;AA/IzB,WAAW;IAvChB,aAAa,CAAC;QACd,GAAG,EAAE,qBAAqB;QAC1B,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,cAAc;QACtB,QAAQ,EAAE,mBAAmB;KAC7B,CAAC;IAEF;;;;;;OAMG;;IACF,KAAK,CAAC,QAAQ,EAAE;QAChB,OAAO,EAAE,IAAI;KACb,CAAC;IAEF;;;;;;OAMG;;IACF,KAAK,CAAC,OAAO,EAAE;QACf,OAAO,EAAE,IAAI;KACb,CAAC;IAEF;;;;;;OAMG;;IACF,KAAK,CAAC,QAAQ,EAAE;QAChB,OAAO,EAAE,IAAI;KACb,CAAC;GACI,WAAW,CAiMhB;AAED,WAAW,CAAC,MAAM,EAAE,CAAC;AAErB,eAAe,WAAW,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport type { IInputSuggestionItem, InputEventDetail } from \"@ui5/webcomponents/dist/Input.js\";\nimport type Input from \"@ui5/webcomponents/dist/Input.js\";\nimport {\n\tisEnter,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport {\n\tPROMPT_INPUT_CHARACTERS_LEFT,\n\tPROMPT_INPUT_CHARACTERS_EXCEEDED,\n} from \"./generated/i18n/i18n-defaults.js\";\n\nimport PromptInputTemplate from \"./PromptInputTemplate.js\";\n\n// Styles\nimport PromptInputCss from \"./generated/themes/PromptInput.css.js\";\n\n/**\n * @class\n * ### Overview\n *\n * The `ui5-ai-prompt-input` component allows the user to write custom instructions in natural language, so that AI is guided to generate content tailored to user needs.\n *\n * **Note:** The web component is in an experimental state\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-ai/dist/PromptInput.js\"`\n * @class\n * @constructor\n * @public\n * @extends UI5Element\n * @experimental The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.\n */\n@customElement({\n\ttag: \"ui5-ai-prompt-input\",\n\trenderer: jsxRenderer,\n\tstyles: PromptInputCss,\n\ttemplate: PromptInputTemplate,\n})\n\n/**\n * Fired when the input operation has finished by pressing Enter\n * or AI button is clicked.\n *\n * @since 2.0.0\n * @public\n */\n@event(\"submit\", {\n\tbubbles: true,\n})\n\n/**\n * Fired when the value of the component changes at each keystroke,\n * and when a suggestion item has been selected.\n *\n * @since 2.0.0\n * @public\n */\n@event(\"input\", {\n\tbubbles: true,\n})\n\n/**\n * Fired when the input operation has finished by pressing Enter\n * or on focusout.\n *\n * @since 2.0.0\n * @public\n */\n@event(\"change\", {\n\tbubbles: true,\n})\nclass PromptInput extends UI5Element {\n\teventDetails!: {\n\t\tsubmit: void;\n\t\tinput: void;\n\t\tchange: void;\n\t}\n\t/**\n\t * Defines the value of the component.\n\t *\n\t * @default \"\"\n\t * @since 2.0.0\n\t * @public\n\t */\n\t@property()\n\tvalue = \"\";\n\n\t/**\n\t * Defines a short hint intended to aid the user with data entry when the\n\t * component has no value.\n\t * @default undefined\n\t * @since 2.0.0\n\t * @public\n\t */\n\t@property()\n\tplaceholder?: string;\n\n\t/**\n\t * Defines the label of the input field.\n\t *\n\t * @default undefined\n\t * @since 2.0.0\n\t * @public\n\t */\n\t@property()\n\tlabel?: string;\n\n\t/**\n\t * Defines whether the clear icon of the input will be shown.\n\t * @default false\n\t * @public\n\t * @since 2.0.0\n\t */\n\t@property({ type: Boolean })\n\tshowClearIcon = false;\n\n\t/**\n\t * Determines whether the characters exceeding the maximum allowed character count are visible\n\t * in the component.\n\t *\n\t * If set to `false`, the user is not allowed to enter more characters than what is set in the\n\t * `maxlength` property.\n\t * If set to `true` the characters exceeding the `maxlength` value are selected on\n\t * paste and the counter below the component displays their number.\n\t * @default false\n\t * @public\n\t * @since 2.0.0\n\t */\n\t@property({ type: Boolean })\n\tshowExceededText = false;\n\n\t/**\n\t * Defines whether the component is in disabled state.\n\t *\n\t * **Note:** A disabled component is completely noninteractive.\n\t * @default false\n\t * @public\n\t * @since 2.0.0\n\t */\n\t@property({ type: Boolean })\n\tdisabled = false;\n\n\t/**\n\t * Defines whether the component is read-only.\n\t *\n\t * **Note:** A read-only component is not editable,\n\t * but still provides visual feedback upon user interaction.\n\t * @default false\n\t * @public\n\t * @since 2.0.0\n\t */\n\t@property({ type: Boolean })\n\treadonly = false;\n\n\t/**\n\t * Sets the maximum number of characters available in the input field.\n\t *\n\t * @default undefined\n\t * @since 2.0.0\n\t * @public\n\t */\n\t@property({ type: Number })\n\tmaxlength?: number;\n\n\t/**\n\t * Defines the value state of the component.\n\t * @default \"None\"\n\t * @since 2.0.0\n\t * @public\n\t */\n\t@property()\n\tvalueState: `${ValueState}` = \"None\"\n\n\t/**\n\t * Defines whether the component should show suggestions, if such are present.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowSuggestions = false;\n\n\t/**\n\t * Defines the suggestion items.\n\t *\n\t * **Note:** The suggestions would be displayed only if the `showSuggestions`\n\t * property is set to `true`.\n\t *\n\t * **Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\t *\n\t * @public\n\t */\n\t\t@slot({ type: HTMLElement, \"default\": true })\n\t\tsuggestionItems!: Array<IInputSuggestionItem>;\n\n\t/**\n\t * Defines the value state message that will be displayed as pop up under the component.\n\t * The value state message slot should contain only one root element.\n\t *\n\t * **Note:** If not specified, a default text (in the respective language) will be displayed.\n\t *\n\t * **Note:** The `valueStateMessage` would be displayed,\n\t * when the component is in `Information`, `Critical` or `Negative` value state.\n\t *\n\t * @since 2.0.0\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\tinvalidateOnChildChange: true,\n\t})\n\tvalueStateMessage!: Array<HTMLElement>;\n\n\t@i18n(\"@ui5/webcomponents-ai\")\n\tstatic i18nBundle: I18nBundle;\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isEnter(e)) {\n\t\t\tthis.fireDecoratorEvent(\"submit\");\n\t\t}\n\t}\n\n\t_onInnerInput(e: CustomEvent<InputEventDetail>) {\n\t\tthis.value = (e.target as Input).value;\n\n\t\tthis.fireDecoratorEvent(\"input\");\n\t}\n\n\t_onInnerChange() {\n\t\tthis.fireDecoratorEvent(\"change\");\n\t}\n\n\t_onButtonClick() {\n\t\tthis.fireDecoratorEvent(\"submit\");\n\t}\n\n\t_onTypeAhead(e: CustomEvent): void {\n\t\tthis.value = (e.target as Input).value;\n\t}\n\n\tget _exceededText() {\n\t\tif (this.showExceededText) {\n\t\t\tlet leftCharactersCount;\n\t\t\tconst maxLength = this.maxlength;\n\n\t\t\tif (maxLength !== undefined) {\n\t\t\t\tleftCharactersCount = maxLength - this.value.length;\n\n\t\t\t\tif (leftCharactersCount >= 0) {\n\t\t\t\t\treturn PromptInput.i18nBundle.getText(PROMPT_INPUT_CHARACTERS_LEFT, leftCharactersCount);\n\t\t\t\t}\n\n\t\t\t\treturn PromptInput.i18nBundle.getText(PROMPT_INPUT_CHARACTERS_EXCEEDED, Math.abs(leftCharactersCount));\n\t\t\t}\n\t\t}\n\t}\n\n\tget _maxLenght() {\n\t\treturn this.maxlength || undefined;\n\t}\n\n\tget _submitButtonDisabled() {\n\t\treturn (this.value.length <= 0) || this.disabled || this.readonly;\n\t}\n}\n\nPromptInput.define();\n\nexport default PromptInput;\n"]}
@@ -0,0 +1,2 @@
1
+ import type PromptInput from "./PromptInput.js";
2
+ export default function PromptInputTemplate(this: PromptInput): 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 Label from "@ui5/webcomponents/dist/Label.js";
3
+ import Input from "@ui5/webcomponents/dist/Input.js";
4
+ import Button from "@ui5/webcomponents/dist/Button.js";
5
+ import paperPlane from "@ui5/webcomponents-icons/dist/paper-plane.js";
6
+ export default function PromptInputTemplate() {
7
+ return (_jsxs("div", { class: "ai-prompt-input-wrapper", children: [this.label &&
8
+ _jsx(Label, { for: "input", children: this.label }), _jsxs("div", { class: "ai-prompt-input-form-wrapper", children: [_jsxs("div", { class: "ai-prompt-inner-input-wrapper", children: [_jsxs(Input, { id: "input", value: this.value, placeholder: this.placeholder, valueState: this.valueState, showClearIcon: this.showClearIcon, disabled: this.disabled, readonly: this.readonly, showSuggestions: this.showSuggestions, onKeyDown: this._onkeydown, onInput: this._onInnerInput, onChange: this._onInnerChange, onTypeAhead: this._onTypeAhead, children: [_jsx("slot", {}), this.valueStateMessage.length > 0 &&
9
+ _jsx("slot", { name: "valueStateMessage", slot: "valueStateMessage" })] }), this.showExceededText &&
10
+ _jsx(Label, { class: "ai-prompt-input-counter", children: this._exceededText })] }), _jsx(Button, { icon: paperPlane, disabled: this._submitButtonDisabled, class: "ai-prompt-input-button", design: "Emphasized", onClick: this._onButtonClick })] })] }));
11
+ }
12
+ //# sourceMappingURL=PromptInputTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromptInputTemplate.js","sourceRoot":"","sources":["../src/PromptInputTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,UAAU,MAAM,8CAA8C,CAAC;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ui5/webcomponents/dist/Input.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport paperPlane from \"@ui5/webcomponents-icons/dist/paper-plane.js\";\n\nexport default function PromptInputTemplate(this: PromptInput) {\n\treturn (\n\t\t<div class=\"ai-prompt-input-wrapper\">\n\t\t\t{this.label &&\n\t\t\t\t<Label for=\"input\">{this.label}</Label>\n\t\t\t}\n\n\t\t\t<div class=\"ai-prompt-input-form-wrapper\">\n\t\t\t\t<div class=\"ai-prompt-inner-input-wrapper\">\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"input\"\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tvalueState={this.valueState}\n\t\t\t\t\t\tshowClearIcon={this.showClearIcon}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\treadonly={this.readonly}\n\t\t\t\t\t\tshowSuggestions={this.showSuggestions}\n\t\t\t\t\t\tonKeyDown={this._onkeydown}\n\t\t\t\t\t\tonInput={this._onInnerInput}\n\t\t\t\t\t\tonChange={this._onInnerChange}\n\t\t\t\t\t\tonTypeAhead={this._onTypeAhead}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t\t{this.valueStateMessage.length > 0 &&\n\t\t\t\t\t\t\t<slot name=\"valueStateMessage\" slot=\"valueStateMessage\"></slot>\n\t\t\t\t\t\t}\n\t\t\t\t\t</Input>\n\n\t\t\t\t\t{this.showExceededText &&\n\t\t\t\t\t\t<Label class=\"ai-prompt-input-counter\">{this._exceededText}</Label>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t<Button\n\t\t\t\t\ticon={paperPlane}\n\t\t\t\t\tdisabled={this._submitButtonDisabled}\n\t\t\t\t\tclass=\"ai-prompt-input-button\"\n\t\t\t\t\tdesign=\"Emphasized\"\n\t\t\t\t\tonClick={this._onButtonClick}>\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>);\n}\n"]}
@@ -2,6 +2,8 @@
2
2
  import testAssets from "@ui5/webcomponents/dist/bundle.esm.js";
3
3
  // AI assets
4
4
  import "./Assets.js";
5
- import "./Button.js";
5
+ import Button from "./Button.js";
6
+ import ButtonState from "./ButtonState.js";
7
+ import PromptInput from "./PromptInput.js";
6
8
  export default testAssets;
7
9
  //# 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,OAAmB,aAAa,CAAC;AAEjC,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\";\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;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"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { setCustomElementsScopingSuffix } from "@ui5/webcomponents-base/dist/CustomElementsScope.js";
2
+ setCustomElementsScopingSuffix("demo");
3
+ //# sourceMappingURL=bundle.scoped.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.scoped.config.js","sourceRoot":"","sources":["../src/bundle.scoped.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,qDAAqD,CAAC;AAErG,8BAA8B,CAAC,MAAM,CAAC,CAAC","sourcesContent":["import { setCustomElementsScopingSuffix } from \"@ui5/webcomponents-base/dist/CustomElementsScope.js\";\n\nsetCustomElementsScopingSuffix(\"demo\");\n"]}
@@ -1 +1,2 @@
1
- export {};
1
+ import "./bundle.scoped.config.js";
2
+ import "./bundle.esm.js";
@@ -1,3 +1,3 @@
1
- import { setCustomElementsScopingSuffix } from "@ui5/webcomponents-base/dist/CustomElementsScope.js";
2
- setCustomElementsScopingSuffix("demo");
1
+ import "./bundle.scoped.config.js";
2
+ import "./bundle.esm.js";
3
3
  //# sourceMappingURL=bundle.scoped.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.scoped.esm.js","sourceRoot":"","sources":["../src/bundle.scoped.esm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,qDAAqD,CAAC;AAErG,8BAA8B,CAAC,MAAM,CAAC,CAAC","sourcesContent":["import { setCustomElementsScopingSuffix } from \"@ui5/webcomponents-base/dist/CustomElementsScope.js\";\n\nsetCustomElementsScopingSuffix(\"demo\");\n"]}
1
+ {"version":3,"file":"bundle.scoped.esm.js","sourceRoot":"","sources":["../src/bundle.scoped.esm.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,iBAAiB,CAAC","sourcesContent":["import \"./bundle.scoped.config.js\";\nimport \"./bundle.esm.js\";\n"]}
@@ -0,0 +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-8-0-rc-1_button_base_min_width)!important;max-width:var(--_ui5-v2-8-0-rc-1_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-8-0-rc-1_button_base_padding)}:host(.ui5-ai-button-fade-in[icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(button){max-width:var(--_ui5-v2-8-0-rc-1_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-8-0-rc-1_button_base_min_width);max-width:var(--_ui5-v2-8-0-rc-1_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
+ .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}