@ui5/webcomponents-ai 0.0.0-bf8366eb6 → 0.0.0-f42e7c18c

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 (165) hide show
  1. package/CHANGELOG.md +297 -0
  2. package/README.md +5 -7
  3. package/dist/Button.d.ts +82 -7
  4. package/dist/Button.js +183 -17
  5. package/dist/Button.js.map +1 -1
  6. package/dist/ButtonState.d.ts +60 -0
  7. package/dist/ButtonState.js +51 -0
  8. package/dist/ButtonState.js.map +1 -0
  9. package/dist/ButtonTemplate.d.ts +2 -0
  10. package/dist/ButtonTemplate.js +6 -0
  11. package/dist/ButtonTemplate.js.map +1 -0
  12. package/dist/PromptInput.d.ts +136 -7
  13. package/dist/PromptInput.js +199 -11
  14. package/dist/PromptInput.js.map +1 -1
  15. package/dist/PromptInputTemplate.d.ts +2 -0
  16. package/dist/PromptInputTemplate.js +12 -0
  17. package/dist/PromptInputTemplate.js.map +1 -0
  18. package/dist/bundle.esm.js +3 -2
  19. package/dist/bundle.esm.js.map +1 -1
  20. package/dist/bundle.scoped.config.d.ts +1 -0
  21. package/dist/bundle.scoped.config.js +3 -0
  22. package/dist/bundle.scoped.config.js.map +1 -0
  23. package/dist/bundle.scoped.esm.d.ts +2 -1
  24. package/dist/bundle.scoped.esm.js +2 -2
  25. package/dist/bundle.scoped.esm.js.map +1 -1
  26. package/dist/css/themes/Button.css +1 -0
  27. package/dist/css/themes/PromptInput.css +1 -0
  28. package/dist/custom-elements-internal.json +460 -28
  29. package/dist/custom-elements.json +396 -24
  30. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -0
  31. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -0
  32. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -0
  33. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -0
  34. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -0
  35. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -0
  36. package/dist/generated/assets/i18n/messagebundle_da.json +1 -0
  37. package/dist/generated/assets/i18n/messagebundle_de.json +1 -0
  38. package/dist/generated/assets/i18n/messagebundle_el.json +1 -0
  39. package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
  40. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -0
  41. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
  42. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
  43. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
  44. package/dist/generated/assets/i18n/messagebundle_es.json +1 -0
  45. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -0
  46. package/dist/generated/assets/i18n/messagebundle_et.json +1 -0
  47. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -0
  48. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -0
  49. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -0
  50. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -0
  51. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -0
  52. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -0
  53. package/dist/generated/assets/i18n/messagebundle_it.json +1 -0
  54. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -0
  55. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -0
  56. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -0
  57. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -0
  58. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -0
  59. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -0
  60. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -0
  61. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -0
  62. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -0
  63. package/dist/generated/assets/i18n/messagebundle_no.json +1 -0
  64. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -0
  65. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -0
  66. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -0
  67. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -0
  68. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -0
  69. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -0
  70. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -0
  71. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -0
  72. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -0
  73. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -0
  74. package/dist/generated/assets/i18n/messagebundle_th.json +1 -0
  75. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -0
  76. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -0
  77. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -0
  78. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -0
  79. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -0
  80. package/dist/generated/i18n/i18n-defaults.d.ts +4 -1
  81. package/dist/generated/i18n/i18n-defaults.js +3 -1
  82. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  83. package/dist/generated/json-imports/Themes-fetch.d.ts +1 -0
  84. package/dist/generated/json-imports/Themes-fetch.js +21 -0
  85. package/dist/generated/json-imports/Themes-fetch.js.map +1 -0
  86. package/dist/generated/json-imports/Themes.js.map +1 -1
  87. package/dist/generated/json-imports/i18n-fetch.d.ts +1 -0
  88. package/dist/generated/json-imports/i18n-fetch.js +118 -0
  89. package/dist/generated/json-imports/i18n-fetch.js.map +1 -0
  90. package/dist/generated/json-imports/i18n.d.ts +1 -0
  91. package/dist/generated/json-imports/i18n.js +117 -1
  92. package/dist/generated/json-imports/i18n.js.map +1 -1
  93. package/dist/generated/themes/Button.css.js +2 -1
  94. package/dist/generated/themes/Button.css.js.map +1 -1
  95. package/dist/generated/themes/PromptInput.css.d.ts +3 -0
  96. package/dist/generated/themes/PromptInput.css.js +9 -0
  97. package/dist/generated/themes/PromptInput.css.js.map +1 -0
  98. package/dist/tsconfig.tsbuildinfo +1 -0
  99. package/dist/vscode.html-custom-data.json +98 -3
  100. package/dist/web-types.json +233 -8
  101. package/package.json +7 -7
  102. package/src/ButtonTemplate.tsx +24 -0
  103. package/src/PromptInputTemplate.tsx +49 -0
  104. package/src/i18n/messagebundle.properties +6 -0
  105. package/src/i18n/messagebundle_ar.properties +4 -0
  106. package/src/i18n/messagebundle_bg.properties +4 -0
  107. package/src/i18n/messagebundle_ca.properties +4 -0
  108. package/src/i18n/messagebundle_cnr.properties +4 -0
  109. package/src/i18n/messagebundle_cs.properties +4 -0
  110. package/src/i18n/messagebundle_cy.properties +4 -0
  111. package/src/i18n/messagebundle_da.properties +4 -0
  112. package/src/i18n/messagebundle_de.properties +4 -0
  113. package/src/i18n/messagebundle_el.properties +4 -0
  114. package/src/i18n/messagebundle_en.properties +4 -0
  115. package/src/i18n/messagebundle_en_GB.properties +4 -0
  116. package/src/i18n/messagebundle_en_US_sappsd.properties +4 -0
  117. package/src/i18n/messagebundle_en_US_saprigi.properties +4 -0
  118. package/src/i18n/messagebundle_en_US_saptrc.properties +4 -0
  119. package/src/i18n/messagebundle_es.properties +4 -0
  120. package/src/i18n/messagebundle_es_MX.properties +4 -0
  121. package/src/i18n/messagebundle_et.properties +4 -0
  122. package/src/i18n/messagebundle_fi.properties +4 -0
  123. package/src/i18n/messagebundle_fr.properties +4 -0
  124. package/src/i18n/messagebundle_fr_CA.properties +4 -0
  125. package/src/i18n/messagebundle_hi.properties +4 -0
  126. package/src/i18n/messagebundle_hr.properties +4 -0
  127. package/src/i18n/messagebundle_hu.properties +4 -0
  128. package/src/i18n/messagebundle_id.properties +4 -0
  129. package/src/i18n/messagebundle_it.properties +4 -0
  130. package/src/i18n/messagebundle_iw.properties +4 -0
  131. package/src/i18n/messagebundle_ja.properties +4 -0
  132. package/src/i18n/messagebundle_kk.properties +4 -0
  133. package/src/i18n/messagebundle_ko.properties +4 -0
  134. package/src/i18n/messagebundle_lt.properties +4 -0
  135. package/src/i18n/messagebundle_lv.properties +4 -0
  136. package/src/i18n/messagebundle_mk.properties +4 -0
  137. package/src/i18n/messagebundle_ms.properties +4 -0
  138. package/src/i18n/messagebundle_nl.properties +4 -0
  139. package/src/i18n/messagebundle_no.properties +4 -0
  140. package/src/i18n/messagebundle_pl.properties +4 -0
  141. package/src/i18n/messagebundle_pt.properties +4 -0
  142. package/src/i18n/messagebundle_pt_PT.properties +4 -0
  143. package/src/i18n/messagebundle_ro.properties +4 -0
  144. package/src/i18n/messagebundle_ru.properties +4 -0
  145. package/src/i18n/messagebundle_sh.properties +4 -0
  146. package/src/i18n/messagebundle_sk.properties +4 -0
  147. package/src/i18n/messagebundle_sl.properties +4 -0
  148. package/src/i18n/messagebundle_sr.properties +4 -0
  149. package/src/i18n/messagebundle_sv.properties +4 -0
  150. package/src/i18n/messagebundle_th.properties +4 -0
  151. package/src/i18n/messagebundle_tr.properties +4 -0
  152. package/src/i18n/messagebundle_uk.properties +4 -0
  153. package/src/i18n/messagebundle_vi.properties +4 -0
  154. package/src/i18n/messagebundle_zh_CN.properties +4 -0
  155. package/src/i18n/messagebundle_zh_TW.properties +4 -0
  156. package/src/themes/Button.css +88 -0
  157. package/src/themes/PromptInput.css +30 -0
  158. package/tsconfig.json +36 -26
  159. package/dist/PromtInput.d.ts +0 -4
  160. package/dist/PromtInput.js +0 -28
  161. package/dist/PromtInput.js.map +0 -1
  162. package/dist/generated/templates/ButtonTemplate.lit.d.ts +0 -4
  163. package/dist/generated/templates/ButtonTemplate.lit.js +0 -5
  164. package/dist/generated/templates/ButtonTemplate.lit.js.map +0 -1
  165. package/src/Button.hbs +0 -3
@@ -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;AACjC,OAAwB,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 PromptInput from \"./PromptInput.js\";\n\nexport default testAssets;\n"]}
1
+ {"version":3,"file":"bundle.esm.js","sourceRoot":"","sources":["../src/bundle.esm.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,UAAU,MAAM,uCAAuC,CAAC;AAE/D,YAAY;AACZ,OAAO,aAAa,CAAC;AAErB,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,WAAW,MAAM,kBAAkB,CAAC;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-button]:not(.ui5-ai-button-hidden){width:auto;position:relative;transition:width .18s cubic-bezier(.67,1,.95,1.3) .12s}:host ::part(icon){opacity:1;transform:translateY(0)}:host(:not([fade-out]):not([fade-mid]):not([fade-in])) .ui5-ai-button-text,:host(:not([fade-out]):not([fade-mid]):not([fade-in])) ::part(endIcon){opacity:1;transform:translateY(0)}:host([fade-out]:not([fade-mid])) ::part(icon){opacity:0;transform:translateY(-1rem);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host([fade-out]:not([fade-mid])) .ui5-ai-button-text,:host([fade-out]:not([fade-mid])) ::part(endIcon){opacity:0;transform:translateY(-1rem);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host([fade-mid]) ::part(icon){opacity:0;transform:translateY(1rem)}:host([fade-mid]) .ui5-ai-button-text,:host([fade-mid]) ::part(endIcon){opacity:0;transform:translateY(1rem);transition:none}:host([fade-in]) ::part(icon){opacity:1;transform:translateY(0);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host([fade-in]) .ui5-ai-button-text,:host([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}
@@ -14,22 +14,88 @@
14
14
  "declarations": [
15
15
  {
16
16
  "kind": "class",
17
- "description": "### Overview\n\nThe `ui5-ai-button` component represents a button used in AI-related scenarios.\nIt enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing\ncertain keyboard keys, such as Enter.\n\n### Usage\n\nFor the `ui5-ai-button` UI, you can define one or more states of the button by placing `ai-button-state` components in its default slot.\nEach state have a key that identifies it and can have text, icon, end icon, next state and hasPopup type defined (in any combination) depending on the state purpose.\n\nYou can choose from a set of predefined designs that offer different styling to correspond to the triggered action.\n\nYou can set the `ui5-ai-button` as enabled or disabled. An enabled `ui5-ai-button` can be pressed by clicking or tapping it. On press `ui5-ai-button` changes its state to the next one (if defined).\nthe mouse cursor. A disabled `ui5-ai-button` appears inactive and cannot be pressed.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Button.js\";`",
17
+ "description": "### Overview\n\nThe `ui5-ai-button` component represents a button used in AI-related scenarios.\nIt enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing\ncertain keyboard keys, such as Enter.\n\n### Usage\n\nFor the `ui5-ai-button` UI, you can define one or more states of the button by placing `ai-button-state` components in its default slot.\nEach state have a name that identifies it and can have text, icon and end icon defined (in any combination) depending on the state purpose.\n\nYou can choose from a set of predefined designs (the same as for regular `ui5-button` component) that allow different styling to correspond to the triggered action.\n\n`ui5-ai-button` can be activated by clicking or tapping it. The state can be changed in `click` event handler.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Button.js\";`",
18
18
  "name": "Button",
19
+ "slots": [
20
+ {
21
+ "name": "default",
22
+ "description": "Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use `ui5-ai-button-state` components in order to preserve the intended design.",
23
+ "_ui5propertyName": "states",
24
+ "_ui5type": {
25
+ "text": "Array<ButtonState>",
26
+ "references": [
27
+ {
28
+ "name": "ButtonState",
29
+ "package": "@ui5/webcomponents-ai",
30
+ "module": "dist/ButtonState.js"
31
+ }
32
+ ]
33
+ },
34
+ "_ui5privacy": "public"
35
+ }
36
+ ],
19
37
  "members": [
38
+ {
39
+ "kind": "field",
40
+ "name": "design",
41
+ "type": {
42
+ "text": "ButtonDesign | undefined",
43
+ "references": [
44
+ {
45
+ "name": "ButtonDesign",
46
+ "package": "@ui5/webcomponents",
47
+ "module": "@ui5/webcomponents"
48
+ }
49
+ ]
50
+ },
51
+ "default": "\"Default\"",
52
+ "description": "Defines the component design.",
53
+ "privacy": "public"
54
+ },
20
55
  {
21
56
  "kind": "field",
22
57
  "name": "disabled",
23
58
  "type": {
24
59
  "text": "boolean"
25
60
  },
26
- "description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
27
61
  "default": "false",
28
- "privacy": "public",
29
- "_ui5validator": "Boolean"
62
+ "description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
63
+ "privacy": "public"
64
+ },
65
+ {
66
+ "kind": "field",
67
+ "name": "state",
68
+ "type": {
69
+ "text": "string | undefined"
70
+ },
71
+ "description": "Defines the current state of the component.",
72
+ "default": "undefined",
73
+ "privacy": "public"
74
+ }
75
+ ],
76
+ "events": [
77
+ {
78
+ "name": "click",
79
+ "_ui5privacy": "public",
80
+ "type": {
81
+ "text": "CustomEvent"
82
+ },
83
+ "description": "Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key.",
84
+ "_ui5Cancelable": false,
85
+ "_ui5allowPreventDefault": false,
86
+ "_ui5Bubbles": true
30
87
  }
31
88
  ],
32
89
  "attributes": [
90
+ {
91
+ "description": "Defines the component design.",
92
+ "name": "design",
93
+ "default": "\"Default\"",
94
+ "fieldName": "design",
95
+ "type": {
96
+ "text": "\"Default\" | \"Positive\" | \"Negative\" | \"Transparent\" | \"Emphasized\" | \"Attention\" | undefined"
97
+ }
98
+ },
33
99
  {
34
100
  "description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
35
101
  "name": "disabled",
@@ -38,16 +104,26 @@
38
104
  "type": {
39
105
  "text": "boolean"
40
106
  }
107
+ },
108
+ {
109
+ "description": "Defines the current state of the component.",
110
+ "name": "state",
111
+ "default": "undefined",
112
+ "fieldName": "state",
113
+ "type": {
114
+ "text": "string | undefined"
115
+ }
41
116
  }
42
117
  ],
43
118
  "superclass": {
44
119
  "name": "UI5Element",
45
120
  "package": "@ui5/webcomponents-base",
46
- "module": "dist/UI5Element.js"
121
+ "module": "@ui5/webcomponents-base"
47
122
  },
48
123
  "tagName": "ui5-ai-button",
49
124
  "customElement": true,
50
- "_ui5since": "2.0",
125
+ "_ui5experimental": "The Button and ButtonState web components are availabe since 2.0 under an experimental flag and their API and behaviour are subject to change.",
126
+ "_ui5since": "2.0.0",
51
127
  "_ui5privacy": "public"
52
128
  }
53
129
  ],
@@ -70,14 +146,161 @@
70
146
  }
71
147
  ]
72
148
  },
149
+ {
150
+ "kind": "javascript-module",
151
+ "path": "dist/ButtonState.js",
152
+ "declarations": [
153
+ {
154
+ "kind": "class",
155
+ "description": "### Overview\n\n`ui5-ai-button-state` is the item to use for defining states of `ui5-ai-button` components.\n\n### Usage\n\n`ui5-si-button-state` is an abstract element, representing a state of `ui5-ai-button`. It is meant to be used in the `states` slot\nof `ui5-ai-button` and should be used as standalone component.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/AiButtonState.js\";`",
156
+ "name": "ButtonState",
157
+ "members": [
158
+ {
159
+ "kind": "field",
160
+ "name": "name",
161
+ "type": {
162
+ "text": "string | undefined"
163
+ },
164
+ "description": "Defines the name of the button state.",
165
+ "default": "undefined",
166
+ "privacy": "public"
167
+ },
168
+ {
169
+ "kind": "field",
170
+ "name": "text",
171
+ "type": {
172
+ "text": "string | undefined"
173
+ },
174
+ "description": "Defines the text of the button in this state.",
175
+ "default": "undefined",
176
+ "privacy": "public"
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "icon",
181
+ "type": {
182
+ "text": "string | undefined"
183
+ },
184
+ "description": "Defines the icon to be displayed as graphical element within the component before the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
185
+ "default": "undefined",
186
+ "privacy": "public"
187
+ },
188
+ {
189
+ "kind": "field",
190
+ "name": "endIcon",
191
+ "type": {
192
+ "text": "string | undefined"
193
+ },
194
+ "description": "Defines the icon to be displayed as graphical element within the component after the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
195
+ "default": "undefined",
196
+ "privacy": "public"
197
+ }
198
+ ],
199
+ "attributes": [
200
+ {
201
+ "description": "Defines the name of the button state.",
202
+ "name": "name",
203
+ "default": "undefined",
204
+ "fieldName": "name",
205
+ "type": {
206
+ "text": "string | undefined"
207
+ }
208
+ },
209
+ {
210
+ "description": "Defines the text of the button in this state.",
211
+ "name": "text",
212
+ "default": "undefined",
213
+ "fieldName": "text",
214
+ "type": {
215
+ "text": "string | undefined"
216
+ }
217
+ },
218
+ {
219
+ "description": "Defines the icon to be displayed as graphical element within the component before the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
220
+ "name": "icon",
221
+ "default": "undefined",
222
+ "fieldName": "icon",
223
+ "type": {
224
+ "text": "string | undefined"
225
+ }
226
+ },
227
+ {
228
+ "description": "Defines the icon to be displayed as graphical element within the component after the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
229
+ "name": "end-icon",
230
+ "default": "undefined",
231
+ "fieldName": "endIcon",
232
+ "type": {
233
+ "text": "string | undefined"
234
+ }
235
+ }
236
+ ],
237
+ "superclass": {
238
+ "name": "UI5Element",
239
+ "package": "@ui5/webcomponents-base",
240
+ "module": "@ui5/webcomponents-base"
241
+ },
242
+ "tagName": "ui5-ai-button-state",
243
+ "customElement": true,
244
+ "_ui5experimental": "The Button and ButtonState web components are availabe since 2.0 under an experimental flag and their API and behaviour are subject to change.",
245
+ "_ui5since": "2.0.0",
246
+ "_ui5privacy": "public",
247
+ "_ui5abstract": true
248
+ }
249
+ ],
250
+ "exports": [
251
+ {
252
+ "kind": "js",
253
+ "name": "default",
254
+ "declaration": {
255
+ "name": "ButtonState",
256
+ "module": "dist/ButtonState.js"
257
+ }
258
+ },
259
+ {
260
+ "kind": "custom-element-definition",
261
+ "name": "ui5-ai-button-state",
262
+ "declaration": {
263
+ "name": "ButtonState",
264
+ "module": "dist/ButtonState.js"
265
+ }
266
+ }
267
+ ]
268
+ },
73
269
  {
74
270
  "kind": "javascript-module",
75
271
  "path": "dist/PromptInput.js",
76
272
  "declarations": [
77
273
  {
78
274
  "kind": "class",
79
- "description": "### Overview\n\nThe PromptInput is an AI component.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/PromptInput.js\";`",
275
+ "description": "### Overview\n\nThe `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",
80
276
  "name": "PromptInput",
277
+ "slots": [
278
+ {
279
+ "name": "default",
280
+ "description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Importing the Input Suggestions Support feature:\n\n`import \"@ui5/webcomponents/dist/features/InputSuggestions.js\";`\n\nautomatically imports the `<ui5-suggestion-item>` and `<ui5-suggestion-item-group>` for your convenience.",
281
+ "_ui5propertyName": "suggestionItems",
282
+ "_ui5type": {
283
+ "text": "Array<IInputSuggestionItem>",
284
+ "references": [
285
+ {
286
+ "name": "IInputSuggestionItem",
287
+ "package": "@ui5/webcomponents",
288
+ "module": "@ui5/webcomponents"
289
+ }
290
+ ]
291
+ },
292
+ "_ui5privacy": "public"
293
+ },
294
+ {
295
+ "name": "valueStateMessage",
296
+ "description": "Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n\n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed,\nwhen the component is in `Information`, `Critical` or `Negative` value state.",
297
+ "_ui5since": "2.0.0",
298
+ "_ui5type": {
299
+ "text": "Array<HTMLElement>"
300
+ },
301
+ "_ui5privacy": "public"
302
+ }
303
+ ],
81
304
  "members": [
82
305
  {
83
306
  "kind": "field",
@@ -85,31 +308,255 @@
85
308
  "type": {
86
309
  "text": "string"
87
310
  },
88
- "description": "Defines the value of the PromptInput.",
89
- "privacy": "public",
90
311
  "default": "\"\"",
91
- "_ui5validator": "String"
312
+ "description": "Defines the value of the component.",
313
+ "privacy": "public",
314
+ "_ui5since": "2.0.0"
315
+ },
316
+ {
317
+ "kind": "field",
318
+ "name": "placeholder",
319
+ "type": {
320
+ "text": "string | undefined"
321
+ },
322
+ "description": "Defines a short hint intended to aid the user with data entry when the\ncomponent has no value.",
323
+ "default": "undefined",
324
+ "privacy": "public",
325
+ "_ui5since": "2.0.0"
326
+ },
327
+ {
328
+ "kind": "field",
329
+ "name": "label",
330
+ "type": {
331
+ "text": "string | undefined"
332
+ },
333
+ "description": "Defines the label of the input field.",
334
+ "default": "undefined",
335
+ "privacy": "public",
336
+ "_ui5since": "2.0.0"
337
+ },
338
+ {
339
+ "kind": "field",
340
+ "name": "showClearIcon",
341
+ "type": {
342
+ "text": "boolean"
343
+ },
344
+ "default": "false",
345
+ "description": "Defines whether the clear icon of the input will be shown.",
346
+ "privacy": "public",
347
+ "_ui5since": "2.0.0"
348
+ },
349
+ {
350
+ "kind": "field",
351
+ "name": "showExceededText",
352
+ "type": {
353
+ "text": "boolean"
354
+ },
355
+ "default": "false",
356
+ "description": "Determines whether the characters exceeding the maximum allowed character count are visible\nin the component.\n\nIf set to `false`, the user is not allowed to enter more characters than what is set in the\n`maxlength` property.\nIf set to `true` the characters exceeding the `maxlength` value are selected on\npaste and the counter below the component displays their number.",
357
+ "privacy": "public",
358
+ "_ui5since": "2.0.0"
359
+ },
360
+ {
361
+ "kind": "field",
362
+ "name": "disabled",
363
+ "type": {
364
+ "text": "boolean"
365
+ },
366
+ "default": "false",
367
+ "description": "Defines whether the component is in disabled state.\n\n**Note:** A disabled component is completely noninteractive.",
368
+ "privacy": "public",
369
+ "_ui5since": "2.0.0"
370
+ },
371
+ {
372
+ "kind": "field",
373
+ "name": "readonly",
374
+ "type": {
375
+ "text": "boolean"
376
+ },
377
+ "default": "false",
378
+ "description": "Defines whether the component is read-only.\n\n**Note:** A read-only component is not editable,\nbut still provides visual feedback upon user interaction.",
379
+ "privacy": "public",
380
+ "_ui5since": "2.0.0"
381
+ },
382
+ {
383
+ "kind": "field",
384
+ "name": "maxlength",
385
+ "type": {
386
+ "text": "number | undefined"
387
+ },
388
+ "description": "Sets the maximum number of characters available in the input field.",
389
+ "default": "undefined",
390
+ "privacy": "public",
391
+ "_ui5since": "2.0.0"
392
+ },
393
+ {
394
+ "kind": "field",
395
+ "name": "valueState",
396
+ "type": {
397
+ "text": "ValueState",
398
+ "references": [
399
+ {
400
+ "name": "ValueState",
401
+ "package": "@ui5/webcomponents-base",
402
+ "module": "@ui5/webcomponents-base"
403
+ }
404
+ ]
405
+ },
406
+ "default": "\"None\"",
407
+ "description": "Defines the value state of the component.",
408
+ "privacy": "public",
409
+ "_ui5since": "2.0.0"
410
+ },
411
+ {
412
+ "kind": "field",
413
+ "name": "showSuggestions",
414
+ "type": {
415
+ "text": "boolean"
416
+ },
417
+ "default": "false",
418
+ "description": "Defines whether the component should show suggestions, if such are present.\n\n**Note:** You need to import the `InputSuggestions` module\nfrom `\"@ui5/webcomponents/dist/features/InputSuggestions.js\"` to enable this functionality.",
419
+ "privacy": "public"
420
+ }
421
+ ],
422
+ "events": [
423
+ {
424
+ "name": "submit",
425
+ "_ui5privacy": "public",
426
+ "type": {
427
+ "text": "CustomEvent"
428
+ },
429
+ "description": "Fired when the input operation has finished by pressing Enter\nor AI button is clicked.",
430
+ "_ui5Cancelable": false,
431
+ "_ui5allowPreventDefault": false,
432
+ "_ui5Bubbles": true,
433
+ "_ui5since": "2.0.0"
434
+ },
435
+ {
436
+ "name": "input",
437
+ "_ui5privacy": "public",
438
+ "type": {
439
+ "text": "CustomEvent"
440
+ },
441
+ "description": "Fired when the value of the component changes at each keystroke,\nand when a suggestion item has been selected.",
442
+ "_ui5Cancelable": false,
443
+ "_ui5allowPreventDefault": false,
444
+ "_ui5Bubbles": true,
445
+ "_ui5since": "2.0.0"
446
+ },
447
+ {
448
+ "name": "change",
449
+ "_ui5privacy": "public",
450
+ "type": {
451
+ "text": "CustomEvent"
452
+ },
453
+ "description": "Fired when the input operation has finished by pressing Enter\nor on focusout.",
454
+ "_ui5Cancelable": false,
455
+ "_ui5allowPreventDefault": false,
456
+ "_ui5Bubbles": true,
457
+ "_ui5since": "2.0.0"
92
458
  }
93
459
  ],
94
460
  "attributes": [
95
461
  {
96
- "description": "Defines the value of the PromptInput.",
462
+ "description": "Defines the value of the component.",
97
463
  "name": "value",
98
464
  "default": "\"\"",
99
465
  "fieldName": "value",
100
466
  "type": {
101
467
  "text": "string"
102
468
  }
469
+ },
470
+ {
471
+ "description": "Defines a short hint intended to aid the user with data entry when the\ncomponent has no value.",
472
+ "name": "placeholder",
473
+ "default": "undefined",
474
+ "fieldName": "placeholder",
475
+ "type": {
476
+ "text": "string | undefined"
477
+ }
478
+ },
479
+ {
480
+ "description": "Defines the label of the input field.",
481
+ "name": "label",
482
+ "default": "undefined",
483
+ "fieldName": "label",
484
+ "type": {
485
+ "text": "string | undefined"
486
+ }
487
+ },
488
+ {
489
+ "description": "Defines whether the clear icon of the input will be shown.",
490
+ "name": "show-clear-icon",
491
+ "default": "false",
492
+ "fieldName": "showClearIcon",
493
+ "type": {
494
+ "text": "boolean"
495
+ }
496
+ },
497
+ {
498
+ "description": "Determines whether the characters exceeding the maximum allowed character count are visible\nin the component.\n\nIf set to `false`, the user is not allowed to enter more characters than what is set in the\n`maxlength` property.\nIf set to `true` the characters exceeding the `maxlength` value are selected on\npaste and the counter below the component displays their number.",
499
+ "name": "show-exceeded-text",
500
+ "default": "false",
501
+ "fieldName": "showExceededText",
502
+ "type": {
503
+ "text": "boolean"
504
+ }
505
+ },
506
+ {
507
+ "description": "Defines whether the component is in disabled state.\n\n**Note:** A disabled component is completely noninteractive.",
508
+ "name": "disabled",
509
+ "default": "false",
510
+ "fieldName": "disabled",
511
+ "type": {
512
+ "text": "boolean"
513
+ }
514
+ },
515
+ {
516
+ "description": "Defines whether the component is read-only.\n\n**Note:** A read-only component is not editable,\nbut still provides visual feedback upon user interaction.",
517
+ "name": "readonly",
518
+ "default": "false",
519
+ "fieldName": "readonly",
520
+ "type": {
521
+ "text": "boolean"
522
+ }
523
+ },
524
+ {
525
+ "description": "Sets the maximum number of characters available in the input field.",
526
+ "name": "maxlength",
527
+ "default": "undefined",
528
+ "fieldName": "maxlength",
529
+ "type": {
530
+ "text": "number | undefined"
531
+ }
532
+ },
533
+ {
534
+ "description": "Defines the value state of the component.",
535
+ "name": "value-state",
536
+ "default": "\"None\"",
537
+ "fieldName": "valueState",
538
+ "type": {
539
+ "text": "\"Positive\" | \"Negative\" | \"None\" | \"Critical\" | \"Information\""
540
+ }
541
+ },
542
+ {
543
+ "description": "Defines whether the component should show suggestions, if such are present.\n\n**Note:** You need to import the `InputSuggestions` module\nfrom `\"@ui5/webcomponents/dist/features/InputSuggestions.js\"` to enable this functionality.",
544
+ "name": "show-suggestions",
545
+ "default": "false",
546
+ "fieldName": "showSuggestions",
547
+ "type": {
548
+ "text": "boolean"
549
+ }
103
550
  }
104
551
  ],
105
552
  "superclass": {
106
553
  "name": "UI5Element",
107
554
  "package": "@ui5/webcomponents-base",
108
- "module": "dist/UI5Element.js"
555
+ "module": "@ui5/webcomponents-base"
109
556
  },
110
557
  "tagName": "ui5-ai-prompt-input",
111
558
  "customElement": true,
112
- "_ui5since": "2.0",
559
+ "_ui5experimental": "The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.",
113
560
  "_ui5privacy": "public"
114
561
  }
115
562
  ],
@@ -131,21 +578,6 @@
131
578
  }
132
579
  }
133
580
  ]
134
- },
135
- {
136
- "kind": "javascript-module",
137
- "path": "dist/PromtInput.js",
138
- "declarations": [],
139
- "exports": [
140
- {
141
- "kind": "js",
142
- "name": "default",
143
- "declaration": {
144
- "name": "PromptInput",
145
- "module": "dist/PromtInput.js"
146
- }
147
- }
148
- ]
149
581
  }
150
582
  ]
151
583
  }