@descope/web-components-ui 1.0.357 → 1.0.359

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.
@@ -3,6 +3,7 @@
3
3
  var merge = require('lodash.merge');
4
4
  var Color = require('color');
5
5
  var MarkdownIt = require('markdown-it');
6
+ require('lodash.debounce');
6
7
  var hljs = require('highlight.js');
7
8
 
8
9
  const DESCOPE_PREFIX = 'descope';
@@ -2972,6 +2973,7 @@ const {
2972
2973
  requiredIndicator: requiredIndicator$b,
2973
2974
  inputField: inputField$6,
2974
2975
  input,
2976
+ inputMask,
2975
2977
  helperText: helperText$a,
2976
2978
  errorMessage: errorMessage$c,
2977
2979
  disabledPlaceholder,
@@ -2988,6 +2990,7 @@ const {
2988
2990
  disabledPlaceholder: { selector: '> input:disabled::placeholder' },
2989
2991
  inputField: { selector: '::part(input-field)' },
2990
2992
  input: { selector: 'input' },
2993
+ inputMask: { selector: '::part(input-field)::before' },
2991
2994
  inputDisabled: { selector: 'input:disabled' },
2992
2995
  helperText: { selector: '::part(helper-text)' },
2993
2996
  errorMessage: { selector: '::part(error-message)' },
@@ -3013,7 +3016,10 @@ var textFieldMappings = {
3013
3016
  hostMinWidth: { ...host$m, property: 'min-width' },
3014
3017
  hostDirection: { ...host$m, property: 'direction' },
3015
3018
 
3016
- inputBackgroundColor: { ...inputField$6, property: 'background-color' },
3019
+ inputBackgroundColor: [
3020
+ { ...inputField$6, property: 'background-color' },
3021
+ { ...inputMask, property: 'background-color' },
3022
+ ],
3017
3023
 
3018
3024
  errorMessageTextColor: { ...errorMessage$c, property: 'color' },
3019
3025
  helperTextColor: { ...helperText$a, property: '-webkit-text-fill-color' },
@@ -3909,18 +3915,21 @@ var numberField$1 = /*#__PURE__*/Object.freeze({
3909
3915
 
3910
3916
  const componentName$M = getComponentName('email-field');
3911
3917
 
3918
+ const defaultPattern = "^[\\w\\.\\%\\+\\-']+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$";
3919
+ const defaultAutocomplete = 'username';
3920
+
3912
3921
  const customMixin$8 = (superclass) =>
3913
3922
  class EmailFieldMixinClass extends superclass {
3914
3923
  init() {
3915
3924
  super.init?.();
3916
3925
 
3917
- this.baseElement.setAttribute('pattern', '^[\\w\\.\\%\\+\\-]+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$');
3918
-
3919
- this.setAttribute('autocomplete', this.getAutocompleteType());
3920
- }
3926
+ if (!this.getAttribute('pattern')) {
3927
+ this.setAttribute('pattern', defaultPattern);
3928
+ }
3921
3929
 
3922
- getAutocompleteType() {
3923
- return this.getAttribute('autocomplete') || 'username';
3930
+ if (!this.getAttribute('autocomplete')) {
3931
+ this.setAttribute('autocomplete', defaultAutocomplete);
3932
+ }
3924
3933
  }
3925
3934
  };
3926
3935
 
@@ -3952,7 +3961,7 @@ const EmailFieldClass = compose(
3952
3961
 
3953
3962
  vaadin-email-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {
3954
3963
  opacity: 0;
3955
- }
3964
+ }
3956
3965
  vaadin-email-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {
3957
3966
  opacity: 0;
3958
3967
  }
@@ -5782,10 +5791,15 @@ const PasscodeClass = compose(
5782
5791
  -webkit-mask-image: none;
5783
5792
  }
5784
5793
 
5794
+ /* safari */
5795
+ vaadin-text-field::part(input-field)::after {
5796
+ opacity: 0;
5797
+ }
5798
+
5785
5799
  vaadin-text-field {
5786
5800
  margin: 0;
5787
5801
  padding: 0;
5788
- width: 100%
5802
+ width: 100%;
5789
5803
  }
5790
5804
 
5791
5805
  vaadin-text-field::before {