@kerkhoff-ict/solora 2.5.2 → 2.5.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1922,6 +1922,9 @@ function initDropdowns() {
1922
1922
  function initInput() {
1923
1923
  const inputs = document.querySelectorAll(".sol-input");
1924
1924
  inputs.forEach((input) => {
1925
+ if (input.dataset.solIgnore !== void 0) {
1926
+ return;
1927
+ }
1925
1928
  const form = input.closest("form");
1926
1929
  if (form && !form.noValidate) {
1927
1930
  form.noValidate = true;
@@ -1952,18 +1955,12 @@ function updateValidationState(input, errorDisplay) {
1952
1955
  return;
1953
1956
  }
1954
1957
  let message = "Ongeldige invoer";
1955
- if (input.validity.valueMissing) {
1956
- message = "Dit veld is verplicht";
1957
- } else if (input.validity.typeMismatch) {
1958
+ if (input.validity.valueMissing) message = "Dit veld is verplicht";
1959
+ else if (input.validity.typeMismatch) {
1958
1960
  if (input.type === "email") message = "Voer een geldig e-mailadres in";
1959
1961
  if (input.type === "url") message = "Voer een geldige link in";
1960
- } else if (input.validity.tooShort) {
1961
- message = `Minimaal ${input.minLength} tekens nodig`;
1962
- } else if (input.validity.rangeUnderflow) {
1963
- message = `Minimum waarde is ${input.min}`;
1964
- } else if (input.validity.patternMismatch) {
1965
- message = "De opmaak is onjuist";
1966
- }
1962
+ } else if (input.validity.tooShort) message = `Minimaal ${input.minLength} tekens`;
1963
+ else if (input.validity.rangeUnderflow) message = `Minimum is ${input.min}`;
1967
1964
  errorDisplay.textContent = message;
1968
1965
  errorDisplay.style.display = "block";
1969
1966
  input.classList.add("is-invalid");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerkhoff-ict/solora",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Simple CSS component library",
5
5
  "main": "dist/index.js",
6
6
  "style": "dist/index.css",