@proximus/lavender-action-link 2.0.0-alpha.23 → 2.0.0-alpha.231

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.
@@ -3,19 +3,81 @@ import '@proximus/lavender-icon';
3
3
  import '@proximus/lavender-span';
4
4
  import '@proximus/lavender-container';
5
5
  import { PxElement } from '@proximus/lavender-common';
6
+ import { type Icon } from '@proximus/lavender-icon-common';
6
7
  export declare class ActionLink extends PxElement<HTMLAnchorElement> implements Partial<HTMLAnchorElement> {
7
8
  static nativeName: string;
9
+ static nativeProperties: {
10
+ text: "writable";
11
+ shape: "writable";
12
+ origin: "readonly";
13
+ };
14
+ static nativeMethods: "toString"[];
15
+ static nativeAttributes: {
16
+ href: ("search" | "href" | "hash" | "host" | "hostname" | "password" | "pathname" | "port" | "protocol" | "username")[];
17
+ target: "target"[];
18
+ rel: ("rel" | "relList")[];
19
+ download: "download"[];
20
+ hreflang: "hreflang"[];
21
+ type: "type"[];
22
+ ping: "ping"[];
23
+ referrerpolicy: "referrerPolicy"[];
24
+ title: "title"[];
25
+ charset: "charset"[];
26
+ coords: "coords"[];
27
+ name: "name"[];
28
+ rev: "rev"[];
29
+ };
8
30
  template: () => string;
9
31
  constructor();
10
32
  static get observedAttributes(): string[];
11
33
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
12
34
  connectedCallback(): void;
13
- get $icon(): HTMLElement;
14
- get $anchor(): HTMLElement;
15
- get iconName(): string;
16
- set iconName(value: string);
17
- get iconFrom(): string;
18
- set iconFrom(value: string);
35
+ get $icon(): Icon | null;
36
+ get $anchor(): HTMLAnchorElement | null;
37
+ get iconName(): string | null;
38
+ set iconName(value: string | null);
39
+ get iconFrom(): string | null;
40
+ set iconFrom(value: string | null);
19
41
  get promoted(): boolean;
20
42
  set promoted(value: boolean);
43
+ /** @attr {string} href - The destination URL; relative URLs remain relative in attributes. */
44
+ href: string;
45
+ protocol: string;
46
+ username: string;
47
+ password: string;
48
+ host: string;
49
+ hostname: string;
50
+ port: string;
51
+ pathname: string;
52
+ search: string;
53
+ hash: string;
54
+ /** @attr {string} target - Where to open the destination. */
55
+ target: string;
56
+ /** @attr {string} rel - The relationship to the destination. */
57
+ rel: string;
58
+ readonly relList: DOMTokenList;
59
+ /** @attr {string} download - The suggested download filename; an empty value is valid. */
60
+ download: string;
61
+ /** @attr {string} hreflang - The language of the destination. */
62
+ hreflang: string;
63
+ /** @attr {string} type - The native element type. */
64
+ type: string;
65
+ /** @attr {string} ping - Space-separated tracking URLs. */
66
+ ping: string;
67
+ /** @attr {string} referrerpolicy - The referrer policy. */
68
+ referrerPolicy: string;
69
+ /** @attr {string} title - The native element tooltip. */
70
+ title: string;
71
+ /** @attr {string} charset - The legacy character encoding hint. */
72
+ charset: string;
73
+ /** @attr {string} coords - The legacy image-map coordinates. */
74
+ coords: string;
75
+ /** @attr {string} name - The native element name. */
76
+ name: string;
77
+ /** @attr {string} rev - The legacy reverse link relationship. */
78
+ rev: string;
79
+ text: string;
80
+ shape: string;
81
+ readonly origin: string;
82
+ readonly toString: HTMLAnchorElement['toString'];
21
83
  }
@@ -0,0 +1,437 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/ActionLink.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "ActionLink",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "nativeName",
17
+ "type": {
18
+ "text": "string"
19
+ },
20
+ "static": true,
21
+ "default": "'a'"
22
+ },
23
+ {
24
+ "kind": "field",
25
+ "name": "nativeProperties",
26
+ "static": true,
27
+ "default": "nativeAnchorProperties"
28
+ },
29
+ {
30
+ "kind": "field",
31
+ "name": "nativeMethods",
32
+ "static": true,
33
+ "default": "nativeAnchorMethods"
34
+ },
35
+ {
36
+ "kind": "field",
37
+ "name": "nativeAttributes",
38
+ "static": true,
39
+ "default": "nativeAnchorAttributes"
40
+ },
41
+ {
42
+ "kind": "field",
43
+ "name": "template"
44
+ },
45
+ {
46
+ "kind": "field",
47
+ "name": "$icon",
48
+ "readonly": true
49
+ },
50
+ {
51
+ "kind": "field",
52
+ "name": "$anchor",
53
+ "readonly": true
54
+ },
55
+ {
56
+ "kind": "field",
57
+ "name": "iconName"
58
+ },
59
+ {
60
+ "kind": "field",
61
+ "name": "iconFrom"
62
+ },
63
+ {
64
+ "kind": "field",
65
+ "name": "promoted"
66
+ },
67
+ {
68
+ "kind": "field",
69
+ "name": "href",
70
+ "type": {
71
+ "text": "string"
72
+ },
73
+ "attribute": "href"
74
+ },
75
+ {
76
+ "kind": "field",
77
+ "name": "protocol",
78
+ "type": {
79
+ "text": "string"
80
+ }
81
+ },
82
+ {
83
+ "kind": "field",
84
+ "name": "username",
85
+ "type": {
86
+ "text": "string"
87
+ }
88
+ },
89
+ {
90
+ "kind": "field",
91
+ "name": "password",
92
+ "type": {
93
+ "text": "string"
94
+ }
95
+ },
96
+ {
97
+ "kind": "field",
98
+ "name": "host",
99
+ "type": {
100
+ "text": "string"
101
+ }
102
+ },
103
+ {
104
+ "kind": "field",
105
+ "name": "hostname",
106
+ "type": {
107
+ "text": "string"
108
+ }
109
+ },
110
+ {
111
+ "kind": "field",
112
+ "name": "port",
113
+ "type": {
114
+ "text": "string"
115
+ }
116
+ },
117
+ {
118
+ "kind": "field",
119
+ "name": "pathname",
120
+ "type": {
121
+ "text": "string"
122
+ }
123
+ },
124
+ {
125
+ "kind": "field",
126
+ "name": "search",
127
+ "type": {
128
+ "text": "string"
129
+ }
130
+ },
131
+ {
132
+ "kind": "field",
133
+ "name": "hash",
134
+ "type": {
135
+ "text": "string"
136
+ }
137
+ },
138
+ {
139
+ "kind": "field",
140
+ "name": "target",
141
+ "type": {
142
+ "text": "string"
143
+ },
144
+ "attribute": "target"
145
+ },
146
+ {
147
+ "kind": "field",
148
+ "name": "rel",
149
+ "type": {
150
+ "text": "string"
151
+ },
152
+ "attribute": "rel"
153
+ },
154
+ {
155
+ "kind": "field",
156
+ "name": "relList",
157
+ "type": {
158
+ "text": "DOMTokenList"
159
+ },
160
+ "readonly": true
161
+ },
162
+ {
163
+ "kind": "field",
164
+ "name": "download",
165
+ "type": {
166
+ "text": "string"
167
+ },
168
+ "attribute": "download"
169
+ },
170
+ {
171
+ "kind": "field",
172
+ "name": "hreflang",
173
+ "type": {
174
+ "text": "string"
175
+ },
176
+ "attribute": "hreflang"
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "type",
181
+ "type": {
182
+ "text": "string"
183
+ },
184
+ "attribute": "type"
185
+ },
186
+ {
187
+ "kind": "field",
188
+ "name": "ping",
189
+ "type": {
190
+ "text": "string"
191
+ },
192
+ "attribute": "ping"
193
+ },
194
+ {
195
+ "kind": "field",
196
+ "name": "referrerPolicy",
197
+ "type": {
198
+ "text": "string"
199
+ },
200
+ "attribute": "referrerpolicy"
201
+ },
202
+ {
203
+ "kind": "field",
204
+ "name": "title",
205
+ "type": {
206
+ "text": "string"
207
+ },
208
+ "attribute": "title"
209
+ },
210
+ {
211
+ "kind": "field",
212
+ "name": "charset",
213
+ "type": {
214
+ "text": "string"
215
+ },
216
+ "attribute": "charset"
217
+ },
218
+ {
219
+ "kind": "field",
220
+ "name": "coords",
221
+ "type": {
222
+ "text": "string"
223
+ },
224
+ "attribute": "coords"
225
+ },
226
+ {
227
+ "kind": "field",
228
+ "name": "name",
229
+ "type": {
230
+ "text": "string"
231
+ },
232
+ "attribute": "name"
233
+ },
234
+ {
235
+ "kind": "field",
236
+ "name": "rev",
237
+ "type": {
238
+ "text": "string"
239
+ },
240
+ "attribute": "rev"
241
+ },
242
+ {
243
+ "kind": "field",
244
+ "name": "text",
245
+ "type": {
246
+ "text": "string"
247
+ }
248
+ },
249
+ {
250
+ "kind": "field",
251
+ "name": "shape",
252
+ "type": {
253
+ "text": "string"
254
+ }
255
+ },
256
+ {
257
+ "kind": "field",
258
+ "name": "origin",
259
+ "type": {
260
+ "text": "string"
261
+ },
262
+ "readonly": true
263
+ },
264
+ {
265
+ "kind": "field",
266
+ "name": "toString",
267
+ "type": {
268
+ "text": "HTMLAnchorElement['toString']"
269
+ },
270
+ "readonly": true
271
+ }
272
+ ],
273
+ "attributes": [
274
+ {
275
+ "name": "icon-name"
276
+ },
277
+ {
278
+ "name": "icon-from"
279
+ },
280
+ {
281
+ "name": "promoted"
282
+ },
283
+ {
284
+ "name": "href",
285
+ "type": {
286
+ "text": "string"
287
+ },
288
+ "fieldName": "href",
289
+ "description": "The destination URL; relative URLs remain relative in attributes."
290
+ },
291
+ {
292
+ "name": "target",
293
+ "type": {
294
+ "text": "string"
295
+ },
296
+ "fieldName": "target",
297
+ "description": "Where to open the destination."
298
+ },
299
+ {
300
+ "name": "rel",
301
+ "type": {
302
+ "text": "string"
303
+ },
304
+ "fieldName": "rel",
305
+ "description": "The relationship to the destination."
306
+ },
307
+ {
308
+ "name": "download",
309
+ "type": {
310
+ "text": "string"
311
+ },
312
+ "fieldName": "download",
313
+ "description": "The suggested download filename; an empty value is valid."
314
+ },
315
+ {
316
+ "name": "hreflang",
317
+ "type": {
318
+ "text": "string"
319
+ },
320
+ "fieldName": "hreflang",
321
+ "description": "The language of the destination."
322
+ },
323
+ {
324
+ "name": "type",
325
+ "type": {
326
+ "text": "string"
327
+ },
328
+ "fieldName": "type",
329
+ "description": "The native element type."
330
+ },
331
+ {
332
+ "name": "ping",
333
+ "type": {
334
+ "text": "string"
335
+ },
336
+ "fieldName": "ping",
337
+ "description": "Space-separated tracking URLs."
338
+ },
339
+ {
340
+ "name": "referrerpolicy",
341
+ "type": {
342
+ "text": "string"
343
+ },
344
+ "fieldName": "referrerPolicy",
345
+ "description": "The referrer policy."
346
+ },
347
+ {
348
+ "name": "title",
349
+ "type": {
350
+ "text": "string"
351
+ },
352
+ "fieldName": "title",
353
+ "description": "The native element tooltip."
354
+ },
355
+ {
356
+ "name": "charset",
357
+ "type": {
358
+ "text": "string"
359
+ },
360
+ "fieldName": "charset",
361
+ "description": "The legacy character encoding hint."
362
+ },
363
+ {
364
+ "name": "coords",
365
+ "type": {
366
+ "text": "string"
367
+ },
368
+ "fieldName": "coords",
369
+ "description": "The legacy image-map coordinates."
370
+ },
371
+ {
372
+ "name": "name",
373
+ "type": {
374
+ "text": "string"
375
+ },
376
+ "fieldName": "name",
377
+ "description": "The native element name."
378
+ },
379
+ {
380
+ "name": "rev",
381
+ "type": {
382
+ "text": "string"
383
+ },
384
+ "fieldName": "rev",
385
+ "description": "The legacy reverse link relationship."
386
+ }
387
+ ],
388
+ "superclass": {
389
+ "name": "PxElement",
390
+ "package": "@proximus/lavender-common"
391
+ },
392
+ "tagName": "px-action-link",
393
+ "customElement": true
394
+ }
395
+ ],
396
+ "exports": [
397
+ {
398
+ "kind": "js",
399
+ "name": "ActionLink",
400
+ "declaration": {
401
+ "name": "ActionLink",
402
+ "module": "src/ActionLink.ts"
403
+ }
404
+ },
405
+ {
406
+ "kind": "custom-element-definition",
407
+ "name": "px-action-link",
408
+ "declaration": {
409
+ "name": "ActionLink",
410
+ "module": "src/ActionLink.ts"
411
+ }
412
+ }
413
+ ]
414
+ },
415
+ {
416
+ "kind": "javascript-module",
417
+ "path": "src/action-link.css",
418
+ "declarations": [],
419
+ "exports": []
420
+ },
421
+ {
422
+ "kind": "javascript-module",
423
+ "path": "src/index.ts",
424
+ "declarations": [],
425
+ "exports": [
426
+ {
427
+ "kind": "js",
428
+ "name": "*",
429
+ "declaration": {
430
+ "name": "*",
431
+ "module": "src/ActionLink"
432
+ }
433
+ }
434
+ ]
435
+ }
436
+ ]
437
+ }
package/dist/index.es.js CHANGED
@@ -2,63 +2,76 @@ import "@proximus/lavender-layout";
2
2
  import "@proximus/lavender-icon";
3
3
  import "@proximus/lavender-span";
4
4
  import "@proximus/lavender-container";
5
- import { PxElement as r, log as n, transferAccessibilityAttributes as l } from "@proximus/lavender-common";
6
- const p = ":host{display:block}:host *{box-sizing:border-box}:host(:not([promoted])){display:none}a{display:block;padding:var(--px-padding-xs-mobile);cursor:pointer;border-radius:var(--px-radius-main);text-decoration:none;color:var(--px-color-text-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}a px-span{font-size:var(--px-text-size-label-s-mobile)}a:hover{background-color:var(--px-color-background-container-secondary-default)}a:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media only screen and (min-width: 48em){a{padding:var(--px-padding-xs-tablet) var(--px-padding-2xs-tablet);min-width:65px}a px-span{font-size:var(--px-text-size-label-s-tablet)}a:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}:host(:not([promoted])){display:block}}@media only screen and (min-width: 64.0625em){a{padding:var(--px-padding-xs-laptop) var(--px-padding-2xs-laptop)}a px-span{font-size:var(--px-text-size-label-s-laptop)}a:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media only screen and (min-width: 90.0625em){a{padding:var(--px-padding-xs-desktop) var(--px-padding-2xs-desktop)}a px-span{font-size:var(--px-text-size-label-s-desktop)}a:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}", s = new CSSStyleSheet();
7
- s.replaceSync(p);
8
- const i = class i extends r {
9
- constructor() {
10
- super(s), this.template = () => `<a href="${this.getAttribute("href")}">
5
+ import { PxElement as e, log as t, nativeAnchorAttributes as n, nativeAnchorMethods as r, nativeAnchorProperties as i, propertyToAttributeSetter as a, renderTemplate as o, transferAccessibilityAttributes as s } from "@proximus/lavender-common";
6
+ //#region src/action-link.css?inline
7
+ var c = ":host{display:block}:host *{box-sizing:border-box}:host(:not([promoted])){display:none}a,button{font-family:var(--px-font-family);padding:var(--px-padding-xs-mobile);cursor:pointer;border-radius:var(--px-radius-main);border:var(--px-size-border-m) solid transparent;color:var(--px-color-text-brand-default);--btn-transition:all .2s ease-in-out 0s;transition:var(--btn-transition);text-decoration:none;display:block}:is(a,button) px-span{font-size:var(--px-text-size-label-s-mobile);line-height:var(--px-line-height-ratio-l)}:is(a,button):hover{background-color:var(--px-color-background-container-secondary-default)}:is(a,button):focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media only screen and (width>=48rem){a,button{padding:var(--px-padding-xs-tablet)}:is(a,button) px-span{font-size:var(--px-text-size-label-s-tablet)}:is(a,button):focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media only screen and (width>=64.0625rem){a,button{min-width:65px;padding:var(--px-padding-xs-laptop)}:is(a,button) px-span{font-size:var(--px-text-size-label-s-laptop)}:is(a,button):focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}:host(:not([promoted])){display:block}}@media only screen and (width>=90.0625rem){a,button{padding:var(--px-padding-xs-desktop)}:is(a,button) px-span{font-size:var(--px-text-size-label-s-desktop)}:is(a,button):focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}", l = new CSSStyleSheet();
8
+ l.replaceSync(c);
9
+ var u = class extends e {
10
+ static {
11
+ this.nativeName = "a";
12
+ }
13
+ static {
14
+ this.nativeProperties = i;
15
+ }
16
+ static {
17
+ this.nativeMethods = r;
18
+ }
19
+ static {
20
+ this.nativeAttributes = n;
21
+ }
22
+ constructor() {
23
+ super(l), this.template = () => `<a href="${this.getAttribute("href")}">
11
24
  <px-vstack gap="none" align-items="center">
12
25
  <px-icon
13
26
  name="${this.getAttribute("icon-name")}"
14
27
  from="${this.getAttribute("icon-from")}"
15
- size="s"
28
+ size="m"
16
29
  >
17
30
  </px-icon>
18
- <px-span color="brand" hidden--mobile><slot></slot></px-span>
31
+ <px-span color="brand" font-size="inherit" hidden--mobile hidden--tablet><slot></slot></px-span>
19
32
  </px-vstack>
20
- </a>`, this.shadowRoot.innerHTML = this.template();
21
- }
22
- static get observedAttributes() {
23
- return [...super.observedAttributes, "icon-name", "icon-from", "promoted"];
24
- }
25
- attributeChangedCallback(t, a, e) {
26
- if ((t === "icon-name" || t === "icon-from" || t === "label") && !e)
27
- throw n(`Action link needs a value from the attribute ${t}`), new Error(`Action link needs a value from the attribute ${t}`);
28
- t === "icon-name" ? this.$icon.setAttribute("name", e) : t === "icon-from" ? this.$icon.setAttribute("from", e) : super.attributeChangedCallback(t, a, e);
29
- }
30
- connectedCallback() {
31
- var t;
32
- ((t = this.parentElement) == null ? void 0 : t.localName) === "px-header" && this.setAttribute("slot", "header-actions"), this.hasAttribute("icon-from") || this.setAttribute("icon-from", "lavender"), this.hasAttribute("icon-name") || this.setAttribute("icon-name", "bug"), l(this, this.$el, !1), this.getAttribute("aria-label") || this.$el.setAttribute("aria-label", this.textContent);
33
- }
34
- get $icon() {
35
- return this.shadowRoot.querySelector("px-icon");
36
- }
37
- get $anchor() {
38
- return this.shadowRoot.querySelector("a");
39
- }
40
- get iconName() {
41
- return this.getAttribute("icon-name");
42
- }
43
- set iconName(t) {
44
- this.setAttribute("icon-name", t);
45
- }
46
- get iconFrom() {
47
- return this.getAttribute("icon-from");
48
- }
49
- set iconFrom(t) {
50
- this.setAttribute("icon-from", t);
51
- }
52
- get promoted() {
53
- return this.hasAttribute("promoted");
54
- }
55
- set promoted(t) {
56
- t ? this.setAttribute("promoted", "") : this.removeAttribute("promoted");
57
- }
58
- };
59
- i.nativeName = "a";
60
- let o = i;
61
- customElements.get("px-action-link") || customElements.define("px-action-link", o);
62
- export {
63
- o as ActionLink
33
+ </a>`, o(this.shadowRoot, this.template());
34
+ }
35
+ static get observedAttributes() {
36
+ return [
37
+ ...super.observedAttributes,
38
+ "icon-name",
39
+ "icon-from",
40
+ "promoted"
41
+ ];
42
+ }
43
+ attributeChangedCallback(e, n, r) {
44
+ if ((e === "icon-name" || e === "icon-from" || e === "label") && !r) throw t(`Action link needs a value from the attribute ${e}`), Error(`Action link needs a value from the attribute ${e}`);
45
+ e === "icon-name" ? this.$icon?.setAttribute("name", r) : e === "icon-from" ? this.$icon?.setAttribute("from", r) : super.attributeChangedCallback(e, n, r);
46
+ }
47
+ connectedCallback() {
48
+ this.parentElement?.localName === "px-header" && this.setAttribute("slot", "header-actions"), this.hasAttribute("icon-from") || this.setAttribute("icon-from", "lavender"), this.hasAttribute("icon-name") || this.setAttribute("icon-name", "bug"), s(this, this.$el, !1), this.getAttribute("aria-label") || a(this.$el, "aria-label", this.textContent);
49
+ }
50
+ get $icon() {
51
+ return this.shadowRoot.querySelector("px-icon");
52
+ }
53
+ get $anchor() {
54
+ return this.shadowRoot.querySelector("a");
55
+ }
56
+ get iconName() {
57
+ return this.getAttribute("icon-name");
58
+ }
59
+ set iconName(e) {
60
+ this._updateAttribute("icon-name", e);
61
+ }
62
+ get iconFrom() {
63
+ return this.getAttribute("icon-from");
64
+ }
65
+ set iconFrom(e) {
66
+ this._updateAttribute("icon-from", e);
67
+ }
68
+ get promoted() {
69
+ return this.hasAttribute("promoted");
70
+ }
71
+ set promoted(e) {
72
+ this._updateBooleanAttribute("promoted", e);
73
+ }
64
74
  };
75
+ customElements.get("px-action-link") || customElements.define("px-action-link", u);
76
+ //#endregion
77
+ export { u as ActionLink };
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "properties": [],
5
+ "pseudoElements": []
6
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "tags": [
5
+ {
6
+ "name": "px-action-link",
7
+ "description": "\n---\n",
8
+ "attributes": [
9
+ { "name": "icon-name", "values": [] },
10
+ { "name": "icon-from", "values": [] },
11
+ { "name": "promoted", "values": [] },
12
+ {
13
+ "name": "href",
14
+ "description": "The destination URL; relative URLs remain relative in attributes.",
15
+ "values": []
16
+ },
17
+ {
18
+ "name": "target",
19
+ "description": "Where to open the destination.",
20
+ "values": []
21
+ },
22
+ {
23
+ "name": "rel",
24
+ "description": "The relationship to the destination.",
25
+ "values": []
26
+ },
27
+ {
28
+ "name": "download",
29
+ "description": "The suggested download filename; an empty value is valid.",
30
+ "values": []
31
+ },
32
+ {
33
+ "name": "hreflang",
34
+ "description": "The language of the destination.",
35
+ "values": []
36
+ },
37
+ {
38
+ "name": "type",
39
+ "description": "The native element type.",
40
+ "values": []
41
+ },
42
+ {
43
+ "name": "ping",
44
+ "description": "Space-separated tracking URLs.",
45
+ "values": []
46
+ },
47
+ {
48
+ "name": "referrerpolicy",
49
+ "description": "The referrer policy.",
50
+ "values": []
51
+ },
52
+ {
53
+ "name": "title",
54
+ "description": "The native element tooltip.",
55
+ "values": []
56
+ },
57
+ {
58
+ "name": "charset",
59
+ "description": "The legacy character encoding hint.",
60
+ "values": []
61
+ },
62
+ {
63
+ "name": "coords",
64
+ "description": "The legacy image-map coordinates.",
65
+ "values": []
66
+ },
67
+ {
68
+ "name": "name",
69
+ "description": "The native element name.",
70
+ "values": []
71
+ },
72
+ {
73
+ "name": "rev",
74
+ "description": "The legacy reverse link relationship.",
75
+ "values": []
76
+ }
77
+ ],
78
+ "references": []
79
+ }
80
+ ]
81
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@proximus/lavender-action-link",
4
+ "version": "2.0.0-alpha.231",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "px-action-link",
11
+ "description": "\n\n---\n",
12
+ "doc-url": "",
13
+ "attributes": [
14
+ { "name": "icon-name", "value": { "type": "string" } },
15
+ { "name": "icon-from", "value": { "type": "string" } },
16
+ { "name": "promoted", "value": { "type": "string" } },
17
+ {
18
+ "name": "href",
19
+ "description": "The destination URL; relative URLs remain relative in attributes.",
20
+ "value": { "type": "string" }
21
+ },
22
+ {
23
+ "name": "target",
24
+ "description": "Where to open the destination.",
25
+ "value": { "type": "string" }
26
+ },
27
+ {
28
+ "name": "rel",
29
+ "description": "The relationship to the destination.",
30
+ "value": { "type": "string" }
31
+ },
32
+ {
33
+ "name": "download",
34
+ "description": "The suggested download filename; an empty value is valid.",
35
+ "value": { "type": "string" }
36
+ },
37
+ {
38
+ "name": "hreflang",
39
+ "description": "The language of the destination.",
40
+ "value": { "type": "string" }
41
+ },
42
+ {
43
+ "name": "type",
44
+ "description": "The native element type.",
45
+ "value": { "type": "string" }
46
+ },
47
+ {
48
+ "name": "ping",
49
+ "description": "Space-separated tracking URLs.",
50
+ "value": { "type": "string" }
51
+ },
52
+ {
53
+ "name": "referrerpolicy",
54
+ "description": "The referrer policy.",
55
+ "value": { "type": "string" }
56
+ },
57
+ {
58
+ "name": "title",
59
+ "description": "The native element tooltip.",
60
+ "value": { "type": "string" }
61
+ },
62
+ {
63
+ "name": "charset",
64
+ "description": "The legacy character encoding hint.",
65
+ "value": { "type": "string" }
66
+ },
67
+ {
68
+ "name": "coords",
69
+ "description": "The legacy image-map coordinates.",
70
+ "value": { "type": "string" }
71
+ },
72
+ {
73
+ "name": "name",
74
+ "description": "The native element name.",
75
+ "value": { "type": "string" }
76
+ },
77
+ {
78
+ "name": "rev",
79
+ "description": "The legacy reverse link relationship.",
80
+ "value": { "type": "string" }
81
+ }
82
+ ],
83
+ "events": [],
84
+ "js": {
85
+ "properties": [
86
+ { "name": "template" },
87
+ { "name": "$icon" },
88
+ { "name": "$anchor" },
89
+ { "name": "iconName" },
90
+ { "name": "iconFrom" },
91
+ { "name": "promoted" },
92
+ { "name": "href", "type": "string" },
93
+ { "name": "protocol", "type": "string" },
94
+ { "name": "username", "type": "string" },
95
+ { "name": "password", "type": "string" },
96
+ { "name": "host", "type": "string" },
97
+ { "name": "hostname", "type": "string" },
98
+ { "name": "port", "type": "string" },
99
+ { "name": "pathname", "type": "string" },
100
+ { "name": "search", "type": "string" },
101
+ { "name": "hash", "type": "string" },
102
+ { "name": "target", "type": "string" },
103
+ { "name": "rel", "type": "string" },
104
+ { "name": "relList", "type": "DOMTokenList" },
105
+ { "name": "download", "type": "string" },
106
+ { "name": "hreflang", "type": "string" },
107
+ { "name": "type", "type": "string" },
108
+ { "name": "ping", "type": "string" },
109
+ { "name": "referrerPolicy", "type": "string" },
110
+ { "name": "title", "type": "string" },
111
+ { "name": "charset", "type": "string" },
112
+ { "name": "coords", "type": "string" },
113
+ { "name": "name", "type": "string" },
114
+ { "name": "rev", "type": "string" },
115
+ { "name": "text", "type": "string" },
116
+ { "name": "shape", "type": "string" },
117
+ { "name": "origin", "type": "string" },
118
+ { "name": "toString", "type": "HTMLAnchorElement['toString']" }
119
+ ],
120
+ "events": []
121
+ }
122
+ }
123
+ ]
124
+ },
125
+ "css": {
126
+ "properties": [],
127
+ "pseudo-elements": []
128
+ }
129
+ }
130
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-action-link",
3
- "version": "2.0.0-alpha.23",
3
+ "version": "2.0.0-alpha.231",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "clean": "rm -rf dist",
14
14
  "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
15
  "test": "vitest run --coverage",
16
- "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"