@spectrum-web-components/dropzone 1.6.1-beta.0 → 1.7.0-snapshot.20250519143559
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 +2 -5
- package/custom-elements.json +0 -217
- package/src/spectrum-config.js +0 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/dropzone",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-snapshot.20250519143559",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -64,10 +64,7 @@
|
|
|
64
64
|
"css"
|
|
65
65
|
],
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@spectrum-web-components/base": "1.
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@spectrum-css/dropzone": "8.1.0"
|
|
67
|
+
"@spectrum-web-components/base": "1.7.0-snapshot.20250519143559"
|
|
71
68
|
},
|
|
72
69
|
"types": "./src/index.d.ts",
|
|
73
70
|
"customElements": "custom-elements.json",
|
package/custom-elements.json
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
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/src/spectrum-config.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
/*
|
|
3
|
-
Copyright 2023 Adobe. All rights reserved.
|
|
4
|
-
This file is licensed to you under the Apache License, Version 2.0 (the 'License');
|
|
5
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
6
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
|
|
8
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
9
|
-
the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
10
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
11
|
-
governing permissions and limitations under the License.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { converterFor } from '../../../tasks/process-spectrum-utils.js';
|
|
15
|
-
|
|
16
|
-
const converter = converterFor('spectrum-DropZone');
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
|
|
20
|
-
*/
|
|
21
|
-
const config = {
|
|
22
|
-
conversions: [
|
|
23
|
-
{
|
|
24
|
-
inPackage: '@spectrum-css/dropzone',
|
|
25
|
-
outPackage: 'dropzone',
|
|
26
|
-
fileName: 'dropzone',
|
|
27
|
-
components: [
|
|
28
|
-
converter.classToHost(),
|
|
29
|
-
converter.classToAttribute('is-dragged', 'dragged'),
|
|
30
|
-
converter.classToAttribute('is-filled', 'filled'),
|
|
31
|
-
converter.classToSlotted(
|
|
32
|
-
'spectrum-IllustratedMessage-illustration'
|
|
33
|
-
),
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export default config;
|