@spectrum-web-components/overlay 0.18.0-devmode.0 → 0.18.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/README.md +3 -0
- package/active-overlay.js +1 -2
- package/active-overlay.js.map +1 -1
- package/overlay-trigger.js +1 -2
- package/overlay-trigger.js.map +1 -1
- package/package.json +7 -7
- package/src/ActiveOverlay.js +8 -437
- package/src/ActiveOverlay.js.map +1 -1
- package/src/OverlayTrigger.js +2 -265
- package/src/OverlayTrigger.js.map +1 -1
- package/src/VirtualTrigger.js +1 -29
- package/src/VirtualTrigger.js.map +1 -1
- package/src/active-overlay.css.js +2 -4
- package/src/active-overlay.css.js.map +1 -1
- package/src/index.js +1 -6
- package/src/index.js.map +1 -1
- package/src/loader.js +1 -4
- package/src/loader.js.map +1 -1
- package/src/overlay-events.js +1 -6
- package/src/overlay-events.js.map +1 -1
- package/src/overlay-stack.js +2 -405
- package/src/overlay-stack.js.map +1 -1
- package/src/overlay-timer.js +1 -70
- package/src/overlay-timer.js.map +1 -1
- package/src/overlay-trigger.css.js +2 -4
- package/src/overlay-trigger.css.js.map +1 -1
- package/src/overlay-utils.js +1 -27
- package/src/overlay-utils.js.map +1 -1
- package/src/overlay.js +1 -84
- package/src/overlay.js.map +1 -1
- package/stories/overlay-story-components.js +11 -207
- package/stories/overlay-story-components.js.map +1 -1
- package/stories/overlay.stories.js +55 -338
- package/stories/overlay.stories.js.map +1 -1
- package/sync/overlay-trigger.js +1 -6
- package/sync/overlay-trigger.js.map +1 -1
- package/test/benchmark/basic-test.js +1 -6
- package/test/benchmark/basic-test.js.map +1 -1
- package/test/overlay-lifecycle.test.js +6 -112
- package/test/overlay-lifecycle.test.js.map +1 -1
- package/test/overlay-timer.test.js +1 -116
- package/test/overlay-timer.test.js.map +1 -1
- package/test/overlay-trigger-click.test.js +7 -51
- package/test/overlay-trigger-click.test.js.map +1 -1
- package/test/overlay-trigger-extended.test.js +4 -174
- package/test/overlay-trigger-extended.test.js.map +1 -1
- package/test/overlay-trigger-hover-click.test.js +3 -63
- package/test/overlay-trigger-hover-click.test.js.map +1 -1
- package/test/overlay-trigger-hover.test.js +7 -81
- package/test/overlay-trigger-hover.test.js.map +1 -1
- package/test/overlay-trigger-longpress.test.js +9 -177
- package/test/overlay-trigger-longpress.test.js.map +1 -1
- package/test/overlay-trigger-sync.test.js +4 -407
- package/test/overlay-trigger-sync.test.js.map +1 -1
- package/test/overlay-trigger.test.js +4 -407
- package/test/overlay-trigger.test.js.map +1 -1
- package/test/overlay.test-vrt.js +1 -3
- package/test/overlay.test-vrt.js.map +1 -1
- package/test/overlay.test.js +11 -477
- package/test/overlay.test.js.map +1 -1
package/test/overlay.test.js
CHANGED
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "@spectrum-web-components/dialog/sp-dialog.js";
|
|
3
|
-
import "@spectrum-web-components/popover/sp-popover.js";
|
|
4
|
-
import { setViewport } from "@web/test-runner-commands";
|
|
5
|
-
import {
|
|
6
|
-
Overlay
|
|
7
|
-
} from "@spectrum-web-components/overlay";
|
|
8
|
-
import { isVisible, waitForPredicate } from "../../../test/testing-helpers.js";
|
|
9
|
-
import {
|
|
10
|
-
elementUpdated,
|
|
11
|
-
expect,
|
|
12
|
-
fixture,
|
|
13
|
-
html,
|
|
14
|
-
nextFrame,
|
|
15
|
-
oneEvent,
|
|
16
|
-
waitUntil
|
|
17
|
-
} from "@open-wc/testing";
|
|
18
|
-
import { sendKeys } from "@web/test-runner-commands";
|
|
19
|
-
import {
|
|
20
|
-
definedOverlayElement,
|
|
21
|
-
virtualElement
|
|
22
|
-
} from "../stories/overlay.stories";
|
|
23
|
-
import { sendMouse } from "../../../test/plugins/browser.js";
|
|
24
|
-
describe("Overlays", () => {
|
|
25
|
-
let testDiv;
|
|
26
|
-
let openOverlays = [];
|
|
27
|
-
beforeEach(async () => {
|
|
28
|
-
testDiv = await fixture(html`
|
|
1
|
+
import"@spectrum-web-components/button/sp-button.js";import"@spectrum-web-components/dialog/sp-dialog.js";import"@spectrum-web-components/popover/sp-popover.js";import{setViewport as M}from"@web/test-runner-commands";import{Overlay as p}from"@spectrum-web-components/overlay";import{isVisible as s,waitForPredicate as b}from"../../../test/testing-helpers.js";import{elementUpdated as L,expect as t,fixture as v,html as y,nextFrame as u,oneEvent as c,waitUntil as f}from"@open-wc/testing";import{sendKeys as g}from"@web/test-runner-commands";import{definedOverlayElement as O,virtualElement as E}from"../stories/overlay.stories";import{sendMouse as d}from"../../../test/plugins/browser.js";describe("Overlays",()=>{let a,r=[];beforeEach(async()=>{a=await v(y`
|
|
29
2
|
<div id="top">
|
|
30
3
|
<style>
|
|
31
4
|
body {
|
|
@@ -74,166 +47,11 @@ describe("Overlays", () => {
|
|
|
74
47
|
</div>
|
|
75
48
|
</div>
|
|
76
49
|
</div>
|
|
77
|
-
`);
|
|
78
|
-
await elementUpdated(testDiv);
|
|
79
|
-
});
|
|
80
|
-
afterEach(() => {
|
|
81
|
-
openOverlays.map((close) => close());
|
|
82
|
-
openOverlays = [];
|
|
83
|
-
});
|
|
84
|
-
[
|
|
85
|
-
"bottom",
|
|
86
|
-
"bottom-start",
|
|
87
|
-
"bottom-end",
|
|
88
|
-
"top",
|
|
89
|
-
"top-start",
|
|
90
|
-
"top-end",
|
|
91
|
-
"left",
|
|
92
|
-
"left-start",
|
|
93
|
-
"left-end",
|
|
94
|
-
"right",
|
|
95
|
-
"right-start",
|
|
96
|
-
"right-end",
|
|
97
|
-
"none"
|
|
98
|
-
].map((direction) => {
|
|
99
|
-
const placement = direction;
|
|
100
|
-
it(`opens a popover - ${placement}`, async () => {
|
|
101
|
-
const button = testDiv.querySelector("#first-button");
|
|
102
|
-
const outerPopover = testDiv.querySelector("#outer-popover");
|
|
103
|
-
expect(outerPopover.parentElement).to.exist;
|
|
104
|
-
if (outerPopover.parentElement) {
|
|
105
|
-
expect(outerPopover.parentElement.id).to.equal("overlay-content");
|
|
106
|
-
}
|
|
107
|
-
expect(isVisible(outerPopover)).to.be.false;
|
|
108
|
-
expect(button).to.exist;
|
|
109
|
-
openOverlays.push(await Overlay.open(button, "click", outerPopover, {
|
|
110
|
-
delayed: false,
|
|
111
|
-
placement,
|
|
112
|
-
offset: 10
|
|
113
|
-
}));
|
|
114
|
-
await waitForPredicate(() => !!(outerPopover.parentElement && outerPopover.parentElement.id !== "overlay-content"));
|
|
115
|
-
expect(outerPopover.parentElement).to.exist;
|
|
116
|
-
if (outerPopover.parentElement) {
|
|
117
|
-
expect(outerPopover.parentElement.id).not.to.equal("overlay-content");
|
|
118
|
-
}
|
|
119
|
-
expect(isVisible(outerPopover)).to.be.true;
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
it(`updates a popover`, async () => {
|
|
123
|
-
const button = testDiv.querySelector("#first-button");
|
|
124
|
-
const outerPopover = testDiv.querySelector("#outer-popover");
|
|
125
|
-
expect(outerPopover.parentElement).to.exist;
|
|
126
|
-
if (outerPopover.parentElement) {
|
|
127
|
-
expect(outerPopover.parentElement.id).to.equal("overlay-content");
|
|
128
|
-
}
|
|
129
|
-
expect(isVisible(outerPopover)).to.be.false;
|
|
130
|
-
expect(button).to.exist;
|
|
131
|
-
openOverlays.push(await Overlay.open(button, "click", outerPopover, {
|
|
132
|
-
delayed: false,
|
|
133
|
-
offset: 10
|
|
134
|
-
}));
|
|
135
|
-
await waitForPredicate(() => !!(outerPopover.parentElement && outerPopover.parentElement.id !== "overlay-content"));
|
|
136
|
-
expect(isVisible(outerPopover)).to.be.true;
|
|
137
|
-
Overlay.update();
|
|
138
|
-
expect(isVisible(outerPopover)).to.be.true;
|
|
139
|
-
});
|
|
140
|
-
it(`opens a popover w/ delay`, async () => {
|
|
141
|
-
const button = testDiv.querySelector("#first-button");
|
|
142
|
-
const outerPopover = testDiv.querySelector("#outer-popover");
|
|
143
|
-
expect(outerPopover.parentElement).to.exist;
|
|
144
|
-
if (outerPopover.parentElement) {
|
|
145
|
-
expect(outerPopover.parentElement.id).to.equal("overlay-content");
|
|
146
|
-
}
|
|
147
|
-
expect(isVisible(outerPopover)).to.be.false;
|
|
148
|
-
expect(button).to.exist;
|
|
149
|
-
openOverlays.push(await Overlay.open(button, "click", outerPopover, {
|
|
150
|
-
delayed: true,
|
|
151
|
-
offset: 10
|
|
152
|
-
}));
|
|
153
|
-
await waitUntil(() => !!(outerPopover.parentElement && outerPopover.parentElement.id !== "overlay-content"), "overlay opened");
|
|
154
|
-
expect(outerPopover.parentElement).to.exist;
|
|
155
|
-
if (outerPopover.parentElement) {
|
|
156
|
-
expect(outerPopover.parentElement.id).not.to.equal("overlay-content");
|
|
157
|
-
}
|
|
158
|
-
expect(isVisible(outerPopover)).to.be.true;
|
|
159
|
-
});
|
|
160
|
-
it("opens hover overlay", async () => {
|
|
161
|
-
const button = testDiv.querySelector("#first-button");
|
|
162
|
-
const hoverOverlay = testDiv.querySelector("#hover-1");
|
|
163
|
-
const clickOverlay = testDiv.querySelector("#outer-popover");
|
|
164
|
-
expect(button).to.exist;
|
|
165
|
-
expect(hoverOverlay).to.exist;
|
|
166
|
-
expect(isVisible(hoverOverlay)).to.be.false;
|
|
167
|
-
expect(isVisible(clickOverlay)).to.be.false;
|
|
168
|
-
openOverlays.push(await Overlay.open(button, "hover", hoverOverlay, {
|
|
169
|
-
delayed: false,
|
|
170
|
-
placement: "top",
|
|
171
|
-
offset: 10
|
|
172
|
-
}));
|
|
173
|
-
await waitForPredicate(() => !!(hoverOverlay.parentElement && hoverOverlay.parentElement.id !== "overlay-content"));
|
|
174
|
-
expect(hoverOverlay.parentElement).to.exist;
|
|
175
|
-
if (hoverOverlay.parentElement) {
|
|
176
|
-
expect(hoverOverlay.parentElement.id).not.to.equal("overlay-content");
|
|
177
|
-
}
|
|
178
|
-
expect(isVisible(hoverOverlay)).to.be.true;
|
|
179
|
-
openOverlays.push(await Overlay.open(button, "click", clickOverlay, {
|
|
180
|
-
delayed: false,
|
|
181
|
-
placement: "bottom",
|
|
182
|
-
offset: 10
|
|
183
|
-
}));
|
|
184
|
-
await waitForPredicate(() => !!(clickOverlay.parentElement && clickOverlay.parentElement.id !== "overlay-content" && hoverOverlay.parentElement && hoverOverlay.parentElement.id === "overlay-content"));
|
|
185
|
-
if (hoverOverlay.parentElement) {
|
|
186
|
-
expect(hoverOverlay.parentElement.id).to.equal("overlay-content");
|
|
187
|
-
}
|
|
188
|
-
expect(isVisible(hoverOverlay)).to.be.false;
|
|
189
|
-
expect(isVisible(clickOverlay)).to.be.true;
|
|
190
|
-
});
|
|
191
|
-
it("opens custom overlay", async () => {
|
|
192
|
-
const button = testDiv.querySelector("#first-button");
|
|
193
|
-
const customOverlay = testDiv.querySelector("#hover-1");
|
|
194
|
-
const clickOverlay = testDiv.querySelector("#outer-popover");
|
|
195
|
-
expect(button).to.exist;
|
|
196
|
-
expect(customOverlay).to.exist;
|
|
197
|
-
expect(isVisible(customOverlay)).to.be.false;
|
|
198
|
-
expect(isVisible(clickOverlay)).to.be.false;
|
|
199
|
-
openOverlays.push(await Overlay.open(button, "custom", customOverlay, {
|
|
200
|
-
delayed: false,
|
|
201
|
-
placement: "top",
|
|
202
|
-
offset: 10
|
|
203
|
-
}));
|
|
204
|
-
await waitForPredicate(() => !!(customOverlay.parentElement && customOverlay.parentElement.id !== "overlay-content"));
|
|
205
|
-
expect(customOverlay.parentElement).to.exist;
|
|
206
|
-
if (customOverlay.parentElement) {
|
|
207
|
-
expect(customOverlay.parentElement.id).not.to.equal("overlay-content");
|
|
208
|
-
}
|
|
209
|
-
expect(isVisible(customOverlay)).to.be.true;
|
|
210
|
-
openOverlays.push(await Overlay.open(button, "click", clickOverlay, {
|
|
211
|
-
delayed: false,
|
|
212
|
-
placement: "bottom",
|
|
213
|
-
offset: 10
|
|
214
|
-
}));
|
|
215
|
-
await waitForPredicate(() => !!(clickOverlay.parentElement && clickOverlay.parentElement.id !== "overlay-content"));
|
|
216
|
-
expect(isVisible(customOverlay)).to.be.true;
|
|
217
|
-
expect(isVisible(clickOverlay)).to.be.true;
|
|
218
|
-
});
|
|
219
|
-
it("closes via events", async () => {
|
|
220
|
-
const el = await fixture(html`
|
|
50
|
+
`),await L(a)}),afterEach(()=>{r.map(o=>o()),r=[]}),["bottom","bottom-start","bottom-end","top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","none"].map(o=>{const e=o;it(`opens a popover - ${e}`,async()=>{const i=a.querySelector("#first-button"),n=a.querySelector("#outer-popover");t(n.parentElement).to.exist,n.parentElement&&t(n.parentElement.id).to.equal("overlay-content"),t(s(n)).to.be.false,t(i).to.exist,r.push(await p.open(i,"click",n,{delayed:!1,placement:e,offset:10})),await b(()=>!!(n.parentElement&&n.parentElement.id!=="overlay-content")),t(n.parentElement).to.exist,n.parentElement&&t(n.parentElement.id).not.to.equal("overlay-content"),t(s(n)).to.be.true})}),it("updates a popover",async()=>{const o=a.querySelector("#first-button"),e=a.querySelector("#outer-popover");t(e.parentElement).to.exist,e.parentElement&&t(e.parentElement.id).to.equal("overlay-content"),t(s(e)).to.be.false,t(o).to.exist,r.push(await p.open(o,"click",e,{delayed:!1,offset:10})),await b(()=>!!(e.parentElement&&e.parentElement.id!=="overlay-content")),t(s(e)).to.be.true,p.update(),t(s(e)).to.be.true}),it("opens a popover w/ delay",async()=>{const o=a.querySelector("#first-button"),e=a.querySelector("#outer-popover");t(e.parentElement).to.exist,e.parentElement&&t(e.parentElement.id).to.equal("overlay-content"),t(s(e)).to.be.false,t(o).to.exist,r.push(await p.open(o,"click",e,{delayed:!0,offset:10})),await f(()=>!!(e.parentElement&&e.parentElement.id!=="overlay-content"),"overlay opened"),t(e.parentElement).to.exist,e.parentElement&&t(e.parentElement.id).not.to.equal("overlay-content"),t(s(e)).to.be.true}),it("opens hover overlay",async()=>{const o=a.querySelector("#first-button"),e=a.querySelector("#hover-1"),i=a.querySelector("#outer-popover");t(o).to.exist,t(e).to.exist,t(s(e)).to.be.false,t(s(i)).to.be.false,r.push(await p.open(o,"hover",e,{delayed:!1,placement:"top",offset:10})),await b(()=>!!(e.parentElement&&e.parentElement.id!=="overlay-content")),t(e.parentElement).to.exist,e.parentElement&&t(e.parentElement.id).not.to.equal("overlay-content"),t(s(e)).to.be.true,r.push(await p.open(o,"click",i,{delayed:!1,placement:"bottom",offset:10})),await b(()=>!!(i.parentElement&&i.parentElement.id!=="overlay-content"&&e.parentElement&&e.parentElement.id==="overlay-content")),e.parentElement&&t(e.parentElement.id).to.equal("overlay-content"),t(s(e)).to.be.false,t(s(i)).to.be.true}),it("opens custom overlay",async()=>{const o=a.querySelector("#first-button"),e=a.querySelector("#hover-1"),i=a.querySelector("#outer-popover");t(o).to.exist,t(e).to.exist,t(s(e)).to.be.false,t(s(i)).to.be.false,r.push(await p.open(o,"custom",e,{delayed:!1,placement:"top",offset:10})),await b(()=>!!(e.parentElement&&e.parentElement.id!=="overlay-content")),t(e.parentElement).to.exist,e.parentElement&&t(e.parentElement.id).not.to.equal("overlay-content"),t(s(e)).to.be.true,r.push(await p.open(o,"click",i,{delayed:!1,placement:"bottom",offset:10})),await b(()=>!!(i.parentElement&&i.parentElement.id!=="overlay-content")),t(s(e)).to.be.true,t(s(i)).to.be.true}),it("closes via events",async()=>{const o=await v(y`
|
|
221
51
|
<div id="root">
|
|
222
52
|
<sp-dialog dismissable></sp-dialog>
|
|
223
53
|
</div>
|
|
224
|
-
`);
|
|
225
|
-
const dialog = el.querySelector("sp-dialog");
|
|
226
|
-
openOverlays.push(await Overlay.open(el, "click", dialog, {
|
|
227
|
-
delayed: false,
|
|
228
|
-
placement: "bottom",
|
|
229
|
-
offset: 10
|
|
230
|
-
}));
|
|
231
|
-
await waitUntil(() => !!dialog.parentElement && dialog.parentElement.tagName === "ACTIVE-OVERLAY", "content is stolen");
|
|
232
|
-
dialog.close();
|
|
233
|
-
await waitUntil(() => !!dialog.parentElement && dialog.parentElement.tagName !== "ACTIVE-OVERLAY", "content is returned");
|
|
234
|
-
});
|
|
235
|
-
it("closes an inline overlay when tabbing past the content", async () => {
|
|
236
|
-
const el = await fixture(html`
|
|
54
|
+
`),e=o.querySelector("sp-dialog");r.push(await p.open(o,"click",e,{delayed:!1,placement:"bottom",offset:10})),await f(()=>!!e.parentElement&&e.parentElement.tagName==="ACTIVE-OVERLAY","content is stolen"),e.close(),await f(()=>!!e.parentElement&&e.parentElement.tagName!=="ACTIVE-OVERLAY","content is returned")}),it("closes an inline overlay when tabbing past the content",async()=>{const o=await v(y`
|
|
237
55
|
<div>
|
|
238
56
|
<sp-button class="trigger">Trigger</sp-button>
|
|
239
57
|
<div class="content">
|
|
@@ -241,34 +59,7 @@ describe("Overlays", () => {
|
|
|
241
59
|
</div>
|
|
242
60
|
<input value="After" id="after" />
|
|
243
61
|
</div>
|
|
244
|
-
`);
|
|
245
|
-
const trigger = el.querySelector(".trigger");
|
|
246
|
-
const content = el.querySelector(".content");
|
|
247
|
-
const input = el.querySelector("input");
|
|
248
|
-
const after = el.querySelector("#after");
|
|
249
|
-
openOverlays.push(await Overlay.open(trigger, "inline", content, {}));
|
|
250
|
-
trigger.focus();
|
|
251
|
-
await sendKeys({
|
|
252
|
-
press: "Tab"
|
|
253
|
-
});
|
|
254
|
-
expect(document.activeElement).to.equal(input);
|
|
255
|
-
expect(input.closest("active-overlay") !== null);
|
|
256
|
-
await sendKeys({
|
|
257
|
-
press: "Shift+Tab"
|
|
258
|
-
});
|
|
259
|
-
expect(document.activeElement).to.equal(trigger);
|
|
260
|
-
await sendKeys({
|
|
261
|
-
press: "Tab"
|
|
262
|
-
});
|
|
263
|
-
expect(document.activeElement).to.equal(input);
|
|
264
|
-
await sendKeys({
|
|
265
|
-
press: "Tab"
|
|
266
|
-
});
|
|
267
|
-
expect(document.activeElement).to.equal(after);
|
|
268
|
-
await waitUntil(() => document.querySelector("active-overlay") === null);
|
|
269
|
-
});
|
|
270
|
-
it("closes an inline overlay when tabbing before the trigger", async () => {
|
|
271
|
-
const el = await fixture(html`
|
|
62
|
+
`),e=o.querySelector(".trigger"),i=o.querySelector(".content"),n=o.querySelector("input"),l=o.querySelector("#after");r.push(await p.open(e,"inline",i,{})),e.focus(),await g({press:"Tab"}),t(document.activeElement).to.equal(n),t(n.closest("active-overlay")!==null),await g({press:"Shift+Tab"}),t(document.activeElement).to.equal(e),await g({press:"Tab"}),t(document.activeElement).to.equal(n),await g({press:"Tab"}),t(document.activeElement).to.equal(l),await f(()=>document.querySelector("active-overlay")===null)}),it("closes an inline overlay when tabbing before the trigger",async()=>{const o=await v(y`
|
|
272
63
|
<div>
|
|
273
64
|
<input value="Before" id="before" />
|
|
274
65
|
<sp-button class="trigger">Trigger</sp-button>
|
|
@@ -279,189 +70,13 @@ describe("Overlays", () => {
|
|
|
279
70
|
</label>
|
|
280
71
|
</div>
|
|
281
72
|
</div>
|
|
282
|
-
`);
|
|
283
|
-
const trigger = el.querySelector(".trigger");
|
|
284
|
-
const content = el.querySelector(".content");
|
|
285
|
-
const input = el.querySelector(".content input");
|
|
286
|
-
const before = el.querySelector("#before");
|
|
287
|
-
openOverlays.push(await Overlay.open(trigger, "inline", content, {}));
|
|
288
|
-
trigger.focus();
|
|
289
|
-
await sendKeys({
|
|
290
|
-
press: "Tab"
|
|
291
|
-
});
|
|
292
|
-
expect(document.activeElement).to.equal(input);
|
|
293
|
-
expect(input.closest("active-overlay") !== null);
|
|
294
|
-
await sendKeys({
|
|
295
|
-
press: "Shift+Tab"
|
|
296
|
-
});
|
|
297
|
-
expect(document.activeElement).to.equal(trigger);
|
|
298
|
-
await sendKeys({
|
|
299
|
-
press: "Shift+Tab"
|
|
300
|
-
});
|
|
301
|
-
expect(document.activeElement).to.equal(before);
|
|
302
|
-
await waitUntil(() => document.querySelector("active-overlay") === null);
|
|
303
|
-
});
|
|
304
|
-
it("opens detached content", async () => {
|
|
305
|
-
const textContent = "This is a detached element that has been overlaid";
|
|
306
|
-
const el = await fixture(html`
|
|
73
|
+
`),e=o.querySelector(".trigger"),i=o.querySelector(".content"),n=o.querySelector(".content input"),l=o.querySelector("#before");r.push(await p.open(e,"inline",i,{})),e.focus(),await g({press:"Tab"}),t(document.activeElement).to.equal(n),t(n.closest("active-overlay")!==null),await g({press:"Shift+Tab"}),t(document.activeElement).to.equal(e),await g({press:"Shift+Tab"}),t(document.activeElement).to.equal(l),await f(()=>document.querySelector("active-overlay")===null)}),it("opens detached content",async()=>{const o="This is a detached element that has been overlaid",e=await v(y`
|
|
307
74
|
<button>Trigger</button>
|
|
308
|
-
`);
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
placement: "bottom"
|
|
314
|
-
});
|
|
315
|
-
await opened;
|
|
316
|
-
let activeOverlay = document.querySelector("active-overlay");
|
|
317
|
-
if (activeOverlay) {
|
|
318
|
-
expect(activeOverlay.textContent).to.equal(textContent);
|
|
319
|
-
} else {
|
|
320
|
-
expect(activeOverlay).to.not.be.null;
|
|
321
|
-
}
|
|
322
|
-
const closed = oneEvent(el, "sp-closed");
|
|
323
|
-
closeOverlay();
|
|
324
|
-
await closed;
|
|
325
|
-
activeOverlay = document.querySelector("active-overlay");
|
|
326
|
-
expect(activeOverlay).to.be.null;
|
|
327
|
-
content.remove();
|
|
328
|
-
});
|
|
329
|
-
});
|
|
330
|
-
describe('Overlay - type="modal"', () => {
|
|
331
|
-
it("closes on `contextmenu` and passes that to the underlying page", async () => {
|
|
332
|
-
await fixture(html`
|
|
333
|
-
${virtualElement({
|
|
334
|
-
...virtualElement.args,
|
|
335
|
-
offset: 6
|
|
336
|
-
})}
|
|
337
|
-
`);
|
|
338
|
-
const width = window.innerWidth;
|
|
339
|
-
const height = window.innerHeight;
|
|
340
|
-
let opened = oneEvent(document, "sp-opened");
|
|
341
|
-
sendMouse({
|
|
342
|
-
steps: [
|
|
343
|
-
{
|
|
344
|
-
type: "move",
|
|
345
|
-
position: [width / 2 + 50, height / 2]
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
type: "click",
|
|
349
|
-
options: {
|
|
350
|
-
button: "right"
|
|
351
|
-
},
|
|
352
|
-
position: [width / 2 + 50, height / 2]
|
|
353
|
-
}
|
|
354
|
-
]
|
|
355
|
-
});
|
|
356
|
-
await opened;
|
|
357
|
-
const firstOverlay = document.querySelector("active-overlay");
|
|
358
|
-
const firstHeadline = firstOverlay.querySelector('[slot="header"]');
|
|
359
|
-
expect(firstOverlay, "first overlay").to.not.be.null;
|
|
360
|
-
expect(firstOverlay.isConnected).to.be.true;
|
|
361
|
-
expect(firstHeadline.textContent).to.equal("Menu source: end");
|
|
362
|
-
let closed = oneEvent(document, "sp-closed");
|
|
363
|
-
opened = oneEvent(document, "sp-opened");
|
|
364
|
-
sendMouse({
|
|
365
|
-
steps: [
|
|
366
|
-
{
|
|
367
|
-
type: "move",
|
|
368
|
-
position: [width / 4, height / 4]
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
type: "click",
|
|
372
|
-
options: {
|
|
373
|
-
button: "right"
|
|
374
|
-
},
|
|
375
|
-
position: [width / 4, height / 4]
|
|
376
|
-
}
|
|
377
|
-
]
|
|
378
|
-
});
|
|
379
|
-
await closed;
|
|
380
|
-
await opened;
|
|
381
|
-
const secondOverlay = document.querySelector("active-overlay");
|
|
382
|
-
const secondHeadline = secondOverlay.querySelector('[slot="header"]');
|
|
383
|
-
expect(secondOverlay, "second overlay").to.not.be.null;
|
|
384
|
-
expect(secondOverlay).to.not.equal(firstOverlay);
|
|
385
|
-
expect(firstOverlay.isConnected).to.be.false;
|
|
386
|
-
expect(secondOverlay.isConnected).to.be.true;
|
|
387
|
-
expect(secondHeadline.textContent).to.equal("Menu source: start");
|
|
388
|
-
closed = oneEvent(document, "sp-closed");
|
|
389
|
-
sendMouse({
|
|
390
|
-
steps: [
|
|
391
|
-
{
|
|
392
|
-
type: "move",
|
|
393
|
-
position: [width / 8, height / 8]
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
type: "click",
|
|
397
|
-
position: [width / 8, height / 8]
|
|
398
|
-
}
|
|
399
|
-
]
|
|
400
|
-
});
|
|
401
|
-
await closed;
|
|
402
|
-
await nextFrame();
|
|
403
|
-
});
|
|
404
|
-
it("does not open content off of the viewport", async () => {
|
|
405
|
-
await fixture(html`
|
|
406
|
-
${virtualElement({
|
|
407
|
-
...virtualElement.args,
|
|
408
|
-
offset: 6
|
|
409
|
-
})}
|
|
410
|
-
`);
|
|
411
|
-
await setViewport({ width: 360, height: 640 });
|
|
412
|
-
await nextFrame();
|
|
413
|
-
const opened = oneEvent(document, "sp-opened");
|
|
414
|
-
sendMouse({
|
|
415
|
-
steps: [
|
|
416
|
-
{
|
|
417
|
-
type: "move",
|
|
418
|
-
position: [270, 10]
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
type: "click",
|
|
422
|
-
options: {
|
|
423
|
-
button: "right"
|
|
424
|
-
},
|
|
425
|
-
position: [270, 10]
|
|
426
|
-
}
|
|
427
|
-
]
|
|
428
|
-
});
|
|
429
|
-
await opened;
|
|
430
|
-
const activeOverlay = document.querySelector("active-overlay");
|
|
431
|
-
expect(activeOverlay.placement).to.equal("right-start");
|
|
432
|
-
expect(activeOverlay.getAttribute("actual-placement")).to.equal("bottom");
|
|
433
|
-
const closed = oneEvent(document, "sp-closed");
|
|
434
|
-
sendKeys({
|
|
435
|
-
press: "Escape"
|
|
436
|
-
});
|
|
437
|
-
await closed;
|
|
438
|
-
await nextFrame();
|
|
439
|
-
});
|
|
440
|
-
it("opens children in the modal stack through shadow roots", async () => {
|
|
441
|
-
const el = await fixture(definedOverlayElement());
|
|
442
|
-
const trigger = el.querySelector('[slot="trigger"]');
|
|
443
|
-
let open = oneEvent(el, "sp-opened");
|
|
444
|
-
trigger.click();
|
|
445
|
-
await open;
|
|
446
|
-
const content = document.querySelector("popover-content");
|
|
447
|
-
open = oneEvent(content, "sp-opened");
|
|
448
|
-
content.button.click();
|
|
449
|
-
await open;
|
|
450
|
-
const activeOverlays = document.querySelectorAll("active-overlay");
|
|
451
|
-
activeOverlays.forEach((overlay) => {
|
|
452
|
-
expect(overlay.slot).to.equal("open");
|
|
453
|
-
});
|
|
454
|
-
let close = oneEvent(content, "sp-closed");
|
|
455
|
-
content.trigger.removeAttribute("open");
|
|
456
|
-
await close;
|
|
457
|
-
close = oneEvent(el, "sp-closed");
|
|
458
|
-
el.removeAttribute("open");
|
|
459
|
-
await close;
|
|
460
|
-
});
|
|
461
|
-
});
|
|
462
|
-
describe("Overlay - timing", () => {
|
|
463
|
-
it("manages multiple modals in a row without preventing them from closing", async () => {
|
|
464
|
-
const test = await fixture(html`
|
|
75
|
+
`),i=document.createElement("div");i.textContent=o;const n=c(e,"sp-opened"),l=await p.open(e,"click",i,{placement:"bottom"});await n;let m=document.querySelector("active-overlay");m?t(m.textContent).to.equal(o):t(m).to.not.be.null;const w=c(e,"sp-closed");l(),await w,m=document.querySelector("active-overlay"),t(m).to.be.null,i.remove()})}),describe('Overlay - type="modal"',()=>{it("closes on `contextmenu` and passes that to the underlying page",async()=>{await v(y`
|
|
76
|
+
${E({...E.args,offset:6})}
|
|
77
|
+
`);const a=window.innerWidth,r=window.innerHeight;let o=c(document,"sp-opened");d({steps:[{type:"move",position:[a/2+50,r/2]},{type:"click",options:{button:"right"},position:[a/2+50,r/2]}]}),await o;const e=document.querySelector("active-overlay"),i=e.querySelector('[slot="header"]');t(e,"first overlay").to.not.be.null,t(e.isConnected).to.be.true,t(i.textContent).to.equal("Menu source: end");let n=c(document,"sp-closed");o=c(document,"sp-opened"),d({steps:[{type:"move",position:[a/4,r/4]},{type:"click",options:{button:"right"},position:[a/4,r/4]}]}),await n,await o;const l=document.querySelector("active-overlay"),m=l.querySelector('[slot="header"]');t(l,"second overlay").to.not.be.null,t(l).to.not.equal(e),t(e.isConnected).to.be.false,t(l.isConnected).to.be.true,t(m.textContent).to.equal("Menu source: start"),n=c(document,"sp-closed"),d({steps:[{type:"move",position:[a/8,r/8]},{type:"click",position:[a/8,r/8]}]}),await n,await u()}),it("does not open content off of the viewport",async()=>{await v(y`
|
|
78
|
+
${E({...E.args,offset:6})}
|
|
79
|
+
`),await M({width:360,height:640}),await u();const a=c(document,"sp-opened");d({steps:[{type:"move",position:[270,10]},{type:"click",options:{button:"right"},position:[270,10]}]}),await a;const r=document.querySelector("active-overlay");t(r.placement).to.equal("right-start"),t(r.getAttribute("actual-placement")).to.equal("bottom");const o=c(document,"sp-closed");g({press:"Escape"}),await o,await u()}),it("opens children in the modal stack through shadow roots",async()=>{const a=await v(O()),r=a.querySelector('[slot="trigger"]');let o=c(a,"sp-opened");r.click(),await o;const e=document.querySelector("popover-content");o=c(e,"sp-opened"),e.button.click(),await o,document.querySelectorAll("active-overlay").forEach(l=>{t(l.slot).to.equal("open")});let n=c(e,"sp-closed");e.trigger.removeAttribute("open"),await n,n=c(a,"sp-closed"),a.removeAttribute("open"),await n})}),describe("Overlay - timing",()=>{it("manages multiple modals in a row without preventing them from closing",async()=>{const a=await v(y`
|
|
465
80
|
<div>
|
|
466
81
|
<overlay-trigger>
|
|
467
82
|
<sp-button slot="trigger">Trigger 1</sp-button>
|
|
@@ -479,86 +94,5 @@ describe("Overlay - timing", () => {
|
|
|
479
94
|
</sp-popover>
|
|
480
95
|
</overlay-trigger>
|
|
481
96
|
</div>
|
|
482
|
-
`);
|
|
483
|
-
const overlayTrigger1 = test.querySelector("overlay-trigger:first-child");
|
|
484
|
-
const overlayTrigger2 = test.querySelector("overlay-trigger:last-child");
|
|
485
|
-
const trigger1 = overlayTrigger1.querySelector('[slot="trigger"]');
|
|
486
|
-
const trigger2 = overlayTrigger2.querySelector('[slot="trigger"]');
|
|
487
|
-
const boundingRectTrigger1 = trigger1.getBoundingClientRect();
|
|
488
|
-
const boundingRectTrigger2 = trigger2.getBoundingClientRect();
|
|
489
|
-
const trigger1Position = [
|
|
490
|
-
boundingRectTrigger1.left + boundingRectTrigger1.width / 2,
|
|
491
|
-
boundingRectTrigger1.top + boundingRectTrigger1.height / 2
|
|
492
|
-
];
|
|
493
|
-
const outsideTrigger1 = [
|
|
494
|
-
boundingRectTrigger1.left + boundingRectTrigger1.width * 2,
|
|
495
|
-
boundingRectTrigger1.top + boundingRectTrigger1.height * 2
|
|
496
|
-
];
|
|
497
|
-
const trigger2Position = [
|
|
498
|
-
boundingRectTrigger2.left + boundingRectTrigger2.width / 2,
|
|
499
|
-
boundingRectTrigger2.top + boundingRectTrigger2.height / 2
|
|
500
|
-
];
|
|
501
|
-
const outsideTrigger2 = [
|
|
502
|
-
boundingRectTrigger2.left + boundingRectTrigger2.width * 2,
|
|
503
|
-
boundingRectTrigger2.top + boundingRectTrigger2.height / 2
|
|
504
|
-
];
|
|
505
|
-
await sendMouse({
|
|
506
|
-
steps: [
|
|
507
|
-
{
|
|
508
|
-
type: "move",
|
|
509
|
-
position: trigger1Position
|
|
510
|
-
}
|
|
511
|
-
]
|
|
512
|
-
});
|
|
513
|
-
await nextFrame();
|
|
514
|
-
await nextFrame();
|
|
515
|
-
await sendMouse({
|
|
516
|
-
steps: [
|
|
517
|
-
{
|
|
518
|
-
type: "move",
|
|
519
|
-
position: outsideTrigger1
|
|
520
|
-
}
|
|
521
|
-
]
|
|
522
|
-
});
|
|
523
|
-
await nextFrame();
|
|
524
|
-
await nextFrame();
|
|
525
|
-
await sendMouse({
|
|
526
|
-
steps: [
|
|
527
|
-
{
|
|
528
|
-
type: "move",
|
|
529
|
-
position: trigger2Position
|
|
530
|
-
}
|
|
531
|
-
]
|
|
532
|
-
});
|
|
533
|
-
await nextFrame();
|
|
534
|
-
await nextFrame();
|
|
535
|
-
const opened = oneEvent(trigger2, "sp-opened");
|
|
536
|
-
sendMouse({
|
|
537
|
-
steps: [
|
|
538
|
-
{
|
|
539
|
-
type: "click",
|
|
540
|
-
position: trigger2Position
|
|
541
|
-
}
|
|
542
|
-
]
|
|
543
|
-
});
|
|
544
|
-
await opened;
|
|
545
|
-
expect(overlayTrigger1.hasAttribute("open")).to.be.false;
|
|
546
|
-
expect(overlayTrigger2.hasAttribute("open")).to.be.true;
|
|
547
|
-
expect(overlayTrigger2.getAttribute("open")).to.equal("click");
|
|
548
|
-
const closed = oneEvent(overlayTrigger2, "sp-closed");
|
|
549
|
-
sendMouse({
|
|
550
|
-
steps: [
|
|
551
|
-
{
|
|
552
|
-
type: "click",
|
|
553
|
-
position: outsideTrigger2
|
|
554
|
-
}
|
|
555
|
-
]
|
|
556
|
-
});
|
|
557
|
-
await closed;
|
|
558
|
-
for (let i = 0; i < 3; i++)
|
|
559
|
-
await nextFrame();
|
|
560
|
-
expect(overlayTrigger1.hasAttribute("open")).to.be.false;
|
|
561
|
-
expect(overlayTrigger2.hasAttribute("open"), overlayTrigger2.open).to.be.false;
|
|
562
|
-
});
|
|
563
|
-
});
|
|
97
|
+
`),r=a.querySelector("overlay-trigger:first-child"),o=a.querySelector("overlay-trigger:last-child"),e=r.querySelector('[slot="trigger"]'),i=o.querySelector('[slot="trigger"]'),n=e.getBoundingClientRect(),l=i.getBoundingClientRect(),m=[n.left+n.width/2,n.top+n.height/2],w=[n.left+n.width*2,n.top+n.height*2],h=[l.left+l.width/2,l.top+l.height/2],T=[l.left+l.width*2,l.top+l.height/2];await d({steps:[{type:"move",position:m}]}),await u(),await u(),await d({steps:[{type:"move",position:w}]}),await u(),await u(),await d({steps:[{type:"move",position:h}]}),await u(),await u();const S=c(i,"sp-opened");d({steps:[{type:"click",position:h}]}),await S,t(r.hasAttribute("open")).to.be.false,t(o.hasAttribute("open")).to.be.true,t(o.getAttribute("open")).to.equal("click");const H=c(o,"sp-closed");d({steps:[{type:"click",position:T}]}),await H;for(let q=0;q<3;q++)await u();t(r.hasAttribute("open")).to.be.false,t(o.hasAttribute("open"),o.open).to.be.false})});
|
|
564
98
|
//# sourceMappingURL=overlay.test.js.map
|
package/test/overlay.test.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["overlay.test.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/dialog/sp-dialog.js';\nimport { Dialog } from '@spectrum-web-components/dialog';\nimport '@spectrum-web-components/popover/sp-popover.js';\nimport { Popover } from '@spectrum-web-components/popover';\nimport { setViewport } from '@web/test-runner-commands';\nimport {\n ActiveOverlay,\n Overlay,\n OverlayTrigger,\n Placement,\n} from '@spectrum-web-components/overlay';\n\nimport { isVisible, waitForPredicate } from '../../../test/testing-helpers.js';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n nextFrame,\n oneEvent,\n waitUntil,\n} from '@open-wc/testing';\nimport { sendKeys } from '@web/test-runner-commands';\nimport {\n definedOverlayElement,\n virtualElement,\n} from '../stories/overlay.stories';\nimport { PopoverContent } from '../stories/overlay-story-components.js';\nimport { sendMouse } from '../../../test/plugins/browser.js';\n\ndescribe('Overlays', () => {\n let testDiv!: HTMLDivElement;\n let openOverlays: (() => void)[] = [];\n\n beforeEach(async () => {\n testDiv = await fixture<HTMLDivElement>(\n html`\n <div id=\"top\">\n <style>\n body {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n #top {\n margin: 100px;\n }\n\n sp-button {\n flex: none;\n }\n\n #overlay-content {\n display: none;\n }\n </style>\n <sp-button\n id=\"first-button\"\n variant=\"primary\"\n slot=\"trigger\"\n >\n Show Popover\n </sp-button>\n <div id=\"overlay-content\">\n <sp-popover\n id=\"outer-popover\"\n dialog\n slot=\"click-content\"\n direction=\"bottom\"\n tip\n open\n >\n <div class=\"options-popover-content\">\n A popover message\n </div>\n </sp-popover>\n <div id=\"hover-1\" class=\"hover-content\">\n Hover message\n </div>\n <div id=\"hover-2\" class=\"hover-content\">\n Other hover message\n </div>\n </div>\n </div>\n `\n );\n await elementUpdated(testDiv);\n });\n\n afterEach(() => {\n openOverlays.map((close) => close());\n openOverlays = [];\n });\n\n [\n 'bottom',\n 'bottom-start',\n 'bottom-end',\n 'top',\n 'top-start',\n 'top-end',\n 'left',\n 'left-start',\n 'left-end',\n 'right',\n 'right-start',\n 'right-end',\n 'none',\n ].map((direction) => {\n const placement = direction as Placement;\n it(`opens a popover - ${placement}`, async () => {\n const button = testDiv.querySelector(\n '#first-button'\n ) as HTMLElement;\n const outerPopover = testDiv.querySelector(\n '#outer-popover'\n ) as Popover;\n\n expect(outerPopover.parentElement).to.exist;\n if (outerPopover.parentElement) {\n expect(outerPopover.parentElement.id).to.equal(\n 'overlay-content'\n );\n }\n\n expect(isVisible(outerPopover)).to.be.false;\n\n expect(button).to.exist;\n\n openOverlays.push(\n await Overlay.open(button, 'click', outerPopover, {\n delayed: false,\n placement,\n offset: 10,\n })\n );\n\n // Wait for the DOM node to be stolen and reparented into the overlay\n await waitForPredicate(\n () =>\n !!(\n outerPopover.parentElement &&\n outerPopover.parentElement.id !== 'overlay-content'\n )\n );\n\n expect(outerPopover.parentElement).to.exist;\n if (outerPopover.parentElement) {\n expect(outerPopover.parentElement.id).not.to.equal(\n 'overlay-content'\n );\n }\n expect(isVisible(outerPopover)).to.be.true;\n });\n });\n\n it(`updates a popover`, async () => {\n const button = testDiv.querySelector('#first-button') as HTMLElement;\n const outerPopover = testDiv.querySelector('#outer-popover') as Popover;\n\n expect(outerPopover.parentElement).to.exist;\n if (outerPopover.parentElement) {\n expect(outerPopover.parentElement.id).to.equal('overlay-content');\n }\n\n expect(isVisible(outerPopover)).to.be.false;\n\n expect(button).to.exist;\n\n openOverlays.push(\n await Overlay.open(button, 'click', outerPopover, {\n delayed: false,\n offset: 10,\n })\n );\n\n // Wait for the DOM node to be stolen and reparented into the overlay\n await waitForPredicate(\n () =>\n !!(\n outerPopover.parentElement &&\n outerPopover.parentElement.id !== 'overlay-content'\n )\n );\n\n expect(isVisible(outerPopover)).to.be.true;\n\n Overlay.update();\n\n expect(isVisible(outerPopover)).to.be.true;\n });\n\n it(`opens a popover w/ delay`, async () => {\n const button = testDiv.querySelector('#first-button') as HTMLElement;\n const outerPopover = testDiv.querySelector('#outer-popover') as Popover;\n\n expect(outerPopover.parentElement).to.exist;\n if (outerPopover.parentElement) {\n expect(outerPopover.parentElement.id).to.equal('overlay-content');\n }\n\n expect(isVisible(outerPopover)).to.be.false;\n\n expect(button).to.exist;\n\n openOverlays.push(\n await Overlay.open(button, 'click', outerPopover, {\n delayed: true,\n offset: 10,\n })\n );\n\n // Wait for the DOM node to be stolen and reparented into the overlay\n await waitUntil(\n () =>\n !!(\n outerPopover.parentElement &&\n outerPopover.parentElement.id !== 'overlay-content'\n ),\n 'overlay opened'\n );\n\n expect(outerPopover.parentElement).to.exist;\n if (outerPopover.parentElement) {\n expect(outerPopover.parentElement.id).not.to.equal(\n 'overlay-content'\n );\n }\n expect(isVisible(outerPopover)).to.be.true;\n });\n\n it('opens hover overlay', async () => {\n const button = testDiv.querySelector('#first-button') as HTMLElement;\n const hoverOverlay = testDiv.querySelector('#hover-1') as HTMLElement;\n const clickOverlay = testDiv.querySelector(\n '#outer-popover'\n ) as HTMLElement;\n\n expect(button).to.exist;\n expect(hoverOverlay).to.exist;\n\n expect(isVisible(hoverOverlay)).to.be.false;\n expect(isVisible(clickOverlay)).to.be.false;\n\n openOverlays.push(\n await Overlay.open(button, 'hover', hoverOverlay, {\n delayed: false,\n placement: 'top',\n offset: 10,\n })\n );\n\n // Wait for the DOM node to be stolen and reparented into the overlay\n await waitForPredicate(\n () =>\n !!(\n hoverOverlay.parentElement &&\n hoverOverlay.parentElement.id !== 'overlay-content'\n )\n );\n\n expect(hoverOverlay.parentElement).to.exist;\n if (hoverOverlay.parentElement) {\n expect(hoverOverlay.parentElement.id).not.to.equal(\n 'overlay-content'\n );\n }\n expect(isVisible(hoverOverlay)).to.be.true;\n\n // Opening click overlay should close the hover overlay\n openOverlays.push(\n await Overlay.open(button, 'click', clickOverlay, {\n delayed: false,\n placement: 'bottom',\n offset: 10,\n })\n );\n\n // Wait for the DOM node to be stolen and reparented into the overlay\n await waitForPredicate(\n () =>\n !!(\n clickOverlay.parentElement &&\n clickOverlay.parentElement.id !== 'overlay-content' &&\n hoverOverlay.parentElement &&\n hoverOverlay.parentElement.id === 'overlay-content'\n )\n );\n\n if (hoverOverlay.parentElement) {\n expect(hoverOverlay.parentElement.id).to.equal('overlay-content');\n }\n\n expect(isVisible(hoverOverlay)).to.be.false;\n expect(isVisible(clickOverlay)).to.be.true;\n });\n\n it('opens custom overlay', async () => {\n const button = testDiv.querySelector('#first-button') as HTMLElement;\n const customOverlay = testDiv.querySelector('#hover-1') as HTMLElement;\n const clickOverlay = testDiv.querySelector(\n '#outer-popover'\n ) as HTMLElement;\n\n expect(button).to.exist;\n expect(customOverlay).to.exist;\n\n expect(isVisible(customOverlay)).to.be.false;\n expect(isVisible(clickOverlay)).to.be.false;\n\n openOverlays.push(\n await Overlay.open(button, 'custom', customOverlay, {\n delayed: false,\n placement: 'top',\n offset: 10,\n })\n );\n\n // Wait for the DOM node to be stolen and reparented into the overlay\n await waitForPredicate(\n () =>\n !!(\n customOverlay.parentElement &&\n customOverlay.parentElement.id !== 'overlay-content'\n )\n );\n\n expect(customOverlay.parentElement).to.exist;\n if (customOverlay.parentElement) {\n expect(customOverlay.parentElement.id).not.to.equal(\n 'overlay-content'\n );\n }\n expect(isVisible(customOverlay)).to.be.true;\n\n // Opening click overlay should close the hover overlay\n openOverlays.push(\n await Overlay.open(button, 'click', clickOverlay, {\n delayed: false,\n placement: 'bottom',\n offset: 10,\n })\n );\n\n // Wait for the DOM node to be stolen and reparented into the overlay\n await waitForPredicate(\n () =>\n !!(\n clickOverlay.parentElement &&\n clickOverlay.parentElement.id !== 'overlay-content'\n )\n );\n\n expect(isVisible(customOverlay)).to.be.true;\n expect(isVisible(clickOverlay)).to.be.true;\n });\n\n it('closes via events', async () => {\n const el = await fixture<HTMLDivElement>(html`\n <div id=\"root\">\n <sp-dialog dismissable></sp-dialog>\n </div>\n `);\n\n const dialog = el.querySelector('sp-dialog') as Dialog;\n\n openOverlays.push(\n await Overlay.open(el, 'click', dialog, {\n delayed: false,\n placement: 'bottom',\n offset: 10,\n })\n );\n\n await waitUntil(\n () =>\n !!dialog.parentElement &&\n dialog.parentElement.tagName === 'ACTIVE-OVERLAY',\n 'content is stolen'\n );\n\n dialog.close();\n\n await waitUntil(\n () =>\n !!dialog.parentElement &&\n dialog.parentElement.tagName !== 'ACTIVE-OVERLAY',\n 'content is returned'\n );\n });\n\n it('closes an inline overlay when tabbing past the content', async () => {\n const el = await fixture<HTMLDivElement>(html`\n <div>\n <sp-button class=\"trigger\">Trigger</sp-button>\n <div class=\"content\">\n <input />\n </div>\n <input value=\"After\" id=\"after\" />\n </div>\n `);\n\n const trigger = el.querySelector('.trigger') as HTMLElement;\n const content = el.querySelector('.content') as HTMLElement;\n const input = el.querySelector('input') as HTMLInputElement;\n const after = el.querySelector('#after') as HTMLAnchorElement;\n\n openOverlays.push(await Overlay.open(trigger, 'inline', content, {}));\n\n trigger.focus();\n await sendKeys({\n press: 'Tab',\n });\n\n expect(document.activeElement).to.equal(input);\n expect(input.closest('active-overlay') !== null);\n\n await sendKeys({\n press: 'Shift+Tab',\n });\n\n expect(document.activeElement).to.equal(trigger);\n\n await sendKeys({\n press: 'Tab',\n });\n\n expect(document.activeElement).to.equal(input);\n\n await sendKeys({\n press: 'Tab',\n });\n\n expect(document.activeElement).to.equal(after);\n await waitUntil(\n () => document.querySelector('active-overlay') === null\n );\n });\n\n it('closes an inline overlay when tabbing before the trigger', async () => {\n const el = await fixture<HTMLDivElement>(html`\n <div>\n <input value=\"Before\" id=\"before\" />\n <sp-button class=\"trigger\">Trigger</sp-button>\n <div class=\"content\">\n <label>\n Content in an inline overlay.\n <input />\n </label>\n </div>\n </div>\n `);\n\n const trigger = el.querySelector('.trigger') as HTMLElement;\n const content = el.querySelector('.content') as HTMLElement;\n const input = el.querySelector('.content input') as HTMLInputElement;\n const before = el.querySelector('#before') as HTMLAnchorElement;\n\n openOverlays.push(await Overlay.open(trigger, 'inline', content, {}));\n\n trigger.focus();\n await sendKeys({\n press: 'Tab',\n });\n\n expect(document.activeElement).to.equal(input);\n expect(input.closest('active-overlay') !== null);\n\n await sendKeys({\n press: 'Shift+Tab',\n });\n\n expect(document.activeElement).to.equal(trigger);\n\n await sendKeys({\n press: 'Shift+Tab',\n });\n\n expect(document.activeElement).to.equal(before);\n await waitUntil(\n () => document.querySelector('active-overlay') === null\n );\n });\n\n it('opens detached content', async () => {\n const textContent = 'This is a detached element that has been overlaid';\n const el = await fixture<HTMLButtonElement>(\n html`\n <button>Trigger</button>\n `\n );\n\n const content = document.createElement('div');\n content.textContent = textContent;\n\n const opened = oneEvent(el, 'sp-opened');\n const closeOverlay = await Overlay.open(el, 'click', content, {\n placement: 'bottom',\n });\n await opened;\n\n let activeOverlay = document.querySelector('active-overlay');\n\n if (activeOverlay) {\n expect(activeOverlay.textContent).to.equal(textContent);\n } else {\n expect(activeOverlay).to.not.be.null;\n }\n\n const closed = oneEvent(el, 'sp-closed');\n closeOverlay();\n await closed;\n\n activeOverlay = document.querySelector('active-overlay');\n\n expect(activeOverlay).to.be.null;\n\n content.remove();\n });\n});\ndescribe('Overlay - type=\"modal\"', () => {\n it('closes on `contextmenu` and passes that to the underlying page', async () => {\n await fixture<HTMLDivElement>(html`\n ${virtualElement({\n ...virtualElement.args,\n offset: 6,\n })}\n `);\n const width = window.innerWidth;\n const height = window.innerHeight;\n let opened = oneEvent(document, 'sp-opened');\n // Right click to open \"context menu\" overlay.\n sendMouse({\n steps: [\n {\n type: 'move',\n position: [width / 2 + 50, height / 2],\n },\n {\n type: 'click',\n options: {\n button: 'right',\n },\n position: [width / 2 + 50, height / 2],\n },\n ],\n });\n await opened;\n const firstOverlay = document.querySelector(\n 'active-overlay'\n ) as ActiveOverlay;\n const firstHeadline = firstOverlay.querySelector(\n '[slot=\"header\"]'\n ) as HTMLSpanElement;\n expect(firstOverlay, 'first overlay').to.not.be.null;\n expect(firstOverlay.isConnected).to.be.true;\n expect(firstHeadline.textContent).to.equal('Menu source: end');\n let closed = oneEvent(document, 'sp-closed');\n opened = oneEvent(document, 'sp-opened');\n // Right click to out of the \"context menu\" overlay to both close\n // the first overlay and have the event passed to the surfacing page\n // in order to open a subsequent \"context menu\" overlay.\n sendMouse({\n steps: [\n {\n type: 'move',\n position: [width / 4, height / 4],\n },\n {\n type: 'click',\n options: {\n button: 'right',\n },\n position: [width / 4, height / 4],\n },\n ],\n });\n await closed;\n await opened;\n const secondOverlay = document.querySelector(\n 'active-overlay'\n ) as ActiveOverlay;\n const secondHeadline = secondOverlay.querySelector(\n '[slot=\"header\"]'\n ) as HTMLSpanElement;\n expect(secondOverlay, 'second overlay').to.not.be.null;\n expect(secondOverlay).to.not.equal(firstOverlay);\n expect(firstOverlay.isConnected).to.be.false;\n expect(secondOverlay.isConnected).to.be.true;\n expect(secondHeadline.textContent).to.equal('Menu source: start');\n closed = oneEvent(document, 'sp-closed');\n sendMouse({\n steps: [\n {\n type: 'move',\n position: [width / 8, height / 8],\n },\n {\n type: 'click',\n position: [width / 8, height / 8],\n },\n ],\n });\n await closed;\n await nextFrame();\n });\n\n it('does not open content off of the viewport', async () => {\n await fixture<HTMLDivElement>(html`\n ${virtualElement({\n ...virtualElement.args,\n offset: 6,\n })}\n `);\n\n await setViewport({ width: 360, height: 640 });\n // Allow viewport update to propagate.\n await nextFrame();\n\n const opened = oneEvent(document, 'sp-opened');\n // Right click to open \"context menu\" overlay.\n sendMouse({\n steps: [\n {\n type: 'move',\n position: [270, 10],\n },\n {\n type: 'click',\n options: {\n button: 'right',\n },\n position: [270, 10],\n },\n ],\n });\n await opened;\n\n const activeOverlay = document.querySelector(\n 'active-overlay'\n ) as ActiveOverlay;\n\n expect(activeOverlay.placement).to.equal('right-start');\n expect(activeOverlay.getAttribute('actual-placement')).to.equal(\n 'bottom'\n );\n\n const closed = oneEvent(document, 'sp-closed');\n sendKeys({\n press: 'Escape',\n });\n await closed;\n await nextFrame();\n });\n\n it('opens children in the modal stack through shadow roots', async () => {\n const el = await fixture<OverlayTrigger>(definedOverlayElement());\n const trigger = el.querySelector(\n '[slot=\"trigger\"]'\n ) as HTMLButtonElement;\n let open = oneEvent(el, 'sp-opened');\n trigger.click();\n await open;\n const content = document.querySelector(\n 'popover-content'\n ) as PopoverContent;\n open = oneEvent(content, 'sp-opened');\n content.button.click();\n await open;\n const activeOverlays = document.querySelectorAll('active-overlay');\n activeOverlays.forEach((overlay) => {\n expect(overlay.slot).to.equal('open');\n });\n let close = oneEvent(content, 'sp-closed');\n content.trigger.removeAttribute('open');\n await close;\n close = oneEvent(el, 'sp-closed');\n el.removeAttribute('open');\n await close;\n });\n});\ndescribe('Overlay - timing', () => {\n it('manages multiple modals in a row without preventing them from closing', async () => {\n const test = await fixture<HTMLDivElement>(html`\n <div>\n <overlay-trigger>\n <sp-button slot=\"trigger\">Trigger 1</sp-button>\n <sp-popover slot=\"hover-content\">\n <p>Hover contentent for \"Trigger 1\".</p>\n </sp-popover>\n </overlay-trigger>\n <overlay-trigger>\n <sp-button slot=\"trigger\">Trigger 2</sp-button>\n <sp-popover slot=\"hover-content\">\n <p>Hover contentent for \"Trigger 2\".</p>\n </sp-popover>\n <sp-popover slot=\"click-content\">\n <p>Click contentent for \"Trigger 2\".</p>\n </sp-popover>\n </overlay-trigger>\n </div>\n `);\n\n const overlayTrigger1 = test.querySelector(\n 'overlay-trigger:first-child'\n ) as OverlayTrigger;\n const overlayTrigger2 = test.querySelector(\n 'overlay-trigger:last-child'\n ) as OverlayTrigger;\n const trigger1 = overlayTrigger1.querySelector(\n '[slot=\"trigger\"]'\n ) as HTMLButtonElement;\n const trigger2 = overlayTrigger2.querySelector(\n '[slot=\"trigger\"]'\n ) as HTMLButtonElement;\n\n const boundingRectTrigger1 = trigger1.getBoundingClientRect();\n const boundingRectTrigger2 = trigger2.getBoundingClientRect();\n const trigger1Position: [number, number] = [\n boundingRectTrigger1.left + boundingRectTrigger1.width / 2,\n boundingRectTrigger1.top + boundingRectTrigger1.height / 2,\n ];\n const outsideTrigger1: [number, number] = [\n boundingRectTrigger1.left + boundingRectTrigger1.width * 2,\n boundingRectTrigger1.top + boundingRectTrigger1.height * 2,\n ];\n const trigger2Position: [number, number] = [\n boundingRectTrigger2.left + boundingRectTrigger2.width / 2,\n boundingRectTrigger2.top + boundingRectTrigger2.height / 2,\n ];\n const outsideTrigger2: [number, number] = [\n boundingRectTrigger2.left + boundingRectTrigger2.width * 2,\n boundingRectTrigger2.top + boundingRectTrigger2.height / 2,\n ];\n\n await sendMouse({\n steps: [\n {\n type: 'move',\n position: trigger1Position,\n },\n ],\n });\n await nextFrame();\n await nextFrame();\n await sendMouse({\n steps: [\n {\n type: 'move',\n position: outsideTrigger1,\n },\n ],\n });\n await nextFrame();\n await nextFrame();\n await sendMouse({\n steps: [\n {\n type: 'move',\n position: trigger2Position,\n },\n ],\n });\n await nextFrame();\n await nextFrame();\n const opened = oneEvent(trigger2, 'sp-opened');\n sendMouse({\n steps: [\n {\n type: 'click',\n position: trigger2Position,\n },\n ],\n });\n await opened;\n\n expect(overlayTrigger1.hasAttribute('open')).to.be.false;\n expect(overlayTrigger2.hasAttribute('open')).to.be.true;\n expect(overlayTrigger2.getAttribute('open')).to.equal('click');\n\n const closed = oneEvent(overlayTrigger2, 'sp-closed');\n sendMouse({\n steps: [\n {\n type: 'click',\n position: outsideTrigger2,\n },\n ],\n });\n await closed;\n\n // sometimes safari needs to wait a few frames for the open attribute to update\n for (let i = 0; i < 3; i++) await nextFrame();\n\n expect(overlayTrigger1.hasAttribute('open')).to.be.false;\n expect(overlayTrigger2.hasAttribute('open'), overlayTrigger2.open).to.be\n .false;\n });\n});\n"],
|
|
5
|
-
"mappings": "AAWA;AACA;AAEA;AAEA;AACA;AAAA;AAAA;AAOA;AACA;AAAA;AAAA;AAAA;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