@spectrum-web-components/dropzone 1.2.0-beta.1 → 1.2.0-beta.3
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/custom-elements.json +217 -0
- package/package.json +3 -3
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "sp-dropzone.js",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "custom-element-definition",
|
|
12
|
+
"name": "sp-dropzone",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "Dropzone",
|
|
15
|
+
"module": "/src/Dropzone.js"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"kind": "javascript-module",
|
|
22
|
+
"path": "src/Dropzone.js",
|
|
23
|
+
"declarations": [
|
|
24
|
+
{
|
|
25
|
+
"kind": "class",
|
|
26
|
+
"description": "",
|
|
27
|
+
"name": "Dropzone",
|
|
28
|
+
"slots": [
|
|
29
|
+
{
|
|
30
|
+
"description": "The default slot on an `sp-dropzone` is a great place to place upload instructions built with an `sp-illustrated-message` or other information, possibly even built from data provided by the upload, to support users successfully interacting with the drag and drop based features of your application",
|
|
31
|
+
"name": ""
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"members": [
|
|
35
|
+
{
|
|
36
|
+
"kind": "field",
|
|
37
|
+
"name": "dropEffect",
|
|
38
|
+
"type": {
|
|
39
|
+
"text": "'copy' | 'move' | 'link' | 'none'"
|
|
40
|
+
},
|
|
41
|
+
"privacy": "public",
|
|
42
|
+
"description": "Controls the feedback (typically visual) the user is given during a drag and drop operation",
|
|
43
|
+
"attribute": "dropEffect"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"kind": "field",
|
|
47
|
+
"name": "_dropEffect",
|
|
48
|
+
"type": {
|
|
49
|
+
"text": "DropEffects"
|
|
50
|
+
},
|
|
51
|
+
"privacy": "private",
|
|
52
|
+
"default": "'copy'"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"kind": "field",
|
|
56
|
+
"name": "isDragged",
|
|
57
|
+
"type": {
|
|
58
|
+
"text": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"privacy": "public",
|
|
61
|
+
"default": "false",
|
|
62
|
+
"description": "Indicates that files are currently being dragged over the dropzone.",
|
|
63
|
+
"attribute": "dragged",
|
|
64
|
+
"reflects": true
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"kind": "field",
|
|
68
|
+
"name": "isFilled",
|
|
69
|
+
"type": {
|
|
70
|
+
"text": "boolean"
|
|
71
|
+
},
|
|
72
|
+
"privacy": "public",
|
|
73
|
+
"default": "false",
|
|
74
|
+
"description": "Set this property to indicate that the component is in a filled state.",
|
|
75
|
+
"attribute": "filled"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"kind": "field",
|
|
79
|
+
"name": "debouncedDragLeave",
|
|
80
|
+
"type": {
|
|
81
|
+
"text": "number | null"
|
|
82
|
+
},
|
|
83
|
+
"privacy": "private",
|
|
84
|
+
"default": "null"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"kind": "method",
|
|
88
|
+
"name": "onDragOver",
|
|
89
|
+
"privacy": "public",
|
|
90
|
+
"return": {
|
|
91
|
+
"type": {
|
|
92
|
+
"text": "void"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"parameters": [
|
|
96
|
+
{
|
|
97
|
+
"name": "event",
|
|
98
|
+
"type": {
|
|
99
|
+
"text": "DragEvent"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"kind": "method",
|
|
106
|
+
"name": "onDragLeave",
|
|
107
|
+
"privacy": "public",
|
|
108
|
+
"return": {
|
|
109
|
+
"type": {
|
|
110
|
+
"text": "void"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"parameters": [
|
|
114
|
+
{
|
|
115
|
+
"name": "event",
|
|
116
|
+
"type": {
|
|
117
|
+
"text": "DragEvent"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"kind": "method",
|
|
124
|
+
"name": "onDrop",
|
|
125
|
+
"privacy": "public",
|
|
126
|
+
"return": {
|
|
127
|
+
"type": {
|
|
128
|
+
"text": "void"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"parameters": [
|
|
132
|
+
{
|
|
133
|
+
"name": "event",
|
|
134
|
+
"type": {
|
|
135
|
+
"text": "DragEvent"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"kind": "method",
|
|
142
|
+
"name": "clearDebouncedDragLeave",
|
|
143
|
+
"privacy": "protected",
|
|
144
|
+
"return": {
|
|
145
|
+
"type": {
|
|
146
|
+
"text": "void"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"events": [
|
|
152
|
+
{
|
|
153
|
+
"description": "A cancellable event that confirms whether or not a file dropped on the UI should be accepted.",
|
|
154
|
+
"name": "sp-dropzone-should-accept"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"description": "Announces when files have been dragged over the UI, but not yet dropped.",
|
|
158
|
+
"name": "sp-dropzone-dragover"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"description": "Announces when dragged files have been moved out of the UI without having been dropped.",
|
|
162
|
+
"name": "sp-dropzone-dragleave"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"description": "Announces when dragged files have been dropped on the UI.",
|
|
166
|
+
"name": "sp-dropzone-drop"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"attributes": [
|
|
170
|
+
{
|
|
171
|
+
"name": "dropEffect",
|
|
172
|
+
"type": {
|
|
173
|
+
"text": "'copy' | 'move' | 'link' | 'none'"
|
|
174
|
+
},
|
|
175
|
+
"description": "Controls the feedback (typically visual) the user is given during a drag and drop operation",
|
|
176
|
+
"fieldName": "dropEffect"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "dragged",
|
|
180
|
+
"type": {
|
|
181
|
+
"text": "boolean"
|
|
182
|
+
},
|
|
183
|
+
"default": "false",
|
|
184
|
+
"description": "Indicates that files are currently being dragged over the dropzone.",
|
|
185
|
+
"fieldName": "isDragged"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "filled",
|
|
189
|
+
"type": {
|
|
190
|
+
"text": "boolean"
|
|
191
|
+
},
|
|
192
|
+
"default": "false",
|
|
193
|
+
"description": "Set this property to indicate that the component is in a filled state.",
|
|
194
|
+
"fieldName": "isFilled"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"superclass": {
|
|
198
|
+
"name": "SpectrumElement",
|
|
199
|
+
"package": "@spectrum-web-components/base"
|
|
200
|
+
},
|
|
201
|
+
"tagName": "sp-dropzone",
|
|
202
|
+
"customElement": true
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"exports": [
|
|
206
|
+
{
|
|
207
|
+
"kind": "js",
|
|
208
|
+
"name": "Dropzone",
|
|
209
|
+
"declaration": {
|
|
210
|
+
"name": "Dropzone",
|
|
211
|
+
"module": "src/Dropzone.js"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/dropzone",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"lit-html"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@spectrum-web-components/base": "^1.2.0-beta.
|
|
61
|
+
"@spectrum-web-components/base": "^1.2.0-beta.3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@spectrum-css/dropzone": "7.0.0-s2-foundations.16"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"./sp-*.js",
|
|
70
70
|
"./**/*.dev.js"
|
|
71
71
|
],
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "f8978dc08b7495f6cbf0e9f096d0cec2e55f0428"
|
|
73
73
|
}
|