@descope/web-components-ui 1.0.401 → 1.0.402-1
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 +14 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-policy-validation-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-grid/helpers.js +1 -1
- package/src/components/descope-multi-select-combo-box/MultiSelectComboBoxClass.js +8 -0
- package/src/components/descope-policy-validation/PolicyValidationClass.js +2 -2
- package/src/components/descope-upload-file/UploadFileClass.js +3 -3
package/dist/index.esm.js
CHANGED
@@ -9082,9 +9082,9 @@ class RawPolicyValidation extends createBaseClass({ componentName: componentName
|
|
9082
9082
|
updateLabel(val) {
|
9083
9083
|
if (!val) {
|
9084
9084
|
this.classList.add('hide-label');
|
9085
|
-
this.label.
|
9085
|
+
this.label.textContent = '';
|
9086
9086
|
} else {
|
9087
|
-
this.label.
|
9087
|
+
this.label.textContent = val;
|
9088
9088
|
this.classList.remove('hide-label');
|
9089
9089
|
}
|
9090
9090
|
}
|
@@ -9933,15 +9933,15 @@ class RawUploadFile extends BaseInputClass$3 {
|
|
9933
9933
|
}
|
9934
9934
|
|
9935
9935
|
updateTitle(val) {
|
9936
|
-
this.title.
|
9936
|
+
this.title.textContent = val;
|
9937
9937
|
}
|
9938
9938
|
|
9939
9939
|
updateDescription(val) {
|
9940
|
-
this.description.
|
9940
|
+
this.description.textContent = val;
|
9941
9941
|
}
|
9942
9942
|
|
9943
9943
|
updateButtonLabel(val) {
|
9944
|
-
this.button.
|
9944
|
+
this.button.textContent = val;
|
9945
9945
|
}
|
9946
9946
|
|
9947
9947
|
updateButtonSize(val) {
|
@@ -11118,7 +11118,7 @@ const renderCodeSnippet = (value, lang) =>
|
|
11118
11118
|
|
11119
11119
|
const renderText = (text) =>
|
11120
11120
|
`<div class="row-details__value text" title="${text}">${text}</div>`;
|
11121
|
-
const renderJson = (value) => renderCodeSnippet(JSON.stringify(value, null, 2), 'json');
|
11121
|
+
const renderJson = (value) => renderCodeSnippet(escapeXML(JSON.stringify(value, null, 2)), 'json');
|
11122
11122
|
const renderXml = (value) => renderCodeSnippet(escapeXML(value), 'xml');
|
11123
11123
|
|
11124
11124
|
const defaultRowDetailsValueRenderer = (value) => {
|
@@ -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,
|