@creative-web-solution/front-library 7.1.39 → 7.1.41
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
CHANGED
|
@@ -388,6 +388,10 @@ export default class SliderControls {
|
|
|
388
388
|
|
|
389
389
|
clearTimeout( this.#autoslideTimeoutId );
|
|
390
390
|
|
|
391
|
+
if (!currentSlide) {
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
|
|
391
395
|
this.#autoslideTimeoutId = setTimeout(
|
|
392
396
|
this.#makeAutoslide,
|
|
393
397
|
( currentSlide.delay as number || this.#options.autoslide as number ) * 1000
|
|
@@ -159,8 +159,10 @@ export default class Input implements FLib.Validator.Input {
|
|
|
159
159
|
this.#hasError = false;
|
|
160
160
|
this.#isLiveValidation = isLiveValidation;
|
|
161
161
|
|
|
162
|
+
const mustCancelValidation = (this.#$input as HTMLInputElement).disabled || this.#$input.hasAttribute(this.#options.cancelFieldValidationAttribute) || this.#$input.closest(`[${ this.#options.cancelFieldValidationAttribute }]`);
|
|
163
|
+
|
|
162
164
|
// This input has no (known) validation
|
|
163
|
-
if ( !this.#hasValidator ) {
|
|
165
|
+
if ( !this.#hasValidator || mustCancelValidation ) {
|
|
164
166
|
return Promise.resolve();
|
|
165
167
|
}
|
|
166
168
|
|
package/README.md
CHANGED
package/Types/Validator.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ declare namespace FLib {
|
|
|
69
69
|
filter: string;
|
|
70
70
|
/** @defaultValue data-error-label */
|
|
71
71
|
customErrorLabelPrefix: string;
|
|
72
|
+
/** @defaultValue data-cancel-validation */
|
|
73
|
+
cancelFieldValidationAttribute: string;
|
|
72
74
|
/** @defaultValue `{}` */
|
|
73
75
|
errorMessages: { [ key: string ]: string };
|
|
74
76
|
validatorsOptions?: { [ key: string ]: any };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@creative-web-solution/front-library",
|
|
3
3
|
"title": "Frontend library",
|
|
4
4
|
"description": "Frontend functions and modules",
|
|
5
|
-
"version": "7.1.
|
|
5
|
+
"version": "7.1.41",
|
|
6
6
|
"homepage": "https://github.com/creative-web-solution/front-library",
|
|
7
7
|
"author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
|
|
8
8
|
"keywords": [],
|