@descope/web-components-ui 1.36.0 → 1.38.0

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.
@@ -4717,12 +4717,12 @@ const inputFloatingLabelStyle = () => {
4717
4717
 
4718
4718
  const componentName$14 = getComponentName$1('text-field');
4719
4719
 
4720
- const observedAttrs$3 = ['type', 'label-type', 'copy-to-clipboard'];
4720
+ const observedAttrs$4 = ['type', 'label-type', 'copy-to-clipboard'];
4721
4721
 
4722
4722
  const customMixin$e = (superclass) =>
4723
4723
  class TextFieldClass extends superclass {
4724
4724
  static get observedAttributes() {
4725
- return observedAttrs$3.concat(superclass.observedAttributes || []);
4725
+ return observedAttrs$4.concat(superclass.observedAttributes || []);
4726
4726
  }
4727
4727
 
4728
4728
  icon;
@@ -12006,14 +12006,19 @@ var buttonMultiSelectionGroup$1 = /*#__PURE__*/Object.freeze({
12006
12006
 
12007
12007
  const componentName$v = getComponentName$1('modal');
12008
12008
 
12009
+ const observedAttrs$3 = ['opened'];
12010
+
12009
12011
  const customMixin$7 = (superclass) =>
12010
12012
  class ModalMixinClass extends superclass {
12013
+ static get observedAttributes() {
12014
+ return [].concat(superclass.observedAttributes || [], observedAttrs$3);
12015
+ }
12016
+
12011
12017
  get opened() {
12012
12018
  return this.getAttribute('opened') === 'true';
12013
12019
  }
12014
12020
 
12015
12021
  handleOpened() {
12016
- forwardAttrs$1(this, this.baseElement, { includeAttrs: ['opened'] });
12017
12022
  if (this.opened) {
12018
12023
  this.style.display = '';
12019
12024
  } else {
@@ -12021,6 +12026,14 @@ const customMixin$7 = (superclass) =>
12021
12026
  }
12022
12027
  }
12023
12028
 
12029
+ attributeChangedCallback(name, oldValue, newValue) {
12030
+ super.attributeChangedCallback?.(name, oldValue, newValue);
12031
+
12032
+ if (name === 'opened') {
12033
+ this.handleOpened();
12034
+ }
12035
+ }
12036
+
12024
12037
  init() {
12025
12038
  super.init?.();
12026
12039
  this.style.display = 'none';
@@ -12037,6 +12050,7 @@ const customMixin$7 = (superclass) =>
12037
12050
  .appendChild(document.createElement('slot'));
12038
12051
 
12039
12052
  this.#overrideOverlaySettings();
12053
+ forwardAttrs$1(this, this.baseElement, { includeAttrs: ['opened'] });
12040
12054
 
12041
12055
  // we need to always open the modal in `opened=false`
12042
12056
  // to prevent it from rendering outside the dialog
@@ -19337,11 +19351,12 @@ const AutocompleteFieldClass = compose(
19337
19351
  }
19338
19352
 
19339
19353
  descope-autocomplete-field-internal {
19340
- display: inline-block;
19341
- box-sizing: border-box;
19342
- user-select: none;
19343
- max-width: 100%;
19344
- }
19354
+ display: inline-block;
19355
+ box-sizing: border-box;
19356
+ user-select: none;
19357
+ width: 100%;
19358
+ max-width: 100%;
19359
+ }
19345
19360
 
19346
19361
  descope-autocomplete-field-internal ::slotted {
19347
19362
  padding: 0;
@@ -19839,6 +19854,7 @@ const AddressFieldClass = compose(
19839
19854
  display: inline-block;
19840
19855
  box-sizing: border-box;
19841
19856
  user-select: none;
19857
+ width: 100%;
19842
19858
  max-width: 100%;
19843
19859
  }
19844
19860