avalynx-form 1.0.4 → 1.0.5

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Juergen Schwind an the Avalynx-Form Authors
3
+ Copyright (c) 2024 Juergen Schwind an the AvalynxForm Authors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.de.md CHANGED
@@ -50,7 +50,7 @@ Ersetzen Sie `pfad/zu/avalynx-form.js` durch den tatsächlichen Pfad zur Datei i
50
50
  AvalynxForm ist auch über [jsDelivr](https://www.jsdelivr.com/) verfügbar. Sie können es wie folgt in Ihr Projekt einbinden:
51
51
 
52
52
  ```html
53
- <script src="https://cdn.jsdelivr.net/npm/avalynx-form@1.0.4/dist/js/avalynx-form.js"></script>
53
+ <script src="https://cdn.jsdelivr.net/npm/avalynx-form@1.0.5/dist/js/avalynx-form.js"></script>
54
54
  ```
55
55
 
56
56
  Stellen Sie sicher, dass Sie auch die JS/CSS-Dateien von Bootstrap in Ihr Projekt einbinden, um eine korrekte Anzeige von AvalynxForm zu gewährleisten.
package/README.md CHANGED
@@ -50,7 +50,7 @@ Replace `path/to/avalynx-form.js` with the actual path to the file in your proje
50
50
  AvalynxForm is also available via [jsDelivr](https://www.jsdelivr.com/). You can include it in your project like this:
51
51
 
52
52
  ```html
53
- <script src="https://cdn.jsdelivr.net/npm/avalynx-form@1.0.4/dist/js/avalynx-form.js"></script>
53
+ <script src="https://cdn.jsdelivr.net/npm/avalynx-form@1.0.5/dist/js/avalynx-form.js"></script>
54
54
  ```
55
55
 
56
56
  Make sure to also include Bootstrap's JS/CSS in your project to ensure AvalynxForm displays correctly.
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * AvalynxForm is a lightweight, customizable form handling library for web applications. Based on Bootstrap >=5.3 without any framework dependencies.
5
5
  *
6
- * @version 1.0.4
6
+ * @version 1.0.5
7
7
  * @license MIT
8
8
  * @author https://github.com/avalynx/avalynx-form/graphs/contributors
9
9
  * @website https://github.com/avalynx/
@@ -147,6 +147,10 @@ export class AvalynxForm {
147
147
  if (parentElement !== null) {
148
148
  const spanElement = parentElement.querySelector('.invalid-feedback');
149
149
  element.classList.add('is-invalid');
150
+ const inputContainer = element.closest('[class*="-input-container"]');
151
+ if (inputContainer) {
152
+ inputContainer.classList.add('is-invalid');
153
+ }
150
154
  if (spanElement !== null) {
151
155
  spanElement.innerHTML = value;
152
156
  spanElement.style.display = 'block';
@@ -162,6 +166,10 @@ export class AvalynxForm {
162
166
  if (parentElement !== null) {
163
167
  const spanElement = parentElement.querySelector('.invalid-feedback');
164
168
  element.classList.remove('is-invalid');
169
+ const inputContainer = element.closest('[class*="-input-container"]');
170
+ if (inputContainer) {
171
+ inputContainer.classList.remove('is-invalid');
172
+ }
165
173
  if (spanElement !== null) {
166
174
  spanElement.innerHTML = "&nbsp;";
167
175
  spanElement.style.display = 'none';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * AvalynxForm is a lightweight, customizable form handling library for web applications. Based on Bootstrap >=5.3 without any framework dependencies.
5
5
  *
6
- * @version 1.0.4
6
+ * @version 1.0.5
7
7
  * @license MIT
8
8
  * @author https://github.com/avalynx/avalynx-form/graphs/contributors
9
9
  * @website https://github.com/avalynx/
@@ -145,6 +145,10 @@ class AvalynxForm {
145
145
  if (parentElement !== null) {
146
146
  const spanElement = parentElement.querySelector('.invalid-feedback');
147
147
  element.classList.add('is-invalid');
148
+ const inputContainer = element.closest('[class*="-input-container"]');
149
+ if (inputContainer) {
150
+ inputContainer.classList.add('is-invalid');
151
+ }
148
152
  if (spanElement !== null) {
149
153
  spanElement.innerHTML = value;
150
154
  spanElement.style.display = 'block';
@@ -160,6 +164,10 @@ class AvalynxForm {
160
164
  if (parentElement !== null) {
161
165
  const spanElement = parentElement.querySelector('.invalid-feedback');
162
166
  element.classList.remove('is-invalid');
167
+ const inputContainer = element.closest('[class*="-input-container"]');
168
+ if (inputContainer) {
169
+ inputContainer.classList.remove('is-invalid');
170
+ }
163
171
  if (spanElement !== null) {
164
172
  spanElement.innerHTML = "&nbsp;";
165
173
  spanElement.style.display = 'none';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "avalynx-form",
3
3
  "title": "AvalynxForm",
4
4
  "description": "AvalynxForm is a lightweight, customizable form handling library for web applications. Based on Bootstrap >=5.3 without any framework dependencies.",
5
- "version": "1.0.4",
5
+ "version": "1.0.5",
6
6
  "license": "MIT",
7
7
  "main": "dist/js/avalynx-form.js",
8
8
  "module": "dist/js/avalynx-form.esm.js",
@@ -23,7 +23,7 @@
23
23
  "package.json"
24
24
  ],
25
25
  "author": {
26
- "name": "Juergen Schwind an the Avalynx-Form Team",
26
+ "name": "Juergen Schwind an the AvalynxForm Authors",
27
27
  "url": "https://github.com/avalynx/avalynx-form/graphs/contributors"
28
28
  },
29
29
  "homepage": "https://github.com/avalynx/",