@everymatrix/ui-image 1.69.0 → 1.69.3
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ui-image.cjs.js +1 -1
- package/dist/cjs/ui-image_2.cjs.entry.js +82 -74
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ui-image.js +1 -1
- package/dist/esm/ui-image_2.entry.js +82 -74
- package/dist/ui-image/ui-image.esm.js +1 -1
- package/dist/ui-image/ui-image_2.entry.js +1 -1
- package/package.json +2 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["ui-image_2.cjs",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[
|
|
11
|
+
return index.bootstrapLazy([["ui-image_2.cjs",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/ui-image.cjs.js
CHANGED
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["ui-image_2.cjs",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[
|
|
22
|
+
return index.bootstrapLazy([["ui-image_2.cjs",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -5,32 +5,58 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const uiImage = require('./ui-image-e0b0f5e5.js');
|
|
6
6
|
const index = require('./index-e835971b.js');
|
|
7
7
|
|
|
8
|
-
const uiSkeletonCss = ":host{display:block
|
|
8
|
+
const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";
|
|
9
9
|
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
10
10
|
|
|
11
11
|
const UiSkeleton = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
+
this.stylingValue = {
|
|
15
|
+
width: this.handleStylingProps(this.width),
|
|
16
|
+
height: this.handleStylingProps(this.height),
|
|
17
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
18
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
19
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
20
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
21
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
22
|
+
size: this.handleStylingProps(this.size)
|
|
23
|
+
};
|
|
14
24
|
this.structure = undefined;
|
|
15
|
-
this.width =
|
|
16
|
-
this.height =
|
|
17
|
-
this.borderRadius =
|
|
18
|
-
this.marginBottom =
|
|
19
|
-
this.marginTop =
|
|
20
|
-
this.marginLeft =
|
|
21
|
-
this.marginRight =
|
|
25
|
+
this.width = 'unset';
|
|
26
|
+
this.height = 'unset';
|
|
27
|
+
this.borderRadius = 'unset';
|
|
28
|
+
this.marginBottom = 'unset';
|
|
29
|
+
this.marginTop = 'unset';
|
|
30
|
+
this.marginLeft = 'unset';
|
|
31
|
+
this.marginRight = 'unset';
|
|
22
32
|
this.animation = true;
|
|
23
|
-
this.rows =
|
|
24
|
-
this.size =
|
|
25
|
-
this.color = undefined;
|
|
26
|
-
this.primaryColor = undefined;
|
|
27
|
-
this.secondaryColor = undefined;
|
|
33
|
+
this.rows = 0;
|
|
34
|
+
this.size = '100%';
|
|
28
35
|
}
|
|
29
36
|
handleStructureChange(newValue, oldValue) {
|
|
30
37
|
if (oldValue !== newValue) {
|
|
31
38
|
this.handleStructure(newValue);
|
|
32
39
|
}
|
|
33
40
|
}
|
|
41
|
+
handleStylingProps(value) {
|
|
42
|
+
switch (typeof value) {
|
|
43
|
+
case 'number':
|
|
44
|
+
return value === 0 ? 0 : `${value}px`;
|
|
45
|
+
case 'undefined':
|
|
46
|
+
return 'unset';
|
|
47
|
+
case 'string':
|
|
48
|
+
if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
|
|
49
|
+
value.endsWith('px') ||
|
|
50
|
+
value.endsWith('%')) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return 'unset';
|
|
55
|
+
}
|
|
56
|
+
default:
|
|
57
|
+
return 'unset';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
34
60
|
handleStructure(structure) {
|
|
35
61
|
switch (structure) {
|
|
36
62
|
case 'logo':
|
|
@@ -50,22 +76,22 @@ const UiSkeleton = class {
|
|
|
50
76
|
}
|
|
51
77
|
}
|
|
52
78
|
renderLogo() {
|
|
53
|
-
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class:
|
|
79
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
|
|
54
80
|
}
|
|
55
81
|
renderImage() {
|
|
56
|
-
return
|
|
82
|
+
return index.h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
|
|
57
83
|
}
|
|
58
84
|
renderTitle() {
|
|
59
|
-
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class:
|
|
85
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
|
|
60
86
|
}
|
|
61
87
|
renderText() {
|
|
62
|
-
return (index.h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index$1) => (index.h("div", { key: index$1, class:
|
|
88
|
+
return (index.h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index$1) => (index.h("div", { key: index$1, class: 'Text ' + (this.animation ? 'Skeleton' : '') })))));
|
|
63
89
|
}
|
|
64
90
|
renderRectangle() {
|
|
65
|
-
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class:
|
|
91
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
|
|
66
92
|
}
|
|
67
93
|
renderCircle() {
|
|
68
|
-
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class:
|
|
94
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
|
|
69
95
|
}
|
|
70
96
|
render() {
|
|
71
97
|
let styleBlock = '';
|
|
@@ -73,97 +99,79 @@ const UiSkeleton = class {
|
|
|
73
99
|
case 'logo':
|
|
74
100
|
styleBlock = `
|
|
75
101
|
:host {
|
|
76
|
-
--emw-skeleton-logo-width: ${this.width};
|
|
77
|
-
--emw-skeleton-logo-height: ${this.height};
|
|
78
|
-
--emw-skeleton-logo-border-radius: ${this.borderRadius}
|
|
79
|
-
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}
|
|
80
|
-
--emw-skeleton-logo-margin-top: ${this.marginTop}
|
|
81
|
-
--emw-skeleton-logo-margin-left: ${this.marginLeft}
|
|
82
|
-
--emw-skeleton-logo-margin-right: ${this.marginRight}
|
|
83
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
84
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
85
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
102
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
103
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
104
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
105
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
106
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
107
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
108
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
86
109
|
}
|
|
87
110
|
`;
|
|
88
111
|
break;
|
|
89
112
|
case 'image':
|
|
90
113
|
styleBlock = `
|
|
91
114
|
:host {
|
|
92
|
-
--emw-skeleton-image-width: ${this.width};
|
|
93
|
-
--emw-skeleton-image-height: ${this.height};
|
|
94
|
-
--emw-skeleton-image-border-radius: ${this.borderRadius}
|
|
95
|
-
--emw-skeleton-image-margin-bottom: ${this.marginBottom}
|
|
96
|
-
--emw-skeleton-image-margin-top: ${this.marginTop}
|
|
97
|
-
--emw-skeleton-image-margin-left: ${this.marginLeft}
|
|
98
|
-
--emw-skeleton-image-margin-right: ${this.marginRight}
|
|
99
|
-
--emw-skeleton-image-background: ${this.color};
|
|
100
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
101
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
115
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
116
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
117
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
118
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
119
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
120
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
121
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
102
122
|
}
|
|
103
123
|
`;
|
|
104
124
|
break;
|
|
105
125
|
case 'title':
|
|
106
126
|
styleBlock = `
|
|
107
127
|
:host {
|
|
108
|
-
--emw-skeleton-title-width: ${this.width};
|
|
109
|
-
--emw-skeleton-title-height: ${this.height};
|
|
110
|
-
--emw-skeleton-title-border-radius: ${this.borderRadius}
|
|
111
|
-
--emw-skeleton-title-margin-bottom: ${this.marginBottom}
|
|
112
|
-
--emw-skeleton-title-margin-top: ${this.marginTop}
|
|
113
|
-
--emw-skeleton-title-margin-left: ${this.marginLeft}
|
|
114
|
-
--emw-skeleton-title-margin-right: ${this.marginRight}
|
|
115
|
-
--emw-skeleton-title-background: ${this.color};
|
|
116
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
117
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
128
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
129
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
130
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
131
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
132
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
133
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
134
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
118
135
|
}
|
|
119
136
|
`;
|
|
120
137
|
break;
|
|
121
138
|
case 'text':
|
|
122
139
|
styleBlock = `
|
|
123
140
|
:host {
|
|
124
|
-
--emw-skeleton-text-width: ${this.width};
|
|
125
|
-
--emw-skeleton-text-height: ${this.height};
|
|
126
|
-
--emw-skeleton-text-border-radius: ${this.borderRadius}
|
|
127
|
-
--emw-skeleton-text-margin-bottom: ${this.marginBottom}
|
|
128
|
-
--emw-skeleton-text-margin-top: ${this.marginTop}
|
|
129
|
-
--emw-skeleton-text-margin-left: ${this.marginLeft}
|
|
130
|
-
--emw-skeleton-text-margin-right: ${this.marginRight}
|
|
131
|
-
--emw-skeleton-text-background: ${this.color};
|
|
132
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
133
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
141
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
142
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
143
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
144
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
145
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
146
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
147
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
134
148
|
}
|
|
135
149
|
`;
|
|
136
150
|
break;
|
|
137
151
|
case 'rectangle':
|
|
138
152
|
styleBlock = `
|
|
139
153
|
:host {
|
|
140
|
-
--emw-skeleton-rectangle-width: ${this.width};
|
|
141
|
-
--emw-skeleton-rectangle-height: ${this.height};
|
|
142
|
-
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}
|
|
143
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}
|
|
144
|
-
--emw-skeleton-rectangle-margin-top: ${this.marginTop}
|
|
145
|
-
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}
|
|
146
|
-
--emw-skeleton-rectangle-margin-right: ${this.marginRight}
|
|
147
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
148
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
149
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
154
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
155
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
156
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
157
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
158
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
159
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
160
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
150
161
|
}
|
|
151
162
|
`;
|
|
152
163
|
break;
|
|
153
164
|
case 'circle':
|
|
154
165
|
styleBlock = `
|
|
155
166
|
:host {
|
|
156
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
157
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
158
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
159
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
167
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
160
168
|
}
|
|
161
169
|
`;
|
|
162
170
|
break;
|
|
163
171
|
default:
|
|
164
172
|
styleBlock = '';
|
|
165
173
|
}
|
|
166
|
-
return (index.h(index.Host, { key: '
|
|
174
|
+
return (index.h(index.Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, index.h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
|
|
167
175
|
}
|
|
168
176
|
static get watchers() { return {
|
|
169
177
|
"structure": ["handleStructureChange"]
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["ui-image_2",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[
|
|
8
|
+
return bootstrapLazy([["ui-image_2",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
package/dist/esm/ui-image.js
CHANGED
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["ui-image_2",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[
|
|
19
|
+
return bootstrapLazy([["ui-image_2",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,32 +1,58 @@
|
|
|
1
1
|
export { U as ui_image } from './ui-image-b7b48fe5.js';
|
|
2
2
|
import { r as registerInstance, h, H as Host } from './index-97d17652.js';
|
|
3
3
|
|
|
4
|
-
const uiSkeletonCss = ":host{display:block
|
|
4
|
+
const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";
|
|
5
5
|
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
6
6
|
|
|
7
7
|
const UiSkeleton = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
|
+
this.stylingValue = {
|
|
11
|
+
width: this.handleStylingProps(this.width),
|
|
12
|
+
height: this.handleStylingProps(this.height),
|
|
13
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
14
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
15
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
16
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
17
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
18
|
+
size: this.handleStylingProps(this.size)
|
|
19
|
+
};
|
|
10
20
|
this.structure = undefined;
|
|
11
|
-
this.width =
|
|
12
|
-
this.height =
|
|
13
|
-
this.borderRadius =
|
|
14
|
-
this.marginBottom =
|
|
15
|
-
this.marginTop =
|
|
16
|
-
this.marginLeft =
|
|
17
|
-
this.marginRight =
|
|
21
|
+
this.width = 'unset';
|
|
22
|
+
this.height = 'unset';
|
|
23
|
+
this.borderRadius = 'unset';
|
|
24
|
+
this.marginBottom = 'unset';
|
|
25
|
+
this.marginTop = 'unset';
|
|
26
|
+
this.marginLeft = 'unset';
|
|
27
|
+
this.marginRight = 'unset';
|
|
18
28
|
this.animation = true;
|
|
19
|
-
this.rows =
|
|
20
|
-
this.size =
|
|
21
|
-
this.color = undefined;
|
|
22
|
-
this.primaryColor = undefined;
|
|
23
|
-
this.secondaryColor = undefined;
|
|
29
|
+
this.rows = 0;
|
|
30
|
+
this.size = '100%';
|
|
24
31
|
}
|
|
25
32
|
handleStructureChange(newValue, oldValue) {
|
|
26
33
|
if (oldValue !== newValue) {
|
|
27
34
|
this.handleStructure(newValue);
|
|
28
35
|
}
|
|
29
36
|
}
|
|
37
|
+
handleStylingProps(value) {
|
|
38
|
+
switch (typeof value) {
|
|
39
|
+
case 'number':
|
|
40
|
+
return value === 0 ? 0 : `${value}px`;
|
|
41
|
+
case 'undefined':
|
|
42
|
+
return 'unset';
|
|
43
|
+
case 'string':
|
|
44
|
+
if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
|
|
45
|
+
value.endsWith('px') ||
|
|
46
|
+
value.endsWith('%')) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
return 'unset';
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
return 'unset';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
30
56
|
handleStructure(structure) {
|
|
31
57
|
switch (structure) {
|
|
32
58
|
case 'logo':
|
|
@@ -46,22 +72,22 @@ const UiSkeleton = class {
|
|
|
46
72
|
}
|
|
47
73
|
}
|
|
48
74
|
renderLogo() {
|
|
49
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class:
|
|
75
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
|
|
50
76
|
}
|
|
51
77
|
renderImage() {
|
|
52
|
-
return
|
|
78
|
+
return h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
|
|
53
79
|
}
|
|
54
80
|
renderTitle() {
|
|
55
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class:
|
|
81
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
|
|
56
82
|
}
|
|
57
83
|
renderText() {
|
|
58
|
-
return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class:
|
|
84
|
+
return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class: 'Text ' + (this.animation ? 'Skeleton' : '') })))));
|
|
59
85
|
}
|
|
60
86
|
renderRectangle() {
|
|
61
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class:
|
|
87
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
|
|
62
88
|
}
|
|
63
89
|
renderCircle() {
|
|
64
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class:
|
|
90
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
|
|
65
91
|
}
|
|
66
92
|
render() {
|
|
67
93
|
let styleBlock = '';
|
|
@@ -69,97 +95,79 @@ const UiSkeleton = class {
|
|
|
69
95
|
case 'logo':
|
|
70
96
|
styleBlock = `
|
|
71
97
|
:host {
|
|
72
|
-
--emw-skeleton-logo-width: ${this.width};
|
|
73
|
-
--emw-skeleton-logo-height: ${this.height};
|
|
74
|
-
--emw-skeleton-logo-border-radius: ${this.borderRadius}
|
|
75
|
-
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}
|
|
76
|
-
--emw-skeleton-logo-margin-top: ${this.marginTop}
|
|
77
|
-
--emw-skeleton-logo-margin-left: ${this.marginLeft}
|
|
78
|
-
--emw-skeleton-logo-margin-right: ${this.marginRight}
|
|
79
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
80
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
81
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
98
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
99
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
100
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
101
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
102
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
103
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
104
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
82
105
|
}
|
|
83
106
|
`;
|
|
84
107
|
break;
|
|
85
108
|
case 'image':
|
|
86
109
|
styleBlock = `
|
|
87
110
|
:host {
|
|
88
|
-
--emw-skeleton-image-width: ${this.width};
|
|
89
|
-
--emw-skeleton-image-height: ${this.height};
|
|
90
|
-
--emw-skeleton-image-border-radius: ${this.borderRadius}
|
|
91
|
-
--emw-skeleton-image-margin-bottom: ${this.marginBottom}
|
|
92
|
-
--emw-skeleton-image-margin-top: ${this.marginTop}
|
|
93
|
-
--emw-skeleton-image-margin-left: ${this.marginLeft}
|
|
94
|
-
--emw-skeleton-image-margin-right: ${this.marginRight}
|
|
95
|
-
--emw-skeleton-image-background: ${this.color};
|
|
96
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
97
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
111
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
112
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
113
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
114
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
115
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
116
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
117
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
98
118
|
}
|
|
99
119
|
`;
|
|
100
120
|
break;
|
|
101
121
|
case 'title':
|
|
102
122
|
styleBlock = `
|
|
103
123
|
:host {
|
|
104
|
-
--emw-skeleton-title-width: ${this.width};
|
|
105
|
-
--emw-skeleton-title-height: ${this.height};
|
|
106
|
-
--emw-skeleton-title-border-radius: ${this.borderRadius}
|
|
107
|
-
--emw-skeleton-title-margin-bottom: ${this.marginBottom}
|
|
108
|
-
--emw-skeleton-title-margin-top: ${this.marginTop}
|
|
109
|
-
--emw-skeleton-title-margin-left: ${this.marginLeft}
|
|
110
|
-
--emw-skeleton-title-margin-right: ${this.marginRight}
|
|
111
|
-
--emw-skeleton-title-background: ${this.color};
|
|
112
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
113
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
124
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
125
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
126
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
127
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
128
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
129
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
130
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
114
131
|
}
|
|
115
132
|
`;
|
|
116
133
|
break;
|
|
117
134
|
case 'text':
|
|
118
135
|
styleBlock = `
|
|
119
136
|
:host {
|
|
120
|
-
--emw-skeleton-text-width: ${this.width};
|
|
121
|
-
--emw-skeleton-text-height: ${this.height};
|
|
122
|
-
--emw-skeleton-text-border-radius: ${this.borderRadius}
|
|
123
|
-
--emw-skeleton-text-margin-bottom: ${this.marginBottom}
|
|
124
|
-
--emw-skeleton-text-margin-top: ${this.marginTop}
|
|
125
|
-
--emw-skeleton-text-margin-left: ${this.marginLeft}
|
|
126
|
-
--emw-skeleton-text-margin-right: ${this.marginRight}
|
|
127
|
-
--emw-skeleton-text-background: ${this.color};
|
|
128
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
129
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
137
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
138
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
139
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
140
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
141
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
142
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
143
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
130
144
|
}
|
|
131
145
|
`;
|
|
132
146
|
break;
|
|
133
147
|
case 'rectangle':
|
|
134
148
|
styleBlock = `
|
|
135
149
|
:host {
|
|
136
|
-
--emw-skeleton-rectangle-width: ${this.width};
|
|
137
|
-
--emw-skeleton-rectangle-height: ${this.height};
|
|
138
|
-
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}
|
|
139
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}
|
|
140
|
-
--emw-skeleton-rectangle-margin-top: ${this.marginTop}
|
|
141
|
-
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}
|
|
142
|
-
--emw-skeleton-rectangle-margin-right: ${this.marginRight}
|
|
143
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
144
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
145
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
150
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
151
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
152
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
153
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
154
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
155
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
156
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
146
157
|
}
|
|
147
158
|
`;
|
|
148
159
|
break;
|
|
149
160
|
case 'circle':
|
|
150
161
|
styleBlock = `
|
|
151
162
|
:host {
|
|
152
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
153
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
154
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
155
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
163
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
156
164
|
}
|
|
157
165
|
`;
|
|
158
166
|
break;
|
|
159
167
|
default:
|
|
160
168
|
styleBlock = '';
|
|
161
169
|
}
|
|
162
|
-
return (h(Host, { key: '
|
|
170
|
+
return (h(Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
|
|
163
171
|
}
|
|
164
172
|
static get watchers() { return {
|
|
165
173
|
"structure": ["handleStructureChange"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as t,b as e}from"./index-97d17652.js";export{s as setNonce}from"./index-97d17652.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),t(i)})().then((async t=>(await i(),e([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{U as ui_image}from"./ui-image-b7b48fe5.js";import{r as e,h as t,H as n}from"./index-97d17652.js";const
|
|
1
|
+
export{U as ui_image}from"./ui-image-b7b48fe5.js";import{r as e,h as t,H as n}from"./index-97d17652.js";const i=class{constructor(t){e(this,t),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,n)=>t("div",{key:n,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:e=""}return t(n,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};i.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{i as ui_skeleton}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/ui-image",
|
|
3
|
-
"version": "1.69.
|
|
3
|
+
"version": "1.69.3",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"es2015": "./dist/esm/index.mjs",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@everymatrix/ui-skeleton": "1.69.
|
|
27
|
+
"@everymatrix/ui-skeleton": "1.69.3"
|
|
28
28
|
}
|
|
29
29
|
}
|