hr-design-system-handlebars 1.114.16 → 1.114.18

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 (67) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
  3. package/dist/assets/brand/hr/conf/locatags.merged.json +1 -0
  4. package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
  5. package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
  6. package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
  7. package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
  8. package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
  9. package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
  10. package/dist/assets/brand/hr1/conf/locatags.merged.json +1 -0
  11. package/dist/assets/brand/hr2/conf/locatags.merged.json +1 -0
  12. package/dist/assets/brand/hr3/conf/locatags.merged.json +1 -0
  13. package/dist/assets/brand/hr4/conf/locatags.merged.json +1 -0
  14. package/dist/assets/brand/you-fm/conf/locatags.merged.json +1 -0
  15. package/dist/assets/index.css +17 -9
  16. package/dist/views/components/content/copytext/components/image/figure.hbs +1 -1
  17. package/dist/views/components/forms/components/choice.hbs +9 -2
  18. package/dist/views/components/forms/components/choiceGroup.hbs +4 -5
  19. package/dist/views/components/forms/components/fields.hbs +2 -0
  20. package/dist/views/components/forms/components/mediaChoice.hbs +13 -0
  21. package/dist/views/components/voting/voting.hbs +9 -5
  22. package/dist/views/components/voting/voting_result.hbs +2 -2
  23. package/dist/views_static/components/content/copytext/components/image/figure.hbs +1 -1
  24. package/dist/views_static/components/forms/components/choice.hbs +9 -2
  25. package/dist/views_static/components/forms/components/choiceGroup.hbs +4 -5
  26. package/dist/views_static/components/forms/components/fields.hbs +2 -0
  27. package/dist/views_static/components/forms/components/mediaChoice.hbs +13 -0
  28. package/dist/views_static/components/voting/voting.hbs +9 -5
  29. package/dist/views_static/components/voting/voting_result.hbs +2 -2
  30. package/package.json +1 -1
  31. package/src/assets/brand/_default/conf/locatags.json +1 -0
  32. package/src/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
  33. package/src/assets/brand/hr/conf/locatags.merged.json +1 -0
  34. package/src/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
  35. package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
  36. package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
  37. package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
  38. package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
  39. package/src/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
  40. package/src/assets/brand/hr1/conf/locatags.merged.json +1 -0
  41. package/src/assets/brand/hr2/conf/locatags.merged.json +1 -0
  42. package/src/assets/brand/hr3/conf/locatags.merged.json +1 -0
  43. package/src/assets/brand/hr4/conf/locatags.merged.json +1 -0
  44. package/src/assets/brand/you-fm/conf/locatags.merged.json +1 -0
  45. package/src/assets/fixtures/voting/voting.inc.json +1 -0
  46. package/src/assets/fixtures/voting/voting.json +18 -2
  47. package/src/assets/fixtures/voting/voting_horizontal.json +47 -0
  48. package/src/assets/fixtures/voting/voting_media_image_horizontal.json +137 -0
  49. package/src/assets/fixtures/voting/{voting_media.json → voting_media_image_vertical.json} +36 -12
  50. package/src/stories/views/components/content/copytext/components/image/figure.hbs +1 -1
  51. package/src/stories/views/components/forms/components/choice.hbs +9 -2
  52. package/src/stories/views/components/forms/components/choiceGroup.hbs +4 -5
  53. package/src/stories/views/components/forms/components/fields.hbs +2 -0
  54. package/src/stories/views/components/forms/components/mediaChoice.hbs +13 -0
  55. package/src/stories/views/components/voting/fixtures/voting.json +1 -1
  56. package/src/stories/views/components/voting/fixtures/voting_email.json +1 -1
  57. package/src/stories/views/components/voting/fixtures/voting_error.json +1 -1
  58. package/src/stories/views/components/voting/fixtures/voting_horizontal.json +1 -0
  59. package/src/stories/views/components/voting/fixtures/voting_media_image_horizontal.json +1 -0
  60. package/src/stories/views/components/voting/fixtures/voting_media_image_vertical.json +1 -0
  61. package/src/stories/views/components/voting/fixtures/voting_multiple_choice.json +1 -1
  62. package/src/stories/views/components/voting/fixtures/voting_over.json +1 -1
  63. package/src/stories/views/components/voting/fixtures/voting_result_absolute.json +1 -1
  64. package/src/stories/views/components/voting/voting.hbs +9 -5
  65. package/src/stories/views/components/voting/voting.stories.js +43 -6
  66. package/src/stories/views/components/voting/voting_result.hbs +2 -2
  67. package/src/stories/views/components/voting/fixtures/voting_media.json +0 -1
@@ -37,6 +37,7 @@
37
37
  "feature_box_anchor": "Livestream Player anspringen",
38
38
  "featured_content_headline": "Mehr zum Thema:",
39
39
  "figures_copyright": "Bild © ",
40
+ "figures_copyright_voting": "Bild © {0}",
40
41
  "gallery_image_copyright": "Bild © {0}",
41
42
  "geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
42
43
  "geotag_metadescription_prefix": "",
@@ -10,6 +10,7 @@
10
10
  "headingSize": "h2",
11
11
  "isVoting": true,
12
12
  "isMultiVote": true,
13
+ "isMultimediaVoting": false,
13
14
  "hasRedirect": false,
14
15
  "isMultipleChoice": false,
15
16
  "maxAnswerCount": 1,
@@ -13,6 +13,14 @@
13
13
  "@->contentpath": "multivote-1"
14
14
  }
15
15
  },
16
+ "voting_horizontal": {
17
+ "config": {
18
+ "useAsSnapshot": true
19
+ },
20
+ "args": {
21
+ "@->jsoninclude": "voting/voting_horizontal.json"
22
+ }
23
+ },
16
24
  "voting_email": {
17
25
  "config": {
18
26
  "useAsSnapshot": true
@@ -21,12 +29,20 @@
21
29
  "@->jsoninclude": "voting/voting_email.json"
22
30
  }
23
31
  },
24
- "voting_media": {
32
+ "voting_media_image_horizontal": {
33
+ "config": {
34
+ "useAsSnapshot": true
35
+ },
36
+ "args": {
37
+ "@->jsoninclude": "voting/voting_media_image_horizontal.json"
38
+ }
39
+ },
40
+ "voting_media_image_vertical": {
25
41
  "config": {
26
42
  "useAsSnapshot": true
27
43
  },
28
44
  "args": {
29
- "@->jsoninclude": "voting/voting_media.json"
45
+ "@->jsoninclude": "voting/voting_media_image_vertical.json"
30
46
  }
31
47
  },
32
48
  "voting_multiple_choice": {
@@ -0,0 +1,47 @@
1
+ {
2
+ "@->jsoninclude": "voting/voting.inc.json",
3
+ "@->contentpath": "multivote-1",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath":"form.isHorizontalLayout",
7
+ "@->value": true
8
+ },
9
+ {
10
+ "@->contentpath":"form.fields",
11
+ "@->value": [
12
+ {
13
+ "type": {
14
+ "isGroup": false,
15
+ "isChoice": true,
16
+ "asString": "radio"
17
+ },
18
+ "name": "multivoting",
19
+ "isGrouped": true,
20
+ "isRequired": false,
21
+ "options": [
22
+ {
23
+ "value": "1",
24
+ "label": "Gut",
25
+ "title": "Voting-Answer 1"
26
+ },
27
+ {
28
+ "value": "2",
29
+ "label": "Super",
30
+ "title": "Voting-Answer 2"
31
+ },
32
+ {
33
+ "value": "3",
34
+ "label": "Mega",
35
+ "title": "Voting-Answer 3"
36
+ },
37
+ {
38
+ "value": "4",
39
+ "label": "Hammer",
40
+ "title": "Voting-Answer 4"
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,137 @@
1
+ {
2
+ "@->jsoninclude": "voting/voting.inc.json",
3
+ "@->contentpath": "multivote-1",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath":"form.isHorizontalLayout",
7
+ "@->value": true
8
+ },
9
+ {
10
+ "@->contentpath": "isMultipleChoice",
11
+ "@->value": true
12
+ },
13
+ {
14
+ "@->contentpath": "maxAnswerCount",
15
+ "@->value": 3
16
+ },
17
+ {
18
+ "@->contentpath":"isMultimediaVoting",
19
+ "@->value": true
20
+ },
21
+ {
22
+ "@->contentpath":"form.shorttext",
23
+ "@->value": ""
24
+ },
25
+ {
26
+ "@->contentpath":"title",
27
+ "@->value": "Welches Bild gefällt Ihnen am besten?"
28
+ },
29
+ {
30
+ "@->contentpath":"votingResult",
31
+ "@->value": [
32
+ {
33
+ "label": "Bild 1",
34
+ "count": "27",
35
+ "percentageCount": "4,1",
36
+ "roundedPercentageCount": "4.0"
37
+ },
38
+ {
39
+ "label": "Bild 2",
40
+ "count": "117",
41
+ "percentageCount": "17,6",
42
+ "roundedPercentageCount": "18.0"
43
+ },
44
+ {
45
+ "label": "Bild 3",
46
+ "count": "242",
47
+ "percentageCount": "36,3",
48
+ "roundedPercentageCount": "36.0"
49
+ },
50
+ {
51
+ "label": "Bild 4",
52
+ "count": "280",
53
+ "percentageCount": "42,0",
54
+ "roundedPercentageCount": "42.0",
55
+ "isWinner": true
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "@->contentpath":"form.fields",
61
+ "@->value": [
62
+ {
63
+ "type": {
64
+ "isGroup": false,
65
+ "isChoice": true,
66
+ "asString": "checkbox"
67
+ },
68
+ "name": "multivoting",
69
+ "isGrouped": true,
70
+ "isRequired": false,
71
+ "options": [
72
+ {
73
+ "value": "1",
74
+ "label": "Bild 1",
75
+ "title": "Voting-Answer 1",
76
+ "mediaItem": {
77
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
78
+ "@->contentpath": "copytext_image_50",
79
+ "@->replaceToken": [
80
+ {
81
+ "@->token": "image",
82
+ "@->value": "rueckkehr-nach-abschiebung-102"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "value": "2",
89
+ "label": "Bild 2",
90
+ "title": "Voting-Answer 2",
91
+ "mediaItem": {
92
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
93
+ "@->contentpath": "copytext_image_50",
94
+ "@->replaceToken": [
95
+ {
96
+ "@->token": "image",
97
+ "@->value": "buchmesse-fahnen-102"
98
+ }
99
+ ]
100
+ }
101
+ },
102
+ {
103
+ "value": "3",
104
+ "label": "Bild 3",
105
+ "title": "Voting-Answer 3",
106
+ "mediaItem": {
107
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
108
+ "@->contentpath": "copytext_image_50",
109
+ "@->replaceToken": [
110
+ {
111
+ "@->token": "image",
112
+ "@->value": "connichi-106"
113
+ }
114
+ ]
115
+ }
116
+ },
117
+ {
118
+ "value": "4",
119
+ "label": "Bild 4",
120
+ "title": "Voting-Answer 4",
121
+ "mediaItem": {
122
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
123
+ "@->contentpath": "copytext_image_50",
124
+ "@->replaceToken": [
125
+ {
126
+ "@->token": "image",
127
+ "@->value": "mercedes-suv-g-100"
128
+ }
129
+ ]
130
+ }
131
+ }
132
+ ]
133
+ }
134
+ ]
135
+ }
136
+ ]
137
+ }
@@ -2,13 +2,25 @@
2
2
  "@->jsoninclude": "voting/voting.inc.json",
3
3
  "@->contentpath": "multivote-1",
4
4
  "@->overrides": [
5
+ {
6
+ "@->contentpath": "isMultipleChoice",
7
+ "@->value": true
8
+ },
9
+ {
10
+ "@->contentpath": "maxAnswerCount",
11
+ "@->value": 3
12
+ },
13
+ {
14
+ "@->contentpath":"isMultimediaVoting",
15
+ "@->value": true
16
+ },
5
17
  {
6
18
  "@->contentpath":"form.shorttext",
7
19
  "@->value": ""
8
20
  },
9
21
  {
10
22
  "@->contentpath":"title",
11
- "@->value": "Welches Bild, Audio oder Video gefällt Ihnen am besten?"
23
+ "@->value": "Welches Bild gefällt Ihnen am besten?"
12
24
  },
13
25
  {
14
26
  "@->contentpath":"votingResult",
@@ -26,13 +38,13 @@
26
38
  "roundedPercentageCount": "18.0"
27
39
  },
28
40
  {
29
- "label": "Audio 1",
41
+ "label": "Bild 3",
30
42
  "count": "242",
31
43
  "percentageCount": "36,3",
32
44
  "roundedPercentageCount": "36.0"
33
45
  },
34
46
  {
35
- "label": "Video 1",
47
+ "label": "Bild 4",
36
48
  "count": "280",
37
49
  "percentageCount": "42,0",
38
50
  "roundedPercentageCount": "42.0",
@@ -47,9 +59,9 @@
47
59
  "type": {
48
60
  "isGroup": false,
49
61
  "isChoice": true,
50
- "asString": "radio"
62
+ "asString": "checkbox"
51
63
  },
52
- "name": "voting",
64
+ "name": "multivoting",
53
65
  "isGrouped": true,
54
66
  "isRequired": false,
55
67
  "options": [
@@ -85,22 +97,34 @@
85
97
  },
86
98
  {
87
99
  "value": "3",
88
- "label": "Audio 1",
100
+ "label": "Bild 3",
89
101
  "title": "Voting-Answer 3",
90
102
  "mediaItem": {
91
- "@->jsoninclude": "audio/audios.inc.json",
92
- "@->contentpath": "audio-1"
103
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
104
+ "@->contentpath": "copytext_image_50",
105
+ "@->replaceToken": [
106
+ {
107
+ "@->token": "image",
108
+ "@->value": "connichi-106"
109
+ }
110
+ ]
93
111
  }
94
112
  },
95
113
  {
96
114
  "value": "4",
97
- "label": "Video 1",
115
+ "label": "Bild 4",
98
116
  "title": "Voting-Answer 4",
99
117
  "mediaItem": {
100
- "@->jsoninclude": "video/videos.inc.json",
101
- "@->contentpath": "video-1"
118
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
119
+ "@->contentpath": "copytext_image_50",
120
+ "@->replaceToken": [
121
+ {
122
+ "@->token": "image",
123
+ "@->value": "mercedes-suv-g-100"
124
+ }
125
+ ]
102
126
  }
103
- }
127
+ }
104
128
  ]
105
129
  }
106
130
  ]
@@ -12,7 +12,7 @@
12
12
  {{/with}}
13
13
  {{/inline}}
14
14
  {{else}}
15
- {{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _isWebview=_isWebview _noDelay=_noDelay}}
15
+ {{> components/base/image/responsive_image _title=(if _voting-option (loca "figures_copyright_voting" (strip this.copyrightWithLinks html))) _type=_type _variant=_variant _addClass=_pictureAddClass _isWebview=_isWebview _noDelay=_noDelay}}
16
16
  {{/if}}
17
17
  {{/if}}
18
18
  {{#unless _voting-option}}
@@ -1,5 +1,5 @@
1
1
  {{~changeRandom~}}
2
- <div class="relative flex flex-col w-full {{#unless _inGroup}} mb-5 md:mb-7{{/unless}} gap-y-1 md:gap-y-2"
2
+ <div class="relative flex flex-col {{#if _isHorizontalLayout}} flex-grow{{/if}}{{#if this.mediaItem}} sm:basis-1/2-gap-6{{/if}} {{#unless _inGroup}} mb-5 md:mb-7{{/unless}} gap-y-1 md:gap-y-2"
3
3
  {{#unless _inGroup}}
4
4
  {{#if _required}}
5
5
  ax-load
@@ -9,7 +9,11 @@
9
9
  {{/if}}
10
10
  {{/unless}}
11
11
  >
12
- <div class="flex flex-row items-center w-full cursor-pointer{{#if _addClass}} {{_addClass}}{{/if}}">
12
+ <div class="flex {{#if this.mediaItem}} flex-col {{else}} flex-row{{/if}} items-center w-full h-full cursor-pointer{{#if _addClass}} {{_addClass}}{{/if}}">
13
+ {{#if this.mediaItem}}
14
+ {{> components/forms/components/mediaChoice}}
15
+ <div class="flex flex-row w-full">
16
+ {{/if}}
13
17
  <input class="relative self-start flex-shrink-0 w-6 h-6 bg-white dark:bg-black border appearance-none cursor-pointer disabled:cursor-not-allowed border-form-highlight dark:border-form-highlight-dark {{~inline-switch _type '["checkbox","radio"]' '[" checked:bg-form-highlight checked:border-form-highlight form-checkbox"," checked:bg-white checked:border-form-highlight rounded-full form-radio",""]'}}{{#if _addClassInput}} {{_addClassInput}}{{/if}}"
14
18
  {{#if _required}}
15
19
  :class="{' border-form-highlight dark:border-form-highlight-dark': hideError(),'border-error dark:border-error-dark': hideDescription() }"
@@ -73,6 +77,9 @@
73
77
  {{/if}}
74
78
  {{/if}}
75
79
  </label>
80
+ {{#if this.mediaItem}}
81
+ </div>
82
+ {{/if}}
76
83
  </div>
77
84
  {{#unless _inGroup}}
78
85
  <div class="flex items-end justify-between min-h-5 font-heading">
@@ -19,9 +19,8 @@
19
19
  {{/if}}
20
20
  {{/if}}
21
21
  </legend>
22
- <div class="flex flex-row flex-wrap gap-x-6 md:gap-x-7 gap-y-5{{#if _addClassGroup}} {{_addClassGroup}}{{/if}}" >
23
- {{#each _items}}
24
- <div>
22
+ <div class="flex flex-row gap-x-6 gap-y-5 {{#if _isHorizontalLayout}} flex-wrap sm:flex-nowrap flex-col sm:flex-row{{else}} flex-wrap {{#unless _isMultimediaVoting}}{{_addClassGroup}}{{/unless}}{{/if}}">
23
+ {{#each _items}}
25
24
  {{> components/forms/components/choice
26
25
  _type=../_type
27
26
  _name=../_name
@@ -35,9 +34,9 @@
35
34
  _formId=../_formId
36
35
  _addClass=../_addClassChoice
37
36
  _addClassLabel=../_addClassLabel
38
- _addClassInput=../_addClassInput
37
+ _addClassInput=../_addClassInput
38
+ _isHorizontalLayout=../_isHorizontalLayout
39
39
  }}
40
- </div>
41
40
  {{/each}}
42
41
  </div>
43
42
  <div class="flex items-end justify-between min-h-5 font-heading">
@@ -66,10 +66,12 @@
66
66
  _items=this.options
67
67
  _required=this.isRequired
68
68
  _multipleChoice=../_multipleChoice
69
+ _isHorizontalLayout=../_isHorizontalLayout
69
70
  _addClassGroup=../_addClassGroup
70
71
  _addClassChoice=../_addClassChoice
71
72
  _addClassLabel=../_addClassLabel
72
73
  _addClassInput=../_addClassInput
74
+ _isMultimediaVoting=../_isMultimediaVoting
73
75
  _errorMandatory="Bitte füllen Sie dieses Pflichtfeld aus"
74
76
  _formId=../_formId
75
77
  }}
@@ -0,0 +1,13 @@
1
+ <div onclick="event.preventDefault()">
2
+ {{#with this.mediaItem}}
3
+ {{~#if this.isImage}}
4
+ {{> components/content/copytext/components/image/figure
5
+ _type="story"
6
+ _variant="copytext"
7
+ _pictureAddClass="ar-16-9"
8
+ _noDelay=true
9
+ _voting-option="true"
10
+ _isWebview=_isWebview}}
11
+ {{/if~}}
12
+ {{/with}}
13
+ </div>