hr-design-system-handlebars 1.103.5 → 1.103.7
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 +25 -0
- package/dist/assets/index.css +26 -3
- package/dist/views/components/forms/choice.hbs +1 -1
- package/dist/views/components/pagination/pagination_only_three_pages.hbs +1 -1
- package/dist/views_static/components/forms/choice.hbs +1 -1
- package/dist/views_static/components/pagination/pagination_only_three_pages.hbs +1 -1
- package/package.json +1 -1
- package/src/assets/css/custom-utilities.css +17 -0
- package/src/assets/fixtures/forms/form_fields.inc.json +35 -2
- package/src/assets/fixtures/forms/form_radio_grouped.json +8 -0
- package/src/stories/views/components/forms/choice.hbs +1 -1
- package/src/stories/views/components/forms/fixtures/form_checkbox_grouped.json +1 -1
- package/src/stories/views/components/forms/fixtures/form_radio_grouped.json +1 -0
- package/src/stories/views/components/forms/form_radio_grouped.stories.js +34 -0
- package/src/stories/views/components/pagination/pagination_only_three_pages.hbs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
# v1.103.7 (Wed Oct 02 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- use correct Method-call [#1088](https://github.com/mumprod/hr-design-system-handlebars/pull/1088) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.103.6 (Wed Oct 02 2024)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- DPE-3301: add radio-button group [#1086](https://github.com/mumprod/hr-design-system-handlebars/pull/1086) (saad.elbaciri@hr.de [@selbaciri](https://github.com/selbaciri))
|
|
18
|
+
|
|
19
|
+
#### Authors: 2
|
|
20
|
+
|
|
21
|
+
- Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
|
|
22
|
+
- selbaciri (saad.elbaciri@hr.de)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
1
26
|
# v1.103.5 (Wed Oct 02 2024)
|
|
2
27
|
|
|
3
28
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -3501,7 +3501,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3501
3501
|
border-bottom-color: var(--color-secondary-ds);
|
|
3502
3502
|
}
|
|
3503
3503
|
.counter-reset {
|
|
3504
|
-
counter-reset:
|
|
3504
|
+
counter-reset: cnt1727879605712;
|
|
3505
3505
|
}
|
|
3506
3506
|
.hyphens-auto {
|
|
3507
3507
|
-webkit-hyphens: auto;
|
|
@@ -3909,7 +3909,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3909
3909
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3910
3910
|
}
|
|
3911
3911
|
.-ordered {
|
|
3912
|
-
counter-increment:
|
|
3912
|
+
counter-increment: cnt1727879605712 1;
|
|
3913
3913
|
}
|
|
3914
3914
|
.-ordered::before {
|
|
3915
3915
|
position: absolute;
|
|
@@ -3925,7 +3925,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3925
3925
|
letter-spacing: .0125em;
|
|
3926
3926
|
--tw-text-opacity: 1;
|
|
3927
3927
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3928
|
-
content: counter(
|
|
3928
|
+
content: counter(cnt1727879605712);
|
|
3929
3929
|
}
|
|
3930
3930
|
/*! ****************************/
|
|
3931
3931
|
/*! DataPolicy stuff */
|
|
@@ -4061,6 +4061,21 @@ input[type="checkbox"]:checked::after {
|
|
|
4061
4061
|
border-right: none;
|
|
4062
4062
|
transform: rotate(-45deg);
|
|
4063
4063
|
}
|
|
4064
|
+
input[type="radio"]::after {
|
|
4065
|
+
content: '';
|
|
4066
|
+
position: absolute;
|
|
4067
|
+
width: 16px;
|
|
4068
|
+
height: 16px;
|
|
4069
|
+
top: 50%;
|
|
4070
|
+
left: 50%;
|
|
4071
|
+
transform: translate(-50%, -50%) scale(0);
|
|
4072
|
+
background-color: #005293;
|
|
4073
|
+
background-color: var(--color-primary-ds);
|
|
4074
|
+
border-radius: 50%;
|
|
4075
|
+
}
|
|
4076
|
+
input[type="radio"]:checked::after {
|
|
4077
|
+
transform: translate(-50%, -50%) scale(1);
|
|
4078
|
+
}
|
|
4064
4079
|
.\[-T\:\+Z\] {
|
|
4065
4080
|
--t: +Z;
|
|
4066
4081
|
}
|
|
@@ -5828,6 +5843,10 @@ input[type="checkbox"]:checked::after {
|
|
|
5828
5843
|
.last-of-type\:pb-3:last-of-type {
|
|
5829
5844
|
padding-bottom: 0.75rem;
|
|
5830
5845
|
}
|
|
5846
|
+
.checked\:border-blue-congress-hex:checked {
|
|
5847
|
+
--tw-border-opacity: 1;
|
|
5848
|
+
border-color: rgba(0, 82, 147, var(--tw-border-opacity));
|
|
5849
|
+
}
|
|
5831
5850
|
.checked\:border-transparent:checked {
|
|
5832
5851
|
border-color: transparent;
|
|
5833
5852
|
}
|
|
@@ -5835,6 +5854,10 @@ input[type="checkbox"]:checked::after {
|
|
|
5835
5854
|
--tw-bg-opacity: 1;
|
|
5836
5855
|
background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
|
|
5837
5856
|
}
|
|
5857
|
+
.checked\:bg-white:checked {
|
|
5858
|
+
--tw-bg-opacity: 1;
|
|
5859
|
+
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
5860
|
+
}
|
|
5838
5861
|
.empty\:hidden:empty {
|
|
5839
5862
|
display: none;
|
|
5840
5863
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
x-ignore
|
|
5
5
|
>
|
|
6
6
|
<div class="flex flex-row items-center w-full gap-x-2 md:gap-x-3">
|
|
7
|
-
<input class="relative self-start flex-shrink-0 w-6 h-6 bg-white border appearance-none cursor-pointer border-blue-science-hex checked:bg-blue-congress-hex checked:border-transparent"
|
|
7
|
+
<input class="relative self-start flex-shrink-0 w-6 h-6 bg-white border appearance-none cursor-pointer {{~inline-switch _type '["checkbox","radio"]' '[" border-blue-science-hex checked:bg-blue-congress-hex checked:border-transparent"," border-blue-science-hex checked:bg-white checked:border-blue-congress-hex rounded-full",""]'}}"
|
|
8
8
|
:class="{' border-blue-science-hex': hideError(),'border-red-700': hideDescription() }"
|
|
9
9
|
@change="validateInput"
|
|
10
10
|
x-model="isChecked"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<span class="sr-only">Zur Seite: </span>
|
|
51
51
|
{{> components/button/components/button_label _label="1" _css=""}}
|
|
52
52
|
{{/components/button/link_button}}
|
|
53
|
-
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.
|
|
53
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastButOnePageItemLink _css="mr-1 ml-1"}}
|
|
54
54
|
<span class="sr-only">Zur Seite: </span>
|
|
55
55
|
{{> components/button/components/button_label _label="2" _css=""}}
|
|
56
56
|
{{/components/button/link_button}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
x-ignore
|
|
5
5
|
>
|
|
6
6
|
<div class="flex flex-row items-center w-full gap-x-2 md:gap-x-3">
|
|
7
|
-
<input class="relative self-start flex-shrink-0 w-6 h-6 bg-white border appearance-none cursor-pointer border-blue-science-hex checked:bg-blue-congress-hex checked:border-transparent"
|
|
7
|
+
<input class="relative self-start flex-shrink-0 w-6 h-6 bg-white border appearance-none cursor-pointer {{~inline-switch _type '["checkbox","radio"]' '[" border-blue-science-hex checked:bg-blue-congress-hex checked:border-transparent"," border-blue-science-hex checked:bg-white checked:border-blue-congress-hex rounded-full",""]'}}"
|
|
8
8
|
:class="{' border-blue-science-hex': hideError(),'border-red-700': hideDescription() }"
|
|
9
9
|
@change="validateInput"
|
|
10
10
|
x-model="isChecked"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<span class="sr-only">Zur Seite: </span>
|
|
51
51
|
{{> components/button/components/button_label _label="1" _css=""}}
|
|
52
52
|
{{/components/button/link_button}}
|
|
53
|
-
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.
|
|
53
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastButOnePageItemLink _css="mr-1 ml-1"}}
|
|
54
54
|
<span class="sr-only">Zur Seite: </span>
|
|
55
55
|
{{> components/button/components/button_label _label="2" _css=""}}
|
|
56
56
|
{{/components/button/link_button}}
|
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.103.
|
|
9
|
+
"version": "1.103.7",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -471,4 +471,21 @@
|
|
|
471
471
|
border-right: none;
|
|
472
472
|
transform: rotate(-45deg);
|
|
473
473
|
}
|
|
474
|
+
|
|
475
|
+
input[type="radio"]::after {
|
|
476
|
+
content: '';
|
|
477
|
+
position: absolute;
|
|
478
|
+
width: 16px;
|
|
479
|
+
height: 16px;
|
|
480
|
+
top: 50%;
|
|
481
|
+
left: 50%;
|
|
482
|
+
transform: translate(-50%, -50%) scale(0);
|
|
483
|
+
background-color: var(--color-primary-ds);
|
|
484
|
+
border-radius: 50%;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
input[type="radio"]:checked::after {
|
|
488
|
+
transform: translate(-50%, -50%) scale(1);
|
|
489
|
+
}
|
|
490
|
+
|
|
474
491
|
}
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"asString":"checkbox"
|
|
102
102
|
},
|
|
103
103
|
"name":"interessen",
|
|
104
|
-
"label":"Wählen Sie Ihre Interessen
|
|
104
|
+
"label":"Wählen Sie Ihre Interessen",
|
|
105
105
|
"isMeta":false,
|
|
106
106
|
"description":"Bitte kreuzen Sie alle Interessen an, die auf Sie zutreffen. Ihre Auswahl hilft uns, Ihnen relevante Inhalte anzubieten.",
|
|
107
|
-
"isRequired":
|
|
107
|
+
"isRequired":true,
|
|
108
108
|
"options":[
|
|
109
109
|
{
|
|
110
110
|
"value":"sport",
|
|
@@ -156,6 +156,39 @@
|
|
|
156
156
|
}
|
|
157
157
|
]
|
|
158
158
|
},
|
|
159
|
+
"radio-group":
|
|
160
|
+
{
|
|
161
|
+
"isGrouped":true,
|
|
162
|
+
"type":{
|
|
163
|
+
"isChoice":true,
|
|
164
|
+
"asString":"radio"
|
|
165
|
+
},
|
|
166
|
+
"name":"lieblingsfarbe",
|
|
167
|
+
"label":"Wählen Sie Ihre Lieblingsfarbe",
|
|
168
|
+
"isMeta":false,
|
|
169
|
+
"description":"Bitte wählen Sie eine der folgenden Farben aus.",
|
|
170
|
+
"isRequired":true,
|
|
171
|
+
"options":[
|
|
172
|
+
{
|
|
173
|
+
"value":"rot",
|
|
174
|
+
"label":"rot",
|
|
175
|
+
"title":"rot",
|
|
176
|
+
"isSelected":false
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"value":"blau",
|
|
180
|
+
"label":"blau",
|
|
181
|
+
"title":"blau",
|
|
182
|
+
"isSelected":false
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"value":"grün",
|
|
186
|
+
"label":"grün",
|
|
187
|
+
"title":"grün",
|
|
188
|
+
"isSelected":false
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
159
192
|
"select": {
|
|
160
193
|
"type": {
|
|
161
194
|
"isSelect": true,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
x-ignore
|
|
5
5
|
>
|
|
6
6
|
<div class="flex flex-row items-center w-full gap-x-2 md:gap-x-3">
|
|
7
|
-
<input class="relative self-start flex-shrink-0 w-6 h-6 bg-white border appearance-none cursor-pointer border-blue-science-hex checked:bg-blue-congress-hex checked:border-transparent"
|
|
7
|
+
<input class="relative self-start flex-shrink-0 w-6 h-6 bg-white border appearance-none cursor-pointer {{~inline-switch _type '["checkbox","radio"]' '[" border-blue-science-hex checked:bg-blue-congress-hex checked:border-transparent"," border-blue-science-hex checked:bg-white checked:border-blue-congress-hex rounded-full",""]'}}"
|
|
8
8
|
:class="{' border-blue-science-hex': hideError(),'border-red-700': hideDescription() }"
|
|
9
9
|
@change="validateInput"
|
|
10
10
|
x-model="isChecked"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fields":[{"isGrouped":true,"type":{"isChoice":true,"asString":"checkbox"},"name":"interessen","label":"Wählen Sie Ihre Interessen
|
|
1
|
+
{"fields":[{"isGrouped":true,"type":{"isChoice":true,"asString":"checkbox"},"name":"interessen","label":"Wählen Sie Ihre Interessen","isMeta":false,"description":"Bitte kreuzen Sie alle Interessen an, die auf Sie zutreffen. Ihre Auswahl hilft uns, Ihnen relevante Inhalte anzubieten.","isRequired":true,"options":[{"value":"sport","label":"sport","title":"sport","isSelected":false},{"value":"musik","label":"musik","title":"musik","isSelected":false},{"value":"lesen","label":"lesen","title":"lesen","isSelected":false},{"value":"reisen","label":"reisen","title":"reisen","isSelected":false},{"value":"kochen","label":"kochen","title":"kochen","isSelected":false},{"value":"filme","label":"filme","title":"filme","isSelected":false},{"value":"tanzen","label":"tanzen","title":"tanzen","isSelected":false},{"value":"fotografie","label":"fotografie","title":"fotografie","isSelected":false}]}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fields":[{"isGrouped":true,"type":{"isChoice":true,"asString":"radio"},"name":"lieblingsfarbe","label":"Wählen Sie Ihre Lieblingsfarbe","isMeta":false,"description":"Bitte wählen Sie eine der folgenden Farben aus.","isRequired":true,"options":[{"value":"rot","label":"rot","title":"rot","isSelected":false},{"value":"blau","label":"blau","title":"blau","isSelected":false},{"value":"grün","label":"grün","title":"grün","isSelected":false}]}]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
import radioGroupJson from './fixtures/form_radio_grouped.json'
|
|
3
|
+
|
|
4
|
+
const handlebars = require('hrHandlebars')
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Komponenten/Formulare',
|
|
9
|
+
decorators: [
|
|
10
|
+
(Story) => {
|
|
11
|
+
return `<div class="grid grid-page">
|
|
12
|
+
<div class="grid bg-white grid-article">
|
|
13
|
+
${Story()}
|
|
14
|
+
</div>
|
|
15
|
+
</div>`
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
}
|
|
19
|
+
const Template = (args) => {
|
|
20
|
+
let hbsTemplate = handlebars.compile(`
|
|
21
|
+
{{#>components/forms/backgroundBox }}
|
|
22
|
+
<form class="relative flex flex-col justify-center overflow-hidden group" id="form--{{nextRandom}}" action="{{this.url}}" method="post" enctype="{{if this.isMultipart 'multipart/form-data' 'application/x-www-form-urlencoded'}}" accept-charset="utf-8" >
|
|
23
|
+
{{> components/forms/fields }}
|
|
24
|
+
</form>
|
|
25
|
+
{{/components/forms/backgroundBox }}
|
|
26
|
+
`)
|
|
27
|
+
return hbsTemplate({ ...args })
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const Radio = {
|
|
31
|
+
render: Template.bind({}),
|
|
32
|
+
name: 'Radio',
|
|
33
|
+
args: radioGroupJson,
|
|
34
|
+
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<span class="sr-only">Zur Seite: </span>
|
|
51
51
|
{{> components/button/components/button_label _label="1" _css=""}}
|
|
52
52
|
{{/components/button/link_button}}
|
|
53
|
-
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.
|
|
53
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastButOnePageItemLink _css="mr-1 ml-1"}}
|
|
54
54
|
<span class="sr-only">Zur Seite: </span>
|
|
55
55
|
{{> components/button/components/button_label _label="2" _css=""}}
|
|
56
56
|
{{/components/button/link_button}}
|