@spectrum-web-components/checkbox 0.13.3 → 0.13.6-devmode.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 (39) hide show
  1. package/custom-elements.json +1 -17
  2. package/package.json +28 -11
  3. package/sp-checkbox.dev.js +3 -0
  4. package/sp-checkbox.dev.js.map +7 -0
  5. package/sp-checkbox.js +3 -14
  6. package/sp-checkbox.js.map +7 -1
  7. package/src/Checkbox.dev.js +128 -0
  8. package/src/Checkbox.dev.js.map +7 -0
  9. package/src/Checkbox.js +75 -79
  10. package/src/Checkbox.js.map +7 -1
  11. package/src/CheckboxBase.d.ts +1 -1
  12. package/src/CheckboxBase.dev.js +65 -0
  13. package/src/CheckboxBase.dev.js.map +7 -0
  14. package/src/CheckboxBase.js +53 -51
  15. package/src/CheckboxBase.js.map +7 -1
  16. package/src/checkbox.css.dev.js +233 -0
  17. package/src/checkbox.css.dev.js.map +7 -0
  18. package/src/checkbox.css.js +3 -14
  19. package/src/checkbox.css.js.map +7 -1
  20. package/src/index.dev.js +2 -0
  21. package/src/index.dev.js.map +7 -0
  22. package/src/index.js +2 -13
  23. package/src/index.js.map +7 -1
  24. package/src/spectrum-checkbox.css.dev.js +233 -0
  25. package/src/spectrum-checkbox.css.dev.js.map +7 -0
  26. package/src/spectrum-checkbox.css.js +3 -14
  27. package/src/spectrum-checkbox.css.js.map +7 -1
  28. package/stories/checkbox-sizes.stories.js +29 -34
  29. package/stories/checkbox-sizes.stories.js.map +7 -1
  30. package/stories/checkbox.stories.js +28 -39
  31. package/stories/checkbox.stories.js.map +7 -1
  32. package/test/benchmark/test-basic.js +5 -16
  33. package/test/benchmark/test-basic.js.map +7 -1
  34. package/test/checkbox-sizes.test-vrt.js +4 -15
  35. package/test/checkbox-sizes.test-vrt.js.map +7 -1
  36. package/test/checkbox.test-vrt.js +4 -15
  37. package/test/checkbox.test-vrt.js.map +7 -1
  38. package/test/checkbox.test.js +98 -90
  39. package/test/checkbox.test.js.map +7 -1
@@ -1,123 +1,112 @@
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-checkbox.js';
13
- import '@spectrum-web-components/field-group/sp-field-group.js';
14
- import { html } from '@spectrum-web-components/base';
1
+ import "@spectrum-web-components/checkbox/sp-checkbox.js";
2
+ import "@spectrum-web-components/field-group/sp-field-group.js";
3
+ import { html } from "@spectrum-web-components/base";
15
4
  export default {
16
- component: 'sp-checkbox',
17
- title: 'Checkbox',
5
+ component: "sp-checkbox",
6
+ title: "Checkbox"
18
7
  };
19
8
  export const Default = () => {
20
- return html `
9
+ return html`
21
10
  <sp-checkbox>Checkbox</sp-checkbox>
22
11
  `;
23
12
  };
24
13
  export const readonly = () => {
25
- return html `
14
+ return html`
26
15
  <sp-checkbox checked readonly>Checkbox</sp-checkbox>
27
16
  `;
28
17
  };
29
18
  export const Indeterminate = () => {
30
- return html `
19
+ return html`
31
20
  <sp-checkbox indeterminate>Checkbox</sp-checkbox>
32
21
  `;
33
22
  };
34
23
  export const Checked = () => {
35
- return html `
24
+ return html`
36
25
  <sp-checkbox checked>Checkbox</sp-checkbox>
37
26
  `;
38
27
  };
39
28
  export const emphasized = () => {
40
- return html `
29
+ return html`
41
30
  <sp-checkbox emphasized>Checkbox</sp-checkbox>
42
31
  `;
43
32
  };
44
33
  export const emphasizedIndeterminate = () => {
45
- return html `
34
+ return html`
46
35
  <sp-checkbox emphasized indeterminate>Checkbox</sp-checkbox>
47
36
  `;
48
37
  };
49
38
  export const emphasizedChecked = () => {
50
- return html `
39
+ return html`
51
40
  <sp-checkbox emphasized checked>Checkbox</sp-checkbox>
52
41
  `;
53
42
  };
54
43
  export const emphasizedInvalid = () => {
55
- return html `
44
+ return html`
56
45
  <sp-checkbox emphasized invalid>Checkbox</sp-checkbox>
57
46
  `;
58
47
  };
59
48
  export const emphasizedInvalidIndeterminate = () => {
60
- return html `
49
+ return html`
61
50
  <sp-checkbox emphasized invalid indeterminate>Checkbox</sp-checkbox>
62
51
  `;
63
52
  };
64
53
  export const emphasizedInvalidChecked = () => {
65
- return html `
54
+ return html`
66
55
  <sp-checkbox emphasized invalid checked>Checkbox</sp-checkbox>
67
56
  `;
68
57
  };
69
58
  export const Invalid = () => {
70
- return html `
59
+ return html`
71
60
  <sp-checkbox invalid>Checkbox</sp-checkbox>
72
61
  `;
73
62
  };
74
63
  export const invalidIndeterminate = () => {
75
- return html `
64
+ return html`
76
65
  <sp-checkbox invalid indeterminate>Checkbox</sp-checkbox>
77
66
  `;
78
67
  };
79
68
  export const invalidChecked = () => {
80
- return html `
69
+ return html`
81
70
  <sp-checkbox invalid checked>Checkbox</sp-checkbox>
82
71
  `;
83
72
  };
84
73
  export const Autofocus = () => {
85
- return html `
74
+ return html`
86
75
  <sp-checkbox autofocus>Checkbox</sp-checkbox>
87
76
  `;
88
77
  };
89
78
  export const Disabled = () => {
90
- return html `
79
+ return html`
91
80
  <sp-checkbox disabled>Checkbox</sp-checkbox>
92
81
  `;
93
82
  };
94
83
  export const disabledChecked = () => {
95
- return html `
84
+ return html`
96
85
  <sp-checkbox disabled checked>Checkbox</sp-checkbox>
97
86
  `;
98
87
  };
99
88
  export const disabledIndeterminate = () => {
100
- return html `
89
+ return html`
101
90
  <sp-checkbox disabled indeterminate>Checkbox</sp-checkbox>
102
91
  `;
103
92
  };
104
93
  export const emphasizedDisabled = () => {
105
- return html `
94
+ return html`
106
95
  <sp-checkbox emphasized disabled>Checkbox</sp-checkbox>
107
96
  `;
108
97
  };
109
98
  export const emphasizedDisabledIndeterminate = () => {
110
- return html `
99
+ return html`
111
100
  <sp-checkbox emphasized disabled indeterminate>Checkbox</sp-checkbox>
112
101
  `;
113
102
  };
114
103
  export const emphasizedDisabledChecked = () => {
115
- return html `
104
+ return html`
116
105
  <sp-checkbox emphasized checked>Checkbox</sp-checkbox>
117
106
  `;
118
107
  };
119
108
  export const tabIndexExample = () => {
120
- return html `
109
+ return html`
121
110
  <sp-field-group horizontal>
122
111
  <sp-checkbox tabindex="0">Checkbox 0</sp-checkbox>
123
112
  <sp-checkbox disabled tabindex="3">Checkbox 3</sp-checkbox>
@@ -128,7 +117,7 @@ export const tabIndexExample = () => {
128
117
  `;
129
118
  };
130
119
  export const verticalTabIndexExample = () => {
131
- return html `
120
+ return html`
132
121
  <sp-field-group vertical>
133
122
  <sp-checkbox tabindex="0">Checkbox 0</sp-checkbox>
134
123
  <sp-checkbox disabled tabindex="3">Checkbox 3</sp-checkbox>
@@ -138,4 +127,4 @@ export const verticalTabIndexExample = () => {
138
127
  </sp-field-group>
139
128
  `;
140
129
  };
141
- //# sourceMappingURL=checkbox.stories.js.map
130
+ //# sourceMappingURL=checkbox.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"checkbox.stories.js","sourceRoot":"","sources":["checkbox.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,mBAAmB,CAAC;AAC3B,OAAO,wDAAwD,CAAC;AAChE,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AAErE,eAAe;IACX,SAAS,EAAE,aAAa;IACxB,KAAK,EAAE,UAAU;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAmB,EAAE;IACxC,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAmB,EAAE;IACzC,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAmB,EAAE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MAAM,QAAQ,GAAG,GAAmB,EAAE;IACzC,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAmB,EAAE;IAChD,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAmB,EAAE;IACtD,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAmB,EAAE;IACnD,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAmB,EAAE;IAChE,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAmB,EAAE;IAC1D,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAmB,EAAE;IAChD,OAAO,IAAI,CAAA;;;;;;;;KAQV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAmB,EAAE;IACxD,OAAO,IAAI,CAAA;;;;;;;;KAQV,CAAC;AACN,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*/\nimport '../sp-checkbox.js';\nimport '@spectrum-web-components/field-group/sp-field-group.js';\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nexport default {\n component: 'sp-checkbox',\n title: 'Checkbox',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-checkbox>Checkbox</sp-checkbox>\n `;\n};\n\nexport const readonly = (): TemplateResult => {\n return html`\n <sp-checkbox checked readonly>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Indeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Checked = (): TemplateResult => {\n return html`\n <sp-checkbox checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasized = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalid = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalidIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalidChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Invalid = (): TemplateResult => {\n return html`\n <sp-checkbox invalid>Checkbox</sp-checkbox>\n `;\n};\n\nexport const invalidIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox invalid indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const invalidChecked = (): TemplateResult => {\n return html`\n <sp-checkbox invalid checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Autofocus = (): TemplateResult => {\n return html`\n <sp-checkbox autofocus>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Disabled = (): TemplateResult => {\n return html`\n <sp-checkbox disabled>Checkbox</sp-checkbox>\n `;\n};\n\nexport const disabledChecked = (): TemplateResult => {\n return html`\n <sp-checkbox disabled checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const disabledIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox disabled indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabled = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized disabled>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabledIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized disabled indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabledChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const tabIndexExample = (): TemplateResult => {\n return html`\n <sp-field-group horizontal>\n <sp-checkbox tabindex=\"0\">Checkbox 0</sp-checkbox>\n <sp-checkbox disabled tabindex=\"3\">Checkbox 3</sp-checkbox>\n <sp-checkbox tabindex=\"4\">Checkbox 4</sp-checkbox>\n <sp-checkbox tabindex=\"2\" autofocus>Checkbox 2</sp-checkbox>\n <sp-checkbox tabindex=\"1\">Checkbox 1</sp-checkbox>\n </sp-field-group>\n `;\n};\n\nexport const verticalTabIndexExample = (): TemplateResult => {\n return html`\n <sp-field-group vertical>\n <sp-checkbox tabindex=\"0\">Checkbox 0</sp-checkbox>\n <sp-checkbox disabled tabindex=\"3\">Checkbox 3</sp-checkbox>\n <sp-checkbox tabindex=\"4\">Checkbox 4</sp-checkbox>\n <sp-checkbox tabindex=\"2\" autofocus>Checkbox 2</sp-checkbox>\n <sp-checkbox tabindex=\"1\">Checkbox 1</sp-checkbox>\n </sp-field-group>\n `;\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["checkbox.stories.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*/\nimport '@spectrum-web-components/checkbox/sp-checkbox.js';\nimport '@spectrum-web-components/field-group/sp-field-group.js';\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nexport default {\n component: 'sp-checkbox',\n title: 'Checkbox',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-checkbox>Checkbox</sp-checkbox>\n `;\n};\n\nexport const readonly = (): TemplateResult => {\n return html`\n <sp-checkbox checked readonly>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Indeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Checked = (): TemplateResult => {\n return html`\n <sp-checkbox checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasized = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalid = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalidIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalidChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Invalid = (): TemplateResult => {\n return html`\n <sp-checkbox invalid>Checkbox</sp-checkbox>\n `;\n};\n\nexport const invalidIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox invalid indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const invalidChecked = (): TemplateResult => {\n return html`\n <sp-checkbox invalid checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Autofocus = (): TemplateResult => {\n return html`\n <sp-checkbox autofocus>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Disabled = (): TemplateResult => {\n return html`\n <sp-checkbox disabled>Checkbox</sp-checkbox>\n `;\n};\n\nexport const disabledChecked = (): TemplateResult => {\n return html`\n <sp-checkbox disabled checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const disabledIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox disabled indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabled = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized disabled>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabledIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized disabled indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabledChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const tabIndexExample = (): TemplateResult => {\n return html`\n <sp-field-group horizontal>\n <sp-checkbox tabindex=\"0\">Checkbox 0</sp-checkbox>\n <sp-checkbox disabled tabindex=\"3\">Checkbox 3</sp-checkbox>\n <sp-checkbox tabindex=\"4\">Checkbox 4</sp-checkbox>\n <sp-checkbox tabindex=\"2\" autofocus>Checkbox 2</sp-checkbox>\n <sp-checkbox tabindex=\"1\">Checkbox 1</sp-checkbox>\n </sp-field-group>\n `;\n};\n\nexport const verticalTabIndexExample = (): TemplateResult => {\n return html`\n <sp-field-group vertical>\n <sp-checkbox tabindex=\"0\">Checkbox 0</sp-checkbox>\n <sp-checkbox disabled tabindex=\"3\">Checkbox 3</sp-checkbox>\n <sp-checkbox tabindex=\"4\">Checkbox 4</sp-checkbox>\n <sp-checkb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AkC,MAAsB;AACjE,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,4BAA4B,MAAsB;AAC3D,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,kBAAkB,MAAsB;AACjD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASX;AAEO,aAAM,0BAA0B,MAAsB;AACzD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASX;",
6
+ "names": []
7
+ }
@@ -1,18 +1,7 @@
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 '@spectrum-web-components/checkbox/sp-checkbox.js';
13
- import { html } from 'lit';
14
- import { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';
15
- measureFixtureCreation(html `
1
+ import "@spectrum-web-components/checkbox/sp-checkbox.js";
2
+ import { html } from "lit";
3
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
4
+ measureFixtureCreation(html`
16
5
  <sp-checkbox id="checkbox0" tabindex="5">Component</sp-checkbox>
17
6
  `);
18
- //# sourceMappingURL=test-basic.js.map
7
+ //# sourceMappingURL=test-basic.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"test-basic.js","sourceRoot":"","sources":["test-basic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,kDAAkD,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E,sBAAsB,CAAC,IAAI,CAAA;;CAE1B,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 '@spectrum-web-components/checkbox/sp-checkbox.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-checkbox id=\"checkbox0\" tabindex=\"5\">Component</sp-checkbox>\n`);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["test-basic.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/checkbox/sp-checkbox.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-checkbox id=\"checkbox0\" tabindex=\"5\">Component</sp-checkbox>\n`);\n"],
5
+ "mappings": "AAYA;AACA;AACA;AAEA,uBAAuB;AAAA;AAAA,CAEtB;",
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/checkbox-sizes.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('CheckboxSizesStories', stories);
15
- //# sourceMappingURL=checkbox-sizes.test-vrt.js.map
1
+ import * as stories from "../stories/checkbox-sizes.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("CheckboxSizesStories", stories);
4
+ //# sourceMappingURL=checkbox-sizes.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"checkbox-sizes.test-vrt.js","sourceRoot":"","sources":["checkbox-sizes.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,sBAAsB,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/checkbox-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('CheckboxSizesStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["checkbox-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/checkbox-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('CheckboxSizesStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,wBAAwB,OAAO;",
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/checkbox.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('CheckboxStories', stories);
15
- //# sourceMappingURL=checkbox.test-vrt.js.map
1
+ import * as stories from "../stories/checkbox.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("CheckboxStories", stories);
4
+ //# sourceMappingURL=checkbox.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"checkbox.test-vrt.js","sourceRoot":"","sources":["checkbox.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,iBAAiB,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/checkbox.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('CheckboxStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["checkbox.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/checkbox.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('CheckboxStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,mBAAmB,OAAO;",
6
+ "names": []
7
+ }
@@ -1,35 +1,31 @@
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-checkbox.js';
13
- import { elementUpdated, expect, fixture, html, triggerBlurFor, waitUntil, } from '@open-wc/testing';
14
- import '@spectrum-web-components/shared/src/focus-visible.js';
1
+ import "@spectrum-web-components/checkbox/sp-checkbox.js";
2
+ import {
3
+ elementUpdated,
4
+ expect,
5
+ fixture,
6
+ html,
7
+ triggerBlurFor,
8
+ waitUntil
9
+ } from "@open-wc/testing";
10
+ import "@spectrum-web-components/shared/src/focus-visible.js";
15
11
  function inputForCheckbox(checkbox) {
16
- if (!checkbox.shadowRoot)
17
- throw new Error('No shadowRoot');
18
- return checkbox.shadowRoot.querySelector('#input');
12
+ if (!checkbox.shadowRoot)
13
+ throw new Error("No shadowRoot");
14
+ return checkbox.shadowRoot.querySelector("#input");
19
15
  }
20
16
  function labelNodeForCheckbox(checkbox) {
21
- if (!checkbox.shadowRoot)
22
- throw new Error('No shadowRoot');
23
- const slotEl = checkbox.shadowRoot.querySelector('slot');
24
- if (!slotEl) {
25
- throw new Error('Failed to find slot in shadowRoot');
26
- }
27
- return slotEl.assignedNodes()[0];
17
+ if (!checkbox.shadowRoot)
18
+ throw new Error("No shadowRoot");
19
+ const slotEl = checkbox.shadowRoot.querySelector("slot");
20
+ if (!slotEl) {
21
+ throw new Error("Failed to find slot in shadowRoot");
22
+ }
23
+ return slotEl.assignedNodes()[0];
28
24
  }
29
- describe('Checkbox', () => {
30
- let testFixture;
31
- beforeEach(async () => {
32
- testFixture = await fixture(html `
25
+ describe("Checkbox", () => {
26
+ let testFixture;
27
+ beforeEach(async () => {
28
+ testFixture = await fixture(html`
33
29
  <div>
34
30
  <div id="test-checkbox">
35
31
  <sp-checkbox id="checkbox0" tabindex="5">
@@ -53,76 +49,88 @@ describe('Checkbox', () => {
53
49
  </div>
54
50
  </div>
55
51
  `);
56
- });
57
- it('loads', async () => {
58
- const el = testFixture.querySelector('sp-checkbox');
59
- expect(el).to.not.equal(undefined);
60
- const textNode = labelNodeForCheckbox(el);
61
- const content = (textNode.textContent || '').trim();
62
- expect(content).to.equal('Component');
63
- });
64
- it('loads default checkbox accessibly', async () => {
65
- const el = await fixture(html `
52
+ });
53
+ it("loads", async () => {
54
+ const el = testFixture.querySelector("sp-checkbox");
55
+ expect(el).to.not.equal(void 0);
56
+ const textNode = labelNodeForCheckbox(el);
57
+ const content = (textNode.textContent || "").trim();
58
+ expect(content).to.equal("Component");
59
+ });
60
+ it("loads default checkbox accessibly", async () => {
61
+ const el = await fixture(html`
66
62
  <sp-checkbox>Not Checked</sp-checkbox>
67
63
  `);
68
- await elementUpdated(el);
69
- await expect(el).to.be.accessible();
70
- });
71
- it('loads `checked` checkbox accessibly', async () => {
72
- const el = await fixture(html `
64
+ await elementUpdated(el);
65
+ await expect(el).to.be.accessible();
66
+ });
67
+ it("loads `checked` checkbox accessibly", async () => {
68
+ const el = await fixture(html`
73
69
  <sp-checkbox checked>Checked</sp-checkbox>
74
70
  `);
75
- await elementUpdated(el);
76
- await expect(el).to.be.accessible();
77
- });
78
- it('is `invalid` checkbox accessibly', async () => {
79
- const el = await fixture(html `
71
+ await elementUpdated(el);
72
+ await expect(el).to.be.accessible();
73
+ });
74
+ it("is `invalid` checkbox accessibly", async () => {
75
+ const el = await fixture(html`
80
76
  <sp-checkbox invalid>Invalid Checked</sp-checkbox>
81
77
  `);
82
- await elementUpdated(el);
83
- await expect(el).to.be.accessible();
84
- });
85
- it('autofocuses', async () => {
86
- const autoElement = testFixture.querySelector('sp-checkbox[autofocus]');
87
- expect(autoElement).to.exist;
88
- await waitUntil(() => document.activeElement === autoElement, 'Autofocused');
89
- await triggerBlurFor(autoElement);
90
- expect(document.activeElement).to.not.equal(autoElement);
91
- });
92
- it('`click()`ing host clicks `focusElement`', async () => {
93
- const el = await fixture(html `
78
+ await elementUpdated(el);
79
+ await expect(el).to.be.accessible();
80
+ });
81
+ it("autofocuses", async () => {
82
+ const autoElement = testFixture.querySelector("sp-checkbox[autofocus]");
83
+ expect(autoElement).to.exist;
84
+ await waitUntil(() => document.activeElement === autoElement, "Autofocused");
85
+ await triggerBlurFor(autoElement);
86
+ expect(document.activeElement).to.not.equal(autoElement);
87
+ });
88
+ it("`click()`ing host clicks `focusElement`", async () => {
89
+ const el = await fixture(html`
94
90
  <sp-checkbox checked autofocus>Checked</sp-checkbox>
95
91
  `);
96
- await elementUpdated(el);
97
- expect(el.checked, 'checked initially').to.be.true;
98
- el.click();
99
- await elementUpdated(el);
100
- expect(el.checked, 'unchecked').to.be.false;
101
- el.click();
102
- await elementUpdated(el);
103
- expect(el.checked, 'checked again').to.be.true;
104
- });
105
- it('respects checked attribute', () => {
106
- let el = testFixture.querySelector('#checkbox0');
107
- expect(el.checked).to.be.false;
108
- el = testFixture.querySelector('#checkbox1');
109
- expect(el.checked).to.be.true;
110
- });
111
- it('handles click events', async () => {
112
- const el = testFixture.querySelector('#checkbox1');
113
- expect(el.checked).to.be.true;
114
- inputForCheckbox(el).click();
115
- await elementUpdated(el);
116
- expect(el.checked).to.be.false;
117
- });
118
- it('maintains its value when [readonly]', async () => {
119
- const el = await fixture(html `
92
+ await elementUpdated(el);
93
+ expect(el.checked, "checked initially").to.be.true;
94
+ el.click();
95
+ await elementUpdated(el);
96
+ expect(el.checked, "unchecked").to.be.false;
97
+ el.click();
98
+ await elementUpdated(el);
99
+ expect(el.checked, "checked again").to.be.true;
100
+ });
101
+ it("respects checked attribute", () => {
102
+ let el = testFixture.querySelector("#checkbox0");
103
+ expect(el.checked).to.be.false;
104
+ el = testFixture.querySelector("#checkbox1");
105
+ expect(el.checked).to.be.true;
106
+ });
107
+ it("handles click events", async () => {
108
+ const el = testFixture.querySelector("#checkbox1");
109
+ expect(el.checked).to.be.true;
110
+ inputForCheckbox(el).click();
111
+ await elementUpdated(el);
112
+ expect(el.checked).to.be.false;
113
+ });
114
+ it("can have `change` events cancelled", async () => {
115
+ const el = testFixture.querySelector("#checkbox0");
116
+ await elementUpdated(el);
117
+ expect(el.checked).to.be.false;
118
+ inputForCheckbox(el).click();
119
+ await elementUpdated(el);
120
+ expect(el.checked).to.be.true;
121
+ el.addEventListener("change", (event) => event.preventDefault());
122
+ inputForCheckbox(el).click();
123
+ await elementUpdated(el);
124
+ expect(el.checked).to.be.true;
125
+ });
126
+ it("maintains its value when [readonly]", async () => {
127
+ const el = await fixture(html`
120
128
  <sp-checkbox id="checkbox0" checked readonly>Component</sp-checkbox>
121
129
  `);
122
- expect(el.checked).to.be.true;
123
- inputForCheckbox(el).click();
124
- await elementUpdated(el);
125
- expect(el.checked).to.be.true;
126
- });
130
+ expect(el.checked).to.be.true;
131
+ inputForCheckbox(el).click();
132
+ await elementUpdated(el);
133
+ expect(el.checked).to.be.true;
134
+ });
127
135
  });
128
- //# sourceMappingURL=checkbox.test.js.map
136
+ //# sourceMappingURL=checkbox.test.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"checkbox.test.js","sourceRoot":"","sources":["checkbox.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EACH,cAAc,EACd,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,EACd,SAAS,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,sDAAsD,CAAC;AAE9D,SAAS,gBAAgB,CAAC,QAAkB;IACxC,IAAI,CAAC,QAAQ,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;IAC3D,OAAO,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAqB,CAAC;AAC3E,CAAC;AAED,SAAS,oBAAoB,CAAC,QAAkB;IAC5C,IAAI,CAAC,QAAQ,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;IAC3D,MAAM,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACzD,IAAI,CAAC,MAAM,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC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AC,KAAK,EAAE,CAAC;QAC7B,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAClC,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-checkbox.js';\nimport { Checkbox } from '../';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n triggerBlurFor,\n waitUntil,\n} from '@open-wc/testing';\nimport '@spectrum-web-components/shared/src/focus-visible.js';\n\nfunction inputForCheckbox(checkbox: Checkbox): HTMLInputElement {\n if (!checkbox.shadowRoot) throw new Error('No shadowRoot');\n return checkbox.shadowRoot.querySelector('#input') as HTMLInputElement;\n}\n\nfunction labelNodeForCheckbox(checkbox: Checkbox): Node {\n if (!checkbox.shadowRoot) throw new Error('No shadowRoot');\n const slotEl = checkbox.shadowRoot.querySelector('slot');\n if (!slotEl) {\n throw new Error('Failed to find slot in shadowRoot');\n }\n return slotEl.assignedNodes()[0];\n}\ndescribe('Checkbox', () => {\n let testFixture: HTMLDivElement;\n\n beforeEach(async () => {\n testFixture = await fixture<HTMLDivElement>(\n html`\n <div>\n <div id=\"test-checkbox\">\n <sp-checkbox id=\"checkbox0\" tabindex=\"5\">\n Component\n </sp-checkbox>\n <sp-checkbox id=\"checkbox1\" tabindex=\"2\" checked>\n Check 1\n </sp-checkbox>\n <sp-checkbox id=\"checkbox2\" tabindex=\"3\" disabled>\n Check 2\n </sp-checkbox>\n <sp-checkbox id=\"checkbox3\" tabindex=\"1\" autofocus>\n Check 3\n </sp-checkbox>\n <sp-checkbox id=\"checkbox4\" tabindex=\"0\">\n Check 4\n </sp-checkbox>\n <sp-checkbox id=\"checkbox5\" tabindex=\"-1\">\n Check 5\n </sp-checkbox>\n </div>\n </div>\n `\n );\n });\n\n it('loads', async () => {\n const el = testFixture.querySelector('sp-checkbox') as Checkbox;\n expect(el).to.not.equal(undefined);\n const textNode = labelNodeForCheckbox(el);\n const content = (textNode.textContent || '').trim();\n expect(content).to.equal('Component');\n });\n\n it('loads default checkbox accessibly', async () => {\n const el = await fixture<Checkbox>(\n html`\n <sp-checkbox>Not Checked</sp-checkbox>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n\n it('loads `checked` checkbox accessibly', async () => {\n const el = await fixture<Checkbox>(\n html`\n <sp-checkbox checked>Checked</sp-checkbox>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n\n it('is `invalid` checkbox accessibly', async () => {\n const el = await fixture<Checkbox>(\n html`\n <sp-checkbox invalid>Invalid Checked</sp-checkbox>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n\n it('autofocuses', async () => {\n const autoElement = testFixture.querySelector(\n 'sp-checkbox[autofocus]'\n ) as Checkbox;\n\n expect(autoElement).to.exist;\n await waitUntil(\n () => document.activeElement === autoElement,\n 'Autofocused'\n );\n\n await triggerBlurFor(autoElement);\n\n expect(document.activeElement).to.not.equal(autoElement);\n });\n\n it('`click()`ing host clicks `focusElement`', async () => {\n const el = await fixture<Checkbox>(\n html`\n <sp-checkbox checked autofocus>Checked</sp-checkbox>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.checked, 'checked initially').to.be.true;\n\n el.click();\n await elementUpdated(el);\n\n expect(el.checked, 'unchecked').to.be.false;\n\n el.click();\n await elementUpdated(el);\n\n expect(el.checked, 'checked again').to.be.true;\n });\n\n it('respects checked attribute', () => {\n let el = testFixture.querySelector('#checkbox0') as Checkbox;\n expect(el.checked).to.be.false;\n\n el = testFixture.querySelector('#checkbox1') as Checkbox;\n expect(el.checked).to.be.true;\n });\n\n it('handles click events', async () => {\n const el = testFixture.querySelector('#checkbox1') as Checkbox;\n expect(el.checked).to.be.true;\n\n inputForCheckbox(el).click();\n await elementUpdated(el);\n\n expect(el.checked).to.be.false;\n });\n\n it('maintains its value when [readonly]', async () => {\n const el = await fixture<Checkbox>(html`\n <sp-checkbox id=\"checkbox0\" checked readonly>Component</sp-checkbox>\n `);\n expect(el.checked).to.be.true;\n\n inputForCheckbox(el).click();\n await elementUpdated(el);\n\n expect(el.checked).to.be.true;\n });\n});\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["checkbox.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/checkbox/sp-checkbox.js';\nimport { Checkbox } from '../';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n triggerBlurFor,\n waitUntil,\n} from '@open-wc/testing';\nimport '@spectrum-web-components/shared/src/focus-visible.js';\n\nfunction inputForCheckbox(checkbox: Checkbox): HTMLInputElement {\n if (!checkbox.shadowRoot) throw new Error('No shadowRoot');\n return checkbox.shadowRoot.querySelector('#input') as HTMLInputElement;\n}\n\nfunction labelNodeForCheckbox(checkbox: Checkbox): Node {\n if (!checkbox.shadowRoot) throw new Error('No shadowRoot');\n const slotEl = checkbox.shadowRoot.querySelector('slot');\n if (!slotEl) {\n throw new Error('Failed to find slot in shadowRoot');\n }\n return slotEl.assignedNodes()[0];\n}\ndescribe('Checkbox', () => {\n let testFixture: HTMLDivElement;\n\n beforeEach(async () => {\n testFixture = await fixture<HTMLDivElement>(\n html`\n <div>\n <div id=\"test-checkbox\">\n <sp-checkbox id=\"checkbox0\" tabindex=\"5\">\n Component\n </sp-checkbox>\n <sp-checkbox id=\"checkbox1\" tabindex=\"2\" checked>\n Check 1\n </sp-checkbox>\n <sp-checkbox id=\"checkbox2\" tabindex=\"3\" disabled>\n Check 2\n </sp-checkbox>\n <sp-checkbox id=\"checkbox3\" tabindex=\"1\" autofocus>\n Check 3\n </sp-checkbox>\n <sp-checkbox id=\"checkbox4\" tabindex=\"0\">\n Check 4\n </sp-checkbox>\n <sp-checkbox id=\"checkbox5\" tabindex=\"-1\">\n Check 5\n </sp-checkbox>\n </div>\n </div>\n `\n );\n });\n\n it('loads', async () => {\n const el = testFixture.querySelector('sp-checkbox') as Checkbox;\n expect(el).to.not.equal(undefined);\n const textNode = labelNodeForCheckbox(el);\n const content = (textNode.textContent || '').trim();\n expect(content).to.equal('Component');\n });\n\n it('loads default checkbox accessibly', async () => {\n const el = await fixture<Checkbox>(\n html`\n <sp-checkbox>Not Checked</sp-checkbox>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n\n it('loads `checked` checkbox accessibly', async () => {\n const el = await fixture<Checkbox>(\n html`\n <sp-checkbox checked>Checked</sp-checkbox>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n\n it('is `invalid` checkbox accessibly', async () => {\n const el = await fixture<Checkbox>(\n html`\n <sp-checkbox invalid>Invalid Checked</sp-checkbox>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n\n it('autofocuses', async () => {\n const autoElement = testFixture.querySelector(\n 'sp-checkbox[autofocus]'\n ) as Checkbox;\n\n expect(autoElement).to.exist;\n await waitUntil(\n () => document.activeElement === autoElement,\n 'Autofocused'\n );\n\n await triggerBlurFor(autoElement);\n\n expect(document.activeElement).to.not.equal(autoElement);\n });\n\n it('`click()`ing host clicks `focusElement`', async () => {\n const el = await fixture<Checkbox>(\n html`\n <sp-checkbox checked autofocus>Checked</sp-checkbox>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.checked, 'checked initially').to.be.true;\n\n el.click();\n await elementUpdated(el);\n\n expect(el.checked, 'unchecked').to.be.false;\n\n el.click();\n await elementUpdated(el);\n\n expect(el.checked, 'checked again').to.be.true;\n });\n\n it('respects checked attribute', () => {\n let el = testFixture.querySelector('#checkbox0') as Checkbox;\n expect(el.checked).to.be.false;\n\n el = testFixture.querySelector('#checkbox1') as Checkbox;\n expect(el.checked).to.be.true;\n });\n\n it('handles click events', async () => {\n const el = testFixture.querySelector('#checkbox1') as Checkbox;\n expect(el.checked).to.be.true;\n\n inputForCheckbox(el).click();\n await elementUpdated(el);\n\n expect(el.checked).to.be.false;\n });\n\n it('can have `change` events cancelled', async () => {\n const el = testFixture.querySelector('#checkbox0') as Checkbox;\n await elementUpdated(el);\n expect(el.checked).to.be.false;\n\n inputForCheckbox(el).click();\n await elementUpdated(el);\n\n expect(el.checked).to.be.true;\n\n el.addEventListener('change', (event: Event) => event.preventDefault());\n inputForCheckbox(el).click();\n await elementUpdated(el);\n\n expect(el.checked).to.be.true;\n });\n\n it('maintains its value when [readonly]', async () => {\n const el = await fixture<Checkbox>(html`\n <sp-checkbox id=\"checkbox0\" checked readonly>Component</sp-checkbox>\n `);\n expect(el.checked).to.be.true;\n\n inputForCheckbox(el).click();\n await elementUpdated(el);\n\n expect(el.checked).to.be.true;\n });\n});\n"],
5
+ "mappings": "AAYA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;AAEA,0BAA0B,UAAsC;AAC5D,MAAI,CAAC,SAAS;AAAY,UAAM,IAAI,MAAM,eAAe;AACzD,SAAO,SAAS,WAAW,cAAc,QAAQ;AACrD;AAEA,8BAA8B,UAA0B;AACpD,MAAI,CAAC,SAAS;AAAY,UAAM,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