@spectrum-web-components/dropzone 0.10.0-devmode.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/dropzone",
3
- "version": "0.10.0-devmode.0+7b0ea531e",
3
+ "version": "0.10.0",
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.6.0",
60
+ "@spectrum-web-components/base": "^0.7.0",
61
61
  "tslib": "^2.0.0"
62
62
  },
63
63
  "devDependencies": {
@@ -69,5 +69,5 @@
69
69
  "./sp-*.js",
70
70
  "./**/*.dev.js"
71
71
  ],
72
- "gitHead": "7b0ea531e9c7225c8964c5429bc5fd005618b80e"
72
+ "gitHead": "05c81318844160db3f8156144106e643507fef97"
73
73
  }
package/sp-dropzone.js CHANGED
@@ -1,3 +1,2 @@
1
- import { Dropzone } from "./src/Dropzone.js";
2
- customElements.define("sp-dropzone", Dropzone);
1
+ import{Dropzone as e}from"./src/Dropzone.js";customElements.define("sp-dropzone",e);
3
2
  //# sourceMappingURL=sp-dropzone.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["sp-dropzone.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Dropzone } from './src/Dropzone.js';\n\ncustomElements.define('sp-dropzone', Dropzone);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-dropzone': Dropzone;\n }\n}\n"],
5
- "mappings": "AAWA;AAEA,eAAe,OAAO,eAAe,QAAQ;",
5
+ "mappings": "AAWA,6CAEA,eAAe,OAAO,cAAe,CAAQ",
6
6
  "names": []
7
7
  }
package/src/Dropzone.js CHANGED
@@ -1,112 +1,4 @@
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 dropzoneStyles from "./dropzone.css.js";
18
- export class Dropzone extends SpectrumElement {
19
- constructor() {
20
- super(...arguments);
21
- this._dropEffect = "copy";
22
- this.isDragged = false;
23
- this.debouncedDragLeave = null;
24
- }
25
- static get styles() {
26
- return [dropzoneStyles];
27
- }
28
- get dropEffect() {
29
- return this._dropEffect;
30
- }
31
- set dropEffect(value) {
32
- if (["copy", "move", "link", "none"].includes(value)) {
33
- this._dropEffect = value;
34
- }
35
- }
36
- connectedCallback() {
37
- super.connectedCallback();
38
- this.addEventListener("drop", this.onDrop);
39
- this.addEventListener("dragover", this.onDragOver);
40
- this.addEventListener("dragleave", this.onDragLeave);
41
- }
42
- disconnectedCallback() {
43
- super.disconnectedCallback();
44
- this.removeEventListener("drop", this.onDrop);
45
- this.removeEventListener("dragover", this.onDragOver);
46
- this.removeEventListener("dragleave", this.onDragLeave);
47
- }
48
- onDragOver(event) {
49
- const shouldAcceptEvent = new CustomEvent("sp-dropzone-should-accept", {
50
- bubbles: true,
51
- cancelable: true,
52
- composed: true,
53
- detail: event
54
- });
55
- const shouldAccept = this.dispatchEvent(shouldAcceptEvent);
56
- if (!event.dataTransfer) {
57
- return;
58
- }
59
- if (!shouldAccept) {
60
- event.dataTransfer.dropEffect = "none";
61
- return;
62
- }
63
- event.preventDefault();
64
- this.clearDebouncedDragLeave();
65
- this.isDragged = true;
66
- event.dataTransfer.dropEffect = this.dropEffect;
67
- const dragOverEvent = new CustomEvent("sp-dropzone-dragover", {
68
- bubbles: true,
69
- composed: true,
70
- detail: event
71
- });
72
- this.dispatchEvent(dragOverEvent);
73
- }
74
- onDragLeave(event) {
75
- this.clearDebouncedDragLeave();
76
- this.debouncedDragLeave = window.setTimeout(() => {
77
- this.isDragged = false;
78
- const dragLeave = new CustomEvent("sp-dropzone-dragleave", {
79
- bubbles: true,
80
- composed: true,
81
- detail: event
82
- });
83
- this.dispatchEvent(dragLeave);
84
- }, 100);
85
- }
86
- onDrop(event) {
87
- event.preventDefault();
88
- this.clearDebouncedDragLeave();
89
- this.isDragged = false;
90
- const dropEvent = new CustomEvent("sp-dropzone-drop", {
91
- bubbles: true,
92
- composed: true,
93
- detail: event
94
- });
95
- this.dispatchEvent(dropEvent);
96
- }
97
- render() {
98
- return html`
1
+ var i=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var d=(a,e,t,o)=>{for(var r=o>1?void 0:o?p(e,t):e,n=a.length-1,s;n>=0;n--)(s=a[n])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&i(e,t,r),r};import{html as c,SpectrumElement as l}from"@spectrum-web-components/base";import{property as v}from"@spectrum-web-components/base/src/decorators.js";import u from"./dropzone.css.js";export class Dropzone extends l{constructor(){super(...arguments);this._dropEffect="copy";this.isDragged=!1;this.debouncedDragLeave=null}static get styles(){return[u]}get dropEffect(){return this._dropEffect}set dropEffect(e){["copy","move","link","none"].includes(e)&&(this._dropEffect=e)}connectedCallback(){super.connectedCallback(),this.addEventListener("drop",this.onDrop),this.addEventListener("dragover",this.onDragOver),this.addEventListener("dragleave",this.onDragLeave)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("drop",this.onDrop),this.removeEventListener("dragover",this.onDragOver),this.removeEventListener("dragleave",this.onDragLeave)}onDragOver(e){const t=new CustomEvent("sp-dropzone-should-accept",{bubbles:!0,cancelable:!0,composed:!0,detail:e}),o=this.dispatchEvent(t);if(!e.dataTransfer)return;if(!o){e.dataTransfer.dropEffect="none";return}e.preventDefault(),this.clearDebouncedDragLeave(),this.isDragged=!0,e.dataTransfer.dropEffect=this.dropEffect;const r=new CustomEvent("sp-dropzone-dragover",{bubbles:!0,composed:!0,detail:e});this.dispatchEvent(r)}onDragLeave(e){this.clearDebouncedDragLeave(),this.debouncedDragLeave=window.setTimeout(()=>{this.isDragged=!1;const t=new CustomEvent("sp-dropzone-dragleave",{bubbles:!0,composed:!0,detail:e});this.dispatchEvent(t)},100)}onDrop(e){e.preventDefault(),this.clearDebouncedDragLeave(),this.isDragged=!1;const t=new CustomEvent("sp-dropzone-drop",{bubbles:!0,composed:!0,detail:e});this.dispatchEvent(t)}render(){return c`
99
2
  <slot></slot>
100
- `;
101
- }
102
- clearDebouncedDragLeave() {
103
- if (this.debouncedDragLeave) {
104
- clearTimeout(this.debouncedDragLeave);
105
- this.debouncedDragLeave = null;
106
- }
107
- }
108
- }
109
- __decorateClass([
110
- property({ type: Boolean, reflect: true, attribute: "dragged" })
111
- ], Dropzone.prototype, "isDragged", 2);
3
+ `}clearDebouncedDragLeave(){this.debouncedDragLeave&&(clearTimeout(this.debouncedDragLeave),this.debouncedDragLeave=null)}}d([v({type:Boolean,reflect:!0,attribute:"dragged"})],Dropzone.prototype,"isDragged",2);
112
4
  //# sourceMappingURL=Dropzone.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["Dropzone.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\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 dropzoneStyles from './dropzone.css.js';\n\nexport type DropzoneEventDetail = DragEvent;\n\nexport type DropEffects = 'copy' | 'move' | 'link' | 'none';\n\n/**\n * @element sp-dropzone\n *\n * @slot - The default slot on an `sp-dropzone` is a great place to place upload instructions\n * built with an `sp-illustrated-message` or other information, possibly even built from data\n * provided by the upload, to support users successfully interacting with the drag and drop\n * based features of your application\n *\n * @fires sp-dropzone-should-accept - A cancellable event that confirms whether or not\n * a file dropped on the UI should be accepted.\n * @fires sp-dropzone-dragover - Announces when files have been dragged over the UI, but not yet dropped.\n * @fires sp-dropzone-dragleave - Announces when dragged files have been moved out of the UI without having been dropped.\n * @fires sp-dropzone-drop - Announces when dragged files have been dropped on the UI.\n */\nexport class Dropzone extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [dropzoneStyles];\n }\n\n /**\n * Controls the feedback (typically visual) the user is given during a drag and drop operation\n * @attr\n * @type {'copy' | 'move' | 'link' | 'none'}\n */\n public get dropEffect(): DropEffects {\n return this._dropEffect;\n }\n public set dropEffect(value: DropEffects) {\n if (['copy', 'move', 'link', 'none'].includes(value)) {\n this._dropEffect = value;\n }\n }\n private _dropEffect: DropEffects = 'copy';\n\n @property({ type: Boolean, reflect: true, attribute: 'dragged' })\n public isDragged = false;\n\n private debouncedDragLeave: number | null = null;\n\n public override connectedCallback(): void {\n super.connectedCallback();\n\n this.addEventListener('drop', this.onDrop);\n this.addEventListener('dragover', this.onDragOver);\n this.addEventListener('dragleave', this.onDragLeave);\n }\n\n public override disconnectedCallback(): void {\n super.disconnectedCallback();\n\n this.removeEventListener('drop', this.onDrop);\n this.removeEventListener('dragover', this.onDragOver);\n this.removeEventListener('dragleave', this.onDragLeave);\n }\n\n public onDragOver(event: DragEvent): void {\n const shouldAcceptEvent = new CustomEvent('sp-dropzone-should-accept', {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: event,\n });\n const shouldAccept = this.dispatchEvent(shouldAcceptEvent);\n if (!event.dataTransfer) {\n return;\n }\n if (!shouldAccept) {\n event.dataTransfer.dropEffect = 'none';\n return;\n }\n\n event.preventDefault();\n\n this.clearDebouncedDragLeave();\n\n this.isDragged = true;\n\n event.dataTransfer.dropEffect = this.dropEffect;\n const dragOverEvent = new CustomEvent('sp-dropzone-dragover', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dragOverEvent);\n }\n\n public onDragLeave(event: DragEvent): void {\n this.clearDebouncedDragLeave();\n\n this.debouncedDragLeave = window.setTimeout(() => {\n this.isDragged = false;\n\n const dragLeave = new CustomEvent('sp-dropzone-dragleave', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dragLeave);\n }, 100);\n }\n\n public onDrop(event: DragEvent): void {\n event.preventDefault();\n\n this.clearDebouncedDragLeave();\n\n this.isDragged = false;\n const dropEvent = new CustomEvent('sp-dropzone-drop', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dropEvent);\n }\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n\n protected clearDebouncedDragLeave(): void {\n if (this.debouncedDragLeave) {\n clearTimeout(this.debouncedDragLeave);\n this.debouncedDragLeave = null;\n }\n }\n}\n\ndeclare global {\n interface GlobalEventHandlersEventMap {\n 'sp-dropzone:should-accept': CustomEvent<DragEvent>;\n 'sp-dropzone:dragover': CustomEvent<DragEvent>;\n 'sp-dropzone:dragleave': CustomEvent<DragEvent>;\n 'sp-dropzone:drop': CustomEvent<DragEvent>;\n }\n}\n"],
5
- "mappings": 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ACJ,CA5FW,GADP,AAAC,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,SAAU,CAAC,GACzD,AArBJ,SAqBI",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,4 @@
1
- import { css } from "@spectrum-web-components/base";
2
- const styles = css`
1
+ import{css as o}from"@spectrum-web-components/base";const r=o`
3
2
  :host{border-radius:var(
4
3
  --spectrum-dropzone-border-radius,var(--spectrum-alias-border-radius-regular)
5
4
  );border-style:dashed;border-width:var(
@@ -43,6 +42,5 @@ const styles = css`
43
42
  );margin-bottom:0;margin-top:0;text-transform:var(--spectrum-body-s-text-transform,none)}:host([dragged]) ::slotted(*){--spectrum-global-color-gray-500:var(
44
43
  --spectrum-dropzone-illustration-color
45
44
  )}
46
- `;
47
- export default styles;
45
+ `;export default r;
48
46
  //# sourceMappingURL=dropzone.css.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["dropzone.css.ts"],
4
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{border-radius:var(\n--spectrum-dropzone-border-radius,var(--spectrum-alias-border-radius-regular)\n);border-style:dashed;border-width:var(\n--spectrum-dropzone-border-width,var(--spectrum-alias-border-size-thick)\n);padding:var(\n--spectrum-dropzone-padding,var(--spectrum-global-dimension-size-900)\n);text-align:center}:host([dragged]){border-style:solid}:host(:focus){border-style:dashed;outline:0}:host(:focus.focus-visible){border-style:solid}:host(:focus:focus-visible){border-style:solid}:host{border-color:var(\n--spectrum-dropzone-border-color,var(--spectrum-global-color-gray-300)\n)}:host([dragged]){background-color:var(\n--spectrum-dropzone-background-color-selected-hover,var(--spectrum-alias-highlight-selected)\n);border-color:var(\n--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400)\n)}:host([dragged]) ::slotted(*){color:var(\n--spectrum-global-color-blue-400\n)}:host(:focus){border-color:var(\n--spectrum-dropzone-border-color,var(--spectrum-global-color-gray-300)\n)}:host(:focus) ::slotted(*){color:var(\n--spectrum-global-color-static-gray-500,rgb(var(--spectrum-global-color-static-gray-500-rgb))\n)}:host(:focus.focus-visible){border-color:var(\n--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400)\n)}:host(:focus:focus-visible){border-color:var(\n--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400)\n)}:host(:focus[dragged].focus-visible) ::slotted(*){color:var(\n--spectrum-global-color-blue-400\n)}:host(:focus[dragged]:focus-visible) ::slotted(*){color:var(\n--spectrum-global-color-blue-400\n)}:host{--spectrum-dropzone-illustration-color:var(\n--spectrum-global-color-static-blue-400\n);display:block}::slotted(*){font-family:var(\n--spectrum-body-m-text-font-family,var(--spectrum-alias-body-text-font-family)\n);font-size:var(\n--spectrum-body-s-text-size,var(--spectrum-alias-font-size-default)\n);font-style:var(\n--spectrum-body-s-text-font-style,var(--spectrum-global-font-style-regular)\n);font-weight:var(\n--spectrum-body-s-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);letter-spacing:var(\n--spectrum-body-s-text-letter-spacing,var(--spectrum-global-font-letter-spacing-none)\n);line-height:var(\n--spectrum-body-s-text-line-height,var(--spectrum-alias-body-text-line-height)\n);margin-bottom:0;margin-top:0;text-transform:var(--spectrum-body-s-text-transform,none)}:host([dragged]) ::slotted(*){--spectrum-global-color-gray-500:var(\n--spectrum-dropzone-illustration-color\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;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;AA6Cf,eAAe;",
5
+ "mappings": "AAWA,oDACA,KAAM,GAAS;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,EA6Cf,cAAe",
6
6
  "names": []
7
7
  }
package/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Dropzone.js";
1
+ export*from"./Dropzone.js";
2
2
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './Dropzone.js';\n"],
5
- "mappings": "AAWA;",
5
+ "mappings": "AAWA",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,4 @@
1
- import { css } from "@spectrum-web-components/base";
2
- const styles = css`
1
+ import{css as o}from"@spectrum-web-components/base";const r=o`
3
2
  :host{border-radius:var(
4
3
  --spectrum-dropzone-border-radius,var(--spectrum-alias-border-radius-regular)
5
4
  );border-style:dashed;border-width:var(
@@ -27,6 +26,5 @@ const styles = css`
27
26
  )}:host(:focus[dragged]:focus-visible) ::slotted(*){color:var(
28
27
  --spectrum-global-color-blue-400
29
28
  )}
30
- `;
31
- export default styles;
29
+ `;export default r;
32
30
  //# sourceMappingURL=spectrum-dropzone.css.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["spectrum-dropzone.css.ts"],
4
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{border-radius:var(\n--spectrum-dropzone-border-radius,var(--spectrum-alias-border-radius-regular)\n);border-style:dashed;border-width:var(\n--spectrum-dropzone-border-width,var(--spectrum-alias-border-size-thick)\n);padding:var(\n--spectrum-dropzone-padding,var(--spectrum-global-dimension-size-900)\n);text-align:center}:host([dragged]){border-style:solid}:host(:focus){border-style:dashed;outline:0}:host(:focus.focus-visible){border-style:solid}:host(:focus:focus-visible){border-style:solid}:host{border-color:var(\n--spectrum-dropzone-border-color,var(--spectrum-global-color-gray-300)\n)}:host([dragged]){background-color:var(\n--spectrum-dropzone-background-color-selected-hover,var(--spectrum-alias-highlight-selected)\n);border-color:var(\n--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400)\n)}:host([dragged]) ::slotted(*){color:var(\n--spectrum-global-color-blue-400\n)}:host(:focus){border-color:var(\n--spectrum-dropzone-border-color,var(--spectrum-global-color-gray-300)\n)}:host(:focus) ::slotted(*){color:var(\n--spectrum-global-color-static-gray-500,rgb(var(--spectrum-global-color-static-gray-500-rgb))\n)}:host(:focus.focus-visible){border-color:var(\n--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400)\n)}:host(:focus:focus-visible){border-color:var(\n--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400)\n)}:host(:focus[dragged].focus-visible) ::slotted(*){color:var(\n--spectrum-global-color-blue-400\n)}:host(:focus[dragged]:focus-visible) ::slotted(*){color:var(\n--spectrum-global-color-blue-400\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6Bf,eAAe;",
5
+ "mappings": "AAWA,oDACA,KAAM,GAAS;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,EA6Bf,cAAe",
6
6
  "names": []
7
7
  }
@@ -1,33 +1,7 @@
1
- import { html } from "@spectrum-web-components/base";
2
- import "@spectrum-web-components/dropzone/sp-dropzone.js";
3
- import { illustration } from "../test/test-svg";
4
- import "@spectrum-web-components/illustrated-message/sp-illustrated-message.js";
5
- import "@spectrum-web-components/link/sp-link.js";
6
- export default {
7
- component: "sp-dropzone",
8
- title: "Dropzone",
9
- args: {
10
- isDragged: false
11
- },
12
- argTypes: {
13
- isDragged: {
14
- name: "isDragged",
15
- type: { name: "boolean", required: false },
16
- table: {
17
- type: { summary: "boolean" },
18
- defaultValue: { summary: false }
19
- },
20
- control: {
21
- type: "boolean"
22
- }
23
- }
24
- }
25
- };
26
- export const Default = (args) => {
27
- return html`
28
- <sp-dropzone id="dropzone" tabindex="0" ?dragged=${args.isDragged}>
1
+ import{html as t}from"@spectrum-web-components/base";import"@spectrum-web-components/dropzone/sp-dropzone.js";import{illustration as o}from"../test/test-svg";import"@spectrum-web-components/illustrated-message/sp-illustrated-message.js";import"@spectrum-web-components/link/sp-link.js";export default{component:"sp-dropzone",title:"Dropzone",args:{isDragged:!1},argTypes:{isDragged:{name:"isDragged",type:{name:"boolean",required:!1},table:{type:{summary:"boolean"},defaultValue:{summary:!1}},control:{type:"boolean"}}}};export const Default=e=>t`
2
+ <sp-dropzone id="dropzone" tabindex="0" ?dragged=${e.isDragged}>
29
3
  <sp-illustrated-message heading="Drag and Drop Your File" cta>
30
- ${illustration}
4
+ ${o}
31
5
  <div slot="description">
32
6
  <label for="file-input">
33
7
  <sp-link>Select a File</sp-link>
@@ -43,13 +17,10 @@ export const Default = (args) => {
43
17
  </div>
44
18
  </sp-illustrated-message>
45
19
  </sp-dropzone>
46
- `;
47
- };
48
- export const Dragged = (args) => {
49
- return html`
50
- <sp-dropzone id="dropzone" tabindex="0" ?dragged=${args.isDragged}>
20
+ `,Dragged=e=>t`
21
+ <sp-dropzone id="dropzone" tabindex="0" ?dragged=${e.isDragged}>
51
22
  <sp-illustrated-message heading="Drag and Drop Your File" cta>
52
- ${illustration}
23
+ ${o}
53
24
  <div slot="description">
54
25
  <label for="file-input">
55
26
  <sp-link>Select a File</sp-link>
@@ -65,9 +36,5 @@ export const Dragged = (args) => {
65
36
  </div>
66
37
  </sp-illustrated-message>
67
38
  </sp-dropzone>
68
- `;
69
- };
70
- Dragged.args = {
71
- isDragged: true
72
- };
39
+ `;Dragged.args={isDragged:!0};
73
40
  //# sourceMappingURL=dropzone.stories.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["dropzone.stories.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/dropzone/sp-dropzone.js';\nimport { illustration } from '../test/test-svg';\nimport '@spectrum-web-components/illustrated-message/sp-illustrated-message.js';\nimport '@spectrum-web-components/link/sp-link.js';\n\nexport default {\n component: 'sp-dropzone',\n title: 'Dropzone',\n args: {\n isDragged: false,\n },\n argTypes: {\n isDragged: {\n name: 'isDragged',\n type: { name: 'boolean', required: false },\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n },\n};\n\ntype StoryArgs = {\n isDragged?: boolean;\n};\n\nexport const Default = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-dropzone id=\"dropzone\" tabindex=\"0\" ?dragged=${args.isDragged}>\n <sp-illustrated-message heading=\"Drag and Drop Your File\" cta>\n ${illustration}\n <div slot=\"description\">\n <label for=\"file-input\">\n <sp-link>Select a File</sp-link>\n from your computer\n </label>\n <input type=\"file\" id=\"file-input\" style=\"display: none\" />\n </div>\n <div slot=\"description\">\n or\n <sp-link href=\"http://stock.adobe.com\" target=\"blank\">\n Search Adobe Stock\n </sp-link>\n </div>\n </sp-illustrated-message>\n </sp-dropzone>\n `;\n};\n\nexport const Dragged = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-dropzone id=\"dropzone\" tabindex=\"0\" ?dragged=${args.isDragged}>\n <sp-illustrated-message heading=\"Drag and Drop Your File\" cta>\n ${illustration}\n <div slot=\"description\">\n <label for=\"file-input\">\n <sp-link>Select a File</sp-link>\n from your computer\n </label>\n <input type=\"file\" id=\"file-input\" style=\"display: none\" />\n </div>\n <div slot=\"description\">\n or\n <sp-link href=\"http://stock.adobe.com\" target=\"blank\">\n Search Adobe Stock\n </sp-link>\n </div>\n </sp-illustrated-message>\n </sp-dropzone>\n `;\n};\nDragged.args = {\n isDragged: true,\n};\n"],
5
- "mappings": "AAWA;AAEA;AACA;AACA;AACA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,WAAW;AAAA,EACf;AAAA,EACA,UAAU;AAAA,IACN,WAAW;AAAA,MACP,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,MACzC,OAAO;AAAA,QACH,MAAM,EAAE,SAAS,UAAU;AAAA,QAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,MACnC;AAAA,MACA,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,EACJ;AACJ;AAMO,aAAM,UAAU,CAAC,SAAoC;AACxD,SAAO;AAAA,2DACgD,KAAK;AAAA;AAAA,kBAE9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBlB;AAEO,aAAM,UAAU,CAAC,SAAoC;AACxD,SAAO;AAAA,2DACgD,KAAK;AAAA;AAAA,kBAE9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBlB;AACA,QAAQ,OAAO;AAAA,EACX,WAAW;AACf;",
5
+ "mappings": "AAWA,qDAEA,yDACA,gDACA,+EACA,iDAEA,cAAe,CACX,UAAW,cACX,MAAO,WACP,KAAM,CACF,UAAW,EACf,EACA,SAAU,CACN,UAAW,CACP,KAAM,YACN,KAAM,CAAE,KAAM,UAAW,SAAU,EAAM,EACzC,MAAO,CACH,KAAM,CAAE,QAAS,SAAU,EAC3B,aAAc,CAAE,QAAS,EAAM,CACnC,EACA,QAAS,CACL,KAAM,SACV,CACJ,CACJ,CACJ,EAMO,YAAM,SAAU,AAAC,GACb;AAAA,2DACgD,EAAK;AAAA;AAAA,kBAE9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAmBL,QAAU,AAAC,GACb;AAAA,2DACgD,EAAK;AAAA;AAAA,kBAE9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAkBlB,QAAQ,KAAO,CACX,UAAW,EACf",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,4 @@
1
- import "@spectrum-web-components/dropzone/sp-dropzone.js";
2
- import { html } from "lit";
3
- import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
4
- measureFixtureCreation(html`
1
+ import"@spectrum-web-components/dropzone/sp-dropzone.js";import{html as e}from"lit";import{measureFixtureCreation as i}from"../../../../test/benchmark/helpers.js";i(e`
5
2
  <sp-dropzone id="dropzone">
6
3
  <sp-illustrated-message heading="Drag and Drop Your File">
7
4
  <svg>
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["test-basic.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/dropzone/sp-dropzone.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-dropzone id=\"dropzone\">\n <sp-illustrated-message heading=\"Drag and Drop Your File\">\n <svg>\n <use xlink:href=\"geometry.svg#upload_geometry\" />\n </svg>\n </sp-illustrated-message>\n\n <div style=\"color: grey\">\n <div>\n <label for=\"file-input\">\n <sp-link>Select a File</sp-link>\n from your computer\n </label>\n <input type=\"file\" id=\"file-input\" style=\"display: none\" />\n </div>\n <div>\n or\n <sp-link href=\"http://stock.adobe.com\" target=\"blank\">\n Search Adobe Stock\n </sp-link>\n </div>\n </div>\n </sp-dropzone>\n`);\n"],
5
- "mappings": "AAYA;AACA;AACA;AAEA,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAwBtB;",
5
+ "mappings": "AAYA,yDACA,2BACA,+EAEA,EAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAwBtB",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,2 @@
1
- import * as stories from "../stories/dropzone.stories.js";
2
- import { regressVisuals } from "../../../test/visual/test.js";
3
- regressVisuals("DropzoneStories", stories);
1
+ import*as r from"../stories/dropzone.stories.js";import{regressVisuals as o}from"../../../test/visual/test.js";o("DropzoneStories",r);
4
2
  //# sourceMappingURL=dropzone.test-vrt.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["dropzone.test-vrt.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/dropzone.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('DropzoneStories', stories);\n"],
5
- "mappings": "AAYA;AACA;AAEA,eAAe,mBAAmB,OAAO;",
5
+ "mappings": "AAYA,iDACA,8DAEA,EAAe,kBAAmB,CAAO",
6
6
  "names": []
7
7
  }
@@ -1,13 +1,7 @@
1
- import "@spectrum-web-components/dropzone/sp-dropzone.js";
2
- import { illustration } from "./test-svg.js";
3
- import { waitForPredicate } from "../../../test/testing-helpers.js";
4
- import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
5
- describe("Dropzone", () => {
6
- it("loads", async () => {
7
- const el = await fixture(html`
1
+ import"@spectrum-web-components/dropzone/sp-dropzone.js";import{illustration as p}from"./test-svg.js";import{waitForPredicate as i}from"../../../test/testing-helpers.js";import{elementUpdated as r,expect as a,fixture as n,html as d}from"@open-wc/testing";describe("Dropzone",()=>{it("loads",async()=>{const e=await n(d`
8
2
  <sp-dropzone id="dropzone">
9
3
  <sp-illustrated-message heading="Drag and Drop Your File">
10
- ${illustration}
4
+ ${p}
11
5
  </sp-illustrated-message>
12
6
 
13
7
  <div style="color: grey">
@@ -33,105 +27,24 @@ describe("Dropzone", () => {
33
27
  </div>
34
28
  </div>
35
29
  </sp-dropzone>
36
- `);
37
- expect(el).to.not.equal(void 0);
38
- if (!el.shadowRoot)
39
- throw new Error("No shadowRoot");
40
- const slot = el.shadowRoot.querySelector("slot");
41
- expect(slot).to.not.equal(void 0);
42
- return true;
43
- });
44
- it("manages `dropEffects`", async () => {
45
- const el = await fixture(html`
30
+ `);if(a(e).to.not.equal(void 0),!e.shadowRoot)throw new Error("No shadowRoot");const t=e.shadowRoot.querySelector("slot");return a(t).to.not.equal(void 0),!0}),it("manages `dropEffects`",async()=>{const e=await n(d`
46
31
  <sp-dropzone id="dropzone"></sp-dropzone>
47
- `);
48
- await elementUpdated(el);
49
- expect(el.dropEffect).to.equal("copy");
50
- el.dropEffect = "move";
51
- await elementUpdated(el);
52
- expect(el.dropEffect).to.equal("move");
53
- });
54
- it("manages `dragover` events", async () => {
55
- const el = await fixture(html`
32
+ `);await r(e),a(e.dropEffect).to.equal("copy"),e.dropEffect="move",await r(e),a(e.dropEffect).to.equal("move")}),it("manages `dragover` events",async()=>{const e=await n(d`
56
33
  <sp-dropzone id="dropzone"></sp-dropzone>
57
- `);
58
- await elementUpdated(el);
59
- expect(el.isDragged).to.be.false;
60
- el.dispatchEvent(new DragEvent("dragover"));
61
- expect(el.isDragged).to.be.false;
62
- let dataTransfer = false;
63
- try {
64
- dataTransfer = new DataTransfer();
65
- } catch (error) {
66
- }
67
- if (dataTransfer) {
68
- const dragOverEvent = new DragEvent("dragover", {
69
- dataTransfer
70
- });
71
- el.dispatchEvent(dragOverEvent);
72
- expect(el.isDragged).to.be.true;
73
- }
74
- });
75
- it("allows `dragover` events to be canceled", async () => {
76
- const canceledDrag = (event) => {
77
- event.preventDefault();
78
- };
79
- const el = await fixture(html`
34
+ `);await r(e),a(e.isDragged).to.be.false,e.dispatchEvent(new DragEvent("dragover")),a(e.isDragged).to.be.false;let t=!1;try{t=new DataTransfer}catch(o){}if(t){const o=new DragEvent("dragover",{dataTransfer:t});e.dispatchEvent(o),a(e.isDragged).to.be.true}}),it("allows `dragover` events to be canceled",async()=>{const t=await n(d`
80
35
  <sp-dropzone
81
36
  id="dropzone"
82
- @sp-dropzone-should-accept=${canceledDrag}
37
+ @sp-dropzone-should-accept=${s=>{s.preventDefault()}}
83
38
  ></sp-dropzone>
84
- `);
85
- await elementUpdated(el);
86
- expect(el.isDragged).to.be.false;
87
- let dataTransfer = false;
88
- try {
89
- dataTransfer = new DataTransfer();
90
- } catch (error) {
91
- }
92
- if (dataTransfer) {
93
- const dragOverEvent = new DragEvent("dragover", {
94
- dataTransfer
95
- });
96
- el.dispatchEvent(dragOverEvent);
97
- expect(el.isDragged).to.be.false;
98
- expect(dataTransfer.dropEffect).to.not.equal(el.dropEffect);
99
- expect(dataTransfer.dropEffect).to.equal("none");
100
- }
101
- });
102
- it("manages `dragleave` events via debounce", async () => {
103
- let dragLeftCount = 0;
104
- const onDragLeave = () => {
105
- dragLeftCount += 1;
106
- };
107
- const el = await fixture(html`
39
+ `);await r(t),a(t.isDragged).to.be.false;let o=!1;try{o=new DataTransfer}catch(s){}if(o){const s=new DragEvent("dragover",{dataTransfer:o});t.dispatchEvent(s),a(t.isDragged).to.be.false,a(o.dropEffect).to.not.equal(t.dropEffect),a(o.dropEffect).to.equal("none")}}),it("manages `dragleave` events via debounce",async()=>{let e=0;const o=await n(d`
108
40
  <sp-dropzone
109
41
  id="dropzone"
110
- @sp-dropzone-dragleave=${onDragLeave}
42
+ @sp-dropzone-dragleave=${()=>{e+=1}}
111
43
  ></sp-dropzone>
112
- `);
113
- await elementUpdated(el);
114
- expect(dragLeftCount).to.equal(0);
115
- el.dispatchEvent(new DragEvent("dragleave"));
116
- el.dispatchEvent(new DragEvent("dragleave"));
117
- await waitForPredicate(() => dragLeftCount === 1);
118
- expect(dragLeftCount).to.equal(1);
119
- });
120
- it("manages `dragleave` events", async () => {
121
- let dropped = false;
122
- const onDrop = () => {
123
- dropped = true;
124
- };
125
- const el = await fixture(html`
44
+ `);await r(o),a(e).to.equal(0),o.dispatchEvent(new DragEvent("dragleave")),o.dispatchEvent(new DragEvent("dragleave")),await i(()=>e===1),a(e).to.equal(1)}),it("manages `dragleave` events",async()=>{let e=!1;const o=await n(d`
126
45
  <sp-dropzone
127
46
  id="dropzone"
128
- @sp-dropzone-drop=${onDrop}
47
+ @sp-dropzone-drop=${()=>{e=!0}}
129
48
  ></sp-dropzone>
130
- `);
131
- await elementUpdated(el);
132
- expect(dropped).to.be.false;
133
- el.dispatchEvent(new DragEvent("drop"));
134
- expect(dropped).to.be.true;
135
- });
136
- });
49
+ `);await r(o),a(e).to.be.false,o.dispatchEvent(new DragEvent("drop")),a(e).to.be.true})});
137
50
  //# sourceMappingURL=dropzone.test.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["dropzone.test.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport '@spectrum-web-components/dropzone/sp-dropzone.js';\nimport { Dropzone } from '@spectrum-web-components/dropzone';\nimport { illustration } from './test-svg.js';\nimport { waitForPredicate } from '../../../test/testing-helpers.js';\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\ndescribe('Dropzone', () => {\n it('loads', async () => {\n const el = await fixture<Dropzone>(\n html`\n <sp-dropzone id=\"dropzone\">\n <sp-illustrated-message heading=\"Drag and Drop Your File\">\n ${illustration}\n </sp-illustrated-message>\n\n <div style=\"color: grey\">\n <div>\n <label for=\"file-input\">\n <sp-link>Select a File</sp-link>\n from your computer\n </label>\n <input\n type=\"file\"\n id=\"file-input\"\n style=\"display: none\"\n />\n </div>\n <div>\n or\n <sp-link\n href=\"http://stock.adobe.com\"\n target=\"blank\"\n >\n Search Adobe Stock\n </sp-link>\n </div>\n </div>\n </sp-dropzone>\n `\n );\n expect(el).to.not.equal(undefined);\n if (!el.shadowRoot) throw new Error('No shadowRoot');\n const slot = el.shadowRoot.querySelector('slot') as HTMLSlotElement;\n expect(slot).to.not.equal(undefined);\n return true;\n });\n it('manages `dropEffects`', async () => {\n const el = await fixture<Dropzone>(\n html`\n <sp-dropzone id=\"dropzone\"></sp-dropzone>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.dropEffect).to.equal('copy');\n\n el.dropEffect = 'move';\n\n await elementUpdated(el);\n\n expect(el.dropEffect).to.equal('move');\n });\n it('manages `dragover` events', async () => {\n const el = await fixture<Dropzone>(\n html`\n <sp-dropzone id=\"dropzone\"></sp-dropzone>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.isDragged).to.be.false;\n\n el.dispatchEvent(new DragEvent('dragover'));\n\n expect(el.isDragged).to.be.false;\n\n let dataTransfer: DataTransfer | boolean = false;\n try {\n // Safari doesn't like this...\n dataTransfer = new DataTransfer();\n } catch (error) {}\n if (dataTransfer) {\n const dragOverEvent = new DragEvent('dragover', {\n dataTransfer,\n });\n\n el.dispatchEvent(dragOverEvent);\n\n expect(el.isDragged).to.be.true;\n // We should be able to make the following test here:\n // expect(dataTransfer.dropEffect).to.equal(el.dropEffect);\n // However, Chrome doesn't like it in the context of a test...\n }\n });\n it('allows `dragover` events to be canceled', async () => {\n const canceledDrag = (event: DragEvent): void => {\n event.preventDefault();\n };\n const el = await fixture<Dropzone>(\n html`\n <sp-dropzone\n id=\"dropzone\"\n @sp-dropzone-should-accept=${canceledDrag}\n ></sp-dropzone>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.isDragged).to.be.false;\n\n let dataTransfer: DataTransfer | boolean = false;\n try {\n // Safari doesn't like this...\n dataTransfer = new DataTransfer();\n } catch (error) {}\n if (dataTransfer) {\n const dragOverEvent = new DragEvent('dragover', {\n dataTransfer,\n });\n\n el.dispatchEvent(dragOverEvent);\n\n expect(el.isDragged).to.be.false;\n expect(dataTransfer.dropEffect).to.not.equal(el.dropEffect);\n expect(dataTransfer.dropEffect).to.equal('none');\n }\n });\n it('manages `dragleave` events via debounce', async () => {\n let dragLeftCount = 0;\n const onDragLeave = (): void => {\n dragLeftCount += 1;\n };\n const el = await fixture<Dropzone>(\n html`\n <sp-dropzone\n id=\"dropzone\"\n @sp-dropzone-dragleave=${onDragLeave}\n ></sp-dropzone>\n `\n );\n\n await elementUpdated(el);\n\n expect(dragLeftCount).to.equal(0);\n\n el.dispatchEvent(new DragEvent('dragleave'));\n el.dispatchEvent(new DragEvent('dragleave'));\n\n await waitForPredicate(() => dragLeftCount === 1);\n\n expect(dragLeftCount).to.equal(1);\n });\n\n it('manages `dragleave` events', async () => {\n let dropped = false;\n const onDrop = (): void => {\n dropped = true;\n };\n const el = await fixture<Dropzone>(\n html`\n <sp-dropzone\n id=\"dropzone\"\n @sp-dropzone-drop=${onDrop}\n ></sp-dropzone>\n `\n );\n\n await elementUpdated(el);\n\n expect(dropped).to.be.false;\n\n el.dispatchEvent(new DragEvent('drop'));\n\n expect(dropped).to.be.true;\n });\n});\n"],
5
- "mappings": "AAWA;AAEA;AACA;AACA;AAEA,SAAS,YAAY,MAAM;AACvB,KAAG,SAAS,YAAY;AACpB,UAAM,KAAK,MAAM,QACb;AAAA;AAAA;AAAA,0BAGc;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,aA2BlB;AACA,WAAO,EAAE,EAAE,GAAG,IAAI,MAAM,MAAS;AACjC,QAAI,CAAC,GAAG;AAAY,YAAM,IAAI,MAAM,eAAe;AACnD,UAAM,OAAO,GAAG,WAAW,cAAc,MAAM;AAC/C,WAAO,IAAI,EAAE,GAAG,IAAI,MAAM,MAAS;AACnC,WAAO;AAAA,EACX,CAAC;AACD,KAAG,yBAAyB,YAAY;AACpC,UAAM,KAAK,MAAM,QACb;AAAA;AAAA,aAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,UAAU,EAAE,GAAG,MAAM,MAAM;AAErC,OAAG,aAAa;AAEhB,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,UAAU,EAAE,GAAG,MAAM,MAAM;AAAA,EACzC,CAAC;AACD,KAAG,6BAA6B,YAAY;AACxC,UAAM,KAAK,MAAM,QACb;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AAAA;AAAA,6CAJgB,IAAY,CAC5B,GAAiB,CACrB;AAAA;AAAA,aAQA,EAEA,KAAM,GAAe,CAAE,EAEvB,EAAO,CAAa,EAAE,GAAG,MAAM,CAAC,EAEhC,EAAG,cAAc,GAAI,WAAU,WAAW,CAAC,EAC3C,EAAG,cAAc,GAAI,WAAU,WAAW,CAAC,EAE3C,KAAM,GAAiB,IAAM,IAAkB,CAAC,EAEhD,EAAO,CAAa,EAAE,GAAG,MAAM,CAAC,CACpC,CAAC,EAED,GAAG,6BAA8B,SAAY,CACzC,GAAI,GAAU,GAId,KAAM,GAAK,KAAM,GACb;AAAA;AAAA;AAAA,wCAJW,IAAY,CACvB,EAAU,EACd;AAAA;AAAA,aAQA,EAEA,KAAM,GAAe,CAAE,EAEvB,EAAO,CAAO,EAAE,GAAG,GAAG,MAEtB,EAAG,cAAc,GAAI,WAAU,MAAM,CAAC,EAEtC,EAAO,CAAO,EAAE,GAAG,GAAG,IAC1B,CAAC,CACL,CAAC",
6
6
  "names": []
7
7
  }
package/test/test-svg.js CHANGED
@@ -1,5 +1,4 @@
1
- import { html } from "@spectrum-web-components/base";
2
- export const illustration = html`
1
+ import{html as s}from"@spectrum-web-components/base";export const illustration=s`
3
2
  <svg
4
3
  xmlns="http://www.w3.org/2000/svg"
5
4
  viewBox="0 0 200 100"
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["test-svg.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html } from '@spectrum-web-components/base';\n\nexport const illustration = html`\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 200 100\"\n width=\"200\"\n height=\"100\"\n >\n <defs>\n <style>\n .cls-1,\n .cls-2 {\n fill: none;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n .cls-1 {\n stroke-width: 3px;\n }\n .cls-2 {\n stroke-width: 2px;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M110.53,85.66,100.26,95.89a1.09,1.09,0,0,1-1.52,0L88.47,85.66\"\n ></path>\n <line class=\"cls-1\" x1=\"99.5\" y1=\"95.5\" x2=\"99.5\" y2=\"58.5\"></line>\n <path class=\"cls-1\" d=\"M105.5,73.5h19a2,2,0,0,0,2-2v-43\"></path>\n <path\n class=\"cls-1\"\n d=\"M126.5,22.5h-19a2,2,0,0,1-2-2V1.5h-31a2,2,0,0,0-2,2v68a2,2,0,0,0,2,2h19\"\n ></path>\n <line class=\"cls-1\" x1=\"105.5\" y1=\"1.5\" x2=\"126.5\" y2=\"22.5\"></line>\n <path\n class=\"cls-2\"\n d=\"M47.93,50.49a5,5,0,1,0-4.83-5A4.93,4.93,0,0,0,47.93,50.49Z\"\n ></path>\n <path\n class=\"cls-2\"\n d=\"M36.6,65.93,42.05,60A2.06,2.06,0,0,1,45,60l12.68,13.2\"\n ></path>\n <path\n class=\"cls-2\"\n d=\"M3.14,73.23,22.42,53.76a1.65,1.65,0,0,1,2.38,0l19.05,19.7\"\n ></path>\n <path\n class=\"cls-1\"\n d=\"M139.5,36.5H196A1.49,1.49,0,0,1,197.5,38V72A1.49,1.49,0,0,1,196,73.5H141A1.49,1.49,0,0,1,139.5,72V32A1.49,1.49,0,0,1,141,30.5H154a2.43,2.43,0,0,1,1.67.66l6,5.66\"\n ></path>\n <rect\n class=\"cls-1\"\n x=\"1.5\"\n y=\"34.5\"\n width=\"58\"\n height=\"39\"\n rx=\"2\"\n ry=\"2\"\n ></rect>\n </svg>\n`;\n"],
5
- "mappings": "AAWA;AAEO,aAAM,eAAe;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;",
5
+ "mappings": "AAWA,qDAEO,YAAM,cAAe;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;",
6
6
  "names": []
7
7
  }