@ui5/webcomponents-ai 0.0.0-9261ac932 → 0.0.0-acc6fea96
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 +160 -0
- package/README.md +4 -3
- package/dist/Button.d.ts +45 -32
- package/dist/Button.js +118 -82
- package/dist/Button.js.map +1 -1
- package/dist/ButtonState.d.ts +7 -0
- package/dist/ButtonState.js +13 -0
- package/dist/ButtonState.js.map +1 -1
- package/dist/ButtonTemplate.d.ts +2 -0
- package/dist/ButtonTemplate.js +6 -0
- package/dist/ButtonTemplate.js.map +1 -0
- package/dist/PromptInput.d.ts +5 -1
- package/dist/PromptInput.js +4 -13
- package/dist/PromptInput.js.map +1 -1
- package/dist/PromptInputTemplate.d.ts +2 -0
- package/dist/PromptInputTemplate.js +12 -0
- package/dist/PromptInputTemplate.js.map +1 -0
- package/dist/css/themes/Button.css +1 -1
- package/dist/custom-elements-internal.json +54 -2
- package/dist/custom-elements.json +47 -2
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/themes/Button.css.d.ts +2 -3
- package/dist/generated/themes/Button.css.js +2 -3
- package/dist/generated/themes/Button.css.js.map +1 -1
- package/dist/generated/themes/PromptInput.css.d.ts +2 -3
- package/dist/generated/themes/PromptInput.css.js +2 -3
- package/dist/generated/themes/PromptInput.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +2 -3
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -2
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +2 -3
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -2
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +2 -3
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -2
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +2 -3
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -2
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vscode.html-custom-data.json +11 -1
- package/dist/web-types.json +31 -3
- package/package.json +7 -7
- package/src/ButtonTemplate.tsx +26 -0
- package/src/PromptInputTemplate.tsx +49 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +2 -2
- package/src/themes/Button.css +75 -21
- package/dist/generated/templates/ButtonTemplate.lit.d.ts +0 -4
- package/dist/generated/templates/ButtonTemplate.lit.js +0 -6
- package/dist/generated/templates/ButtonTemplate.lit.js.map +0 -1
- package/dist/generated/templates/PromptInputTemplate.lit.d.ts +0 -4
- package/dist/generated/templates/PromptInputTemplate.lit.js +0 -8
- package/dist/generated/templates/PromptInputTemplate.lit.js.map +0 -1
- package/src/Button.hbs +0 -17
- package/src/PromptInput.hbs +0 -36
@@ -3,7 +3,6 @@ import defaultThemeBase from "@ui5/webcomponents-theming/dist/generated/themes/s
|
|
3
3
|
import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
|
4
4
|
registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
|
5
5
|
registerThemePropertiesLoader("@ui5/webcomponents-ai", "sap_horizon", async () => defaultTheme);
|
6
|
-
|
7
|
-
|
8
|
-
export default styleData;
|
6
|
+
export default `.ai-prompt-input-button{margin-left:.5rem;margin-top:3px}.ai-prompt-input-wrapper{display:flex;flex-direction:column;width:270px}.ai-prompt-input-form-wrapper{display:flex;flex:1}.ai-prompt-input-counter{font-size:.75rem;align-self:flex-end}#input{width:100%}.ai-prompt-inner-input-wrapper{display:flex;flex-direction:column;flex:1}
|
7
|
+
`;
|
9
8
|
//# sourceMappingURL=PromptInput.css.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PromptInput.css.js","sourceRoot":"","sources":["../../../src/generated/themes/PromptInput.css.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"PromptInput.css.js","sourceRoot":"","sources":["../../../src/generated/themes/PromptInput.css.ts"],"names":[],"mappings":"AAAA,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;AAChG,eAAe;CACd,CAAA","sourcesContent":["import { 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);\nexport default `.ai-prompt-input-button{margin-left:.5rem;margin-top:3px}.ai-prompt-input-wrapper{display:flex;flex-direction:column;width:270px}.ai-prompt-input-form-wrapper{display:flex;flex:1}.ai-prompt-input-counter{font-size:.75rem;align-self:flex-end}#input{width:100%}.ai-prompt-inner-input-wrapper{display:flex;flex-direction:column;flex:1}\n`"]}
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export default styleData;
|
1
|
+
declare const _default: "";
|
2
|
+
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon/parameters-bundle.css.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAA","sourcesContent":["export default ``"]}
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export default styleData;
|
1
|
+
declare const _default: "";
|
2
|
+
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_dark/parameters-bundle.css.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_dark/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAA","sourcesContent":["export default ``"]}
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export default styleData;
|
1
|
+
declare const _default: "";
|
2
|
+
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcb/parameters-bundle.css.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcb/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAA","sourcesContent":["export default ``"]}
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export default styleData;
|
1
|
+
declare const _default: "";
|
2
|
+
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcw/parameters-bundle.css.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcw/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAA","sourcesContent":["export default ``"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["../src/assets.ts","../src/button.ts","../src/buttonstate.ts","../src/promptinput.ts","../src/bundle.esm.ts","../src/bundle.scoped.config.ts","../src/bundle.scoped.esm.ts","../src/generated/i18n/i18n-defaults.ts","../src/generated/json-imports/themes-fetch.ts","../src/generated/json-imports/themes.ts","../src/generated/json-imports/i18n-fetch.ts","../src/generated/json-imports/i18n.ts","../src/generated/
|
1
|
+
{"root":["../src/assets.ts","../src/button.ts","../src/buttonstate.ts","../src/buttontemplate.tsx","../src/promptinput.ts","../src/promptinputtemplate.tsx","../src/bundle.esm.ts","../src/bundle.scoped.config.ts","../src/bundle.scoped.esm.ts","../src/generated/i18n/i18n-defaults.ts","../src/generated/json-imports/themes-fetch.ts","../src/generated/json-imports/themes.ts","../src/generated/json-imports/i18n-fetch.ts","../src/generated/json-imports/i18n.ts","../src/generated/themes/button.css.ts","../src/generated/themes/promptinput.css.ts","../src/generated/themes/sap_horizon/parameters-bundle.css.ts","../src/generated/themes/sap_horizon_dark/parameters-bundle.css.ts","../src/generated/themes/sap_horizon_hcb/parameters-bundle.css.ts","../src/generated/themes/sap_horizon_hcw/parameters-bundle.css.ts"],"version":"5.6.2"}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"tags": [
|
4
4
|
{
|
5
5
|
"name": "ui5-ai-button",
|
6
|
-
"description": "### Overview\n\nThe `ui5-ai-button` component
|
6
|
+
"description": "### Overview\n\nThe `ui5-ai-button` component serves as a button for AI-related scenarios. Users can trigger actions by clicking or tapping the `ui5-ai-button`\nor by pressing keyboard keys like [Enter] or [Space].\n\n### Usage\n\nFor the `ui5-ai-button` user interface, you can define one or more button states by placing `ui5-ai-button-state` components in their default slot.\nEach state has a name for identification and can include text, an icon, and an end icon, as needed for its purpose.\nYou can define a split mode for the `ui5-ai-button`, which will results in displaying an arrow button for additional actions.\n\nYou can choose from a set of predefined designs for `ui5-ai-button` (as in `ui5-button`) to match the desired styling.\n\nThe `ui5-ai-button` can be activated by clicking or tapping it. You can change the button state in the click event handler. When the button is\nin split mode, you can activate the default button action by clicking or tapping it, or by pressing keyboard keys like [Enter] or [Space].\nYou can activate the arrow button by clicking or tapping it, or by pressing keyboard keys like [Arrow Up], [Arrow Down], or [F4].\nTo display additional actions, you can attach a menu to the arrow button.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Button.js\";`\n\n\n---\n\n\n\n\n### **Events:**\n - **click** - Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key.\n- **arrow-click** - Fired when the component is in split mode and after the arrow button\nis activated either by clicking or tapping it or by using the [Arrow Up] / [Arrow Down],\n[Alt] + [Arrow Up]/ [Arrow Down], or [F4] keyboard keys.\n\n### **Slots:**\n - **default** - Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that\nyou only use `ui5-ai-button-state` components in order to preserve the intended design.",
|
7
7
|
"attributes": [
|
8
8
|
{
|
9
9
|
"name": "design",
|
@@ -26,6 +26,11 @@
|
|
26
26
|
"name": "state",
|
27
27
|
"description": "Defines the current state of the component.",
|
28
28
|
"values": []
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"name": "active-arrow-button",
|
32
|
+
"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.",
|
33
|
+
"values": []
|
29
34
|
}
|
30
35
|
],
|
31
36
|
"references": []
|
@@ -53,6 +58,11 @@
|
|
53
58
|
"name": "end-icon",
|
54
59
|
"description": "Defines the icon to be displayed as graphical element within the component after the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
55
60
|
"values": []
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"name": "split-mode",
|
64
|
+
"description": "Defines if the component is in split button mode.",
|
65
|
+
"values": []
|
56
66
|
}
|
57
67
|
],
|
58
68
|
"references": []
|
package/dist/web-types.json
CHANGED
@@ -1,14 +1,14 @@
|
|
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": "
|
4
|
+
"version": "2.6.0",
|
5
5
|
"description-markup": "markdown",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"elements": [
|
9
9
|
{
|
10
10
|
"name": "ui5-ai-button",
|
11
|
-
"description": "### Overview\n\nThe `ui5-ai-button` component
|
11
|
+
"description": "### Overview\n\nThe `ui5-ai-button` component serves as a button for AI-related scenarios. Users can trigger actions by clicking or tapping the `ui5-ai-button`\nor by pressing keyboard keys like [Enter] or [Space].\n\n### Usage\n\nFor the `ui5-ai-button` user interface, you can define one or more button states by placing `ui5-ai-button-state` components in their default slot.\nEach state has a name for identification and can include text, an icon, and an end icon, as needed for its purpose.\nYou can define a split mode for the `ui5-ai-button`, which will results in displaying an arrow button for additional actions.\n\nYou can choose from a set of predefined designs for `ui5-ai-button` (as in `ui5-button`) to match the desired styling.\n\nThe `ui5-ai-button` can be activated by clicking or tapping it. You can change the button state in the click event handler. When the button is\nin split mode, you can activate the default button action by clicking or tapping it, or by pressing keyboard keys like [Enter] or [Space].\nYou can activate the arrow button by clicking or tapping it, or by pressing keyboard keys like [Arrow Up], [Arrow Down], or [F4].\nTo display additional actions, you can attach a menu to the arrow button.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Button.js\";`\n---\n\n\n### **Events:**\n - **click** - Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key.\n- **arrow-click** - Fired when the component is in split mode and after the arrow button\nis activated either by clicking or tapping it or by using the [Arrow Up] / [Arrow Down],\n[Alt] + [Arrow Up]/ [Arrow Down], or [F4] keyboard keys.\n\n### **Slots:**\n - **default** - Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that\nyou only use `ui5-ai-button-state` components in order to preserve the intended design.",
|
12
12
|
"doc-url": "",
|
13
13
|
"attributes": [
|
14
14
|
{
|
@@ -28,18 +28,27 @@
|
|
28
28
|
"name": "state",
|
29
29
|
"description": "Defines the current state of the component.",
|
30
30
|
"value": { "type": "string | undefined", "default": "undefined" }
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "active-arrow-button",
|
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
|
+
"value": { "type": "boolean", "default": "false" }
|
31
36
|
}
|
32
37
|
],
|
33
38
|
"slots": [
|
34
39
|
{
|
35
40
|
"name": "default",
|
36
|
-
"description": "Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that
|
41
|
+
"description": "Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that\nyou only use `ui5-ai-button-state` components in order to preserve the intended design."
|
37
42
|
}
|
38
43
|
],
|
39
44
|
"events": [
|
40
45
|
{
|
41
46
|
"name": "click",
|
42
47
|
"description": "Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key."
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"name": "arrow-click",
|
51
|
+
"description": "Fired when the component is in split mode and after the arrow button\nis activated either by clicking or tapping it or by using the [Arrow Up] / [Arrow Down],\n[Alt] + [Arrow Up]/ [Arrow Down], or [F4] keyboard keys."
|
43
52
|
}
|
44
53
|
],
|
45
54
|
"js": {
|
@@ -60,12 +69,21 @@
|
|
60
69
|
"name": "state",
|
61
70
|
"description": "Defines the current state of the component.",
|
62
71
|
"value": { "type": "string | undefined" }
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"name": "active-arrow-button",
|
75
|
+
"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
|
+
"value": { "type": "boolean" }
|
63
77
|
}
|
64
78
|
],
|
65
79
|
"events": [
|
66
80
|
{
|
67
81
|
"name": "click",
|
68
82
|
"description": "Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key."
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"name": "arrow-click",
|
86
|
+
"description": "Fired when the component is in split mode and after the arrow button\nis activated either by clicking or tapping it or by using the [Arrow Up] / [Arrow Down],\n[Alt] + [Arrow Up]/ [Arrow Down], or [F4] keyboard keys."
|
69
87
|
}
|
70
88
|
]
|
71
89
|
}
|
@@ -94,6 +112,11 @@
|
|
94
112
|
"name": "end-icon",
|
95
113
|
"description": "Defines the icon to be displayed as graphical element within the component after the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
96
114
|
"value": { "type": "string | undefined", "default": "undefined" }
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"name": "split-mode",
|
118
|
+
"description": "Defines if the component is in split button mode.",
|
119
|
+
"value": { "type": "boolean", "default": "false" }
|
97
120
|
}
|
98
121
|
],
|
99
122
|
"events": [],
|
@@ -118,6 +141,11 @@
|
|
118
141
|
"name": "end-icon",
|
119
142
|
"description": "Defines the icon to be displayed as graphical element within the component after the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
120
143
|
"value": { "type": "string | undefined" }
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"name": "split-mode",
|
147
|
+
"description": "Defines if the component is in split button mode.",
|
148
|
+
"value": { "type": "boolean" }
|
121
149
|
}
|
122
150
|
],
|
123
151
|
"events": []
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-ai",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-acc6fea96",
|
4
4
|
"description": "UI5 Web Components: webcomponents.ai",
|
5
5
|
"ui5": {
|
6
6
|
"webComponentsPackage": true
|
@@ -45,13 +45,13 @@
|
|
45
45
|
"directory": "packages/ai"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@ui5/webcomponents": "0.0.0-
|
49
|
-
"@ui5/webcomponents-base": "0.0.0-
|
50
|
-
"@ui5/webcomponents-icons": "0.0.0-
|
51
|
-
"@ui5/webcomponents-theming": "0.0.0-
|
48
|
+
"@ui5/webcomponents": "0.0.0-acc6fea96",
|
49
|
+
"@ui5/webcomponents-base": "0.0.0-acc6fea96",
|
50
|
+
"@ui5/webcomponents-icons": "0.0.0-acc6fea96",
|
51
|
+
"@ui5/webcomponents-theming": "0.0.0-acc6fea96"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
|
-
"@ui5/webcomponents-tools": "0.0.0-
|
55
|
-
"chromedriver": "^
|
54
|
+
"@ui5/webcomponents-tools": "0.0.0-acc6fea96",
|
55
|
+
"chromedriver": "^131.0.0"
|
56
56
|
}
|
57
57
|
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import SplitButton from "@ui5/webcomponents/dist/SplitButton.js";
|
2
|
+
import type Button from "./Button.js";
|
3
|
+
|
4
|
+
export default function ButtonTemplate(this: Button) {
|
5
|
+
return (<>
|
6
|
+
<SplitButton
|
7
|
+
class="ui5-ai-button-inner"
|
8
|
+
design={this.design}
|
9
|
+
icon={this._stateIcon}
|
10
|
+
disabled={this.disabled}
|
11
|
+
_endIcon={this._stateEndIcon}
|
12
|
+
_hideArrowButton={this._hideArrowButton}
|
13
|
+
onClick={this._onClick}
|
14
|
+
onArrowClick={this._onArrowClick}
|
15
|
+
>
|
16
|
+
{this._hasText && (
|
17
|
+
<div class="ui5-ai-button-text">{this._stateText}</div>
|
18
|
+
)}
|
19
|
+
</SplitButton>
|
20
|
+
|
21
|
+
<SplitButton
|
22
|
+
class="ui5-ai-button-hidden"
|
23
|
+
design={this.design}
|
24
|
+
/>
|
25
|
+
</>);
|
26
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import type PromptInput from "./PromptInput.js";
|
2
|
+
import Label from "@ui5/webcomponents/dist/Label.js";
|
3
|
+
import Input from "@ui5/webcomponents/dist/Input.js";
|
4
|
+
import Button from "@ui5/webcomponents/dist/Button.js";
|
5
|
+
import paperPlane from "@ui5/webcomponents-icons/dist/paper-plane.js";
|
6
|
+
|
7
|
+
export default function PromptInputTemplate(this: PromptInput) {
|
8
|
+
return (
|
9
|
+
<div class="ai-prompt-input-wrapper">
|
10
|
+
{this.label &&
|
11
|
+
<Label for="input">{this.label}</Label>
|
12
|
+
}
|
13
|
+
|
14
|
+
<div class="ai-prompt-input-form-wrapper">
|
15
|
+
<div class="ai-prompt-inner-input-wrapper">
|
16
|
+
<Input
|
17
|
+
id="input"
|
18
|
+
value={this.value}
|
19
|
+
placeholder={this.placeholder}
|
20
|
+
valueState={this.valueState}
|
21
|
+
showClearIcon={this.showClearIcon}
|
22
|
+
disabled={this.disabled}
|
23
|
+
readonly={this.readonly}
|
24
|
+
showSuggestions={this.showSuggestions}
|
25
|
+
onKeyDown={this._onkeydown}
|
26
|
+
onInput={this._onInnerInput}
|
27
|
+
onChange={this._onInnerChange}
|
28
|
+
onTypeAhead={this._onTypeAhead}
|
29
|
+
>
|
30
|
+
<slot></slot>
|
31
|
+
{this.valueStateMessage.length > 0 &&
|
32
|
+
<slot name="valueStateMessage" slot="valueStateMessage"></slot>
|
33
|
+
}
|
34
|
+
</Input>
|
35
|
+
|
36
|
+
{this.showExceededText &&
|
37
|
+
<Label class="ai-prompt-input-counter">{this._exceededText}</Label>
|
38
|
+
}
|
39
|
+
</div>
|
40
|
+
<Button
|
41
|
+
icon={paperPlane}
|
42
|
+
disabled={this._submitButtonDisabled}
|
43
|
+
class="ai-prompt-input-button"
|
44
|
+
design="Emphasized"
|
45
|
+
onClick={this._onButtonClick}>
|
46
|
+
</Button>
|
47
|
+
</div>
|
48
|
+
</div>);
|
49
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
|
2
|
-
PROMPT_INPUT_CHARACTERS_LEFT=
|
2
|
+
PROMPT_INPUT_CHARACTERS_LEFT=ApfX3Ybp+LpUZGYmQzr70w_{0} characters remaining
|
3
3
|
|
4
|
-
PROMPT_INPUT_CHARACTERS_EXCEEDED=
|
4
|
+
PROMPT_INPUT_CHARACTERS_EXCEEDED=j5kNPkXE7zFJCcHSJi7nbg_{0} characters over limit
|
package/src/themes/Button.css
CHANGED
@@ -24,64 +24,118 @@
|
|
24
24
|
width: fit-content;
|
25
25
|
}
|
26
26
|
|
27
|
+
:host .ui5-ai-button-inner {
|
28
|
+
width: 100%;
|
29
|
+
}
|
30
|
+
|
27
31
|
/* Animated parts */
|
28
32
|
|
29
|
-
:host
|
33
|
+
:host {
|
30
34
|
width: auto;
|
31
35
|
position: relative;
|
32
36
|
transition: width 0.18s cubic-bezier(0.67, 1, 0.95, 1.3) 0.12s;
|
33
37
|
}
|
34
38
|
|
35
|
-
:host ::part(
|
36
|
-
|
37
|
-
|
39
|
+
:host(.ui5-ai-button-menu-to-button) .ui5-ai-button-inner::part(button),
|
40
|
+
:host(.ui5-ai-button-fade-out:not([icon-only])) .ui5-ai-button-inner::part(button) {
|
41
|
+
justify-content: flex-start;
|
42
|
+
}
|
43
|
+
|
44
|
+
:host([icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(textButton),
|
45
|
+
:host(.ui5-ai-button-menu-to-button[icon-only]) .ui5-ai-button-inner::part(textButton) {
|
46
|
+
min-width: var(--_ui5_button_base_min_width) !important;
|
47
|
+
max-width: var(--_ui5_button_base_min_width) !important;
|
48
|
+
}
|
49
|
+
|
50
|
+
:host(.ui5-ai-button-menu-to-button) .ui5-ai-button-inner::part(button),
|
51
|
+
:host(.ui5-ai-button-fade-out:not([icon-only])) .ui5-ai-button-inner::part(button) {
|
52
|
+
justify-content: flex-start;
|
38
53
|
}
|
39
54
|
|
40
|
-
:host(
|
41
|
-
:host(
|
55
|
+
:host([icon-only]) .ui5-ai-button-inner[_end-icon]:not([_end-icon=""])::part(button),
|
56
|
+
:host([icon-only]) .ui5-ai-button-inner[_hide-arrow-button]::part(button) {
|
57
|
+
justify-content: flex-start;
|
58
|
+
padding-inline-start: var(--_ui5_button_base_padding);
|
59
|
+
}
|
60
|
+
|
61
|
+
:host(.ui5-ai-button-fade-in[icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(button) {
|
62
|
+
max-width: var(--_ui5_button_base_min_width);
|
63
|
+
}
|
64
|
+
|
65
|
+
:host([icon-only]) .ui5-ai-button-inner[_end-icon=""]::part(textButton),
|
66
|
+
:host(.ui5-ai-button-menu-to-button[icon-only]) .ui5-ai-button-inner::part(textButton) {
|
67
|
+
min-width: var(--_ui5_button_base_min_width);
|
68
|
+
max-width: var(--_ui5_button_base_min_width);
|
69
|
+
}
|
70
|
+
|
71
|
+
:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) .ui5-ai-button-text,
|
72
|
+
:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) ::part(endIcon),
|
73
|
+
:host(:not(.ui5-ai-button-fade-out):not(.ui5-ai-button-fade-mid):not(.ui5-ai-button-fade-in)) ::part(arrowButton) {
|
42
74
|
opacity: 1;
|
43
75
|
transform: translateY(0);
|
44
76
|
}
|
45
77
|
|
46
|
-
|
78
|
+
:host(.ui5-ai-button-button-to-menu) .ui5-ai-button-inner::part(endIcon),
|
79
|
+
:host(.ui5-ai-button-button-to-menu) .ui5-ai-button-inner::part(arrowButton) {
|
80
|
+
display: none;
|
81
|
+
transform: translateY(0);
|
82
|
+
opacity: 0;
|
83
|
+
}
|
47
84
|
|
48
|
-
:host(
|
85
|
+
:host(.ui5-ai-button-button-to-menu) .ui5-ai-button-inner::part(endIcon),
|
86
|
+
:host(.ui5-ai-button-button-to-menu) .ui5-ai-button-inner::part(arrowButton) {
|
87
|
+
display: none;
|
88
|
+
transform: translateY(0);
|
49
89
|
opacity: 0;
|
50
|
-
transform: translateY(-1rem);
|
51
|
-
transition: opacity 0.05s ease-in-out 0.025s, transform 0.10s ease-in-out 0s;
|
52
90
|
}
|
53
91
|
|
54
|
-
|
55
|
-
|
92
|
+
/* Fade out phase */
|
93
|
+
|
94
|
+
:host(.ui5-ai-button-fade-out) .ui5-ai-button-text {
|
56
95
|
opacity: 0;
|
57
96
|
transform: translateY(-1rem);
|
58
97
|
transition: opacity 0.06s ease-in-out 0.12s, transform 0.08s ease-in-out 0.12s;
|
59
98
|
}
|
60
99
|
|
61
|
-
|
100
|
+
:host(.ui5-ai-button-fade-out) ::part(icon)
|
101
|
+
{
|
102
|
+
opacity: 0;
|
103
|
+
transform: translateY(-1rem);
|
104
|
+
transition: opacity 0.05s ease-in-out 0.025s, transform 0.10s ease-in-out 0s;
|
105
|
+
}
|
62
106
|
|
63
|
-
:host(
|
107
|
+
:host(.ui5-ai-button-fade-out) ::part(endIcon) {
|
64
108
|
opacity: 0;
|
65
|
-
transform: translateY(1rem);
|
109
|
+
transform: translateY(-1rem);
|
110
|
+
transition: opacity 0.06s ease-in-out 0.12s, transform 0.08s ease-in-out 0.12s;
|
66
111
|
}
|
67
112
|
|
68
|
-
|
69
|
-
|
113
|
+
/* Fade middle phase */
|
114
|
+
|
115
|
+
:host(.ui5-ai-button-fade-mid) .ui5-ai-button-text,
|
116
|
+
:host(.ui5-ai-button-fade-mid) ::part(icon),
|
117
|
+
:host(.ui5-ai-button-fade-mid) ::part(endIcon),
|
118
|
+
:host(.ui5-ai-button-fade-mid) ::part(arrowButton) {
|
70
119
|
opacity: 0;
|
71
120
|
transform: translateY(1rem);
|
72
121
|
transition: none;
|
73
122
|
}
|
74
123
|
|
75
|
-
/* Fade in */
|
124
|
+
/* Fade in phase */
|
125
|
+
|
126
|
+
:host(.ui5-ai-button-fade-in) .ui5-ai-button-text {
|
127
|
+
opacity: 1;
|
128
|
+
transform: translateY(0);
|
129
|
+
transition: opacity 0.06s ease-in-out 0.12s, transform 0.08s ease-in-out 0.12s;
|
130
|
+
}
|
76
131
|
|
77
|
-
:host(
|
132
|
+
:host(.ui5-ai-button-fade-in) ::part(icon) {
|
78
133
|
opacity: 1;
|
79
134
|
transform: translateY(0);
|
80
135
|
transition: opacity 0.05s ease-in-out 0.025s, transform 0.10s ease-in-out 0s;
|
81
136
|
}
|
82
137
|
|
83
|
-
:host(
|
84
|
-
:host([fade-in]) ::part(endIcon) {
|
138
|
+
:host(.ui5-ai-button-fade-in) ::part(endIcon) {
|
85
139
|
opacity: 1;
|
86
140
|
transform: translateY(0);
|
87
141
|
transition: opacity 0.06s ease-in-out 0.12s, transform 0.08s ease-in-out 0.12s;
|
@@ -1,4 +0,0 @@
|
|
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;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/* eslint no-unused-vars: 0 */
|
2
|
-
import { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
3
|
-
function block0(context, tags, suffix) { return suffix ? html `<${scopeTag("ui5-button", tags, suffix)} class="ui5-ai-button-inner" design="${ifDefined(this.design)}" icon=${ifDefined(this._stateIcon)} end-icon=${ifDefined(this._stateEndIcon)} ?disabled="${this.disabled}" @click=${this._onclick}>${this._hasText ? block1.call(this, context, tags, suffix) : undefined}</${scopeTag("ui5-button", tags, suffix)}><${scopeTag("ui5-button", tags, suffix)} class="ui5-ai-button-hidden" design="${ifDefined(this.design)}"></${scopeTag("ui5-button", tags, suffix)}>` : html `<ui5-button class="ui5-ai-button-inner" design="${ifDefined(this.design)}" icon=${ifDefined(this._stateIcon)} end-icon=${ifDefined(this._stateEndIcon)} ?disabled="${this.disabled}" @click=${this._onclick}>${this._hasText ? block1.call(this, context, tags, suffix) : undefined}</ui5-button><ui5-button class="ui5-ai-button-hidden" design="${ifDefined(this.design)}"></ui5-button>`; }
|
4
|
-
function block1(context, tags, suffix) { return html `<div class="ui5-ai-button-text">${ifDefined(this._stateText)}</div>`; }
|
5
|
-
export default block0;
|
6
|
-
//# sourceMappingURL=ButtonTemplate.lit.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ButtonTemplate.lit.js","sourceRoot":"","sources":["../../../src/generated/templates/ButtonTemplate.lit.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,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,wCAAwC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,IAAI,CAAC,QAAQ,YAAY,IAAI,CAAC,QAAQ,IAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAU,KAAK,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,yCAAyC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAA,mDAAmD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,IAAI,CAAC,QAAQ,YAAY,IAAI,CAAC,QAAQ,IAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAU,iEAAiE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA,CAAC;AAC/+B,SAAS,MAAM,CAAgB,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,IAAI,CAAA,mCAAmC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA,CAAC;AAGpL,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\";\nimport type Button from \"../../Button.js\";\nimport 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)} class=\"ui5-ai-button-inner\" design=\"${ifDefined(this.design)}\" icon=${ifDefined(this._stateIcon)} end-icon=${ifDefined(this._stateEndIcon)} ?disabled=\"${this.disabled}\" @click=${this._onclick}>${ this._hasText ? block1.call(this, context, tags, suffix) : undefined }</${scopeTag(\"ui5-button\", tags, suffix)}><${scopeTag(\"ui5-button\", tags, suffix)} class=\"ui5-ai-button-hidden\" design=\"${ifDefined(this.design)}\"></${scopeTag(\"ui5-button\", tags, suffix)}>` : html`<ui5-button class=\"ui5-ai-button-inner\" design=\"${ifDefined(this.design)}\" icon=${ifDefined(this._stateIcon)} end-icon=${ifDefined(this._stateEndIcon)} ?disabled=\"${this.disabled}\" @click=${this._onclick}>${ this._hasText ? block1.call(this, context, tags, suffix) : undefined }</ui5-button><ui5-button class=\"ui5-ai-button-hidden\" design=\"${ifDefined(this.design)}\"></ui5-button>`;}\nfunction block1 (this: Button, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class=\"ui5-ai-button-text\">${ifDefined(this._stateText)}</div>`;}\n\n\nexport default block0;"]}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import type UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
2
|
-
import type PromptInput from "../../PromptInput.js";
|
3
|
-
declare function block0(this: PromptInput, context: UI5Element, tags: string[], suffix: string | undefined): import("lit-html").TemplateResult;
|
4
|
-
export default block0;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/* eslint no-unused-vars: 0 */
|
2
|
-
import { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
3
|
-
function block0(context, tags, suffix) { return suffix ? html `<div class="ai-prompt-input-wrapper">${this.label ? block1.call(this, context, tags, suffix) : undefined}<div class="ai-prompt-input-form-wrapper"><div class="ai-prompt-inner-input-wrapper"><${scopeTag("ui5-input", tags, suffix)} id="input" .value="${ifDefined(this.value)}" placeholder="${ifDefined(this.placeholder)}" value-state="${ifDefined(this.valueState)}" ?show-clear-icon=${this.showClearIcon} ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?show-suggestions="${this.showSuggestions}" @keydown="${this._onkeydown}" @ui5-input="${ifDefined(this._onInnerInput)}" @ui5-change="${ifDefined(this._onInnerChange)}" @ui5-type-ahead="${ifDefined(this._onTypeAhead)}"><slot></slot>${this.valueStateMessage.length ? block2.call(this, context, tags, suffix) : undefined}</${scopeTag("ui5-input", tags, suffix)}>${this.showExceededText ? block3.call(this, context, tags, suffix) : undefined}</div><${scopeTag("ui5-button", tags, suffix)} ?disabled=${this._submitButtonDisabled} class="ai-prompt-input-button" design="Emphasized" icon="paper-plane" @click="${this._onButtonClick}"></${scopeTag("ui5-button", tags, suffix)}></div></div>` : html `<div class="ai-prompt-input-wrapper">${this.label ? block1.call(this, context, tags, suffix) : undefined}<div class="ai-prompt-input-form-wrapper"><div class="ai-prompt-inner-input-wrapper"><ui5-input id="input" .value="${ifDefined(this.value)}" placeholder="${ifDefined(this.placeholder)}" value-state="${ifDefined(this.valueState)}" ?show-clear-icon=${this.showClearIcon} ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?show-suggestions="${this.showSuggestions}" @keydown="${this._onkeydown}" @ui5-input="${ifDefined(this._onInnerInput)}" @ui5-change="${ifDefined(this._onInnerChange)}" @ui5-type-ahead="${ifDefined(this._onTypeAhead)}"><slot></slot>${this.valueStateMessage.length ? block2.call(this, context, tags, suffix) : undefined}</ui5-input>${this.showExceededText ? block3.call(this, context, tags, suffix) : undefined}</div><ui5-button ?disabled=${this._submitButtonDisabled} class="ai-prompt-input-button" design="Emphasized" icon="paper-plane" @click="${this._onButtonClick}"></ui5-button></div></div>`; }
|
4
|
-
function block1(context, tags, suffix) { return suffix ? html `<${scopeTag("ui5-label", tags, suffix)} for="input">${ifDefined(this.label)}</${scopeTag("ui5-label", tags, suffix)}>` : html `<ui5-label for="input">${ifDefined(this.label)}</ui5-label>`; }
|
5
|
-
function block2(context, tags, suffix) { return html `<slot name="valueStateMessage" slot="valueStateMessage"></slot>`; }
|
6
|
-
function block3(context, tags, suffix) { return suffix ? html `<${scopeTag("ui5-label", tags, suffix)} class="ai-prompt-input-counter">${ifDefined(this._exceededText)}</${scopeTag("ui5-label", tags, suffix)}>` : html `<ui5-label class="ai-prompt-input-counter">${ifDefined(this._exceededText)}</ui5-label>`; }
|
7
|
-
export default block0;
|
8
|
-
//# sourceMappingURL=PromptInputTemplate.lit.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PromptInputTemplate.lit.js","sourceRoot":"","sources":["../../../src/generated/templates/PromptInputTemplate.lit.ts"],"names":[],"mappings":"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","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\";\nimport type PromptInput from \"../../PromptInput.js\";\nimport type { ClassMapValue } from \"@ui5/webcomponents-base/dist/types.js\";\n\t\nfunction block0 (this: PromptInput, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<div class=\"ai-prompt-input-wrapper\">${ this.label ? block1.call(this, context, tags, suffix) : undefined }<div class=\"ai-prompt-input-form-wrapper\"><div class=\"ai-prompt-inner-input-wrapper\"><${scopeTag(\"ui5-input\", tags, suffix)} id=\"input\" .value=\"${ifDefined(this.value)}\" placeholder=\"${ifDefined(this.placeholder)}\" value-state=\"${ifDefined(this.valueState)}\" ?show-clear-icon=${this.showClearIcon} ?disabled=\"${this.disabled}\" ?readonly=\"${this.readonly}\" ?show-suggestions=\"${this.showSuggestions}\" @keydown=\"${this._onkeydown}\" @ui5-input=\"${ifDefined(this._onInnerInput)}\" @ui5-change=\"${ifDefined(this._onInnerChange)}\" @ui5-type-ahead=\"${ifDefined(this._onTypeAhead)}\"><slot></slot>${ this.valueStateMessage.length ? block2.call(this, context, tags, suffix) : undefined }</${scopeTag(\"ui5-input\", tags, suffix)}>${ this.showExceededText ? block3.call(this, context, tags, suffix) : undefined }</div><${scopeTag(\"ui5-button\", tags, suffix)} ?disabled=${this._submitButtonDisabled} class=\"ai-prompt-input-button\" design=\"Emphasized\" icon=\"paper-plane\" @click=\"${this._onButtonClick}\"></${scopeTag(\"ui5-button\", tags, suffix)}></div></div>` : html`<div class=\"ai-prompt-input-wrapper\">${ this.label ? block1.call(this, context, tags, suffix) : undefined }<div class=\"ai-prompt-input-form-wrapper\"><div class=\"ai-prompt-inner-input-wrapper\"><ui5-input id=\"input\" .value=\"${ifDefined(this.value)}\" placeholder=\"${ifDefined(this.placeholder)}\" value-state=\"${ifDefined(this.valueState)}\" ?show-clear-icon=${this.showClearIcon} ?disabled=\"${this.disabled}\" ?readonly=\"${this.readonly}\" ?show-suggestions=\"${this.showSuggestions}\" @keydown=\"${this._onkeydown}\" @ui5-input=\"${ifDefined(this._onInnerInput)}\" @ui5-change=\"${ifDefined(this._onInnerChange)}\" @ui5-type-ahead=\"${ifDefined(this._onTypeAhead)}\"><slot></slot>${ this.valueStateMessage.length ? block2.call(this, context, tags, suffix) : undefined }</ui5-input>${ this.showExceededText ? block3.call(this, context, tags, suffix) : undefined }</div><ui5-button ?disabled=${this._submitButtonDisabled} class=\"ai-prompt-input-button\" design=\"Emphasized\" icon=\"paper-plane\" @click=\"${this._onButtonClick}\"></ui5-button></div></div>`;}\nfunction block1 (this: PromptInput, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag(\"ui5-label\", tags, suffix)} for=\"input\">${ifDefined(this.label)}</${scopeTag(\"ui5-label\", tags, suffix)}>` : html`<ui5-label for=\"input\">${ifDefined(this.label)}</ui5-label>`;}\nfunction block2 (this: PromptInput, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<slot name=\"valueStateMessage\" slot=\"valueStateMessage\"></slot>`;}\nfunction block3 (this: PromptInput, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag(\"ui5-label\", tags, suffix)} class=\"ai-prompt-input-counter\">${ifDefined(this._exceededText)}</${scopeTag(\"ui5-label\", tags, suffix)}>` : html`<ui5-label class=\"ai-prompt-input-counter\">${ifDefined(this._exceededText)}</ui5-label>`;}\n\n\nexport default block0;"]}
|
package/src/Button.hbs
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
<ui5-button
|
2
|
-
class="ui5-ai-button-inner"
|
3
|
-
design="{{design}}"
|
4
|
-
icon={{_stateIcon}}
|
5
|
-
end-icon={{_stateEndIcon}}
|
6
|
-
?disabled="{{disabled}}"
|
7
|
-
@click={{_onclick}}
|
8
|
-
>
|
9
|
-
{{#if _hasText}}
|
10
|
-
<div class="ui5-ai-button-text">{{_stateText}}</div>
|
11
|
-
{{/if}}
|
12
|
-
</ui5-button>
|
13
|
-
|
14
|
-
<ui5-button
|
15
|
-
class="ui5-ai-button-hidden"
|
16
|
-
design="{{design}}"
|
17
|
-
></ui5-button>
|