hr-design-system-handlebars 1.71.0 → 1.73.0

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 CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.73.0 (Tue Jun 18 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - :bug: Fix a bug that caused the airdate not being displayed in the delivery [#952](https://github.com/mumprod/hr-design-system-handlebars/pull/952) ([@szuelch](https://github.com/szuelch))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@szuelch](https://github.com/szuelch)
10
+
11
+ ---
12
+
13
+ # v1.72.0 (Tue Jun 18 2024)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - new template for new content_footer [#951](https://github.com/mumprod/hr-design-system-handlebars/pull/951) ([@StefanVesper](https://github.com/StefanVesper))
18
+
19
+ #### Authors: 1
20
+
21
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
22
+
23
+ ---
24
+
1
25
  # v1.71.0 (Tue Jun 18 2024)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -3365,7 +3365,7 @@ article.indexTextDS .indexTextHighlighted .link {
3365
3365
  border-bottom-color: var(--color-secondary-ds);
3366
3366
  }
3367
3367
  .counter-reset {
3368
- counter-reset: cnt1718704295379;
3368
+ counter-reset: cnt1718712643358;
3369
3369
  }
3370
3370
  .hyphens-auto {
3371
3371
  -webkit-hyphens: auto;
@@ -3744,7 +3744,7 @@ article.indexTextDS .indexTextHighlighted .link {
3744
3744
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3745
3745
  }
3746
3746
  .-ordered {
3747
- counter-increment: cnt1718704295379 1;
3747
+ counter-increment: cnt1718712643358 1;
3748
3748
  }
3749
3749
  .-ordered::before {
3750
3750
  position: absolute;
@@ -3760,7 +3760,7 @@ article.indexTextDS .indexTextHighlighted .link {
3760
3760
  letter-spacing: .0125em;
3761
3761
  --tw-text-opacity: 1;
3762
3762
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3763
- content: counter(cnt1718704295379);
3763
+ content: counter(cnt1718712643358);
3764
3764
  }
3765
3765
  /*! ****************************/
3766
3766
  /*! DataPolicy stuff */
@@ -1,17 +1,54 @@
1
- <footer class="flex flex-col mt-10 text-xs md:text-sm font-headingSerif dark:text-text-dark {{#if _addClass}} {{_addClass}}{{/if}}">
2
- {{~#with _author ~}}
3
- <p>
4
- Autor: {{this}}
1
+ <footer class="flex flex-col mt-10 text-xs md:text-sm text-gray-scorpion dark:text-text-dark font-headingSerif{{#if _addClass}} {{_addClass}}{{/if}}">
2
+ {{#with this.editorialStaffItems}}
3
+ <p class="">
4
+ Redaktion:
5
+ {{#each this}}
6
+ {{#if this.hasProfileLink}}
7
+ {{#>components/base/link _link=this.link _css="" }}
8
+ <span>{{../this.authorName~}}</span>{{/components/base/link}}{{#with
9
+ this.textAfterAuthor}} {{this}}{{/with}}{{this.delimiter}}
10
+ {{else}}
11
+ {{this.from}}{{#with this.textAfterAuthor}} {{this}}{{/with}}{{this.delimiter}}
12
+ {{/if}}
13
+ {{/each}}
5
14
  </p>
15
+ {{/with}}
16
+ {{~#with this.programReferenceAlt~}}
17
+ {{~#if this.hasReference~}}
18
+ <div class="">
19
+ Sendung:
20
+ {{#if this.link}}
21
+ {{#>components/base/link _link=this.link }}
22
+ <span class='hover:underline'>
23
+ {{this.title}} {{#if this.date}}
24
+ <time datetime="{{#if this.displayWithTime}}{{this.date.htmlDateTime}}{{else}}{{this.date.date}}{{/if}}"
25
+ class="{{#if _isArticle}}{{else}}{{/if}} ">
26
+ {{#if this.displayWithTime}}
27
+ {{loca "date_simple_at" this.date.dateSeparatorTime}}
28
+ {{else}}
29
+ {{this.date.date}}
30
+ {{/if}}
31
+ </time>
32
+ {{/if}}
33
+ </span>
34
+ {{/components/base/link}}
35
+ {{else}}
36
+ <span class=''>{{this.title}} {{#if this.date}}
37
+ <time datetime="{{#if this.displayWithTime}}{{this.date.htmlDateTime}}{{else}}{{this.date.date}}{{/if}}"
38
+ class="{{#if _isArticle}}{{else}}{{/if}} ">
39
+ {{#if this.displayWithTime}}
40
+ {{loca "date_simple_at" this.date.dateSeparatorTime}}
41
+ {{else}}
42
+ {{this.date.date}}
43
+ {{/if}}
44
+ </time>
45
+ {{/if}}
46
+
47
+ </span>
48
+ {{/if}}
49
+ </div>
50
+ {{~/if~}}
6
51
  {{~/with~}}
7
- {{#if _showDate ~}}
8
- {{#with _date}}
9
- <p>
10
- <time datetime="{{this.htmlDateTime}}">{{loca "date_published" this.date this.time }}</time>
11
- </p>
12
- {{/with~}}
13
- {{/if}}
14
-
15
52
  {{~#with _source}}
16
53
  <p>
17
54
  {{~loca "copyright_source"~}}
@@ -20,31 +57,16 @@
20
57
  {{/each~}}
21
58
  </p>
22
59
  {{/with~}}
23
-
24
- {{~#with _copyright ~}}
25
- <p>
26
- {{~loca "copyright_source"}} {{loca "copyright_symbol" this ~}}
27
- </p>
28
- {{~/with~}}
29
-
30
60
  {{~#if _isArchiveContent}}
31
61
  <p>
32
62
  {{loca "archive_content"}}
33
63
  </p>
34
64
  {{/if}}
35
-
36
- {{~#with _posterCopyright ~}}
37
- {{~#with ../teaseritem.copyrightWithLinks}}
65
+ {{#if _showDate ~}}
66
+ {{#with _date}}
38
67
  <p>
39
- {{~loca ../this this}}
68
+ <time datetime="{{this.htmlDateTime}}">{{loca "date_published" this.date this.time }}</time>
40
69
  </p>
41
- {{~/with~}}
42
- {{~/with~}}
43
-
44
- <!-- TODO teaseritem.copyrightWithLinks dont work in gallery, generalize model -->
45
- {{~#with _galleryCopyright ~}}
46
- <p>
47
- {{~loca this ../copyrightWithLinks}}
48
- </p>
49
- {{~/with~}}
70
+ {{/with~}}
71
+ {{/if}}
50
72
  </footer>
@@ -2,13 +2,15 @@
2
2
  {{~> components/base/a11y/hiddenText _locaTag=_a11yIntro-loca ~}}
3
3
  {{#unless _voting-option}}
4
4
  <figcaption class="py-3 mx-5 sm:mx-0 sm:py-4 border-t-[3px] border-gray-boulder">
5
- {{#with this.label}}
5
+ {{#if this.label}}
6
6
  {{#> components/label/label_group}}
7
- {{> components/label/label _type=this.type _text=(loca this.loca) }}
8
- {{> components/label/label_byline _css="ml-2"}}
9
- {{#with ../this}}{{> components/content/copytext/components/media/media_figure_byline}}{{/with~}}
7
+ {{#with this.label}}
8
+ {{> components/label/label _type=this.type _text=(loca this.loca) }}
9
+ {{> components/label/label_byline _css="ml-2"}}
10
+ {{/with}}
11
+ {{> components/content/copytext/components/media/media_figure_byline this}}
10
12
  {{/components/label/label_group}}
11
- {{/with~}}
13
+ {{/if~}}
12
14
  {{#with this.toModel.mediaBacklinkToStoryTeaser}}
13
15
  {{#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"}}
14
16
  {{> components/content/copytext/components/media/media_figure_headline}}
@@ -1,17 +1,54 @@
1
- <footer class="flex flex-col mt-10 text-xs md:text-sm font-headingSerif dark:text-text-dark {{#if _addClass}} {{_addClass}}{{/if}}">
2
- {{~#with _author ~}}
3
- <p>
4
- Autor: {{this}}
1
+ <footer class="flex flex-col mt-10 text-xs md:text-sm text-gray-scorpion dark:text-text-dark font-headingSerif{{#if _addClass}} {{_addClass}}{{/if}}">
2
+ {{#with this.editorialStaffItems}}
3
+ <p class="">
4
+ Redaktion:
5
+ {{#each this}}
6
+ {{#if this.hasProfileLink}}
7
+ {{#>components/base/link _link=this.link _css="" }}
8
+ <span>{{../this.authorName~}}</span>{{/components/base/link}}{{#with
9
+ this.textAfterAuthor}} {{this}}{{/with}}{{this.delimiter}}
10
+ {{else}}
11
+ {{this.from}}{{#with this.textAfterAuthor}} {{this}}{{/with}}{{this.delimiter}}
12
+ {{/if}}
13
+ {{/each}}
5
14
  </p>
15
+ {{/with}}
16
+ {{~#with this.programReferenceAlt~}}
17
+ {{~#if this.hasReference~}}
18
+ <div class="">
19
+ Sendung:
20
+ {{#if this.link}}
21
+ {{#>components/base/link _link=this.link }}
22
+ <span class='hover:underline'>
23
+ {{this.title}} {{#if this.date}}
24
+ <time datetime="{{#if this.displayWithTime}}{{this.date.htmlDateTime}}{{else}}{{this.date.date}}{{/if}}"
25
+ class="{{#if _isArticle}}{{else}}{{/if}} ">
26
+ {{#if this.displayWithTime}}
27
+ {{loca "date_simple_at" this.date.dateSeparatorTime}}
28
+ {{else}}
29
+ {{this.date.date}}
30
+ {{/if}}
31
+ </time>
32
+ {{/if}}
33
+ </span>
34
+ {{/components/base/link}}
35
+ {{else}}
36
+ <span class=''>{{this.title}} {{#if this.date}}
37
+ <time datetime="{{#if this.displayWithTime}}{{this.date.htmlDateTime}}{{else}}{{this.date.date}}{{/if}}"
38
+ class="{{#if _isArticle}}{{else}}{{/if}} ">
39
+ {{#if this.displayWithTime}}
40
+ {{loca "date_simple_at" this.date.dateSeparatorTime}}
41
+ {{else}}
42
+ {{this.date.date}}
43
+ {{/if}}
44
+ </time>
45
+ {{/if}}
46
+
47
+ </span>
48
+ {{/if}}
49
+ </div>
50
+ {{~/if~}}
6
51
  {{~/with~}}
7
- {{#if _showDate ~}}
8
- {{#with _date}}
9
- <p>
10
- <time datetime="{{this.htmlDateTime}}">{{loca "date_published" this.date this.time }}</time>
11
- </p>
12
- {{/with~}}
13
- {{/if}}
14
-
15
52
  {{~#with _source}}
16
53
  <p>
17
54
  {{~loca "copyright_source"~}}
@@ -20,31 +57,16 @@
20
57
  {{/each~}}
21
58
  </p>
22
59
  {{/with~}}
23
-
24
- {{~#with _copyright ~}}
25
- <p>
26
- {{~loca "copyright_source"}} {{loca "copyright_symbol" this ~}}
27
- </p>
28
- {{~/with~}}
29
-
30
60
  {{~#if _isArchiveContent}}
31
61
  <p>
32
62
  {{loca "archive_content"}}
33
63
  </p>
34
64
  {{/if}}
35
-
36
- {{~#with _posterCopyright ~}}
37
- {{~#with ../teaseritem.copyrightWithLinks}}
65
+ {{#if _showDate ~}}
66
+ {{#with _date}}
38
67
  <p>
39
- {{~loca ../this this}}
68
+ <time datetime="{{this.htmlDateTime}}">{{loca "date_published" this.date this.time }}</time>
40
69
  </p>
41
- {{~/with~}}
42
- {{~/with~}}
43
-
44
- <!-- TODO teaseritem.copyrightWithLinks dont work in gallery, generalize model -->
45
- {{~#with _galleryCopyright ~}}
46
- <p>
47
- {{~loca this ../copyrightWithLinks}}
48
- </p>
49
- {{~/with~}}
70
+ {{/with~}}
71
+ {{/if}}
50
72
  </footer>
@@ -2,13 +2,15 @@
2
2
  {{~> components/base/a11y/hiddenText _locaTag=_a11yIntro-loca ~}}
3
3
  {{#unless _voting-option}}
4
4
  <figcaption class="py-3 mx-5 sm:mx-0 sm:py-4 border-t-[3px] border-gray-boulder">
5
- {{#with this.label}}
5
+ {{#if this.label}}
6
6
  {{#> components/label/label_group}}
7
- {{> components/label/label _type=this.type _text=(loca this.loca) }}
8
- {{> components/label/label_byline _css="ml-2"}}
9
- {{#with ../this}}{{> components/content/copytext/components/media/media_figure_byline}}{{/with~}}
7
+ {{#with this.label}}
8
+ {{> components/label/label _type=this.type _text=(loca this.loca) }}
9
+ {{> components/label/label_byline _css="ml-2"}}
10
+ {{/with}}
11
+ {{> components/content/copytext/components/media/media_figure_byline this}}
10
12
  {{/components/label/label_group}}
11
- {{/with~}}
13
+ {{/if~}}
12
14
  {{#with this.toModel.mediaBacklinkToStoryTeaser}}
13
15
  {{#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"}}
14
16
  {{> components/content/copytext/components/media/media_figure_headline}}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "1.71.0",
9
+ "version": "1.73.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -8,8 +8,49 @@
8
8
  "dateSeparatorTime": "31.10.22, 19:30"
9
9
  },
10
10
  "_hasDwellTime": true,
11
+ "_isArticle": true,
11
12
  "_copyright": "All rights reserved",
12
13
  "_source": ["DPA","Wikipedia"],
13
14
  "_author": "Anna Magel",
14
- "_isArchiveContent": true
15
+ "_isArchiveContent": true,
16
+ "editorialStaffItems": [
17
+ {
18
+ "hasProfileLink": false,
19
+ "from": "",
20
+ "textAfterAuthor": "Horst Schlämmer",
21
+ "delimiter": ", "
22
+ },
23
+ {
24
+ "hasProfileLink": false,
25
+ "from": "",
26
+ "textAfterAuthor": "Karl Dall",
27
+ "delimiter": " und "
28
+ },
29
+ {
30
+ "hasProfileLink": true,
31
+ "from": "und",
32
+ "authorName": "Peter Lustig",
33
+ "delimiter": "",
34
+ "link": {
35
+ "url": "/author-url",
36
+ "isTargetBlank": false
37
+ }
38
+ }],
39
+ "programReferenceAlt":{
40
+ "hasReference": true,
41
+ "link": {
42
+ "url": "/programReference-url",
43
+ "isTargetBlank": false
44
+ },
45
+ "name": "hr",
46
+ "title": "Testtitel",
47
+ "displayWithTime": true,
48
+ "date": {
49
+ "htmlDateTime": "2022-10-31T19:30+0200",
50
+ "htmlDate": "31.10.2022",
51
+ "date": "31.10.22",
52
+ "time": "19:30",
53
+ "dateSeparatorTime": "31.10.22, 19:30"
54
+ }
55
+ }
15
56
  }
@@ -1,17 +1,54 @@
1
- <footer class="flex flex-col mt-10 text-xs md:text-sm font-headingSerif dark:text-text-dark {{#if _addClass}} {{_addClass}}{{/if}}">
2
- {{~#with _author ~}}
3
- <p>
4
- Autor: {{this}}
1
+ <footer class="flex flex-col mt-10 text-xs md:text-sm text-gray-scorpion dark:text-text-dark font-headingSerif{{#if _addClass}} {{_addClass}}{{/if}}">
2
+ {{#with this.editorialStaffItems}}
3
+ <p class="">
4
+ Redaktion:
5
+ {{#each this}}
6
+ {{#if this.hasProfileLink}}
7
+ {{#>components/base/link _link=this.link _css="" }}
8
+ <span>{{../this.authorName~}}</span>{{/components/base/link}}{{#with
9
+ this.textAfterAuthor}} {{this}}{{/with}}{{this.delimiter}}
10
+ {{else}}
11
+ {{this.from}}{{#with this.textAfterAuthor}} {{this}}{{/with}}{{this.delimiter}}
12
+ {{/if}}
13
+ {{/each}}
5
14
  </p>
15
+ {{/with}}
16
+ {{~#with this.programReferenceAlt~}}
17
+ {{~#if this.hasReference~}}
18
+ <div class="">
19
+ Sendung:
20
+ {{#if this.link}}
21
+ {{#>components/base/link _link=this.link }}
22
+ <span class='hover:underline'>
23
+ {{this.title}} {{#if this.date}}
24
+ <time datetime="{{#if this.displayWithTime}}{{this.date.htmlDateTime}}{{else}}{{this.date.date}}{{/if}}"
25
+ class="{{#if _isArticle}}{{else}}{{/if}} ">
26
+ {{#if this.displayWithTime}}
27
+ {{loca "date_simple_at" this.date.dateSeparatorTime}}
28
+ {{else}}
29
+ {{this.date.date}}
30
+ {{/if}}
31
+ </time>
32
+ {{/if}}
33
+ </span>
34
+ {{/components/base/link}}
35
+ {{else}}
36
+ <span class=''>{{this.title}} {{#if this.date}}
37
+ <time datetime="{{#if this.displayWithTime}}{{this.date.htmlDateTime}}{{else}}{{this.date.date}}{{/if}}"
38
+ class="{{#if _isArticle}}{{else}}{{/if}} ">
39
+ {{#if this.displayWithTime}}
40
+ {{loca "date_simple_at" this.date.dateSeparatorTime}}
41
+ {{else}}
42
+ {{this.date.date}}
43
+ {{/if}}
44
+ </time>
45
+ {{/if}}
46
+
47
+ </span>
48
+ {{/if}}
49
+ </div>
50
+ {{~/if~}}
6
51
  {{~/with~}}
7
- {{#if _showDate ~}}
8
- {{#with _date}}
9
- <p>
10
- <time datetime="{{this.htmlDateTime}}">{{loca "date_published" this.date this.time }}</time>
11
- </p>
12
- {{/with~}}
13
- {{/if}}
14
-
15
52
  {{~#with _source}}
16
53
  <p>
17
54
  {{~loca "copyright_source"~}}
@@ -20,31 +57,16 @@
20
57
  {{/each~}}
21
58
  </p>
22
59
  {{/with~}}
23
-
24
- {{~#with _copyright ~}}
25
- <p>
26
- {{~loca "copyright_source"}} {{loca "copyright_symbol" this ~}}
27
- </p>
28
- {{~/with~}}
29
-
30
60
  {{~#if _isArchiveContent}}
31
61
  <p>
32
62
  {{loca "archive_content"}}
33
63
  </p>
34
64
  {{/if}}
35
-
36
- {{~#with _posterCopyright ~}}
37
- {{~#with ../teaseritem.copyrightWithLinks}}
65
+ {{#if _showDate ~}}
66
+ {{#with _date}}
38
67
  <p>
39
- {{~loca ../this this}}
68
+ <time datetime="{{this.htmlDateTime}}">{{loca "date_published" this.date this.time }}</time>
40
69
  </p>
41
- {{~/with~}}
42
- {{~/with~}}
43
-
44
- <!-- TODO teaseritem.copyrightWithLinks dont work in gallery, generalize model -->
45
- {{~#with _galleryCopyright ~}}
46
- <p>
47
- {{~loca this ../copyrightWithLinks}}
48
- </p>
49
- {{~/with~}}
70
+ {{/with~}}
71
+ {{/if}}
50
72
  </footer>
@@ -1 +1 @@
1
- {"_showDate":true,"_date":{"htmlDateTime":"2022-10-31T19:30+0200","htmlDate":"31.10.2022","date":"31.10.22","time":"19:30","dateSeparatorTime":"31.10.22, 19:30"},"_hasDwellTime":true,"_copyright":"All rights reserved","_source":["DPA","Wikipedia"],"_author":"Anna Magel","_isArchiveContent":true}
1
+ {"_showDate":true,"_date":{"htmlDateTime":"2022-10-31T19:30+0200","htmlDate":"31.10.2022","date":"31.10.22","time":"19:30","dateSeparatorTime":"31.10.22, 19:30"},"_hasDwellTime":true,"_isArticle":true,"_copyright":"All rights reserved","_source":["DPA","Wikipedia"],"_author":"Anna Magel","_isArchiveContent":true,"editorialStaffItems":[{"hasProfileLink":false,"from":"","textAfterAuthor":"Horst Schlämmer","delimiter":", "},{"hasProfileLink":false,"from":"","textAfterAuthor":"Karl Dall","delimiter":" und "},{"hasProfileLink":true,"from":"und","authorName":"Peter Lustig","delimiter":"","link":{"url":"/author-url","isTargetBlank":false}}],"programReferenceAlt":{"hasReference":true,"link":{"url":"/programReference-url","isTargetBlank":false},"name":"hr","title":"Testtitel","displayWithTime":true,"date":{"htmlDateTime":"2022-10-31T19:30+0200","htmlDate":"31.10.2022","date":"31.10.22","time":"19:30","dateSeparatorTime":"31.10.22, 19:30"}}}
@@ -2,13 +2,15 @@
2
2
  {{~> components/base/a11y/hiddenText _locaTag=_a11yIntro-loca ~}}
3
3
  {{#unless _voting-option}}
4
4
  <figcaption class="py-3 mx-5 sm:mx-0 sm:py-4 border-t-[3px] border-gray-boulder">
5
- {{#with this.label}}
5
+ {{#if this.label}}
6
6
  {{#> components/label/label_group}}
7
- {{> components/label/label _type=this.type _text=(loca this.loca) }}
8
- {{> components/label/label_byline _css="ml-2"}}
9
- {{#with ../this}}{{> components/content/copytext/components/media/media_figure_byline}}{{/with~}}
7
+ {{#with this.label}}
8
+ {{> components/label/label _type=this.type _text=(loca this.loca) }}
9
+ {{> components/label/label_byline _css="ml-2"}}
10
+ {{/with}}
11
+ {{> components/content/copytext/components/media/media_figure_byline this}}
10
12
  {{/components/label/label_group}}
11
- {{/with~}}
13
+ {{/if~}}
12
14
  {{#with this.toModel.mediaBacklinkToStoryTeaser}}
13
15
  {{#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"}}
14
16
  {{> components/content/copytext/components/media/media_figure_headline}}