@ui5/webcomponents-ai 0.0.0-d473b9686 → 0.0.0-f42e7c18c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +309 -0
- package/README.md +5 -7
- package/dist/Button.d.ts +108 -2
- package/dist/Button.js +203 -11
- package/dist/Button.js.map +1 -1
- package/dist/ButtonState.d.ts +60 -0
- package/dist/ButtonState.js +51 -0
- package/dist/ButtonState.js.map +1 -0
- 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 +154 -0
- package/dist/PromptInput.js +235 -0
- package/dist/PromptInput.js.map +1 -0
- package/dist/PromptInputTemplate.d.ts +2 -0
- package/dist/PromptInputTemplate.js +12 -0
- package/dist/PromptInputTemplate.js.map +1 -0
- package/dist/bundle.esm.js +3 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.scoped.config.d.ts +1 -0
- package/dist/bundle.scoped.config.js +3 -0
- package/dist/bundle.scoped.config.js.map +1 -0
- package/dist/bundle.scoped.esm.d.ts +2 -1
- package/dist/bundle.scoped.esm.js +2 -2
- package/dist/bundle.scoped.esm.js.map +1 -1
- package/dist/css/themes/Button.css +1 -0
- package/dist/css/themes/PromptInput.css +1 -0
- package/dist/custom-elements-internal.json +557 -1
- package/dist/custom-elements.json +491 -1
- package/dist/generated/assets/i18n/messagebundle_ar.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_bg.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ca.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cs.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cy.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_da.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_de.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_el.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_es.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_et.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hu.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_it.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_iw.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ja.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_kk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ko.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_lt.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_lv.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_mk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ms.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_nl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_no.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sh.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sv.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_tr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_uk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_vi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -0
- package/dist/generated/i18n/i18n-defaults.d.ts +4 -1
- package/dist/generated/i18n/i18n-defaults.js +3 -1
- package/dist/generated/i18n/i18n-defaults.js.map +1 -1
- package/dist/generated/json-imports/Themes-fetch.d.ts +1 -0
- package/dist/generated/json-imports/Themes-fetch.js +21 -0
- package/dist/generated/json-imports/Themes-fetch.js.map +1 -0
- package/dist/generated/json-imports/Themes.js.map +1 -1
- package/dist/generated/json-imports/i18n-fetch.d.ts +1 -0
- package/dist/generated/json-imports/i18n-fetch.js +118 -0
- package/dist/generated/json-imports/i18n-fetch.js.map +1 -0
- package/dist/generated/json-imports/i18n.d.ts +1 -0
- package/dist/generated/json-imports/i18n.js +117 -1
- package/dist/generated/json-imports/i18n.js.map +1 -1
- package/dist/generated/themes/Button.css.js +2 -1
- package/dist/generated/themes/Button.css.js.map +1 -1
- package/dist/generated/themes/PromptInput.css.d.ts +3 -0
- package/dist/generated/themes/PromptInput.css.js +9 -0
- package/dist/generated/themes/PromptInput.css.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/vscode.html-custom-data.json +121 -1
- package/dist/web-types.json +287 -0
- package/package.json +7 -7
- package/src/ButtonTemplate.tsx +24 -0
- package/src/PromptInputTemplate.tsx +49 -0
- package/src/i18n/messagebundle.properties +6 -0
- package/src/i18n/messagebundle_ar.properties +4 -0
- package/src/i18n/messagebundle_bg.properties +4 -0
- package/src/i18n/messagebundle_ca.properties +4 -0
- package/src/i18n/messagebundle_cnr.properties +4 -0
- package/src/i18n/messagebundle_cs.properties +4 -0
- package/src/i18n/messagebundle_cy.properties +4 -0
- package/src/i18n/messagebundle_da.properties +4 -0
- package/src/i18n/messagebundle_de.properties +4 -0
- package/src/i18n/messagebundle_el.properties +4 -0
- package/src/i18n/messagebundle_en.properties +4 -0
- package/src/i18n/messagebundle_en_GB.properties +4 -0
- package/src/i18n/messagebundle_en_US_sappsd.properties +4 -0
- package/src/i18n/messagebundle_en_US_saprigi.properties +4 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +4 -0
- package/src/i18n/messagebundle_es.properties +4 -0
- package/src/i18n/messagebundle_es_MX.properties +4 -0
- package/src/i18n/messagebundle_et.properties +4 -0
- package/src/i18n/messagebundle_fi.properties +4 -0
- package/src/i18n/messagebundle_fr.properties +4 -0
- package/src/i18n/messagebundle_fr_CA.properties +4 -0
- package/src/i18n/messagebundle_hi.properties +4 -0
- package/src/i18n/messagebundle_hr.properties +4 -0
- package/src/i18n/messagebundle_hu.properties +4 -0
- package/src/i18n/messagebundle_id.properties +4 -0
- package/src/i18n/messagebundle_it.properties +4 -0
- package/src/i18n/messagebundle_iw.properties +4 -0
- package/src/i18n/messagebundle_ja.properties +4 -0
- package/src/i18n/messagebundle_kk.properties +4 -0
- package/src/i18n/messagebundle_ko.properties +4 -0
- package/src/i18n/messagebundle_lt.properties +4 -0
- package/src/i18n/messagebundle_lv.properties +4 -0
- package/src/i18n/messagebundle_mk.properties +4 -0
- package/src/i18n/messagebundle_ms.properties +4 -0
- package/src/i18n/messagebundle_nl.properties +4 -0
- package/src/i18n/messagebundle_no.properties +4 -0
- package/src/i18n/messagebundle_pl.properties +4 -0
- package/src/i18n/messagebundle_pt.properties +4 -0
- package/src/i18n/messagebundle_pt_PT.properties +4 -0
- package/src/i18n/messagebundle_ro.properties +4 -0
- package/src/i18n/messagebundle_ru.properties +4 -0
- package/src/i18n/messagebundle_sh.properties +4 -0
- package/src/i18n/messagebundle_sk.properties +4 -0
- package/src/i18n/messagebundle_sl.properties +4 -0
- package/src/i18n/messagebundle_sr.properties +4 -0
- package/src/i18n/messagebundle_sv.properties +4 -0
- package/src/i18n/messagebundle_th.properties +4 -0
- package/src/i18n/messagebundle_tr.properties +4 -0
- package/src/i18n/messagebundle_uk.properties +4 -0
- package/src/i18n/messagebundle_vi.properties +4 -0
- package/src/i18n/messagebundle_zh_CN.properties +4 -0
- package/src/i18n/messagebundle_zh_TW.properties +4 -0
- package/src/themes/Button.css +88 -0
- package/src/themes/PromptInput.css +30 -0
- package/tsconfig.json +36 -26
- package/dist/generated/templates/ButtonTemplate.lit.d.ts +0 -4
- package/dist/generated/templates/ButtonTemplate.lit.js +0 -5
- package/dist/generated/templates/ButtonTemplate.lit.js.map +0 -1
- package/src/Button.hbs +0 -3
package/src/themes/Button.css
CHANGED
@@ -0,0 +1,88 @@
|
|
1
|
+
:host {
|
2
|
+
display: inline-block;
|
3
|
+
}
|
4
|
+
|
5
|
+
:host([disabled]) {
|
6
|
+
pointer-events: none;
|
7
|
+
}
|
8
|
+
|
9
|
+
.ui5-ai-button-text {
|
10
|
+
display: inline-block;
|
11
|
+
}
|
12
|
+
|
13
|
+
:host([icon-only]) .ui5-ai-button-text {
|
14
|
+
min-width: 0;
|
15
|
+
margin-inline-start: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
.ui5-ai-button-hidden {
|
19
|
+
position: absolute;
|
20
|
+
top: -10000px;
|
21
|
+
left: -10000px;
|
22
|
+
visibility: hidden;
|
23
|
+
display: block;
|
24
|
+
width: fit-content;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Animated parts */
|
28
|
+
|
29
|
+
:host [ui5-button]:not(.ui5-ai-button-hidden) {
|
30
|
+
width: auto;
|
31
|
+
position: relative;
|
32
|
+
transition: width 0.18s cubic-bezier(0.67, 1, 0.95, 1.3) 0.12s;
|
33
|
+
}
|
34
|
+
|
35
|
+
:host ::part(icon) {
|
36
|
+
opacity: 1;
|
37
|
+
transform: translateY(0);
|
38
|
+
}
|
39
|
+
|
40
|
+
:host(:not([fade-out]):not([fade-mid]):not([fade-in])) .ui5-ai-button-text,
|
41
|
+
:host(:not([fade-out]):not([fade-mid]):not([fade-in])) ::part(endIcon) {
|
42
|
+
opacity: 1;
|
43
|
+
transform: translateY(0);
|
44
|
+
}
|
45
|
+
|
46
|
+
/* Fade out */
|
47
|
+
|
48
|
+
:host([fade-out]:not([fade-mid])) ::part(icon) {
|
49
|
+
opacity: 0;
|
50
|
+
transform: translateY(-1rem);
|
51
|
+
transition: opacity 0.05s ease-in-out 0.025s, transform 0.10s ease-in-out 0s;
|
52
|
+
}
|
53
|
+
|
54
|
+
:host([fade-out]:not([fade-mid])) .ui5-ai-button-text,
|
55
|
+
:host([fade-out]:not([fade-mid])) ::part(endIcon) {
|
56
|
+
opacity: 0;
|
57
|
+
transform: translateY(-1rem);
|
58
|
+
transition: opacity 0.06s ease-in-out 0.12s, transform 0.08s ease-in-out 0.12s;
|
59
|
+
}
|
60
|
+
|
61
|
+
/* Fade mid */
|
62
|
+
|
63
|
+
:host([fade-mid]) ::part(icon) {
|
64
|
+
opacity: 0;
|
65
|
+
transform: translateY(1rem);
|
66
|
+
}
|
67
|
+
|
68
|
+
:host([fade-mid]) .ui5-ai-button-text,
|
69
|
+
:host([fade-mid]) ::part(endIcon) {
|
70
|
+
opacity: 0;
|
71
|
+
transform: translateY(1rem);
|
72
|
+
transition: none;
|
73
|
+
}
|
74
|
+
|
75
|
+
/* Fade in */
|
76
|
+
|
77
|
+
:host([fade-in]) ::part(icon) {
|
78
|
+
opacity: 1;
|
79
|
+
transform: translateY(0);
|
80
|
+
transition: opacity 0.05s ease-in-out 0.025s, transform 0.10s ease-in-out 0s;
|
81
|
+
}
|
82
|
+
|
83
|
+
:host([fade-in]) .ui5-ai-button-text,
|
84
|
+
:host([fade-in]) ::part(endIcon) {
|
85
|
+
opacity: 1;
|
86
|
+
transform: translateY(0);
|
87
|
+
transition: opacity 0.06s ease-in-out 0.12s, transform 0.08s ease-in-out 0.12s;
|
88
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
.ai-prompt-input-button {
|
2
|
+
margin-left: .5rem;
|
3
|
+
margin-top: 3px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.ai-prompt-input-wrapper {
|
7
|
+
display: flex;
|
8
|
+
flex-direction: column;
|
9
|
+
width: 270px;
|
10
|
+
}
|
11
|
+
|
12
|
+
.ai-prompt-input-form-wrapper {
|
13
|
+
display: flex;
|
14
|
+
flex: 1;
|
15
|
+
}
|
16
|
+
|
17
|
+
.ai-prompt-input-counter {
|
18
|
+
font-size: .75rem;
|
19
|
+
align-self: flex-end;
|
20
|
+
}
|
21
|
+
|
22
|
+
#input {
|
23
|
+
width: 100%;
|
24
|
+
}
|
25
|
+
|
26
|
+
.ai-prompt-inner-input-wrapper {
|
27
|
+
display: flex;
|
28
|
+
flex-direction: column;
|
29
|
+
flex: 1;
|
30
|
+
}
|
package/tsconfig.json
CHANGED
@@ -1,28 +1,38 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
2
|
+
"extends": "@ui5/webcomponents-tools/tsconfig.json",
|
3
|
+
"include": [
|
4
|
+
"src/**/*",
|
5
|
+
"global.d.ts"
|
6
|
+
],
|
7
|
+
"compilerOptions": {
|
8
|
+
"outDir": "dist",
|
9
|
+
"experimentalDecorators": true,
|
10
|
+
"verbatimModuleSyntax": true,
|
11
|
+
"module": "NodeNext",
|
12
|
+
"moduleResolution": "NodeNext",
|
13
|
+
"jsx": "react-jsx",
|
14
|
+
"jsxImportSource": "@ui5/webcomponents-base",
|
15
|
+
"paths": {
|
16
|
+
"@ui5/webcomponents-base/dist/*": [
|
17
|
+
"../base/src/*"
|
18
|
+
],
|
19
|
+
"@ui5/webcomponents/dist/*": [
|
20
|
+
"../main/src/*"
|
21
|
+
],
|
22
|
+
"@ui5/webcomponents-theming/dist/*": [
|
23
|
+
"../theming/src/*"
|
24
|
+
],
|
25
|
+
},
|
26
|
+
},
|
27
|
+
"references": [
|
28
|
+
{
|
29
|
+
"path": "../base"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"path": "../main"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"path": "../theming"
|
36
|
+
},
|
37
|
+
]
|
28
38
|
}
|
@@ -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,5 +0,0 @@
|
|
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
|
@@ -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,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;"]}
|
package/src/Button.hbs
DELETED