@descope/web-components-ui 1.4.0 → 1.5.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 +11 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-alert/AlertClass.js +12 -0
package/dist/index.esm.js
CHANGED
@@ -17623,6 +17623,9 @@ class RawAlert extends createBaseClass$1({ componentName: componentName$2, baseS
|
|
17623
17623
|
display: flex;
|
17624
17624
|
width: 100%;
|
17625
17625
|
}
|
17626
|
+
:host([empty="true"]) {
|
17627
|
+
display: none;
|
17628
|
+
}
|
17626
17629
|
.icon {
|
17627
17630
|
flex-shrink: 0;
|
17628
17631
|
}
|
@@ -17652,11 +17655,19 @@ class RawAlert extends createBaseClass$1({ componentName: componentName$2, baseS
|
|
17652
17655
|
|
17653
17656
|
this.slotEle.addEventListener('slotchange', this.handleSlotChange.bind(this));
|
17654
17657
|
|
17658
|
+
syncAttrs(this.textComp, this, { includeAttrs: ['empty'] });
|
17659
|
+
|
17660
|
+
observeChildren(this, this.handleChildrenChange.bind(this));
|
17661
|
+
|
17655
17662
|
forwardAttrs$1(this, this.textComp, {
|
17656
17663
|
includeAttrs: ['variant', 'full-width', 'link-target-blank'],
|
17657
17664
|
});
|
17658
17665
|
}
|
17659
17666
|
|
17667
|
+
handleChildrenChange() {
|
17668
|
+
this.textComp.textContent = this.textContent;
|
17669
|
+
}
|
17670
|
+
|
17660
17671
|
handleSlotChange() {
|
17661
17672
|
const assignedNodes = this.slotEle.assignedNodes({ flatten: true });
|
17662
17673
|
if (!assignedNodes.length) return;
|