Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sbb-paginator): component implementation #2982

Merged
merged 75 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 62 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
88e02ab
feat(sbb-paginator): first commit
DavideMininni-Fincons Jul 25, 2024
0a600c8
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Jul 25, 2024
36c53fe
fix: tests
DavideMininni-Fincons Jul 25, 2024
c17dcc8
feat(sbb-paginator): add pageSizeOptions impl
DavideMininni-Fincons Jul 26, 2024
3b30095
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Jul 26, 2024
8696deb
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Jul 26, 2024
86eb8c0
fix: tests
DavideMininni-Fincons Jul 29, 2024
5e11ac2
feat: add buttons (WIP)
DavideMininni-Fincons Jul 30, 2024
17ac4a7
feat: add size s and negative (WIP)
DavideMininni-Fincons Jul 30, 2024
7f81705
style: add hover state
DavideMininni-Fincons Aug 1, 2024
3fcd33d
style: fix negative default color
DavideMininni-Fincons Aug 1, 2024
cde4ea0
test: fix
DavideMininni-Fincons Aug 1, 2024
87aae0a
feat: add active state, minor fixes
DavideMininni-Fincons Aug 1, 2024
38d4783
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Aug 2, 2024
ead9c84
chore: minor fixes
DavideMininni-Fincons Aug 2, 2024
0f41ca0
feat: improve arrow navigation
DavideMininni-Fincons Aug 2, 2024
73581b3
style: scss improvement
DavideMininni-Fincons Aug 2, 2024
21c95a3
test: add tests
DavideMininni-Fincons Aug 2, 2024
c77c4b8
fix: accessibility
DavideMininni-Fincons Aug 5, 2024
55a98c9
fix: remove size s (waiting for select)
DavideMininni-Fincons Aug 5, 2024
c48404f
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Aug 5, 2024
d4d139b
chore: add tests
DavideMininni-Fincons Aug 5, 2024
d5c6dca
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Aug 20, 2024
1acd584
style: adapt code with new style
DavideMininni-Fincons Aug 20, 2024
d68b8b3
test: update snapshot
DavideMininni-Fincons Aug 20, 2024
71500f1
feat: fix mini-button-group size
DavideMininni-Fincons Aug 21, 2024
fa32841
fix: style and tests
DavideMininni-Fincons Aug 21, 2024
80fa244
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Aug 22, 2024
2317a82
feat: add size s
DavideMininni-Fincons Aug 22, 2024
125ce28
test: fix snap
DavideMininni-Fincons Aug 22, 2024
3a8d216
fix: calculate the correct pageIndex when pageSize changes
DavideMininni-Fincons Aug 23, 2024
d75569d
fix: review 1
DavideMininni-Fincons Aug 23, 2024
d8c3794
fix: review 2
DavideMininni-Fincons Aug 23, 2024
7d48773
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Aug 27, 2024
1865bdc
fix: review
DavideMininni-Fincons Aug 27, 2024
a714863
fix: revert wrong icons
DavideMininni-Fincons Aug 27, 2024
cbedf59
test: regenerate snap
DavideMininni-Fincons Aug 27, 2024
43dc136
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Sep 2, 2024
ba39f23
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Sep 3, 2024
14a4a32
fix: review Jeri pt.1
DavideMininni-Fincons Sep 3, 2024
f4f95c9
fix: review Jeri pt.2
DavideMininni-Fincons Sep 4, 2024
de3debc
fix: review Jeri pt.3
DavideMininni-Fincons Sep 4, 2024
e84ed8b
fix: review Jeri pt.4
DavideMininni-Fincons Sep 4, 2024
312f45b
fix: review Jeri pt.5
DavideMininni-Fincons Sep 4, 2024
cb0f9a8
fix: review Jeri pt.6
DavideMininni-Fincons Sep 4, 2024
6441e6b
feat: wrapping logic
jeripeierSBB Sep 4, 2024
6e2bbc8
style: fix hover animation
DavideMininni-Fincons Sep 5, 2024
6102ea6
fix: active state on keypress
DavideMininni-Fincons Sep 5, 2024
7421fa8
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Sep 5, 2024
8291b28
fix: aria-labelledby on sbb-select, connect label and select in pagin…
DavideMininni-Fincons Sep 5, 2024
04dc68f
fix: disabled buttons are now tabbable
DavideMininni-Fincons Sep 6, 2024
f82b6ee
fix: set aria-labelledby on select
DavideMininni-Fincons Sep 9, 2024
d9ec237
feat: emit pageChanged event when pageSize changes via user interaction
DavideMininni-Fincons Sep 10, 2024
0793c6c
fix: add a11y TODO for sbb-select
DavideMininni-Fincons Sep 10, 2024
a8a4575
Merge remote-tracking branch 'origin/main' into feat/sbb-paginator
DavideMininni-Fincons Sep 10, 2024
9b49e2f
fix: lint
DavideMininni-Fincons Sep 10, 2024
b10bb0d
Merge branch 'refs/heads/main' into feat/sbb-paginator
jeripeierSBB Sep 11, 2024
59f3725
fix: fix transition
jeripeierSBB Sep 11, 2024
921a1b6
refactor: rename event name
jeripeierSBB Sep 11, 2024
0a6b56c
fix: review
DavideMininni-Fincons Sep 12, 2024
09d05ac
fix: remove active and hover state for selected
DavideMininni-Fincons Sep 12, 2024
18c705d
Merge branch 'main' into feat/sbb-paginator
jeripeierSBB Sep 17, 2024
943f7ca
Merge branch 'main' into feat/sbb-paginator
jeripeierSBB Sep 17, 2024
3aca885
refactor: use lit observers
jeripeierSBB Sep 17, 2024
83ca855
fix: initialization
jeripeierSBB Sep 17, 2024
2adb007
Merge branch 'refs/heads/main' into feat/sbb-paginator
jeripeierSBB Sep 18, 2024
d76059a
fix: accessibility review part 1
jeripeierSBB Sep 18, 2024
6289772
Merge branch 'main' into feat/sbb-paginator
jeripeierSBB Sep 19, 2024
0486dfb
Merge branch 'main' into feat/sbb-paginator
jeripeierSBB Sep 19, 2024
e310ee8
fix: accessibility review
jeripeierSBB Sep 19, 2024
680f82a
Merge branch 'main' into feat/sbb-paginator
jeripeierSBB Sep 23, 2024
1fd3c09
fix: fix high contrast
jeripeierSBB Sep 23, 2024
96abd35
Merge branch 'main' into feat/sbb-paginator
jeripeierSBB Sep 26, 2024
8398a03
fix: review Lukas
jeripeierSBB Sep 26, 2024
80b25dc
fix: ensure bounds and handle length change
jeripeierSBB Sep 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/elements/core/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,3 +680,31 @@ export const i18nFileSelectorCurrentlySelected = (filesName: string[]): Record<s
it: 'Nessun file selezionato.',
};
};

export const i18nNextPage: Record<string, string> = {
de: 'Nächste Seite',
en: 'Next page',
fr: 'Prochaine page',
it: 'Pagina successiva',
};

export const i18nPreviousPage: Record<string, string> = {
de: 'Vorherige Seite',
en: 'Previous page',
fr: 'Page précédente',
it: 'Pagina precedente',
};

export const i18nPage: Record<string, string> = {
de: 'Seite',
en: 'Page',
fr: 'Page',
it: 'Pagina',
};

export const i18nItemsPerPage: Record<string, string> = {
de: 'Einträge pro Seite',
en: 'Items per page',
fr: 'Entrées par page',
it: 'Elementi per pagina',
};
1 change: 1 addition & 0 deletions src/elements/paginator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './paginator/paginator.js';
Loading
Loading