@descope/web-components-ui 1.0.400 → 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 +17 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +17 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/descope-button-index-js.js +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.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/descope-user-attribute-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-button/ButtonClass.js +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/src/components/descope-user-auth-method/UserAuthMethodClass.js +2 -0
- package/src/theme/components/userAuthMethod.js +1 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -3145,7 +3145,7 @@ const ButtonClass = compose(
|
|
3145
3145
|
|
3146
3146
|
labelTextColor: { property: 'color' },
|
3147
3147
|
iconColor: {
|
3148
|
-
selector: () => `::slotted(
|
3148
|
+
selector: () => `::slotted(*)`,
|
3149
3149
|
property: IconClass.cssVarList.fill,
|
3150
3150
|
},
|
3151
3151
|
labelTextDecoration: { ...label$a, property: 'text-decoration' },
|
@@ -9010,9 +9010,9 @@ class RawPolicyValidation extends createBaseClass({ componentName: componentName
|
|
9010
9010
|
updateLabel(val) {
|
9011
9011
|
if (!val) {
|
9012
9012
|
this.classList.add('hide-label');
|
9013
|
-
this.label.
|
9013
|
+
this.label.textContent = '';
|
9014
9014
|
} else {
|
9015
|
-
this.label.
|
9015
|
+
this.label.textContent = val;
|
9016
9016
|
this.classList.remove('hide-label');
|
9017
9017
|
}
|
9018
9018
|
}
|
@@ -9453,15 +9453,15 @@ class RawUploadFile extends BaseInputClass$2 {
|
|
9453
9453
|
}
|
9454
9454
|
|
9455
9455
|
updateTitle(val) {
|
9456
|
-
this.title.
|
9456
|
+
this.title.textContent = val;
|
9457
9457
|
}
|
9458
9458
|
|
9459
9459
|
updateDescription(val) {
|
9460
|
-
this.description.
|
9460
|
+
this.description.textContent = val;
|
9461
9461
|
}
|
9462
9462
|
|
9463
9463
|
updateButtonLabel(val) {
|
9464
|
-
this.button.
|
9464
|
+
this.button.textContent = val;
|
9465
9465
|
}
|
9466
9466
|
|
9467
9467
|
updateButtonSize(val) {
|
@@ -10474,7 +10474,7 @@ const renderCodeSnippet = (value, lang) =>
|
|
10474
10474
|
|
10475
10475
|
const renderText = (text) =>
|
10476
10476
|
`<div class="row-details__value text" title="${text}">${text}</div>`;
|
10477
|
-
const renderJson = (value) => renderCodeSnippet(JSON.stringify(value, null, 2), 'json');
|
10477
|
+
const renderJson = (value) => renderCodeSnippet(escapeXML(JSON.stringify(value, null, 2)), 'json');
|
10478
10478
|
const renderXml = (value) => renderCodeSnippet(escapeXML(value), 'xml');
|
10479
10479
|
|
10480
10480
|
const defaultRowDetailsValueRenderer = (value) => {
|
@@ -11330,6 +11330,14 @@ const multiSelectComboBoxMixin = (superclass) =>
|
|
11330
11330
|
setGetValidity() {
|
11331
11331
|
// eslint-disable-next-line func-names
|
11332
11332
|
this.getValidity = function () {
|
11333
|
+
if (this.pattern) {
|
11334
|
+
const patternRegex = new RegExp(this.pattern);
|
11335
|
+
if (this.value.some((val) => !patternRegex.test(val)))
|
11336
|
+
return {
|
11337
|
+
patternMismatch: true,
|
11338
|
+
};
|
11339
|
+
}
|
11340
|
+
|
11333
11341
|
if (this.isRequired && !this.value.length) {
|
11334
11342
|
return {
|
11335
11343
|
valueMissing: true,
|
@@ -12739,6 +12747,7 @@ const UserAuthMethodClass = compose(
|
|
12739
12747
|
{ ...methodIconSlot, property: 'width' },
|
12740
12748
|
{ ...methodIconSlot, property: 'height' },
|
12741
12749
|
],
|
12750
|
+
iconColor: [{ selector: () => '::slotted(*)', property: IconClass.cssVarList.fill }],
|
12742
12751
|
},
|
12743
12752
|
}),
|
12744
12753
|
draggableMixin,
|
@@ -12754,6 +12763,7 @@ const userAuthMethod = {
|
|
12754
12763
|
[vars$g.itemsGap]: '16px',
|
12755
12764
|
[vars$g.hostMinWidth]: '530px',
|
12756
12765
|
[vars$g.iconSize]: '24px',
|
12766
|
+
[vars$g.iconColor]: 'currentcolor',
|
12757
12767
|
_fullWidth: {
|
12758
12768
|
[vars$g.hostWidth]: '100%',
|
12759
12769
|
},
|