hr-design-system-handlebars 1.110.2 → 1.110.3
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 +3 -3
- package/dist/assets/js/components/forms/contactForm.alpine.js +5 -5
- package/dist/views/components/forms/webform.hbs +1 -1
- package/dist/views_static/components/forms/webform.hbs +1 -1
- package/package.json +1 -1
- package/src/assets/fixtures/content/copytext/copytext_webform.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_webform.json +1 -1
- package/src/stories/views/components/forms/contactForm.alpine.js +5 -5
- package/src/stories/views/components/forms/webform.hbs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v1.110.3 (Mon Oct 14 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- changed jsonURL to jsonUrl [#1106](https://github.com/mumprod/hr-design-system-handlebars/pull/1106) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v1.110.2 (Mon Oct 14 2024)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -3593,7 +3593,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3593
3593
|
border-bottom-color: var(--color-secondary-ds);
|
|
3594
3594
|
}
|
|
3595
3595
|
.counter-reset {
|
|
3596
|
-
counter-reset:
|
|
3596
|
+
counter-reset: cnt1728904621898;
|
|
3597
3597
|
}
|
|
3598
3598
|
.placeholder-text-xs::-webkit-input-placeholder {
|
|
3599
3599
|
font-size: 0.75rem;
|
|
@@ -4007,7 +4007,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
4007
4007
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
4008
4008
|
}
|
|
4009
4009
|
.-ordered {
|
|
4010
|
-
counter-increment:
|
|
4010
|
+
counter-increment: cnt1728904621898 1;
|
|
4011
4011
|
}
|
|
4012
4012
|
.-ordered::before {
|
|
4013
4013
|
position: absolute;
|
|
@@ -4025,7 +4025,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
4025
4025
|
--tw-text-opacity: 1;
|
|
4026
4026
|
color: rgba(0, 0, 0, 1);
|
|
4027
4027
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
4028
|
-
content: counter(
|
|
4028
|
+
content: counter(cnt1728904621898);
|
|
4029
4029
|
}
|
|
4030
4030
|
/*! ****************************/
|
|
4031
4031
|
/*! DataPolicy stuff */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function contactForm(formId,
|
|
1
|
+
export default function contactForm(formId, jsonUrl, errorMessages, multipart, trackingInformations, jsonp = false) {
|
|
2
2
|
return {
|
|
3
3
|
isPosting: false,
|
|
4
4
|
isWebview:false,
|
|
@@ -7,8 +7,8 @@ export default function contactForm(formId, jsonURL, errorMessages, multipart, t
|
|
|
7
7
|
formWrapper: this.$refs[formId].closest("#formWrapper"),
|
|
8
8
|
actionUrl: this.form && this.form.getAttribute('action'),
|
|
9
9
|
checkForJsonURL () {
|
|
10
|
-
if (
|
|
11
|
-
this.actionUrl =
|
|
10
|
+
if (jsonUrl) {
|
|
11
|
+
this.actionUrl = jsonUrl
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
formInit(){
|
|
@@ -17,7 +17,7 @@ export default function contactForm(formId, jsonURL, errorMessages, multipart, t
|
|
|
17
17
|
console.log("%cform:", 'color: green' ,this.form);
|
|
18
18
|
console.log("%cformWrapper:", 'color: green' ,this.formWrapper);
|
|
19
19
|
console.log("%cactionUrl:", 'color: green' ,this.actionUrl);
|
|
20
|
-
console.log("%
|
|
20
|
+
console.log("%cjsonUrl:", 'color: green', jsonUrl);
|
|
21
21
|
console.log("%cerrorMessages:", 'color: green', errorMessages);
|
|
22
22
|
console.log("%cmultipart:", 'color: green', multipart);
|
|
23
23
|
console.log("%ctrackingInformations:", 'color: green', trackingInformations);
|
|
@@ -117,7 +117,7 @@ export default function contactForm(formId, jsonURL, errorMessages, multipart, t
|
|
|
117
117
|
if (response.ok) {
|
|
118
118
|
console.log('Done');
|
|
119
119
|
console.log(data);
|
|
120
|
-
if (
|
|
120
|
+
if (jsonUrl) {
|
|
121
121
|
const responseData = JSON.parse(data);
|
|
122
122
|
switch (responseData.status) {
|
|
123
123
|
case 'VALIDATION_ERROR':
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<form
|
|
10
10
|
x-ref="form{{nextRandom}}"
|
|
11
11
|
ax-load
|
|
12
|
-
x-data="contactForm('form{{getRandom}}','{{this.
|
|
12
|
+
x-data="contactForm('form{{getRandom}}','{{this.jsonUrl}}','{{this.errorMessages}}','{{this.isMultipart}}','{{this.trackingInformations}}')"
|
|
13
13
|
x-init="formInit()"
|
|
14
14
|
x-ignore
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<form
|
|
10
10
|
x-ref="form{{nextRandom}}"
|
|
11
11
|
ax-load
|
|
12
|
-
x-data="contactForm('form{{getRandom}}','{{this.
|
|
12
|
+
x-data="contactForm('form{{getRandom}}','{{this.jsonUrl}}','{{this.errorMessages}}','{{this.isMultipart}}','{{this.trackingInformations}}')"
|
|
13
13
|
x-init="formInit()"
|
|
14
14
|
x-ignore
|
|
15
15
|
|
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.110.
|
|
9
|
+
"version": "1.110.3",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"isWebForm": true,
|
|
10
10
|
"hasNewWebForm": true,
|
|
11
11
|
"title": "Kontaktformular",
|
|
12
|
-
"
|
|
12
|
+
"jsonUrl": "https://ugc-hessenschau.dev-ext.hrcms.gcp.cloud.hr.de",
|
|
13
13
|
"errorMessages": "errorMessages",
|
|
14
14
|
"isMultipart": "isMultipart",
|
|
15
15
|
"trackingInformations": "trackingInformations",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"copytextParagraph":[{"isHeadline":true,"text":"Copytext mit Formular"},{"paragraphBoxItem":{"isWebForm":true,"hasNewWebForm":true,"title":"Kontaktformular","
|
|
1
|
+
{"copytextParagraph":[{"isHeadline":true,"text":"Copytext mit Formular"},{"paragraphBoxItem":{"isWebForm":true,"hasNewWebForm":true,"title":"Kontaktformular","jsonUrl":"https://ugc-hessenschau.dev-ext.hrcms.gcp.cloud.hr.de","errorMessages":"errorMessages","isMultipart":"isMultipart","trackingInformations":"trackingInformations","fields":[{"type":{"isText":true,"asString":"text"},"name":"vorname","label":"Vorname","description":"Das ist der Beschreibungstext (*Pflichtfeld)","defaultValue":"","isHidden":false,"isRequired":true,"maxLength":"140"},{"type":{"isText":true,"asString":"text"},"name":"nachname","label":"Nachname","description":"","defaultValue":"","isHidden":false,"isRequired":true,"maxLength":"140"},{"isGrouped":false,"type":{"isChoice":true,"asString":"checkbox"},"name":"checkbox","label":"Ich bin damit einverstanden, dass der hr die von mir im vorstehenden Formular angegebenen personenbezogenen Daten für den Zweck der Kontaktaufnahme mit Upload verarbeitet. Eine Weitergabe an Dritte findet nicht statt, es sei denn, es wird ausdrücklich darauf hingewiesen. Unsere Datenschutzerklärung mit sämtlichen Informationen gemäß Art 13 DSGVO zur Datenverarbeitung durch den hr und zu Ihren Rechten können Sie unter Datenschutzerklärung einsehen. Den Datenschutzbeauftragten des hr erreichen Sie unter datenschutz@hr.de.","isMeta":false,"description":"Das ist der Beschreibungstext von Checkbox","isRequired":true}]}}]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function contactForm(formId,
|
|
1
|
+
export default function contactForm(formId, jsonUrl, errorMessages, multipart, trackingInformations, jsonp = false) {
|
|
2
2
|
return {
|
|
3
3
|
isPosting: false,
|
|
4
4
|
isWebview:false,
|
|
@@ -7,8 +7,8 @@ export default function contactForm(formId, jsonURL, errorMessages, multipart, t
|
|
|
7
7
|
formWrapper: this.$refs[formId].closest("#formWrapper"),
|
|
8
8
|
actionUrl: this.form && this.form.getAttribute('action'),
|
|
9
9
|
checkForJsonURL () {
|
|
10
|
-
if (
|
|
11
|
-
this.actionUrl =
|
|
10
|
+
if (jsonUrl) {
|
|
11
|
+
this.actionUrl = jsonUrl
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
formInit(){
|
|
@@ -17,7 +17,7 @@ export default function contactForm(formId, jsonURL, errorMessages, multipart, t
|
|
|
17
17
|
console.log("%cform:", 'color: green' ,this.form);
|
|
18
18
|
console.log("%cformWrapper:", 'color: green' ,this.formWrapper);
|
|
19
19
|
console.log("%cactionUrl:", 'color: green' ,this.actionUrl);
|
|
20
|
-
console.log("%
|
|
20
|
+
console.log("%cjsonUrl:", 'color: green', jsonUrl);
|
|
21
21
|
console.log("%cerrorMessages:", 'color: green', errorMessages);
|
|
22
22
|
console.log("%cmultipart:", 'color: green', multipart);
|
|
23
23
|
console.log("%ctrackingInformations:", 'color: green', trackingInformations);
|
|
@@ -117,7 +117,7 @@ export default function contactForm(formId, jsonURL, errorMessages, multipart, t
|
|
|
117
117
|
if (response.ok) {
|
|
118
118
|
console.log('Done');
|
|
119
119
|
console.log(data);
|
|
120
|
-
if (
|
|
120
|
+
if (jsonUrl) {
|
|
121
121
|
const responseData = JSON.parse(data);
|
|
122
122
|
switch (responseData.status) {
|
|
123
123
|
case 'VALIDATION_ERROR':
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<form
|
|
10
10
|
x-ref="form{{nextRandom}}"
|
|
11
11
|
ax-load
|
|
12
|
-
x-data="contactForm('form{{getRandom}}','{{this.
|
|
12
|
+
x-data="contactForm('form{{getRandom}}','{{this.jsonUrl}}','{{this.errorMessages}}','{{this.isMultipart}}','{{this.trackingInformations}}')"
|
|
13
13
|
x-init="formInit()"
|
|
14
14
|
x-ignore
|
|
15
15
|
|