@proximus/lavender-image 2.0.0-alpha.23 → 2.0.0-alpha.230
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/AbstractImage.d.ts +35 -33
- package/dist/Image.d.ts +80 -0
- package/dist/Picture.d.ts +7 -7
- package/dist/custom-elements.json +1697 -0
- package/dist/index.es.js +371 -352
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +155 -0
- package/dist/web-types.json +258 -0
- package/package.json +2 -2
package/dist/AbstractImage.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const styleSheet: CSSStyleSheet;
|
|
|
3
3
|
export declare const imageWidthValues: string[];
|
|
4
4
|
export declare const imageHeightValues: string[];
|
|
5
5
|
export declare abstract class AbstractImage<IMAGE_ELEMENT extends HTMLImageElement | HTMLPictureElement> extends PxElement<IMAGE_ELEMENT> {
|
|
6
|
-
static
|
|
6
|
+
static nativeAttributes: {};
|
|
7
7
|
protected constructor();
|
|
8
8
|
static get observedAttributes(): string[];
|
|
9
9
|
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
@@ -14,38 +14,40 @@ export declare abstract class AbstractImage<IMAGE_ELEMENT extends HTMLImageEleme
|
|
|
14
14
|
attrName: string;
|
|
15
15
|
breakpoint: string;
|
|
16
16
|
};
|
|
17
|
-
get borderRadius(): string;
|
|
18
|
-
set borderRadius(value: string);
|
|
19
|
-
get noBorderRadius(): string;
|
|
20
|
-
set noBorderRadius(value: string);
|
|
21
|
-
get noBorderRadiusMobile(): string;
|
|
22
|
-
set noBorderRadiusMobile(value: string);
|
|
23
|
-
get noBorderRadiusTablet(): string;
|
|
24
|
-
set noBorderRadiusTablet(value: string);
|
|
25
|
-
get noBorderRadiusLaptop(): string;
|
|
26
|
-
set noBorderRadiusLaptop(value: string);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
get
|
|
42
|
-
set
|
|
43
|
-
get
|
|
44
|
-
set
|
|
45
|
-
get
|
|
46
|
-
set
|
|
47
|
-
get
|
|
48
|
-
set
|
|
17
|
+
get borderRadius(): string | null;
|
|
18
|
+
set borderRadius(value: string | null);
|
|
19
|
+
get noBorderRadius(): string | null;
|
|
20
|
+
set noBorderRadius(value: string | null);
|
|
21
|
+
get noBorderRadiusMobile(): string | null;
|
|
22
|
+
set noBorderRadiusMobile(value: string | null);
|
|
23
|
+
get noBorderRadiusTablet(): string | null;
|
|
24
|
+
set noBorderRadiusTablet(value: string | null);
|
|
25
|
+
get noBorderRadiusLaptop(): string | null;
|
|
26
|
+
set noBorderRadiusLaptop(value: string | null);
|
|
27
|
+
/** @attr {string | null} width - The Lavender width size token. */
|
|
28
|
+
get width(): string | null;
|
|
29
|
+
set width(value: string | null);
|
|
30
|
+
get widthMobile(): string | null;
|
|
31
|
+
set widthMobile(value: string | null);
|
|
32
|
+
get widthTablet(): string | null;
|
|
33
|
+
set widthTablet(value: string | null);
|
|
34
|
+
get widthLaptop(): string | null;
|
|
35
|
+
set widthLaptop(value: string | null);
|
|
36
|
+
get widthDesktop(): string | null;
|
|
37
|
+
set widthDesktop(value: string | null);
|
|
38
|
+
get disabled(): boolean;
|
|
39
|
+
set disabled(value: boolean);
|
|
40
|
+
/** @attr {string | null} height - The Lavender height size token. */
|
|
41
|
+
get height(): string | null;
|
|
42
|
+
set height(value: string | null);
|
|
43
|
+
get heightMobile(): string | null;
|
|
44
|
+
set heightMobile(value: string | null);
|
|
45
|
+
get heightTablet(): string | null;
|
|
46
|
+
set heightTablet(value: string | null);
|
|
47
|
+
get heightLaptop(): string | null;
|
|
48
|
+
set heightLaptop(value: string | null);
|
|
49
|
+
get heightDesktop(): string | null;
|
|
50
|
+
set heightDesktop(value: string | null);
|
|
49
51
|
get cover(): boolean;
|
|
50
52
|
set cover(value: boolean);
|
|
51
53
|
}
|
package/dist/Image.d.ts
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
import { AbstractImage } from './AbstractImage.ts';
|
|
2
|
+
/**
|
|
3
|
+
* @summary An image component.
|
|
4
|
+
* @attr {string} src - The URL of the image.
|
|
5
|
+
* @attr {string} alt - The alternative text for the image.
|
|
6
|
+
* @attr {'eager' | 'lazy'} loading - The loading strategy for the image.
|
|
7
|
+
*/
|
|
2
8
|
export declare class Image extends AbstractImage<HTMLImageElement> {
|
|
3
9
|
static nativeName: string;
|
|
10
|
+
static nativeProperties: {
|
|
11
|
+
currentSrc: "readonly";
|
|
12
|
+
naturalWidth: "readonly";
|
|
13
|
+
naturalHeight: "readonly";
|
|
14
|
+
complete: "readonly";
|
|
15
|
+
x: "readonly";
|
|
16
|
+
y: "readonly";
|
|
17
|
+
};
|
|
18
|
+
static nativeMethods: "decode"[];
|
|
19
|
+
static nativeAttributes: {
|
|
20
|
+
alt: "alt"[];
|
|
21
|
+
src: "src"[];
|
|
22
|
+
srcset: "srcset"[];
|
|
23
|
+
sizes: "sizes"[];
|
|
24
|
+
crossorigin: "crossOrigin"[];
|
|
25
|
+
usemap: "useMap"[];
|
|
26
|
+
ismap: "isMap"[];
|
|
27
|
+
referrerpolicy: "referrerPolicy"[];
|
|
28
|
+
decoding: "decoding"[];
|
|
29
|
+
loading: "loading"[];
|
|
30
|
+
fetchpriority: "fetchPriority"[];
|
|
31
|
+
title: "title"[];
|
|
32
|
+
height: never[];
|
|
33
|
+
width: never[];
|
|
34
|
+
border: "border"[];
|
|
35
|
+
hspace: "hspace"[];
|
|
36
|
+
vspace: "vspace"[];
|
|
37
|
+
longdesc: "longDesc"[];
|
|
38
|
+
lowsrc: "lowsrc"[];
|
|
39
|
+
name: "name"[];
|
|
40
|
+
};
|
|
4
41
|
constructor();
|
|
42
|
+
/** @attr {string} alt - The alternative text. */
|
|
43
|
+
alt: string;
|
|
44
|
+
/** @attr {string} src - The resource URL. */
|
|
45
|
+
src: string;
|
|
46
|
+
/** @attr {string} srcset - The responsive image candidates. */
|
|
47
|
+
srcset: string;
|
|
48
|
+
/** @attr {string} sizes - The responsive image source sizes. */
|
|
49
|
+
sizes: string;
|
|
50
|
+
/** @attr {string | null} crossorigin - The cross-origin image request mode. */
|
|
51
|
+
crossOrigin: string | null;
|
|
52
|
+
/** @attr {string} usemap - The associated image-map reference. */
|
|
53
|
+
useMap: string;
|
|
54
|
+
/** @attr {boolean} ismap - Whether the image is a server-side image map. */
|
|
55
|
+
isMap: boolean;
|
|
56
|
+
/** @attr {string} referrerpolicy - The referrer policy. */
|
|
57
|
+
referrerPolicy: string;
|
|
58
|
+
/** @attr {"async" | "sync" | "auto"} decoding - The image decoding hint. */
|
|
59
|
+
decoding: 'async' | 'sync' | 'auto';
|
|
60
|
+
/** @attr {"eager" | "lazy"} loading - The image loading strategy. */
|
|
61
|
+
loading: 'eager' | 'lazy';
|
|
62
|
+
/** @attr {"auto" | "high" | "low"} fetchpriority - The resource fetch priority. */
|
|
63
|
+
fetchPriority: 'auto' | 'high' | 'low';
|
|
64
|
+
/** @attr {string} title - The native element tooltip. */
|
|
65
|
+
title: string;
|
|
66
|
+
/** @attr {string} border - The legacy image border width. */
|
|
67
|
+
border: string;
|
|
68
|
+
/** @attr {number} hspace - The legacy horizontal image spacing. */
|
|
69
|
+
hspace: number;
|
|
70
|
+
/** @attr {number} vspace - The legacy vertical image spacing. */
|
|
71
|
+
vspace: number;
|
|
72
|
+
/** @attr {string} longdesc - The legacy long-description URL. */
|
|
73
|
+
longDesc: string;
|
|
74
|
+
/** @attr {string} lowsrc - The legacy low-resolution image URL. */
|
|
75
|
+
lowsrc: string;
|
|
76
|
+
/** @attr {string} name - The native element name. */
|
|
77
|
+
name: string;
|
|
78
|
+
readonly currentSrc: string;
|
|
79
|
+
readonly naturalWidth: number;
|
|
80
|
+
readonly naturalHeight: number;
|
|
81
|
+
readonly complete: boolean;
|
|
82
|
+
readonly x: number;
|
|
83
|
+
readonly y: number;
|
|
84
|
+
readonly decode: HTMLImageElement['decode'];
|
|
5
85
|
}
|
package/dist/Picture.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export declare class Picture extends AbstractImage<HTMLPictureElement> {
|
|
|
4
4
|
constructor();
|
|
5
5
|
private possibleImgExtension;
|
|
6
6
|
static get observedAttributes(): string[];
|
|
7
|
-
get loading(): string;
|
|
8
|
-
set loading(value: string);
|
|
9
|
-
get alt(): string;
|
|
10
|
-
set alt(value: string);
|
|
11
|
-
get src(): string;
|
|
12
|
-
set src(value: string);
|
|
13
|
-
get $imgEl(): HTMLImageElement;
|
|
7
|
+
get loading(): string | null;
|
|
8
|
+
set loading(value: string | null);
|
|
9
|
+
get alt(): string | null;
|
|
10
|
+
set alt(value: string | null);
|
|
11
|
+
get src(): string | null;
|
|
12
|
+
set src(value: string | null);
|
|
13
|
+
get $imgEl(): HTMLImageElement | null;
|
|
14
14
|
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
15
15
|
removeSrc(): void;
|
|
16
16
|
imgExists(imgUrl: string): Promise<boolean>;
|