@spectrum-web-components/tray 0.5.4-overlay.18 → 0.30.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/custom-elements.json +184 -0
- package/package.json +8 -8
- package/sp-tray.dev.js +2 -1
- package/sp-tray.dev.js.map +2 -2
- package/sp-tray.js +1 -1
- package/sp-tray.js.map +3 -3
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
{
|
|
12
|
+
"kind": "javascript-module",
|
|
13
|
+
"path": "src/Tray.js",
|
|
14
|
+
"declarations": [
|
|
15
|
+
{
|
|
16
|
+
"kind": "class",
|
|
17
|
+
"description": "",
|
|
18
|
+
"name": "Tray",
|
|
19
|
+
"slots": [
|
|
20
|
+
{
|
|
21
|
+
"description": "content to display within the Tray",
|
|
22
|
+
"name": ""
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"members": [
|
|
26
|
+
{
|
|
27
|
+
"kind": "field",
|
|
28
|
+
"name": "open",
|
|
29
|
+
"type": {
|
|
30
|
+
"text": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"privacy": "public",
|
|
33
|
+
"default": "false",
|
|
34
|
+
"attribute": "open",
|
|
35
|
+
"reflects": true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"kind": "field",
|
|
39
|
+
"name": "prefersMotion",
|
|
40
|
+
"privacy": "protected",
|
|
41
|
+
"default": "new MatchMediaController(\n this,\n '(prefers-reduced-motion: no-preference)'\n )"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "field",
|
|
45
|
+
"name": "transitionPromise",
|
|
46
|
+
"privacy": "private"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"kind": "field",
|
|
50
|
+
"name": "resolveTransitionPromise",
|
|
51
|
+
"type": {
|
|
52
|
+
"text": "() => void"
|
|
53
|
+
},
|
|
54
|
+
"privacy": "private"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "field",
|
|
58
|
+
"name": "tray",
|
|
59
|
+
"type": {
|
|
60
|
+
"text": "HTMLDivElement"
|
|
61
|
+
},
|
|
62
|
+
"privacy": "private"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "method",
|
|
66
|
+
"name": "focus",
|
|
67
|
+
"privacy": "public",
|
|
68
|
+
"return": {
|
|
69
|
+
"type": {
|
|
70
|
+
"text": "void"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"kind": "field",
|
|
76
|
+
"name": "animating",
|
|
77
|
+
"type": {
|
|
78
|
+
"text": "boolean"
|
|
79
|
+
},
|
|
80
|
+
"privacy": "private",
|
|
81
|
+
"default": "false"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"kind": "method",
|
|
85
|
+
"name": "overlayWillCloseCallback",
|
|
86
|
+
"privacy": "public",
|
|
87
|
+
"return": {
|
|
88
|
+
"type": {
|
|
89
|
+
"text": "boolean"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"kind": "method",
|
|
95
|
+
"name": "close",
|
|
96
|
+
"privacy": "public",
|
|
97
|
+
"return": {
|
|
98
|
+
"type": {
|
|
99
|
+
"text": "void"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"kind": "method",
|
|
105
|
+
"name": "dispatchClosed",
|
|
106
|
+
"privacy": "private",
|
|
107
|
+
"return": {
|
|
108
|
+
"type": {
|
|
109
|
+
"text": "void"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"kind": "method",
|
|
115
|
+
"name": "handleUnderlayTransitionend",
|
|
116
|
+
"privacy": "protected",
|
|
117
|
+
"return": {
|
|
118
|
+
"type": {
|
|
119
|
+
"text": "void"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"kind": "method",
|
|
125
|
+
"name": "handleTrayTransitionend",
|
|
126
|
+
"privacy": "protected",
|
|
127
|
+
"return": {
|
|
128
|
+
"type": {
|
|
129
|
+
"text": "void"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"kind": "method",
|
|
135
|
+
"name": "getUpdateComplete",
|
|
136
|
+
"privacy": "protected",
|
|
137
|
+
"return": {
|
|
138
|
+
"type": {
|
|
139
|
+
"text": "Promise<boolean>"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"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."
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"events": [
|
|
146
|
+
{
|
|
147
|
+
"name": "close",
|
|
148
|
+
"type": {
|
|
149
|
+
"text": "Event"
|
|
150
|
+
},
|
|
151
|
+
"description": "Announces that the Tray has been closed."
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"attributes": [
|
|
155
|
+
{
|
|
156
|
+
"name": "open",
|
|
157
|
+
"type": {
|
|
158
|
+
"text": "boolean"
|
|
159
|
+
},
|
|
160
|
+
"default": "false",
|
|
161
|
+
"fieldName": "open"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"superclass": {
|
|
165
|
+
"name": "SpectrumElement",
|
|
166
|
+
"package": "@spectrum-web-components/base"
|
|
167
|
+
},
|
|
168
|
+
"tagName": "sp-tray",
|
|
169
|
+
"customElement": true
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"exports": [
|
|
173
|
+
{
|
|
174
|
+
"kind": "js",
|
|
175
|
+
"name": "Tray",
|
|
176
|
+
"declaration": {
|
|
177
|
+
"name": "Tray",
|
|
178
|
+
"module": "src/Tray.js"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/tray",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"lit-html"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@spectrum-web-components/base": "^0.
|
|
61
|
-
"@spectrum-web-components/modal": "^0.
|
|
62
|
-
"@spectrum-web-components/reactive-controllers": "^0.
|
|
63
|
-
"@spectrum-web-components/shared": "^0.
|
|
64
|
-
"@spectrum-web-components/underlay": "^0.
|
|
60
|
+
"@spectrum-web-components/base": "^0.30.0",
|
|
61
|
+
"@spectrum-web-components/modal": "^0.30.0",
|
|
62
|
+
"@spectrum-web-components/reactive-controllers": "^0.30.0",
|
|
63
|
+
"@spectrum-web-components/shared": "^0.30.0",
|
|
64
|
+
"@spectrum-web-components/underlay": "^0.30.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@spectrum-css/tray": "^2.0.
|
|
67
|
+
"@spectrum-css/tray": "^2.0.35"
|
|
68
68
|
},
|
|
69
69
|
"types": "./src/index.d.ts",
|
|
70
70
|
"customElements": "custom-elements.json",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"./sp-*.js",
|
|
73
73
|
"./**/*.dev.js"
|
|
74
74
|
],
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "e34a26bf2bbea5f60a5e415e0f12c97654f0e20d"
|
|
76
76
|
}
|
package/sp-tray.dev.js
CHANGED
package/sp-tray.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-tray.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 { Tray } from './src/Tray.dev.js'\n\
|
|
5
|
-
"mappings": ";AAYA,SAAS,YAAY;
|
|
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 { Tray } from './src/Tray.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-tray', Tray);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-tray': Tray;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAYA,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAE9B,cAAc,WAAW,IAAI;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/sp-tray.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{Tray as e}from"./src/Tray.js";
|
|
1
|
+
"use strict";import{Tray as e}from"./src/Tray.js";import{defineElement as a}from"@spectrum-web-components/base/src/define-element.js";a("sp-tray",e);
|
|
2
2
|
//# sourceMappingURL=sp-tray.js.map
|
package/sp-tray.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-tray.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 { Tray } from './src/Tray.js';\n\
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAAY,
|
|
6
|
-
"names": ["Tray"]
|
|
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 { Tray } from './src/Tray.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-tray', Tray);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-tray': Tray;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAAY,gBACrB,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,UAAWD,CAAI",
|
|
6
|
+
"names": ["Tray", "defineElement"]
|
|
7
7
|
}
|