hr-design-system-handlebars 1.113.12 → 1.113.14

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.113.14 (Fri Nov 01 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - modify display-logic for total number of votes [#1141](https://github.com/mumprod/hr-design-system-handlebars/pull/1141) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
13
+ # v1.113.13 (Fri Nov 01 2024)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - add success-message [#1140](https://github.com/mumprod/hr-design-system-handlebars/pull/1140) ([@hanswurstsalat](https://github.com/hanswurstsalat))
18
+
19
+ #### Authors: 1
20
+
21
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
22
+
23
+ ---
24
+
1
25
  # v1.113.12 (Fri Nov 01 2024)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -3658,7 +3658,7 @@ article.indexTextDS .indexTextHighlighted .link {
3658
3658
  border-bottom-color: var(--color-secondary-ds);
3659
3659
  }
3660
3660
  .counter-reset {
3661
- counter-reset: cnt1730475050900;
3661
+ counter-reset: cnt1730489503652;
3662
3662
  }
3663
3663
  .placeholder-text-xs::-webkit-input-placeholder {
3664
3664
  font-size: 0.75rem;
@@ -4072,7 +4072,7 @@ article.indexTextDS .indexTextHighlighted .link {
4072
4072
  --tw-ring-color: rgba(255, 255, 255, 0.5);
4073
4073
  }
4074
4074
  .-ordered {
4075
- counter-increment: cnt1730475050900 1;
4075
+ counter-increment: cnt1730489503652 1;
4076
4076
  }
4077
4077
  .-ordered::before {
4078
4078
  position: absolute;
@@ -4090,7 +4090,7 @@ article.indexTextDS .indexTextHighlighted .link {
4090
4090
  --tw-text-opacity: 1;
4091
4091
  color: rgba(0, 0, 0, 1);
4092
4092
  color: rgba(0, 0, 0, var(--tw-text-opacity));
4093
- content: counter(cnt1730475050900);
4093
+ content: counter(cnt1730489503652);
4094
4094
  }
4095
4095
  /*! ****************************/
4096
4096
  /*! DataPolicy stuff */
@@ -1,8 +1,5 @@
1
1
  {{> components/label/label _type="media" _text=(loca "label_voting")}}
2
2
 
3
- <h2 class="clear-both mt-4 sm:mt-5">
4
- {{#if _topline}}
5
- <span class="block text-base font-heading sm:text-lg dark:text-text-dark">{{_topline}}</span>
6
- {{/if}}
7
- <span class="{{#if _topline}}mt-px{{/if}} block text-2xl sm:text-3xl font-headingSerif dark:text-text-dark">{{_title}}</span>
3
+ <h2 class="block clear-both mt-2 text-2xl sm:text-3xl font-headingSerif dark:text-text-dark">
4
+ {{_title}}
8
5
  </h2>
@@ -28,13 +28,21 @@
28
28
  </div>
29
29
  {{/each}}
30
30
 
31
- {{!#unless this.showAbsoluteResult}}
31
+ {{#if this.isMultipleChoice}}
32
+ {{#unless this.showAbsoluteResult}}
33
+ {{#if this.showVoteResult}}
34
+ <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
35
+ {{loca "votingform_vote_result"}}{{this.summarizedResult}}
36
+ </p>
37
+ {{/if}}
38
+ {{/unless}}
39
+ {{else}}
32
40
  {{#if this.showVoteResult}}
33
41
  <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
34
42
  {{loca "votingform_vote_result"}}{{this.summarizedResult}}
35
43
  </p>
36
44
  {{/if}}
37
- {{!/unless}}
45
+ {{/if}}
38
46
  {{/if}}
39
47
 
40
48
  {{#if _isVotingOver}}
@@ -0,0 +1,4 @@
1
+ {{> components/voting/components/voting_header _title=_title _topline=_topline}}
2
+
3
+ {{~> components/base/image/icon _icon="status-done" _iconmap="icons" _addClass="float-left w-6 h-6 text-success fill-current mt-6 sm:mt-12"}}
4
+ <p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-success sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageTitle}}}<br/>{{{_resultBoxMessageText}}}</p>
@@ -0,0 +1,7 @@
1
+ {{> components/voting/voting_result_2F
2
+ _title=this.title
3
+ _topline=this.topline
4
+ _resultBoxMessageTitle=(loca "votingform2F_title_success")
5
+ _resultBoxMessageText=(loca "votingform2F_text_success")
6
+ _isInline=_isInline
7
+ }}
@@ -1,8 +1,5 @@
1
1
  {{> components/label/label _type="media" _text=(loca "label_voting")}}
2
2
 
3
- <h2 class="clear-both mt-4 sm:mt-5">
4
- {{#if _topline}}
5
- <span class="block text-base font-heading sm:text-lg dark:text-text-dark">{{_topline}}</span>
6
- {{/if}}
7
- <span class="{{#if _topline}}mt-px{{/if}} block text-2xl sm:text-3xl font-headingSerif dark:text-text-dark">{{_title}}</span>
3
+ <h2 class="block clear-both mt-2 text-2xl sm:text-3xl font-headingSerif dark:text-text-dark">
4
+ {{_title}}
8
5
  </h2>
@@ -28,13 +28,21 @@
28
28
  </div>
29
29
  {{/each}}
30
30
 
31
- {{!#unless this.showAbsoluteResult}}
31
+ {{#if this.isMultipleChoice}}
32
+ {{#unless this.showAbsoluteResult}}
33
+ {{#if this.showVoteResult}}
34
+ <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
35
+ {{loca "votingform_vote_result"}}{{this.summarizedResult}}
36
+ </p>
37
+ {{/if}}
38
+ {{/unless}}
39
+ {{else}}
32
40
  {{#if this.showVoteResult}}
33
41
  <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
34
42
  {{loca "votingform_vote_result"}}{{this.summarizedResult}}
35
43
  </p>
36
44
  {{/if}}
37
- {{!/unless}}
45
+ {{/if}}
38
46
  {{/if}}
39
47
 
40
48
  {{#if _isVotingOver}}
@@ -0,0 +1,4 @@
1
+ {{> components/voting/components/voting_header _title=_title _topline=_topline}}
2
+
3
+ {{~> components/base/image/icon _icon="status-done" _iconmap="icons" _addClass="float-left w-6 h-6 text-success fill-current mt-6 sm:mt-12"}}
4
+ <p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-success sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageTitle}}}<br/>{{{_resultBoxMessageText}}}</p>
@@ -0,0 +1,7 @@
1
+ {{> components/voting/voting_result_2F
2
+ _title=this.title
3
+ _topline=this.topline
4
+ _resultBoxMessageTitle=(loca "votingform2F_title_success")
5
+ _resultBoxMessageText=(loca "votingform2F_text_success")
6
+ _isInline=_isInline
7
+ }}
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.113.12",
9
+ "version": "1.113.14",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -1,8 +1,5 @@
1
1
  {{> components/label/label _type="media" _text=(loca "label_voting")}}
2
2
 
3
- <h2 class="clear-both mt-4 sm:mt-5">
4
- {{#if _topline}}
5
- <span class="block text-base font-heading sm:text-lg dark:text-text-dark">{{_topline}}</span>
6
- {{/if}}
7
- <span class="{{#if _topline}}mt-px{{/if}} block text-2xl sm:text-3xl font-headingSerif dark:text-text-dark">{{_title}}</span>
3
+ <h2 class="block clear-both mt-2 text-2xl sm:text-3xl font-headingSerif dark:text-text-dark">
4
+ {{_title}}
8
5
  </h2>
@@ -26,7 +26,7 @@ const Template = (args) => {
26
26
 
27
27
  export const Default = {
28
28
  render: Template.bind({}),
29
- name: 'default',
29
+ name: 'Einfachauswahl',
30
30
  args: votingJson,
31
31
  }
32
32
 
@@ -28,13 +28,21 @@
28
28
  </div>
29
29
  {{/each}}
30
30
 
31
- {{!#unless this.showAbsoluteResult}}
31
+ {{#if this.isMultipleChoice}}
32
+ {{#unless this.showAbsoluteResult}}
33
+ {{#if this.showVoteResult}}
34
+ <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
35
+ {{loca "votingform_vote_result"}}{{this.summarizedResult}}
36
+ </p>
37
+ {{/if}}
38
+ {{/unless}}
39
+ {{else}}
32
40
  {{#if this.showVoteResult}}
33
41
  <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
34
42
  {{loca "votingform_vote_result"}}{{this.summarizedResult}}
35
43
  </p>
36
44
  {{/if}}
37
- {{!/unless}}
45
+ {{/if}}
38
46
  {{/if}}
39
47
 
40
48
  {{#if _isVotingOver}}
@@ -0,0 +1,4 @@
1
+ {{> components/voting/components/voting_header _title=_title _topline=_topline}}
2
+
3
+ {{~> components/base/image/icon _icon="status-done" _iconmap="icons" _addClass="float-left w-6 h-6 text-success fill-current mt-6 sm:mt-12"}}
4
+ <p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-success sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageTitle}}}<br/>{{{_resultBoxMessageText}}}</p>
@@ -0,0 +1,7 @@
1
+ {{> components/voting/voting_result_2F
2
+ _title=this.title
3
+ _topline=this.topline
4
+ _resultBoxMessageTitle=(loca "votingform2F_title_success")
5
+ _resultBoxMessageText=(loca "votingform2F_text_success")
6
+ _isInline=_isInline
7
+ }}
@@ -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_2F }}
21
+ {{/components/forms/components/backgroundBox }}
22
+ `)
23
+ return hbsTemplate({ ...args })
24
+ }
25
+
26
+ export const Voting_Success_2F = {
27
+ render: Template.bind({}),
28
+ name: 'Successmeldung',
29
+ args: votingJson,
30
+ }