@spectrum-web-components/asset 0.6.9 → 0.6.11-devmode.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/asset",
3
- "version": "0.6.9",
3
+ "version": "0.6.11-devmode.7+8303f3a2a",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,11 +20,24 @@
20
20
  "module": "./src/index.js",
21
21
  "type": "module",
22
22
  "exports": {
23
- ".": "./src/index.js",
24
- "./src/*": "./src/*",
23
+ ".": {
24
+ "development": "./src/index.dev.js",
25
+ "default": "./src/index.js"
26
+ },
25
27
  "./package.json": "./package.json",
26
- "./sp-asset": "./sp-asset.js",
27
- "./sp-asset.js": "./sp-asset.js"
28
+ "./src/Asset.js": {
29
+ "development": "./src/Asset.dev.js",
30
+ "default": "./src/Asset.js"
31
+ },
32
+ "./src/asset.css.js": "./src/asset.css.js",
33
+ "./src/index.js": {
34
+ "development": "./src/index.dev.js",
35
+ "default": "./src/index.js"
36
+ },
37
+ "./sp-asset.js": {
38
+ "development": "./sp-asset.dev.js",
39
+ "default": "./sp-asset.js"
40
+ }
28
41
  },
29
42
  "scripts": {
30
43
  "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
@@ -44,16 +57,16 @@
44
57
  "lit-html"
45
58
  ],
46
59
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.5.8",
60
+ "@spectrum-web-components/base": "^0.5.9-devmode.31+8303f3a2a",
48
61
  "tslib": "^2.0.0"
49
62
  },
50
63
  "devDependencies": {
51
- "@spectrum-css/asset": "^3.0.20"
64
+ "@spectrum-css/asset": "^3.0.22"
52
65
  },
53
66
  "types": "./src/index.d.ts",
54
67
  "customElements": "custom-elements.json",
55
68
  "sideEffects": [
56
69
  "./sp-*.js"
57
70
  ],
58
- "gitHead": "e5cd4a0db2201b8126eb9133ac3c24172d086359"
71
+ "gitHead": "8303f3a2a90b0aedc15158797662ccfa8f4a2031"
59
72
  }
@@ -0,0 +1,3 @@
1
+ import { Asset } from "./src/Asset.dev.js";
2
+ customElements.define("sp-asset", Asset);
3
+ //# sourceMappingURL=sp-asset.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-asset.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 { Asset } from './src/Asset.dev.js'\n\ncustomElements.define('sp-asset', Asset);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-asset': Asset;\n }\n}\n"],
5
+ "mappings": "AAYA;AAEA,eAAe,OAAO,YAAY,KAAK;",
6
+ "names": []
7
+ }
package/sp-asset.js CHANGED
@@ -1,14 +1,3 @@
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 { Asset } from './src/Asset.js';
13
- customElements.define('sp-asset', Asset);
14
- //# sourceMappingURL=sp-asset.js.map
1
+ import { Asset } from "./src/Asset.js";
2
+ customElements.define("sp-asset", Asset);
3
+ //# sourceMappingURL=sp-asset.js.map
package/sp-asset.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"file":"sp-asset.js","sourceRoot":"","sources":["sp-asset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,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 { Asset } from './src/Asset.js';\n\ncustomElements.define('sp-asset', Asset);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-asset': Asset;\n }\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-asset.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 { Asset } from './src/Asset.js';\n\ncustomElements.define('sp-asset', Asset);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-asset': Asset;\n }\n}\n"],
5
+ "mappings": "AAYA;AAEA,eAAe,OAAO,YAAY,KAAK;",
6
+ "names": []
7
+ }
@@ -0,0 +1,77 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result)
9
+ __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ SpectrumElement
15
+ } from "@spectrum-web-components/base";
16
+ import { property } from "@spectrum-web-components/base/src/decorators.js";
17
+ import styles from "./asset.css.js";
18
+ const file = (label) => html`
19
+ <svg
20
+ class="file"
21
+ role="img"
22
+ viewBox="0 0 128 128"
23
+ aria-label=${label || "File"}
24
+ >
25
+ <path
26
+ class="fileBackground"
27
+ d="M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z"
28
+ ></path>
29
+ <path
30
+ class="fileOutline"
31
+ d="M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z"
32
+ ></path>
33
+ </svg>
34
+ `;
35
+ const folder = (label) => html`
36
+ <svg
37
+ class="folder"
38
+ role="img"
39
+ viewBox="0 0 32 32"
40
+ aria-label=${label || "Folder"}
41
+ >
42
+ <path
43
+ class="folderBackground"
44
+ d="M3,29.5c-1.4,0-2.5-1.1-2.5-2.5V5c0-1.4,1.1-2.5,2.5-2.5h10.1c0.5,0,1,0.2,1.4,0.6l3.1,3.1c0.2,0.2,0.4,0.3,0.7,0.3H29c1.4,0,2.5,1.1,2.5,2.5v18c0,1.4-1.1,2.5-2.5,2.5H3z"
45
+ ></path>
46
+ <path
47
+ class="folderOutline"
48
+ d="M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z"
49
+ ></path>
50
+ </svg>
51
+ `;
52
+ export class Asset extends SpectrumElement {
53
+ constructor() {
54
+ super(...arguments);
55
+ this.label = "";
56
+ }
57
+ static get styles() {
58
+ return [styles];
59
+ }
60
+ render() {
61
+ if (this.variant === "file") {
62
+ return file(this.label);
63
+ } else if (this.variant === "folder") {
64
+ return folder(this.label);
65
+ }
66
+ return html`
67
+ <slot></slot>
68
+ `;
69
+ }
70
+ }
71
+ __decorateClass([
72
+ property({ type: String, reflect: true })
73
+ ], Asset.prototype, "variant", 2);
74
+ __decorateClass([
75
+ property()
76
+ ], Asset.prototype, "label", 2);
77
+ //# sourceMappingURL=Asset.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Asset.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 './asset.css.js';\n\nconst file = (label: string): TemplateResult => html`\n <svg\n class=\"file\"\n role=\"img\"\n viewBox=\"0 0 128 128\"\n aria-label=${label || 'File'}\n >\n <path\n class=\"fileBackground\"\n d=\"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z\"\n ></path>\n <path\n class=\"fileOutline\"\n d=\"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z\"\n ></path>\n </svg>\n`;\n\nconst folder = (label: string): TemplateResult => html`\n <svg\n class=\"folder\"\n role=\"img\"\n viewBox=\"0 0 32 32\"\n aria-label=${label || 'Folder'}\n >\n <path\n class=\"folderBackground\"\n d=\"M3,29.5c-1.4,0-2.5-1.1-2.5-2.5V5c0-1.4,1.1-2.5,2.5-2.5h10.1c0.5,0,1,0.2,1.4,0.6l3.1,3.1c0.2,0.2,0.4,0.3,0.7,0.3H29c1.4,0,2.5,1.1,2.5,2.5v18c0,1.4-1.1,2.5-2.5,2.5H3z\"\n ></path>\n <path\n class=\"folderOutline\"\n d=\"M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z\"\n ></path>\n </svg>\n`;\n\n/**\n * @element sp-asset\n * @slot - content to be displayed in the asset when an acceptable value for `file` is not present\n */\nexport class Asset extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, reflect: true })\n public variant: 'file' | 'folder' | undefined;\n\n @property()\n public label = '';\n\n protected override render(): TemplateResult {\n if (this.variant === 'file') {\n return file(this.label);\n } else if (this.variant === 'folder') {\n return folder(this.label);\n }\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAMA;AAEA;AAEA,MAAM,OAAO,CAAC,UAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK3B,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAa9B,MAAM,SAAS,CAAC,UAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK7B,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBvB,aAAM,cAAc,gBAAgB;AAAA,EAApC;AAAA;AASI,iBAAQ;AAAA;AAAA,aARY,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAQmB,SAAyB;AACxC,QAAI,KAAK,YAAY,QAAQ;AACzB,aAAO,KAAK,KAAK,KAAK;AAAA,IAC1B,WAAW,KAAK,YAAY,UAAU;AAClC,aAAO,OAAO,KAAK,KAAK;AAAA,IAC5B;AACA,WAAO;AAAA;AAAA;AAAA,EAGX;AACJ;AAfW;AAAA,EADP,AAAC,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAClC,AANJ,MAMI;AAGA;AAAA,EADP,AAAC,SAAS;AAAA,GACH,AATJ,MASI;",
6
+ "names": []
7
+ }
package/src/Asset.js CHANGED
@@ -1,24 +1,26 @@
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 { __decorate } from "tslib";
13
- import { html, SpectrumElement, } from '@spectrum-web-components/base';
14
- import { property } from '@spectrum-web-components/base/src/decorators.js';
15
- import styles from './asset.css.js';
16
- const file = (label) => html `
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result)
9
+ __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ SpectrumElement
15
+ } from "@spectrum-web-components/base";
16
+ import { property } from "@spectrum-web-components/base/src/decorators.js";
17
+ import styles from "./asset.css.js";
18
+ const file = (label) => html`
17
19
  <svg
18
20
  class="file"
19
21
  role="img"
20
22
  viewBox="0 0 128 128"
21
- aria-label=${label || 'File'}
23
+ aria-label=${label || "File"}
22
24
  >
23
25
  <path
24
26
  class="fileBackground"
@@ -30,12 +32,12 @@ const file = (label) => html `
30
32
  ></path>
31
33
  </svg>
32
34
  `;
33
- const folder = (label) => html `
35
+ const folder = (label) => html`
34
36
  <svg
35
37
  class="folder"
36
38
  role="img"
37
39
  viewBox="0 0 32 32"
38
- aria-label=${label || 'Folder'}
40
+ aria-label=${label || "Folder"}
39
41
  >
40
42
  <path
41
43
  class="folderBackground"
@@ -47,34 +49,29 @@ const folder = (label) => html `
47
49
  ></path>
48
50
  </svg>
49
51
  `;
50
- /**
51
- * @element sp-asset
52
- * @slot - content to be displayed in the asset when an acceptable value for `file` is not present
53
- */
54
52
  export class Asset extends SpectrumElement {
55
- constructor() {
56
- super(...arguments);
57
- this.label = '';
53
+ constructor() {
54
+ super(...arguments);
55
+ this.label = "";
56
+ }
57
+ static get styles() {
58
+ return [styles];
59
+ }
60
+ render() {
61
+ if (this.variant === "file") {
62
+ return file(this.label);
63
+ } else if (this.variant === "folder") {
64
+ return folder(this.label);
58
65
  }
59
- static get styles() {
60
- return [styles];
61
- }
62
- render() {
63
- if (this.variant === 'file') {
64
- return file(this.label);
65
- }
66
- else if (this.variant === 'folder') {
67
- return folder(this.label);
68
- }
69
- return html `
66
+ return html`
70
67
  <slot></slot>
71
68
  `;
72
- }
69
+ }
73
70
  }
74
- __decorate([
75
- property({ type: String, reflect: true })
76
- ], Asset.prototype, "variant", void 0);
77
- __decorate([
78
- property()
79
- ], Asset.prototype, "label", void 0);
80
- //# sourceMappingURL=Asset.js.map
71
+ __decorateClass([
72
+ property({ type: String, reflect: true })
73
+ ], Asset.prototype, "variant", 2);
74
+ __decorateClass([
75
+ property()
76
+ ], Asset.prototype, "label", 2);
77
+ //# sourceMappingURL=Asset.js.map
package/src/Asset.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"file":"Asset.js","sourceRoot":"","sources":["Asset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,IAAI,EACJ,eAAe,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAEpC,MAAM,IAAI,GAAG,CAAC,KAAa,EAAkB,EAAE,CAAC,IAAI,CAAA;;;;;qBAK/B,KAAK,IAAI,MAAM;;;;;;;;;;;CAWnC,CAAC;AAEF,MAAM,MAAM,GAAG,CAAC,KAAa,EAAkB,EAAE,CAAC,IAAI,CAAA;;;;;qBAKjC,KAAK,IAAI,QAAQ;;;;;;;;;;;CAWrC,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,KAAM,SAAQ,eAAe;IAA1C;;QASW,UAAK,GAAG,EAAE,CAAC;IAYtB,CAAC;IApBU,MAAM,KAAc,MAAM;QAC7B,OAAO,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;IAQkB,MAAM;QACrB,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM,EAAE;YACzB,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC3B;aAAM,IAAI,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;YAClC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAA;;SAEV,CAAC;IACN,CAAC;CACJ;AAfG;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCACI;AAG9C;IADC,QAAQ,EAAE;oCACO","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 './asset.css.js';\n\nconst file = (label: string): TemplateResult => html`\n <svg\n class=\"file\"\n role=\"img\"\n viewBox=\"0 0 128 128\"\n aria-label=${label || 'File'}\n >\n <path\n class=\"fileBackground\"\n d=\"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z\"\n ></path>\n <path\n class=\"fileOutline\"\n d=\"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z\"\n ></path>\n </svg>\n`;\n\nconst folder = (label: string): TemplateResult => html`\n <svg\n class=\"folder\"\n role=\"img\"\n viewBox=\"0 0 32 32\"\n aria-label=${label || 'Folder'}\n >\n <path\n class=\"folderBackground\"\n d=\"M3,29.5c-1.4,0-2.5-1.1-2.5-2.5V5c0-1.4,1.1-2.5,2.5-2.5h10.1c0.5,0,1,0.2,1.4,0.6l3.1,3.1c0.2,0.2,0.4,0.3,0.7,0.3H29c1.4,0,2.5,1.1,2.5,2.5v18c0,1.4-1.1,2.5-2.5,2.5H3z\"\n ></path>\n <path\n class=\"folderOutline\"\n d=\"M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z\"\n ></path>\n </svg>\n`;\n\n/**\n * @element sp-asset\n * @slot - content to be displayed in the asset when an acceptable value for `file` is not present\n */\nexport class Asset extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, reflect: true })\n public variant: 'file' | 'folder' | undefined;\n\n @property()\n public label = '';\n\n protected override render(): TemplateResult {\n if (this.variant === 'file') {\n return file(this.label);\n } else if (this.variant === 'folder') {\n return folder(this.label);\n }\n return html`\n <slot></slot>\n `;\n }\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["Asset.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 './asset.css.js';\n\nconst file = (label: string): TemplateResult => html`\n <svg\n class=\"file\"\n role=\"img\"\n viewBox=\"0 0 128 128\"\n aria-label=${label || 'File'}\n >\n <path\n class=\"fileBackground\"\n d=\"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z\"\n ></path>\n <path\n class=\"fileOutline\"\n d=\"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z\"\n ></path>\n </svg>\n`;\n\nconst folder = (label: string): TemplateResult => html`\n <svg\n class=\"folder\"\n role=\"img\"\n viewBox=\"0 0 32 32\"\n aria-label=${label || 'Folder'}\n >\n <path\n class=\"folderBackground\"\n d=\"M3,29.5c-1.4,0-2.5-1.1-2.5-2.5V5c0-1.4,1.1-2.5,2.5-2.5h10.1c0.5,0,1,0.2,1.4,0.6l3.1,3.1c0.2,0.2,0.4,0.3,0.7,0.3H29c1.4,0,2.5,1.1,2.5,2.5v18c0,1.4-1.1,2.5-2.5,2.5H3z\"\n ></path>\n <path\n class=\"folderOutline\"\n d=\"M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z\"\n ></path>\n </svg>\n`;\n\n/**\n * @element sp-asset\n * @slot - content to be displayed in the asset when an acceptable value for `file` is not present\n */\nexport class Asset extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, reflect: true })\n public variant: 'file' | 'folder' | undefined;\n\n @property()\n public label = '';\n\n protected override render(): TemplateResult {\n if (this.variant === 'file') {\n return file(this.label);\n } else if (this.variant === 'folder') {\n return folder(this.label);\n }\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAMA;AAEA;AAEA,MAAM,OAAO,CAAC,UAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK3B,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAa9B,MAAM,SAAS,CAAC,UAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK7B,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBvB,aAAM,cAAc,gBAAgB;AAAA,EAApC;AAAA;AASI,iBAAQ;AAAA;AAAA,aARY,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAQmB,SAAyB;AACxC,QAAI,KAAK,YAAY,QAAQ;AACzB,aAAO,KAAK,KAAK,KAAK;AAAA,IAC1B,WAAW,KAAK,YAAY,UAAU;AAClC,aAAO,OAAO,KAAK,KAAK;AAAA,IAC5B;AACA,WAAO;AAAA;AAAA;AAAA,EAGX;AACJ;AAfW;AAAA,EADP,AAAC,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAClC,AANJ,MAMI;AAGA;AAAA,EADP,AAAC,SAAS;AAAA,GACH,AATJ,MASI;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
1
+ import { css } from "@spectrum-web-components/base";
2
+ const styles = css`
3
+ :host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(
4
+ --spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)
5
+ );max-width:var(
6
+ --spectrum-asset-icon-max-width,var(--spectrum-global-dimension-static-size-1000)
7
+ );min-width:var(
8
+ --spectrum-asset-icon-min-width,var(--spectrum-global-dimension-size-600)
9
+ );width:100%}.folderBackground{fill:var(
10
+ --spectrum-asset-folder-background-color,var(--spectrum-global-color-gray-300)
11
+ )}.fileBackground{fill:var(
12
+ --spectrum-asset-file-background-color,var(--spectrum-global-color-gray-50)
13
+ )}.fileOutline,.folderOutline{fill:var(
14
+ --spectrum-asset-icon-outline-color,var(--spectrum-global-color-gray-500)
15
+ )}
16
+ `;
17
+ export default styles;
18
+ //# sourceMappingURL=asset.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["asset.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(\n--spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)\n);max-width:var(\n--spectrum-asset-icon-max-width,var(--spectrum-global-dimension-static-size-1000)\n);min-width:var(\n--spectrum-asset-icon-min-width,var(--spectrum-global-dimension-size-600)\n);width:100%}.folderBackground{fill:var(\n--spectrum-asset-folder-background-color,var(--spectrum-global-color-gray-300)\n)}.fileBackground{fill:var(\n--spectrum-asset-file-background-color,var(--spectrum-global-color-gray-50)\n)}.fileOutline,.folderOutline{fill:var(\n--spectrum-asset-icon-outline-color,var(--spectrum-global-color-gray-500)\n)}\n`;\nexport default styles;"],
5
+ "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAef,eAAe;",
6
+ "names": []
7
+ }
package/src/asset.css.js CHANGED
@@ -1,16 +1,5 @@
1
- /*
2
- Copyright 2022 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 { css } from '@spectrum-web-components/base';
13
- const styles = css `
1
+ import { css } from "@spectrum-web-components/base";
2
+ const styles = css`
14
3
  :host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(
15
4
  --spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)
16
5
  );max-width:var(
@@ -26,4 +15,4 @@ const styles = css `
26
15
  )}
27
16
  `;
28
17
  export default styles;
29
- //# sourceMappingURL=asset.css.js.map
18
+ //# sourceMappingURL=asset.css.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"asset.css.js","sourceRoot":"","sources":["asset.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(\n--spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)\n);max-width:var(\n--spectrum-asset-icon-max-width,var(--spectrum-global-dimension-static-size-1000)\n);min-width:var(\n--spectrum-asset-icon-min-width,var(--spectrum-global-dimension-size-600)\n);width:100%}.folderBackground{fill:var(\n--spectrum-asset-folder-background-color,var(--spectrum-global-color-gray-300)\n)}.fileBackground{fill:var(\n--spectrum-asset-file-background-color,var(--spectrum-global-color-gray-50)\n)}.fileOutline,.folderOutline{fill:var(\n--spectrum-asset-icon-outline-color,var(--spectrum-global-color-gray-500)\n)}\n`;\nexport default styles;"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["asset.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(\n--spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)\n);max-width:var(\n--spectrum-asset-icon-max-width,var(--spectrum-global-dimension-static-size-1000)\n);min-width:var(\n--spectrum-asset-icon-min-width,var(--spectrum-global-dimension-size-600)\n);width:100%}.folderBackground{fill:var(\n--spectrum-asset-folder-background-color,var(--spectrum-global-color-gray-300)\n)}.fileBackground{fill:var(\n--spectrum-asset-file-background-color,var(--spectrum-global-color-gray-50)\n)}.fileOutline,.folderOutline{fill:var(\n--spectrum-asset-icon-outline-color,var(--spectrum-global-color-gray-500)\n)}\n`;\nexport default styles;"],
5
+ "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAef,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./Asset.dev.js";
2
+ //# sourceMappingURL=index.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.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\nexport * from './Asset.dev.js'\n"],
5
+ "mappings": "AAYA;",
6
+ "names": []
7
+ }
package/src/index.js CHANGED
@@ -1,13 +1,2 @@
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
- export * from './Asset.js';
13
- //# sourceMappingURL=index.js.map
1
+ export * from "./Asset.js";
2
+ //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,cAAc,YAAY,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\nexport * from './Asset.js';\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.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\nexport * from './Asset.js';\n"],
5
+ "mappings": "AAYA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
1
+ import { css } from "@spectrum-web-components/base";
2
+ const styles = css`
3
+ :host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(
4
+ --spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)
5
+ );max-width:var(
6
+ --spectrum-asset-icon-max-width,var(--spectrum-global-dimension-static-size-1000)
7
+ );min-width:var(
8
+ --spectrum-asset-icon-min-width,var(--spectrum-global-dimension-size-600)
9
+ );width:100%}.folderBackground{fill:var(
10
+ --spectrum-asset-folder-background-color,var(--spectrum-global-color-gray-300)
11
+ )}.fileBackground{fill:var(
12
+ --spectrum-asset-file-background-color,var(--spectrum-global-color-gray-50)
13
+ )}.fileOutline,.folderOutline{fill:var(
14
+ --spectrum-asset-icon-outline-color,var(--spectrum-global-color-gray-500)
15
+ )}
16
+ `;
17
+ export default styles;
18
+ //# sourceMappingURL=spectrum-asset.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["spectrum-asset.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(\n--spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)\n);max-width:var(\n--spectrum-asset-icon-max-width,var(--spectrum-global-dimension-static-size-1000)\n);min-width:var(\n--spectrum-asset-icon-min-width,var(--spectrum-global-dimension-size-600)\n);width:100%}.folderBackground{fill:var(\n--spectrum-asset-folder-background-color,var(--spectrum-global-color-gray-300)\n)}.fileBackground{fill:var(\n--spectrum-asset-file-background-color,var(--spectrum-global-color-gray-50)\n)}.fileOutline,.folderOutline{fill:var(\n--spectrum-asset-icon-outline-color,var(--spectrum-global-color-gray-500)\n)}\n`;\nexport default styles;"],
5
+ "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAef,eAAe;",
6
+ "names": []
7
+ }
@@ -1,16 +1,5 @@
1
- /*
2
- Copyright 2022 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 { css } from '@spectrum-web-components/base';
13
- const styles = css `
1
+ import { css } from "@spectrum-web-components/base";
2
+ const styles = css`
14
3
  :host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(
15
4
  --spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)
16
5
  );max-width:var(
@@ -26,4 +15,4 @@ const styles = css `
26
15
  )}
27
16
  `;
28
17
  export default styles;
29
- //# sourceMappingURL=spectrum-asset.css.js.map
18
+ //# sourceMappingURL=spectrum-asset.css.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"spectrum-asset.css.js","sourceRoot":"","sources":["spectrum-asset.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(\n--spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)\n);max-width:var(\n--spectrum-asset-icon-max-width,var(--spectrum-global-dimension-static-size-1000)\n);min-width:var(\n--spectrum-asset-icon-min-width,var(--spectrum-global-dimension-size-600)\n);width:100%}.folderBackground{fill:var(\n--spectrum-asset-folder-background-color,var(--spectrum-global-color-gray-300)\n)}.fileBackground{fill:var(\n--spectrum-asset-file-background-color,var(--spectrum-global-color-gray-50)\n)}.fileOutline,.folderOutline{fill:var(\n--spectrum-asset-icon-outline-color,var(--spectrum-global-color-gray-500)\n)}\n`;\nexport default styles;"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["spectrum-asset.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{align-items:center;display:flex;height:100%;justify-content:center;width:100%}::slotted(*){max-height:100%;max-width:100%;object-fit:contain;transition:opacity var(--spectrum-global-animation-duration-100,.13s)}.file,.folder{height:100%;margin:var(\n--spectrum-asset-icon-margin,var(--spectrum-global-dimension-size-250)\n);max-width:var(\n--spectrum-asset-icon-max-width,var(--spectrum-global-dimension-static-size-1000)\n);min-width:var(\n--spectrum-asset-icon-min-width,var(--spectrum-global-dimension-size-600)\n);width:100%}.folderBackground{fill:var(\n--spectrum-asset-folder-background-color,var(--spectrum-global-color-gray-300)\n)}.fileBackground{fill:var(\n--spectrum-asset-file-background-color,var(--spectrum-global-color-gray-50)\n)}.fileOutline,.folderOutline{fill:var(\n--spectrum-asset-icon-outline-color,var(--spectrum-global-color-gray-500)\n)}\n`;\nexport default styles;"],
5
+ "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAef,eAAe;",
6
+ "names": []
7
+ }
@@ -1,36 +1,25 @@
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 { html } from '@spectrum-web-components/base';
13
- import '../sp-asset.js';
14
- import { portrait } from '../../card/stories/images';
1
+ import { html } from "@spectrum-web-components/base";
2
+ import "@spectrum-web-components/asset/sp-asset.js";
3
+ import { portrait } from "../../card/stories/images";
15
4
  export default {
16
- title: 'Asset',
17
- component: 'sp-asset',
5
+ title: "Asset",
6
+ component: "sp-asset"
18
7
  };
19
8
  export const Default = () => {
20
- return html `
9
+ return html`
21
10
  <sp-asset style="height: 128px">
22
11
  <img src=${portrait} alt="Demo Graphic" />
23
12
  </sp-asset>
24
13
  `;
25
14
  };
26
15
  export const File = () => {
27
- return html `
16
+ return html`
28
17
  <sp-asset variant="file"></sp-asset>
29
18
  `;
30
19
  };
31
20
  export const Folder = () => {
32
- return html `
21
+ return html`
33
22
  <sp-asset variant="folder"></sp-asset>
34
23
  `;
35
24
  };
36
- //# sourceMappingURL=asset.stories.js.map
25
+ //# sourceMappingURL=asset.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"asset.stories.js","sourceRoot":"","sources":["asset.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AAErE,OAAO,gBAAgB,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,eAAe;IACX,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAmB,EAAE;IACxC,OAAO,IAAI,CAAA;;uBAEQ,QAAQ;;KAE1B,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAmB,EAAE;IACrC,OAAO,IAAI,CAAA;;KAEV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAmB,EAAE;IACvC,OAAO,IAAI,CAAA;;KAEV,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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '../sp-asset.js';\nimport { portrait } from '../../card/stories/images';\n\nexport default {\n title: 'Asset',\n component: 'sp-asset',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-asset style=\"height: 128px\">\n <img src=${portrait} alt=\"Demo Graphic\" />\n </sp-asset>\n `;\n};\n\nexport const File = (): TemplateResult => {\n return html`\n <sp-asset variant=\"file\"></sp-asset>\n `;\n};\n\nexport const Folder = (): TemplateResult => {\n return html`\n <sp-asset variant=\"folder\"></sp-asset>\n `;\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["asset.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/asset/sp-asset.js';\nimport { portrait } from '../../card/stories/images';\n\nexport default {\n title: 'Asset',\n component: 'sp-asset',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-asset style=\"height: 128px\">\n <img src=${portrait} alt=\"Demo Graphic\" />\n </sp-asset>\n `;\n};\n\nexport const File = (): TemplateResult => {\n return html`\n <sp-asset variant=\"file\"></sp-asset>\n `;\n};\n\nexport const Folder = (): TemplateResult => {\n return html`\n <sp-asset variant=\"folder\"></sp-asset>\n `;\n};\n"],
5
+ "mappings": "AAYA;AAEA;AACA;AAEA,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA,uBAEY;AAAA;AAAA;AAGvB;AAEO,aAAM,OAAO,MAAsB;AACtC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,SAAS,MAAsB;AACxC,SAAO;AAAA;AAAA;AAGX;",
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/asset.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('AssetStories', stories);
15
- //# sourceMappingURL=asset.test-vrt.js.map
1
+ import * as stories from "../stories/asset.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("AssetStories", stories);
4
+ //# sourceMappingURL=asset.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"asset.test-vrt.js","sourceRoot":"","sources":["asset.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,cAAc,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/asset.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('AssetStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["asset.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/asset.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('AssetStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,gBAAgB,OAAO;",
6
+ "names": []
7
+ }
@@ -1,32 +1,20 @@
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 { elementUpdated, expect, fixture } from '@open-wc/testing';
13
- import '..';
14
- import { Default, File, Folder } from '../stories/asset.stories.js';
15
- describe('Asset', () => {
16
- it('loads default asset accessibly', async () => {
17
- const el = await fixture(Default());
18
- await elementUpdated(el);
19
- await expect(el).to.be.accessible();
20
- });
21
- it('loads [variant="file"] accessibly', async () => {
22
- const el = await fixture(File());
23
- await elementUpdated(el);
24
- await expect(el).to.be.accessible();
25
- });
26
- it('loads [variant="folder"] accessibly', async () => {
27
- const el = await fixture(Folder());
28
- await elementUpdated(el);
29
- await expect(el).to.be.accessible();
30
- });
1
+ import { elementUpdated, expect, fixture } from "@open-wc/testing";
2
+ import { Default, File, Folder } from "../stories/asset.stories.js";
3
+ describe("Asset", () => {
4
+ it("loads default asset accessibly", async () => {
5
+ const el = await fixture(Default());
6
+ await elementUpdated(el);
7
+ await expect(el).to.be.accessible();
8
+ });
9
+ it('loads [variant="file"] accessibly', async () => {
10
+ const el = await fixture(File());
11
+ await elementUpdated(el);
12
+ await expect(el).to.be.accessible();
13
+ });
14
+ it('loads [variant="folder"] accessibly', async () => {
15
+ const el = await fixture(Folder());
16
+ await elementUpdated(el);
17
+ await expect(el).to.be.accessible();
18
+ });
31
19
  });
32
- //# sourceMappingURL=asset.test.js.map
20
+ //# sourceMappingURL=asset.test.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"asset.test.js","sourceRoot":"","sources":["asset.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,IAAI,CAAC;AAEZ,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAEpE,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACnB,EAAE,CAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,EAAE,GAAG,MAAM,OAAO,CAAQ,OAAO,EAAE,CAAC,CAAC;QAE3C,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,EAAE,GAAG,MAAM,OAAO,CAAQ,IAAI,EAAE,CAAC,CAAC;QAExC,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,EAAE,GAAG,MAAM,OAAO,CAAQ,MAAM,EAAE,CAAC,CAAC;QAE1C,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IACxC,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 { elementUpdated, expect, fixture } from '@open-wc/testing';\n\nimport '..';\nimport { Asset } from '..';\nimport { Default, File, Folder } from '../stories/asset.stories.js';\n\ndescribe('Asset', () => {\n it('loads default asset accessibly', async () => {\n const el = await fixture<Asset>(Default());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [variant=\"file\"] accessibly', async () => {\n const el = await fixture<Asset>(File());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [variant=\"folder\"] accessibly', async () => {\n const el = await fixture<Asset>(Folder());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["asset.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 } from '@open-wc/testing';\n\nimport { Asset } from '@spectrum-web-components/asset';\nimport { Default, File, Folder } from '../stories/asset.stories.js';\n\ndescribe('Asset', () => {\n it('loads default asset accessibly', async () => {\n const el = await fixture<Asset>(Default());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [variant=\"file\"] accessibly', async () => {\n const el = await fixture<Asset>(File());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [variant=\"folder\"] accessibly', async () => {\n const el = await fixture<Asset>(Folder());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"],
5
+ "mappings": "AAYA;AAGA;AAEA,SAAS,SAAS,MAAM;AACpB,KAAG,kCAAkC,YAAY;AAC7C,UAAM,KAAK,MAAM,QAAe,QAAQ,CAAC;AAEzC,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,qCAAqC,YAAY;AAChD,UAAM,KAAK,MAAM,QAAe,KAAK,CAAC;AAEtC,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,uCAAuC,YAAY;AAClD,UAAM,KAAK,MAAM,QAAe,OAAO,CAAC;AAExC,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACL,CAAC;",
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/asset/sp-asset.js';
13
- import { html } from 'lit';
14
- import { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';
15
- measureFixtureCreation(html `
1
+ import "@spectrum-web-components/asset/sp-asset.js";
2
+ import { html } from "lit";
3
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
4
+ measureFixtureCreation(html`
16
5
  <sp-asset open></sp-asset>
17
6
  `);
18
- //# sourceMappingURL=basic-test.js.map
7
+ //# sourceMappingURL=basic-test.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"basic-test.js","sourceRoot":"","sources":["basic-test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,4CAA4C,CAAC;AACpD,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/asset/sp-asset.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-asset open></sp-asset>\n`);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["basic-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/asset/sp-asset.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-asset open></sp-asset>\n`);\n"],
5
+ "mappings": "AAYA;AACA;AACA;AAEA,uBAAuB;AAAA;AAAA,CAEtB;",
6
+ "names": []
7
+ }