@spectrum-web-components/accordion 0.7.14-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.
@@ -0,0 +1,266 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-accordion-item.js",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
11
+ {
12
+ "kind": "javascript-module",
13
+ "path": "sp-accordion.js",
14
+ "declarations": [],
15
+ "exports": []
16
+ },
17
+ {
18
+ "kind": "javascript-module",
19
+ "path": "src/Accordion.js",
20
+ "declarations": [
21
+ {
22
+ "kind": "class",
23
+ "description": "",
24
+ "name": "Accordion",
25
+ "slots": [
26
+ {
27
+ "description": "The sp-accordion-item children to display.",
28
+ "name": ""
29
+ }
30
+ ],
31
+ "members": [
32
+ {
33
+ "kind": "field",
34
+ "name": "allowMultiple",
35
+ "type": {
36
+ "text": "boolean"
37
+ },
38
+ "privacy": "public",
39
+ "default": "false",
40
+ "description": "Allows multiple accordion items to be opened at the same time",
41
+ "attribute": "allow-multiple",
42
+ "reflects": true
43
+ },
44
+ {
45
+ "kind": "field",
46
+ "name": "defaultNodes",
47
+ "type": {
48
+ "text": "NodeListOf<AccordionItem>"
49
+ },
50
+ "privacy": "private"
51
+ },
52
+ {
53
+ "kind": "field",
54
+ "name": "items",
55
+ "type": {
56
+ "text": "AccordionItem[]"
57
+ },
58
+ "privacy": "private"
59
+ },
60
+ {
61
+ "kind": "field",
62
+ "name": "focusGroupController",
63
+ "default": "new FocusGroupController<AccordionItem>(this, {\n direction: 'vertical',\n elements: () => this.items,\n isFocusableElement: (el: AccordionItem) => !el.disabled,\n })"
64
+ },
65
+ {
66
+ "kind": "method",
67
+ "name": "focus",
68
+ "privacy": "public",
69
+ "return": {
70
+ "type": {
71
+ "text": "void"
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "kind": "method",
77
+ "name": "onToggle",
78
+ "privacy": "private",
79
+ "return": {
80
+ "type": {
81
+ "text": "Promise<void>"
82
+ }
83
+ },
84
+ "parameters": [
85
+ {
86
+ "name": "event",
87
+ "type": {
88
+ "text": "Event"
89
+ }
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "kind": "method",
95
+ "name": "handleSlotchange",
96
+ "privacy": "private",
97
+ "return": {
98
+ "type": {
99
+ "text": "void"
100
+ }
101
+ }
102
+ }
103
+ ],
104
+ "attributes": [
105
+ {
106
+ "name": "allow-multiple",
107
+ "type": {
108
+ "text": "boolean"
109
+ },
110
+ "default": "false",
111
+ "description": "Allows multiple accordion items to be opened at the same time",
112
+ "fieldName": "allowMultiple"
113
+ }
114
+ ],
115
+ "superclass": {
116
+ "name": "SpectrumElement",
117
+ "package": "@spectrum-web-components/base"
118
+ },
119
+ "tagName": "sp-accordion",
120
+ "customElement": true
121
+ }
122
+ ],
123
+ "exports": [
124
+ {
125
+ "kind": "js",
126
+ "name": "Accordion",
127
+ "declaration": {
128
+ "name": "Accordion",
129
+ "module": "src/Accordion.js"
130
+ }
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "kind": "javascript-module",
136
+ "path": "src/AccordionItem.js",
137
+ "declarations": [
138
+ {
139
+ "kind": "class",
140
+ "description": "",
141
+ "name": "AccordionItem",
142
+ "slots": [
143
+ {
144
+ "description": "The content of the item that is hidden when the item is not open",
145
+ "name": ""
146
+ }
147
+ ],
148
+ "members": [
149
+ {
150
+ "kind": "field",
151
+ "name": "open",
152
+ "type": {
153
+ "text": "boolean"
154
+ },
155
+ "privacy": "public",
156
+ "default": "false",
157
+ "attribute": "open",
158
+ "reflects": true
159
+ },
160
+ {
161
+ "kind": "field",
162
+ "name": "label",
163
+ "type": {
164
+ "text": "string"
165
+ },
166
+ "privacy": "public",
167
+ "default": "''",
168
+ "attribute": "label",
169
+ "reflects": true
170
+ },
171
+ {
172
+ "kind": "field",
173
+ "name": "disabled",
174
+ "type": {
175
+ "text": "boolean"
176
+ },
177
+ "privacy": "public",
178
+ "default": "false",
179
+ "attribute": "disabled",
180
+ "reflects": true
181
+ },
182
+ {
183
+ "kind": "field",
184
+ "name": "focusElement",
185
+ "type": {
186
+ "text": "HTMLElement"
187
+ },
188
+ "privacy": "public"
189
+ },
190
+ {
191
+ "kind": "method",
192
+ "name": "onClick",
193
+ "privacy": "private",
194
+ "return": {
195
+ "type": {
196
+ "text": "void"
197
+ }
198
+ }
199
+ },
200
+ {
201
+ "kind": "method",
202
+ "name": "toggle",
203
+ "privacy": "private",
204
+ "return": {
205
+ "type": {
206
+ "text": "void"
207
+ }
208
+ }
209
+ }
210
+ ],
211
+ "events": [
212
+ {
213
+ "name": "sp-accordion-item-toggle",
214
+ "type": {
215
+ "text": "CustomEvent"
216
+ },
217
+ "description": "Announce that an accordion item has been toggled while allowing the event to be cancelled."
218
+ }
219
+ ],
220
+ "attributes": [
221
+ {
222
+ "name": "open",
223
+ "type": {
224
+ "text": "boolean"
225
+ },
226
+ "default": "false",
227
+ "fieldName": "open"
228
+ },
229
+ {
230
+ "name": "label",
231
+ "type": {
232
+ "text": "string"
233
+ },
234
+ "default": "''",
235
+ "fieldName": "label"
236
+ },
237
+ {
238
+ "name": "disabled",
239
+ "type": {
240
+ "text": "boolean"
241
+ },
242
+ "default": "false",
243
+ "fieldName": "disabled"
244
+ }
245
+ ],
246
+ "superclass": {
247
+ "name": "Focusable",
248
+ "package": "@spectrum-web-components/shared/src/focusable.js"
249
+ },
250
+ "tagName": "sp-accordion-item",
251
+ "customElement": true
252
+ }
253
+ ],
254
+ "exports": [
255
+ {
256
+ "kind": "js",
257
+ "name": "AccordionItem",
258
+ "declaration": {
259
+ "name": "AccordionItem",
260
+ "module": "src/AccordionItem.js"
261
+ }
262
+ }
263
+ ]
264
+ }
265
+ ]
266
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/accordion",
3
- "version": "0.7.14-overlay.18+2ba65b1a7",
3
+ "version": "0.30.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -66,14 +66,14 @@
66
66
  "lit-html"
67
67
  ],
68
68
  "dependencies": {
69
- "@spectrum-web-components/base": "^0.7.6-overlay.62+2ba65b1a7",
70
- "@spectrum-web-components/icon": "^0.12.12-overlay.18+2ba65b1a7",
71
- "@spectrum-web-components/icons-ui": "^0.9.13-overlay.18+2ba65b1a7",
72
- "@spectrum-web-components/reactive-controllers": "^0.3.6-overlay.349+2ba65b1a7",
73
- "@spectrum-web-components/shared": "^0.15.8-overlay.18+2ba65b1a7"
69
+ "@spectrum-web-components/base": "^0.30.0",
70
+ "@spectrum-web-components/icon": "^0.30.0",
71
+ "@spectrum-web-components/icons-ui": "^0.30.0",
72
+ "@spectrum-web-components/reactive-controllers": "^0.30.0",
73
+ "@spectrum-web-components/shared": "^0.30.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@spectrum-css/accordion": "^3.0.39"
76
+ "@spectrum-css/accordion": "^3.0.42"
77
77
  },
78
78
  "types": "./src/index.d.ts",
79
79
  "customElements": "custom-elements.json",
@@ -81,5 +81,5 @@
81
81
  "./sp-*.js",
82
82
  "./**/*.dev.js"
83
83
  ],
84
- "gitHead": "2ba65b1a7310f182972a840bea45ba93203c2da0"
84
+ "gitHead": "e34a26bf2bbea5f60a5e415e0f12c97654f0e20d"
85
85
  }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  import { AccordionItem } from "./src/AccordionItem.dev.js";
3
- customElements.define("sp-accordion-item", AccordionItem);
3
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
+ defineElement("sp-accordion-item", AccordionItem);
4
5
  //# sourceMappingURL=sp-accordion-item.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["sp-accordion-item.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*/\nimport { AccordionItem } from './src/AccordionItem.dev.js'\n\ncustomElements.define('sp-accordion-item', AccordionItem);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-accordion-item': AccordionItem;\n }\n}\n"],
5
- "mappings": ";AAWA,SAAS,qBAAqB;AAE9B,eAAe,OAAO,qBAAqB,aAAa;",
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 { AccordionItem } from './src/AccordionItem.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-accordion-item', AccordionItem);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-accordion-item': AccordionItem;\n }\n}\n"],
5
+ "mappings": ";AAWA,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAE9B,cAAc,qBAAqB,aAAa;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";import{AccordionItem as e}from"./src/AccordionItem.js";customElements.define("sp-accordion-item",e);
1
+ "use strict";import{AccordionItem as e}from"./src/AccordionItem.js";import{defineElement as o}from"@spectrum-web-components/base/src/define-element.js";o("sp-accordion-item",e);
2
2
  //# sourceMappingURL=sp-accordion-item.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["sp-accordion-item.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*/\nimport { AccordionItem } from './src/AccordionItem.js';\n\ncustomElements.define('sp-accordion-item', AccordionItem);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-accordion-item': AccordionItem;\n }\n}\n"],
5
- "mappings": "aAWA,OAAS,iBAAAA,MAAqB,yBAE9B,eAAe,OAAO,oBAAqBA,CAAa",
6
- "names": ["AccordionItem"]
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 { AccordionItem } from './src/AccordionItem.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-accordion-item', AccordionItem);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-accordion-item': AccordionItem;\n }\n}\n"],
5
+ "mappings": "aAWA,OAAS,iBAAAA,MAAqB,yBAC9B,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,oBAAqBD,CAAa",
6
+ "names": ["AccordionItem", "defineElement"]
7
7
  }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  import { Accordion } from "./src/Accordion.dev.js";
3
- customElements.define("sp-accordion", Accordion);
3
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
+ defineElement("sp-accordion", Accordion);
4
5
  //# sourceMappingURL=sp-accordion.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["sp-accordion.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*/\nimport { Accordion } from './src/Accordion.dev.js'\n\ncustomElements.define('sp-accordion', Accordion);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-accordion': Accordion;\n }\n}\n"],
5
- "mappings": ";AAWA,SAAS,iBAAiB;AAE1B,eAAe,OAAO,gBAAgB,SAAS;",
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 { Accordion } from './src/Accordion.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-accordion', Accordion);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-accordion': Accordion;\n }\n}\n"],
5
+ "mappings": ";AAWA,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAE9B,cAAc,gBAAgB,SAAS;",
6
6
  "names": []
7
7
  }
package/sp-accordion.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import{Accordion as o}from"./src/Accordion.js";customElements.define("sp-accordion",o);
1
+ "use strict";import{Accordion as o}from"./src/Accordion.js";import{defineElement as e}from"@spectrum-web-components/base/src/define-element.js";e("sp-accordion",o);
2
2
  //# sourceMappingURL=sp-accordion.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["sp-accordion.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*/\nimport { Accordion } from './src/Accordion.js';\n\ncustomElements.define('sp-accordion', Accordion);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-accordion': Accordion;\n }\n}\n"],
5
- "mappings": "aAWA,OAAS,aAAAA,MAAiB,qBAE1B,eAAe,OAAO,eAAgBA,CAAS",
6
- "names": ["Accordion"]
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 { Accordion } from './src/Accordion.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-accordion', Accordion);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-accordion': Accordion;\n }\n}\n"],
5
+ "mappings": "aAWA,OAAS,aAAAA,MAAiB,qBAC1B,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,eAAgBD,CAAS",
6
+ "names": ["Accordion", "defineElement"]
7
7
  }