hr-design-system-handlebars 1.103.7 → 1.103.9
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 +24 -0
- package/dist/assets/icons/icons/svgmap/error-ds.svg +6 -0
- package/dist/assets/icons/icons/svgmap/send-ds.svg +5 -0
- package/dist/assets/icons/icons/svgmap.min.svg +1 -1
- package/dist/assets/index.css +3 -26
- package/dist/views/components/forms/controls.hbs +14 -0
- package/dist/views/components/forms/error_icon.hbs +3 -0
- package/dist/views/components/forms/input.hbs +1 -21
- package/dist/views/components/forms/select.hbs +2 -17
- package/dist/views/components/forms/textarea.hbs +7 -21
- package/dist/views/components/forms/webform.hbs +2 -0
- package/dist/views/components/pagination/pagination_button_right.hbs +6 -4
- package/dist/views/components/pagination/pagination_button_right_linked.hbs +7 -4
- package/dist/views/components/pagination/pagination_more_than_three_pages.hbs +21 -12
- package/dist/views/components/pagination/pagination_only_three_pages.hbs +14 -8
- package/dist/views/components/pagination/pagination_only_two_pages.hbs +7 -4
- package/dist/views_static/components/forms/controls.hbs +14 -0
- package/dist/views_static/components/forms/error_icon.hbs +3 -0
- package/dist/views_static/components/forms/input.hbs +1 -21
- package/dist/views_static/components/forms/select.hbs +2 -17
- package/dist/views_static/components/forms/textarea.hbs +7 -21
- package/dist/views_static/components/forms/webform.hbs +2 -0
- package/dist/views_static/components/pagination/pagination_button_right.hbs +6 -4
- package/dist/views_static/components/pagination/pagination_button_right_linked.hbs +7 -4
- package/dist/views_static/components/pagination/pagination_more_than_three_pages.hbs +21 -12
- package/dist/views_static/components/pagination/pagination_only_three_pages.hbs +14 -8
- package/dist/views_static/components/pagination/pagination_only_two_pages.hbs +7 -4
- package/package.json +1 -1
- package/src/assets/icons/icons/svgmap/error-ds.svg +6 -0
- package/src/assets/icons/icons/svgmap/send-ds.svg +5 -0
- package/src/assets/icons/icons/svgmap.min.svg +1 -1
- package/src/stories/views/components/forms/controls.hbs +14 -0
- package/src/stories/views/components/forms/error_icon.hbs +3 -0
- package/src/stories/views/components/forms/input.hbs +1 -21
- package/src/stories/views/components/forms/select.hbs +2 -17
- package/src/stories/views/components/forms/textarea.hbs +7 -21
- package/src/stories/views/components/forms/webform.hbs +2 -0
- package/src/stories/views/components/pagination/pagination_button_right.hbs +6 -4
- package/src/stories/views/components/pagination/pagination_button_right_linked.hbs +7 -4
- package/src/stories/views/components/pagination/pagination_more_than_three_pages.hbs +21 -12
- package/src/stories/views/components/pagination/pagination_only_three_pages.hbs +14 -8
- package/src/stories/views/components/pagination/pagination_only_two_pages.hbs +7 -4
|
@@ -45,9 +45,7 @@
|
|
|
45
45
|
</label>
|
|
46
46
|
{{#if _required}}
|
|
47
47
|
<div class="absolute top-0 z-10 flex items-center justify-center h-12 right-14">
|
|
48
|
-
|
|
49
|
-
{{> components/base/image/icon _icon="info2" _addClass="w-5 h-5 fill-red-700"}}
|
|
50
|
-
</div>
|
|
48
|
+
{{> components/forms/error_icon _xclass="{'hidden': hideError() }"}}
|
|
51
49
|
</div>
|
|
52
50
|
{{/if}}
|
|
53
51
|
<div class="flex items-end justify-between h-5 font-heading">
|
|
@@ -60,18 +58,5 @@
|
|
|
60
58
|
</div>
|
|
61
59
|
<div class="absolute right-0 p-4 py-3 transform border-l peer-focus:border-r peer-focus:border-l-0 pointer-events-none top-1.5 peer-focus:rotate-180">
|
|
62
60
|
{{> components/base/image/icon _icon="arrow-down" _addClass="w-3 h-3 fill-blue-500 dark:fill-text-dark "}}
|
|
63
|
-
</div>
|
|
64
|
-
<div class="hidden">
|
|
65
|
-
<div class="px-4 py-2 font-bold text-white bg-red-500 rounded-t">
|
|
66
|
-
DEBUG
|
|
67
|
-
</div>
|
|
68
|
-
<div class="px-4 py-3 text-red-700 bg-red-100 border border-t-0 border-red-400 rounded-b">
|
|
69
|
-
<div>isFocused:<span x-text="isFocused" class="font-bold" :class="isFocused ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
70
|
-
<div>wasFocused:<span x-text="wasFocused" class="font-bold" :class="wasFocused ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
71
|
-
<div>valid:<span x-text="valid" class="font-bold" :class="valid ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
72
|
-
<div>hideDescription:<span x-text="hideDescription()" class="font-bold" :class="hideDescription() ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
73
|
-
<div>hideError:<span x-text="hideError()" class="font-bold" :class="hideError() ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
74
|
-
<div>select:<span x-text="select{{getRandom}}" class="font-bold" ></span></div>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
61
|
+
</div>
|
|
77
62
|
</div>
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
{{#if _required}}
|
|
34
34
|
:class="{'border-blue-500': valid || !wasFocused || isFocused,'border-red-500': !valid && wasFocused && !isFocused}"
|
|
35
35
|
{{/if}}
|
|
36
|
-
>{{
|
|
36
|
+
>{{~#if _formField.isValid~}}
|
|
37
37
|
{{{_formField.forHtmlContent}}}
|
|
38
|
-
{{else}}
|
|
39
|
-
{{
|
|
38
|
+
{{~else~}}
|
|
39
|
+
{{~#if _value~}}
|
|
40
40
|
{{_value}}
|
|
41
|
-
{{else}}
|
|
42
|
-
{{_defaultValue}}
|
|
43
|
-
{{
|
|
41
|
+
{{~else~}}
|
|
42
|
+
{{~_defaultValue~}}
|
|
43
|
+
{{~/if}}{{/if}}</textarea>
|
|
44
44
|
<label for="textarea{{getRandom}}" class="absolute left-[16px] top-px translate-y-0 translate-x-0 scale-75 text-gray-500
|
|
45
45
|
|
|
46
46
|
peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-x-0 peer-placeholder-shown:translate-y-3
|
|
@@ -56,9 +56,7 @@
|
|
|
56
56
|
</label>
|
|
57
57
|
{{#if _required}}
|
|
58
58
|
<div class="absolute top-0 z-10 flex items-center justify-center h-12 right-4">
|
|
59
|
-
|
|
60
|
-
{{> components/base/image/icon _icon="info2" _addClass="w-5 h-5 fill-red-700"}}
|
|
61
|
-
</div>
|
|
59
|
+
{{> components/forms/error_icon _xclass="{'hidden': valid || !wasFocused || isFocused }"}}
|
|
62
60
|
</div>
|
|
63
61
|
{{/if}}
|
|
64
62
|
<div class="flex items-end justify-between h-5 font-heading">
|
|
@@ -72,16 +70,4 @@
|
|
|
72
70
|
<div class="px-4 ml-auto text-xs text-gray-500"><span x-text="textarea{{getRandom}}.length">0</span>/{{_maxLength}}</div>
|
|
73
71
|
{{/if~}}
|
|
74
72
|
</div>
|
|
75
|
-
|
|
76
|
-
<div class="hidden">
|
|
77
|
-
<div class="px-4 py-2 font-bold text-white bg-red-500 rounded-t">
|
|
78
|
-
DEBUG
|
|
79
|
-
</div>
|
|
80
|
-
<div class="px-4 py-3 text-red-700 bg-red-100 border border-t-0 border-red-400 rounded-b">
|
|
81
|
-
<div>isFocused:<span x-text="isFocused" class="font-bold" :class="isFocused ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
82
|
-
<div>wasFocused:<span x-text="wasFocused" class="font-bold" :class="wasFocused ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
83
|
-
<div>valid:<span x-text="valid" class="font-bold" :class="valid ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
84
|
-
<div>input.length:<span x-text="textarea{{getRandom}}.length " class="font-bold" ></span></div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
73
|
</div>
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
<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" >
|
|
10
10
|
{{> components/forms/fields }}
|
|
11
|
+
|
|
12
|
+
{{> components/forms/controls }}
|
|
11
13
|
</form>
|
|
12
14
|
{{/components/forms/backgroundBox }}
|
|
13
15
|
{{~else~}}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
{{
|
|
2
|
-
{{
|
|
3
|
-
{{
|
|
4
|
-
|
|
1
|
+
{{#with this}}
|
|
2
|
+
{{#> components/button/button _size="md" _variant="tertiary" _disableButtonPress='true' _disabled='true' _css="ml-1" _type="button"}}
|
|
3
|
+
{{> components/button/components/button_icon _icon="arrow-right" _iconmap="icons"}}
|
|
4
|
+
{{/components/button/button}}
|
|
5
|
+
{{#*inline "htmlProperties"}}{{/inline}}
|
|
6
|
+
{{/with}}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
{{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
{{
|
|
1
|
+
{{#with this}}
|
|
2
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.nextItemLink _css="ml-1"}}
|
|
3
|
+
<span class="sr-only">Nächste Seite</span>
|
|
4
|
+
{{> components/button/components/button_icon _icon="arrow-right" _iconmap="icons"}}
|
|
5
|
+
{{/components/button/link_button}}
|
|
6
|
+
{{#*inline "htmlProperties"}}{{/inline}}
|
|
7
|
+
{{/with}}
|
|
@@ -11,10 +11,13 @@
|
|
|
11
11
|
{{/inline}}
|
|
12
12
|
{{/with}}
|
|
13
13
|
<span class="pt-1 ml-2 mr-2 font-title dark:text-link-dark">…</span>
|
|
14
|
-
{{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
{{#with this}}
|
|
15
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1"}}
|
|
16
|
+
<span class="sr-only">Zur Seite: </span>
|
|
17
|
+
{{> components/button/components/button_label _label=_totalPages-adjust_context _css=""}}
|
|
18
|
+
{{/components/button/link_button}}
|
|
19
|
+
{{#*inline "htmlProperties"}}{{/inline}}
|
|
20
|
+
{{/with}}
|
|
18
21
|
{{> components/pagination/pagination_button_right_linked }}
|
|
19
22
|
</div>
|
|
20
23
|
{{else}}
|
|
@@ -35,10 +38,13 @@
|
|
|
35
38
|
{{/inline}}
|
|
36
39
|
{{/with}}
|
|
37
40
|
<span class="pt-1 ml-2 mr-2 font-title dark:text-link-dark">…</span>
|
|
38
|
-
{{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
{{#with this}}
|
|
42
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1"}}
|
|
43
|
+
<span class="sr-only">Zur Seite: </span>
|
|
44
|
+
{{> components/button/components/button_label _label=_totalPages-adjust_context _css=""}}
|
|
45
|
+
{{/components/button/link_button}}
|
|
46
|
+
{{#*inline "htmlProperties"}}{{/inline}}
|
|
47
|
+
{{/with}}
|
|
42
48
|
{{> components/pagination/pagination_button_right_linked }}
|
|
43
49
|
</div>
|
|
44
50
|
{{else}}
|
|
@@ -62,10 +68,13 @@
|
|
|
62
68
|
{{~#if _notLastButOnePage~}}
|
|
63
69
|
<span class="pt-1 ml-2 mr-2 font-title dark:text-link-dark">…</span>
|
|
64
70
|
{{~/if~}}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
{{#with this}}
|
|
72
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1"}}
|
|
73
|
+
<span class="sr-only">Zur Seite: </span>
|
|
74
|
+
{{> components/button/components/button_label _label=_totalPages-adjust_context _css=""}}
|
|
75
|
+
{{/components/button/link_button}}
|
|
76
|
+
{{#*inline "htmlProperties"}}{{/inline}}
|
|
77
|
+
{{/with}}
|
|
69
78
|
{{~/if~}}
|
|
70
79
|
{{~#if _notLastPage~}}
|
|
71
80
|
{{> components/pagination/pagination_button_right_linked }}
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
aria-current="true"
|
|
11
11
|
{{/inline}}
|
|
12
12
|
{{/with}}
|
|
13
|
-
{{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
{{#with this}}
|
|
14
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.nextItemLink _css="mr-1 ml-1"}}
|
|
15
|
+
<span class="sr-only">Zur Seite: </span>
|
|
16
|
+
{{> components/button/components/button_label _label="2" _css=""}}
|
|
17
|
+
{{/components/button/link_button}}
|
|
18
|
+
{{#*inline "htmlProperties"}}{{/inline}}
|
|
19
|
+
{{/with}}
|
|
17
20
|
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1"}}
|
|
18
21
|
<span class="sr-only">Zur Seite: </span>
|
|
19
22
|
{{> components/button/components/button_label _label="3" _css=""}}
|
|
@@ -37,10 +40,13 @@
|
|
|
37
40
|
aria-current="true"
|
|
38
41
|
{{/inline}}
|
|
39
42
|
{{/with}}
|
|
40
|
-
{{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
{{#with this}}
|
|
44
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1"}}
|
|
45
|
+
<span class="sr-only">Zur Seite: </span>
|
|
46
|
+
{{> components/button/components/button_label _label="3" _css=""}}
|
|
47
|
+
{{/components/button/link_button}}
|
|
48
|
+
{{#*inline "htmlProperties"}}{{/inline}}
|
|
49
|
+
{{/with}}
|
|
44
50
|
{{> components/pagination/pagination_button_right_linked }}
|
|
45
51
|
</div>
|
|
46
52
|
{{else}}
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
aria-current="true"
|
|
11
11
|
{{/inline}}
|
|
12
12
|
{{/with}}
|
|
13
|
-
{{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
{{#with this}}
|
|
14
|
+
{{#> components/button/link_button _size="md" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1"}}
|
|
15
|
+
<span class="sr-only">Zur Seite: </span>
|
|
16
|
+
{{> components/button/components/button_label _label="2" _css=""}}
|
|
17
|
+
{{/components/button/link_button}}
|
|
18
|
+
{{#*inline "htmlProperties"}}{{/inline}}
|
|
19
|
+
{{/with}}
|
|
17
20
|
{{> components/pagination/pagination_button_right_linked }}
|
|
18
21
|
</div>
|
|
19
22
|
{{else}}
|