@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.
@@ -8981,9 +8981,9 @@ class RawPolicyValidation extends createBaseClass({ componentName: componentName
8981
8981
  updateLabel(val) {
8982
8982
  if (!val) {
8983
8983
  this.classList.add('hide-label');
8984
- this.label.innerHTML = '';
8984
+ this.label.textContent = '';
8985
8985
  } else {
8986
- this.label.innerHTML = val;
8986
+ this.label.textContent = val;
8987
8987
  this.classList.remove('hide-label');
8988
8988
  }
8989
8989
  }
@@ -9423,15 +9423,15 @@ class RawUploadFile extends BaseInputClass$2 {
9423
9423
  }
9424
9424
 
9425
9425
  updateTitle(val) {
9426
- this.title.innerHTML = val;
9426
+ this.title.textContent = val;
9427
9427
  }
9428
9428
 
9429
9429
  updateDescription(val) {
9430
- this.description.innerHTML = val;
9430
+ this.description.textContent = val;
9431
9431
  }
9432
9432
 
9433
9433
  updateButtonLabel(val) {
9434
- this.button.innerHTML = val;
9434
+ this.button.textContent = val;
9435
9435
  }
9436
9436
 
9437
9437
  updateButtonSize(val) {
@@ -10444,7 +10444,7 @@ const renderCodeSnippet = (value, lang) =>
10444
10444
 
10445
10445
  const renderText = (text) =>
10446
10446
  `<div class="row-details__value text" title="${text}">${text}</div>`;
10447
- const renderJson = (value) => renderCodeSnippet(JSON.stringify(value, null, 2), 'json');
10447
+ const renderJson = (value) => renderCodeSnippet(escapeXML(JSON.stringify(value, null, 2)), 'json');
10448
10448
  const renderXml = (value) => renderCodeSnippet(escapeXML(value), 'xml');
10449
10449
 
10450
10450
  const defaultRowDetailsValueRenderer = (value) => {
@@ -16060,11 +16060,31 @@ class RawScopesList extends createBaseClass({ componentName: componentName$3, ba
16060
16060
  return this.getAttribute('size') || 'sm';
16061
16061
  }
16062
16062
 
16063
+ #getChildNodes() {
16064
+ return Array.from(this.shadowRoot.querySelector('div').children);
16065
+ }
16066
+
16067
+ // eslint-disable-next-line class-methods-use-this
16068
+ reportValidity() {
16069
+ this.checkValidity();
16070
+ }
16071
+
16072
+ // eslint-disable-next-line class-methods-use-this
16073
+ checkValidity() {
16074
+ return this.data.every((item) => !item.required || this.value.includes(item.id));
16075
+ }
16076
+
16063
16077
  get value() {
16064
- return Array.from(this.shadowRoot.querySelector('div').children).reduce(
16065
- (acc, el) => ({ ...acc, [el.getAttribute('data-id')]: el.checked }),
16066
- {}
16067
- );
16078
+ return this.#getChildNodes()
16079
+ .filter((node) => node.checked)
16080
+ .map((node) => node.getAttribute('data-id'));
16081
+ }
16082
+
16083
+ set value(val = []) {
16084
+ this.#getChildNodes().forEach((node) => {
16085
+ // eslint-disable-next-line no-param-reassign
16086
+ node.checked = val.includes(node.getAttribute('data-id'));
16087
+ });
16068
16088
  }
16069
16089
 
16070
16090
  get variant() {
@@ -16156,6 +16176,7 @@ class RawThirdPartyAppLogoClass extends createBaseClass({
16156
16176
  display: flex;
16157
16177
  justify-content: center;
16158
16178
  align-items: center;
16179
+ min-width: max-content;
16159
16180
  }
16160
16181
 
16161
16182
  .third-party-app-logo {