@ui5/webcomponents-ai 0.0.0-b804b8982 → 0.0.0-c143e338b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +416 -0
- package/LICENSE.txt +201 -0
- package/README.md +10 -8
- package/dist/.tsbuildinfo +1 -1
- package/dist/Assets-fetch.d.ts +3 -0
- package/dist/Assets-fetch.js +6 -0
- package/dist/Assets-fetch.js.map +1 -0
- package/dist/Assets-node.d.ts +14 -0
- package/dist/Assets-node.js +17 -0
- package/dist/Assets-node.js.map +1 -0
- package/dist/Button.d.ts +37 -0
- package/dist/Button.js +56 -2
- package/dist/Button.js.map +1 -1
- package/dist/ButtonTemplate.js +1 -1
- package/dist/ButtonTemplate.js.map +1 -1
- package/dist/Input.d.ts +143 -0
- package/dist/Input.js +288 -0
- package/dist/Input.js.map +1 -0
- package/dist/InputTemplate.d.ts +10 -0
- package/dist/InputTemplate.js +28 -0
- package/dist/InputTemplate.js.map +1 -0
- package/dist/TextArea.d.ts +118 -0
- package/dist/TextArea.js +230 -0
- package/dist/TextArea.js.map +1 -0
- package/dist/TextAreaTemplate.d.ts +2 -0
- package/dist/TextAreaTemplate.js +13 -0
- package/dist/TextAreaTemplate.js.map +1 -0
- package/dist/ToolbarLabel.d.ts +39 -0
- package/dist/ToolbarLabel.js +67 -0
- package/dist/ToolbarLabel.js.map +1 -0
- package/dist/ToolbarLabelTemplate.d.ts +2 -0
- package/dist/ToolbarLabelTemplate.js +5 -0
- package/dist/ToolbarLabelTemplate.js.map +1 -0
- package/dist/Versioning.d.ts +95 -0
- package/dist/Versioning.js +187 -0
- package/dist/Versioning.js.map +1 -0
- package/dist/VersioningTemplate.d.ts +4 -0
- package/dist/VersioningTemplate.js +9 -0
- package/dist/VersioningTemplate.js.map +1 -0
- package/dist/WritingAssistant.d.ts +100 -0
- package/dist/WritingAssistant.js +197 -0
- package/dist/WritingAssistant.js.map +1 -0
- package/dist/WritingAssistantTemplate.d.ts +2 -0
- package/dist/WritingAssistantTemplate.js +12 -0
- package/dist/WritingAssistantTemplate.js.map +1 -0
- package/dist/bundle.esm.js +2 -0
- package/dist/bundle.esm.js.map +1 -1
- package/dist/css/themes/Button.css +1 -1
- package/dist/css/themes/Input.css +1 -0
- package/dist/css/themes/PromptInput.css +1 -1
- package/dist/css/themes/TextArea.css +1 -0
- package/dist/css/themes/Versioning.css +1 -0
- package/dist/css/themes/WritingAssistant.css +1 -0
- package/dist/custom-elements-internal.json +427 -0
- package/dist/custom-elements.json +368 -0
- package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_id.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
- package/dist/generated/i18n/i18n-defaults.d.ts +15 -1
- package/dist/generated/i18n/i18n-defaults.js +15 -1
- package/dist/generated/i18n/i18n-defaults.js.map +1 -1
- package/dist/generated/json-imports/Themes-fetch.js +1 -1
- package/dist/generated/json-imports/Themes-fetch.js.map +1 -1
- package/dist/generated/json-imports/Themes-node.d.ts +1 -0
- package/dist/generated/json-imports/Themes-node.js +21 -0
- package/dist/generated/json-imports/Themes-node.js.map +1 -0
- package/dist/generated/json-imports/Themes.js +1 -1
- package/dist/generated/json-imports/Themes.js.map +1 -1
- package/dist/generated/json-imports/i18n-fetch.js +3 -1
- package/dist/generated/json-imports/i18n-fetch.js.map +1 -1
- package/dist/generated/json-imports/i18n-node.d.ts +1 -0
- package/dist/generated/json-imports/i18n-node.js +120 -0
- package/dist/generated/json-imports/i18n-node.js.map +1 -0
- package/dist/generated/json-imports/i18n.js +3 -1
- package/dist/generated/json-imports/i18n.js.map +1 -1
- package/dist/generated/themes/Button.css.d.ts +1 -1
- package/dist/generated/themes/Button.css.js +3 -3
- package/dist/generated/themes/Button.css.js.map +1 -1
- package/dist/generated/themes/Input.css.d.ts +2 -0
- package/dist/generated/themes/Input.css.js +8 -0
- package/dist/generated/themes/Input.css.js.map +1 -0
- package/dist/generated/themes/PromptInput.css.d.ts +1 -1
- package/dist/generated/themes/PromptInput.css.js +3 -3
- package/dist/generated/themes/PromptInput.css.js.map +1 -1
- package/dist/generated/themes/TextArea.css.d.ts +2 -0
- package/dist/generated/themes/TextArea.css.js +8 -0
- package/dist/generated/themes/TextArea.css.js.map +1 -0
- package/dist/generated/themes/Versioning.css.d.ts +2 -0
- package/dist/generated/themes/Versioning.css.js +8 -0
- package/dist/generated/themes/Versioning.css.js.map +1 -0
- package/dist/generated/themes/WritingAssistant.css.d.ts +2 -0
- package/dist/generated/themes/WritingAssistant.css.js +8 -0
- package/dist/generated/themes/WritingAssistant.css.js.map +1 -0
- package/dist/vscode.html-custom-data.json +54 -0
- package/dist/web-types.json +174 -1
- package/package-scripts.cjs +3 -0
- package/package.json +24 -21
- package/src/ButtonTemplate.tsx +1 -0
- package/src/InputTemplate.tsx +197 -0
- package/src/TextArea.css +45 -0
- package/src/TextAreaTemplate.tsx +90 -0
- package/src/ToolbarLabelTemplate.tsx +9 -0
- package/src/VersioningTemplate.tsx +34 -0
- package/src/WritingAssistantTemplate.tsx +49 -0
- package/src/i18n/messagebundle.properties +43 -1
- package/src/i18n/messagebundle_ar.properties +20 -0
- package/src/i18n/messagebundle_bg.properties +20 -0
- package/src/i18n/messagebundle_ca.properties +20 -0
- package/src/i18n/messagebundle_cnr.properties +20 -0
- package/src/i18n/messagebundle_cs.properties +20 -0
- package/src/i18n/messagebundle_cy.properties +20 -0
- package/src/i18n/messagebundle_da.properties +20 -0
- package/src/i18n/messagebundle_de.properties +20 -0
- package/src/i18n/messagebundle_el.properties +20 -0
- package/src/i18n/messagebundle_en.properties +20 -0
- package/src/i18n/messagebundle_en_GB.properties +20 -0
- package/src/i18n/messagebundle_en_US_sappsd.properties +20 -0
- package/src/i18n/messagebundle_en_US_saprigi.properties +20 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +20 -0
- package/src/i18n/messagebundle_es.properties +20 -0
- package/src/i18n/messagebundle_es_MX.properties +21 -1
- package/src/i18n/messagebundle_et.properties +20 -0
- package/src/i18n/messagebundle_fi.properties +20 -0
- package/src/i18n/messagebundle_fr.properties +20 -0
- package/src/i18n/messagebundle_fr_CA.properties +20 -0
- package/src/i18n/messagebundle_hi.properties +20 -0
- package/src/i18n/messagebundle_hr.properties +22 -2
- package/src/i18n/messagebundle_hu.properties +20 -0
- package/src/i18n/messagebundle_id.properties +20 -0
- package/src/i18n/messagebundle_it.properties +20 -0
- package/src/i18n/messagebundle_iw.properties +20 -0
- package/src/i18n/messagebundle_ja.properties +20 -0
- package/src/i18n/messagebundle_kk.properties +20 -0
- package/src/i18n/messagebundle_ko.properties +20 -0
- package/src/i18n/messagebundle_lt.properties +20 -0
- package/src/i18n/messagebundle_lv.properties +20 -0
- package/src/i18n/messagebundle_mk.properties +20 -0
- package/src/i18n/messagebundle_ms.properties +20 -0
- package/src/i18n/messagebundle_nl.properties +20 -0
- package/src/i18n/messagebundle_no.properties +20 -0
- package/src/i18n/messagebundle_pl.properties +20 -0
- package/src/i18n/messagebundle_pt.properties +20 -0
- package/src/i18n/messagebundle_pt_PT.properties +20 -0
- package/src/i18n/messagebundle_ro.properties +20 -0
- package/src/i18n/messagebundle_ru.properties +20 -0
- package/src/i18n/messagebundle_sh.properties +20 -0
- package/src/i18n/messagebundle_sk.properties +20 -0
- package/src/i18n/messagebundle_sl.properties +20 -0
- package/src/i18n/messagebundle_sr.properties +20 -0
- package/src/i18n/messagebundle_sv.properties +20 -0
- package/src/i18n/messagebundle_th.properties +22 -2
- package/src/i18n/messagebundle_tr.properties +20 -0
- package/src/i18n/messagebundle_uk.properties +20 -0
- package/src/i18n/messagebundle_vi.properties +20 -0
- package/src/i18n/messagebundle_zh_CN.properties +20 -0
- package/src/i18n/messagebundle_zh_TW.properties +20 -0
- package/src/themes/Input.css +83 -0
- package/src/themes/PromptInput.css +5 -1
- package/src/themes/TextArea.css +45 -0
- package/src/themes/Versioning.css +20 -0
- package/src/themes/WritingAssistant.css +45 -0
- package/tsconfig.json +6 -0
- package/cypress/specs/Button.cy.tsx +0 -14
- package/cypress/support/commands.ts +0 -40
- package/cypress/support/component-index.html +0 -12
- package/cypress/support/component.ts +0 -36
- package/cypress/tsconfig.json +0 -43
|
@@ -2,3 +2,23 @@
|
|
|
2
2
|
PROMPT_INPUT_CHARACTERS_LEFT=còn lại {0} ký tự
|
|
3
3
|
|
|
4
4
|
PROMPT_INPUT_CHARACTERS_EXCEEDED={0} ký tự quá giới hạn
|
|
5
|
+
|
|
6
|
+
BUTTON_TOOLTIP_TEXT={0} có Trí tuệ nhân tạo
|
|
7
|
+
|
|
8
|
+
WRITING_ASSISTANT_LABEL=Thanh công cụ trợ lý soạn thảo Shift + F4
|
|
9
|
+
|
|
10
|
+
VERSIONING_PREVIOUS_BUTTON_TEXT=Phiên bản trước
|
|
11
|
+
|
|
12
|
+
VERSIONING_NEXT_BUTTON_TEXT=Phiên bản tiếp theo
|
|
13
|
+
|
|
14
|
+
WRITING_ASSISTANT_GENERATING_ANNOUNCEMENT=Dừng tạo (ESC)
|
|
15
|
+
|
|
16
|
+
WRITING_ASSISTANT_TOOLBAR_ACCESSIBLE_NAME=Thanh công cụ trợ lý soạn thảo
|
|
17
|
+
|
|
18
|
+
WRITING_ASSISTANT_BUTTON_ACCESSIBLE_NAME=Trợ lý soạn thảo
|
|
19
|
+
|
|
20
|
+
WRITING_ASSISTANT_BUTTON_TOOLTIP=Trợ lý soạn thảo (Shift + F4)
|
|
21
|
+
|
|
22
|
+
VERSIONING_PREVIOUS_BUTTON_TOOLTIP=Phiên bản trước
|
|
23
|
+
|
|
24
|
+
VERSIONING_NEXT_BUTTON_TOOLTIP=Phiên bản tiếp theo
|
|
@@ -2,3 +2,23 @@
|
|
|
2
2
|
PROMPT_INPUT_CHARACTERS_LEFT=剩余 {0} 个字符
|
|
3
3
|
|
|
4
4
|
PROMPT_INPUT_CHARACTERS_EXCEEDED=超过限制 {0} 个字符
|
|
5
|
+
|
|
6
|
+
BUTTON_TOOLTIP_TEXT={0} 具有人工智能
|
|
7
|
+
|
|
8
|
+
WRITING_ASSISTANT_LABEL=写作助手工具栏 Shift + F4
|
|
9
|
+
|
|
10
|
+
VERSIONING_PREVIOUS_BUTTON_TEXT=上一版本
|
|
11
|
+
|
|
12
|
+
VERSIONING_NEXT_BUTTON_TEXT=下一版本
|
|
13
|
+
|
|
14
|
+
WRITING_ASSISTANT_GENERATING_ANNOUNCEMENT=停止生成 (ESC)
|
|
15
|
+
|
|
16
|
+
WRITING_ASSISTANT_TOOLBAR_ACCESSIBLE_NAME=写作助手工具栏
|
|
17
|
+
|
|
18
|
+
WRITING_ASSISTANT_BUTTON_ACCESSIBLE_NAME=写作助手
|
|
19
|
+
|
|
20
|
+
WRITING_ASSISTANT_BUTTON_TOOLTIP=写作助手 (Shift + F4)
|
|
21
|
+
|
|
22
|
+
VERSIONING_PREVIOUS_BUTTON_TOOLTIP=上一版本
|
|
23
|
+
|
|
24
|
+
VERSIONING_NEXT_BUTTON_TOOLTIP=下一版本
|
|
@@ -2,3 +2,23 @@
|
|
|
2
2
|
PROMPT_INPUT_CHARACTERS_LEFT=剩下 {0} 個字元
|
|
3
3
|
|
|
4
4
|
PROMPT_INPUT_CHARACTERS_EXCEEDED=超過 {0} 個字元
|
|
5
|
+
|
|
6
|
+
BUTTON_TOOLTIP_TEXT={0} 搭配人工智慧
|
|
7
|
+
|
|
8
|
+
WRITING_ASSISTANT_LABEL=書寫助手工具列 Shift + F4
|
|
9
|
+
|
|
10
|
+
VERSIONING_PREVIOUS_BUTTON_TEXT=上一個版本
|
|
11
|
+
|
|
12
|
+
VERSIONING_NEXT_BUTTON_TEXT=下一個版本
|
|
13
|
+
|
|
14
|
+
WRITING_ASSISTANT_GENERATING_ANNOUNCEMENT=停止產生 (ESC)
|
|
15
|
+
|
|
16
|
+
WRITING_ASSISTANT_TOOLBAR_ACCESSIBLE_NAME=書寫助手工具列
|
|
17
|
+
|
|
18
|
+
WRITING_ASSISTANT_BUTTON_ACCESSIBLE_NAME=書寫助手
|
|
19
|
+
|
|
20
|
+
WRITING_ASSISTANT_BUTTON_TOOLTIP=書寫助手 (Shift + F4)
|
|
21
|
+
|
|
22
|
+
VERSIONING_PREVIOUS_BUTTON_TOOLTIP=上一個版本
|
|
23
|
+
|
|
24
|
+
VERSIONING_NEXT_BUTTON_TOOLTIP=下一個版本
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* root*/
|
|
2
|
+
.ui5-ai-input-root {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
border-right: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([focused]:not([opened])[_is-menu-open]) .ui5-ai-input-root:hover {
|
|
9
|
+
border-radius: var(--_ui5_input_border_radius);
|
|
10
|
+
box-shadow: var(--sapField_Hover_Shadow);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([focused]:not([opened])[_is-menu-open]) .ui5-input-focusable-element::after {
|
|
14
|
+
border: var(--_ui5-input-border);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ui5-input-busy-indicator {
|
|
18
|
+
flex: 1;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
position: relative;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ui5-ai-input-busy .ui5-ai-input-button-wrapper {
|
|
27
|
+
background-color: inherit;
|
|
28
|
+
border: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ui5-ai-input-button-wrapper {
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
width: var(--_ui5_input_icon_width);
|
|
36
|
+
min-width: var(--_ui5_input_icon_width);
|
|
37
|
+
height: var(--_ui5_input_icon_wrapper_height);
|
|
38
|
+
padding: 0;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
border-radius: var(--_ui5_input_border_radius);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
border: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Hidden state */
|
|
46
|
+
.ui5-input-ai-button[hidden] {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Active / Open / Loading states */
|
|
51
|
+
.ui5-ai-input-button-wrapper.ui5-input-button-menu-open,
|
|
52
|
+
.ui5-ai-input-button-wrapper:active {
|
|
53
|
+
background-color: var(--sapButton_Selected_Background);
|
|
54
|
+
box-shadow: var(--sapField_Hover_Shadow);
|
|
55
|
+
color: var(--sapButton_Selected_TextColor);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Hover state */
|
|
59
|
+
.ui5-ai-input-button-wrapper:not(.ui5-input-button-menu-open):not(.ui5-ai-input-loading):not(:active):hover,
|
|
60
|
+
.ui5-ai-input-button-wrapper.ui5-ai-input-loading:hover {
|
|
61
|
+
background-color: var(--sapButton_Hover_Background);
|
|
62
|
+
border: 1px solid var(--sapButton_Hover_BorderColor);
|
|
63
|
+
box-shadow: inset 0 0 0 0.0625rem var(--sapContent_Neutral_Shadow);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* menu & versioning */
|
|
67
|
+
|
|
68
|
+
.ui5-input-button-menu-open {
|
|
69
|
+
background-color: var(--sapButton_Selected_Background);
|
|
70
|
+
box-shadow: var(--sapField_Hover_Shadow);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[ui5-menu-item].ui5-ai-versioning-menu-footer:hover {
|
|
74
|
+
background-color: inherit;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ui5-ai-versioning-menu-footer::part(native-li) {
|
|
78
|
+
padding-right: 0.25rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#ai-menu-btn {
|
|
82
|
+
--_ui5_button_focused_border: none;
|
|
83
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
:host(:not([hidden])) {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.ai-prompt-input-button {
|
|
2
6
|
margin-left: .5rem;
|
|
3
7
|
margin-top: 3px;
|
|
@@ -6,7 +10,7 @@
|
|
|
6
10
|
.ai-prompt-input-wrapper {
|
|
7
11
|
display: flex;
|
|
8
12
|
flex-direction: column;
|
|
9
|
-
width: 270px;
|
|
13
|
+
min-width: 270px;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
.ai-prompt-input-form-wrapper {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.ui5-ai-textarea-root {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ui5-ai-textarea-root .ui5-textarea-wrapper {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
flex: 1;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ui5-ai-textarea-root [part="footer"] {
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
margin-top: auto;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ui5-ai-writing-assistant-footer-bar {
|
|
24
|
+
background: var(--_ui5_texteditor_toolbar_background, var(--sapPageFooter_Background));
|
|
25
|
+
width: 100%;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
box-shadow: none;
|
|
28
|
+
border-bottom: none;
|
|
29
|
+
border-top: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ui5-ai-writing-assistant-footer-bar--with-border {
|
|
33
|
+
border-top: 1px solid var(--sapPageFooter_BorderColor);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ui5-ai-writing-assistant-action-label {
|
|
37
|
+
margin-left: 0.5rem;
|
|
38
|
+
color: var(--sapContent_LabelColor);
|
|
39
|
+
font-size: var(--sapFontSmallSize);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#ai-menu-wrapper {
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: 1000;
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
#versioning-history {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.version-step-counter {
|
|
13
|
+
margin: 0 0.25rem;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
color: var(--sapContent_LabelColor);
|
|
17
|
+
font-size: var(--sapFontSmallSize);
|
|
18
|
+
line-height: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.ui5-ai-textarea-root {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ui5-ai-textarea-root .ui5-textarea-wrapper {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
flex: 1;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ui5-ai-textarea-root [part="footer"] {
|
|
17
|
+
width: 100%;
|
|
18
|
+
margin-top: auto;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ui5-ai-writing-assistant-footer-bar {
|
|
23
|
+
background: var(--_ui5_texteditor_toolbar_background, var(--sapPageFooter_Background));
|
|
24
|
+
width: 100%;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
box-shadow: none;
|
|
27
|
+
border-bottom: none;
|
|
28
|
+
border-top: none;
|
|
29
|
+
padding: 0.5rem;
|
|
30
|
+
min-height: 2.75rem;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: flex-start;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ui5-ai-writing-assistant-footer-bar--with-border {
|
|
37
|
+
border-top: 1px solid var(--sapPageFooter_BorderColor);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ui5-ai-writing-assistant-action-label {
|
|
41
|
+
color: var(--sapContent_LabelColor);
|
|
42
|
+
font-size: var(--sapFontSize);
|
|
43
|
+
font-family: "72override", var(--sapFontFamily);
|
|
44
|
+
margin-left: 0.25rem;
|
|
45
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"@ui5/webcomponents-base/dist/*": [
|
|
18
18
|
"../base/src/*"
|
|
19
19
|
],
|
|
20
|
+
"@ui5/webcomponents/dist/*": [
|
|
21
|
+
"../main/src/*"
|
|
22
|
+
],
|
|
20
23
|
"@ui5/webcomponents-localization/dist/*": [
|
|
21
24
|
"../localization/src/*"
|
|
22
25
|
],
|
|
@@ -38,6 +41,9 @@
|
|
|
38
41
|
{
|
|
39
42
|
"path": "../base"
|
|
40
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../main"
|
|
46
|
+
},
|
|
41
47
|
{
|
|
42
48
|
"path": "../localization"
|
|
43
49
|
},
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Button from "../../src/Button.js";
|
|
2
|
-
import ButtonState from "../../src/ButtonState.js";
|
|
3
|
-
|
|
4
|
-
describe("Initial rendering", () => {
|
|
5
|
-
it("tests no config provided", () => {
|
|
6
|
-
cy.mount(
|
|
7
|
-
<Button>
|
|
8
|
-
<ButtonState name="generate" text="Generate" icon="ai">Click me</ButtonState>
|
|
9
|
-
<ButtonState name="generating" text="Stop Generating" icon="stop">Click me</ButtonState>
|
|
10
|
-
<ButtonState name="revise" text="Revise" icon="ai">Click me</ButtonState>
|
|
11
|
-
</Button>
|
|
12
|
-
);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
// ***********************************************
|
|
3
|
-
// This example commands.ts shows you how to
|
|
4
|
-
// create various custom commands and overwrite
|
|
5
|
-
// existing commands.
|
|
6
|
-
//
|
|
7
|
-
// For more comprehensive examples of custom
|
|
8
|
-
// commands please read more here:
|
|
9
|
-
// https://on.cypress.io/custom-commands
|
|
10
|
-
// ***********************************************
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
// -- This is a parent command --
|
|
14
|
-
// Cypress.Commands.add('login', (email, password) => { ... })
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
// -- This is a child command --
|
|
18
|
-
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
// -- This is a dual command --
|
|
22
|
-
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
// -- This will overwrite an existing command --
|
|
26
|
-
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
|
27
|
-
//
|
|
28
|
-
// declare global {
|
|
29
|
-
// namespace Cypress {
|
|
30
|
-
// interface Chainable {
|
|
31
|
-
// login(email: string, password: string): Chainable<void>
|
|
32
|
-
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
|
33
|
-
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
|
34
|
-
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
|
35
|
-
// }
|
|
36
|
-
// }
|
|
37
|
-
// }
|
|
38
|
-
|
|
39
|
-
import "@ui5/cypress-internal/commands.js";
|
|
40
|
-
import "../../../main/cypress/support/commands.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<title>Components App</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div data-cy-root></div>
|
|
11
|
-
</body>
|
|
12
|
-
</html>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// ***********************************************************
|
|
2
|
-
// This example support/component.ts is processed and
|
|
3
|
-
// loaded automatically before your test files.
|
|
4
|
-
//
|
|
5
|
-
// This is a great place to put global configuration and
|
|
6
|
-
// behavior that modifies Cypress.
|
|
7
|
-
//
|
|
8
|
-
// You can change the location of this file or turn off
|
|
9
|
-
// automatically serving support files with the
|
|
10
|
-
// 'supportFile' configuration option.
|
|
11
|
-
//
|
|
12
|
-
// You can read more here:
|
|
13
|
-
// https://on.cypress.io/configuration
|
|
14
|
-
// ***********************************************************
|
|
15
|
-
|
|
16
|
-
// Import commands.js using ES2015 syntax:
|
|
17
|
-
import './commands'
|
|
18
|
-
|
|
19
|
-
import { mount } from '@ui5/cypress-ct-ui5-webc'
|
|
20
|
-
|
|
21
|
-
// Augment the Cypress namespace to include type definitions for
|
|
22
|
-
// your custom command.
|
|
23
|
-
// Alternatively, can be defined in cypress/support/component.d.ts
|
|
24
|
-
// with a <reference path="./component" /> at the top of your spec.
|
|
25
|
-
declare global {
|
|
26
|
-
namespace Cypress {
|
|
27
|
-
interface Chainable {
|
|
28
|
-
mount: typeof mount
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
Cypress.Commands.add('mount', mount)
|
|
34
|
-
|
|
35
|
-
// Example use:
|
|
36
|
-
// cy.mount(MyComponent)
|
package/cypress/tsconfig.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@ui5/webcomponents-tools/tsconfig.json",
|
|
3
|
-
"include": [
|
|
4
|
-
"./**/*"
|
|
5
|
-
],
|
|
6
|
-
"compilerOptions": {
|
|
7
|
-
"composite": true,
|
|
8
|
-
"tsBuildInfoFile": "dist/.tsbuildinfobuild",
|
|
9
|
-
"module": "NodeNext",
|
|
10
|
-
"moduleResolution": "nodenext",
|
|
11
|
-
"paths": {
|
|
12
|
-
"@ui5/webcomponents-base/dist/*": [
|
|
13
|
-
"../../base/src/*"
|
|
14
|
-
],
|
|
15
|
-
"@ui5/webcomponents/dist/*": [
|
|
16
|
-
"../../main/src/*"
|
|
17
|
-
],
|
|
18
|
-
"@ui5/webcomponents-localization/dist/*": [
|
|
19
|
-
"../../localization/src/*"
|
|
20
|
-
],
|
|
21
|
-
"@ui5/webcomponents-theming/dist/*": [
|
|
22
|
-
"../../theming/src/*"
|
|
23
|
-
],
|
|
24
|
-
"@ui5/webcomponents-icons/dist/*": [
|
|
25
|
-
"../../icons/src/*"
|
|
26
|
-
],
|
|
27
|
-
"@ui5/webcomponents-icons-business-suite/dist/*": [
|
|
28
|
-
"../../icons-business-suite/src/*"
|
|
29
|
-
],
|
|
30
|
-
"@ui5/webcomponents-icons-tnt/dist/*": [
|
|
31
|
-
"../../icons-tnt/src/*"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
"references": [
|
|
36
|
-
{
|
|
37
|
-
"path": "../"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"path": "../../main/cypress"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
}
|