Skip to content

Commit

Permalink
Merge branch 'main' into chore-add-story-cvi-ng-responsive-table-with…
Browse files Browse the repository at this point in the history
…-observables

# Conflicts:
#	libs/ui/src/lib/table-responsive/table-responsive.component.stories.ts
  • Loading branch information
Aleksandr Beliaev committed Feb 26, 2024
2 parents 0a873d7 + e3a3ba9 commit 1ac709a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/storybook/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"title": "Abiellumine (English translation)",
"step1": "This is an English translation provided via @ngx-translate",
"step2": "This is another English thing provided via @ngx-translate"
},
"tableResponsive": {
"headerLabels": ["Monday", "Tuesday"]
}
}
}
3 changes: 3 additions & 0 deletions libs/storybook/src/assets/i18n/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"title": "Abiellumine (Eesti keeles)",
"step1": "Esimene samm",
"step2": "Teine samm"
},
"tableResponsive": {
"headerLabels": ["Esmaspäev", "Teisipäev"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,39 @@ WithCustomHeaderAndBodyMobile.parameters = {
},
};

const TemplateWithTranslations: Story<TableResponsiveComponent> = (
args: TableResponsiveComponent
) => ({
props: {
...args,
data: [
{
who: 'Monkey',
what: 'see-do',
},
{
who: 'Bear',
what: 'drink-drank-drunk',
},
],
},
/* template */
template: `
<cvi-ng-table-responsive [data]="data" [headerLabels]="'common.tableResponsive.headerLabels' | translate"></cvi-ng-table-responsive>
`,
});

export const WithTranslations = TemplateWithTranslations.bind({});
WithTranslations.parameters = {
layout: 'fullscreen',
backgrounds: {
default: 'light',
},
viewport: {
defaultViewport: 'iphone12mini',
},
};

const TemplateWithObservables: Story<TableResponsiveComponent> = (
args: TableResponsiveComponent
) => ({
Expand Down

0 comments on commit 1ac709a

Please sign in to comment.