@spectrum-web-components/color-wheel 0.30.1-overlay.41 → 0.31.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,450 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-color-wheel.js",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
11
+ {
12
+ "kind": "javascript-module",
13
+ "path": "src/ColorWheel.js",
14
+ "declarations": [
15
+ {
16
+ "kind": "class",
17
+ "description": "",
18
+ "name": "ColorWheel",
19
+ "slots": [
20
+ {
21
+ "description": "a custom gradient visually outlining the available color values",
22
+ "name": "gradient"
23
+ }
24
+ ],
25
+ "members": [
26
+ {
27
+ "kind": "field",
28
+ "name": "disabled",
29
+ "type": {
30
+ "text": "boolean"
31
+ },
32
+ "privacy": "public",
33
+ "default": "false",
34
+ "attribute": "disabled",
35
+ "reflects": true
36
+ },
37
+ {
38
+ "kind": "field",
39
+ "name": "focused",
40
+ "type": {
41
+ "text": "boolean"
42
+ },
43
+ "privacy": "public",
44
+ "default": "false",
45
+ "attribute": "focused",
46
+ "reflects": true
47
+ },
48
+ {
49
+ "kind": "field",
50
+ "name": "handle",
51
+ "type": {
52
+ "text": "ColorHandle"
53
+ },
54
+ "privacy": "private"
55
+ },
56
+ {
57
+ "kind": "field",
58
+ "name": "label",
59
+ "type": {
60
+ "text": "string"
61
+ },
62
+ "privacy": "public",
63
+ "default": "'hue'",
64
+ "attribute": "label"
65
+ },
66
+ {
67
+ "kind": "field",
68
+ "name": "step",
69
+ "type": {
70
+ "text": "number"
71
+ },
72
+ "privacy": "public",
73
+ "default": "1",
74
+ "attribute": "step"
75
+ },
76
+ {
77
+ "kind": "field",
78
+ "name": "colorController",
79
+ "privacy": "private",
80
+ "default": "new ColorController(this, {\n /* c8 ignore next 3 */\n applyColorToState: () => {\n return;\n },\n extractColorFromState: (controller) => ({\n ...(controller.getColor('hsl') as HSL),\n h: this.value,\n }),\n maintains: 'saturation',\n })"
81
+ },
82
+ {
83
+ "kind": "field",
84
+ "name": "value",
85
+ "type": {
86
+ "text": "number"
87
+ },
88
+ "privacy": "public",
89
+ "attribute": "value"
90
+ },
91
+ {
92
+ "kind": "field",
93
+ "name": "color",
94
+ "type": {
95
+ "text": "ColorValue"
96
+ },
97
+ "privacy": "public",
98
+ "attribute": "color"
99
+ },
100
+ {
101
+ "kind": "field",
102
+ "name": "altered",
103
+ "type": {
104
+ "text": "number"
105
+ },
106
+ "privacy": "private"
107
+ },
108
+ {
109
+ "kind": "field",
110
+ "name": "_altered",
111
+ "type": {
112
+ "text": "number"
113
+ },
114
+ "privacy": "private",
115
+ "default": "0"
116
+ },
117
+ {
118
+ "kind": "field",
119
+ "name": "input",
120
+ "type": {
121
+ "text": "HTMLInputElement"
122
+ },
123
+ "privacy": "public"
124
+ },
125
+ {
126
+ "kind": "field",
127
+ "name": "focusElement",
128
+ "type": {
129
+ "text": "HTMLInputElement"
130
+ },
131
+ "privacy": "public"
132
+ },
133
+ {
134
+ "kind": "method",
135
+ "name": "handleKeydown",
136
+ "privacy": "private",
137
+ "return": {
138
+ "type": {
139
+ "text": "void"
140
+ }
141
+ },
142
+ "parameters": [
143
+ {
144
+ "name": "event",
145
+ "type": {
146
+ "text": "KeyboardEvent"
147
+ }
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "kind": "method",
153
+ "name": "handleInput",
154
+ "privacy": "private",
155
+ "return": {
156
+ "type": {
157
+ "text": "void"
158
+ }
159
+ },
160
+ "parameters": [
161
+ {
162
+ "name": "event",
163
+ "type": {
164
+ "text": "Event & { target: HTMLInputElement }"
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "kind": "method",
171
+ "name": "handleChange",
172
+ "privacy": "private",
173
+ "return": {
174
+ "type": {
175
+ "text": "void"
176
+ }
177
+ },
178
+ "parameters": [
179
+ {
180
+ "name": "event",
181
+ "type": {
182
+ "text": "Event & { target: HTMLInputElement }"
183
+ }
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "kind": "method",
189
+ "name": "focus",
190
+ "privacy": "public",
191
+ "return": {
192
+ "type": {
193
+ "text": "void"
194
+ }
195
+ },
196
+ "parameters": [
197
+ {
198
+ "name": "focusOptions",
199
+ "default": "{}",
200
+ "type": {
201
+ "text": "FocusOptions"
202
+ }
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "kind": "method",
208
+ "name": "forwardFocus",
209
+ "privacy": "private",
210
+ "return": {
211
+ "type": {
212
+ "text": "void"
213
+ }
214
+ }
215
+ },
216
+ {
217
+ "kind": "method",
218
+ "name": "handleFocusin",
219
+ "privacy": "private",
220
+ "return": {
221
+ "type": {
222
+ "text": "void"
223
+ }
224
+ }
225
+ },
226
+ {
227
+ "kind": "method",
228
+ "name": "handleFocusout",
229
+ "privacy": "private",
230
+ "return": {
231
+ "type": {
232
+ "text": "void"
233
+ }
234
+ }
235
+ },
236
+ {
237
+ "kind": "field",
238
+ "name": "boundingClientRect",
239
+ "type": {
240
+ "text": "DOMRect"
241
+ },
242
+ "privacy": "private"
243
+ },
244
+ {
245
+ "kind": "field",
246
+ "name": "_pointerDown",
247
+ "type": {
248
+ "text": "boolean"
249
+ },
250
+ "privacy": "private",
251
+ "default": "false"
252
+ },
253
+ {
254
+ "kind": "method",
255
+ "name": "handlePointerdown",
256
+ "privacy": "private",
257
+ "return": {
258
+ "type": {
259
+ "text": "void"
260
+ }
261
+ },
262
+ "parameters": [
263
+ {
264
+ "name": "event",
265
+ "type": {
266
+ "text": "PointerEvent"
267
+ }
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "kind": "method",
273
+ "name": "handlePointermove",
274
+ "privacy": "private",
275
+ "return": {
276
+ "type": {
277
+ "text": "void"
278
+ }
279
+ },
280
+ "parameters": [
281
+ {
282
+ "name": "event",
283
+ "type": {
284
+ "text": "PointerEvent"
285
+ }
286
+ }
287
+ ]
288
+ },
289
+ {
290
+ "kind": "method",
291
+ "name": "handlePointerup",
292
+ "privacy": "private",
293
+ "return": {
294
+ "type": {
295
+ "text": "void"
296
+ }
297
+ },
298
+ "parameters": [
299
+ {
300
+ "name": "event",
301
+ "type": {
302
+ "text": "PointerEvent"
303
+ }
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "kind": "method",
309
+ "name": "calculateHandlePosition",
310
+ "privacy": "private",
311
+ "return": {
312
+ "type": {
313
+ "text": ""
314
+ }
315
+ },
316
+ "parameters": [
317
+ {
318
+ "name": "event",
319
+ "type": {
320
+ "text": "PointerEvent"
321
+ }
322
+ },
323
+ {
324
+ "description": ": PointerEvent on slider",
325
+ "name": ""
326
+ }
327
+ ],
328
+ "description": "Returns the value under the cursor"
329
+ },
330
+ {
331
+ "kind": "method",
332
+ "name": "handleGradientPointerdown",
333
+ "privacy": "private",
334
+ "return": {
335
+ "type": {
336
+ "text": "void"
337
+ }
338
+ },
339
+ "parameters": [
340
+ {
341
+ "name": "event",
342
+ "type": {
343
+ "text": "PointerEvent"
344
+ }
345
+ }
346
+ ]
347
+ },
348
+ {
349
+ "kind": "method",
350
+ "name": "calculateStyleData",
351
+ "return": {
352
+ "type": {
353
+ "text": "{\n clipPath: string;\n clipPathBorders: string;\n diameter: number;\n handleLocationStyles: string;\n }"
354
+ }
355
+ }
356
+ },
357
+ {
358
+ "kind": "field",
359
+ "name": "observer",
360
+ "type": {
361
+ "text": "WithSWCResizeObserver['ResizeObserver'] | undefined"
362
+ },
363
+ "privacy": "private"
364
+ }
365
+ ],
366
+ "events": [
367
+ {
368
+ "name": "input",
369
+ "type": {
370
+ "text": "Event"
371
+ },
372
+ "description": "The value of the Color Wheel has changed."
373
+ },
374
+ {
375
+ "name": "change",
376
+ "type": {
377
+ "text": "Event"
378
+ },
379
+ "description": "An alteration to the value of the Color Wheel has been committed by the user."
380
+ }
381
+ ],
382
+ "attributes": [
383
+ {
384
+ "name": "disabled",
385
+ "type": {
386
+ "text": "boolean"
387
+ },
388
+ "default": "false",
389
+ "fieldName": "disabled"
390
+ },
391
+ {
392
+ "name": "focused",
393
+ "type": {
394
+ "text": "boolean"
395
+ },
396
+ "default": "false",
397
+ "fieldName": "focused"
398
+ },
399
+ {
400
+ "name": "label",
401
+ "type": {
402
+ "text": "string"
403
+ },
404
+ "default": "'hue'",
405
+ "fieldName": "label"
406
+ },
407
+ {
408
+ "name": "step",
409
+ "type": {
410
+ "text": "number"
411
+ },
412
+ "default": "1",
413
+ "fieldName": "step"
414
+ },
415
+ {
416
+ "name": "value",
417
+ "type": {
418
+ "text": "number"
419
+ },
420
+ "fieldName": "value"
421
+ },
422
+ {
423
+ "name": "color",
424
+ "type": {
425
+ "text": "ColorValue"
426
+ },
427
+ "fieldName": "color"
428
+ }
429
+ ],
430
+ "superclass": {
431
+ "name": "Focusable",
432
+ "package": "@spectrum-web-components/shared/src/focusable.js"
433
+ },
434
+ "tagName": "sp-color-wheel",
435
+ "customElement": true
436
+ }
437
+ ],
438
+ "exports": [
439
+ {
440
+ "kind": "js",
441
+ "name": "ColorWheel",
442
+ "declaration": {
443
+ "name": "ColorWheel",
444
+ "module": "src/ColorWheel.js"
445
+ }
446
+ }
447
+ ]
448
+ }
449
+ ]
450
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/color-wheel",
3
- "version": "0.30.1-overlay.41+e8c5ef2f9",
3
+ "version": "0.31.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -62,10 +62,10 @@
62
62
  ],
63
63
  "dependencies": {
64
64
  "@ctrl/tinycolor": "^3.3.3",
65
- "@spectrum-web-components/base": "^0.30.1-overlay.41+e8c5ef2f9",
66
- "@spectrum-web-components/color-handle": "^0.30.1-overlay.41+e8c5ef2f9",
67
- "@spectrum-web-components/reactive-controllers": "^0.30.1-overlay.41+e8c5ef2f9",
68
- "@spectrum-web-components/shared": "^0.30.1-overlay.41+e8c5ef2f9"
65
+ "@spectrum-web-components/base": "^0.31.0",
66
+ "@spectrum-web-components/color-handle": "^0.31.0",
67
+ "@spectrum-web-components/reactive-controllers": "^0.31.0",
68
+ "@spectrum-web-components/shared": "^0.31.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@spectrum-css/colorwheel": "^2.0.12"
@@ -76,5 +76,5 @@
76
76
  "./sp-*.js",
77
77
  "./**/*.dev.js"
78
78
  ],
79
- "gitHead": "e8c5ef2f9a22bb50fefbbd24762f96ff818551b4"
79
+ "gitHead": "a30eeed27948a9a372b792b751f968c54337ab9e"
80
80
  }