@ui5/webcomponents-ai 0.0.0-d160e83dd → 0.0.0-dd5d66a9a

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 (60) hide show
  1. package/CHANGELOG.md +278 -0
  2. package/README.md +6 -6
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/Assets-fetch.d.ts +3 -0
  5. package/dist/Assets-fetch.js +6 -0
  6. package/dist/Assets-fetch.js.map +1 -0
  7. package/dist/Assets-node.d.ts +14 -0
  8. package/dist/Assets-node.js +17 -0
  9. package/dist/Assets-node.js.map +1 -0
  10. package/dist/Button.d.ts +37 -0
  11. package/dist/Button.js +56 -2
  12. package/dist/Button.js.map +1 -1
  13. package/dist/ButtonTemplate.js +1 -1
  14. package/dist/ButtonTemplate.js.map +1 -1
  15. package/dist/css/themes/Button.css +1 -1
  16. package/dist/custom-elements-internal.json +39 -0
  17. package/dist/custom-elements.json +38 -0
  18. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  19. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  20. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  21. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  22. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  23. package/dist/generated/assets/i18n/messagebundle_id.json +1 -0
  24. package/dist/generated/i18n/i18n-defaults.d.ts +2 -1
  25. package/dist/generated/i18n/i18n-defaults.js +2 -1
  26. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  27. package/dist/generated/json-imports/Themes-fetch.js +1 -1
  28. package/dist/generated/json-imports/Themes-fetch.js.map +1 -1
  29. package/dist/generated/json-imports/Themes-node.d.ts +1 -0
  30. package/dist/generated/json-imports/Themes-node.js +21 -0
  31. package/dist/generated/json-imports/Themes-node.js.map +1 -0
  32. package/dist/generated/json-imports/Themes.js +1 -1
  33. package/dist/generated/json-imports/Themes.js.map +1 -1
  34. package/dist/generated/json-imports/i18n-fetch.js +3 -1
  35. package/dist/generated/json-imports/i18n-fetch.js.map +1 -1
  36. package/dist/generated/json-imports/i18n-node.d.ts +1 -0
  37. package/dist/generated/json-imports/i18n-node.js +120 -0
  38. package/dist/generated/json-imports/i18n-node.js.map +1 -0
  39. package/dist/generated/json-imports/i18n.js +3 -1
  40. package/dist/generated/json-imports/i18n.js.map +1 -1
  41. package/dist/generated/themes/Button.css.d.ts +1 -1
  42. package/dist/generated/themes/Button.css.js +3 -3
  43. package/dist/generated/themes/Button.css.js.map +1 -1
  44. package/dist/generated/themes/PromptInput.css.js +2 -2
  45. package/dist/generated/themes/PromptInput.css.js.map +1 -1
  46. package/dist/vscode.html-custom-data.json +5 -0
  47. package/dist/web-types.json +14 -1
  48. package/package.json +8 -9
  49. package/src/ButtonTemplate.tsx +1 -0
  50. package/src/i18n/messagebundle.properties +5 -1
  51. package/src/i18n/messagebundle_de.properties +3 -0
  52. package/src/i18n/messagebundle_en.properties +3 -0
  53. package/src/i18n/messagebundle_en_US_sappsd.properties +3 -0
  54. package/src/i18n/messagebundle_en_US_saprigi.properties +3 -0
  55. package/src/i18n/messagebundle_en_US_saptrc.properties +3 -0
  56. package/cypress/specs/Button.cy.tsx +0 -14
  57. package/cypress/support/commands.ts +0 -40
  58. package/cypress/support/component-index.html +0 -12
  59. package/cypress/support/component.ts +0 -36
  60. package/cypress/tsconfig.json +0 -43
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@ui5/webcomponents-ai",
4
- "version": "2.9.0-rc.2",
4
+ "version": "2.15.0-rc.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -33,6 +33,14 @@
33
33
  "name": "arrow-button-pressed",
34
34
  "description": "Defines the active state of the arrow button in split mode.\nSet to true when the button is in split mode and a menu with additional options\nis opened by the arrow button. Set back to false when the menu is closed.",
35
35
  "value": { "type": "boolean", "default": "false" }
36
+ },
37
+ {
38
+ "name": "accessibility-attributes",
39
+ "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`.",
40
+ "value": {
41
+ "type": "AIButtonAccessibilityAttributes",
42
+ "default": "{}"
43
+ }
36
44
  }
37
45
  ],
38
46
  "slots": [
@@ -74,6 +82,11 @@
74
82
  "name": "arrow-button-pressed",
75
83
  "description": "Defines the active state of the arrow button in split mode.\nSet to true when the button is in split mode and a menu with additional options\nis opened by the arrow button. Set back to false when the menu is closed.",
76
84
  "value": { "type": "boolean" }
85
+ },
86
+ {
87
+ "name": "accessibility-attributes",
88
+ "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`.",
89
+ "value": { "type": "AIButtonAccessibilityAttributes" }
77
90
  }
78
91
  ],
79
92
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-ai",
3
- "version": "0.0.0-d160e83dd",
3
+ "version": "0.0.0-dd5d66a9a",
4
4
  "description": "UI5 Web Components: webcomponents.ai",
5
5
  "ui5": {
6
6
  "webComponentsPackage": true
@@ -25,7 +25,7 @@
25
25
  "generate": "nps generate",
26
26
  "generateAPI": "nps generateAPI",
27
27
  "bundle": "nps build.bundle",
28
- "test": "nps test-cy-ci",
28
+ "test": "yarn test:cypress",
29
29
  "test:cypress": "nps test-cy-ci",
30
30
  "test:cypress:single": "npx cypress run --component --browser chrome --spec",
31
31
  "test:cypress:open": "nps test-cy-open",
@@ -44,18 +44,17 @@
44
44
  },
45
45
  "repository": {
46
46
  "type": "git",
47
- "url": "https://github.com/SAP/ui5-webcomponents.git",
47
+ "url": "https://github.com/UI5/webcomponents.git",
48
48
  "directory": "packages/ai"
49
49
  },
50
50
  "dependencies": {
51
- "@ui5/webcomponents": "0.0.0-d160e83dd",
52
- "@ui5/webcomponents-base": "0.0.0-d160e83dd",
53
- "@ui5/webcomponents-icons": "0.0.0-d160e83dd",
54
- "@ui5/webcomponents-theming": "0.0.0-d160e83dd"
51
+ "@ui5/webcomponents": "0.0.0-dd5d66a9a",
52
+ "@ui5/webcomponents-base": "0.0.0-dd5d66a9a",
53
+ "@ui5/webcomponents-icons": "0.0.0-dd5d66a9a",
54
+ "@ui5/webcomponents-theming": "0.0.0-dd5d66a9a"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@ui5/cypress-internal": "0.0.0",
58
- "@ui5/webcomponents-tools": "0.0.0-d160e83dd",
59
- "chromedriver": "^133.0.0"
58
+ "@ui5/webcomponents-tools": "0.0.0-dd5d66a9a"
60
59
  }
61
60
  }
@@ -12,6 +12,7 @@ export default function ButtonTemplate(this: Button) {
12
12
  _hideArrowButton={this._hideArrowButton}
13
13
  onClick={this._onClick}
14
14
  onArrowClick={this._onArrowClick}
15
+ accessibilityAttributes={this._computedAccessibilityAttributes}
15
16
  >
16
17
  {this._hasText && (
17
18
  <div class="ui5-ai-button-text">{this._stateText}</div>
@@ -5,4 +5,8 @@
5
5
  PROMPT_INPUT_CHARACTERS_LEFT={0} characters remaining
6
6
 
7
7
  #XTXT: Text for characters over
8
- PROMPT_INPUT_CHARACTERS_EXCEEDED={0} characters over limit
8
+ PROMPT_INPUT_CHARACTERS_EXCEEDED={0} characters over limit
9
+
10
+ #XTXT: Text for
11
+ BUTTON_TOOLTIP_TEXT={0} with Artificial Intelligence
12
+
@@ -2,3 +2,6 @@
2
2
  PROMPT_INPUT_CHARACTERS_LEFT={0} Zeichen verbleibend
3
3
 
4
4
  PROMPT_INPUT_CHARACTERS_EXCEEDED={0} Zeichen über Limit
5
+
6
+ BUTTON_TOOLTIP_TEXT={0} mit künstlicher Intelligenz
7
+
@@ -2,3 +2,6 @@
2
2
  PROMPT_INPUT_CHARACTERS_LEFT={0} characters remaining
3
3
 
4
4
  PROMPT_INPUT_CHARACTERS_EXCEEDED={0} characters over limit
5
+
6
+ BUTTON_TOOLTIP_TEXT={0} with Artificial Intelligence
7
+
@@ -2,3 +2,6 @@
2
2
  PROMPT_INPUT_CHARACTERS_LEFT=[[[{0} ċĥąŗąċţēŗş ŗēɱąįŋįŋğ]]]
3
3
 
4
4
  PROMPT_INPUT_CHARACTERS_EXCEEDED=[[[{0} ċĥąŗąċţēŗş ŏʋēŗ ĺįɱįţ]]]
5
+
6
+ BUTTON_TOOLTIP_TEXT=[[[{0} ŵįţĥ Āŗţįƒįċįąĺ Ĭŋţēĺĺįğēŋċē]]]
7
+
@@ -2,3 +2,6 @@
2
2
  PROMPT_INPUT_CHARACTERS_LEFT=‌‌‍‍​‌​‍​‌‌‍‌‌​​‍‌‍‌​‌​‌​‌​‍​‌‌​​‍‌‍‍‍‍​​​{0}‌‌‌ characters remaining
3
3
 
4
4
  PROMPT_INPUT_CHARACTERS_EXCEEDED=‌‌‌​‌‍‍‍​‍‍​​​​‌‍​‍​‌‍​‌​​​‌​​‌​​‍‍​‌‌‌​‍​​​{0}‌‌‌ characters over limit
5
+
6
+ BUTTON_TOOLTIP_TEXT=‍‍‌‍‍‌‍​‍​​‌‌‌‍‌​‍​​‌‌‌‌​‍‍‍‌​‍‍‌‌​‌‌‌‌​​​​{0}‌‌‌ with Artificial Intelligence
7
+
@@ -2,3 +2,6 @@
2
2
  PROMPT_INPUT_CHARACTERS_LEFT=ApfX3Ybp+LpUZGYmQzr70w_{0} characters remaining
3
3
 
4
4
  PROMPT_INPUT_CHARACTERS_EXCEEDED=j5kNPkXE7zFJCcHSJi7nbg_{0} characters over limit
5
+
6
+ BUTTON_TOOLTIP_TEXT=6X8mtmOry2zJh+9Uw46jBg_{0} with Artificial Intelligence
7
+
@@ -1,14 +0,0 @@
1
- import Button from "../../src/Button.js";
2
- import ButtonState from "../../src/ButtonState.js";
3
-
4
- describe("Initial rendering", () => {
5
- it("tests no config provided", () => {
6
- cy.mount(
7
- <Button>
8
- <ButtonState name="generate" text="Generate" icon="ai">Click me</ButtonState>
9
- <ButtonState name="generating" text="Stop Generating" icon="stop">Click me</ButtonState>
10
- <ButtonState name="revise" text="Revise" icon="ai">Click me</ButtonState>
11
- </Button>
12
- );
13
- });
14
- });
@@ -1,40 +0,0 @@
1
- /// <reference types="cypress" />
2
- // ***********************************************
3
- // This example commands.ts shows you how to
4
- // create various custom commands and overwrite
5
- // existing commands.
6
- //
7
- // For more comprehensive examples of custom
8
- // commands please read more here:
9
- // https://on.cypress.io/custom-commands
10
- // ***********************************************
11
- //
12
- //
13
- // -- This is a parent command --
14
- // Cypress.Commands.add('login', (email, password) => { ... })
15
- //
16
- //
17
- // -- This is a child command --
18
- // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
19
- //
20
- //
21
- // -- This is a dual command --
22
- // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
23
- //
24
- //
25
- // -- This will overwrite an existing command --
26
- // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
27
- //
28
- // declare global {
29
- // namespace Cypress {
30
- // interface Chainable {
31
- // login(email: string, password: string): Chainable<void>
32
- // drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
33
- // dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
34
- // visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
35
- // }
36
- // }
37
- // }
38
-
39
- import "@ui5/cypress-internal/commands.js";
40
- import "../../../main/cypress/support/commands.js";
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <title>Components App</title>
8
- </head>
9
- <body>
10
- <div data-cy-root></div>
11
- </body>
12
- </html>
@@ -1,36 +0,0 @@
1
- // ***********************************************************
2
- // This example support/component.ts is processed and
3
- // loaded automatically before your test files.
4
- //
5
- // This is a great place to put global configuration and
6
- // behavior that modifies Cypress.
7
- //
8
- // You can change the location of this file or turn off
9
- // automatically serving support files with the
10
- // 'supportFile' configuration option.
11
- //
12
- // You can read more here:
13
- // https://on.cypress.io/configuration
14
- // ***********************************************************
15
-
16
- // Import commands.js using ES2015 syntax:
17
- import './commands'
18
-
19
- import { mount } from '@ui5/cypress-ct-ui5-webc'
20
-
21
- // Augment the Cypress namespace to include type definitions for
22
- // your custom command.
23
- // Alternatively, can be defined in cypress/support/component.d.ts
24
- // with a <reference path="./component" /> at the top of your spec.
25
- declare global {
26
- namespace Cypress {
27
- interface Chainable {
28
- mount: typeof mount
29
- }
30
- }
31
- }
32
-
33
- Cypress.Commands.add('mount', mount)
34
-
35
- // Example use:
36
- // cy.mount(MyComponent)
@@ -1,43 +0,0 @@
1
- {
2
- "extends": "@ui5/webcomponents-tools/tsconfig.json",
3
- "include": [
4
- "./**/*"
5
- ],
6
- "compilerOptions": {
7
- "composite": true,
8
- "tsBuildInfoFile": "dist/.tsbuildinfobuild",
9
- "module": "NodeNext",
10
- "moduleResolution": "nodenext",
11
- "paths": {
12
- "@ui5/webcomponents-base/dist/*": [
13
- "../../base/src/*"
14
- ],
15
- "@ui5/webcomponents/dist/*": [
16
- "../../main/src/*"
17
- ],
18
- "@ui5/webcomponents-localization/dist/*": [
19
- "../../localization/src/*"
20
- ],
21
- "@ui5/webcomponents-theming/dist/*": [
22
- "../../theming/src/*"
23
- ],
24
- "@ui5/webcomponents-icons/dist/*": [
25
- "../../icons/src/*"
26
- ],
27
- "@ui5/webcomponents-icons-business-suite/dist/*": [
28
- "../../icons-business-suite/src/*"
29
- ],
30
- "@ui5/webcomponents-icons-tnt/dist/*": [
31
- "../../icons-tnt/src/*"
32
- ]
33
- },
34
- },
35
- "references": [
36
- {
37
- "path": "../"
38
- },
39
- {
40
- "path": "../../main/cypress"
41
- }
42
- ]
43
- }