@descope/web-components-ui 3.26.2 → 3.26.4

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/dist/index.esm.js CHANGED
@@ -27,7 +27,7 @@ import '@vaadin/email-field';
27
27
  import '@vaadin/multi-select-combo-box';
28
28
  import '@vaadin/avatar';
29
29
  import '@vaadin/tooltip';
30
- import { zxcvbn, zxcvbnOptions } from '@zxcvbn-ts/core';
30
+ import { ZxcvbnFactory } from '@zxcvbn-ts/core';
31
31
  import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common';
32
32
  import * as zxcvbnEnPackage from '@zxcvbn-ts/language-en';
33
33
 
@@ -9036,7 +9036,7 @@ class RawDateFieldClass extends BaseInputClass$g {
9036
9036
  return { valueMissing: true };
9037
9037
  }
9038
9038
 
9039
- if (this.isCountersOutOfRange || this.isInvalidDate()) {
9039
+ if (!this.isCountersEmpty && (this.isCountersOutOfRange || this.isInvalidDate())) {
9040
9040
  return { patternMismatch: true };
9041
9041
  }
9042
9042
 
@@ -25013,7 +25013,7 @@ class RawPasswordStrength extends createBaseClass$1({
25013
25013
  }
25014
25014
 
25015
25015
  // we need to have the option to take the zxcvbn from outside the component
25016
- getCalcScoreFn = () => Promise.resolve().then(function () { return calcScore; }).then(module => module.default);
25016
+ getCalcScoreFn = () => Promise.resolve().then(function () { return calcScore$1; }).then(module => module.default);
25017
25017
 
25018
25018
  #score = -1;
25019
25019
 
@@ -36772,11 +36772,14 @@ const options = {
36772
36772
  ...zxcvbnEnPackage.dictionary,
36773
36773
  },
36774
36774
  };
36775
- zxcvbnOptions.setOptions(options);
36776
36775
 
36777
- var calcScore = /*#__PURE__*/Object.freeze({
36776
+ const scorer = new ZxcvbnFactory(options);
36777
+
36778
+ var calcScore = (password) => scorer.check(password);
36779
+
36780
+ var calcScore$1 = /*#__PURE__*/Object.freeze({
36778
36781
  __proto__: null,
36779
- default: zxcvbn,
36782
+ default: calcScore,
36780
36783
  options: options
36781
36784
  });
36782
36785