hr-design-system-handlebars 1.17.0 → 1.17.1
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 +12 -0
- package/dist/assets/index.css +14 -10
- package/dist/views/components/button/button.hbs +1 -1
- package/dist/views/components/button/link_button.hbs +1 -1
- package/dist/views/components/button/utilities/button_variation_classes.hbs +9 -1
- package/dist/views/components/event/event_ticket_button.hbs +2 -2
- package/dist/views/components/pagination/pagination_button_left.hbs +3 -3
- package/dist/views/components/pagination/pagination_button_left_linked.hbs +3 -5
- package/dist/views/components/pagination/pagination_button_right.hbs +4 -3
- package/dist/views/components/pagination/pagination_button_right_linked.hbs +3 -5
- package/dist/views/components/pagination/pagination_current_page_invalid.hbs +14 -7
- package/dist/views/components/pagination/pagination_current_page_valid.hbs +1 -1
- package/dist/views/components/pagination/pagination_more_than_three_pages.hbs +40 -24
- package/dist/views/components/pagination/pagination_only_three_pages.hbs +41 -23
- package/dist/views/components/pagination/pagination_only_two_pages.hbs +19 -11
- package/dist/views/components/teaser/teaser_poster.hbs +1 -1
- package/package.json +1 -1
- package/src/assets/brand/hessenschau/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr-bigband/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr-werbung/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr1/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr2/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr3/conf/locatags.merged.json +0 -1
- package/src/assets/brand/hr4/conf/locatags.merged.json +0 -1
- package/src/assets/brand/you-fm/conf/locatags.merged.json +0 -1
- package/src/assets/fixtures/page/page_pagination.json +15 -5
- package/src/assets/tailwind.css +2 -0
- package/src/stories/views/components/button/button.hbs +1 -1
- package/src/stories/views/components/button/button.mdx +10 -1
- package/src/stories/views/components/button/button.stories.js +66 -0
- package/src/stories/views/components/button/link_button.hbs +1 -1
- package/src/stories/views/components/button/link_button.mdx +8 -0
- package/src/stories/views/components/button/link_button.stories.js +66 -0
- package/src/stories/views/components/button/utilities/button_variation_classes.hbs +9 -1
- package/src/stories/views/components/event/event_ticket_button.hbs +2 -2
- package/src/stories/views/components/page/fixtures/page_pagination.json +1 -1
- package/src/stories/views/components/page/page.stories.js +17 -1
- package/src/stories/views/components/page/page_pagination.mdx +52 -3
- package/src/stories/views/components/page/page_pagination.stories.js +134 -4
- package/src/stories/views/components/pagination/pagination_button_left.hbs +3 -3
- package/src/stories/views/components/pagination/pagination_button_left_linked.hbs +3 -5
- package/src/stories/views/components/pagination/pagination_button_right.hbs +4 -3
- package/src/stories/views/components/pagination/pagination_button_right_linked.hbs +3 -5
- package/src/stories/views/components/pagination/pagination_current_page_invalid.hbs +14 -7
- package/src/stories/views/components/pagination/pagination_current_page_valid.hbs +1 -1
- package/src/stories/views/components/pagination/pagination_more_than_three_pages.hbs +40 -24
- package/src/stories/views/components/pagination/pagination_only_three_pages.hbs +41 -23
- package/src/stories/views/components/pagination/pagination_only_two_pages.hbs +19 -11
- package/src/stories/views/components/teaser/teaser_poster.hbs +1 -1
- package/tailwind.config.js +2 -0
|
@@ -3,6 +3,55 @@ import * as PagePaginationStories from './page_pagination.stories'
|
|
|
3
3
|
|
|
4
4
|
<Meta of={PagePaginationStories} />
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
# Pagination (allgemein)
|
|
8
|
+
|
|
9
|
+
Um eine große Anzahl von Seiteninhalten (wie z.B. bei einem Suchergebnis mit vielen Treffern) auf mehrer Seiten aufzuteilen, wird die Anzahl der Inhalte
|
|
10
|
+
pro Seite begrenzt und eine sog. Pagination, also eine Unterseitennavigation am Ende der Seite angezeigt. Die Inhalte werden equivalent auf alle Unterseiten
|
|
11
|
+
aufgeteilt.
|
|
12
|
+
|
|
13
|
+
# Grundaufbau
|
|
14
|
+
|
|
15
|
+
Die Pagination besteht zum einen aus zwei "Pfeil-Buttons" die es ermöglichen in den erzeugten Unterseiten vor und zurück zu navigieren,
|
|
16
|
+
einer Darstellung auf welcher Unterseite ich mich gerade befinde, sowie eine Sprungmöglichkeiten, um Unterseiten direkt über die Seitenzahl zu erreichen.
|
|
17
|
+
Die Darstellung startet initial mit Unterseite 1 sowie der Gesamtzahl aller zur Verfügung stehenden Unterseiten. Als Platzhalter wird "..." eingefügt.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# Darstellung bei mehr als 3 Unterseiten
|
|
21
|
+
Im folgenden Beispiel gibt es 999 Unterseiten. Je nachdem welche Unterseite ausgewählt ist, verändert sich die Darstellung. So sind die Unterseite nach
|
|
22
|
+
Unterseite 1 sowie die vorletzte Seite nicht durch Platzhalter "..." abgetrennt. Liegt die Seite irgendwo zwischen der erste und der letzten Unterseite,
|
|
23
|
+
wird in beiden Richtungen mit Platzhalter "..." abgetrennt.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<Story of={PagePaginationStories.MitPagination} />
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Zweite Seite gewählt
|
|
30
|
+
|
|
31
|
+
<Story of={PagePaginationStories.MitPagination2} />
|
|
32
|
+
|
|
33
|
+
### Seite mittendrin gewählt
|
|
34
|
+
|
|
35
|
+
<Story of={PagePaginationStories.MitPagination4} />
|
|
36
|
+
|
|
37
|
+
### Vorletzte Seite gewählt
|
|
38
|
+
|
|
39
|
+
<Story of={PagePaginationStories.MitPagination3} />
|
|
40
|
+
|
|
41
|
+
### Letzte Seite gewählt
|
|
42
|
+
|
|
43
|
+
<Story of={PagePaginationStories.MitPagination5} />
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# Sonderformen
|
|
47
|
+
Die Logik erzeugt bei nur einer, bei zweien oder drei Unterseiten eine etwas andere Darstellung. Der Platzhalter "..." kann bei einer so geringen Anzahl von
|
|
48
|
+
Unterseiten entfallen.
|
|
49
|
+
|
|
50
|
+
### Mit nur zwei Unterseiten
|
|
51
|
+
|
|
52
|
+
<Story of={PagePaginationStories.MitPagination6} />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Mit nur drei Unterseiten
|
|
56
|
+
|
|
57
|
+
<Story of={PagePaginationStories.MitPagination7} />
|
|
@@ -1,14 +1,110 @@
|
|
|
1
1
|
import { NavigationDataWithMixedContent } from './page_pagination.data.js'
|
|
2
|
-
import page from '
|
|
2
|
+
import page from '../pagination/pagination.hbs'
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const TemplateMoreThanThreeFirst = (args, { globals: { customConditionalToolbar } }) => {
|
|
5
5
|
// You can either use a function to create DOM elements or use a plain html string!
|
|
6
6
|
// return `<div>${label}</div>`;
|
|
7
|
+
args['currentPageValid'] = true
|
|
8
|
+
args['onlyThreePages'] = false
|
|
9
|
+
args['onlyTwoPages'] = false
|
|
10
|
+
args['secondPage'] = false
|
|
11
|
+
args['firstPage'] = true
|
|
12
|
+
args['notLastButOnePage'] = false
|
|
13
|
+
args['notLastPage'] = false
|
|
14
|
+
args['totalPages'] = 999
|
|
15
|
+
let brand =
|
|
16
|
+
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
17
|
+
return page({ brand, ...args })
|
|
18
|
+
}
|
|
19
|
+
const TemplateMoreThanThreeSecond = (args, { globals: { customConditionalToolbar } }) => {
|
|
20
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
21
|
+
// return `<div>${label}</div>`;
|
|
22
|
+
args['onlyThreePages'] = false
|
|
23
|
+
args['onlyTwoPages'] = false
|
|
24
|
+
args['secondPage'] = true
|
|
25
|
+
args['firstPage'] = false
|
|
26
|
+
args['notLastButOnePage'] = false
|
|
27
|
+
args['notLastPage'] = false
|
|
28
|
+
args['totalPages'] = 999
|
|
29
|
+
let brand =
|
|
30
|
+
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
31
|
+
return page({ brand, ...args })
|
|
32
|
+
}
|
|
33
|
+
const TemplateMoreThanThreeButNotLast = (args, { globals: { customConditionalToolbar } }) => {
|
|
34
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
35
|
+
// return `<div>${label}</div>`;
|
|
36
|
+
args['onlyThreePages'] = false
|
|
37
|
+
args['onlyTwoPages'] = false
|
|
38
|
+
args['secondPage'] = false
|
|
39
|
+
args['firstPage'] = false
|
|
40
|
+
args['notLastButOnePage'] = false
|
|
41
|
+
args['notLastPage'] = true
|
|
42
|
+
args['totalPages'] = 999
|
|
43
|
+
args['currentPage'] = 998
|
|
44
|
+
let brand =
|
|
45
|
+
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
46
|
+
return page({ brand, ...args })
|
|
47
|
+
}
|
|
48
|
+
const TemplateMoreThanThreeOneButNotLast = (args, { globals: { customConditionalToolbar } }) => {
|
|
49
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
50
|
+
// return `<div>${label}</div>`;
|
|
51
|
+
args['onlyThreePages'] = false
|
|
52
|
+
args['onlyTwoPages'] = false
|
|
53
|
+
args['secondPage'] = false
|
|
54
|
+
args['firstPage'] = false
|
|
55
|
+
args['notLastButOnePage'] = true
|
|
56
|
+
args['notLastPage'] = true
|
|
57
|
+
args['totalPages'] = 999
|
|
58
|
+
args['currentPage'] = 555
|
|
7
59
|
let brand =
|
|
8
60
|
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
9
61
|
return page({ brand, ...args })
|
|
10
62
|
}
|
|
11
63
|
|
|
64
|
+
const TemplateMoreThanThreeLast = (args, { globals: { customConditionalToolbar } }) => {
|
|
65
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
66
|
+
// return `<div>${label}</div>`;
|
|
67
|
+
args['onlyThreePages'] = false
|
|
68
|
+
args['onlyTwoPages'] = false
|
|
69
|
+
args['secondPage'] = false
|
|
70
|
+
args['firstPage'] = false
|
|
71
|
+
args['notLastButOnePage'] = false
|
|
72
|
+
args['notLastPage'] = false
|
|
73
|
+
args['totalPages'] = 999
|
|
74
|
+
args['currentPage'] = 999
|
|
75
|
+
let brand =
|
|
76
|
+
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
77
|
+
return page({ brand, ...args })
|
|
78
|
+
}
|
|
79
|
+
const TemplateOnlyTwo= (args, { globals: { customConditionalToolbar } }) => {
|
|
80
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
81
|
+
// return `<div>${label}</div>`;
|
|
82
|
+
args['onlyThreePages'] = false
|
|
83
|
+
args['onlyTwoPages'] = true
|
|
84
|
+
args['secondPage'] = false
|
|
85
|
+
args['firstPage'] = true
|
|
86
|
+
args['notLastButOnePage'] = false
|
|
87
|
+
args['notLastPage'] = false
|
|
88
|
+
let brand =
|
|
89
|
+
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
90
|
+
return page({ brand, ...args })
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const TemplateOnlyThree = (args, { globals: { customConditionalToolbar } }) => {
|
|
94
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
95
|
+
// return `<div>${label}</div>`;
|
|
96
|
+
args['onlyThreePages'] = true
|
|
97
|
+
args['onlyTwoPages'] = false
|
|
98
|
+
args['secondPage'] = false
|
|
99
|
+
args['firstPage'] = false
|
|
100
|
+
args['notLastButOnePage'] = false
|
|
101
|
+
args['notLastPage'] = false
|
|
102
|
+
let brand =
|
|
103
|
+
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
104
|
+
return page({ brand, ...args })
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
12
108
|
export default {
|
|
13
109
|
title: 'Komponenten/Page/Pagination',
|
|
14
110
|
argTypes: {},
|
|
@@ -28,7 +124,41 @@ export default {
|
|
|
28
124
|
}
|
|
29
125
|
|
|
30
126
|
export const MitPagination = {
|
|
31
|
-
render:
|
|
32
|
-
name: '
|
|
127
|
+
render: TemplateMoreThanThreeFirst.bind({}),
|
|
128
|
+
name: 'Pagination mehr als 3 Seiten',
|
|
129
|
+
args: NavigationDataWithMixedContent,
|
|
130
|
+
}
|
|
131
|
+
export const MitPagination2 = {
|
|
132
|
+
render: TemplateMoreThanThreeSecond.bind({}),
|
|
133
|
+
name: 'Pagination mehr als 3 Seiten (zweite Seite aktiv)',
|
|
134
|
+
args: NavigationDataWithMixedContent,
|
|
135
|
+
}
|
|
136
|
+
export const MitPagination3 = {
|
|
137
|
+
render: TemplateMoreThanThreeButNotLast.bind({}),
|
|
138
|
+
name: 'Pagination mehr als 3 Seiten (vorletzte Seite aktiv)',
|
|
139
|
+
args: NavigationDataWithMixedContent,
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export const MitPagination4 = {
|
|
143
|
+
render: TemplateMoreThanThreeOneButNotLast.bind({}),
|
|
144
|
+
name: 'Pagination mehr als 3 Seiten (Seite mitten drin aktiv)',
|
|
145
|
+
args: NavigationDataWithMixedContent,
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export const MitPagination5 = {
|
|
149
|
+
render: TemplateMoreThanThreeLast.bind({}),
|
|
150
|
+
name: 'Pagination mehr als 3 Seiten (letzte Seite aktiv)',
|
|
151
|
+
args: NavigationDataWithMixedContent,
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export const MitPagination6 = {
|
|
155
|
+
render: TemplateOnlyTwo.bind({}),
|
|
156
|
+
name: 'Pagination mit nur 2 Seiten',
|
|
157
|
+
args: NavigationDataWithMixedContent,
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export const MitPagination7 = {
|
|
161
|
+
render: TemplateOnlyThree.bind({}),
|
|
162
|
+
name: 'Pagination mit nur 3 Seiten',
|
|
33
163
|
args: NavigationDataWithMixedContent,
|
|
34
164
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
{{#> components/button/link_button _size="lg" _variant="tertiary" _disableButtonPress='true' _disabled='true' _css="mr-1"}}
|
|
2
|
+
{{> components/button/components/button_icon _icon="arrow-left" _iconmap="icons"}}
|
|
3
|
+
{{/components/button/link_button}}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
</a>
|
|
5
|
-
</div>
|
|
1
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.previousItemLink _css="mr-1"}}
|
|
2
|
+
{{> components/button/components/button_icon _icon="arrow-left" _iconmap="icons"}}
|
|
3
|
+
{{/components/button/link_button}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
{{#> components/button/link_button _size="lg" _variant="tertiary" _disableButtonPress='true' _disabled='true' _css="ml-1"}}
|
|
2
|
+
{{> components/button/components/button_icon _icon="arrow-right" _iconmap="icons"}}
|
|
3
|
+
{{/components/button/link_button}}
|
|
4
|
+
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
</a>
|
|
5
|
-
</div>
|
|
1
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.nextItemLink _css="ml-1"}}
|
|
2
|
+
{{> components/button/components/button_icon _icon="arrow-right" _iconmap="icons"}}
|
|
3
|
+
{{/components/button/link_button}}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
<nav class="flex content-center justify-center py-10" role="navigation" aria-label="Paginierung">
|
|
1
|
+
<nav class="flex flex-row content-center justify-center py-10" role="navigation" aria-label="Paginierung">
|
|
2
|
+
<div class="flex h-10"></div>
|
|
2
3
|
{{> components/pagination/pagination_button_left }}
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
5
|
+
{{> components/button/components/button_label _label="1"}}
|
|
6
|
+
{{/components/button/link_button}}
|
|
5
7
|
{{~#if _moreThanOnePage ~}}
|
|
6
8
|
{{~#unless _onlyTwoPages ~}}
|
|
7
9
|
{{~#if _onlyThreePages ~}}
|
|
8
|
-
|
|
10
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastButOnePageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
11
|
+
{{> components/button/components/button_label _label="2"}}
|
|
12
|
+
{{/components/button/link_button}}
|
|
9
13
|
{{else}}
|
|
10
|
-
<span class="
|
|
14
|
+
<span class="pt-1 ml-2 mr-2 font-title">…</span>
|
|
11
15
|
{{~/if~}}
|
|
12
16
|
{{~/unless~}}
|
|
13
|
-
|
|
17
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
18
|
+
{{> components/button/components/button_label _label=_totalPages}}
|
|
19
|
+
{{/components/button/link_button}}
|
|
14
20
|
{{~/if~}}
|
|
15
|
-
|
|
21
|
+
|
|
16
22
|
{{> components/pagination/pagination_button_right }}
|
|
23
|
+
</div>
|
|
17
24
|
</nav>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{~#if _moreThanOnePage~}}
|
|
2
|
-
<nav class="flex content-center justify-center py-10" role="navigation" aria-label="Paginierung">
|
|
2
|
+
<nav class="flex flex-row content-center justify-center py-10" role="navigation" aria-label="Paginierung">
|
|
3
3
|
{{~#if _onlyTwoPages~}}
|
|
4
4
|
{{> components/pagination/pagination_only_two_pages
|
|
5
5
|
_firstPage=_firstPage
|
|
@@ -1,38 +1,54 @@
|
|
|
1
1
|
{{~#if _firstPage~}}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
<div class="flex h-10">
|
|
3
|
+
{{> components/pagination/pagination_button_left }}
|
|
4
|
+
{{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
5
|
+
{{> components/button/components/button_label _label="1"}}
|
|
6
|
+
{{/components/button/link_button}}
|
|
7
|
+
<span class="pt-1 ml-2 mr-2 font-title">…</span>
|
|
8
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
9
|
+
{{> components/button/components/button_label _label=_totalPages}}
|
|
10
|
+
{{/components/button/link_button}}
|
|
11
|
+
{{> components/pagination/pagination_button_right_linked }}
|
|
12
|
+
</div>
|
|
9
13
|
{{else}}
|
|
10
|
-
{{~#if _secondPage~}}
|
|
14
|
+
{{~#if _secondPage~}}
|
|
15
|
+
<div class="flex h-10">
|
|
11
16
|
{{> components/pagination/pagination_button_left_linked }}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
18
|
+
{{> components/button/components/button_label _label="1"}}
|
|
19
|
+
{{/components/button/link_button}}
|
|
20
|
+
{{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
21
|
+
{{> components/button/components/button_label _label="2"}}
|
|
22
|
+
{{/components/button/link_button}}
|
|
23
|
+
<span class="pt-1 ml-2 mr-2 font-title">…</span>
|
|
24
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
25
|
+
{{> components/button/components/button_label _label=_totalPages}}
|
|
26
|
+
{{/components/button/link_button}}
|
|
18
27
|
{{> components/pagination/pagination_button_right_linked }}
|
|
28
|
+
</div>
|
|
19
29
|
{{else}}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
<div class="flex h-10">
|
|
31
|
+
{{> components/pagination/pagination_button_left_linked }}
|
|
32
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
33
|
+
{{> components/button/components/button_label _label="1"}}
|
|
34
|
+
{{/components/button/link_button}}
|
|
35
|
+
<span class="pt-1 ml-2 mr-2 font-title">…</span>
|
|
36
|
+
{{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
37
|
+
{{> components/button/components/button_label _label=_currentPage}}
|
|
38
|
+
{{/components/button/link_button}}
|
|
25
39
|
{{~#if _notLastPage~}}
|
|
26
40
|
{{~#if _notLastButOnePage~}}
|
|
27
|
-
<span class="
|
|
41
|
+
<span class="pt-1 ml-2 mr-2 font-title">…</span>
|
|
28
42
|
{{~/if~}}
|
|
29
|
-
|
|
30
|
-
{{
|
|
31
|
-
|
|
43
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
44
|
+
{{> components/button/components/button_label _label=_totalPages}}
|
|
45
|
+
{{/components/button/link_button}}
|
|
46
|
+
{{~/if~}}
|
|
32
47
|
{{~#if _notLastPage~}}
|
|
33
48
|
{{> components/pagination/pagination_button_right_linked }}
|
|
34
49
|
{{else}}
|
|
35
50
|
{{> components/pagination/pagination_button_right }}
|
|
36
|
-
{{~/if~}}
|
|
51
|
+
{{~/if~}}
|
|
52
|
+
</div>
|
|
37
53
|
{{~/if~}}
|
|
38
54
|
{{~/if~}}
|
|
@@ -1,27 +1,45 @@
|
|
|
1
|
-
{{~#if _firstPage~}}
|
|
1
|
+
{{~#if _firstPage~}}
|
|
2
|
+
<div class="flex h-10">
|
|
2
3
|
{{> components/pagination/pagination_button_left }}
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
{{
|
|
4
|
+
{{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
5
|
+
{{> components/button/components/button_label _label="1"}}
|
|
6
|
+
{{/components/button/link_button}}
|
|
7
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.nextItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
8
|
+
{{> components/button/components/button_label _label="2"}}
|
|
9
|
+
{{/components/button/link_button}}
|
|
10
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
11
|
+
{{> components/button/components/button_label _label="3"}}
|
|
12
|
+
{{/components/button/link_button}}
|
|
13
|
+
{{> components/pagination/pagination_button_right_linked }}
|
|
14
|
+
</div>
|
|
9
15
|
{{else}}
|
|
10
|
-
{{~#if _secondPage~}}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{{> components/
|
|
18
|
-
|
|
19
|
-
{{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
{{~#if _secondPage~}}
|
|
17
|
+
<div class="flex h-10">
|
|
18
|
+
{{> components/pagination/pagination_button_left_linked }}
|
|
19
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
20
|
+
{{> components/button/components/button_label _label="1"}}
|
|
21
|
+
{{/components/button/link_button}}
|
|
22
|
+
{{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
23
|
+
{{> components/button/components/button_label _label="2"}}
|
|
24
|
+
{{/components/button/link_button}}
|
|
25
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
26
|
+
{{> components/button/components/button_label _label="3"}}
|
|
27
|
+
{{/components/button/link_button}}
|
|
28
|
+
{{> components/pagination/pagination_button_right_linked }}
|
|
29
|
+
</div>
|
|
30
|
+
{{else}}
|
|
31
|
+
<div class="flex h-10">
|
|
32
|
+
{{> components/pagination/pagination_button_left_linked }}
|
|
33
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
34
|
+
{{> components/button/components/button_label _label="1"}}
|
|
35
|
+
{{/components/button/link_button}}
|
|
36
|
+
{{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastButOneItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
37
|
+
{{> components/button/components/button_label _label="2"}}
|
|
38
|
+
{{/components/button/link_button}}
|
|
39
|
+
{{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
40
|
+
{{> components/button/components/button_label _label="3"}}
|
|
41
|
+
{{/components/button/link_button}}
|
|
42
|
+
{{> components/pagination/pagination_button_right }}
|
|
43
|
+
</div>
|
|
26
44
|
{{~/if~}}
|
|
27
45
|
{{~/if~}}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
{{~#if _firstPage~}}
|
|
2
|
+
<div class="flex h-10">
|
|
2
3
|
{{> components/pagination/pagination_button_left }}
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
{{#> components/button/button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
5
|
+
{{> components/button/components/button_label _label="1"}}
|
|
6
|
+
{{/components/button/button}}
|
|
7
|
+
{{#> components/button/button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
8
|
+
{{> components/button/components/button_label _label="2"}}
|
|
9
|
+
{{/components/button/button}}
|
|
7
10
|
{{> components/pagination/pagination_button_right_linked }}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<div class="
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{{
|
|
11
|
+
</div>
|
|
12
|
+
{{else}}
|
|
13
|
+
<div class="flex h-10">
|
|
14
|
+
{{> components/pagination/pagination_button_left_linked }}
|
|
15
|
+
{{#> components/button/button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
16
|
+
{{> components/button/components/button_label _label="1"}}
|
|
17
|
+
{{/components/button/button}}
|
|
18
|
+
{{#> components/button/button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
|
|
19
|
+
{{> components/button/components/button_label _label="2"}}
|
|
20
|
+
{{/components/button/button}}
|
|
21
|
+
{{> components/pagination/pagination_button_right }}
|
|
22
|
+
</div>
|
|
15
23
|
{{~/if~}}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
{{/components/teaser/components/teaser_headline}}
|
|
23
23
|
{{/components/teaser/components/teaser_header}}
|
|
24
24
|
{{/components/base/link}}
|
|
25
|
-
<span class="absolute flex w-full h-full
|
|
25
|
+
<span class="absolute flex items-end justify-center w-full h-full ds-cta">
|
|
26
26
|
{{#> components/button/link_button _link=this.link _size="lg" _css=(inline-switch this.realTeaserSize '["33","50"]' '["z-20 mb-7","z-20 mb-7 md:mb-16"]') _variant="secondary" _isAriaHidden=true _onBackground=true}}
|
|
27
27
|
{{> components/button/components/button_label _css="" _label=this.link.readMoreText.readMoreLong}}
|
|
28
28
|
{{/components/button/link_button}}
|
package/tailwind.config.js
CHANGED
|
@@ -341,6 +341,8 @@ module.exports = {
|
|
|
341
341
|
'button--dark': 'var(--color-button--dark)',
|
|
342
342
|
'button-inverted': 'var(--color-button-inverted)',
|
|
343
343
|
'button-inverted--dark': 'var(--color-button-inverted--dark)',
|
|
344
|
+
'button-disabled': 'var(--color-button-disabled)',
|
|
345
|
+
'button-disabled--dark': 'var(--color-button-disabled--dark)',
|
|
344
346
|
'media-button': 'var(--color-media-button)',
|
|
345
347
|
'focus-state': 'var(--color-focus-state)',
|
|
346
348
|
'content-nav': 'var(--color-content-nav)',
|