@spectrum-web-components/color-wheel 0.48.0-beta.2 → 0.48.1

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