@descope/web-components-ui 1.0.391 → 1.0.393-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 +31 -10
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +31 -10
- 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-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-scopes-list-index-js.js +1 -1
- package/dist/umd/descope-third-party-app-logo-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-grid/helpers.js +1 -1
- package/src/components/descope-policy-validation/PolicyValidationClass.js +2 -2
- package/src/components/descope-scopes-list/ScopesListClass.js +24 -4
- package/src/components/descope-third-party-app-logo/ThirdPartyAppLogoClass.js +1 -0
- package/src/components/descope-upload-file/UploadFileClass.js +3 -3
package/dist/index.esm.js
CHANGED
@@ -9068,9 +9068,9 @@ class RawPolicyValidation extends createBaseClass({ componentName: componentName
|
|
9068
9068
|
updateLabel(val) {
|
9069
9069
|
if (!val) {
|
9070
9070
|
this.classList.add('hide-label');
|
9071
|
-
this.label.
|
9071
|
+
this.label.textContent = '';
|
9072
9072
|
} else {
|
9073
|
-
this.label.
|
9073
|
+
this.label.textContent = val;
|
9074
9074
|
this.classList.remove('hide-label');
|
9075
9075
|
}
|
9076
9076
|
}
|
@@ -9918,15 +9918,15 @@ class RawUploadFile extends BaseInputClass$3 {
|
|
9918
9918
|
}
|
9919
9919
|
|
9920
9920
|
updateTitle(val) {
|
9921
|
-
this.title.
|
9921
|
+
this.title.textContent = val;
|
9922
9922
|
}
|
9923
9923
|
|
9924
9924
|
updateDescription(val) {
|
9925
|
-
this.description.
|
9925
|
+
this.description.textContent = val;
|
9926
9926
|
}
|
9927
9927
|
|
9928
9928
|
updateButtonLabel(val) {
|
9929
|
-
this.button.
|
9929
|
+
this.button.textContent = val;
|
9930
9930
|
}
|
9931
9931
|
|
9932
9932
|
updateButtonSize(val) {
|
@@ -11103,7 +11103,7 @@ const renderCodeSnippet = (value, lang) =>
|
|
11103
11103
|
|
11104
11104
|
const renderText = (text) =>
|
11105
11105
|
`<div class="row-details__value text" title="${text}">${text}</div>`;
|
11106
|
-
const renderJson = (value) => renderCodeSnippet(JSON.stringify(value, null, 2), 'json');
|
11106
|
+
const renderJson = (value) => renderCodeSnippet(escapeXML(JSON.stringify(value, null, 2)), 'json');
|
11107
11107
|
const renderXml = (value) => renderCodeSnippet(escapeXML(value), 'xml');
|
11108
11108
|
|
11109
11109
|
const defaultRowDetailsValueRenderer = (value) => {
|
@@ -14574,11 +14574,31 @@ class RawScopesList extends createBaseClass({ componentName: componentName$2, ba
|
|
14574
14574
|
return this.getAttribute('size') || 'sm';
|
14575
14575
|
}
|
14576
14576
|
|
14577
|
+
#getChildNodes() {
|
14578
|
+
return Array.from(this.shadowRoot.querySelector('div').children);
|
14579
|
+
}
|
14580
|
+
|
14581
|
+
// eslint-disable-next-line class-methods-use-this
|
14582
|
+
reportValidity() {
|
14583
|
+
this.checkValidity();
|
14584
|
+
}
|
14585
|
+
|
14586
|
+
// eslint-disable-next-line class-methods-use-this
|
14587
|
+
checkValidity() {
|
14588
|
+
return this.data.every((item) => !item.required || this.value.includes(item.id));
|
14589
|
+
}
|
14590
|
+
|
14577
14591
|
get value() {
|
14578
|
-
return
|
14579
|
-
(
|
14580
|
-
|
14581
|
-
|
14592
|
+
return this.#getChildNodes()
|
14593
|
+
.filter((node) => node.checked)
|
14594
|
+
.map((node) => node.getAttribute('data-id'));
|
14595
|
+
}
|
14596
|
+
|
14597
|
+
set value(val = []) {
|
14598
|
+
this.#getChildNodes().forEach((node) => {
|
14599
|
+
// eslint-disable-next-line no-param-reassign
|
14600
|
+
node.checked = val.includes(node.getAttribute('data-id'));
|
14601
|
+
});
|
14582
14602
|
}
|
14583
14603
|
|
14584
14604
|
get variant() {
|
@@ -14655,6 +14675,7 @@ class RawThirdPartyAppLogoClass extends createBaseClass({
|
|
14655
14675
|
display: flex;
|
14656
14676
|
justify-content: center;
|
14657
14677
|
align-items: center;
|
14678
|
+
min-width: max-content;
|
14658
14679
|
}
|
14659
14680
|
|
14660
14681
|
.third-party-app-logo {
|