@descope/web-components-ui 1.0.401 → 1.0.402
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/cjs/index.cjs.js +8 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-multi-select-combo-box/MultiSelectComboBoxClass.js +8 -0
package/dist/index.esm.js
CHANGED
@@ -11758,6 +11758,14 @@ const multiSelectComboBoxMixin = (superclass) =>
|
|
11758
11758
|
setGetValidity() {
|
11759
11759
|
// eslint-disable-next-line func-names
|
11760
11760
|
this.getValidity = function () {
|
11761
|
+
if (this.pattern) {
|
11762
|
+
const patternRegex = new RegExp(this.pattern);
|
11763
|
+
if (this.value.some((val) => !patternRegex.test(val)))
|
11764
|
+
return {
|
11765
|
+
patternMismatch: true,
|
11766
|
+
};
|
11767
|
+
}
|
11768
|
+
|
11761
11769
|
if (this.isRequired && !this.value.length) {
|
11762
11770
|
return {
|
11763
11771
|
valueMissing: true,
|