hr-design-system-handlebars 1.113.4 → 1.113.6
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 +3 -0
- package/dist/assets/brand/hr/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr1/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr2/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr3/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr4/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/you-fm/conf/locatags.merged.json +3 -0
- package/dist/assets/index.css +57 -8
- package/dist/assets/js/components/forms/js/contactForm.alpine.js +5 -2
- package/dist/views/components/forms/components/controls.hbs +3 -3
- package/dist/views/components/forms/components/message.hbs +3 -3
- package/dist/views/components/forms/webform.hbs +1 -1
- package/dist/views/components/voting/voting_result.hbs +39 -10
- package/dist/views/components/voting/voting_success.hbs +27 -0
- package/dist/views_static/components/forms/components/controls.hbs +3 -3
- package/dist/views_static/components/forms/components/message.hbs +3 -3
- package/dist/views_static/components/forms/webform.hbs +1 -1
- package/dist/views_static/components/voting/voting_result.hbs +39 -10
- package/dist/views_static/components/voting/voting_success.hbs +27 -0
- package/package.json +1 -1
- package/src/assets/brand/_default/conf/locatags.json +4 -1
- package/src/assets/brand/hessenschau/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-bigband/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-werbung/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr1/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr2/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr3/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr4/conf/locatags.merged.json +3 -0
- package/src/assets/brand/you-fm/conf/locatags.merged.json +3 -0
- package/src/assets/css/custom-utilities.css +16 -0
- package/src/assets/fixtures/forms/error_messages.inc.json +1 -1
- package/src/assets/fixtures/voting/voting.inc.json +23 -16
- package/src/assets/fixtures/voting/voting_error.json +10 -0
- package/src/stories/views/components/content/copytext/fixtures/copytext_webform.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_webform_simple.json +1 -1
- package/src/stories/views/components/forms/components/controls.hbs +3 -3
- package/src/stories/views/components/forms/components/message.hbs +3 -3
- package/src/stories/views/components/forms/js/contactForm.alpine.js +5 -2
- package/src/stories/views/components/forms/webform.hbs +1 -1
- package/src/stories/views/components/voting/fixtures/voting.json +1 -1
- package/src/stories/views/components/voting/fixtures/voting_error.json +1 -0
- package/src/stories/views/components/voting/fixtures/voting_over.json +1 -1
- package/src/stories/views/components/voting/voting_error.stories.js +3 -3
- package/src/stories/views/components/voting/voting_result.hbs +39 -10
- package/src/stories/views/components/voting/voting_result.stories.js +1 -1
- package/src/stories/views/components/voting/voting_success.hbs +27 -0
- package/src/stories/views/components/voting/voting_success.stories.js +30 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{{#if this.votingSuccessText}}
|
|
2
|
+
{{> components/voting/voting_result
|
|
3
|
+
_title=this.title
|
|
4
|
+
_topline=this.topline
|
|
5
|
+
_resultBoxMessageTitle=(loca "votingform_title_success")
|
|
6
|
+
_resultBoxMessageText=this.votingSuccessText.richtext
|
|
7
|
+
_isInline=_isInline
|
|
8
|
+
_voteResults=this.votingResult
|
|
9
|
+
_isResultOnRedirectPage=_isResultOnRedirectPage
|
|
10
|
+
_hideVotingResult=this.hideVotingResult
|
|
11
|
+
_statusDone=_statusDone
|
|
12
|
+
|
|
13
|
+
}}
|
|
14
|
+
{{else}}
|
|
15
|
+
{{> components/voting/voting_result
|
|
16
|
+
_title=this.title
|
|
17
|
+
_topline=this.topline
|
|
18
|
+
_resultBoxMessageTitle=(loca "votingform_title_success")
|
|
19
|
+
_resultBoxMessageText=(loca "votingform_text_success")
|
|
20
|
+
_isInline=_isInline
|
|
21
|
+
_voteResults=this.votingResult
|
|
22
|
+
_isResultOnRedirectPage=_isResultOnRedirectPage
|
|
23
|
+
_hideVotingResult=this.hideVotingResult
|
|
24
|
+
_statusDone=_statusDone
|
|
25
|
+
}}
|
|
26
|
+
{{/if}}
|
|
27
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import votingJson from './fixtures/voting.json'
|
|
2
|
+
|
|
3
|
+
const handlebars = require('hrHandlebars')
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Komponenten/Voting',
|
|
7
|
+
decorators: [
|
|
8
|
+
(Story) => {
|
|
9
|
+
return `<div class="grid grid-page">
|
|
10
|
+
<div class="grid bg-white grid-article">
|
|
11
|
+
${Story()}
|
|
12
|
+
</div>
|
|
13
|
+
</div>`
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
}
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
let hbsTemplate = handlebars.compile(`
|
|
19
|
+
{{#>components/forms/components/backgroundBox }}
|
|
20
|
+
{{> components/voting/voting_success }}
|
|
21
|
+
{{/components/forms/components/backgroundBox }}
|
|
22
|
+
`)
|
|
23
|
+
return hbsTemplate({ ...args })
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const Voting_Success = {
|
|
27
|
+
render: Template.bind({}),
|
|
28
|
+
name: 'Ergebnis Barchart prozentual',
|
|
29
|
+
args: votingJson,
|
|
30
|
+
}
|