@proximus/lavender-color-option 2.0.0-alpha.227 → 2.0.0-alpha.229
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/dist/ColorOption.d.ts +1 -0
- package/dist/ColorOptionLink.d.ts +62 -1
- package/dist/custom-elements.json +336 -0
- package/dist/index.es.js +27 -15
- package/dist/vscode.html-custom-data.json +66 -1
- package/dist/web-types.json +95 -3
- package/package.json +1 -1
package/dist/ColorOption.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const colorOptionSizeValues: string[];
|
|
|
3
3
|
export declare class ColorOption extends PxElement<HTMLDivElement> {
|
|
4
4
|
protected static readonly template: HTMLTemplateElement;
|
|
5
5
|
static nativeName: string;
|
|
6
|
+
static nativeAttributes: {};
|
|
6
7
|
constructor();
|
|
7
8
|
static get observedAttributes(): string[];
|
|
8
9
|
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { PxElement } from '@proximus/lavender-common';
|
|
2
2
|
import { ColorOption } from './ColorOption';
|
|
3
|
-
export declare class ColorOptionLink extends PxElement<
|
|
3
|
+
export declare class ColorOptionLink extends PxElement<HTMLAnchorElement> {
|
|
4
4
|
protected static readonly template: HTMLTemplateElement;
|
|
5
5
|
static nativeName: string;
|
|
6
|
+
static nativeProperties: {
|
|
7
|
+
text: "writable";
|
|
8
|
+
shape: "writable";
|
|
9
|
+
origin: "readonly";
|
|
10
|
+
};
|
|
11
|
+
static nativeMethods: "toString"[];
|
|
12
|
+
static nativeAttributes: {
|
|
13
|
+
href: ("search" | "href" | "hash" | "host" | "hostname" | "password" | "pathname" | "port" | "protocol" | "username")[];
|
|
14
|
+
target: "target"[];
|
|
15
|
+
rel: ("rel" | "relList")[];
|
|
16
|
+
download: "download"[];
|
|
17
|
+
hreflang: "hreflang"[];
|
|
18
|
+
type: "type"[];
|
|
19
|
+
ping: "ping"[];
|
|
20
|
+
referrerpolicy: "referrerPolicy"[];
|
|
21
|
+
title: "title"[];
|
|
22
|
+
charset: "charset"[];
|
|
23
|
+
coords: "coords"[];
|
|
24
|
+
name: "name"[];
|
|
25
|
+
rev: "rev"[];
|
|
26
|
+
};
|
|
6
27
|
constructor();
|
|
7
28
|
connectedCallback(): void;
|
|
8
29
|
static get observedAttributes(): string[];
|
|
@@ -15,4 +36,44 @@ export declare class ColorOptionLink extends PxElement<HTMLLinkElement> {
|
|
|
15
36
|
set unavailable(value: boolean);
|
|
16
37
|
get selected(): boolean;
|
|
17
38
|
set selected(value: boolean);
|
|
39
|
+
/** @attr {string} href - The destination URL; relative URLs remain relative in attributes. */
|
|
40
|
+
href: string;
|
|
41
|
+
protocol: string;
|
|
42
|
+
username: string;
|
|
43
|
+
password: string;
|
|
44
|
+
host: string;
|
|
45
|
+
hostname: string;
|
|
46
|
+
port: string;
|
|
47
|
+
pathname: string;
|
|
48
|
+
search: string;
|
|
49
|
+
hash: string;
|
|
50
|
+
/** @attr {string} target - Where to open the destination. */
|
|
51
|
+
target: string;
|
|
52
|
+
/** @attr {string} rel - The relationship to the destination. */
|
|
53
|
+
rel: string;
|
|
54
|
+
readonly relList: DOMTokenList;
|
|
55
|
+
/** @attr {string} download - The suggested download filename; an empty value is valid. */
|
|
56
|
+
download: string;
|
|
57
|
+
/** @attr {string} hreflang - The language of the destination. */
|
|
58
|
+
hreflang: string;
|
|
59
|
+
/** @attr {string} type - The native element type. */
|
|
60
|
+
type: string;
|
|
61
|
+
/** @attr {string} ping - Space-separated tracking URLs. */
|
|
62
|
+
ping: string;
|
|
63
|
+
/** @attr {string} referrerpolicy - The referrer policy. */
|
|
64
|
+
referrerPolicy: string;
|
|
65
|
+
/** @attr {string} title - The native element tooltip. */
|
|
66
|
+
title: string;
|
|
67
|
+
/** @attr {string} charset - The legacy character encoding hint. */
|
|
68
|
+
charset: string;
|
|
69
|
+
/** @attr {string} coords - The legacy image-map coordinates. */
|
|
70
|
+
coords: string;
|
|
71
|
+
/** @attr {string} name - The native element name. */
|
|
72
|
+
name: string;
|
|
73
|
+
/** @attr {string} rev - The legacy reverse link relationship. */
|
|
74
|
+
rev: string;
|
|
75
|
+
text: string;
|
|
76
|
+
shape: string;
|
|
77
|
+
readonly origin: string;
|
|
78
|
+
readonly toString: HTMLAnchorElement['toString'];
|
|
18
79
|
}
|
|
@@ -35,6 +35,15 @@
|
|
|
35
35
|
"static": true,
|
|
36
36
|
"default": "'div'"
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "field",
|
|
40
|
+
"name": "nativeAttributes",
|
|
41
|
+
"type": {
|
|
42
|
+
"text": "object"
|
|
43
|
+
},
|
|
44
|
+
"static": true,
|
|
45
|
+
"default": "{}"
|
|
46
|
+
},
|
|
38
47
|
{
|
|
39
48
|
"kind": "method",
|
|
40
49
|
"name": "updateSize",
|
|
@@ -173,6 +182,24 @@
|
|
|
173
182
|
"static": true,
|
|
174
183
|
"default": "'a'"
|
|
175
184
|
},
|
|
185
|
+
{
|
|
186
|
+
"kind": "field",
|
|
187
|
+
"name": "nativeProperties",
|
|
188
|
+
"static": true,
|
|
189
|
+
"default": "nativeAnchorProperties"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"kind": "field",
|
|
193
|
+
"name": "nativeMethods",
|
|
194
|
+
"static": true,
|
|
195
|
+
"default": "nativeAnchorMethods"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "field",
|
|
199
|
+
"name": "nativeAttributes",
|
|
200
|
+
"static": true,
|
|
201
|
+
"default": "nativeAnchorAttributes"
|
|
202
|
+
},
|
|
176
203
|
{
|
|
177
204
|
"kind": "method",
|
|
178
205
|
"name": "clickColorOptionLink"
|
|
@@ -193,6 +220,211 @@
|
|
|
193
220
|
{
|
|
194
221
|
"kind": "field",
|
|
195
222
|
"name": "selected"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"kind": "field",
|
|
226
|
+
"name": "href",
|
|
227
|
+
"type": {
|
|
228
|
+
"text": "string"
|
|
229
|
+
},
|
|
230
|
+
"attribute": "href"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"kind": "field",
|
|
234
|
+
"name": "protocol",
|
|
235
|
+
"type": {
|
|
236
|
+
"text": "string"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"kind": "field",
|
|
241
|
+
"name": "username",
|
|
242
|
+
"type": {
|
|
243
|
+
"text": "string"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"kind": "field",
|
|
248
|
+
"name": "password",
|
|
249
|
+
"type": {
|
|
250
|
+
"text": "string"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "field",
|
|
255
|
+
"name": "host",
|
|
256
|
+
"type": {
|
|
257
|
+
"text": "string"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "field",
|
|
262
|
+
"name": "hostname",
|
|
263
|
+
"type": {
|
|
264
|
+
"text": "string"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"kind": "field",
|
|
269
|
+
"name": "port",
|
|
270
|
+
"type": {
|
|
271
|
+
"text": "string"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"kind": "field",
|
|
276
|
+
"name": "pathname",
|
|
277
|
+
"type": {
|
|
278
|
+
"text": "string"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"kind": "field",
|
|
283
|
+
"name": "search",
|
|
284
|
+
"type": {
|
|
285
|
+
"text": "string"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"kind": "field",
|
|
290
|
+
"name": "hash",
|
|
291
|
+
"type": {
|
|
292
|
+
"text": "string"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"kind": "field",
|
|
297
|
+
"name": "target",
|
|
298
|
+
"type": {
|
|
299
|
+
"text": "string"
|
|
300
|
+
},
|
|
301
|
+
"attribute": "target"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"kind": "field",
|
|
305
|
+
"name": "rel",
|
|
306
|
+
"type": {
|
|
307
|
+
"text": "string"
|
|
308
|
+
},
|
|
309
|
+
"attribute": "rel"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "field",
|
|
313
|
+
"name": "relList",
|
|
314
|
+
"type": {
|
|
315
|
+
"text": "DOMTokenList"
|
|
316
|
+
},
|
|
317
|
+
"readonly": true
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"kind": "field",
|
|
321
|
+
"name": "download",
|
|
322
|
+
"type": {
|
|
323
|
+
"text": "string"
|
|
324
|
+
},
|
|
325
|
+
"attribute": "download"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"kind": "field",
|
|
329
|
+
"name": "hreflang",
|
|
330
|
+
"type": {
|
|
331
|
+
"text": "string"
|
|
332
|
+
},
|
|
333
|
+
"attribute": "hreflang"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"kind": "field",
|
|
337
|
+
"name": "type",
|
|
338
|
+
"type": {
|
|
339
|
+
"text": "string"
|
|
340
|
+
},
|
|
341
|
+
"attribute": "type"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"kind": "field",
|
|
345
|
+
"name": "ping",
|
|
346
|
+
"type": {
|
|
347
|
+
"text": "string"
|
|
348
|
+
},
|
|
349
|
+
"attribute": "ping"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"kind": "field",
|
|
353
|
+
"name": "referrerPolicy",
|
|
354
|
+
"type": {
|
|
355
|
+
"text": "string"
|
|
356
|
+
},
|
|
357
|
+
"attribute": "referrerpolicy"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"kind": "field",
|
|
361
|
+
"name": "title",
|
|
362
|
+
"type": {
|
|
363
|
+
"text": "string"
|
|
364
|
+
},
|
|
365
|
+
"attribute": "title"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"kind": "field",
|
|
369
|
+
"name": "charset",
|
|
370
|
+
"type": {
|
|
371
|
+
"text": "string"
|
|
372
|
+
},
|
|
373
|
+
"attribute": "charset"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"kind": "field",
|
|
377
|
+
"name": "coords",
|
|
378
|
+
"type": {
|
|
379
|
+
"text": "string"
|
|
380
|
+
},
|
|
381
|
+
"attribute": "coords"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"kind": "field",
|
|
385
|
+
"name": "name",
|
|
386
|
+
"type": {
|
|
387
|
+
"text": "string"
|
|
388
|
+
},
|
|
389
|
+
"attribute": "name"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"kind": "field",
|
|
393
|
+
"name": "rev",
|
|
394
|
+
"type": {
|
|
395
|
+
"text": "string"
|
|
396
|
+
},
|
|
397
|
+
"attribute": "rev"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"kind": "field",
|
|
401
|
+
"name": "text",
|
|
402
|
+
"type": {
|
|
403
|
+
"text": "string"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"kind": "field",
|
|
408
|
+
"name": "shape",
|
|
409
|
+
"type": {
|
|
410
|
+
"text": "string"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"kind": "field",
|
|
415
|
+
"name": "origin",
|
|
416
|
+
"type": {
|
|
417
|
+
"text": "string"
|
|
418
|
+
},
|
|
419
|
+
"readonly": true
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"kind": "field",
|
|
423
|
+
"name": "toString",
|
|
424
|
+
"type": {
|
|
425
|
+
"text": "HTMLAnchorElement['toString']"
|
|
426
|
+
},
|
|
427
|
+
"readonly": true
|
|
196
428
|
}
|
|
197
429
|
],
|
|
198
430
|
"events": [
|
|
@@ -212,6 +444,110 @@
|
|
|
212
444
|
},
|
|
213
445
|
{
|
|
214
446
|
"name": "selected"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "href",
|
|
450
|
+
"type": {
|
|
451
|
+
"text": "string"
|
|
452
|
+
},
|
|
453
|
+
"fieldName": "href",
|
|
454
|
+
"description": "The destination URL; relative URLs remain relative in attributes."
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "target",
|
|
458
|
+
"type": {
|
|
459
|
+
"text": "string"
|
|
460
|
+
},
|
|
461
|
+
"fieldName": "target",
|
|
462
|
+
"description": "Where to open the destination."
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "rel",
|
|
466
|
+
"type": {
|
|
467
|
+
"text": "string"
|
|
468
|
+
},
|
|
469
|
+
"fieldName": "rel",
|
|
470
|
+
"description": "The relationship to the destination."
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "download",
|
|
474
|
+
"type": {
|
|
475
|
+
"text": "string"
|
|
476
|
+
},
|
|
477
|
+
"fieldName": "download",
|
|
478
|
+
"description": "The suggested download filename; an empty value is valid."
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "hreflang",
|
|
482
|
+
"type": {
|
|
483
|
+
"text": "string"
|
|
484
|
+
},
|
|
485
|
+
"fieldName": "hreflang",
|
|
486
|
+
"description": "The language of the destination."
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "type",
|
|
490
|
+
"type": {
|
|
491
|
+
"text": "string"
|
|
492
|
+
},
|
|
493
|
+
"fieldName": "type",
|
|
494
|
+
"description": "The native element type."
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "ping",
|
|
498
|
+
"type": {
|
|
499
|
+
"text": "string"
|
|
500
|
+
},
|
|
501
|
+
"fieldName": "ping",
|
|
502
|
+
"description": "Space-separated tracking URLs."
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "referrerpolicy",
|
|
506
|
+
"type": {
|
|
507
|
+
"text": "string"
|
|
508
|
+
},
|
|
509
|
+
"fieldName": "referrerPolicy",
|
|
510
|
+
"description": "The referrer policy."
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "title",
|
|
514
|
+
"type": {
|
|
515
|
+
"text": "string"
|
|
516
|
+
},
|
|
517
|
+
"fieldName": "title",
|
|
518
|
+
"description": "The native element tooltip."
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "charset",
|
|
522
|
+
"type": {
|
|
523
|
+
"text": "string"
|
|
524
|
+
},
|
|
525
|
+
"fieldName": "charset",
|
|
526
|
+
"description": "The legacy character encoding hint."
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "coords",
|
|
530
|
+
"type": {
|
|
531
|
+
"text": "string"
|
|
532
|
+
},
|
|
533
|
+
"fieldName": "coords",
|
|
534
|
+
"description": "The legacy image-map coordinates."
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "name",
|
|
538
|
+
"type": {
|
|
539
|
+
"text": "string"
|
|
540
|
+
},
|
|
541
|
+
"fieldName": "name",
|
|
542
|
+
"description": "The native element name."
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "rev",
|
|
546
|
+
"type": {
|
|
547
|
+
"text": "string"
|
|
548
|
+
},
|
|
549
|
+
"fieldName": "rev",
|
|
550
|
+
"description": "The legacy reverse link relationship."
|
|
215
551
|
}
|
|
216
552
|
],
|
|
217
553
|
"superclass": {
|
package/dist/index.es.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { PxElement as e, checkName as t, createTemplate as n, log as r,
|
|
1
|
+
import { PxElement as e, checkName as t, createTemplate as n, log as r, nativeAnchorAttributes as i, nativeAnchorMethods as a, nativeAnchorProperties as o, renderTemplate as s } from "@proximus/lavender-common";
|
|
2
2
|
//#region src/color-option.css?inline
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var
|
|
3
|
+
var c = ":host{line-height:0;display:inline-block}:host *{box-sizing:border-box}.color-option{border-radius:var(--px-radius-pill);background-color:var(--color-option-device-color);border:var(--px-size-border-m) var(--px-color-border-main-default) solid;width:32px;display:inline-block;height:32px!important}.color-option[unavailable]{position:relative}.color-option[unavailable]:before{content:\"\";width:44px;height:var(--px-size-border-m);background-color:var(--px-color-border-neutral-default);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-45deg)}.color-option--size-small{border-width:var(--px-size-border-s);width:16px;height:16px!important}.color-option--size-small[unavailable]:before{width:22px;height:var(--px-size-border-s)}", l = new CSSStyleSheet();
|
|
4
|
+
l.replaceSync(c);
|
|
5
|
+
var u = [
|
|
6
6
|
"",
|
|
7
7
|
"default",
|
|
8
8
|
"small"
|
|
9
|
-
],
|
|
9
|
+
], d = class i extends e {
|
|
10
10
|
static {
|
|
11
11
|
this.template = n("<div class=\"color-option\"><slot></slot></div>");
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
14
|
this.nativeName = "div";
|
|
15
15
|
}
|
|
16
|
+
static {
|
|
17
|
+
this.nativeAttributes = {};
|
|
18
|
+
}
|
|
16
19
|
constructor() {
|
|
17
|
-
super(
|
|
20
|
+
super(l), s(this.shadowRoot, i.template);
|
|
18
21
|
}
|
|
19
22
|
static get observedAttributes() {
|
|
20
23
|
return [
|
|
@@ -27,7 +30,7 @@ var s = [
|
|
|
27
30
|
attributeChangedCallback(e, t, n) {
|
|
28
31
|
if (t !== n) switch (e) {
|
|
29
32
|
case "size":
|
|
30
|
-
this.updateSize(e, t, n,
|
|
33
|
+
this.updateSize(e, t, n, u);
|
|
31
34
|
break;
|
|
32
35
|
case "device-color":
|
|
33
36
|
this.updateDeviceColor(e, t, n);
|
|
@@ -63,20 +66,29 @@ var s = [
|
|
|
63
66
|
this._updateBooleanAttribute("unavailable", e);
|
|
64
67
|
}
|
|
65
68
|
};
|
|
66
|
-
customElements.get("px-color-option") || customElements.define("px-color-option",
|
|
69
|
+
customElements.get("px-color-option") || customElements.define("px-color-option", d);
|
|
67
70
|
//#endregion
|
|
68
71
|
//#region src/color-option-link.css?inline
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
var
|
|
72
|
+
var f = ":host{line-height:0;display:inline-block}:host *{box-sizing:border-box}.color-option-link{padding:var(--px-padding-2xs-mobile);border-radius:var(--px-radius-pill);--btn-transition:all .2s ease-in-out 0s;transition:var(--btn-transition);text-decoration:none;display:inline-block}.color-option-link[selected]{box-shadow:inset 0px 0px 0px var(--px-size-border-m) var(--px-color-border-brand-default)}.color-option-link:hover{box-shadow:inset 0px 0px 0px var(--px-size-border-s) var(--px-color-border-neutral-default)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media screen and (width>=48rem){.color-option-link{padding:var(--px-padding-2xs-tablet)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media screen and (width>=64.0625rem){.color-option-link{padding:var(--px-padding-2xs-laptop)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media screen and (width>=90.0625rem){.color-option-link{padding:var(--px-padding-2xs-desktop)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}", p = new CSSStyleSheet();
|
|
73
|
+
p.replaceSync(f);
|
|
74
|
+
var m = "px.lavender.color-option-link.click", h = class t extends e {
|
|
72
75
|
static {
|
|
73
76
|
this.template = n("<a class=\"color-option-link\"><px-color-option><slot></slot></px-color-option></a>");
|
|
74
77
|
}
|
|
75
78
|
static {
|
|
76
79
|
this.nativeName = "a";
|
|
77
80
|
}
|
|
81
|
+
static {
|
|
82
|
+
this.nativeProperties = o;
|
|
83
|
+
}
|
|
84
|
+
static {
|
|
85
|
+
this.nativeMethods = a;
|
|
86
|
+
}
|
|
87
|
+
static {
|
|
88
|
+
this.nativeAttributes = i;
|
|
89
|
+
}
|
|
78
90
|
constructor() {
|
|
79
|
-
super(
|
|
91
|
+
super(p), s(this.shadowRoot, t.template);
|
|
80
92
|
}
|
|
81
93
|
connectedCallback() {
|
|
82
94
|
this.addEventListener("click", (e) => {
|
|
@@ -106,7 +118,7 @@ var d = "px.lavender.color-option-link.click", f = class t extends e {
|
|
|
106
118
|
}
|
|
107
119
|
}
|
|
108
120
|
clickColorOptionLink() {
|
|
109
|
-
this.dispatchEvent(new CustomEvent(
|
|
121
|
+
this.dispatchEvent(new CustomEvent(m, {
|
|
110
122
|
bubbles: !0,
|
|
111
123
|
composed: !0
|
|
112
124
|
}));
|
|
@@ -133,6 +145,6 @@ var d = "px.lavender.color-option-link.click", f = class t extends e {
|
|
|
133
145
|
this._updateBooleanAttribute("selected", e);
|
|
134
146
|
}
|
|
135
147
|
};
|
|
136
|
-
customElements.get("px-color-option-link") || customElements.define("px-color-option-link",
|
|
148
|
+
customElements.get("px-color-option-link") || customElements.define("px-color-option-link", h);
|
|
137
149
|
//#endregion
|
|
138
|
-
export {
|
|
150
|
+
export { d as ColorOption, h as ColorOptionLink, u as colorOptionSizeValues };
|
|
@@ -18,7 +18,72 @@
|
|
|
18
18
|
"attributes": [
|
|
19
19
|
{ "name": "device-color", "values": [] },
|
|
20
20
|
{ "name": "unavailable", "values": [] },
|
|
21
|
-
{ "name": "selected", "values": [] }
|
|
21
|
+
{ "name": "selected", "values": [] },
|
|
22
|
+
{
|
|
23
|
+
"name": "href",
|
|
24
|
+
"description": "The destination URL; relative URLs remain relative in attributes.",
|
|
25
|
+
"values": []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "target",
|
|
29
|
+
"description": "Where to open the destination.",
|
|
30
|
+
"values": []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "rel",
|
|
34
|
+
"description": "The relationship to the destination.",
|
|
35
|
+
"values": []
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "download",
|
|
39
|
+
"description": "The suggested download filename; an empty value is valid.",
|
|
40
|
+
"values": []
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "hreflang",
|
|
44
|
+
"description": "The language of the destination.",
|
|
45
|
+
"values": []
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "type",
|
|
49
|
+
"description": "The native element type.",
|
|
50
|
+
"values": []
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "ping",
|
|
54
|
+
"description": "Space-separated tracking URLs.",
|
|
55
|
+
"values": []
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "referrerpolicy",
|
|
59
|
+
"description": "The referrer policy.",
|
|
60
|
+
"values": []
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "title",
|
|
64
|
+
"description": "The native element tooltip.",
|
|
65
|
+
"values": []
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "charset",
|
|
69
|
+
"description": "The legacy character encoding hint.",
|
|
70
|
+
"values": []
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "coords",
|
|
74
|
+
"description": "The legacy image-map coordinates.",
|
|
75
|
+
"values": []
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "name",
|
|
79
|
+
"description": "The native element name.",
|
|
80
|
+
"values": []
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "rev",
|
|
84
|
+
"description": "The legacy reverse link relationship.",
|
|
85
|
+
"values": []
|
|
86
|
+
}
|
|
22
87
|
],
|
|
23
88
|
"references": []
|
|
24
89
|
}
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@proximus/lavender-color-option",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.229",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -32,7 +32,72 @@
|
|
|
32
32
|
"attributes": [
|
|
33
33
|
{ "name": "device-color", "value": { "type": "string" } },
|
|
34
34
|
{ "name": "unavailable", "value": { "type": "string" } },
|
|
35
|
-
{ "name": "selected", "value": { "type": "string" } }
|
|
35
|
+
{ "name": "selected", "value": { "type": "string" } },
|
|
36
|
+
{
|
|
37
|
+
"name": "href",
|
|
38
|
+
"description": "The destination URL; relative URLs remain relative in attributes.",
|
|
39
|
+
"value": { "type": "string" }
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "target",
|
|
43
|
+
"description": "Where to open the destination.",
|
|
44
|
+
"value": { "type": "string" }
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "rel",
|
|
48
|
+
"description": "The relationship to the destination.",
|
|
49
|
+
"value": { "type": "string" }
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "download",
|
|
53
|
+
"description": "The suggested download filename; an empty value is valid.",
|
|
54
|
+
"value": { "type": "string" }
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "hreflang",
|
|
58
|
+
"description": "The language of the destination.",
|
|
59
|
+
"value": { "type": "string" }
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "type",
|
|
63
|
+
"description": "The native element type.",
|
|
64
|
+
"value": { "type": "string" }
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "ping",
|
|
68
|
+
"description": "Space-separated tracking URLs.",
|
|
69
|
+
"value": { "type": "string" }
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "referrerpolicy",
|
|
73
|
+
"description": "The referrer policy.",
|
|
74
|
+
"value": { "type": "string" }
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "title",
|
|
78
|
+
"description": "The native element tooltip.",
|
|
79
|
+
"value": { "type": "string" }
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "charset",
|
|
83
|
+
"description": "The legacy character encoding hint.",
|
|
84
|
+
"value": { "type": "string" }
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "coords",
|
|
88
|
+
"description": "The legacy image-map coordinates.",
|
|
89
|
+
"value": { "type": "string" }
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "name",
|
|
93
|
+
"description": "The native element name.",
|
|
94
|
+
"value": { "type": "string" }
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "rev",
|
|
98
|
+
"description": "The legacy reverse link relationship.",
|
|
99
|
+
"value": { "type": "string" }
|
|
100
|
+
}
|
|
36
101
|
],
|
|
37
102
|
"events": [{ "name": "CLICK_EVENT", "type": "CustomEvent" }],
|
|
38
103
|
"js": {
|
|
@@ -40,7 +105,34 @@
|
|
|
40
105
|
{ "name": "$colorOption" },
|
|
41
106
|
{ "name": "deviceColor" },
|
|
42
107
|
{ "name": "unavailable" },
|
|
43
|
-
{ "name": "selected" }
|
|
108
|
+
{ "name": "selected" },
|
|
109
|
+
{ "name": "href", "type": "string" },
|
|
110
|
+
{ "name": "protocol", "type": "string" },
|
|
111
|
+
{ "name": "username", "type": "string" },
|
|
112
|
+
{ "name": "password", "type": "string" },
|
|
113
|
+
{ "name": "host", "type": "string" },
|
|
114
|
+
{ "name": "hostname", "type": "string" },
|
|
115
|
+
{ "name": "port", "type": "string" },
|
|
116
|
+
{ "name": "pathname", "type": "string" },
|
|
117
|
+
{ "name": "search", "type": "string" },
|
|
118
|
+
{ "name": "hash", "type": "string" },
|
|
119
|
+
{ "name": "target", "type": "string" },
|
|
120
|
+
{ "name": "rel", "type": "string" },
|
|
121
|
+
{ "name": "relList", "type": "DOMTokenList" },
|
|
122
|
+
{ "name": "download", "type": "string" },
|
|
123
|
+
{ "name": "hreflang", "type": "string" },
|
|
124
|
+
{ "name": "type", "type": "string" },
|
|
125
|
+
{ "name": "ping", "type": "string" },
|
|
126
|
+
{ "name": "referrerPolicy", "type": "string" },
|
|
127
|
+
{ "name": "title", "type": "string" },
|
|
128
|
+
{ "name": "charset", "type": "string" },
|
|
129
|
+
{ "name": "coords", "type": "string" },
|
|
130
|
+
{ "name": "name", "type": "string" },
|
|
131
|
+
{ "name": "rev", "type": "string" },
|
|
132
|
+
{ "name": "text", "type": "string" },
|
|
133
|
+
{ "name": "shape", "type": "string" },
|
|
134
|
+
{ "name": "origin", "type": "string" },
|
|
135
|
+
{ "name": "toString", "type": "HTMLAnchorElement['toString']" }
|
|
44
136
|
],
|
|
45
137
|
"events": [{ "name": "CLICK_EVENT", "type": "CustomEvent" }]
|
|
46
138
|
}
|