@ui5/webcomponents-ai 0.0.0-bf8366eb6

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 (75) hide show
  1. package/.env.production +1 -0
  2. package/.env.testing +4 -0
  3. package/.npsrc.json +3 -0
  4. package/CHANGELOG.md +14 -0
  5. package/README.md +40 -0
  6. package/dist/Assets.d.ts +3 -0
  7. package/dist/Assets.js +6 -0
  8. package/dist/Assets.js.map +1 -0
  9. package/dist/Button.d.ts +42 -0
  10. package/dist/Button.js +67 -0
  11. package/dist/Button.js.map +1 -0
  12. package/dist/PromptInput.d.ts +25 -0
  13. package/dist/PromptInput.js +47 -0
  14. package/dist/PromptInput.js.map +1 -0
  15. package/dist/PromtInput.d.ts +4 -0
  16. package/dist/PromtInput.js +28 -0
  17. package/dist/PromtInput.js.map +1 -0
  18. package/dist/bundle.esm.d.ts +3 -0
  19. package/dist/bundle.esm.js +8 -0
  20. package/dist/bundle.esm.js.map +1 -0
  21. package/dist/bundle.scoped.esm.d.ts +1 -0
  22. package/dist/bundle.scoped.esm.js +3 -0
  23. package/dist/bundle.scoped.esm.js.map +1 -0
  24. package/dist/css/themes/Button.css +0 -0
  25. package/dist/css/themes/sap_horizon/parameters-bundle.css +0 -0
  26. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +0 -0
  27. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +0 -0
  28. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +0 -0
  29. package/dist/custom-elements-internal.json +151 -0
  30. package/dist/custom-elements.json +145 -0
  31. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -0
  32. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -0
  33. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -0
  34. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -0
  35. package/dist/generated/i18n/i18n-defaults.d.ts +1 -0
  36. package/dist/generated/i18n/i18n-defaults.js +2 -0
  37. package/dist/generated/i18n/i18n-defaults.js.map +1 -0
  38. package/dist/generated/json-imports/Themes.d.ts +1 -0
  39. package/dist/generated/json-imports/Themes.js +21 -0
  40. package/dist/generated/json-imports/Themes.js.map +1 -0
  41. package/dist/generated/json-imports/i18n.d.ts +0 -0
  42. package/dist/generated/json-imports/i18n.js +2 -0
  43. package/dist/generated/json-imports/i18n.js.map +1 -0
  44. package/dist/generated/templates/ButtonTemplate.lit.d.ts +4 -0
  45. package/dist/generated/templates/ButtonTemplate.lit.js +5 -0
  46. package/dist/generated/templates/ButtonTemplate.lit.js.map +1 -0
  47. package/dist/generated/themes/Button.css.d.ts +3 -0
  48. package/dist/generated/themes/Button.css.js +8 -0
  49. package/dist/generated/themes/Button.css.js.map +1 -0
  50. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +3 -0
  51. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +3 -0
  52. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -0
  53. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +3 -0
  54. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +3 -0
  55. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -0
  56. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +3 -0
  57. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +3 -0
  58. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -0
  59. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +3 -0
  60. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +3 -0
  61. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -0
  62. package/dist/vscode.html-custom-data.json +29 -0
  63. package/dist/web-types.json +62 -0
  64. package/jsconfig.json +11 -0
  65. package/package-scripts.cjs +15 -0
  66. package/package.json +57 -0
  67. package/src/Button.hbs +3 -0
  68. package/src/i18n/messagebundle.properties +2 -0
  69. package/src/themes/Button.css +0 -0
  70. package/src/themes/base/Button-parameters.css +2 -0
  71. package/src/themes/sap_horizon/parameters-bundle.css +1 -0
  72. package/src/themes/sap_horizon_dark/parameters-bundle.css +1 -0
  73. package/src/themes/sap_horizon_hcb/parameters-bundle.css +1 -0
  74. package/src/themes/sap_horizon_hcw/parameters-bundle.css +1 -0
  75. package/tsconfig.json +28 -0
@@ -0,0 +1 @@
1
+ VITE_BUNDLE_PATH="../../dist/bundle.esm.js"
package/.env.testing ADDED
@@ -0,0 +1,4 @@
1
+ # .env.testing
2
+ VITE_BUNDLE_PATH="../../dist/bundle.esm.js"
3
+ # take the "development" conditional exports
4
+ NODE_ENV=development
package/.npsrc.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "config": "./package-scripts.cjs"
3
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [2.0.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2024-05-29)
7
+
8
+ **Note:** Version bump only for package @ui5/webcomponents-ai
9
+
10
+
11
+
12
+
13
+
14
+ # Change Log
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_wide.png)
2
+
3
+
4
+ # UI5 Web Components - AI
5
+
6
+ [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
7
+
8
+ Provides web components implementing AI-related visual and interaction.
9
+
10
+
11
+ **Note:** The package is available since 2.0 and experimental
12
+
13
+
14
+ ## Provided components
15
+
16
+ | Web Component | Tag name | Module import |
17
+ |--------------------------|-----------------------------|------------------------------------------------------------|
18
+
19
+
20
+ ## Provided assets
21
+
22
+
23
+ | Assets | Module | Notes
24
+ |------------|-----------|-----------
25
+ | `i18n`, `themes` | `@ui5/webcomponents-compat/dist/Assets.js` | Theming parameters and translations for the components
26
+
27
+
28
+ ## Resources
29
+ - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
30
+ - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/)
31
+
32
+ ## Support
33
+ We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/).
34
+
35
+ ## Contribute
36
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
37
+
38
+ ## License
39
+ Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
40
+ This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/main/LICENSE.txt) file.
@@ -0,0 +1,3 @@
1
+ import "@ui5/webcomponents/dist/Assets.js";
2
+ import "./generated/json-imports/Themes.js";
3
+ import "./generated/json-imports/i18n.js";
package/dist/Assets.js ADDED
@@ -0,0 +1,6 @@
1
+ // main package assets (transitively base, theming and icons)
2
+ import "@ui5/webcomponents/dist/Assets.js";
3
+ // own ai package assets
4
+ import "./generated/json-imports/Themes.js";
5
+ import "./generated/json-imports/i18n.js";
6
+ //# sourceMappingURL=Assets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Assets.js","sourceRoot":"","sources":["../src/Assets.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,OAAO,mCAAmC,CAAC;AAE3C,wBAAwB;AACxB,OAAO,oCAAoC,CAAC;AAC5C,OAAO,kCAAkC,CAAC","sourcesContent":["// main package assets (transitively base, theming and icons)\nimport \"@ui5/webcomponents/dist/Assets.js\";\n\n// own ai package assets\nimport \"./generated/json-imports/Themes.js\";\nimport \"./generated/json-imports/i18n.js\";\n"]}
@@ -0,0 +1,42 @@
1
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ /**
3
+ * @class
4
+ *
5
+ * ### Overview
6
+ *
7
+ * The `ui5-ai-button` component represents a button used in AI-related scenarios.
8
+ * It enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing
9
+ * certain keyboard keys, such as Enter.
10
+ *
11
+ * ### Usage
12
+ *
13
+ * For 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.
14
+ * Each 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.
15
+ *
16
+ * You can choose from a set of predefined designs that offer different styling to correspond to the triggered action.
17
+ *
18
+ * You 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).
19
+ * the mouse cursor. A disabled `ui5-ai-button` appears inactive and cannot be pressed.
20
+ *
21
+ * ### ES6 Module Import
22
+ *
23
+ * `import "@ui5/webcomponents-ai/dist/Button.js";`
24
+ *
25
+ * @constructor
26
+ * @extends UI5Element
27
+ * @since 2.0
28
+ * @public
29
+ */
30
+ declare class Button extends UI5Element {
31
+ /**
32
+ * Defines whether the component is disabled.
33
+ * A disabled component can't be pressed or
34
+ * focused, and it is not in the tab chain.
35
+ * @default false
36
+ * @public
37
+ */
38
+ disabled: boolean;
39
+ icon: string;
40
+ endIcon: string;
41
+ }
42
+ export default Button;
package/dist/Button.js ADDED
@@ -0,0 +1,67 @@
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
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
8
+ import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
9
+ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
10
+ import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
11
+ // Deps
12
+ import MainButton from "@ui5/webcomponents/dist/Button.js";
13
+ // Template
14
+ import template from "./generated/templates/ButtonTemplate.lit.js";
15
+ // Styles
16
+ import styles from "./generated/themes/Button.css.js";
17
+ /**
18
+ * @class
19
+ *
20
+ * ### Overview
21
+ *
22
+ * The `ui5-ai-button` component represents a button used in AI-related scenarios.
23
+ * It enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing
24
+ * certain keyboard keys, such as Enter.
25
+ *
26
+ * ### Usage
27
+ *
28
+ * For 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.
29
+ * Each 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.
30
+ *
31
+ * You can choose from a set of predefined designs that offer different styling to correspond to the triggered action.
32
+ *
33
+ * You 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).
34
+ * the mouse cursor. A disabled `ui5-ai-button` appears inactive and cannot be pressed.
35
+ *
36
+ * ### ES6 Module Import
37
+ *
38
+ * `import "@ui5/webcomponents-ai/dist/Button.js";`
39
+ *
40
+ * @constructor
41
+ * @extends UI5Element
42
+ * @since 2.0
43
+ * @public
44
+ */
45
+ let Button = class Button extends UI5Element {
46
+ };
47
+ __decorate([
48
+ property({ type: Boolean })
49
+ ], Button.prototype, "disabled", void 0);
50
+ __decorate([
51
+ property()
52
+ ], Button.prototype, "icon", void 0);
53
+ __decorate([
54
+ property()
55
+ ], Button.prototype, "endIcon", void 0);
56
+ Button = __decorate([
57
+ customElement({
58
+ tag: "ui5-ai-button",
59
+ renderer: litRender,
60
+ template,
61
+ styles,
62
+ dependencies: [MainButton],
63
+ })
64
+ ], Button);
65
+ Button.define();
66
+ export default Button;
67
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../src/Button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAE7E,OAAO;AACP,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAE3D,WAAW;AACX,OAAO,QAAQ,MAAM,6CAA6C,CAAC;AAEnE,SAAS;AACT,OAAO,MAAM,MAAM,kCAAkC,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAQH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;CAgB9B,CAAA;AAPA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACT;AAGnB;IADC,QAAQ,EAAE;oCACG;AAGd;IADC,QAAQ,EAAE;uCACM;AAfZ,MAAM;IAPX,aAAa,CAAC;QACd,GAAG,EAAE,eAAe;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ;QACR,MAAM;QACN,YAAY,EAAE,CAAC,UAAU,CAAC;KAC1B,CAAC;GACI,MAAM,CAgBX;AAED,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,eAAe,MAAM,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 litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\n// Deps\nimport MainButton from \"@ui5/webcomponents/dist/Button.js\";\n\n// Template\nimport template from \"./generated/templates/ButtonTemplate.lit.js\";\n\n// Styles\nimport styles from \"./generated/themes/Button.css.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `ui5-ai-button` component represents a button used in AI-related scenarios.\n * It enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing\n * certain keyboard keys, such as Enter.\n *\n * ### Usage\n *\n * For 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.\n * Each 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 *\n * You can choose from a set of predefined designs that offer different styling to correspond to the triggered action.\n *\n * You 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).\n * the 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\";`\n *\n * @constructor\n * @extends UI5Element\n * @since 2.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-ai-button\",\n\trenderer: litRender,\n\ttemplate,\n\tstyles,\n\tdependencies: [MainButton],\n})\nclass Button extends UI5Element {\n\t/**\n\t * Defines whether the component is disabled.\n\t * A disabled component can't be pressed or\n\t * focused, and it is not in the tab chain.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisabled!: boolean;\n\n\t@property()\n\ticon!: string;\n\n\t@property()\n\tendIcon!: string;\n}\n\nButton.define();\n\nexport default Button;\n"]}
@@ -0,0 +1,25 @@
1
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ /**
3
+ * @class
4
+ *
5
+ * ### Overview
6
+ *
7
+ * The PromptInput is an AI component.
8
+ *
9
+ * ### ES6 Module Import
10
+ *
11
+ * `import "@ui5/webcomponents-ai/dist/PromptInput.js";`
12
+ * @constructor
13
+ * @extends UI5Element
14
+ * @since 2.0
15
+ * @public
16
+ */
17
+ declare class PromptInput extends UI5Element {
18
+ /**
19
+ * Defines the value of the PromptInput.
20
+ * @public
21
+ * @default ""
22
+ */
23
+ value: string;
24
+ }
25
+ export default PromptInput;
@@ -0,0 +1,47 @@
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
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
8
+ import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
9
+ import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
10
+ import Label from "@ui5/webcomponents/dist/Label.js";
11
+ import Input from "@ui5/webcomponents/dist/Input.js";
12
+ import Button from "@ui5/webcomponents/dist/Button.js";
13
+ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
14
+ /**
15
+ * @class
16
+ *
17
+ * ### Overview
18
+ *
19
+ * The PromptInput is an AI component.
20
+ *
21
+ * ### ES6 Module Import
22
+ *
23
+ * `import "@ui5/webcomponents-ai/dist/PromptInput.js";`
24
+ * @constructor
25
+ * @extends UI5Element
26
+ * @since 2.0
27
+ * @public
28
+ */
29
+ let PromptInput = class PromptInput extends UI5Element {
30
+ };
31
+ __decorate([
32
+ property()
33
+ ], PromptInput.prototype, "value", void 0);
34
+ PromptInput = __decorate([
35
+ customElement({
36
+ tag: "ui5-ai-prompt-input",
37
+ renderer: litRender,
38
+ dependencies: [
39
+ Input,
40
+ Label,
41
+ Button,
42
+ ],
43
+ })
44
+ ], PromptInput);
45
+ PromptInput.define();
46
+ export default PromptInput;
47
+ //# 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,SAAS,MAAM,sDAAsD,CAAC;AAE7E,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAE3E;;;;;;;;;;;;;;GAcG;AAUH,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;CAQnC,CAAA;AADA;IADC,QAAQ,EAAE;0CACI;AAPV,WAAW;IAThB,aAAa,CAAC;QACd,GAAG,EAAE,qBAAqB;QAC1B,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE;YACb,KAAK;YACL,KAAK;YACL,MAAM;SACN;KACD,CAAC;GACI,WAAW,CAQhB;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 litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\nimport Label from \"@ui5/webcomponents/dist/Label.js\";\nimport Input from \"@ui5/webcomponents/dist/Input.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The PromptInput is an AI component.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-ai/dist/PromptInput.js\";`\n * @constructor\n * @extends UI5Element\n * @since 2.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-ai-prompt-input\",\n\trenderer: litRender,\n\tdependencies: [\n\t\tInput,\n\t\tLabel,\n\t\tButton,\n\t],\n})\nclass PromptInput extends UI5Element {\n\t/**\n\t * Defines the value of the PromptInput.\n\t * @public\n\t * @default \"\"\n\t */\n\t@property()\n\tvalue!: string;\n}\n\nPromptInput.define();\n\nexport default PromptInput;\n"]}
@@ -0,0 +1,4 @@
1
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ declare class PromptInput extends UI5Element {
3
+ }
4
+ export default PromptInput;
@@ -0,0 +1,28 @@
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
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
8
+ import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
9
+ import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
10
+ import Label from "@ui5/webcomponents/dist/Label.js";
11
+ import Input from "@ui5/webcomponents/dist/Input.js";
12
+ import Button from "@ui5/webcomponents/dist/Button.js";
13
+ let PromptInput = class PromptInput extends UI5Element {
14
+ };
15
+ PromptInput = __decorate([
16
+ customElement({
17
+ tag: "ui5-ai-prompt-input",
18
+ renderer: litRender,
19
+ dependencies: [
20
+ Input,
21
+ Label,
22
+ Button,
23
+ ],
24
+ })
25
+ ], PromptInput);
26
+ PromptInput.define();
27
+ export default PromptInput;
28
+ //# sourceMappingURL=PromtInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromtInput.js","sourceRoot":"","sources":["../src/PromtInput.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAE7E,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,MAAM,MAAM,mCAAmC,CAAC;AAWvD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;CACnC,CAAA;AADK,WAAW;IAThB,aAAa,CAAC;QACd,GAAG,EAAE,qBAAqB;QAC1B,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE;YACb,KAAK;YACL,KAAK;YACL,MAAM;SACN;KACD,CAAC;GACI,WAAW,CAChB;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 litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\nimport Label from \"@ui5/webcomponents/dist/Label.js\";\nimport Input from \"@ui5/webcomponents/dist/Input.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\n\n@customElement({\n\ttag: \"ui5-ai-prompt-input\",\n\trenderer: litRender,\n\tdependencies: [\n\t\tInput,\n\t\tLabel,\n\t\tButton,\n\t],\n})\nclass PromptInput extends UI5Element {\n}\n\nPromptInput.define();\n\nexport default PromptInput;\n"]}
@@ -0,0 +1,3 @@
1
+ import testAssets from "@ui5/webcomponents/dist/bundle.esm.js";
2
+ import "./Assets.js";
3
+ export default testAssets;
@@ -0,0 +1,8 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ import testAssets from "@ui5/webcomponents/dist/bundle.esm.js";
3
+ // AI assets
4
+ import "./Assets.js";
5
+ import "./Button.js";
6
+ import "./PromptInput.js";
7
+ export default testAssets;
8
+ //# sourceMappingURL=bundle.esm.js.map
@@ -0,0 +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"]}
@@ -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.esm.js.map
@@ -0,0 +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"]}
File without changes
@@ -0,0 +1,151 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "dist/Assets.js",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
11
+ {
12
+ "kind": "javascript-module",
13
+ "path": "dist/Button.js",
14
+ "declarations": [
15
+ {
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\";`",
18
+ "name": "Button",
19
+ "members": [
20
+ {
21
+ "kind": "field",
22
+ "name": "disabled",
23
+ "type": {
24
+ "text": "boolean"
25
+ },
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
+ "default": "false",
28
+ "privacy": "public",
29
+ "_ui5validator": "Boolean"
30
+ }
31
+ ],
32
+ "attributes": [
33
+ {
34
+ "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
+ "name": "disabled",
36
+ "default": "false",
37
+ "fieldName": "disabled",
38
+ "type": {
39
+ "text": "boolean"
40
+ }
41
+ }
42
+ ],
43
+ "superclass": {
44
+ "name": "UI5Element",
45
+ "package": "@ui5/webcomponents-base",
46
+ "module": "dist/UI5Element.js"
47
+ },
48
+ "tagName": "ui5-ai-button",
49
+ "customElement": true,
50
+ "_ui5since": "2.0",
51
+ "_ui5privacy": "public"
52
+ }
53
+ ],
54
+ "exports": [
55
+ {
56
+ "kind": "js",
57
+ "name": "default",
58
+ "declaration": {
59
+ "name": "Button",
60
+ "module": "dist/Button.js"
61
+ }
62
+ },
63
+ {
64
+ "kind": "custom-element-definition",
65
+ "name": "ui5-ai-button",
66
+ "declaration": {
67
+ "name": "Button",
68
+ "module": "dist/Button.js"
69
+ }
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "kind": "javascript-module",
75
+ "path": "dist/PromptInput.js",
76
+ "declarations": [
77
+ {
78
+ "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\";`",
80
+ "name": "PromptInput",
81
+ "members": [
82
+ {
83
+ "kind": "field",
84
+ "name": "value",
85
+ "type": {
86
+ "text": "string"
87
+ },
88
+ "description": "Defines the value of the PromptInput.",
89
+ "privacy": "public",
90
+ "default": "\"\"",
91
+ "_ui5validator": "String"
92
+ }
93
+ ],
94
+ "attributes": [
95
+ {
96
+ "description": "Defines the value of the PromptInput.",
97
+ "name": "value",
98
+ "default": "\"\"",
99
+ "fieldName": "value",
100
+ "type": {
101
+ "text": "string"
102
+ }
103
+ }
104
+ ],
105
+ "superclass": {
106
+ "name": "UI5Element",
107
+ "package": "@ui5/webcomponents-base",
108
+ "module": "dist/UI5Element.js"
109
+ },
110
+ "tagName": "ui5-ai-prompt-input",
111
+ "customElement": true,
112
+ "_ui5since": "2.0",
113
+ "_ui5privacy": "public"
114
+ }
115
+ ],
116
+ "exports": [
117
+ {
118
+ "kind": "js",
119
+ "name": "default",
120
+ "declaration": {
121
+ "name": "PromptInput",
122
+ "module": "dist/PromptInput.js"
123
+ }
124
+ },
125
+ {
126
+ "kind": "custom-element-definition",
127
+ "name": "ui5-ai-prompt-input",
128
+ "declaration": {
129
+ "name": "PromptInput",
130
+ "module": "dist/PromptInput.js"
131
+ }
132
+ }
133
+ ]
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
+ }
150
+ ]
151
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "dist/Assets.js",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
11
+ {
12
+ "kind": "javascript-module",
13
+ "path": "dist/Button.js",
14
+ "declarations": [
15
+ {
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\";`",
18
+ "name": "Button",
19
+ "members": [
20
+ {
21
+ "kind": "field",
22
+ "name": "disabled",
23
+ "type": {
24
+ "text": "boolean"
25
+ },
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
+ "default": "false",
28
+ "privacy": "public"
29
+ }
30
+ ],
31
+ "attributes": [
32
+ {
33
+ "description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
34
+ "name": "disabled",
35
+ "default": "false",
36
+ "fieldName": "disabled",
37
+ "type": {
38
+ "text": "boolean"
39
+ }
40
+ }
41
+ ],
42
+ "superclass": {
43
+ "name": "UI5Element",
44
+ "package": "@ui5/webcomponents-base",
45
+ "module": "dist/UI5Element.js"
46
+ },
47
+ "tagName": "ui5-ai-button",
48
+ "customElement": true
49
+ }
50
+ ],
51
+ "exports": [
52
+ {
53
+ "kind": "js",
54
+ "name": "default",
55
+ "declaration": {
56
+ "name": "Button",
57
+ "module": "dist/Button.js"
58
+ }
59
+ },
60
+ {
61
+ "kind": "custom-element-definition",
62
+ "name": "ui5-ai-button",
63
+ "declaration": {
64
+ "name": "Button",
65
+ "module": "dist/Button.js"
66
+ }
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "kind": "javascript-module",
72
+ "path": "dist/PromptInput.js",
73
+ "declarations": [
74
+ {
75
+ "kind": "class",
76
+ "description": "### Overview\n\nThe PromptInput is an AI component.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/PromptInput.js\";`",
77
+ "name": "PromptInput",
78
+ "members": [
79
+ {
80
+ "kind": "field",
81
+ "name": "value",
82
+ "type": {
83
+ "text": "string"
84
+ },
85
+ "description": "Defines the value of the PromptInput.",
86
+ "privacy": "public",
87
+ "default": "\"\""
88
+ }
89
+ ],
90
+ "attributes": [
91
+ {
92
+ "description": "Defines the value of the PromptInput.",
93
+ "name": "value",
94
+ "default": "\"\"",
95
+ "fieldName": "value",
96
+ "type": {
97
+ "text": "string"
98
+ }
99
+ }
100
+ ],
101
+ "superclass": {
102
+ "name": "UI5Element",
103
+ "package": "@ui5/webcomponents-base",
104
+ "module": "dist/UI5Element.js"
105
+ },
106
+ "tagName": "ui5-ai-prompt-input",
107
+ "customElement": true
108
+ }
109
+ ],
110
+ "exports": [
111
+ {
112
+ "kind": "js",
113
+ "name": "default",
114
+ "declaration": {
115
+ "name": "PromptInput",
116
+ "module": "dist/PromptInput.js"
117
+ }
118
+ },
119
+ {
120
+ "kind": "custom-element-definition",
121
+ "name": "ui5-ai-prompt-input",
122
+ "declaration": {
123
+ "name": "PromptInput",
124
+ "module": "dist/PromptInput.js"
125
+ }
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "kind": "javascript-module",
131
+ "path": "dist/PromtInput.js",
132
+ "declarations": [],
133
+ "exports": [
134
+ {
135
+ "kind": "js",
136
+ "name": "default",
137
+ "declaration": {
138
+ "name": "PromptInput",
139
+ "module": "dist/PromtInput.js"
140
+ }
141
+ }
142
+ ]
143
+ }
144
+ ]
145
+ }
@@ -0,0 +1 @@
1
+ {"_":{"packageName":"@ui5/webcomponents-ai","fileName":"themes/sap_horizon/parameters-bundle.css.json","content":""}}
@@ -0,0 +1 @@
1
+ {"_":{"packageName":"@ui5/webcomponents-ai","fileName":"themes/sap_horizon_dark/parameters-bundle.css.json","content":""}}
@@ -0,0 +1 @@
1
+ {"_":{"packageName":"@ui5/webcomponents-ai","fileName":"themes/sap_horizon_hcb/parameters-bundle.css.json","content":""}}
@@ -0,0 +1 @@
1
+ {"_":{"packageName":"@ui5/webcomponents-ai","fileName":"themes/sap_horizon_hcw/parameters-bundle.css.json","content":""}}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import "@ui5/webcomponents-base/dist/i18nBundle.js";
2
+ //# sourceMappingURL=i18n-defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n-defaults.js","sourceRoot":"","sources":["../../../src/generated/i18n/i18n-defaults.ts"],"names":[],"mappings":"AAAA,OAAyB,4CAA4C,CAAC","sourcesContent":["import { I18nText } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\n\nexport {};"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ // @ts-nocheck
2
+ import { registerThemePropertiesLoader } from "@ui5/webcomponents-base/dist/asset-registries/Themes.js";
3
+ const loadThemeProperties = async (themeName) => {
4
+ switch (themeName) {
5
+ case "sap_horizon": return (await import(/* webpackChunkName: "ui5-webcomponents-ai-sap-horizon-parameters-bundle" */ "../assets/themes/sap_horizon/parameters-bundle.css.json")).default;
6
+ case "sap_horizon_dark": return (await import(/* webpackChunkName: "ui5-webcomponents-ai-sap-horizon_dark-parameters-bundle" */ "../assets/themes/sap_horizon_dark/parameters-bundle.css.json")).default;
7
+ case "sap_horizon_hcb": return (await import(/* webpackChunkName: "ui5-webcomponents-ai-sap-horizon_hcb-parameters-bundle" */ "../assets/themes/sap_horizon_hcb/parameters-bundle.css.json")).default;
8
+ case "sap_horizon_hcw": return (await import(/* webpackChunkName: "ui5-webcomponents-ai-sap-horizon_hcw-parameters-bundle" */ "../assets/themes/sap_horizon_hcw/parameters-bundle.css.json")).default;
9
+ default: throw "unknown theme";
10
+ }
11
+ };
12
+ const loadAndCheck = async (themeName) => {
13
+ const data = await loadThemeProperties(themeName);
14
+ if (typeof data === "string" && data.endsWith(".json")) {
15
+ throw new Error(`[themes] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the "Assets" documentation for more information.`);
16
+ }
17
+ return data;
18
+ };
19
+ ["sap_horizon", "sap_horizon_dark", "sap_horizon_hcb", "sap_horizon_hcw"]
20
+ .forEach(themeName => registerThemePropertiesLoader("@ui5/webcomponents-ai", themeName, loadAndCheck));
21
+ //# sourceMappingURL=Themes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Themes.js","sourceRoot":"","sources":["../../../src/generated/json-imports/Themes.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,MAAM,mBAAmB,GAAG,KAAK,EAAE,SAAS,EAAE,EAAE;IAC/C,QAAQ,SAAS,EAAE;QAClB,KAAK,aAAa,CAAC,CAAC,OAAO,CAAC,MAAM,MAAM,CAAC,4EAA4E,CAAA,yDAAyD,CAAC,CAAC,CAAC,OAAO,CAAC;QACzL,KAAK,kBAAkB,CAAC,CAAC,OAAO,CAAC,MAAM,MAAM,CAAC,iFAAiF,CAAA,8DAA8D,CAAC,CAAC,CAAC,OAAO,CAAC;QACxM,KAAK,iBAAiB,CAAC,CAAC,OAAO,CAAC,MAAM,MAAM,CAAC,gFAAgF,CAAA,6DAA6D,CAAC,CAAC,CAAC,OAAO,CAAC;QACrM,KAAK,iBAAiB,CAAC,CAAC,OAAO,CAAC,MAAM,MAAM,CAAC,gFAAgF,CAAA,6DAA6D,CAAC,CAAC,CAAC,OAAO,CAAC;QACrM,OAAO,CAAC,CAAC,MAAM,eAAe,CAAA;KAC9B;AACF,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,KAAK,EAAE,SAAS,EAAE,EAAE;IACxC,MAAM,IAAI,GAAG,MAAM,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QACvD,MAAM,IAAI,KAAK,CAAC,iLAAiL,CAAC,CAAC;KACnM;IACD,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,CAAC,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;KACtE,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,6BAA6B,CAAC,uBAAuB,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC","sourcesContent":["// @ts-nocheck\nimport { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nconst loadThemeProperties = async (themeName) => {\n\tswitch (themeName) {\n\t\tcase \"sap_horizon\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-sap-horizon-parameters-bundle\" */\"../assets/themes/sap_horizon/parameters-bundle.css.json\")).default;\n\t\tcase \"sap_horizon_dark\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-sap-horizon_dark-parameters-bundle\" */\"../assets/themes/sap_horizon_dark/parameters-bundle.css.json\")).default;\n\t\tcase \"sap_horizon_hcb\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-sap-horizon_hcb-parameters-bundle\" */\"../assets/themes/sap_horizon_hcb/parameters-bundle.css.json\")).default;\n\t\tcase \"sap_horizon_hcw\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-sap-horizon_hcw-parameters-bundle\" */\"../assets/themes/sap_horizon_hcw/parameters-bundle.css.json\")).default;\n\t\tdefault: throw \"unknown theme\"\n\t}\n};\n\nconst loadAndCheck = async (themeName) => {\n\tconst data = await loadThemeProperties(themeName);\n\tif (typeof data === \"string\" && data.endsWith(\".json\")) {\n\t\tthrow new Error(`[themes] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the \"Assets\" documentation for more information.`);\n\t}\n\treturn data;\n};\n\n[\"sap_horizon\", \"sap_horizon_dark\", \"sap_horizon_hcb\", \"sap_horizon_hcw\"]\n .forEach(themeName => registerThemePropertiesLoader(\"@ui5/webcomponents-ai\", themeName, loadAndCheck));\n"]}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/generated/json-imports/i18n.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,4 @@
1
+ import type UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ import type Button from "../../Button.js";
3
+ declare function block0(this: Button, context: UI5Element, tags: string[], suffix: string | undefined): import("lit-html").TemplateResult;
4
+ export default block0;
@@ -0,0 +1,5 @@
1
+ /* eslint no-unused-vars: 0 */
2
+ import { html, ifDefined, scopeTag } from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
3
+ function block0(context, tags, suffix) { return suffix ? html `<${scopeTag("ui5-button", tags, suffix)} icon="${ifDefined(this.icon)}" end-icon="${ifDefined(this.endIcon)}"><slot></slot></${scopeTag("ui5-button", tags, suffix)}>` : html `<ui5-button icon="${ifDefined(this.icon)}" end-icon="${ifDefined(this.endIcon)}"><slot></slot></ui5-button>`; }
4
+ export default block0;
5
+ //# sourceMappingURL=ButtonTemplate.lit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTemplate.lit.js","sourceRoot":"","sources":["../../../src/generated/templates/ButtonTemplate.lit.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,IAAI,EAAmC,SAAS,EAAc,QAAQ,EAAE,MAAM,sDAAsD,CAAC;AAK9I,SAAS,MAAM,CAAgB,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA,IAAI,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAA,qBAAqB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAA,CAAC;AAGnZ,eAAe,MAAM,CAAC","sourcesContent":["/* eslint no-unused-vars: 0 */\nimport { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport type UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\n\timport type Button from \"../../Button.js\";\n\timport type { ClassMapValue } from \"@ui5/webcomponents-base/dist/types.js\";\n\t\nfunction block0 (this: Button, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag(\"ui5-button\", tags, suffix)} icon=\"${ifDefined(this.icon)}\" end-icon=\"${ifDefined(this.endIcon)}\"><slot></slot></${scopeTag(\"ui5-button\", tags, suffix)}>` : html`<ui5-button icon=\"${ifDefined(this.icon)}\" end-icon=\"${ifDefined(this.endIcon)}\"><slot></slot></ui5-button>`;}\n\n\nexport default block0;"]}
@@ -0,0 +1,3 @@
1
+ import type { StyleData } from "@ui5/webcomponents-base/dist/types.js";
2
+ declare const styleData: StyleData;
3
+ export default styleData;
@@ -0,0 +1,8 @@
1
+ import { registerThemePropertiesLoader } from "@ui5/webcomponents-base/dist/asset-registries/Themes.js";
2
+ import defaultThemeBase from "@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js";
3
+ import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
4
+ registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
5
+ registerThemePropertiesLoader("@ui5/webcomponents-ai", "sap_horizon", async () => defaultTheme);
6
+ const styleData = { packageName: "@ui5/webcomponents-ai", fileName: "themes/Button.css.ts", content: `` };
7
+ export default styleData;
8
+ //# sourceMappingURL=Button.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Button.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,uBAAuB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAEhG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,uBAAuB,EAAC,QAAQ,EAAC,sBAAsB,EAAC,OAAO,EAAC,EAAE,EAAC,CAAC;AAC9G,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nimport defaultThemeBase from \"@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js\";\nimport defaultTheme from \"./sap_horizon/parameters-bundle.css.js\";\n\nregisterThemePropertiesLoader(\"@ui5/webcomponents-theming\", \"sap_horizon\", async () => defaultThemeBase);\nregisterThemePropertiesLoader(\"@ui5/webcomponents-ai\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@ui5/webcomponents-ai\",fileName:\"themes/Button.css.ts\",content:``};\nexport default styleData;\n\t"]}
@@ -0,0 +1,3 @@
1
+ import type { StyleData } from "@ui5/webcomponents-base/dist/types.js";
2
+ declare const styleData: StyleData;
3
+ export default styleData;
@@ -0,0 +1,3 @@
1
+ const styleData = { packageName: "@ui5/webcomponents-ai", fileName: "themes/sap_horizon/parameters-bundle.css.ts", content: `` };
2
+ export default styleData;
3
+ //# sourceMappingURL=parameters-bundle.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon/parameters-bundle.css.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,uBAAuB,EAAC,QAAQ,EAAC,6CAA6C,EAAC,OAAO,EAAC,EAAE,EAAC,CAAC;AACrI,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\n\nconst styleData: StyleData = {packageName:\"@ui5/webcomponents-ai\",fileName:\"themes/sap_horizon/parameters-bundle.css.ts\",content:``};\nexport default styleData;\n\t"]}
@@ -0,0 +1,3 @@
1
+ import type { StyleData } from "@ui5/webcomponents-base/dist/types.js";
2
+ declare const styleData: StyleData;
3
+ export default styleData;
@@ -0,0 +1,3 @@
1
+ const styleData = { packageName: "@ui5/webcomponents-ai", fileName: "themes/sap_horizon_dark/parameters-bundle.css.ts", content: `` };
2
+ export default styleData;
3
+ //# sourceMappingURL=parameters-bundle.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_dark/parameters-bundle.css.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,uBAAuB,EAAC,QAAQ,EAAC,kDAAkD,EAAC,OAAO,EAAC,EAAE,EAAC,CAAC;AAC1I,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\n\nconst styleData: StyleData = {packageName:\"@ui5/webcomponents-ai\",fileName:\"themes/sap_horizon_dark/parameters-bundle.css.ts\",content:``};\nexport default styleData;\n\t"]}
@@ -0,0 +1,3 @@
1
+ import type { StyleData } from "@ui5/webcomponents-base/dist/types.js";
2
+ declare const styleData: StyleData;
3
+ export default styleData;
@@ -0,0 +1,3 @@
1
+ const styleData = { packageName: "@ui5/webcomponents-ai", fileName: "themes/sap_horizon_hcb/parameters-bundle.css.ts", content: `` };
2
+ export default styleData;
3
+ //# sourceMappingURL=parameters-bundle.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcb/parameters-bundle.css.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,uBAAuB,EAAC,QAAQ,EAAC,iDAAiD,EAAC,OAAO,EAAC,EAAE,EAAC,CAAC;AACzI,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\n\nconst styleData: StyleData = {packageName:\"@ui5/webcomponents-ai\",fileName:\"themes/sap_horizon_hcb/parameters-bundle.css.ts\",content:``};\nexport default styleData;\n\t"]}
@@ -0,0 +1,3 @@
1
+ import type { StyleData } from "@ui5/webcomponents-base/dist/types.js";
2
+ declare const styleData: StyleData;
3
+ export default styleData;
@@ -0,0 +1,3 @@
1
+ const styleData = { packageName: "@ui5/webcomponents-ai", fileName: "themes/sap_horizon_hcw/parameters-bundle.css.ts", content: `` };
2
+ export default styleData;
3
+ //# sourceMappingURL=parameters-bundle.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcw/parameters-bundle.css.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,uBAAuB,EAAC,QAAQ,EAAC,iDAAiD,EAAC,OAAO,EAAC,EAAE,EAAC,CAAC;AACzI,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\n\nconst styleData: StyleData = {packageName:\"@ui5/webcomponents-ai\",fileName:\"themes/sap_horizon_hcw/parameters-bundle.css.ts\",content:``};\nexport default styleData;\n\t"]}
@@ -0,0 +1,29 @@
1
+ {
2
+ "version": 1.1,
3
+ "tags": [
4
+ {
5
+ "name": "ui5-ai-button",
6
+ "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\";`\n\n\n---\n\n\n",
7
+ "attributes": [
8
+ {
9
+ "name": "disabled",
10
+ "description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
11
+ "values": []
12
+ }
13
+ ],
14
+ "references": []
15
+ },
16
+ {
17
+ "name": "ui5-ai-prompt-input",
18
+ "description": "### Overview\n\nThe PromptInput is an AI component.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/PromptInput.js\";`\n\n\n---\n\n\n",
19
+ "attributes": [
20
+ {
21
+ "name": "value",
22
+ "description": "Defines the value of the PromptInput.",
23
+ "values": []
24
+ }
25
+ ],
26
+ "references": []
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@ui5/webcomponents-ai",
4
+ "version": "2.0.0-rc.4",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "ui5-ai-button",
11
+ "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\";`\n---\n",
12
+ "doc-url": "",
13
+ "attributes": [
14
+ {
15
+ "name": "disabled",
16
+ "description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
17
+ "value": { "type": "boolean", "default": "false" }
18
+ }
19
+ ],
20
+ "events": [],
21
+ "js": {
22
+ "properties": [
23
+ {
24
+ "name": "disabled",
25
+ "description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
26
+ "value": { "type": "boolean" }
27
+ }
28
+ ],
29
+ "events": []
30
+ }
31
+ },
32
+ {
33
+ "name": "ui5-ai-prompt-input",
34
+ "description": "### Overview\n\nThe PromptInput is an AI component.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/PromptInput.js\";`\n---\n",
35
+ "doc-url": "",
36
+ "attributes": [
37
+ {
38
+ "name": "value",
39
+ "description": "Defines the value of the PromptInput.",
40
+ "value": { "type": "string", "default": "\"\"" }
41
+ }
42
+ ],
43
+ "events": [],
44
+ "js": {
45
+ "properties": [
46
+ {
47
+ "name": "value",
48
+ "description": "Defines the value of the PromptInput.",
49
+ "value": { "type": "string" }
50
+ }
51
+ ],
52
+ "events": []
53
+ }
54
+ }
55
+ ]
56
+ },
57
+ "css": {
58
+ "properties": [],
59
+ "pseudo-elements": []
60
+ }
61
+ }
62
+ }
package/jsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2017",
4
+ "allowSyntheticDefaultImports": false,
5
+ "baseUrl": "./",
6
+ "paths": {
7
+ "@ui5/webcomponents-base/dist/*": ["../base/src/*"]
8
+ }
9
+ },
10
+ "exclude": ["node_modules", "dist"]
11
+ }
@@ -0,0 +1,15 @@
1
+ const getScripts = require("@ui5/webcomponents-tools/components-package/nps.js");
2
+
3
+ const options = {
4
+ port: 8082,
5
+ portStep: 2,
6
+ aiPackage: true,
7
+ noWatchTS: true,
8
+ dev: true,
9
+ };
10
+
11
+ const scripts = getScripts(options);
12
+
13
+ module.exports = {
14
+ scripts,
15
+ };
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@ui5/webcomponents-ai",
3
+ "version": "0.0.0-bf8366eb6",
4
+ "description": "UI5 Web Components: webcomponents.ai",
5
+ "ui5": {
6
+ "webComponentsPackage": true
7
+ },
8
+ "type": "module",
9
+ "author": "SAP SE (https://www.sap.com)",
10
+ "license": "Apache-2.0",
11
+ "private": false,
12
+ "customElements": "./dist/custom-elements.json",
13
+ "keywords": [
14
+ "openui5",
15
+ "sapui5",
16
+ "ui5"
17
+ ],
18
+ "scripts": {
19
+ "clean": "wc-dev clean",
20
+ "lint": "wc-dev lint",
21
+ "lint:scope": "nps scope.lint",
22
+ "start": "wc-dev start",
23
+ "build": "wc-dev build",
24
+ "watch": "wc-dev watch",
25
+ "generate": "nps generate",
26
+ "generateAPI": "nps generateAPI",
27
+ "bundle": "nps build.bundle",
28
+ "test": "wc-dev test",
29
+ "test:ssr": "node -e \"import('./test/ssr/component-imports.js')\"",
30
+ "create-ui5-element": "wc-create-ui5-element",
31
+ "prepublishOnly": "tsc -b"
32
+ },
33
+ "exports": {
34
+ "./.port": "./.port",
35
+ "./src/*": "./src/*",
36
+ "./dist/*": "./dist/*",
37
+ "./package.json": "./package.json",
38
+ "./bundle.esm.js": "./bundle.esm.js",
39
+ "./bundle.scoped.esm.js": "./bundle.scoped.esm.js",
40
+ "./*": "./dist/*"
41
+ },
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "https://github.com/SAP/ui5-webcomponents.git",
45
+ "directory": "packages/ai"
46
+ },
47
+ "dependencies": {
48
+ "@ui5/webcomponents": "0.0.0-bf8366eb6",
49
+ "@ui5/webcomponents-base": "0.0.0-bf8366eb6",
50
+ "@ui5/webcomponents-icons": "0.0.0-bf8366eb6",
51
+ "@ui5/webcomponents-theming": "0.0.0-bf8366eb6"
52
+ },
53
+ "devDependencies": {
54
+ "@ui5/webcomponents-tools": "0.0.0-bf8366eb6",
55
+ "chromedriver": "^125.0.0"
56
+ }
57
+ }
package/src/Button.hbs ADDED
@@ -0,0 +1,3 @@
1
+ <ui5-button icon="{{icon}}" end-icon="{{endIcon}}">
2
+ <slot></slot>
3
+ </ui5-button>
@@ -0,0 +1,2 @@
1
+ #This is the resource bundle for the UI5 Web Components
2
+ #__ldi.translation.uuid=96bea51a-d5e3-46f0-b1d1-514d97be02ec
File without changes
@@ -0,0 +1,2 @@
1
+ :root {
2
+ }
@@ -0,0 +1 @@
1
+ @import "../base/Button-parameters.css";
@@ -0,0 +1 @@
1
+ @import "../base/Button-parameters.css";
@@ -0,0 +1 @@
1
+ @import "../base/Button-parameters.css";
@@ -0,0 +1 @@
1
+ @import "../base/Button-parameters.css";
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "include": ["src/**/*", "global.d.ts"],
3
+ "compilerOptions": {
4
+ "target": "ES2021",
5
+ "lib": ["DOM", "DOM.Iterable", "ES2023"],
6
+ // Generate d.ts files
7
+ "declaration": true,
8
+ "outDir": "dist",
9
+ "skipLibCheck": true,
10
+ "sourceMap": true,
11
+ "inlineSources": true,
12
+ "strict": true,
13
+ "moduleResolution": "node",
14
+ "experimentalDecorators": true,
15
+ "importsNotUsedAsValues": "preserve",
16
+ "ignoreDeprecations": "5.0",
17
+ "paths": {
18
+ "@ui5/webcomponents-base/dist/*": ["../base/src/*"],
19
+ "@ui5/webcomponents/dist/*": ["../main/src/*"],
20
+ "@ui5/webcomponents-theming/dist/*": ["../theming/src/*"],
21
+ },
22
+ },
23
+ "references": [
24
+ { "path": "../base" },
25
+ { "path": "../main" },
26
+ { "path": "../theming" },
27
+ ]
28
+ }