@ui5/webcomponents-ai 0.0.0-b804b8982 → 0.0.0-c143e338b
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.
- package/CHANGELOG.md +416 -0
- package/LICENSE.txt +201 -0
- package/README.md +10 -8
- package/dist/.tsbuildinfo +1 -1
- package/dist/Assets-fetch.d.ts +3 -0
- package/dist/Assets-fetch.js +6 -0
- package/dist/Assets-fetch.js.map +1 -0
- package/dist/Assets-node.d.ts +14 -0
- package/dist/Assets-node.js +17 -0
- package/dist/Assets-node.js.map +1 -0
- package/dist/Button.d.ts +37 -0
- package/dist/Button.js +56 -2
- package/dist/Button.js.map +1 -1
- package/dist/ButtonTemplate.js +1 -1
- package/dist/ButtonTemplate.js.map +1 -1
- package/dist/Input.d.ts +143 -0
- package/dist/Input.js +288 -0
- package/dist/Input.js.map +1 -0
- package/dist/InputTemplate.d.ts +10 -0
- package/dist/InputTemplate.js +28 -0
- package/dist/InputTemplate.js.map +1 -0
- package/dist/TextArea.d.ts +118 -0
- package/dist/TextArea.js +230 -0
- package/dist/TextArea.js.map +1 -0
- package/dist/TextAreaTemplate.d.ts +2 -0
- package/dist/TextAreaTemplate.js +13 -0
- package/dist/TextAreaTemplate.js.map +1 -0
- package/dist/ToolbarLabel.d.ts +39 -0
- package/dist/ToolbarLabel.js +67 -0
- package/dist/ToolbarLabel.js.map +1 -0
- package/dist/ToolbarLabelTemplate.d.ts +2 -0
- package/dist/ToolbarLabelTemplate.js +5 -0
- package/dist/ToolbarLabelTemplate.js.map +1 -0
- package/dist/Versioning.d.ts +95 -0
- package/dist/Versioning.js +187 -0
- package/dist/Versioning.js.map +1 -0
- package/dist/VersioningTemplate.d.ts +4 -0
- package/dist/VersioningTemplate.js +9 -0
- package/dist/VersioningTemplate.js.map +1 -0
- package/dist/WritingAssistant.d.ts +100 -0
- package/dist/WritingAssistant.js +197 -0
- package/dist/WritingAssistant.js.map +1 -0
- package/dist/WritingAssistantTemplate.d.ts +2 -0
- package/dist/WritingAssistantTemplate.js +12 -0
- package/dist/WritingAssistantTemplate.js.map +1 -0
- package/dist/bundle.esm.js +2 -0
- package/dist/bundle.esm.js.map +1 -1
- package/dist/css/themes/Button.css +1 -1
- package/dist/css/themes/Input.css +1 -0
- package/dist/css/themes/PromptInput.css +1 -1
- package/dist/css/themes/TextArea.css +1 -0
- package/dist/css/themes/Versioning.css +1 -0
- package/dist/css/themes/WritingAssistant.css +1 -0
- package/dist/custom-elements-internal.json +427 -0
- package/dist/custom-elements.json +368 -0
- package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_id.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
- package/dist/generated/i18n/i18n-defaults.d.ts +15 -1
- package/dist/generated/i18n/i18n-defaults.js +15 -1
- package/dist/generated/i18n/i18n-defaults.js.map +1 -1
- package/dist/generated/json-imports/Themes-fetch.js +1 -1
- package/dist/generated/json-imports/Themes-fetch.js.map +1 -1
- package/dist/generated/json-imports/Themes-node.d.ts +1 -0
- package/dist/generated/json-imports/Themes-node.js +21 -0
- package/dist/generated/json-imports/Themes-node.js.map +1 -0
- package/dist/generated/json-imports/Themes.js +1 -1
- package/dist/generated/json-imports/Themes.js.map +1 -1
- package/dist/generated/json-imports/i18n-fetch.js +3 -1
- package/dist/generated/json-imports/i18n-fetch.js.map +1 -1
- package/dist/generated/json-imports/i18n-node.d.ts +1 -0
- package/dist/generated/json-imports/i18n-node.js +120 -0
- package/dist/generated/json-imports/i18n-node.js.map +1 -0
- package/dist/generated/json-imports/i18n.js +3 -1
- package/dist/generated/json-imports/i18n.js.map +1 -1
- package/dist/generated/themes/Button.css.d.ts +1 -1
- package/dist/generated/themes/Button.css.js +3 -3
- package/dist/generated/themes/Button.css.js.map +1 -1
- package/dist/generated/themes/Input.css.d.ts +2 -0
- package/dist/generated/themes/Input.css.js +8 -0
- package/dist/generated/themes/Input.css.js.map +1 -0
- package/dist/generated/themes/PromptInput.css.d.ts +1 -1
- package/dist/generated/themes/PromptInput.css.js +3 -3
- package/dist/generated/themes/PromptInput.css.js.map +1 -1
- package/dist/generated/themes/TextArea.css.d.ts +2 -0
- package/dist/generated/themes/TextArea.css.js +8 -0
- package/dist/generated/themes/TextArea.css.js.map +1 -0
- package/dist/generated/themes/Versioning.css.d.ts +2 -0
- package/dist/generated/themes/Versioning.css.js +8 -0
- package/dist/generated/themes/Versioning.css.js.map +1 -0
- package/dist/generated/themes/WritingAssistant.css.d.ts +2 -0
- package/dist/generated/themes/WritingAssistant.css.js +8 -0
- package/dist/generated/themes/WritingAssistant.css.js.map +1 -0
- package/dist/vscode.html-custom-data.json +54 -0
- package/dist/web-types.json +174 -1
- package/package-scripts.cjs +3 -0
- package/package.json +24 -21
- package/src/ButtonTemplate.tsx +1 -0
- package/src/InputTemplate.tsx +197 -0
- package/src/TextArea.css +45 -0
- package/src/TextAreaTemplate.tsx +90 -0
- package/src/ToolbarLabelTemplate.tsx +9 -0
- package/src/VersioningTemplate.tsx +34 -0
- package/src/WritingAssistantTemplate.tsx +49 -0
- package/src/i18n/messagebundle.properties +43 -1
- package/src/i18n/messagebundle_ar.properties +20 -0
- package/src/i18n/messagebundle_bg.properties +20 -0
- package/src/i18n/messagebundle_ca.properties +20 -0
- package/src/i18n/messagebundle_cnr.properties +20 -0
- package/src/i18n/messagebundle_cs.properties +20 -0
- package/src/i18n/messagebundle_cy.properties +20 -0
- package/src/i18n/messagebundle_da.properties +20 -0
- package/src/i18n/messagebundle_de.properties +20 -0
- package/src/i18n/messagebundle_el.properties +20 -0
- package/src/i18n/messagebundle_en.properties +20 -0
- package/src/i18n/messagebundle_en_GB.properties +20 -0
- package/src/i18n/messagebundle_en_US_sappsd.properties +20 -0
- package/src/i18n/messagebundle_en_US_saprigi.properties +20 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +20 -0
- package/src/i18n/messagebundle_es.properties +20 -0
- package/src/i18n/messagebundle_es_MX.properties +21 -1
- package/src/i18n/messagebundle_et.properties +20 -0
- package/src/i18n/messagebundle_fi.properties +20 -0
- package/src/i18n/messagebundle_fr.properties +20 -0
- package/src/i18n/messagebundle_fr_CA.properties +20 -0
- package/src/i18n/messagebundle_hi.properties +20 -0
- package/src/i18n/messagebundle_hr.properties +22 -2
- package/src/i18n/messagebundle_hu.properties +20 -0
- package/src/i18n/messagebundle_id.properties +20 -0
- package/src/i18n/messagebundle_it.properties +20 -0
- package/src/i18n/messagebundle_iw.properties +20 -0
- package/src/i18n/messagebundle_ja.properties +20 -0
- package/src/i18n/messagebundle_kk.properties +20 -0
- package/src/i18n/messagebundle_ko.properties +20 -0
- package/src/i18n/messagebundle_lt.properties +20 -0
- package/src/i18n/messagebundle_lv.properties +20 -0
- package/src/i18n/messagebundle_mk.properties +20 -0
- package/src/i18n/messagebundle_ms.properties +20 -0
- package/src/i18n/messagebundle_nl.properties +20 -0
- package/src/i18n/messagebundle_no.properties +20 -0
- package/src/i18n/messagebundle_pl.properties +20 -0
- package/src/i18n/messagebundle_pt.properties +20 -0
- package/src/i18n/messagebundle_pt_PT.properties +20 -0
- package/src/i18n/messagebundle_ro.properties +20 -0
- package/src/i18n/messagebundle_ru.properties +20 -0
- package/src/i18n/messagebundle_sh.properties +20 -0
- package/src/i18n/messagebundle_sk.properties +20 -0
- package/src/i18n/messagebundle_sl.properties +20 -0
- package/src/i18n/messagebundle_sr.properties +20 -0
- package/src/i18n/messagebundle_sv.properties +20 -0
- package/src/i18n/messagebundle_th.properties +22 -2
- package/src/i18n/messagebundle_tr.properties +20 -0
- package/src/i18n/messagebundle_uk.properties +20 -0
- package/src/i18n/messagebundle_vi.properties +20 -0
- package/src/i18n/messagebundle_zh_CN.properties +20 -0
- package/src/i18n/messagebundle_zh_TW.properties +20 -0
- package/src/themes/Input.css +83 -0
- package/src/themes/PromptInput.css +5 -1
- package/src/themes/TextArea.css +45 -0
- package/src/themes/Versioning.css +20 -0
- package/src/themes/WritingAssistant.css +45 -0
- package/tsconfig.json +6 -0
- package/cypress/specs/Button.cy.tsx +0 -14
- package/cypress/support/commands.ts +0 -40
- package/cypress/support/component-index.html +0 -12
- package/cypress/support/component.ts +0 -36
- package/cypress/tsconfig.json +0 -43
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "dist/Assets-fetch.js",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": []
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"kind": "javascript-module",
|
|
13
|
+
"path": "dist/Assets-node.js",
|
|
14
|
+
"declarations": [],
|
|
15
|
+
"exports": []
|
|
16
|
+
},
|
|
5
17
|
{
|
|
6
18
|
"kind": "javascript-module",
|
|
7
19
|
"path": "dist/Assets.js",
|
|
@@ -83,6 +95,24 @@
|
|
|
83
95
|
"privacy": "public",
|
|
84
96
|
"_ui5since": "2.6.0",
|
|
85
97
|
"_ui5noAttribute": true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"kind": "field",
|
|
101
|
+
"name": "accessibilityAttributes",
|
|
102
|
+
"type": {
|
|
103
|
+
"text": "AIButtonAccessibilityAttributes",
|
|
104
|
+
"references": [
|
|
105
|
+
{
|
|
106
|
+
"name": "AIButtonAccessibilityAttributes",
|
|
107
|
+
"package": "@ui5/webcomponents-ai",
|
|
108
|
+
"module": "dist/Button.js"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"default": "{}",
|
|
113
|
+
"description": "Defines the additional accessibility attributes that will be applied to the component.\n\nThis property allows for fine-tuned control of ARIA attributes for screen reader support.\nIt accepts an object with the following optional fields:\n\n- **root**: Accessibility attributes that will be applied to the root element.\n - **hasPopup**: Indicates the availability and type of interactive popup element (such as a menu or dialog).\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **roleDescription**: Defines a human-readable description for the button's role.\n Accepts any string value.\n - **title**: Specifies a tooltip or description for screen readers.\n Accepts any string value.\n- **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or focus the button.\n\n- **arrowButton**: Accessibility attributes that will be applied to the arrow (split) button element.\n - **hasPopup**: Indicates the type of popup triggered by the arrow button.\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **expanded**: Indicates whether the popup controlled by the arrow button is currently expanded.\n Accepts boolean values: `true` or `false`.",
|
|
114
|
+
"privacy": "public",
|
|
115
|
+
"_ui5since": "2.6.0"
|
|
86
116
|
}
|
|
87
117
|
],
|
|
88
118
|
"events": [
|
|
@@ -145,6 +175,15 @@
|
|
|
145
175
|
"type": {
|
|
146
176
|
"text": "boolean"
|
|
147
177
|
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"description": "Defines the additional accessibility attributes that will be applied to the component.\n\nThis property allows for fine-tuned control of ARIA attributes for screen reader support.\nIt accepts an object with the following optional fields:\n\n- **root**: Accessibility attributes that will be applied to the root element.\n - **hasPopup**: Indicates the availability and type of interactive popup element (such as a menu or dialog).\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **roleDescription**: Defines a human-readable description for the button's role.\n Accepts any string value.\n - **title**: Specifies a tooltip or description for screen readers.\n Accepts any string value.\n- **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or focus the button.\n\n- **arrowButton**: Accessibility attributes that will be applied to the arrow (split) button element.\n - **hasPopup**: Indicates the type of popup triggered by the arrow button.\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **expanded**: Indicates whether the popup controlled by the arrow button is currently expanded.\n Accepts boolean values: `true` or `false`.",
|
|
181
|
+
"name": "accessibility-attributes",
|
|
182
|
+
"default": "{}",
|
|
183
|
+
"fieldName": "accessibilityAttributes",
|
|
184
|
+
"type": {
|
|
185
|
+
"text": "AIButtonAccessibilityAttributes"
|
|
186
|
+
}
|
|
148
187
|
}
|
|
149
188
|
],
|
|
150
189
|
"superclass": {
|
|
@@ -318,6 +357,179 @@
|
|
|
318
357
|
}
|
|
319
358
|
]
|
|
320
359
|
},
|
|
360
|
+
{
|
|
361
|
+
"kind": "javascript-module",
|
|
362
|
+
"path": "dist/Input.js",
|
|
363
|
+
"declarations": [
|
|
364
|
+
{
|
|
365
|
+
"kind": "class",
|
|
366
|
+
"description": "### Overview\n\nThe `ui5-ai-input` component extends the standard `ui5-input` with **AI Writing Assistant** capabilities.\n\n### Structure\n\nThe `ui5-ai-input` consists of the following main parts:\n\n- **Input Field** – Inherits all standard Input behaviors.\n- **AI Action Button** – Appears when focused or loading, providing access to AI-related actions or stopping generation.\n\nThe component automatically determines which elements to render based on its internal state:\n- The AI Button is only shown when there are available `actions`.\n- The version navigation appears only when `totalVersions > 1`.\n\n### Keyboard Support\n\n- **Shift + F4** — Opens the AI menu.\n- **Ctrl + Shift + Z / Y** — Navigates backward/forward between AI-generated versions.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Input.js\";`",
|
|
367
|
+
"name": "Input",
|
|
368
|
+
"slots": [
|
|
369
|
+
{
|
|
370
|
+
"name": "actions",
|
|
371
|
+
"description": "Defines the items of the menu for the component.",
|
|
372
|
+
"_ui5type": {
|
|
373
|
+
"text": "Array<HTMLElement>"
|
|
374
|
+
},
|
|
375
|
+
"_ui5privacy": "public"
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"members": [
|
|
379
|
+
{
|
|
380
|
+
"kind": "field",
|
|
381
|
+
"name": "currentVersion",
|
|
382
|
+
"type": {
|
|
383
|
+
"text": "number"
|
|
384
|
+
},
|
|
385
|
+
"default": "0",
|
|
386
|
+
"description": "Indicates the index of the currently displayed version.",
|
|
387
|
+
"privacy": "public"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"kind": "field",
|
|
391
|
+
"name": "totalVersions",
|
|
392
|
+
"type": {
|
|
393
|
+
"text": "number"
|
|
394
|
+
},
|
|
395
|
+
"default": "0",
|
|
396
|
+
"description": "Indicates the total number of result versions available.\n\nWhen not set or set to 0, the versioning will be hidden.",
|
|
397
|
+
"privacy": "public"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"kind": "field",
|
|
401
|
+
"name": "loading",
|
|
402
|
+
"type": {
|
|
403
|
+
"text": "boolean"
|
|
404
|
+
},
|
|
405
|
+
"default": "false",
|
|
406
|
+
"description": "Defines whether the AI Writing Assistant is currently loading.\n\nWhen `true`, indicates that an AI action is in progress.",
|
|
407
|
+
"privacy": "public"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"events": [
|
|
411
|
+
{
|
|
412
|
+
"name": "button-click",
|
|
413
|
+
"_ui5privacy": "public",
|
|
414
|
+
"type": {
|
|
415
|
+
"text": "CustomEvent"
|
|
416
|
+
},
|
|
417
|
+
"description": "Fired when the user selects the AI button.",
|
|
418
|
+
"_ui5Cancelable": true,
|
|
419
|
+
"_ui5allowPreventDefault": true,
|
|
420
|
+
"_ui5Bubbles": false
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "item-click",
|
|
424
|
+
"_ui5privacy": "public",
|
|
425
|
+
"type": {
|
|
426
|
+
"text": "CustomEvent"
|
|
427
|
+
},
|
|
428
|
+
"description": "Fired when an item from the AI actions menu is clicked.",
|
|
429
|
+
"_ui5Cancelable": false,
|
|
430
|
+
"_ui5allowPreventDefault": false,
|
|
431
|
+
"_ui5Bubbles": false
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "stop-generation",
|
|
435
|
+
"_ui5privacy": "public",
|
|
436
|
+
"type": {
|
|
437
|
+
"text": "CustomEvent"
|
|
438
|
+
},
|
|
439
|
+
"description": "Fired when the user selects the \"Stop\" button to stop ongoing AI text generation.",
|
|
440
|
+
"_ui5Cancelable": false,
|
|
441
|
+
"_ui5allowPreventDefault": false,
|
|
442
|
+
"_ui5Bubbles": false
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"name": "version-change",
|
|
446
|
+
"_ui5privacy": "public",
|
|
447
|
+
"type": {
|
|
448
|
+
"text": "CustomEvent<InputVersionChangeEventDetail>",
|
|
449
|
+
"references": [
|
|
450
|
+
{
|
|
451
|
+
"name": "InputVersionChangeEventDetail",
|
|
452
|
+
"package": "@ui5/webcomponents-ai",
|
|
453
|
+
"module": "dist/Input.js"
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
"description": "Fired when the user selects the version navigation buttons.",
|
|
458
|
+
"_ui5Cancelable": false,
|
|
459
|
+
"_ui5allowPreventDefault": false,
|
|
460
|
+
"_ui5Bubbles": false,
|
|
461
|
+
"_ui5parameters": [
|
|
462
|
+
{
|
|
463
|
+
"type": {
|
|
464
|
+
"text": "boolean"
|
|
465
|
+
},
|
|
466
|
+
"name": "backwards",
|
|
467
|
+
"_ui5privacy": "public",
|
|
468
|
+
"description": "Indicates if navigation is backwards (true) or forwards (false, default)"
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"attributes": [
|
|
474
|
+
{
|
|
475
|
+
"description": "Indicates the index of the currently displayed version.",
|
|
476
|
+
"name": "current-version",
|
|
477
|
+
"default": "0",
|
|
478
|
+
"fieldName": "currentVersion",
|
|
479
|
+
"type": {
|
|
480
|
+
"text": "number"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"description": "Indicates the total number of result versions available.\n\nWhen not set or set to 0, the versioning will be hidden.",
|
|
485
|
+
"name": "total-versions",
|
|
486
|
+
"default": "0",
|
|
487
|
+
"fieldName": "totalVersions",
|
|
488
|
+
"type": {
|
|
489
|
+
"text": "number"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"description": "Defines whether the AI Writing Assistant is currently loading.\n\nWhen `true`, indicates that an AI action is in progress.",
|
|
494
|
+
"name": "loading",
|
|
495
|
+
"default": "false",
|
|
496
|
+
"fieldName": "loading",
|
|
497
|
+
"type": {
|
|
498
|
+
"text": "boolean"
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"superclass": {
|
|
503
|
+
"name": "BaseInput",
|
|
504
|
+
"package": "@ui5/webcomponents",
|
|
505
|
+
"module": "dist/Input.js"
|
|
506
|
+
},
|
|
507
|
+
"tagName": "ui5-ai-input",
|
|
508
|
+
"customElement": true,
|
|
509
|
+
"_ui5experimental": "The **@ui5/webcomponents-ai** package is under active development and considered experimental. Component APIs are subject to change.",
|
|
510
|
+
"_ui5since": "2.16.0",
|
|
511
|
+
"_ui5privacy": "public"
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
"exports": [
|
|
515
|
+
{
|
|
516
|
+
"kind": "js",
|
|
517
|
+
"name": "default",
|
|
518
|
+
"declaration": {
|
|
519
|
+
"name": "Input",
|
|
520
|
+
"module": "dist/Input.js"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"kind": "custom-element-definition",
|
|
525
|
+
"name": "ui5-ai-input",
|
|
526
|
+
"declaration": {
|
|
527
|
+
"name": "Input",
|
|
528
|
+
"module": "dist/Input.js"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
]
|
|
532
|
+
},
|
|
321
533
|
{
|
|
322
534
|
"kind": "javascript-module",
|
|
323
535
|
"path": "dist/PromptInput.js",
|
|
@@ -630,6 +842,221 @@
|
|
|
630
842
|
}
|
|
631
843
|
}
|
|
632
844
|
]
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"kind": "javascript-module",
|
|
848
|
+
"path": "dist/TextArea.js",
|
|
849
|
+
"declarations": [
|
|
850
|
+
{
|
|
851
|
+
"kind": "class",
|
|
852
|
+
"description": "### Overview\n\nThe `ui5-ai-textarea` component extends the standard TextArea with Writing Assistant capabilities.\nIt provides AI-powered text generation, editing suggestions, and version management functionality.\n\n### Structure\nThe `ui5-ai-textarea` consists of the following elements:\n- TextArea: The main text input area with all standard textarea functionality\n- WritingAssistant: Dedicated toolbar containing:\n - Versioning: A component with left/right navigation buttons and a label for browsing AI-generated versions\n - AI Button: Opens a menu that can be extended with custom AI generation options through slotting\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/TextArea.js\";`",
|
|
853
|
+
"name": "TextArea",
|
|
854
|
+
"slots": [
|
|
855
|
+
{
|
|
856
|
+
"description": "Defines a slot for `ui5-menu` integration. This slot allows you to pass a `ui5-menu` instance that will be associated with the assistant.",
|
|
857
|
+
"name": "menu",
|
|
858
|
+
"_ui5privacy": "public",
|
|
859
|
+
"_ui5type": {
|
|
860
|
+
"text": "HTMLElement"
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
],
|
|
864
|
+
"members": [
|
|
865
|
+
{
|
|
866
|
+
"kind": "field",
|
|
867
|
+
"name": "loading",
|
|
868
|
+
"type": {
|
|
869
|
+
"text": "boolean"
|
|
870
|
+
},
|
|
871
|
+
"default": "false",
|
|
872
|
+
"description": "Defines whether the `ui5-ai-textarea` is currently in a loading(processing) state.",
|
|
873
|
+
"privacy": "public"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"kind": "field",
|
|
877
|
+
"name": "promptDescription",
|
|
878
|
+
"type": {
|
|
879
|
+
"text": "string"
|
|
880
|
+
},
|
|
881
|
+
"default": "\"\"",
|
|
882
|
+
"description": "Defines the prompt description of the current action.",
|
|
883
|
+
"privacy": "public"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"kind": "field",
|
|
887
|
+
"name": "currentVersion",
|
|
888
|
+
"type": {
|
|
889
|
+
"text": "number"
|
|
890
|
+
},
|
|
891
|
+
"default": "0",
|
|
892
|
+
"description": "Indicates the index of the currently displayed version.",
|
|
893
|
+
"privacy": "public"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"kind": "field",
|
|
897
|
+
"name": "totalVersions",
|
|
898
|
+
"type": {
|
|
899
|
+
"text": "number"
|
|
900
|
+
},
|
|
901
|
+
"default": "0",
|
|
902
|
+
"description": "Indicates the total number of result versions available.\n\nNotes:\nVersioning is hidden if the value is `0`",
|
|
903
|
+
"privacy": "public"
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
"events": [
|
|
907
|
+
{
|
|
908
|
+
"name": "version-change",
|
|
909
|
+
"_ui5privacy": "public",
|
|
910
|
+
"type": {
|
|
911
|
+
"text": "CustomEvent<TextAreaVersionChangeEventDetail>",
|
|
912
|
+
"references": [
|
|
913
|
+
{
|
|
914
|
+
"name": "TextAreaVersionChangeEventDetail",
|
|
915
|
+
"package": "@ui5/webcomponents-ai",
|
|
916
|
+
"module": "dist/TextArea.js"
|
|
917
|
+
}
|
|
918
|
+
]
|
|
919
|
+
},
|
|
920
|
+
"description": "Fired when the user clicks on version navigation buttons.",
|
|
921
|
+
"_ui5Cancelable": false,
|
|
922
|
+
"_ui5allowPreventDefault": false,
|
|
923
|
+
"_ui5Bubbles": false,
|
|
924
|
+
"_ui5parameters": [
|
|
925
|
+
{
|
|
926
|
+
"type": {
|
|
927
|
+
"text": "boolean"
|
|
928
|
+
},
|
|
929
|
+
"name": "backwards",
|
|
930
|
+
"_ui5privacy": "public",
|
|
931
|
+
"description": "Indicates if navigation is backwards (true) or forwards (false, default)."
|
|
932
|
+
}
|
|
933
|
+
]
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "stop-generation",
|
|
937
|
+
"_ui5privacy": "public",
|
|
938
|
+
"type": {
|
|
939
|
+
"text": "CustomEvent"
|
|
940
|
+
},
|
|
941
|
+
"description": "Fired when the user requests to stop AI text generation.",
|
|
942
|
+
"_ui5Cancelable": false,
|
|
943
|
+
"_ui5allowPreventDefault": false,
|
|
944
|
+
"_ui5Bubbles": false
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
"attributes": [
|
|
948
|
+
{
|
|
949
|
+
"description": "Defines whether the `ui5-ai-textarea` is currently in a loading(processing) state.",
|
|
950
|
+
"name": "loading",
|
|
951
|
+
"default": "false",
|
|
952
|
+
"fieldName": "loading",
|
|
953
|
+
"type": {
|
|
954
|
+
"text": "boolean"
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"description": "Defines the prompt description of the current action.",
|
|
959
|
+
"name": "prompt-description",
|
|
960
|
+
"default": "\"\"",
|
|
961
|
+
"fieldName": "promptDescription",
|
|
962
|
+
"type": {
|
|
963
|
+
"text": "string"
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"description": "Indicates the index of the currently displayed version.",
|
|
968
|
+
"name": "current-version",
|
|
969
|
+
"default": "0",
|
|
970
|
+
"fieldName": "currentVersion",
|
|
971
|
+
"type": {
|
|
972
|
+
"text": "number"
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"description": "Indicates the total number of result versions available.\n\nNotes:\nVersioning is hidden if the value is `0`",
|
|
977
|
+
"name": "total-versions",
|
|
978
|
+
"default": "0",
|
|
979
|
+
"fieldName": "totalVersions",
|
|
980
|
+
"type": {
|
|
981
|
+
"text": "number"
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
],
|
|
985
|
+
"superclass": {
|
|
986
|
+
"name": "BaseTextArea",
|
|
987
|
+
"package": "@ui5/webcomponents",
|
|
988
|
+
"module": "dist/TextArea.js"
|
|
989
|
+
},
|
|
990
|
+
"tagName": "ui5-ai-textarea",
|
|
991
|
+
"customElement": true,
|
|
992
|
+
"_ui5experimental": "The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.",
|
|
993
|
+
"_ui5since": "2.16.0",
|
|
994
|
+
"_ui5privacy": "public"
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
"exports": [
|
|
998
|
+
{
|
|
999
|
+
"kind": "js",
|
|
1000
|
+
"name": "default",
|
|
1001
|
+
"declaration": {
|
|
1002
|
+
"name": "TextArea",
|
|
1003
|
+
"module": "dist/TextArea.js"
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"kind": "custom-element-definition",
|
|
1008
|
+
"name": "ui5-ai-textarea",
|
|
1009
|
+
"declaration": {
|
|
1010
|
+
"name": "TextArea",
|
|
1011
|
+
"module": "dist/TextArea.js"
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"kind": "javascript-module",
|
|
1018
|
+
"path": "dist/ToolbarLabel.js",
|
|
1019
|
+
"declarations": [],
|
|
1020
|
+
"exports": [
|
|
1021
|
+
{
|
|
1022
|
+
"kind": "js",
|
|
1023
|
+
"name": "default",
|
|
1024
|
+
"declaration": {
|
|
1025
|
+
"name": "ToolbarLabel",
|
|
1026
|
+
"module": "dist/ToolbarLabel.js"
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"kind": "javascript-module",
|
|
1033
|
+
"path": "dist/Versioning.js",
|
|
1034
|
+
"declarations": [],
|
|
1035
|
+
"exports": [
|
|
1036
|
+
{
|
|
1037
|
+
"kind": "js",
|
|
1038
|
+
"name": "default",
|
|
1039
|
+
"declaration": {
|
|
1040
|
+
"name": "Versioning",
|
|
1041
|
+
"module": "dist/Versioning.js"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"kind": "javascript-module",
|
|
1048
|
+
"path": "dist/WritingAssistant.js",
|
|
1049
|
+
"declarations": [],
|
|
1050
|
+
"exports": [
|
|
1051
|
+
{
|
|
1052
|
+
"kind": "js",
|
|
1053
|
+
"name": "default",
|
|
1054
|
+
"declaration": {
|
|
1055
|
+
"name": "WritingAssistant",
|
|
1056
|
+
"module": "dist/WritingAssistant.js"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
]
|
|
633
1060
|
}
|
|
634
1061
|
]
|
|
635
1062
|
}
|