@spectrum-web-components/picker 0.11.5 → 0.12.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.
Files changed (52) hide show
  1. package/custom-elements.json +62 -78
  2. package/package.json +39 -22
  3. package/sp-picker.dev.js +3 -0
  4. package/sp-picker.dev.js.map +7 -0
  5. package/sp-picker.js +3 -14
  6. package/sp-picker.js.map +7 -1
  7. package/src/Picker.dev.js +501 -0
  8. package/src/Picker.dev.js.map +7 -0
  9. package/src/Picker.js +406 -435
  10. package/src/Picker.js.map +7 -1
  11. package/src/index.dev.js +2 -0
  12. package/src/index.dev.js.map +7 -0
  13. package/src/index.js +2 -13
  14. package/src/index.js.map +7 -1
  15. package/src/picker.css.dev.js +304 -0
  16. package/src/picker.css.dev.js.map +7 -0
  17. package/src/picker.css.js +4 -15
  18. package/src/picker.css.js.map +7 -1
  19. package/src/spectrum-picker.css.dev.js +300 -0
  20. package/src/spectrum-picker.css.dev.js.map +7 -0
  21. package/src/spectrum-picker.css.js +4 -15
  22. package/src/spectrum-picker.css.js.map +7 -1
  23. package/stories/picker-sizes.stories.js +22 -30
  24. package/stories/picker-sizes.stories.js.map +7 -1
  25. package/stories/picker.stories.js +84 -95
  26. package/stories/picker.stories.js.map +7 -1
  27. package/stories/states.js +225 -236
  28. package/stories/states.js.map +7 -1
  29. package/sync/index.dev.js +8 -0
  30. package/sync/index.dev.js.map +7 -0
  31. package/sync/index.js +6 -15
  32. package/sync/index.js.map +7 -1
  33. package/sync/sp-picker.dev.js +3 -0
  34. package/sync/sp-picker.dev.js.map +7 -0
  35. package/sync/sp-picker.js +3 -14
  36. package/sync/sp-picker.js.map +7 -1
  37. package/test/benchmark/basic-test.js +256 -267
  38. package/test/benchmark/basic-test.js.map +7 -1
  39. package/test/index.js +896 -839
  40. package/test/index.js.map +7 -1
  41. package/test/picker-reparenting.test.js +71 -76
  42. package/test/picker-reparenting.test.js.map +7 -1
  43. package/test/picker-responsive.test.js +41 -53
  44. package/test/picker-responsive.test.js.map +7 -1
  45. package/test/picker-sizes.test-vrt.js +4 -15
  46. package/test/picker-sizes.test-vrt.js.map +7 -1
  47. package/test/picker-sync.test.js +5 -16
  48. package/test/picker-sync.test.js.map +7 -1
  49. package/test/picker.test-vrt.js +4 -15
  50. package/test/picker.test-vrt.js.map +7 -1
  51. package/test/picker.test.js +5 -16
  52. package/test/picker.test.js.map +7 -1
@@ -1 +1,7 @@
1
- {"version":3,"file":"picker-reparenting.test.js","sourceRoot":"","sources":["picker-reparenting.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,iBAAiB,CAAC;AACzB,OAAO,+CAA+C,CAAC;AACvD,OAAO,kDAAkD,CAAC;AAG1D,OAAO,EACH,cAAc,EACd,MAAM,EACN,OAAO,EACP,IAAI,EACJ,QAAQ,GACX,MAAM,kBAAkB,CAAC;AAE1B,OAAO,4CAA4C,CAAC;AACpD,OAAO,8CAA8C,CAAC;AAEtD,MAAM,eAAe,GAAG,KAAK,IAI1B,EAAE;IACD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;KAqB9B,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAW,CAAC;IACzD,MAAM,cAAc,CAAC,MAAM,CAAC,CAAC;IAC7B,OAAO;QACH,MAAM;QACN,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS,CAAmB;QACvD,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAmB;KACxD,CAAC;AACN,CAAC,CAAC;AAEF,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;QACzC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,eAAe,EAAE,CAAC;QAE1D,MAAM,CAAC,MAAM,CA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QACb,MAAM,cAAc,CAAC,MAAM,CAAC,CAAC;QAE7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","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*/\n\nimport '../sp-picker.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport { Picker } from '../';\nimport { MenuItem } from '@spectrum-web-components/menu';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n oneEvent,\n} from '@open-wc/testing';\n\nimport '@spectrum-web-components/theme/sp-theme.js';\nimport '@spectrum-web-components/theme/src/themes.js';\n\nconst fixtureElements = async (): Promise<{\n picker: Picker;\n before: HTMLDivElement;\n after: HTMLDivElement;\n}> => {\n const test = await fixture(html`\n <sp-theme color=\"light\" scale=\"medium\">\n <div id=\"before\">\n <sp-picker\n id=\"picker\"\n label=\"I would like to use Spectrum Web Components\"\n >\n <sp-menu-item value=\"0\">Immediately</sp-menu-item>\n <sp-menu-item value=\"1\">\n I'm already using them\n </sp-menu-item>\n <sp-menu-divider></sp-menu-divider>\n <sp-menu-item value=\"2\">Soon</sp-menu-item>\n <sp-menu-item value=\"3\">\n As part of my next project\n </sp-menu-item>\n <sp-menu-item value=\"4\">In the future</sp-menu-item>\n </sp-picker>\n </div>\n <div id=\"after\"></div>\n </sp-theme>\n `);\n const picker = test.querySelector('sp-picker') as Picker;\n await elementUpdated(picker);\n return {\n picker,\n before: test.querySelector('#before') as HTMLDivElement,\n after: test.querySelector('#after') as HTMLDivElement,\n };\n};\n\ndescribe('Reparented Picker', () => {\n it('maintains a `dir` attribute', async () => {\n const { picker, before, after } = await fixtureElements();\n\n expect(picker.dir).to.equal('ltr');\n expect(picker.getAttribute('dir')).to.equal('ltr');\n\n after.append(picker);\n await elementUpdated(picker);\n\n expect(picker.dir).to.equal('ltr');\n expect(picker.getAttribute('dir')).to.equal('ltr');\n\n before.append(picker);\n await elementUpdated(picker);\n\n expect(picker.dir).to.equal('ltr');\n expect(picker.getAttribute('dir')).to.equal('ltr');\n });\n it('maintains `value`', async () => {\n const { picker, before, after } = await fixtureElements();\n\n expect(picker.value).to.equal('');\n\n const item2 = picker.querySelector('[value=\"2\"]') as MenuItem;\n const item3 = picker.querySelector('[value=\"3\"]') as MenuItem;\n let opened = oneEvent(picker, 'sp-opened');\n picker.click();\n await opened;\n await elementUpdated(picker);\n let closed = oneEvent(picker, 'sp-closed');\n item2.click();\n await closed;\n await elementUpdated(picker);\n\n expect(picker.value).to.equal('2');\n\n after.append(picker);\n opened = oneEvent(picker, 'sp-opened');\n picker.click();\n await opened;\n await elementUpdated(picker);\n closed = oneEvent(picker, 'sp-closed');\n await elementUpdated(item3);\n item3.click();\n await closed;\n await elementUpdated(picker);\n\n expect(picker.value).to.equal('3');\n\n opened = oneEvent(picker, 'sp-opened');\n picker.click();\n await opened;\n await elementUpdated(picker);\n expect(picker.value).to.equal('3');\n closed = oneEvent(picker, 'sp-closed');\n before.append(picker);\n await closed;\n await elementUpdated(picker);\n\n expect(picker.value).to.equal('3');\n });\n});\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["picker-reparenting.test.ts"],
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*/\n\nimport '@spectrum-web-components/picker/sp-picker.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport { Picker } from '@spectrum-web-components/picker';\nimport { MenuItem } from '@spectrum-web-components/menu';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n oneEvent,\n} from '@open-wc/testing';\n\nimport '@spectrum-web-components/theme/sp-theme.js';\nimport '@spectrum-web-components/theme/src/themes.js';\n\nconst fixtureElements = async (): Promise<{\n picker: Picker;\n before: HTMLDivElement;\n after: HTMLDivElement;\n}> => {\n const test = await fixture(html`\n <sp-theme color=\"light\" scale=\"medium\">\n <div id=\"before\">\n <sp-picker\n id=\"picker\"\n label=\"I would like to use Spectrum Web Components\"\n >\n <sp-menu-item value=\"0\">Immediately</sp-menu-item>\n <sp-menu-item value=\"1\">\n I'm already using them\n </sp-menu-item>\n <sp-menu-divider></sp-menu-divider>\n <sp-menu-item value=\"2\">Soon</sp-menu-item>\n <sp-menu-item value=\"3\">\n As part of my next project\n </sp-menu-item>\n <sp-menu-item value=\"4\">In the future</sp-menu-item>\n </sp-picker>\n </div>\n <div id=\"after\"></div>\n </sp-theme>\n `);\n const picker = test.querySelector('sp-picker') as Picker;\n await elementUpdated(picker);\n return {\n picker,\n before: test.querySelector('#before') as HTMLDivElement,\n after: test.querySelector('#after') as HTMLDivElement,\n };\n};\n\ndescribe('Reparented Picker', () => {\n it('maintains a `dir` attribute', async () => {\n const { picker, before, after } = await fixtureElements();\n\n expect(picker.dir).to.equal('ltr');\n expect(picker.getAttribute('dir')).to.equal('ltr');\n\n after.append(picker);\n await elementUpdated(picker);\n\n expect(picker.dir).to.equal('ltr');\n expect(picker.getAttribute('dir')).to.equal('ltr');\n\n before.append(picker);\n await elementUpdated(picker);\n\n expect(picker.dir).to.equal('ltr');\n expect(picker.getAttribute('dir')).to.equal('ltr');\n });\n it('maintains `value`', async () => {\n const { picker, before, after } = await fixtureElements();\n\n expect(picker.value).to.equal('');\n\n const item2 = picker.querySelector('[value=\"2\"]') as MenuItem;\n const item3 = picker.querySelector('[value=\"3\"]') as MenuItem;\n let opened = oneEvent(picker, 'sp-opened');\n picker.click();\n await opened;\n await elementUpdated(picker);\n let closed = oneEvent(picker, 'sp-closed');\n item2.click();\n await closed;\n await elementUpdated(picker);\n\n expect(picker.value).to.equal('2');\n\n after.append(picker);\n opened = oneEvent(picker, 'sp-opened');\n picker.click();\n await opened;\n await elementUpdated(picker);\n closed = oneEvent(picker, 'sp-closed');\n await elementUpdated(item3);\n item3.click();\n await closed;\n await elementUpdated(picker);\n\n expect(picker.value).to.equal('3');\n\n opened = oneEvent(picker, 'sp-opened');\n picker.click();\n await opened;\n await elementUpdated(picker);\n expect(picker.value).to.equal('3');\n closed = oneEvent(picker, 'sp-closed');\n before.append(picker);\n await closed;\n await elementUpdated(picker);\n\n expect(picker.value).to.equal('3');\n });\n});\n"],
5
+ "mappings": "AAYA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;AACA;AAEA,MAAM,kBAAkB,YAIlB;AACF,QAAM,OAAO,MAAM,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAqB1B;AACD,QAAM,SAAS,KAAK,cAAc,WAAW;AAC7C,QAAM,eAAe,MAAM;AAC3B,SAAO;AAAA,IACH;AAAA,IACA,QAAQ,KAAK,cAAc,SAAS;AAAA,IACpC,OAAO,KAAK,cAAc,QAAQ;AAAA,EACtC;AACJ;AAEA,SAAS,qBAAqB,MAAM;AAChC,KAAG,+BAA+B,YAAY;AAC1C,UAAM,EAAE,QAAQ,QAAQ,UAAU,MAAM,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AAM;AAC3B,WAAO,OAAO,KAAK,EAAE,GAAG,MAAM,GAAG;AACjC,aAAS,SAAS,QAAQ,WAAW;AACrC,WAAO,OAAO,MAAM;AACpB,UAAM;AACN,UAAM,eAAe,MAAM;AAE3B,WAAO,OAAO,KAAK,EAAE,GAAG,MAAM,GAAG;AAAA,EACrC,CAAC;AACL,CAAC;",
6
+ "names": []
7
+ }
@@ -1,22 +1,18 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import '../sync/sp-picker.js';
13
- import '@spectrum-web-components/field-label/sp-field-label.js';
14
- import { elementUpdated, expect, fixture, html, nextFrame, oneEvent, } from '@open-wc/testing';
15
- import { setViewport } from '@web/test-runner-commands';
16
- describe('Picker, responsive', () => {
17
- let el;
18
- const pickerFixture = async () => {
19
- const test = await fixture(html `
1
+ import "@spectrum-web-components/picker/sync/sp-picker.js";
2
+ import "@spectrum-web-components/field-label/sp-field-label.js";
3
+ import {
4
+ elementUpdated,
5
+ expect,
6
+ fixture,
7
+ html,
8
+ nextFrame,
9
+ oneEvent
10
+ } from "@open-wc/testing";
11
+ import { setViewport } from "@web/test-runner-commands";
12
+ describe("Picker, responsive", () => {
13
+ let el;
14
+ const pickerFixture = async () => {
15
+ const test = await fixture(html`
20
16
  <div>
21
17
  <sp-field-label for="picker">
22
18
  Where do you live?
@@ -37,39 +33,31 @@ describe('Picker, responsive', () => {
37
33
  </sp-picker>
38
34
  </div>
39
35
  `);
40
- return test.querySelector('sp-picker');
41
- };
42
- describe('container', () => {
43
- beforeEach(async () => {
44
- el = await pickerFixture();
45
- await elementUpdated(el);
46
- });
47
- xit('is a Tray in mobile', async () => {
48
- /**
49
- * While we can set the view port, but not `(hover: none) and (pointer: coarse)`
50
- * which prevents us from testing this at unit time. Hopefully there will be
51
- * a future version of Playwright and/or @web/test-runner that does allow this.
52
- * See: https://github.com/microsoft/playwright/issues/11781
53
- **/
54
- await setViewport({ width: 360, height: 640 });
55
- // Allow viewport update to propagate.
56
- await nextFrame();
57
- const opened = oneEvent(el, 'sp-opened');
58
- el.open = true;
59
- await opened;
60
- const tray = document.querySelector('sp-tray');
61
- expect(tray).to.not.be.null;
62
- });
63
- it('is a Popover in desktop', async () => {
64
- await setViewport({ width: 701, height: 640 });
65
- // Allow viewport update to propagate.
66
- await nextFrame();
67
- const opened = oneEvent(el, 'sp-opened');
68
- el.open = true;
69
- await opened;
70
- const popover = document.querySelector('sp-popover');
71
- expect(popover).to.not.be.null;
72
- });
36
+ return test.querySelector("sp-picker");
37
+ };
38
+ describe("container", () => {
39
+ beforeEach(async () => {
40
+ el = await pickerFixture();
41
+ await elementUpdated(el);
73
42
  });
43
+ xit("is a Tray in mobile", async () => {
44
+ await setViewport({ width: 360, height: 640 });
45
+ await nextFrame();
46
+ const opened = oneEvent(el, "sp-opened");
47
+ el.open = true;
48
+ await opened;
49
+ const tray = document.querySelector("sp-tray");
50
+ expect(tray).to.not.be.null;
51
+ });
52
+ it("is a Popover in desktop", async () => {
53
+ await setViewport({ width: 701, height: 640 });
54
+ await nextFrame();
55
+ const opened = oneEvent(el, "sp-opened");
56
+ el.open = true;
57
+ await opened;
58
+ const popover = document.querySelector("sp-popover");
59
+ expect(popover).to.not.be.null;
60
+ });
61
+ });
74
62
  });
75
- //# sourceMappingURL=picker-responsive.test.js.map
63
+ //# sourceMappingURL=picker-responsive.test.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"picker-responsive.test.js","sourceRoot":"","sources":["picker-responsive.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,sBAAsB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C,MAAM,WAAW,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;YAC/C,sCAAsC;YACtC,MAAM,SAAS,EAAE,CAAC;YAElB,MAAM,MAAM,GAAG,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;YACzC,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;YACf,MAAM,MAAM,CAAC;YAEb,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;YAErD,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC;QACnC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","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*/\n\nimport '../sync/sp-picker.js';\nimport '@spectrum-web-components/field-label/sp-field-label.js';\nimport { Picker } from '..';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n nextFrame,\n oneEvent,\n} from '@open-wc/testing';\nimport { setViewport } from '@web/test-runner-commands';\n\ndescribe('Picker, responsive', () => {\n let el: Picker;\n const pickerFixture = async (): Promise<Picker> => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>\n <sp-field-label for=\"picker\">\n Where do you live?\n </sp-field-label>\n <sp-picker\n id=\"picker\"\n style=\"width: 200px; --spectrum-alias-ui-icon-chevron-size-100: 10px;\"\n >\n <sp-menu-item>Deselect</sp-menu-item>\n <sp-menu-item value=\"option-2\">\n Select Inverse\n </sp-menu-item>\n <sp-menu-item>Feather...</sp-menu-item>\n <sp-menu-item>Select and Mask...</sp-menu-item>\n <sp-menu-divider></sp-menu-divider>\n <sp-menu-item>Save Selection</sp-menu-item>\n <sp-menu-item disabled>Make Work Path</sp-menu-item>\n </sp-picker>\n </div>\n `\n );\n\n return test.querySelector('sp-picker') as Picker;\n };\n\n describe('container', () => {\n beforeEach(async () => {\n el = await pickerFixture();\n await elementUpdated(el);\n });\n\n xit('is a Tray in mobile', async () => {\n /**\n * While we can set the view port, but not `(hover: none) and (pointer: coarse)`\n * which prevents us from testing this at unit time. Hopefully there will be\n * a future version of Playwright and/or @web/test-runner that does allow this.\n * See: https://github.com/microsoft/playwright/issues/11781\n **/\n await setViewport({ width: 360, height: 640 });\n // Allow viewport update to propagate.\n await nextFrame();\n\n const opened = oneEvent(el, 'sp-opened');\n el.open = true;\n await opened;\n\n const tray = document.querySelector('sp-tray');\n\n expect(tray).to.not.be.null;\n });\n\n it('is a Popover in desktop', async () => {\n await setViewport({ width: 701, height: 640 });\n // Allow viewport update to propagate.\n await nextFrame();\n\n const opened = oneEvent(el, 'sp-opened');\n el.open = true;\n await opened;\n\n const popover = document.querySelector('sp-popover');\n\n expect(popover).to.not.be.null;\n });\n });\n});\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["picker-responsive.test.ts"],
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*/\n\nimport '@spectrum-web-components/picker/sync/sp-picker.js';\nimport '@spectrum-web-components/field-label/sp-field-label.js';\nimport { Picker } from '@spectrum-web-components/picker';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n nextFrame,\n oneEvent,\n} from '@open-wc/testing';\nimport { setViewport } from '@web/test-runner-commands';\n\ndescribe('Picker, responsive', () => {\n let el: Picker;\n const pickerFixture = async (): Promise<Picker> => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>\n <sp-field-label for=\"picker\">\n Where do you live?\n </sp-field-label>\n <sp-picker\n id=\"picker\"\n style=\"width: 200px; --spectrum-alias-ui-icon-chevron-size-100: 10px;\"\n >\n <sp-menu-item>Deselect</sp-menu-item>\n <sp-menu-item value=\"option-2\">\n Select Inverse\n </sp-menu-item>\n <sp-menu-item>Feather...</sp-menu-item>\n <sp-menu-item>Select and Mask...</sp-menu-item>\n <sp-menu-divider></sp-menu-divider>\n <sp-menu-item>Save Selection</sp-menu-item>\n <sp-menu-item disabled>Make Work Path</sp-menu-item>\n </sp-picker>\n </div>\n `\n );\n\n return test.querySelector('sp-picker') as Picker;\n };\n\n describe('container', () => {\n beforeEach(async () => {\n el = await pickerFixture();\n await elementUpdated(el);\n });\n\n xit('is a Tray in mobile', async () => {\n /**\n * While we can set the view port, but not `(hover: none) and (pointer: coarse)`\n * which prevents us from testing this at unit time. Hopefully there will be\n * a future version of Playwright and/or @web/test-runner that does allow this.\n * See: https://github.com/microsoft/playwright/issues/11781\n **/\n await setViewport({ width: 360, height: 640 });\n // Allow viewport update to propagate.\n await nextFrame();\n\n const opened = oneEvent(el, 'sp-opened');\n el.open = true;\n await opened;\n\n const tray = document.querySelector('sp-tray');\n\n expect(tray).to.not.be.null;\n });\n\n it('is a Popover in desktop', async () => {\n await setViewport({ width: 701, height: 640 });\n // Allow viewport update to propagate.\n await nextFrame();\n\n const opened = oneEvent(el, 'sp-opened');\n el.open = true;\n await opened;\n\n const popover = document.querySelector('sp-popover');\n\n expect(popover).to.not.be.null;\n });\n });\n});\n"],
5
+ "mappings": "AAYA;AACA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;AAEA,SAAS,sBAAsB,MAAM;AACjC,MAAI;AACJ,QAAM,gBAAgB,YAA6B;AAC/C,UAAM,OAAO,MAAM,QACf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAqBJ;AAEA,WAAO,KAAK,cAAc,WAAW;AAAA,EACzC;AAEA,WAAS,aAAa,MAAM;AACxB,eAAW,YAAY;AACnB,WAAK,MAAM,cAAc;AACzB,YAAM,eAAe,EAAE;AAAA,IAC3B,CAAC;AAED,QAAI,uBAAuB,YAAY;AAOnC,YAAM,YAAY,EAAE,OAAO,KAAK,QAAQ,IAAI,CAAC;AAE7C,YAAM,UAAU;AAEhB,YAAM,SAAS,SAAS,IAAI,WAAW;AACvC,SAAG,OAAO;AACV,YAAM;AAEN,YAAM,OAAO,SAAS,cAAc,SAAS;AAE7C,aAAO,IAAI,EAAE,GAAG,IAAI,GAAG;AAAA,IAC3B,CAAC;AAED,OAAG,2BAA2B,YAAY;AACtC,YAAM,YAAY,EAAE,OAAO,KAAK,QAAQ,IAAI,CAAC;AAE7C,YAAM,UAAU;AAEhB,YAAM,SAAS,SAAS,IAAI,WAAW;AACvC,SAAG,OAAO;AACV,YAAM;AAEN,YAAM,UAAU,SAAS,cAAc,YAAY;AAEnD,aAAO,OAAO,EAAE,GAAG,IAAI,GAAG;AAAA,IAC9B,CAAC;AAAA,EACL,CAAC;AACL,CAAC;",
6
+ "names": []
7
+ }
@@ -1,15 +1,4 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/picker-sizes.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('PickerSizesStories', stories);
15
- //# sourceMappingURL=picker-sizes.test-vrt.js.map
1
+ import * as stories from "../stories/picker-sizes.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("PickerSizesStories", stories);
4
+ //# sourceMappingURL=picker-sizes.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"picker-sizes.test-vrt.js","sourceRoot":"","sources":["picker-sizes.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC","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*/\n\nimport * as stories from '../stories/picker-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('PickerSizesStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["picker-sizes.test-vrt.ts"],
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*/\n\nimport * as stories from '../stories/picker-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('PickerSizesStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,sBAAsB,OAAO;",
6
+ "names": []
7
+ }
@@ -1,17 +1,6 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import '../sync/sp-picker.js';
13
- import { runPickerTests } from './index.js';
14
- describe('Picker, sync', () => {
15
- runPickerTests();
1
+ import "@spectrum-web-components/picker/sync/sp-picker.js";
2
+ import { runPickerTests } from "./index.js";
3
+ describe("Picker, sync", () => {
4
+ runPickerTests();
16
5
  });
17
- //# sourceMappingURL=picker-sync.test.js.map
6
+ //# sourceMappingURL=picker-sync.test.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"picker-sync.test.js","sourceRoot":"","sources":["picker-sync.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC1B,cAAc,EAAE,CAAC;AACrB,CAAC,CAAC,CAAC","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*/\n\nimport '../sync/sp-picker.js';\nimport { runPickerTests } from './index.js';\n\ndescribe('Picker, sync', () => {\n runPickerTests();\n});\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["picker-sync.test.ts"],
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*/\n\nimport '@spectrum-web-components/picker/sync/sp-picker.js';\nimport { runPickerTests } from './index.js';\n\ndescribe('Picker, sync', () => {\n runPickerTests();\n});\n"],
5
+ "mappings": "AAYA;AACA;AAEA,SAAS,gBAAgB,MAAM;AAC3B,iBAAe;AACnB,CAAC;",
6
+ "names": []
7
+ }
@@ -1,15 +1,4 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/picker.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('PickerStories', stories);
15
- //# sourceMappingURL=picker.test-vrt.js.map
1
+ import * as stories from "../stories/picker.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("PickerStories", stories);
4
+ //# sourceMappingURL=picker.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"picker.test-vrt.js","sourceRoot":"","sources":["picker.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC","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*/\n\nimport * as stories from '../stories/picker.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('PickerStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["picker.test-vrt.ts"],
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*/\n\nimport * as stories from '../stories/picker.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('PickerStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,iBAAiB,OAAO;",
6
+ "names": []
7
+ }
@@ -1,17 +1,6 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import '../sp-picker.js';
13
- import { runPickerTests } from './index.js';
14
- describe('Picker, sync', () => {
15
- runPickerTests();
1
+ import "@spectrum-web-components/picker/sp-picker.js";
2
+ import { runPickerTests } from "./index.js";
3
+ describe("Picker, sync", () => {
4
+ runPickerTests();
16
5
  });
17
- //# sourceMappingURL=picker.test.js.map
6
+ //# sourceMappingURL=picker.test.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"picker.test.js","sourceRoot":"","sources":["picker.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC1B,cAAc,EAAE,CAAC;AACrB,CAAC,CAAC,CAAC","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*/\n\nimport '../sp-picker.js';\nimport { runPickerTests } from './index.js';\n\ndescribe('Picker, sync', () => {\n runPickerTests();\n});\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["picker.test.ts"],
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*/\n\nimport '@spectrum-web-components/picker/sp-picker.js';\nimport { runPickerTests } from './index.js';\n\ndescribe('Picker, sync', () => {\n runPickerTests();\n});\n"],
5
+ "mappings": "AAYA;AACA;AAEA,SAAS,gBAAgB,MAAM;AAC3B,iBAAe;AACnB,CAAC;",
6
+ "names": []
7
+ }