@spectrum-web-components/color-loupe 0.33.3-overlay.66 → 0.34.1-rc.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/color-loupe",
3
- "version": "0.33.3-overlay.66+30e96d5ea",
3
+ "version": "0.34.1-rc.0+1647bfed5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,7 +57,7 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.33.3-overlay.66+30e96d5ea"
60
+ "@spectrum-web-components/base": "^0.34.1-rc.0+1647bfed5"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@spectrum-css/colorloupe": "^4.1.0"
@@ -68,5 +68,5 @@
68
68
  "./sp-*.js",
69
69
  "./**/*.dev.js"
70
70
  ],
71
- "gitHead": "30e96d5eaed31b7b2af916d78cabccb722889fe3"
71
+ "gitHead": "1647bfed54cb29f3513343cd0d2c2d9e73e1c508"
72
72
  }
@@ -28,6 +28,7 @@ export class ColorLoupe extends SpectrumElement {
28
28
  render() {
29
29
  return html`
30
30
  <svg
31
+ aria-hidden="true"
31
32
  class="spectrum-ColorLoupe is-open"
32
33
  overflow="visible"
33
34
  style="--spectrum-picked-color: ${this.color}; position: absolute;"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["ColorLoupe.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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './color-loupe.css.js';\n\n/**\n * @element sp-color-loupe\n */\nexport class ColorLoupe extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String })\n public color = 'rgba(255, 0, 0, 0.5)';\n\n protected override render(): TemplateResult {\n return html`\n <svg\n class=\"spectrum-ColorLoupe is-open\"\n overflow=\"visible\"\n style=\"--spectrum-picked-color: ${this\n .color}; position: absolute;\"\n >\n <defs>\n <path\n id=\"loupe-path\"\n d=\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\"\n transform=\"translate(2, 2)\"\n />\n <mask id=\"loupe-mask\">\n <rect\n x=\"0\"\n y=\"0\"\n height=\"100\"\n width=\"100\"\n fill=\"white\"\n />\n <use xlink:href=\"#path\" fill=\"black\" />\n </mask>\n <pattern\n id=\"checkerboard-primary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"16\"\n height=\"16\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"8\" height=\"8\" />\n <rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" />\n </pattern>\n <pattern\n id=\"checkerboard-secondary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"20\"\n height=\"20\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"10\" height=\"10\" />\n <rect x=\"10\" y=\"10\" width=\"10\" height=\"10\" />\n </pattern>\n </defs>\n\n <g class=\"spectrum-ColorLoupe-loupe\">\n <g>\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-background\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-fill\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-inner-border\"\n />\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n class=\"spectrum-ColorLoupe-outer-border\"\n />\n </g>\n </g>\n </svg>\n `;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,OAAO,YAAY;AAKZ,aAAM,mBAAmB,gBAAgB;AAAA,EAAzC;AAAA;AAMH,SAAO,OAAO;AAGd,SAAO,QAAQ;AAAA;AAAA,EARf,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAQmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA;AAAA,kDAImC,KAC7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA+DjB;AACJ;AA3EW;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GALjC,WAMF;AAGA;AAAA,EADN,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GARjB,WASF;",
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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './color-loupe.css.js';\n\n/**\n * @element sp-color-loupe\n */\nexport class ColorLoupe extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String })\n public color = 'rgba(255, 0, 0, 0.5)';\n\n protected override render(): TemplateResult {\n return html`\n <svg\n aria-hidden=\"true\"\n class=\"spectrum-ColorLoupe is-open\"\n overflow=\"visible\"\n style=\"--spectrum-picked-color: ${this\n .color}; position: absolute;\"\n >\n <defs>\n <path\n id=\"loupe-path\"\n d=\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\"\n transform=\"translate(2, 2)\"\n />\n <mask id=\"loupe-mask\">\n <rect\n x=\"0\"\n y=\"0\"\n height=\"100\"\n width=\"100\"\n fill=\"white\"\n />\n <use xlink:href=\"#path\" fill=\"black\" />\n </mask>\n <pattern\n id=\"checkerboard-primary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"16\"\n height=\"16\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"8\" height=\"8\" />\n <rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" />\n </pattern>\n <pattern\n id=\"checkerboard-secondary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"20\"\n height=\"20\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"10\" height=\"10\" />\n <rect x=\"10\" y=\"10\" width=\"10\" height=\"10\" />\n </pattern>\n </defs>\n\n <g class=\"spectrum-ColorLoupe-loupe\">\n <g>\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-background\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-fill\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-inner-border\"\n />\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n class=\"spectrum-ColorLoupe-outer-border\"\n />\n </g>\n </g>\n </svg>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,OAAO,YAAY;AAKZ,aAAM,mBAAmB,gBAAgB;AAAA,EAAzC;AAAA;AAMH,SAAO,OAAO;AAGd,SAAO,QAAQ;AAAA;AAAA,EARf,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAQmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA,kDAKmC,KAC7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA+DjB;AACJ;AA5EW;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GALjC,WAMF;AAGA;AAAA,EADN,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GARjB,WASF;",
6
6
  "names": []
7
7
  }
package/src/ColorLoupe.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var a=(o,r,s,t)=>{for(var e=t>1?void 0:t?u(r,s):r,l=o.length-1,p;l>=0;l--)(p=o[l])&&(e=(t?p(r,s,e):p(e))||e);return t&&e&&i(r,s,e),e};import{html as h,SpectrumElement as n}from"@spectrum-web-components/base";import{property as c}from"@spectrum-web-components/base/src/decorators.js";import d from"./color-loupe.css.js";export class ColorLoupe extends n{constructor(){super(...arguments);this.open=!1;this.color="rgba(255, 0, 0, 0.5)"}static get styles(){return[d]}render(){return h`
2
2
  <svg
3
+ aria-hidden="true"
3
4
  class="spectrum-ColorLoupe is-open"
4
5
  overflow="visible"
5
6
  style="--spectrum-picked-color: ${this.color}; position: absolute;"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["ColorLoupe.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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './color-loupe.css.js';\n\n/**\n * @element sp-color-loupe\n */\nexport class ColorLoupe extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String })\n public color = 'rgba(255, 0, 0, 0.5)';\n\n protected override render(): TemplateResult {\n return html`\n <svg\n class=\"spectrum-ColorLoupe is-open\"\n overflow=\"visible\"\n style=\"--spectrum-picked-color: ${this\n .color}; position: absolute;\"\n >\n <defs>\n <path\n id=\"loupe-path\"\n d=\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\"\n transform=\"translate(2, 2)\"\n />\n <mask id=\"loupe-mask\">\n <rect\n x=\"0\"\n y=\"0\"\n height=\"100\"\n width=\"100\"\n fill=\"white\"\n />\n <use xlink:href=\"#path\" fill=\"black\" />\n </mask>\n <pattern\n id=\"checkerboard-primary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"16\"\n height=\"16\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"8\" height=\"8\" />\n <rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" />\n </pattern>\n <pattern\n id=\"checkerboard-secondary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"20\"\n height=\"20\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"10\" height=\"10\" />\n <rect x=\"10\" y=\"10\" width=\"10\" height=\"10\" />\n </pattern>\n </defs>\n\n <g class=\"spectrum-ColorLoupe-loupe\">\n <g>\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-background\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-fill\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-inner-border\"\n />\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n class=\"spectrum-ColorLoupe-outer-border\"\n />\n </g>\n </g>\n </svg>\n `;\n }\n}\n"],
5
- "mappings": "qNAYA,OAEI,QAAAA,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAOC,MAAY,uBAKZ,aAAM,mBAAmBF,CAAgB,CAAzC,kCAMH,KAAO,KAAO,GAGd,KAAO,MAAQ,uBARf,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAM,CAClB,CAQmB,QAAyB,CACxC,OAAOH;AAAA;AAAA;AAAA;AAAA,kDAImC,KAC7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SA+DjB,CACJ,CA3EWI,EAAA,CADNF,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GALjC,WAMF,oBAGAE,EAAA,CADNF,EAAS,CAAE,KAAM,MAAO,CAAC,GARjB,WASF",
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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './color-loupe.css.js';\n\n/**\n * @element sp-color-loupe\n */\nexport class ColorLoupe extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String })\n public color = 'rgba(255, 0, 0, 0.5)';\n\n protected override render(): TemplateResult {\n return html`\n <svg\n aria-hidden=\"true\"\n class=\"spectrum-ColorLoupe is-open\"\n overflow=\"visible\"\n style=\"--spectrum-picked-color: ${this\n .color}; position: absolute;\"\n >\n <defs>\n <path\n id=\"loupe-path\"\n d=\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\"\n transform=\"translate(2, 2)\"\n />\n <mask id=\"loupe-mask\">\n <rect\n x=\"0\"\n y=\"0\"\n height=\"100\"\n width=\"100\"\n fill=\"white\"\n />\n <use xlink:href=\"#path\" fill=\"black\" />\n </mask>\n <pattern\n id=\"checkerboard-primary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"16\"\n height=\"16\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"8\" height=\"8\" />\n <rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" />\n </pattern>\n <pattern\n id=\"checkerboard-secondary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"20\"\n height=\"20\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"10\" height=\"10\" />\n <rect x=\"10\" y=\"10\" width=\"10\" height=\"10\" />\n </pattern>\n </defs>\n\n <g class=\"spectrum-ColorLoupe-loupe\">\n <g>\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-background\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-fill\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-inner-border\"\n />\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n class=\"spectrum-ColorLoupe-outer-border\"\n />\n </g>\n </g>\n </svg>\n `;\n }\n}\n"],
5
+ "mappings": "qNAYA,OAEI,QAAAA,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAOC,MAAY,uBAKZ,aAAM,mBAAmBF,CAAgB,CAAzC,kCAMH,KAAO,KAAO,GAGd,KAAO,MAAQ,uBARf,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAM,CAClB,CAQmB,QAAyB,CACxC,OAAOH;AAAA;AAAA;AAAA;AAAA;AAAA,kDAKmC,KAC7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SA+DjB,CACJ,CA5EWI,EAAA,CADNF,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GALjC,WAMF,oBAGAE,EAAA,CADNF,EAAS,CAAE,KAAM,MAAO,CAAC,GARjB,WASF",
6
6
  "names": ["html", "SpectrumElement", "property", "styles", "__decorateClass"]
7
7
  }
@@ -18,6 +18,10 @@ describe("ColorLoupe", () => {
18
18
  );
19
19
  await elementUpdated(el);
20
20
  await expect(el).to.be.accessible();
21
+ expect(el.shadowRoot.querySelector("svg")).to.have.attribute(
22
+ "aria-hidden",
23
+ "true"
24
+ );
21
25
  });
22
26
  });
23
27
  //# sourceMappingURL=color-loupe.test.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["color-loupe.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 { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '@spectrum-web-components/color-loupe/sp-color-loupe.js';\nimport { ColorLoupe } from '@spectrum-web-components/color-loupe';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('ColorLoupe', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<ColorLoupe>(\n html`\n <sp-color-loupe></sp-color-loupe>\n `\n )\n );\n it('loads default color-loupe accessibly', async () => {\n const el = await fixture<ColorLoupe>(\n html`\n <sp-color-loupe></sp-color-loupe>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"],
5
- "mappings": ";AAYA,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AAEtD,OAAO;AAEP,SAAS,6BAA6B;AAEtC,SAAS,cAAc,MAAM;AACzB;AAAA,IACI,YACI,MAAM;AAAA,MACF;AAAA;AAAA;AAAA,IAGJ;AAAA,EACR;AACA,KAAG,wCAAwC,YAAY;AACnD,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACL,CAAC;",
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 { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '@spectrum-web-components/color-loupe/sp-color-loupe.js';\nimport { ColorLoupe } from '@spectrum-web-components/color-loupe';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('ColorLoupe', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<ColorLoupe>(\n html`\n <sp-color-loupe></sp-color-loupe>\n `\n )\n );\n it('loads default color-loupe accessibly', async () => {\n const el = await fixture<ColorLoupe>(\n html`\n <sp-color-loupe></sp-color-loupe>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n\n // SVG should be hidden from screen readers.\n expect(el.shadowRoot.querySelector('svg')).to.have.attribute(\n 'aria-hidden',\n 'true'\n );\n });\n});\n"],
5
+ "mappings": ";AAYA,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AAEtD,OAAO;AAEP,SAAS,6BAA6B;AAEtC,SAAS,cAAc,MAAM;AACzB;AAAA,IACI,YACI,MAAM;AAAA,MACF;AAAA;AAAA;AAAA,IAGJ;AAAA,EACR;AACA,KAAG,wCAAwC,YAAY;AACnD,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAGlC,WAAO,GAAG,WAAW,cAAc,KAAK,CAAC,EAAE,GAAG,KAAK;AAAA,MAC/C;AAAA,MACA;AAAA,IACJ;AAAA,EACJ,CAAC;AACL,CAAC;",
6
6
  "names": []
7
7
  }