@descope/web-components-ui 1.36.0 → 1.37.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.
- package/dist/cjs/index.cjs.js +17 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +21 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-modal-index-js.js +1 -1
- package/dist/umd/descope-modal-index-js.js.map +1 -1
- package/package.json +1 -1
- package/src/components/descope-modal/ModalClass.js +15 -1
package/dist/cjs/index.cjs.js
CHANGED
@@ -4717,12 +4717,12 @@ const inputFloatingLabelStyle = () => {
|
|
4717
4717
|
|
4718
4718
|
const componentName$14 = getComponentName$1('text-field');
|
4719
4719
|
|
4720
|
-
const observedAttrs$
|
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$
|
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
|