hr-design-system-handlebars 1.114.1 → 1.114.3
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 +24 -0
- package/dist/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr1/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr2/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr3/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr4/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/you-fm/conf/locatags.merged.json +1 -0
- package/dist/assets/icons/icons/svgmap.min.svg +1 -1
- package/dist/assets/index.css +3 -3
- package/dist/assets/js/components/voting/js/votingCookieCheckerDs.feature.js +1 -1
- package/dist/assets/js/components/voting/js/votingResultCookieDs.feature.js +12 -0
- package/dist/views/components/newsletter/components/new_newsletter_form.hbs +62 -0
- package/dist/views/components/newsletter/components/newsletter_already_registered.hbs +11 -0
- package/dist/views/components/newsletter/components/newsletter_error.hbs +11 -0
- package/dist/views/components/newsletter/components/newsletter_registered.hbs +11 -0
- package/dist/views/components/newsletter/components/newsletter_result.hbs +15 -0
- package/dist/views/components/newsletter/components/newsletter_success.hbs +11 -0
- package/dist/views/components/newsletter/newsletter.hbs +30 -0
- package/dist/views/components/newsletter/newsletter_registered.hbs +0 -0
- package/dist/views/components/newsletter/newsletter_success.hbs +0 -0
- package/dist/views/components/voting/voting.hbs +92 -60
- package/dist/views/components/voting/voting_error.hbs +2 -2
- package/dist/views/components/voting/voting_result.hbs +58 -49
- package/dist/views/components/voting/voting_success.hbs +4 -4
- package/dist/views/components/voting/voting_success_2F.hbs +2 -2
- package/dist/views_static/components/newsletter/components/new_newsletter_form.hbs +62 -0
- package/dist/views_static/components/newsletter/components/newsletter_already_registered.hbs +11 -0
- package/dist/views_static/components/newsletter/components/newsletter_error.hbs +11 -0
- package/dist/views_static/components/newsletter/components/newsletter_registered.hbs +11 -0
- package/dist/views_static/components/newsletter/components/newsletter_result.hbs +15 -0
- package/dist/views_static/components/newsletter/components/newsletter_success.hbs +11 -0
- package/dist/views_static/components/newsletter/newsletter.hbs +30 -0
- package/dist/views_static/components/newsletter/newsletter_registered.hbs +0 -0
- package/dist/views_static/components/newsletter/newsletter_success.hbs +0 -0
- package/dist/views_static/components/voting/voting.hbs +92 -60
- package/dist/views_static/components/voting/voting_error.hbs +2 -2
- package/dist/views_static/components/voting/voting_result.hbs +58 -49
- package/dist/views_static/components/voting/voting_success.hbs +4 -4
- package/dist/views_static/components/voting/voting_success_2F.hbs +2 -2
- package/package.json +1 -1
- package/src/assets/brand/_default/conf/locatags.json +1 -0
- package/src/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr1/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr2/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr3/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr4/conf/locatags.merged.json +1 -0
- package/src/assets/brand/you-fm/conf/locatags.merged.json +1 -0
- package/src/assets/fixtures/voting/voting.inc.json +4 -4
- package/src/assets/icons/icons/svgmap.min.svg +1 -1
- package/src/stories/views/components/newsletter/components/new_newsletter_form.hbs +62 -0
- package/src/stories/views/components/newsletter/components/newsletter_already_registered.hbs +11 -0
- package/src/stories/views/components/newsletter/components/newsletter_error.hbs +11 -0
- package/src/stories/views/components/newsletter/components/newsletter_form.hbs.DEPRECATED +106 -0
- package/src/stories/views/components/newsletter/components/newsletter_registered.hbs +11 -0
- package/src/stories/views/components/newsletter/components/newsletter_result.hbs +15 -0
- package/src/stories/views/components/newsletter/components/newsletter_success.hbs +11 -0
- package/src/stories/views/components/newsletter/fixtures/newsletter.json +46 -0
- package/src/stories/views/components/newsletter/newsletter.hbs +30 -0
- package/src/stories/views/components/newsletter/newsletter.stories.js +32 -0
- package/src/stories/views/components/newsletter/newsletter_registered.hbs +0 -0
- package/src/stories/views/components/newsletter/newsletter_success.hbs +0 -0
- package/src/stories/views/components/voting/fixtures/voting.json +1 -1
- package/src/stories/views/components/voting/fixtures/voting_email.json +1 -1
- package/src/stories/views/components/voting/fixtures/voting_error.json +1 -1
- package/src/stories/views/components/voting/fixtures/voting_media.json +1 -1
- package/src/stories/views/components/voting/fixtures/voting_multiple_choice.json +1 -1
- package/src/stories/views/components/voting/fixtures/voting_over.json +1 -1
- package/src/stories/views/components/voting/fixtures/voting_result_absolute.json +1 -1
- package/src/stories/views/components/voting/js/votingCookieCheckerDs.feature.js +1 -1
- package/src/stories/views/components/voting/js/votingResultCookieDs.feature.js +12 -0
- package/src/stories/views/components/voting/voting.hbs +92 -60
- package/src/stories/views/components/voting/voting.stories.js +45 -10
- package/src/stories/views/components/voting/voting_error.hbs +2 -2
- package/src/stories/views/components/voting/voting_error.stories.js +9 -4
- package/src/stories/views/components/voting/voting_result.hbs +58 -49
- package/src/stories/views/components/voting/voting_success.hbs +4 -4
- package/src/stories/views/components/voting/voting_success.stories.js +9 -4
- package/src/stories/views/components/voting/voting_success_2F.hbs +2 -2
- package/src/stories/views/components/voting/voting_success_2F.stories.js +9 -4
|
@@ -1,62 +1,71 @@
|
|
|
1
|
-
{{#
|
|
2
|
-
{{
|
|
3
|
-
{{
|
|
1
|
+
<div class="{{#if this.isSimpleSecured}}js-load{{/if}}{{#if _addClass}} {{_addClass}}{{/if}}"
|
|
2
|
+
{{#unless _isVotingOver}}
|
|
3
|
+
{{#if this.isSimpleSecured}}
|
|
4
|
+
data-hr-voting-result-cookie-ds='{"cookieLifetime":"{{this.cookieLifetime}}","votingId":"{{this.sophoraId}}"}'
|
|
5
|
+
{{/if}}
|
|
6
|
+
{{/unless}}
|
|
7
|
+
>
|
|
4
8
|
|
|
5
|
-
{{#
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
{{#unless _isResultOnRedirectPage}}
|
|
10
|
+
{{> components/voting/components/voting_header _title=_title _topline=_topline}}
|
|
11
|
+
{{/unless}}
|
|
12
|
+
|
|
13
|
+
{{#if _hideVotingResult}}
|
|
14
|
+
{{#if _isVotingOver}}
|
|
15
|
+
<p class="mt-6 ml-8 text-base font-bold sm:ml-9 sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
|
|
16
|
+
{{else}}
|
|
17
|
+
{{~> components/base/image/icon _icon=(if _statusDone "status-done" "status-error") _iconmap="icons" _addClass=(if _statusDone "" "float-left w-6 h-6 text-error dark:text-error-dark fill-current mt-6 sm:mt-12")}}
|
|
18
|
+
<p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-error sm:text-lg font-heading sm:mt-12 dark:text-error-dark">{{{_resultBoxMessageText}}}</p>
|
|
19
|
+
{{/if}}
|
|
8
20
|
{{else}}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<div class="
|
|
20
|
-
<
|
|
21
|
+
<p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
|
|
22
|
+
|
|
23
|
+
{{#each _voteResults}}
|
|
24
|
+
<div class="flex">
|
|
25
|
+
<div class="grow">
|
|
26
|
+
<div class="{{#if @first}}mt-7 sm:mt-9{{else}}mt-3 sm:mt-4{{/if}} text-base sm:text-lg font-copy dark:text-text-dark">{{this.label}}</div>
|
|
27
|
+
<div class="mt-0.5 sm:mt-1 w-full bg-gray-alto rounded-full h-2">
|
|
28
|
+
<div class="{{#if this.isWinner}}bg-orange-spicyCarrot-hex{{else}}bg-blue-congress-hex{{/if}} h-2 rounded-full" style="width:{{this.roundedPercentageCount}}%;animation: progressAnimationDS 5s"></div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="self-end flex-none w-16">
|
|
32
|
+
<span class="float-right block mt-2 text-2xl font-bold font-headingSerif {{#if this.isWinner}}text-orange-spicyCarrot-hex{{else}}text-blue-congress-hex{{/if}}" style="animation: percentageAnimationDS 5s">
|
|
33
|
+
{{#if ../this.showAbsoluteResult}}{{this.count}}{{else}}{{this.percentageCount}}%{{/if}}
|
|
34
|
+
</span>
|
|
21
35
|
</div>
|
|
22
36
|
</div>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
{{/each}}
|
|
38
|
+
|
|
39
|
+
{{#if this.isMultipleChoice}}
|
|
40
|
+
{{#unless this.showAbsoluteResult}}
|
|
41
|
+
{{#if this.showVoteResult}}
|
|
42
|
+
<p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
|
|
43
|
+
{{loca "votingform_vote_result"}}{{this.summarizedResult}}
|
|
44
|
+
</p>
|
|
45
|
+
{{/if}}
|
|
46
|
+
{{/unless}}
|
|
47
|
+
{{else}}
|
|
33
48
|
{{#if this.showVoteResult}}
|
|
34
49
|
<p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
|
|
35
50
|
{{loca "votingform_vote_result"}}{{this.summarizedResult}}
|
|
36
51
|
</p>
|
|
37
52
|
{{/if}}
|
|
38
|
-
{{/
|
|
39
|
-
{{
|
|
40
|
-
{{#if this.showVoteResult}}
|
|
41
|
-
<p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
|
|
42
|
-
{{loca "votingform_vote_result"}}{{this.summarizedResult}}
|
|
43
|
-
</p>
|
|
44
|
-
{{/if}}
|
|
45
|
-
{{/if}}
|
|
46
|
-
{{/if}}
|
|
53
|
+
{{/if}}
|
|
54
|
+
{{/if}}
|
|
47
55
|
|
|
48
|
-
{{#if _isVotingOver}}
|
|
49
|
-
|
|
50
|
-
{{/if}}
|
|
56
|
+
{{#if _isVotingOver}}
|
|
57
|
+
<p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12 dark:text-text-dark">{{loca "votingform_voting_finished"}}</p>
|
|
58
|
+
{{/if}}
|
|
51
59
|
|
|
52
|
-
{{#unless _isResultOnRedirectPage}}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
{{#unless _isResultOnRedirectPage}}
|
|
61
|
+
{{#unless this.isSimpleSecured}}
|
|
62
|
+
{{#unless _isVotingOver}}
|
|
63
|
+
<div class="mt-6 sm:mt-12">
|
|
64
|
+
{{#> components/button/link_button _size="lg" _css="float-right"}}
|
|
65
|
+
{{> components/button/components/button_label _label=(loca "votingform_form_back")}}
|
|
66
|
+
{{/components/button/link_button}}
|
|
67
|
+
</div>
|
|
68
|
+
{{/unless}}
|
|
60
69
|
{{/unless}}
|
|
61
70
|
{{/unless}}
|
|
62
|
-
|
|
71
|
+
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{#if this.votingSuccessText}}
|
|
2
2
|
{{> components/voting/voting_result
|
|
3
|
-
_title=
|
|
4
|
-
_topline=
|
|
3
|
+
_title=_title
|
|
4
|
+
_topline=_topline
|
|
5
5
|
_resultBoxMessageTitle=(loca "votingform_title_success")
|
|
6
6
|
_resultBoxMessageText=this.votingSuccessText.richtext
|
|
7
7
|
_isInline=_isInline
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
}}
|
|
14
14
|
{{else}}
|
|
15
15
|
{{> components/voting/voting_result
|
|
16
|
-
_title=
|
|
17
|
-
_topline=
|
|
16
|
+
_title=_title
|
|
17
|
+
_topline=_topline
|
|
18
18
|
_resultBoxMessageTitle=(loca "votingform_title_success")
|
|
19
19
|
_resultBoxMessageText=(loca "votingform_text_success")
|
|
20
20
|
_isInline=_isInline
|
|
@@ -14,13 +14,18 @@ export default {
|
|
|
14
14
|
</div>`
|
|
15
15
|
},
|
|
16
16
|
],
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: 'fullscreen',
|
|
19
|
+
chromatic: { disableSnapshot: true }
|
|
20
|
+
}
|
|
17
21
|
}
|
|
22
|
+
|
|
18
23
|
const Template = (args) => {
|
|
19
24
|
let hbsTemplate = handlebars.compile(`
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
{{#>components/forms/components/backgroundBox }}
|
|
26
|
+
{{> components/voting/voting_success _title=this.title _topline=this.topline}}
|
|
27
|
+
{{/components/forms/components/backgroundBox }}
|
|
28
|
+
`)
|
|
24
29
|
return hbsTemplate({ ...args })
|
|
25
30
|
}
|
|
26
31
|
|
|
@@ -13,13 +13,18 @@ export default {
|
|
|
13
13
|
</div>`
|
|
14
14
|
},
|
|
15
15
|
],
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: 'fullscreen',
|
|
18
|
+
chromatic: { disableSnapshot: true }
|
|
19
|
+
}
|
|
16
20
|
}
|
|
21
|
+
|
|
17
22
|
const Template = (args) => {
|
|
18
23
|
let hbsTemplate = handlebars.compile(`
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
{{#>components/forms/components/backgroundBox }}
|
|
25
|
+
{{> components/voting/voting_success_2F _title=this.title _topline=this.topline}}
|
|
26
|
+
{{/components/forms/components/backgroundBox }}
|
|
27
|
+
`)
|
|
23
28
|
return hbsTemplate({ ...args })
|
|
24
29
|
}
|
|
25
30
|
|