@spectrum-web-components/tray 1.0.0 → 1.1.0-beta.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 +7 -7
- package/custom-elements.json +0 -190
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/tray",
|
|
3
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"lit-html"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@spectrum-web-components/base": "^1.0.0",
|
|
62
|
-
"@spectrum-web-components/modal": "^1.0.0",
|
|
63
|
-
"@spectrum-web-components/reactive-controllers": "^1.0.0",
|
|
64
|
-
"@spectrum-web-components/shared": "^1.0.0",
|
|
65
|
-
"@spectrum-web-components/underlay": "^1.0.0"
|
|
61
|
+
"@spectrum-web-components/base": "^1.1.0-beta.0",
|
|
62
|
+
"@spectrum-web-components/modal": "^1.1.0-beta.0",
|
|
63
|
+
"@spectrum-web-components/reactive-controllers": "^1.1.0-beta.0",
|
|
64
|
+
"@spectrum-web-components/shared": "^1.1.0-beta.0",
|
|
65
|
+
"@spectrum-web-components/underlay": "^1.1.0-beta.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@spectrum-css/tray": "^4.0.0-s2-foundations.15"
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"./sp-*.js",
|
|
74
74
|
"./**/*.dev.js"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "8840da116b3429f0b4de70ad7f690ae3de1c9448"
|
|
77
77
|
}
|
package/custom-elements.json
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.0.0",
|
|
3
|
-
"readme": "",
|
|
4
|
-
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-tray.js",
|
|
8
|
-
"declarations": [],
|
|
9
|
-
"exports": [
|
|
10
|
-
{
|
|
11
|
-
"kind": "custom-element-definition",
|
|
12
|
-
"name": "sp-tray",
|
|
13
|
-
"declaration": {
|
|
14
|
-
"name": "Tray",
|
|
15
|
-
"module": "/src/Tray.js"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"kind": "javascript-module",
|
|
22
|
-
"path": "src/Tray.js",
|
|
23
|
-
"declarations": [
|
|
24
|
-
{
|
|
25
|
-
"kind": "class",
|
|
26
|
-
"description": "",
|
|
27
|
-
"name": "Tray",
|
|
28
|
-
"slots": [
|
|
29
|
-
{
|
|
30
|
-
"description": "content to display within the Tray",
|
|
31
|
-
"name": ""
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"members": [
|
|
35
|
-
{
|
|
36
|
-
"kind": "field",
|
|
37
|
-
"name": "open",
|
|
38
|
-
"type": {
|
|
39
|
-
"text": "boolean"
|
|
40
|
-
},
|
|
41
|
-
"privacy": "public",
|
|
42
|
-
"default": "false",
|
|
43
|
-
"attribute": "open",
|
|
44
|
-
"reflects": true
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"kind": "field",
|
|
48
|
-
"name": "prefersMotion",
|
|
49
|
-
"privacy": "protected",
|
|
50
|
-
"default": "new MatchMediaController(\n this,\n '(prefers-reduced-motion: no-preference)'\n )"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"kind": "field",
|
|
54
|
-
"name": "transitionPromise",
|
|
55
|
-
"privacy": "private"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"kind": "field",
|
|
59
|
-
"name": "resolveTransitionPromise",
|
|
60
|
-
"privacy": "private"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"kind": "field",
|
|
64
|
-
"name": "tray",
|
|
65
|
-
"type": {
|
|
66
|
-
"text": "HTMLDivElement"
|
|
67
|
-
},
|
|
68
|
-
"privacy": "private"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"kind": "method",
|
|
72
|
-
"name": "focus",
|
|
73
|
-
"privacy": "public",
|
|
74
|
-
"return": {
|
|
75
|
-
"type": {
|
|
76
|
-
"text": "void"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"kind": "field",
|
|
82
|
-
"name": "animating",
|
|
83
|
-
"type": {
|
|
84
|
-
"text": "boolean"
|
|
85
|
-
},
|
|
86
|
-
"privacy": "private",
|
|
87
|
-
"default": "false"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"kind": "method",
|
|
91
|
-
"name": "overlayWillCloseCallback",
|
|
92
|
-
"privacy": "public",
|
|
93
|
-
"return": {
|
|
94
|
-
"type": {
|
|
95
|
-
"text": "boolean"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"kind": "method",
|
|
101
|
-
"name": "close",
|
|
102
|
-
"privacy": "public",
|
|
103
|
-
"return": {
|
|
104
|
-
"type": {
|
|
105
|
-
"text": "void"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"kind": "method",
|
|
111
|
-
"name": "dispatchClosed",
|
|
112
|
-
"privacy": "private",
|
|
113
|
-
"return": {
|
|
114
|
-
"type": {
|
|
115
|
-
"text": "void"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"kind": "method",
|
|
121
|
-
"name": "handleUnderlayTransitionend",
|
|
122
|
-
"privacy": "protected",
|
|
123
|
-
"return": {
|
|
124
|
-
"type": {
|
|
125
|
-
"text": "void"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"kind": "method",
|
|
131
|
-
"name": "handleTrayTransitionend",
|
|
132
|
-
"privacy": "protected",
|
|
133
|
-
"return": {
|
|
134
|
-
"type": {
|
|
135
|
-
"text": "void"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"kind": "method",
|
|
141
|
-
"name": "getUpdateComplete",
|
|
142
|
-
"privacy": "protected",
|
|
143
|
-
"return": {
|
|
144
|
-
"type": {
|
|
145
|
-
"text": "Promise<boolean>"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"description": "Bind the open/close transition into the update complete lifecycle so\nthat the overlay system can wait for it to be \"visibly ready\" before\nattempting to throw focus into the content contained herein. Not\nwaiting for this can cause small amounts of page scroll to happen\nwhile opening the Tray when focusable content is included: e.g. Menu\nelements whose selected Menu Item is not the first Menu Item."
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"events": [
|
|
152
|
-
{
|
|
153
|
-
"name": "close",
|
|
154
|
-
"type": {
|
|
155
|
-
"text": "Event"
|
|
156
|
-
},
|
|
157
|
-
"description": "Announces that the Tray has been closed."
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
"attributes": [
|
|
161
|
-
{
|
|
162
|
-
"name": "open",
|
|
163
|
-
"type": {
|
|
164
|
-
"text": "boolean"
|
|
165
|
-
},
|
|
166
|
-
"default": "false",
|
|
167
|
-
"fieldName": "open"
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"superclass": {
|
|
171
|
-
"name": "SpectrumElement",
|
|
172
|
-
"package": "@spectrum-web-components/base"
|
|
173
|
-
},
|
|
174
|
-
"tagName": "sp-tray",
|
|
175
|
-
"customElement": true
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"exports": [
|
|
179
|
-
{
|
|
180
|
-
"kind": "js",
|
|
181
|
-
"name": "Tray",
|
|
182
|
-
"declaration": {
|
|
183
|
-
"name": "Tray",
|
|
184
|
-
"module": "src/Tray.js"
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
]
|
|
190
|
-
}
|