@descope/web-components-ui 3.26.3 → 3.26.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/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
 
@@ -10265,6 +10265,7 @@ const PasswordClass = compose(
10265
10265
  ${useHostExternalPadding(PasswordClass.cssVarList)}
10266
10266
  ${resetInputCursor('vaadin-password-field')}
10267
10267
  ${resetInputLabelPosition('vaadin-password-field')}
10268
+ ${resetInputAutoFill('vaadin-password-field', PasswordClass.cssVarList)}
10268
10269
 
10269
10270
  vaadin-password-field {
10270
10271
  width: 100%;
@@ -25013,7 +25014,7 @@ class RawPasswordStrength extends createBaseClass$1({
25013
25014
  }
25014
25015
 
25015
25016
  // 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);
25017
+ getCalcScoreFn = () => Promise.resolve().then(function () { return calcScore$1; }).then(module => module.default);
25017
25018
 
25018
25019
  #score = -1;
25019
25020
 
@@ -36772,11 +36773,14 @@ const options = {
36772
36773
  ...zxcvbnEnPackage.dictionary,
36773
36774
  },
36774
36775
  };
36775
- zxcvbnOptions.setOptions(options);
36776
36776
 
36777
- var calcScore = /*#__PURE__*/Object.freeze({
36777
+ const scorer = new ZxcvbnFactory(options);
36778
+
36779
+ var calcScore = (password) => scorer.check(password);
36780
+
36781
+ var calcScore$1 = /*#__PURE__*/Object.freeze({
36778
36782
  __proto__: null,
36779
- default: zxcvbn,
36783
+ default: calcScore,
36780
36784
  options: options
36781
36785
  });
36782
36786