Skip to content

Commit 01da026

Browse files
authored
[mercury][chat] Add a separate temporary bundle for the chat with lit, (#599)
* `[chat-lit]` Add "chat lit" styles as a temporary workaround This bundle allows keeping the original ch-chat styles as they are, while providing a ch-chat bundle for the ch-chat with lit, that is provided by the user of Mercury, at the time of writting. * `[icons]` Add "assistant fill" icon * `[tokens][color]` Add colort tokens that are specific for the chat * `[markdown-viewer][chat]` Add styles for "code block" related parts * `[common]` Add reset for lists * `[mercury][dependencies]` Update Chameleon to latest * `[ch-paginator]` Update types due to updating Chameleon * `[test][bundles]` Update bundles
1 parent b547eb6 commit 01da026

File tree

26 files changed

+5400
-4296
lines changed

26 files changed

+5400
-4296
lines changed

packages/common/_resets.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,18 @@
7777
box-sizing: border-box;
7878
}
7979
}
80+
81+
@mixin list-reset() {
82+
ul,
83+
li {
84+
list-style: none;
85+
padding: 0;
86+
margin: 0;
87+
}
88+
}
89+
90+
@mixin reset-list() {
91+
list-style: none;
92+
padding: 0;
93+
margin: 0;
94+
}

packages/common/src/metadata/components/paginator/models.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {
2-
PaginatorRenderModel,
32
ComboBoxModel,
4-
ControlsOrder,
3+
PaginatorControlsOrder,
4+
PaginatorRenderModel,
55
PaginatorTranslations
66
} from "@genexus/chameleon-controls-library";
77

@@ -15,7 +15,7 @@ export const comboBoxModel: ComboBoxModel = [
1515
{ value: "30", caption: "30" }
1616
];
1717

18-
export const orderModel: ControlsOrder = {
18+
export const orderModel: PaginatorControlsOrder = {
1919
itemsPerPage: 1,
2020
itemsPerPageInfo: 2,
2121
firstControl: 3,
@@ -26,7 +26,7 @@ export const orderModel: ControlsOrder = {
2626
lastControl: 8
2727
};
2828

29-
export const orderChangedModel: ControlsOrder = {
29+
export const orderChangedModel: PaginatorControlsOrder = {
3030
itemsPerPage: 2,
3131
itemsPerPageInfo: 1,
3232
firstControl: 4,
@@ -39,23 +39,29 @@ export const orderChangedModel: ControlsOrder = {
3939

4040
export const translations: PaginatorTranslations = {
4141
accessibleName: {
42+
currentPage: "Current page",
43+
goToPage: "Go to page",
4244
goToInput: "Go to page",
43-
itemsPerPageOptions: "Select amount of items to show"
45+
itemsPerPageOptions: "Select amount of items to show",
46+
firstButton: "First button",
47+
lastButton: "Last button",
48+
nextButton: "Next button",
49+
previousButton: "Previous button"
4450
},
4551
text: {
52+
first: "",
4653
goToButton: "",
4754
itemsPerPage: "Items per page",
4855
of: "of ",
4956
ellipsis: "...",
50-
first: "",
5157
prev: "",
5258
next: "",
59+
goToInputLabel: "Go to input",
5360
last: "",
5461
unknownPages: "many",
5562
unknownItems: "many",
5663
showingItems:
5764
"{{FIRST_ITEM_IN_PAGE}} - {{LAST_ITEM_IN_PAGE}} of {{TOTAL_ITEMS}} items",
58-
page: "",
5965
showingPage: "Showing {{ACTUAL_PAGE}} of {{TOTAL_PAGES}} pages"
6066
}
6167
};

packages/mercury/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
},
7070
"license": "Apache-2.0",
7171
"devDependencies": {
72-
"@genexus/chameleon-controls-library": "~6.7.0",
72+
"@genexus/chameleon-controls-library": "~6.17.1",
7373
"@genexus/svg-sass-generator": "1.1.24",
7474
"@jackolope/ts-lit-plugin": "^3.1.4",
7575
"@vitest/browser": "~3.1.1",

0 commit comments

Comments
 (0)