@spectrum-web-components/tags 0.49.0-beta.2 → 0.49.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,275 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-tag.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-tag",
13
+ "declaration": {
14
+ "name": "Tag",
15
+ "module": "/src/Tag.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "sp-tags.js",
23
+ "declarations": [],
24
+ "exports": [
25
+ {
26
+ "kind": "custom-element-definition",
27
+ "name": "sp-tags",
28
+ "declaration": {
29
+ "name": "Tags",
30
+ "module": "/src/Tags.js"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "kind": "javascript-module",
37
+ "path": "src/Tag.js",
38
+ "declarations": [
39
+ {
40
+ "kind": "class",
41
+ "description": "",
42
+ "name": "Tag",
43
+ "slots": [
44
+ {
45
+ "description": "text content for labeling the tag",
46
+ "name": ""
47
+ },
48
+ {
49
+ "description": "an avatar element to display within the Tag",
50
+ "name": "avatar"
51
+ },
52
+ {
53
+ "description": "an icon element to display within the Tag",
54
+ "name": "icon"
55
+ }
56
+ ],
57
+ "members": [
58
+ {
59
+ "kind": "field",
60
+ "name": "deletable",
61
+ "type": {
62
+ "text": "boolean"
63
+ },
64
+ "privacy": "public",
65
+ "default": "false",
66
+ "attribute": "deletable",
67
+ "reflects": true
68
+ },
69
+ {
70
+ "kind": "field",
71
+ "name": "disabled",
72
+ "type": {
73
+ "text": "boolean"
74
+ },
75
+ "privacy": "public",
76
+ "default": "false",
77
+ "attribute": "disabled",
78
+ "reflects": true
79
+ },
80
+ {
81
+ "kind": "field",
82
+ "name": "readonly",
83
+ "type": {
84
+ "text": "boolean"
85
+ },
86
+ "privacy": "public",
87
+ "default": "false",
88
+ "attribute": "readonly",
89
+ "reflects": true
90
+ },
91
+ {
92
+ "kind": "field",
93
+ "name": "handleFocusin",
94
+ "privacy": "private"
95
+ },
96
+ {
97
+ "kind": "field",
98
+ "name": "handleFocusout",
99
+ "privacy": "private"
100
+ },
101
+ {
102
+ "kind": "field",
103
+ "name": "handleKeydown",
104
+ "privacy": "private"
105
+ },
106
+ {
107
+ "kind": "method",
108
+ "name": "delete",
109
+ "privacy": "private",
110
+ "return": {
111
+ "type": {
112
+ "text": "void"
113
+ }
114
+ }
115
+ }
116
+ ],
117
+ "events": [
118
+ {
119
+ "name": "delete",
120
+ "type": {
121
+ "text": "Event"
122
+ }
123
+ }
124
+ ],
125
+ "attributes": [
126
+ {
127
+ "name": "deletable",
128
+ "type": {
129
+ "text": "boolean"
130
+ },
131
+ "default": "false",
132
+ "fieldName": "deletable"
133
+ },
134
+ {
135
+ "name": "disabled",
136
+ "type": {
137
+ "text": "boolean"
138
+ },
139
+ "default": "false",
140
+ "fieldName": "disabled"
141
+ },
142
+ {
143
+ "name": "readonly",
144
+ "type": {
145
+ "text": "boolean"
146
+ },
147
+ "default": "false",
148
+ "fieldName": "readonly"
149
+ }
150
+ ],
151
+ "mixins": [
152
+ {
153
+ "name": "SizedMixin",
154
+ "package": "@spectrum-web-components/base"
155
+ }
156
+ ],
157
+ "superclass": {
158
+ "name": "SpectrumElement",
159
+ "package": "@spectrum-web-components/base"
160
+ },
161
+ "tagName": "sp-tag",
162
+ "customElement": true
163
+ }
164
+ ],
165
+ "exports": [
166
+ {
167
+ "kind": "js",
168
+ "name": "Tag",
169
+ "declaration": {
170
+ "name": "Tag",
171
+ "module": "src/Tag.js"
172
+ }
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "kind": "javascript-module",
178
+ "path": "src/Tags.js",
179
+ "declarations": [
180
+ {
181
+ "kind": "class",
182
+ "description": "",
183
+ "name": "Tags",
184
+ "slots": [
185
+ {
186
+ "description": "Tag elements to manage as a group",
187
+ "name": ""
188
+ }
189
+ ],
190
+ "members": [
191
+ {
192
+ "kind": "field",
193
+ "name": "defaultNodes",
194
+ "type": {
195
+ "text": "Node[]"
196
+ },
197
+ "privacy": "public"
198
+ },
199
+ {
200
+ "kind": "field",
201
+ "name": "tags",
202
+ "type": {
203
+ "text": "Tag[]"
204
+ },
205
+ "privacy": "public",
206
+ "readonly": true
207
+ },
208
+ {
209
+ "kind": "field",
210
+ "name": "rovingTabindexController",
211
+ "default": "new RovingTabindexController<Tag>(this, {\n focusInIndex: (elements: Tag[]) => {\n return elements.findIndex((el) => {\n return !el.disabled && el.deletable;\n });\n },\n elements: () => this.tags,\n isFocusableElement: (el: Tag) => !el.disabled && el.deletable,\n })"
212
+ },
213
+ {
214
+ "kind": "method",
215
+ "name": "focus",
216
+ "privacy": "public",
217
+ "return": {
218
+ "type": {
219
+ "text": "void"
220
+ }
221
+ }
222
+ },
223
+ {
224
+ "kind": "field",
225
+ "name": "handleFocusin",
226
+ "privacy": "private"
227
+ },
228
+ {
229
+ "kind": "field",
230
+ "name": "handleKeydown",
231
+ "privacy": "private"
232
+ },
233
+ {
234
+ "kind": "field",
235
+ "name": "handleFocusout",
236
+ "privacy": "private"
237
+ },
238
+ {
239
+ "kind": "method",
240
+ "name": "handleSlotchange",
241
+ "privacy": "private",
242
+ "return": {
243
+ "type": {
244
+ "text": "void"
245
+ }
246
+ }
247
+ }
248
+ ],
249
+ "mixins": [
250
+ {
251
+ "name": "FocusVisiblePolyfillMixin",
252
+ "package": "@spectrum-web-components/shared/src/focus-visible.js"
253
+ }
254
+ ],
255
+ "superclass": {
256
+ "name": "SpectrumElement",
257
+ "package": "@spectrum-web-components/base"
258
+ },
259
+ "tagName": "sp-tags",
260
+ "customElement": true
261
+ }
262
+ ],
263
+ "exports": [
264
+ {
265
+ "kind": "js",
266
+ "name": "Tags",
267
+ "declaration": {
268
+ "name": "Tags",
269
+ "module": "src/Tags.js"
270
+ }
271
+ }
272
+ ]
273
+ }
274
+ ]
275
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/tags",
3
- "version": "0.49.0-beta.2",
3
+ "version": "0.49.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -66,10 +66,10 @@
66
66
  "lit-html"
67
67
  ],
68
68
  "dependencies": {
69
- "@spectrum-web-components/base": "^0.49.0-beta.2",
70
- "@spectrum-web-components/button": "^0.49.0-beta.2",
71
- "@spectrum-web-components/reactive-controllers": "^0.49.0-beta.2",
72
- "@spectrum-web-components/shared": "^0.49.0-beta.2"
69
+ "@spectrum-web-components/base": "^0.49.0",
70
+ "@spectrum-web-components/button": "^0.49.0",
71
+ "@spectrum-web-components/reactive-controllers": "^0.49.0",
72
+ "@spectrum-web-components/shared": "^0.49.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@spectrum-css/tag": "^9.1.0",
@@ -81,5 +81,5 @@
81
81
  "./sp-*.js",
82
82
  "./**/*.dev.js"
83
83
  ],
84
- "gitHead": "2a8752a182e31dfd71c010b72bece20b0b5d1c9e"
84
+ "gitHead": "088e84caa1e2f723d735b011608ca0a3411e2149"
85
85
  }