@spectrum-web-components/action-button 0.10.0-devmode.0 → 0.10.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/package.json +6 -6
- package/sp-action-button.js +1 -2
- package/sp-action-button.js.map +1 -1
- package/src/ActionButton.js +3 -169
- package/src/ActionButton.js.map +1 -1
- package/src/action-button.css.js +2 -4
- package/src/action-button.css.js.map +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/spectrum-action-button.css.js +2 -4
- package/src/spectrum-action-button.css.js.map +1 -1
- package/stories/action-button-black-quiet.stories.js +1 -33
- package/stories/action-button-black-quiet.stories.js.map +1 -1
- package/stories/action-button-black.stories.js +1 -28
- package/stories/action-button-black.stories.js.map +1 -1
- package/stories/action-button-emphasized-quiet.stories.js +1 -31
- package/stories/action-button-emphasized-quiet.stories.js.map +1 -1
- package/stories/action-button-emphasized.stories.js +1 -26
- package/stories/action-button-emphasized.stories.js.map +1 -1
- package/stories/action-button-quiet.stories.js +1 -26
- package/stories/action-button-quiet.stories.js.map +1 -1
- package/stories/action-button-standard.stories.js +1 -21
- package/stories/action-button-standard.stories.js.map +1 -1
- package/stories/action-button-white-quiet.stories.js +1 -33
- package/stories/action-button-white-quiet.stories.js.map +1 -1
- package/stories/action-button-white.stories.js +1 -28
- package/stories/action-button-white.stories.js.map +1 -1
- package/stories/action-button.stories.js +10 -36
- package/stories/action-button.stories.js.map +1 -1
- package/stories/index.js +25 -70
- package/stories/index.js.map +1 -1
- package/test/action-button-black-quiet.test-vrt.js +1 -3
- package/test/action-button-black-quiet.test-vrt.js.map +1 -1
- package/test/action-button-black.test-vrt.js +1 -3
- package/test/action-button-black.test-vrt.js.map +1 -1
- package/test/action-button-emphasized-quiet.test-vrt.js +1 -3
- package/test/action-button-emphasized-quiet.test-vrt.js.map +1 -1
- package/test/action-button-emphasized.test-vrt.js +1 -3
- package/test/action-button-emphasized.test-vrt.js.map +1 -1
- package/test/action-button-quiet.test-vrt.js +1 -3
- package/test/action-button-quiet.test-vrt.js.map +1 -1
- package/test/action-button-standard.test-vrt.js +1 -3
- package/test/action-button-standard.test-vrt.js.map +1 -1
- package/test/action-button-white-quiet.test-vrt.js +1 -3
- package/test/action-button-white-quiet.test-vrt.js.map +1 -1
- package/test/action-button-white.test-vrt.js +1 -3
- package/test/action-button-white.test-vrt.js.map +1 -1
- package/test/action-button.test-vrt.js +1 -3
- package/test/action-button.test-vrt.js.map +1 -1
- package/test/action-button.test.js +9 -118
- package/test/action-button.test.js.map +1 -1
- package/test/benchmark/basic-test.js +1 -4
- package/test/benchmark/basic-test.js.map +1 -1
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { regressVisuals } from "../../../test/visual/test.js";
|
|
3
|
-
regressVisuals("ActionButtonWhiteStories", stories);
|
|
1
|
+
import*as o from"../stories/action-button-white.stories.js";import{regressVisuals as r}from"../../../test/visual/test.js";r("ActionButtonWhiteStories",o);
|
|
4
2
|
//# sourceMappingURL=action-button-white.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-button-white.test-vrt.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*/\n\nimport * as stories from '../stories/action-button-white.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonWhiteStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA
|
|
5
|
+
"mappings": "AAYA,4DACA,8DAEA,EAAe,2BAA4B,CAAO",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { regressVisuals } from "../../../test/visual/test.js";
|
|
3
|
-
regressVisuals("ActionButtonStories", stories);
|
|
1
|
+
import*as o from"../stories/action-button.stories.js";import{regressVisuals as r}from"../../../test/visual/test.js";r("ActionButtonStories",o);
|
|
4
2
|
//# sourceMappingURL=action-button.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-button.test-vrt.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*/\n\nimport * as stories from '../stories/action-button.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA
|
|
5
|
+
"mappings": "AAYA,sDACA,8DAEA,EAAe,sBAAuB,CAAO",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,130 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
elementUpdated,
|
|
4
|
-
expect,
|
|
5
|
-
fixture,
|
|
6
|
-
html,
|
|
7
|
-
waitUntil
|
|
8
|
-
} from "@open-wc/testing";
|
|
9
|
-
import { sendKeys } from "@web/test-runner-commands";
|
|
10
|
-
import { spy } from "sinon";
|
|
11
|
-
import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
|
|
12
|
-
import { m as BlackActionButton } from "../stories/action-button-black.stories.js";
|
|
13
|
-
describe("ActionButton", () => {
|
|
14
|
-
testForLitDevWarnings(async () => await fixture(BlackActionButton(BlackActionButton.args)));
|
|
15
|
-
it("loads default", async () => {
|
|
16
|
-
const el = await fixture(html`
|
|
1
|
+
import"@spectrum-web-components/action-button/sp-action-button.js";import{elementUpdated as a,expect as e,fixture as s,html as n,waitUntil as u}from"@open-wc/testing";import{sendKeys as i}from"@web/test-runner-commands";import{spy as r}from"sinon";import{testForLitDevWarnings as b}from"../../../test/testing-helpers.js";import{m as c}from"../stories/action-button-black.stories.js";describe("ActionButton",()=>{b(async()=>await s(c(c.args))),it("loads default",async()=>{const t=await s(n`
|
|
17
2
|
<sp-action-button>Button</sp-action-button>
|
|
18
|
-
`);
|
|
19
|
-
await elementUpdated(el);
|
|
20
|
-
expect(el).to.not.be.undefined;
|
|
21
|
-
expect(el.textContent).to.include("Button");
|
|
22
|
-
await expect(el).to.be.accessible();
|
|
23
|
-
});
|
|
24
|
-
it("loads [hold-affordance]", async () => {
|
|
25
|
-
const el = await fixture(html`
|
|
3
|
+
`);await a(t),e(t).to.not.be.undefined,e(t.textContent).to.include("Button"),await e(t).to.be.accessible()}),it("loads [hold-affordance]",async()=>{const t=await s(n`
|
|
26
4
|
<sp-action-button hold-affordance>Button</sp-action-button>
|
|
27
|
-
`);
|
|
28
|
-
await elementUpdated(el);
|
|
29
|
-
expect(el).to.not.be.undefined;
|
|
30
|
-
expect(el.textContent).to.include("Button");
|
|
31
|
-
await expect(el).to.be.accessible();
|
|
32
|
-
});
|
|
33
|
-
it("maintains a `size` attribute", async () => {
|
|
34
|
-
const el = await fixture(html`
|
|
5
|
+
`);await a(t),e(t).to.not.be.undefined,e(t.textContent).to.include("Button"),await e(t).to.be.accessible()}),it("maintains a `size` attribute",async()=>{const t=await s(n`
|
|
35
6
|
<sp-action-button>Button</sp-action-button>
|
|
36
|
-
`);
|
|
37
|
-
await elementUpdated(el);
|
|
38
|
-
expect(el.size).to.equal("m");
|
|
39
|
-
expect(el.getAttribute("size")).to.equal("m");
|
|
40
|
-
el.removeAttribute("size");
|
|
41
|
-
await elementUpdated(el);
|
|
42
|
-
expect(el.size).to.equal("m");
|
|
43
|
-
expect(el.getAttribute("size")).to.equal("m");
|
|
44
|
-
});
|
|
45
|
-
it("dispatches `longpress` events when [hold-affordance]", async () => {
|
|
46
|
-
const longpressSpy = spy();
|
|
47
|
-
const el = await fixture(html`
|
|
7
|
+
`);await a(t),e(t.size).to.equal("m"),e(t.getAttribute("size")).to.equal("m"),t.removeAttribute("size"),await a(t),e(t.size).to.equal("m"),e(t.getAttribute("size")).to.equal("m")}),it("dispatches `longpress` events when [hold-affordance]",async()=>{const t=r(),o=await s(n`
|
|
48
8
|
<sp-action-button
|
|
49
9
|
hold-affordance
|
|
50
|
-
@longpress=${()
|
|
10
|
+
@longpress=${()=>t()}
|
|
51
11
|
>
|
|
52
12
|
Button
|
|
53
13
|
</sp-action-button>
|
|
54
|
-
`);
|
|
55
|
-
await elementUpdated(el);
|
|
56
|
-
el.focus();
|
|
57
|
-
await sendKeys({
|
|
58
|
-
press: "Space"
|
|
59
|
-
});
|
|
60
|
-
expect(longpressSpy.callCount).to.equal(1);
|
|
61
|
-
await sendKeys({
|
|
62
|
-
press: "Alt+ArrowDown"
|
|
63
|
-
});
|
|
64
|
-
expect(longpressSpy.callCount).to.equal(2);
|
|
65
|
-
el.dispatchEvent(new Event("pointerdown"));
|
|
66
|
-
el.dispatchEvent(new Event("pointerup"));
|
|
67
|
-
el.dispatchEvent(new Event("pointerdown"));
|
|
68
|
-
await waitUntil(() => longpressSpy.callCount === 3);
|
|
69
|
-
});
|
|
70
|
-
it(":not([toggles])", async () => {
|
|
71
|
-
const el = await fixture(html`
|
|
14
|
+
`);await a(o),o.focus(),await i({press:"Space"}),e(t.callCount).to.equal(1),await i({press:"Alt+ArrowDown"}),e(t.callCount).to.equal(2),o.dispatchEvent(new Event("pointerdown")),o.dispatchEvent(new Event("pointerup")),o.dispatchEvent(new Event("pointerdown")),await u(()=>t.callCount===3)}),it(":not([toggles])",async()=>{const t=await s(n`
|
|
72
15
|
<sp-action-button>Button</sp-action-button>
|
|
73
|
-
`);
|
|
74
|
-
await elementUpdated(el);
|
|
75
|
-
const button = el.focusElement;
|
|
76
|
-
expect(el.toggles).to.be.false;
|
|
77
|
-
expect(el.selected).to.be.false;
|
|
78
|
-
expect(button.hasAttribute("aria-pressed")).to.be.false;
|
|
79
|
-
el.click();
|
|
80
|
-
await elementUpdated(el);
|
|
81
|
-
expect(el.toggles).to.be.false;
|
|
82
|
-
expect(el.selected).to.be.false;
|
|
83
|
-
expect(button.hasAttribute("aria-pressed")).to.be.false;
|
|
84
|
-
});
|
|
85
|
-
it("responds to [selected]", async () => {
|
|
86
|
-
const el = await fixture(html`
|
|
16
|
+
`);await a(t);const o=t.focusElement;e(t.toggles).to.be.false,e(t.selected).to.be.false,e(o.hasAttribute("aria-pressed")).to.be.false,t.click(),await a(t),e(t.toggles).to.be.false,e(t.selected).to.be.false,e(o.hasAttribute("aria-pressed")).to.be.false}),it("responds to [selected]",async()=>{const t=await s(n`
|
|
87
17
|
<sp-action-button>Button</sp-action-button>
|
|
88
|
-
`);
|
|
89
|
-
await elementUpdated(el);
|
|
90
|
-
const button = el.focusElement;
|
|
91
|
-
expect(el.toggles).to.be.false;
|
|
92
|
-
expect(el.selected).to.be.false;
|
|
93
|
-
expect(button.hasAttribute("aria-pressed")).to.be.false;
|
|
94
|
-
el.selected = true;
|
|
95
|
-
await elementUpdated(el);
|
|
96
|
-
expect(el.toggles).to.be.false;
|
|
97
|
-
expect(el.selected).to.be.true;
|
|
98
|
-
expect(button.getAttribute("aria-pressed")).to.equal("true");
|
|
99
|
-
el.selected = false;
|
|
100
|
-
await elementUpdated(el);
|
|
101
|
-
expect(el.toggles).to.be.false;
|
|
102
|
-
expect(el.selected).to.be.false;
|
|
103
|
-
expect(button.hasAttribute("aria-pressed")).to.be.false;
|
|
104
|
-
});
|
|
105
|
-
it("toggles", async () => {
|
|
106
|
-
const el = await fixture(html`
|
|
18
|
+
`);await a(t);const o=t.focusElement;e(t.toggles).to.be.false,e(t.selected).to.be.false,e(o.hasAttribute("aria-pressed")).to.be.false,t.selected=!0,await a(t),e(t.toggles).to.be.false,e(t.selected).to.be.true,e(o.getAttribute("aria-pressed")).to.equal("true"),t.selected=!1,await a(t),e(t.toggles).to.be.false,e(t.selected).to.be.false,e(o.hasAttribute("aria-pressed")).to.be.false}),it("toggles",async()=>{const t=await s(n`
|
|
107
19
|
<sp-action-button toggles>Button</sp-action-button>
|
|
108
|
-
`);
|
|
109
|
-
await elementUpdated(el);
|
|
110
|
-
const button = el.focusElement;
|
|
111
|
-
expect(el.toggles).to.be.true;
|
|
112
|
-
expect(el.selected).to.be.false;
|
|
113
|
-
expect(button.getAttribute("aria-pressed")).to.equal("false");
|
|
114
|
-
el.focus();
|
|
115
|
-
await sendKeys({
|
|
116
|
-
press: "Space"
|
|
117
|
-
});
|
|
118
|
-
await elementUpdated(el);
|
|
119
|
-
expect(el.toggles).to.be.true;
|
|
120
|
-
expect(el.selected).to.be.true;
|
|
121
|
-
expect(button.getAttribute("aria-pressed")).to.equal("true");
|
|
122
|
-
el.addEventListener("change", (event) => event.preventDefault());
|
|
123
|
-
el.click();
|
|
124
|
-
await elementUpdated(el);
|
|
125
|
-
expect(el.toggles).to.be.true;
|
|
126
|
-
expect(el.selected).to.be.true;
|
|
127
|
-
expect(button.getAttribute("aria-pressed")).to.equal("true");
|
|
128
|
-
});
|
|
129
|
-
});
|
|
20
|
+
`);await a(t);const o=t.focusElement;e(t.toggles).to.be.true,e(t.selected).to.be.false,e(o.getAttribute("aria-pressed")).to.equal("false"),t.focus(),await i({press:"Space"}),await a(t),e(t.toggles).to.be.true,e(t.selected).to.be.true,e(o.getAttribute("aria-pressed")).to.equal("true"),t.addEventListener("change",l=>l.preventDefault()),t.click(),await a(t),e(t.toggles).to.be.true,e(t.selected).to.be.true,e(o.getAttribute("aria-pressed")).to.equal("true")})});
|
|
130
21
|
//# sourceMappingURL=action-button.test.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-button.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*/\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport { ActionButton } from '@spectrum-web-components/action-button';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n waitUntil,\n} from '@open-wc/testing';\nimport { sendKeys } from '@web/test-runner-commands';\nimport { spy } from 'sinon';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\nimport { m as BlackActionButton } from '../stories/action-button-black.stories.js';\n\ndescribe('ActionButton', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<ActionButton>(\n BlackActionButton(BlackActionButton.args)\n )\n );\n it('loads default', async () => {\n const el = await fixture<ActionButton>(\n html`\n <sp-action-button>Button</sp-action-button>\n `\n );\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.textContent).to.include('Button');\n await expect(el).to.be.accessible();\n });\n it('loads [hold-affordance]', async () => {\n const el = await fixture<ActionButton>(\n html`\n <sp-action-button hold-affordance>Button</sp-action-button>\n `\n );\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.textContent).to.include('Button');\n await expect(el).to.be.accessible();\n });\n it('maintains a `size` attribute', async () => {\n const el = await fixture<ActionButton>(\n html`\n <sp-action-button>Button</sp-action-button>\n `\n );\n\n await elementUpdated(el);\n expect(el.size).to.equal('m');\n expect(el.getAttribute('size')).to.equal('m');\n el.removeAttribute('size');\n await elementUpdated(el);\n expect(el.size).to.equal('m');\n expect(el.getAttribute('size')).to.equal('m');\n });\n it('dispatches `longpress` events when [hold-affordance]', async () => {\n const longpressSpy = spy();\n const el = await fixture<ActionButton>(\n html`\n <sp-action-button\n hold-affordance\n @longpress=${() => longpressSpy()}\n >\n Button\n </sp-action-button>\n `\n );\n\n await elementUpdated(el);\n\n el.focus();\n await sendKeys({\n press: 'Space',\n });\n\n expect(longpressSpy.callCount).to.equal(1);\n await sendKeys({\n press: 'Alt+ArrowDown',\n });\n\n expect(longpressSpy.callCount).to.equal(2);\n el.dispatchEvent(new Event('pointerdown'));\n el.dispatchEvent(new Event('pointerup'));\n el.dispatchEvent(new Event('pointerdown'));\n await waitUntil(() => longpressSpy.callCount === 3);\n });\n it(':not([toggles])', async () => {\n const el = await fixture<ActionButton>(\n html`\n <sp-action-button>Button</sp-action-button>\n `\n );\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n\n el.click();\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n });\n it('responds to [selected]', async () => {\n const el = await fixture<ActionButton>(\n html`\n <sp-action-button>Button</sp-action-button>\n `\n );\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n\n el.selected = true;\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n\n el.selected = false;\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n });\n it('toggles', async () => {\n const el = await fixture<ActionButton>(\n html`\n <sp-action-button toggles>Button</sp-action-button>\n `\n );\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.false;\n expect(button.getAttribute('aria-pressed')).to.equal('false');\n\n el.focus();\n await sendKeys({\n press: 'Space',\n });\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n\n el.addEventListener('change', (event: Event) => event.preventDefault());\n el.click();\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n });\n});\n"],
|
|
5
|
-
"mappings": "AAYA
|
|
5
|
+
"mappings": "AAYA,mEAEA,oGAOA,qDACA,4BACA,yEACA,8DAEA,SAAS,eAAgB,IAAM,CAC3B,EACI,SACI,KAAM,GACF,EAAkB,EAAkB,IAAI,CAC5C,CACR,EACA,GAAG,gBAAiB,SAAY,CAC5B,KAAM,GAAK,KAAM,GACb;AAAA;AAAA,aAGJ,EAEA,KAAM,GAAe,CAAE,EACvB,EAAO,CAAE,EAAE,GAAG,IAAI,GAAG,UACrB,EAAO,EAAG,WAAW,EAAE,GAAG,QAAQ,QAAQ,EAC1C,KAAM,GAAO,CAAE,EAAE,GAAG,GAAG,WAAW,CACtC,CAAC,EACD,GAAG,0BAA2B,SAAY,CACtC,KAAM,GAAK,KAAM,GACb;AAAA;AAAA,aAGJ,EAEA,KAAM,GAAe,CAAE,EACvB,EAAO,CAAE,EAAE,GAAG,IAAI,GAAG,UACrB,EAAO,EAAG,WAAW,EAAE,GAAG,QAAQ,QAAQ,EAC1C,KAAM,GAAO,CAAE,EAAE,GAAG,GAAG,WAAW,CACtC,CAAC,EACD,GAAG,+BAAgC,SAAY,CAC3C,KAAM,GAAK,KAAM,GACb;AAAA;AAAA,aAGJ,EAEA,KAAM,GAAe,CAAE,EACvB,EAAO,EAAG,IAAI,EAAE,GAAG,MAAM,GAAG,EAC5B,EAAO,EAAG,aAAa,MAAM,CAAC,EAAE,GAAG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AG,KACzB,EAAO,EAAG,QAAQ,EAAE,GAAG,GAAG,KAC1B,EAAO,EAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,MAAM,CAC/D,CAAC,CACL,CAAC",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { html } from "lit";
|
|
3
|
-
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
|
4
|
-
measureFixtureCreation(html`
|
|
1
|
+
import"@spectrum-web-components/action-button/sp-action-button.js";import{html as t}from"lit";import{measureFixtureCreation as o}from"../../../../test/benchmark/helpers.js";o(t`
|
|
5
2
|
<sp-action-button open></sp-action-button>
|
|
6
3
|
`);
|
|
7
4
|
//# sourceMappingURL=basic-test.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["basic-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*/\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-action-button open></sp-action-button>\n`);\n"],
|
|
5
|
-
"mappings": "AAYA
|
|
5
|
+
"mappings": "AAYA,mEACA,2BACA,+EAEA,EAAuB;AAAA;AAAA,CAEtB",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|