hr-design-system-handlebars 1.113.0 → 1.113.1
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 +12 -0
- package/dist/assets/index.css +15 -3
- package/dist/views/components/voting/voting_error.hbs +10 -0
- package/dist/views/components/voting/voting_result.hbs +21 -1
- package/dist/views_static/components/voting/voting_error.hbs +10 -0
- package/dist/views_static/components/voting/voting_result.hbs +21 -1
- package/package.json +1 -1
- package/src/stories/views/components/voting/voting_error.hbs +10 -0
- package/src/stories/views/components/voting/voting_error.stories.js +30 -0
- package/src/stories/views/components/voting/voting_result.hbs +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v1.113.1 (Mon Oct 28 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- add voting error-message [#1129](https://github.com/mumprod/hr-design-system-handlebars/pull/1129) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v1.113.0 (Fri Oct 25 2024)
|
|
2
14
|
|
|
3
15
|
#### 🚀 Enhancement
|
package/dist/assets/index.css
CHANGED
|
@@ -1454,6 +1454,9 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
1454
1454
|
.ml-5 {
|
|
1455
1455
|
margin-left: 1.25rem;
|
|
1456
1456
|
}
|
|
1457
|
+
.ml-8 {
|
|
1458
|
+
margin-left: 2rem;
|
|
1459
|
+
}
|
|
1457
1460
|
.ml-auto {
|
|
1458
1461
|
margin-left: auto;
|
|
1459
1462
|
}
|
|
@@ -3325,6 +3328,11 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3325
3328
|
color: #005293;
|
|
3326
3329
|
color: var(--color-primary-ds);
|
|
3327
3330
|
}
|
|
3331
|
+
.text-red-thunderbird-hex {
|
|
3332
|
+
--tw-text-opacity: 1;
|
|
3333
|
+
color: rgba(204, 26, 20, 1);
|
|
3334
|
+
color: rgba(204, 26, 20, var(--tw-text-opacity));
|
|
3335
|
+
}
|
|
3328
3336
|
.text-search-footer-text {
|
|
3329
3337
|
color: #000000;
|
|
3330
3338
|
color: var(--color-search-footer-text);
|
|
@@ -3597,7 +3605,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3597
3605
|
border-bottom-color: var(--color-secondary-ds);
|
|
3598
3606
|
}
|
|
3599
3607
|
.counter-reset {
|
|
3600
|
-
counter-reset:
|
|
3608
|
+
counter-reset: cnt1730148870283;
|
|
3601
3609
|
}
|
|
3602
3610
|
.placeholder-text-xs::-webkit-input-placeholder {
|
|
3603
3611
|
font-size: 0.75rem;
|
|
@@ -4011,7 +4019,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
4011
4019
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
4012
4020
|
}
|
|
4013
4021
|
.-ordered {
|
|
4014
|
-
counter-increment:
|
|
4022
|
+
counter-increment: cnt1730148870283 1;
|
|
4015
4023
|
}
|
|
4016
4024
|
.-ordered::before {
|
|
4017
4025
|
position: absolute;
|
|
@@ -4029,7 +4037,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
4029
4037
|
--tw-text-opacity: 1;
|
|
4030
4038
|
color: rgba(0, 0, 0, 1);
|
|
4031
4039
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
4032
|
-
content: counter(
|
|
4040
|
+
content: counter(cnt1730148870283);
|
|
4033
4041
|
}
|
|
4034
4042
|
/*! ****************************/
|
|
4035
4043
|
/*! DataPolicy stuff */
|
|
@@ -6582,6 +6590,10 @@ select:has(option:checked[value='']) {
|
|
|
6582
6590
|
margin-left: 2rem;
|
|
6583
6591
|
}
|
|
6584
6592
|
|
|
6593
|
+
.sm\:ml-9 {
|
|
6594
|
+
margin-left: 2.25rem;
|
|
6595
|
+
}
|
|
6596
|
+
|
|
6585
6597
|
.sm\:ml-\[1\.531rem\] {
|
|
6586
6598
|
margin-left: 1.531rem;
|
|
6587
6599
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{{> components/voting/voting_result
|
|
2
|
+
_title=this.title
|
|
3
|
+
_topline=this.topline
|
|
4
|
+
_resultBoxMessageTitle=(loca "votingform_title_error")
|
|
5
|
+
_resultBoxMessageText=(loca "votingform_text_error")
|
|
6
|
+
_locaKeyText="votingform_text_error"
|
|
7
|
+
_isInline=_isInline
|
|
8
|
+
_hideVotingResult=true
|
|
9
|
+
_statusDone=false
|
|
10
|
+
}}
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
{{
|
|
1
|
+
{{#unless _isResultOnRedirectPage}}
|
|
2
|
+
{{> components/voting/voting_header _title=_title _topline=_topline}}
|
|
3
|
+
{{/unless}}
|
|
4
|
+
|
|
5
|
+
{{#if _hideVotingResult}}
|
|
6
|
+
{{#if _isVotingOver}}
|
|
7
|
+
<p class="c-teaser__text text__copytext">{{{_resultBoxMessageText}}}</p>
|
|
8
|
+
{{else}}
|
|
9
|
+
{{~> components/base/image/icon _icon=(if _statusDone "status-done" "status-error") _iconmap="icons" _addClass=(if _statusDone "" "float-left w-6 h-6 text-red-thunderbird-hex fill-current mt-6 sm:mt-12")}}
|
|
10
|
+
<p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-red-thunderbird-hex sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
|
|
11
|
+
<div class="mt-6 sm:mt-12">
|
|
12
|
+
{{#> components/button/link_button _size="lg" _css="float-right"}}
|
|
13
|
+
{{> components/button/components/button_label _label=(loca "votingform_form_back")}}
|
|
14
|
+
{{/components/button/link_button}}
|
|
15
|
+
</div>
|
|
16
|
+
{{/if}}
|
|
17
|
+
{{else}}
|
|
18
|
+
|
|
19
|
+
{{/if}}
|
|
2
20
|
|
|
3
21
|
{{#if _isVotingOver}}
|
|
4
22
|
<p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12 dark:text-text-dark">{{loca "votingform_voting_finished"}}</p>
|
|
5
23
|
{{/if}}
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{{> components/voting/voting_result
|
|
2
|
+
_title=this.title
|
|
3
|
+
_topline=this.topline
|
|
4
|
+
_resultBoxMessageTitle=(loca "votingform_title_error")
|
|
5
|
+
_resultBoxMessageText=(loca "votingform_text_error")
|
|
6
|
+
_locaKeyText="votingform_text_error"
|
|
7
|
+
_isInline=_isInline
|
|
8
|
+
_hideVotingResult=true
|
|
9
|
+
_statusDone=false
|
|
10
|
+
}}
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
{{
|
|
1
|
+
{{#unless _isResultOnRedirectPage}}
|
|
2
|
+
{{> components/voting/voting_header _title=_title _topline=_topline}}
|
|
3
|
+
{{/unless}}
|
|
4
|
+
|
|
5
|
+
{{#if _hideVotingResult}}
|
|
6
|
+
{{#if _isVotingOver}}
|
|
7
|
+
<p class="c-teaser__text text__copytext">{{{_resultBoxMessageText}}}</p>
|
|
8
|
+
{{else}}
|
|
9
|
+
{{~> components/base/image/icon _icon=(if _statusDone "status-done" "status-error") _iconmap="icons" _addClass=(if _statusDone "" "float-left w-6 h-6 text-red-thunderbird-hex fill-current mt-6 sm:mt-12")}}
|
|
10
|
+
<p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-red-thunderbird-hex sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
|
|
11
|
+
<div class="mt-6 sm:mt-12">
|
|
12
|
+
{{#> components/button/link_button _size="lg" _css="float-right"}}
|
|
13
|
+
{{> components/button/components/button_label _label=(loca "votingform_form_back")}}
|
|
14
|
+
{{/components/button/link_button}}
|
|
15
|
+
</div>
|
|
16
|
+
{{/if}}
|
|
17
|
+
{{else}}
|
|
18
|
+
|
|
19
|
+
{{/if}}
|
|
2
20
|
|
|
3
21
|
{{#if _isVotingOver}}
|
|
4
22
|
<p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12 dark:text-text-dark">{{loca "votingform_voting_finished"}}</p>
|
|
5
23
|
{{/if}}
|
|
24
|
+
|
|
25
|
+
|
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.
|
|
9
|
+
"version": "1.113.1",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{{> components/voting/voting_result
|
|
2
|
+
_title=this.title
|
|
3
|
+
_topline=this.topline
|
|
4
|
+
_resultBoxMessageTitle=(loca "votingform_title_error")
|
|
5
|
+
_resultBoxMessageText=(loca "votingform_text_error")
|
|
6
|
+
_locaKeyText="votingform_text_error"
|
|
7
|
+
_isInline=_isInline
|
|
8
|
+
_hideVotingResult=true
|
|
9
|
+
_statusDone=false
|
|
10
|
+
}}
|
|
@@ -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_error }}
|
|
21
|
+
{{/components/forms/components/backgroundBox }}
|
|
22
|
+
`)
|
|
23
|
+
return hbsTemplate({ ...args })
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const Voting_Error = {
|
|
27
|
+
render: Template.bind({}),
|
|
28
|
+
name: 'Voting Fehlermeldung',
|
|
29
|
+
args: votingJson,
|
|
30
|
+
}
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
{{
|
|
1
|
+
{{#unless _isResultOnRedirectPage}}
|
|
2
|
+
{{> components/voting/voting_header _title=_title _topline=_topline}}
|
|
3
|
+
{{/unless}}
|
|
4
|
+
|
|
5
|
+
{{#if _hideVotingResult}}
|
|
6
|
+
{{#if _isVotingOver}}
|
|
7
|
+
<p class="c-teaser__text text__copytext">{{{_resultBoxMessageText}}}</p>
|
|
8
|
+
{{else}}
|
|
9
|
+
{{~> components/base/image/icon _icon=(if _statusDone "status-done" "status-error") _iconmap="icons" _addClass=(if _statusDone "" "float-left w-6 h-6 text-red-thunderbird-hex fill-current mt-6 sm:mt-12")}}
|
|
10
|
+
<p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-red-thunderbird-hex sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
|
|
11
|
+
<div class="mt-6 sm:mt-12">
|
|
12
|
+
{{#> components/button/link_button _size="lg" _css="float-right"}}
|
|
13
|
+
{{> components/button/components/button_label _label=(loca "votingform_form_back")}}
|
|
14
|
+
{{/components/button/link_button}}
|
|
15
|
+
</div>
|
|
16
|
+
{{/if}}
|
|
17
|
+
{{else}}
|
|
18
|
+
|
|
19
|
+
{{/if}}
|
|
2
20
|
|
|
3
21
|
{{#if _isVotingOver}}
|
|
4
22
|
<p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12 dark:text-text-dark">{{loca "votingform_voting_finished"}}</p>
|
|
5
23
|
{{/if}}
|
|
24
|
+
|
|
25
|
+
|