@descope/web-components-ui 3.9.0 → 3.9.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 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +31 -0
- 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-anchored.js +1 -1
- package/dist/umd/descope-anchored.js.map +1 -1
- package/dist/umd/descope-attachment.js +1 -1
- package/dist/umd/descope-attachment.js.map +1 -1
- package/dist/umd/descope-tooltip.js +1 -1
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +35 -35
package/dist/index.esm.js
CHANGED
|
@@ -25430,6 +25430,15 @@ class RawTooltip extends createBaseClass$1({
|
|
|
25430
25430
|
|
|
25431
25431
|
this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
|
|
25432
25432
|
this.tooltip = this.shadowRoot.querySelector('vaadin-tooltip');
|
|
25433
|
+
|
|
25434
|
+
this.anchored = this.shadowRoot.querySelector('descope-anchored');
|
|
25435
|
+
}
|
|
25436
|
+
|
|
25437
|
+
// To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
|
|
25438
|
+
// Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
|
|
25439
|
+
#syncComponentState() {
|
|
25440
|
+
const hasHidden = this.anchored?.classList?.contains('hidden');
|
|
25441
|
+
this.classList.toggle('hidden', hasHidden);
|
|
25433
25442
|
}
|
|
25434
25443
|
|
|
25435
25444
|
static get observedAttributes() {
|
|
@@ -25524,6 +25533,8 @@ class RawTooltip extends createBaseClass$1({
|
|
|
25524
25533
|
);
|
|
25525
25534
|
this.#setTooltipTarget();
|
|
25526
25535
|
|
|
25536
|
+
this.#syncComponentState();
|
|
25537
|
+
|
|
25527
25538
|
setTimeout(() => this.#onOverlayReady());
|
|
25528
25539
|
}
|
|
25529
25540
|
|
|
@@ -26832,6 +26843,8 @@ class RawAttachment extends createBaseClass$1({
|
|
|
26832
26843
|
this.attachmentSlot = this.shadowRoot.querySelector(
|
|
26833
26844
|
'slot[name="attachment"]',
|
|
26834
26845
|
);
|
|
26846
|
+
|
|
26847
|
+
this.anchored = this.shadowRoot.querySelector('descope-anchored');
|
|
26835
26848
|
}
|
|
26836
26849
|
|
|
26837
26850
|
get #attachment() {
|
|
@@ -26852,6 +26865,8 @@ class RawAttachment extends createBaseClass$1({
|
|
|
26852
26865
|
init() {
|
|
26853
26866
|
super.init?.();
|
|
26854
26867
|
|
|
26868
|
+
this.#syncComponentState();
|
|
26869
|
+
|
|
26855
26870
|
injectStyle(
|
|
26856
26871
|
`
|
|
26857
26872
|
:host {
|
|
@@ -26895,6 +26910,13 @@ class RawAttachment extends createBaseClass$1({
|
|
|
26895
26910
|
window.requestAnimationFrame(() => this.#setVisibility());
|
|
26896
26911
|
}
|
|
26897
26912
|
|
|
26913
|
+
// To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
|
|
26914
|
+
// Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
|
|
26915
|
+
#syncComponentState() {
|
|
26916
|
+
const hasHidden = this.anchored?.classList?.contains('hidden');
|
|
26917
|
+
this.classList.toggle('hidden', hasHidden);
|
|
26918
|
+
}
|
|
26919
|
+
|
|
26898
26920
|
#syncAvailableSizeAttr() {
|
|
26899
26921
|
const anchor = this.defaultSlot?.assignedElements()?.[0];
|
|
26900
26922
|
|
|
@@ -29263,6 +29285,8 @@ class RawAnchored extends createBaseClass$1({
|
|
|
29263
29285
|
`;
|
|
29264
29286
|
|
|
29265
29287
|
this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
|
|
29288
|
+
|
|
29289
|
+
this.#syncComponentState();
|
|
29266
29290
|
}
|
|
29267
29291
|
|
|
29268
29292
|
init() {
|
|
@@ -29317,6 +29341,13 @@ class RawAnchored extends createBaseClass$1({
|
|
|
29317
29341
|
this.#syncAnchor();
|
|
29318
29342
|
}
|
|
29319
29343
|
|
|
29344
|
+
// To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
|
|
29345
|
+
// Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
|
|
29346
|
+
#syncComponentState() {
|
|
29347
|
+
const hasHidden = this.#anchor.classList.contains('hidden');
|
|
29348
|
+
this.classList.toggle('hidden', hasHidden);
|
|
29349
|
+
}
|
|
29350
|
+
|
|
29320
29351
|
#syncAnchor() {
|
|
29321
29352
|
this.#onAnchorChanged();
|
|
29322
29353
|
|