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.
Files changed (59) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/assets/brand/hessenschau/conf/locatags.merged.json +3 -0
  3. package/dist/assets/brand/hr/conf/locatags.merged.json +3 -0
  4. package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +3 -0
  5. package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +3 -0
  6. package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +3 -0
  7. package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +3 -0
  8. package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +3 -0
  9. package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +3 -0
  10. package/dist/assets/brand/hr1/conf/locatags.merged.json +3 -0
  11. package/dist/assets/brand/hr2/conf/locatags.merged.json +3 -0
  12. package/dist/assets/brand/hr3/conf/locatags.merged.json +3 -0
  13. package/dist/assets/brand/hr4/conf/locatags.merged.json +3 -0
  14. package/dist/assets/brand/you-fm/conf/locatags.merged.json +3 -0
  15. package/dist/assets/index.css +57 -8
  16. package/dist/assets/js/components/forms/js/contactForm.alpine.js +5 -2
  17. package/dist/views/components/forms/components/controls.hbs +3 -3
  18. package/dist/views/components/forms/components/message.hbs +3 -3
  19. package/dist/views/components/forms/webform.hbs +1 -1
  20. package/dist/views/components/voting/voting_result.hbs +39 -10
  21. package/dist/views/components/voting/voting_success.hbs +27 -0
  22. package/dist/views_static/components/forms/components/controls.hbs +3 -3
  23. package/dist/views_static/components/forms/components/message.hbs +3 -3
  24. package/dist/views_static/components/forms/webform.hbs +1 -1
  25. package/dist/views_static/components/voting/voting_result.hbs +39 -10
  26. package/dist/views_static/components/voting/voting_success.hbs +27 -0
  27. package/package.json +1 -1
  28. package/src/assets/brand/_default/conf/locatags.json +4 -1
  29. package/src/assets/brand/hessenschau/conf/locatags.merged.json +3 -0
  30. package/src/assets/brand/hr/conf/locatags.merged.json +3 -0
  31. package/src/assets/brand/hr-bigband/conf/locatags.merged.json +3 -0
  32. package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +3 -0
  33. package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +3 -0
  34. package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +3 -0
  35. package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +3 -0
  36. package/src/assets/brand/hr-werbung/conf/locatags.merged.json +3 -0
  37. package/src/assets/brand/hr1/conf/locatags.merged.json +3 -0
  38. package/src/assets/brand/hr2/conf/locatags.merged.json +3 -0
  39. package/src/assets/brand/hr3/conf/locatags.merged.json +3 -0
  40. package/src/assets/brand/hr4/conf/locatags.merged.json +3 -0
  41. package/src/assets/brand/you-fm/conf/locatags.merged.json +3 -0
  42. package/src/assets/css/custom-utilities.css +16 -0
  43. package/src/assets/fixtures/forms/error_messages.inc.json +1 -1
  44. package/src/assets/fixtures/voting/voting.inc.json +23 -16
  45. package/src/assets/fixtures/voting/voting_error.json +10 -0
  46. package/src/stories/views/components/content/copytext/fixtures/copytext_webform.json +1 -1
  47. package/src/stories/views/components/content/copytext/fixtures/copytext_webform_simple.json +1 -1
  48. package/src/stories/views/components/forms/components/controls.hbs +3 -3
  49. package/src/stories/views/components/forms/components/message.hbs +3 -3
  50. package/src/stories/views/components/forms/js/contactForm.alpine.js +5 -2
  51. package/src/stories/views/components/forms/webform.hbs +1 -1
  52. package/src/stories/views/components/voting/fixtures/voting.json +1 -1
  53. package/src/stories/views/components/voting/fixtures/voting_error.json +1 -0
  54. package/src/stories/views/components/voting/fixtures/voting_over.json +1 -1
  55. package/src/stories/views/components/voting/voting_error.stories.js +3 -3
  56. package/src/stories/views/components/voting/voting_result.hbs +39 -10
  57. package/src/stories/views/components/voting/voting_result.stories.js +1 -1
  58. package/src/stories/views/components/voting/voting_success.hbs +27 -0
  59. 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
+ }