@everymatrix/ui-skeleton 0.1.0 → 1.54.6
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/{index-c4768c66.js → index-99b6bde3.js} +11 -5
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{ui-skeleton-43520ebc.js → ui-skeleton-a5d206dd.js} +19 -19
- package/dist/cjs/ui-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ui-skeleton.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ui-skeleton/ui-skeleton.js +30 -30
- package/dist/esm/{index-f5cf3f14.js → index-44d7ce9a.js} +11 -5
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{ui-skeleton-2473e87c.js → ui-skeleton-55916334.js} +19 -19
- package/dist/esm/ui-skeleton.entry.js +2 -2
- package/dist/esm/ui-skeleton.js +4 -4
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/ui-skeleton/ui-skeleton.d.ts +6 -6
- package/dist/types/components.d.ts +12 -12
- package/dist/ui-skeleton/index.esm.js +1 -1
- package/dist/ui-skeleton/p-9672881b.js +1 -0
- package/dist/ui-skeleton/p-cedfb5a2.entry.js +1 -0
- package/dist/ui-skeleton/{p-443310cf.js → p-d3d3a960.js} +2 -2
- package/dist/ui-skeleton/ui-skeleton.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.dev.d.ts +0 -2
- package/dist/ui-skeleton/p-75e06c6c.js +0 -1
- package/dist/ui-skeleton/p-933ae591.entry.js +0 -1
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/storybook/main.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/storybook/preview.d.ts +0 -0
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'ui-skeleton';
|
|
|
24
24
|
const BUILD = /* ui-skeleton */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: false, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.25.
|
|
27
|
+
Stencil Client Platform v4.25.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -819,9 +819,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
819
819
|
}
|
|
820
820
|
};
|
|
821
821
|
var appDidLoad = (who) => {
|
|
822
|
-
{
|
|
823
|
-
addHydratedFlag(doc.documentElement);
|
|
824
|
-
}
|
|
825
822
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
826
823
|
};
|
|
827
824
|
var safeCall = (instance, method, arg, elm) => {
|
|
@@ -1006,7 +1003,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1006
1003
|
let Cstr;
|
|
1007
1004
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1008
1005
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1009
|
-
|
|
1006
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1007
|
+
if (bundleId) {
|
|
1010
1008
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1011
1009
|
if (CstrImport && "then" in CstrImport) {
|
|
1012
1010
|
const endLoad = uniqueTime();
|
|
@@ -1041,6 +1039,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1041
1039
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1042
1040
|
}
|
|
1043
1041
|
endNewInstance();
|
|
1042
|
+
} else {
|
|
1043
|
+
Cstr = elm.constructor;
|
|
1044
|
+
const cmpTag = elm.localName;
|
|
1045
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1044
1046
|
}
|
|
1045
1047
|
if (Cstr && Cstr.style) {
|
|
1046
1048
|
let style;
|
|
@@ -1183,6 +1185,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1183
1185
|
plt.raf(() => {
|
|
1184
1186
|
var _a3;
|
|
1185
1187
|
const hostRef = getHostRef(this);
|
|
1188
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1189
|
+
if (i2 > -1) {
|
|
1190
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1191
|
+
}
|
|
1186
1192
|
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1187
1193
|
delete hostRef.$vnode$.$elm$;
|
|
1188
1194
|
}
|
package/dist/cjs/index.cjs.js
CHANGED
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-99b6bde3.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
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-skeleton.cjs",[[0,"ui-skeleton",{"structure":[1],"width":[
|
|
11
|
+
return index.bootstrapLazy([["ui-skeleton.cjs",[[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[1],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"],"primaryColor":["updateStyles"],"secondaryColor":["updateStyles"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-99b6bde3.js');
|
|
4
4
|
|
|
5
5
|
const uiSkeletonCss = ".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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
|
|
6
6
|
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
@@ -44,8 +44,8 @@ const UiSkeleton = class {
|
|
|
44
44
|
}
|
|
45
45
|
renderLogo() {
|
|
46
46
|
const styles = {
|
|
47
|
-
width: `${this.width}
|
|
48
|
-
height: `${this.height}
|
|
47
|
+
width: `${this.width}`,
|
|
48
|
+
height: `${this.height}`,
|
|
49
49
|
'background-color': `${this.color}`,
|
|
50
50
|
'border-radius': `${this.borderRadius}px`,
|
|
51
51
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -53,12 +53,12 @@ const UiSkeleton = class {
|
|
|
53
53
|
'margin-left': `${this.marginLeft}px`,
|
|
54
54
|
'margin-right': `${this.marginRight}px`
|
|
55
55
|
};
|
|
56
|
-
return (index.h("div", { style: styles, class: "
|
|
56
|
+
return (index.h("div", { ref: el => this.skeletonContainer = el }, index.h("div", { style: styles, class: "Logo " + (this.animation ? 'Skeleton' : '') })));
|
|
57
57
|
}
|
|
58
58
|
renderImage() {
|
|
59
59
|
const styles = {
|
|
60
|
-
width: `${this.width}
|
|
61
|
-
height: `${this.height}
|
|
60
|
+
width: `${this.width}`,
|
|
61
|
+
height: `${this.height}`,
|
|
62
62
|
'background-color': `${this.color}`,
|
|
63
63
|
'border-radius': `${this.borderRadius}px`,
|
|
64
64
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -66,12 +66,12 @@ const UiSkeleton = class {
|
|
|
66
66
|
'margin-left': `${this.marginLeft}px`,
|
|
67
67
|
'margin-right': `${this.marginRight}px`
|
|
68
68
|
};
|
|
69
|
-
return (index.h("div", { style: styles, class: "
|
|
69
|
+
return (index.h("div", { ref: el => this.skeletonContainer = el }, index.h("div", { style: styles, class: "Image " + (this.animation ? 'Skeleton' : '') })));
|
|
70
70
|
}
|
|
71
71
|
renderTitle() {
|
|
72
72
|
const styles = {
|
|
73
|
-
width: `${this.width}
|
|
74
|
-
height: `${this.height}
|
|
73
|
+
width: `${this.width}`,
|
|
74
|
+
height: `${this.height}`,
|
|
75
75
|
'background-color': `${this.color}`,
|
|
76
76
|
'border-radius': `${this.borderRadius}px`,
|
|
77
77
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -79,12 +79,12 @@ const UiSkeleton = class {
|
|
|
79
79
|
'margin-left': `${this.marginLeft}px`,
|
|
80
80
|
'margin-right': `${this.marginRight}px`
|
|
81
81
|
};
|
|
82
|
-
return (index.h("div", { style: styles, class: "
|
|
82
|
+
return (index.h("div", { ref: el => this.skeletonContainer = el }, index.h("div", { style: styles, class: "Title " + (this.animation ? 'Skeleton' : '') })));
|
|
83
83
|
}
|
|
84
84
|
renderText() {
|
|
85
85
|
const styles = {
|
|
86
|
-
width: `${this.width}
|
|
87
|
-
height: `${this.height}
|
|
86
|
+
width: `${this.width}`,
|
|
87
|
+
height: `${this.height}`,
|
|
88
88
|
'background-color': `${this.color}`,
|
|
89
89
|
'border-radius': `${this.borderRadius}px`,
|
|
90
90
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -92,25 +92,25 @@ const UiSkeleton = class {
|
|
|
92
92
|
'margin-left': `${this.marginLeft}px`,
|
|
93
93
|
'margin-right': `${this.marginRight}px`
|
|
94
94
|
};
|
|
95
|
-
return (Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index$1) => (index.h("div", { style: styles, key: index$1, class: "
|
|
95
|
+
return (Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index$1) => (index.h("div", { style: styles, key: index$1, class: "Text " + (this.animation ? 'Skeleton' : '') }))));
|
|
96
96
|
}
|
|
97
97
|
renderRectangle() {
|
|
98
98
|
const styles = {
|
|
99
|
-
width: `${this.width}
|
|
100
|
-
height: `${this.height}
|
|
101
|
-
'
|
|
99
|
+
width: `${this.width}`,
|
|
100
|
+
height: `${this.height}`,
|
|
101
|
+
'background-color': `${this.color}`,
|
|
102
102
|
'border-radius': `${this.borderRadius}px`,
|
|
103
103
|
'margin-bottom': `${this.marginBottom}px`,
|
|
104
104
|
'margin-top': `${this.marginTop}px`,
|
|
105
105
|
'margin-left': `${this.marginLeft}px`,
|
|
106
106
|
'margin-right': `${this.marginRight}px`
|
|
107
107
|
};
|
|
108
|
-
return (index.h("div", { style: styles, class: "
|
|
108
|
+
return (index.h("div", { ref: el => this.skeletonContainer = el }, index.h("div", { style: styles, class: "Rectangle " + (this.animation ? 'Skeleton' : '') })));
|
|
109
109
|
}
|
|
110
110
|
renderCircle() {
|
|
111
111
|
const styles = {
|
|
112
|
-
width: `${this.size}
|
|
113
|
-
height: `${this.size}
|
|
112
|
+
width: `${this.size}`,
|
|
113
|
+
height: `${this.size}`,
|
|
114
114
|
'background-color': `${this.color}`,
|
|
115
115
|
'margin-bottom': `${this.marginBottom}px`,
|
|
116
116
|
'margin-top': `${this.marginTop}px`,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-99b6bde3.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.25.
|
|
9
|
+
Stencil Client Patch Browser v4.25.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ui-skeleton.cjs.js', document.baseURI).href));
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["ui-skeleton.cjs",[[0,"ui-skeleton",{"structure":[1],"width":[
|
|
22
|
+
return index.bootstrapLazy([["ui-skeleton.cjs",[[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[1],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"],"primaryColor":["updateStyles"],"secondaryColor":["updateStyles"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -40,8 +40,8 @@ export class UiSkeleton {
|
|
|
40
40
|
}
|
|
41
41
|
renderLogo() {
|
|
42
42
|
const styles = {
|
|
43
|
-
width: `${this.width}
|
|
44
|
-
height: `${this.height}
|
|
43
|
+
width: `${this.width}`,
|
|
44
|
+
height: `${this.height}`,
|
|
45
45
|
'background-color': `${this.color}`,
|
|
46
46
|
'border-radius': `${this.borderRadius}px`,
|
|
47
47
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -49,12 +49,12 @@ export class UiSkeleton {
|
|
|
49
49
|
'margin-left': `${this.marginLeft}px`,
|
|
50
50
|
'margin-right': `${this.marginRight}px`
|
|
51
51
|
};
|
|
52
|
-
return (h("div", { style: styles, class: "
|
|
52
|
+
return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Logo " + (this.animation ? 'Skeleton' : '') })));
|
|
53
53
|
}
|
|
54
54
|
renderImage() {
|
|
55
55
|
const styles = {
|
|
56
|
-
width: `${this.width}
|
|
57
|
-
height: `${this.height}
|
|
56
|
+
width: `${this.width}`,
|
|
57
|
+
height: `${this.height}`,
|
|
58
58
|
'background-color': `${this.color}`,
|
|
59
59
|
'border-radius': `${this.borderRadius}px`,
|
|
60
60
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -62,12 +62,12 @@ export class UiSkeleton {
|
|
|
62
62
|
'margin-left': `${this.marginLeft}px`,
|
|
63
63
|
'margin-right': `${this.marginRight}px`
|
|
64
64
|
};
|
|
65
|
-
return (h("div", { style: styles, class: "
|
|
65
|
+
return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Image " + (this.animation ? 'Skeleton' : '') })));
|
|
66
66
|
}
|
|
67
67
|
renderTitle() {
|
|
68
68
|
const styles = {
|
|
69
|
-
width: `${this.width}
|
|
70
|
-
height: `${this.height}
|
|
69
|
+
width: `${this.width}`,
|
|
70
|
+
height: `${this.height}`,
|
|
71
71
|
'background-color': `${this.color}`,
|
|
72
72
|
'border-radius': `${this.borderRadius}px`,
|
|
73
73
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -75,12 +75,12 @@ export class UiSkeleton {
|
|
|
75
75
|
'margin-left': `${this.marginLeft}px`,
|
|
76
76
|
'margin-right': `${this.marginRight}px`
|
|
77
77
|
};
|
|
78
|
-
return (h("div", { style: styles, class: "
|
|
78
|
+
return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Title " + (this.animation ? 'Skeleton' : '') })));
|
|
79
79
|
}
|
|
80
80
|
renderText() {
|
|
81
81
|
const styles = {
|
|
82
|
-
width: `${this.width}
|
|
83
|
-
height: `${this.height}
|
|
82
|
+
width: `${this.width}`,
|
|
83
|
+
height: `${this.height}`,
|
|
84
84
|
'background-color': `${this.color}`,
|
|
85
85
|
'border-radius': `${this.borderRadius}px`,
|
|
86
86
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -88,25 +88,25 @@ export class UiSkeleton {
|
|
|
88
88
|
'margin-left': `${this.marginLeft}px`,
|
|
89
89
|
'margin-right': `${this.marginRight}px`
|
|
90
90
|
};
|
|
91
|
-
return (Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { style: styles, key: index, class: "
|
|
91
|
+
return (Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { style: styles, key: index, class: "Text " + (this.animation ? 'Skeleton' : '') }))));
|
|
92
92
|
}
|
|
93
93
|
renderRectangle() {
|
|
94
94
|
const styles = {
|
|
95
|
-
width: `${this.width}
|
|
96
|
-
height: `${this.height}
|
|
97
|
-
'
|
|
95
|
+
width: `${this.width}`,
|
|
96
|
+
height: `${this.height}`,
|
|
97
|
+
'background-color': `${this.color}`,
|
|
98
98
|
'border-radius': `${this.borderRadius}px`,
|
|
99
99
|
'margin-bottom': `${this.marginBottom}px`,
|
|
100
100
|
'margin-top': `${this.marginTop}px`,
|
|
101
101
|
'margin-left': `${this.marginLeft}px`,
|
|
102
102
|
'margin-right': `${this.marginRight}px`
|
|
103
103
|
};
|
|
104
|
-
return (h("div", { style: styles, class: "
|
|
104
|
+
return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Rectangle " + (this.animation ? 'Skeleton' : '') })));
|
|
105
105
|
}
|
|
106
106
|
renderCircle() {
|
|
107
107
|
const styles = {
|
|
108
|
-
width: `${this.size}
|
|
109
|
-
height: `${this.size}
|
|
108
|
+
width: `${this.size}`,
|
|
109
|
+
height: `${this.size}`,
|
|
110
110
|
'background-color': `${this.color}`,
|
|
111
111
|
'margin-bottom': `${this.marginBottom}px`,
|
|
112
112
|
'margin-top': `${this.marginTop}px`,
|
|
@@ -154,18 +154,18 @@ export class UiSkeleton {
|
|
|
154
154
|
"reflect": false
|
|
155
155
|
},
|
|
156
156
|
"width": {
|
|
157
|
-
"type": "
|
|
157
|
+
"type": "string",
|
|
158
158
|
"mutable": false,
|
|
159
159
|
"complexType": {
|
|
160
|
-
"original": "
|
|
161
|
-
"resolved": "
|
|
160
|
+
"original": "string",
|
|
161
|
+
"resolved": "string",
|
|
162
162
|
"references": {}
|
|
163
163
|
},
|
|
164
164
|
"required": false,
|
|
165
165
|
"optional": false,
|
|
166
166
|
"docs": {
|
|
167
167
|
"tags": [],
|
|
168
|
-
"text": "Width of the element"
|
|
168
|
+
"text": "Width of the element - it can either be a value in px (150px) or in percentage (100%)"
|
|
169
169
|
},
|
|
170
170
|
"getter": false,
|
|
171
171
|
"setter": false,
|
|
@@ -173,18 +173,18 @@ export class UiSkeleton {
|
|
|
173
173
|
"reflect": false
|
|
174
174
|
},
|
|
175
175
|
"height": {
|
|
176
|
-
"type": "
|
|
176
|
+
"type": "string",
|
|
177
177
|
"mutable": false,
|
|
178
178
|
"complexType": {
|
|
179
|
-
"original": "
|
|
180
|
-
"resolved": "
|
|
179
|
+
"original": "string",
|
|
180
|
+
"resolved": "string",
|
|
181
181
|
"references": {}
|
|
182
182
|
},
|
|
183
183
|
"required": false,
|
|
184
184
|
"optional": false,
|
|
185
185
|
"docs": {
|
|
186
186
|
"tags": [],
|
|
187
|
-
"text": "Height of the element"
|
|
187
|
+
"text": "Height of the element - it can either be a value in px (150px) or in percentage (100%)"
|
|
188
188
|
},
|
|
189
189
|
"getter": false,
|
|
190
190
|
"setter": false,
|
|
@@ -326,18 +326,18 @@ export class UiSkeleton {
|
|
|
326
326
|
"reflect": false
|
|
327
327
|
},
|
|
328
328
|
"size": {
|
|
329
|
-
"type": "
|
|
329
|
+
"type": "string",
|
|
330
330
|
"mutable": false,
|
|
331
331
|
"complexType": {
|
|
332
|
-
"original": "
|
|
333
|
-
"resolved": "
|
|
332
|
+
"original": "string",
|
|
333
|
+
"resolved": "string",
|
|
334
334
|
"references": {}
|
|
335
335
|
},
|
|
336
336
|
"required": false,
|
|
337
337
|
"optional": false,
|
|
338
338
|
"docs": {
|
|
339
339
|
"tags": [],
|
|
340
|
-
"text": "The size of the circle - only for `circle"
|
|
340
|
+
"text": "The size of the circle - only for `circle - it can either be a value in px (150px) or in percentage (100%)"
|
|
341
341
|
},
|
|
342
342
|
"getter": false,
|
|
343
343
|
"setter": false,
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'ui-skeleton';
|
|
|
2
2
|
const BUILD = /* ui-skeleton */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: false, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.25.
|
|
5
|
+
Stencil Client Platform v4.25.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -797,9 +797,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
799
|
var appDidLoad = (who) => {
|
|
800
|
-
{
|
|
801
|
-
addHydratedFlag(doc.documentElement);
|
|
802
|
-
}
|
|
803
800
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
804
801
|
};
|
|
805
802
|
var safeCall = (instance, method, arg, elm) => {
|
|
@@ -984,7 +981,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
984
981
|
let Cstr;
|
|
985
982
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
986
983
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
987
|
-
|
|
984
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
985
|
+
if (bundleId) {
|
|
988
986
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
989
987
|
if (CstrImport && "then" in CstrImport) {
|
|
990
988
|
const endLoad = uniqueTime();
|
|
@@ -1019,6 +1017,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1019
1017
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1020
1018
|
}
|
|
1021
1019
|
endNewInstance();
|
|
1020
|
+
} else {
|
|
1021
|
+
Cstr = elm.constructor;
|
|
1022
|
+
const cmpTag = elm.localName;
|
|
1023
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1022
1024
|
}
|
|
1023
1025
|
if (Cstr && Cstr.style) {
|
|
1024
1026
|
let style;
|
|
@@ -1161,6 +1163,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1161
1163
|
plt.raf(() => {
|
|
1162
1164
|
var _a3;
|
|
1163
1165
|
const hostRef = getHostRef(this);
|
|
1166
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1167
|
+
if (i2 > -1) {
|
|
1168
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1169
|
+
}
|
|
1164
1170
|
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1165
1171
|
delete hostRef.$vnode$.$elm$;
|
|
1166
1172
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { U as UiSkeleton } from './ui-skeleton-
|
|
2
|
-
import './index-
|
|
1
|
+
export { U as UiSkeleton } from './ui-skeleton-55916334.js';
|
|
2
|
+
import './index-44d7ce9a.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-44d7ce9a.js';
|
|
2
|
+
export { s as setNonce } from './index-44d7ce9a.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{"structure":[1],"width":[
|
|
8
|
+
return bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[1],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"],"primaryColor":["updateStyles"],"secondaryColor":["updateStyles"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-44d7ce9a.js';
|
|
2
2
|
|
|
3
3
|
const uiSkeletonCss = ".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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
|
|
4
4
|
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
@@ -42,8 +42,8 @@ const UiSkeleton = class {
|
|
|
42
42
|
}
|
|
43
43
|
renderLogo() {
|
|
44
44
|
const styles = {
|
|
45
|
-
width: `${this.width}
|
|
46
|
-
height: `${this.height}
|
|
45
|
+
width: `${this.width}`,
|
|
46
|
+
height: `${this.height}`,
|
|
47
47
|
'background-color': `${this.color}`,
|
|
48
48
|
'border-radius': `${this.borderRadius}px`,
|
|
49
49
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -51,12 +51,12 @@ const UiSkeleton = class {
|
|
|
51
51
|
'margin-left': `${this.marginLeft}px`,
|
|
52
52
|
'margin-right': `${this.marginRight}px`
|
|
53
53
|
};
|
|
54
|
-
return (h("div", { style: styles, class: "
|
|
54
|
+
return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Logo " + (this.animation ? 'Skeleton' : '') })));
|
|
55
55
|
}
|
|
56
56
|
renderImage() {
|
|
57
57
|
const styles = {
|
|
58
|
-
width: `${this.width}
|
|
59
|
-
height: `${this.height}
|
|
58
|
+
width: `${this.width}`,
|
|
59
|
+
height: `${this.height}`,
|
|
60
60
|
'background-color': `${this.color}`,
|
|
61
61
|
'border-radius': `${this.borderRadius}px`,
|
|
62
62
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -64,12 +64,12 @@ const UiSkeleton = class {
|
|
|
64
64
|
'margin-left': `${this.marginLeft}px`,
|
|
65
65
|
'margin-right': `${this.marginRight}px`
|
|
66
66
|
};
|
|
67
|
-
return (h("div", { style: styles, class: "
|
|
67
|
+
return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Image " + (this.animation ? 'Skeleton' : '') })));
|
|
68
68
|
}
|
|
69
69
|
renderTitle() {
|
|
70
70
|
const styles = {
|
|
71
|
-
width: `${this.width}
|
|
72
|
-
height: `${this.height}
|
|
71
|
+
width: `${this.width}`,
|
|
72
|
+
height: `${this.height}`,
|
|
73
73
|
'background-color': `${this.color}`,
|
|
74
74
|
'border-radius': `${this.borderRadius}px`,
|
|
75
75
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -77,12 +77,12 @@ const UiSkeleton = class {
|
|
|
77
77
|
'margin-left': `${this.marginLeft}px`,
|
|
78
78
|
'margin-right': `${this.marginRight}px`
|
|
79
79
|
};
|
|
80
|
-
return (h("div", { style: styles, class: "
|
|
80
|
+
return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Title " + (this.animation ? 'Skeleton' : '') })));
|
|
81
81
|
}
|
|
82
82
|
renderText() {
|
|
83
83
|
const styles = {
|
|
84
|
-
width: `${this.width}
|
|
85
|
-
height: `${this.height}
|
|
84
|
+
width: `${this.width}`,
|
|
85
|
+
height: `${this.height}`,
|
|
86
86
|
'background-color': `${this.color}`,
|
|
87
87
|
'border-radius': `${this.borderRadius}px`,
|
|
88
88
|
'margin-bottom': `${this.marginBottom}px`,
|
|
@@ -90,25 +90,25 @@ const UiSkeleton = class {
|
|
|
90
90
|
'margin-left': `${this.marginLeft}px`,
|
|
91
91
|
'margin-right': `${this.marginRight}px`
|
|
92
92
|
};
|
|
93
|
-
return (Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { style: styles, key: index, class: "
|
|
93
|
+
return (Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { style: styles, key: index, class: "Text " + (this.animation ? 'Skeleton' : '') }))));
|
|
94
94
|
}
|
|
95
95
|
renderRectangle() {
|
|
96
96
|
const styles = {
|
|
97
|
-
width: `${this.width}
|
|
98
|
-
height: `${this.height}
|
|
99
|
-
'
|
|
97
|
+
width: `${this.width}`,
|
|
98
|
+
height: `${this.height}`,
|
|
99
|
+
'background-color': `${this.color}`,
|
|
100
100
|
'border-radius': `${this.borderRadius}px`,
|
|
101
101
|
'margin-bottom': `${this.marginBottom}px`,
|
|
102
102
|
'margin-top': `${this.marginTop}px`,
|
|
103
103
|
'margin-left': `${this.marginLeft}px`,
|
|
104
104
|
'margin-right': `${this.marginRight}px`
|
|
105
105
|
};
|
|
106
|
-
return (h("div", { style: styles, class: "
|
|
106
|
+
return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Rectangle " + (this.animation ? 'Skeleton' : '') })));
|
|
107
107
|
}
|
|
108
108
|
renderCircle() {
|
|
109
109
|
const styles = {
|
|
110
|
-
width: `${this.size}
|
|
111
|
-
height: `${this.size}
|
|
110
|
+
width: `${this.size}`,
|
|
111
|
+
height: `${this.size}`,
|
|
112
112
|
'background-color': `${this.color}`,
|
|
113
113
|
'margin-bottom': `${this.marginBottom}px`,
|
|
114
114
|
'margin-top': `${this.marginTop}px`,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { U as ui_skeleton } from './ui-skeleton-
|
|
2
|
-
import './index-
|
|
1
|
+
export { U as ui_skeleton } from './ui-skeleton-55916334.js';
|
|
2
|
+
import './index-44d7ce9a.js';
|
package/dist/esm/ui-skeleton.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-44d7ce9a.js';
|
|
2
|
+
export { s as setNonce } from './index-44d7ce9a.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.25.
|
|
6
|
+
Stencil Client Patch Browser v4.25.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{"structure":[1],"width":[
|
|
19
|
+
return bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[1],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"],"primaryColor":["updateStyles"],"secondaryColor":["updateStyles"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -4,13 +4,13 @@ export declare class UiSkeleton {
|
|
|
4
4
|
*/
|
|
5
5
|
structure: 'logo' | 'image' | 'title' | 'text' | 'rectangle' | 'circle';
|
|
6
6
|
/**
|
|
7
|
-
* Width of the element
|
|
7
|
+
* Width of the element - it can either be a value in px (150px) or in percentage (100%)
|
|
8
8
|
*/
|
|
9
|
-
width:
|
|
9
|
+
width: string;
|
|
10
10
|
/**
|
|
11
|
-
* Height of the element
|
|
11
|
+
* Height of the element - it can either be a value in px (150px) or in percentage (100%)
|
|
12
12
|
*/
|
|
13
|
-
height:
|
|
13
|
+
height: string;
|
|
14
14
|
/**
|
|
15
15
|
* The border radius of the element
|
|
16
16
|
*/
|
|
@@ -40,9 +40,9 @@ export declare class UiSkeleton {
|
|
|
40
40
|
*/
|
|
41
41
|
rows: number;
|
|
42
42
|
/**
|
|
43
|
-
* The size of the circle - only for `circle
|
|
43
|
+
* The size of the circle - only for `circle - it can either be a value in px (150px) or in percentage (100%)
|
|
44
44
|
*/
|
|
45
|
-
size:
|
|
45
|
+
size: string;
|
|
46
46
|
/**
|
|
47
47
|
* Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)
|
|
48
48
|
*/
|
|
@@ -20,9 +20,9 @@ export namespace Components {
|
|
|
20
20
|
*/
|
|
21
21
|
"color": string;
|
|
22
22
|
/**
|
|
23
|
-
* Height of the element
|
|
23
|
+
* Height of the element - it can either be a value in px (150px) or in percentage (100%)
|
|
24
24
|
*/
|
|
25
|
-
"height":
|
|
25
|
+
"height": string;
|
|
26
26
|
/**
|
|
27
27
|
* Margin bottom for the element
|
|
28
28
|
*/
|
|
@@ -52,17 +52,17 @@ export namespace Components {
|
|
|
52
52
|
*/
|
|
53
53
|
"secondaryColor": string;
|
|
54
54
|
/**
|
|
55
|
-
* The size of the circle - only for `circle
|
|
55
|
+
* The size of the circle - only for `circle - it can either be a value in px (150px) or in percentage (100%)
|
|
56
56
|
*/
|
|
57
|
-
"size":
|
|
57
|
+
"size": string;
|
|
58
58
|
/**
|
|
59
59
|
* The structure of the skeleton
|
|
60
60
|
*/
|
|
61
61
|
"structure": 'logo' | 'image' | 'title' | 'text' | 'rectangle' | 'circle';
|
|
62
62
|
/**
|
|
63
|
-
* Width of the element
|
|
63
|
+
* Width of the element - it can either be a value in px (150px) or in percentage (100%)
|
|
64
64
|
*/
|
|
65
|
-
"width":
|
|
65
|
+
"width": string;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
declare global {
|
|
@@ -91,9 +91,9 @@ declare namespace LocalJSX {
|
|
|
91
91
|
*/
|
|
92
92
|
"color"?: string;
|
|
93
93
|
/**
|
|
94
|
-
* Height of the element
|
|
94
|
+
* Height of the element - it can either be a value in px (150px) or in percentage (100%)
|
|
95
95
|
*/
|
|
96
|
-
"height"?:
|
|
96
|
+
"height"?: string;
|
|
97
97
|
/**
|
|
98
98
|
* Margin bottom for the element
|
|
99
99
|
*/
|
|
@@ -123,17 +123,17 @@ declare namespace LocalJSX {
|
|
|
123
123
|
*/
|
|
124
124
|
"secondaryColor"?: string;
|
|
125
125
|
/**
|
|
126
|
-
* The size of the circle - only for `circle
|
|
126
|
+
* The size of the circle - only for `circle - it can either be a value in px (150px) or in percentage (100%)
|
|
127
127
|
*/
|
|
128
|
-
"size"?:
|
|
128
|
+
"size"?: string;
|
|
129
129
|
/**
|
|
130
130
|
* The structure of the skeleton
|
|
131
131
|
*/
|
|
132
132
|
"structure"?: 'logo' | 'image' | 'title' | 'text' | 'rectangle' | 'circle';
|
|
133
133
|
/**
|
|
134
|
-
* Width of the element
|
|
134
|
+
* Width of the element - it can either be a value in px (150px) or in percentage (100%)
|
|
135
135
|
*/
|
|
136
|
-
"width"?:
|
|
136
|
+
"width"?: string;
|
|
137
137
|
}
|
|
138
138
|
interface IntrinsicElements {
|
|
139
139
|
"ui-skeleton": UiSkeleton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{U as UiSkeleton}from"./p-
|
|
1
|
+
export{U as UiSkeleton}from"./p-9672881b.js";import"./p-d3d3a960.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e}from"./p-d3d3a960.js";const r=class{constructor(e){t(this,e),this.animation=!0}handleStructureChange(t,e){e!==t&&this.handleStructure(t)}updateStyles(){this.primaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color",this.primaryColor),this.secondaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color",this.secondaryColor)}handleStructure(t){switch(t){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()}}renderLogo(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){const t={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return Array.from({length:this.rows>0?this.rows:1}).map(((r,i)=>e("div",{style:t,key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.size}`,height:`${this.size}`,"background-color":`${this.color}`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Circle "+(this.animation?"Skeleton":"")}))}componentDidLoad(){this.updateStyles()}render(){return this.handleStructure(this.structure)}static get watchers(){return{structure:["handleStructureChange"],primaryColor:["updateStyles"],secondaryColor:["updateStyles"]}}};r.style=".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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";export{r as U}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{U as ui_skeleton}from"./p-9672881b.js";import"./p-d3d3a960.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],p=[],y=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&a.o?b($):a.raf($))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},$=()=>{v(m),v(p),(d=m.length>0)&&a.raf($)},b=t=>f().then(t),w=y(p,!0),S=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return k(t.value);throw"should never get here"}var E,C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?x(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=x(t,null);return u.u=e,r.length>0&&(u.h=r),u.m=l,u},x=(t,e)=>({o:0,p:t,i:e,v:null,h:null,u:null,m:null}),A={},D=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,H=new WeakMap,N=t=>"sc-"+t.$,T=(t,e,n,o)=>{if(n!==o)if(e.toLowerCase(),"class"===e){const e=t.classList,l=L(n);let s=L(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else"key"===e||"ref"===e&&o&&o(t)},F=/\s/,L=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(F):[]),R=(t,e)=>{const n=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.u||{},l=e.u||{};for(const t of U(Object.keys(o)))t in l||T(n,t,o[t],void 0);for(const t of U(Object.keys(l)))T(n,t,o[t],l[t])};function U(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var V=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(l=o.v=u.createElement(o.p),R(null,o),o.h)for(i=0;i<o.h.length;++i)s=V(t,o,i),s&&l.appendChild(s);return l["s-hn"]=E,l},W=(t,e,n,o,l,s)=>{let i,r=t;for(;l<=s;++l)o[l]&&(i=V(null,n,l),i&&(o[l].v=i,B(r,i,e)))},q=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;z(e),t&&t.remove()}}},G=(t,e,n=!1)=>t.p===e.p&&(n?(n&&!t.m&&e.m&&(t.m=e.m),!0):t.m===e.m),_=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h;R(t,e),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],m=o.length-1,p=o[0],y=o[m];for(;r<=f&&c<=m;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==p)p=o[++c];else if(null==y)y=o[--m];else if(G(h,p,l))_(h,p,l),h=e[++r],p=o[++c];else if(G(d,y,l))_(d,y,l),d=e[--f],y=o[--m];else if(G(h,y,l))_(h,y,l),B(t,h.v,d.v.nextSibling),h=e[++r],y=o[--m];else if(G(d,p,l))_(d,p,l),B(t,d.v,h.v),d=e[--f],p=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].m&&e[a].m===p.m){u=a;break}u>=0?(i=e[u],i.p!==p.p?s=V(e&&e[c],n,u):(_(i,p,l),e[u]=void 0,s=i.v),p=o[++c]):(s=V(e&&e[c],n,c),p=o[++c]),s&&B(h.v.parentNode,s,h.v)}r>f?W(t,null==o[m+1]?null:o[m+1].v,n,o,c,m):c>m&&q(e,r,f)})(o,l,e,s,n):null!==s?W(o,null,e,s,0,s.length-1):!n&&null!==l&&q(l,0,l.length-1)},z=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(z)},B=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),I=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},J=(t,e)=>{if(t.o|=16,!(4&t.o))return I(t,t.j),w((()=>K(t,e)));t.o|=512},K=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return Q(void 0,(()=>Y(t,n,e)))},Q=(t,e)=>X(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),X=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Y=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k;((t,e)=>{var n;const o=N(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,i=H.get(t=t.head||t);if(i||H.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.O)?n:g(u);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(h){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.$hostElement$.getRootNode(),e)})(t);Z(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>tt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Z=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C||x(null,null),s=(t=>t&&t.p===A)(e)?e:P(null,null,e);if(E=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.p=null,s.o|=4,t.C=s,s.v=l.v=o,_(l,s,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},tt=t=>{const e=t.$hostElement$,n=t.t,o=t.j;64&t.o||(t.o|=64,ot(e),nt(n,"componentDidLoad",void 0,e),t.M(e),o||et()),t.S&&(t.S(),t.S=void 0),512&t.o&&b((()=>J(t,!1))),t.o&=-517},et=()=>{ot(u.documentElement),b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"ui-skeleton"}});return t.dispatchEvent(e),e})(c)))},nt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},ot=t=>t.classList.add("hydrated"),lt=(t,e,o,s)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${s.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.P.get(e),u=i.o,a=i.t;if(o=D(o,s.A[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.P.set(e,o),a)){if(s.D&&128&u){const t=s.D[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){l(t,r)}}))}2==(18&u)&&J(i,!1)}},st=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A||e.D||t.watchers){t.watchers&&!e.D&&(e.D=t.watchers);const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,D(s,l)),void lt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return lt(this,t,s,e),void(1&o&&!i.t&&i.H.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=D(s,l),lt(this,t,i.t[t],e)};i.t?n():i.H.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.D)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.D)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},it=(t,o={})=>{var f;const d=[],m=o.exclude||[],p=c.customElements,y=u.head,v=y.querySelector("meta[charset]"),$=u.createElement("style"),b=[];let w,S=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{var r;const c={o:o[0],$:o[1],A:o[2],N:o[3]};4&c.o&&(j=!0),c.A=o[2],c.D=null!=(r=o[4])?r:{};const u=c.$,f=class extends HTMLElement{constructor(t){super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,P:new Map};o.H=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.k,r=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(e,e.j=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){e.o|=32;{const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.T;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${e.F}" was not found`);o.isProxied||(n.D=o.watchers,st(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,e.o|=128,r()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=N(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>J(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}H.has(t)&&H.delete(t),t.shadowRoot&&H.has(t.shadowRoot)&&H.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).H}};c.T=t[0],m.includes(u)||p.get(u)||(d.push(u),p.define(u,st(f,c,1)))}))})),d.length>0&&(j&&($.textContent+=r),$.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(f=a.O)?f:g(u);null!=t&&$.setAttribute("nonce",t),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(et,30)))},rt=t=>a.O=t;export{it as b,P as h,f as p,o as r,rt as s}
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],p=[],y=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&a.o?b($):a.raf($))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},$=()=>{v(m),v(p),(d=m.length>0)&&a.raf($)},b=t=>f().then(t),w=y(p,!0),S=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return k(t.value);throw"should never get here"}var E,C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?x(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=x(t,null);return u.u=e,r.length>0&&(u.h=r),u.m=l,u},x=(t,e)=>({o:0,p:t,i:e,v:null,h:null,u:null,m:null}),A={},D=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,H=new WeakMap,N=t=>"sc-"+t.$,T=(t,e,n,o)=>{if(n!==o)if(e.toLowerCase(),"class"===e){const e=t.classList,l=L(n);let s=L(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else"key"===e||"ref"===e&&o&&o(t)},F=/\s/,L=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(F):[]),R=(t,e)=>{const n=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.u||{},l=e.u||{};for(const t of U(Object.keys(o)))t in l||T(n,t,o[t],void 0);for(const t of U(Object.keys(l)))T(n,t,o[t],l[t])};function U(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var V=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(l=o.v=u.createElement(o.p),R(null,o),o.h)for(i=0;i<o.h.length;++i)s=V(t,o,i),s&&l.appendChild(s);return l["s-hn"]=E,l},W=(t,e,n,o,l,s)=>{let i,r=t;for(;l<=s;++l)o[l]&&(i=V(null,n,l),i&&(o[l].v=i,B(r,i,e)))},q=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;z(e),t&&t.remove()}}},G=(t,e,n=!1)=>t.p===e.p&&(n?(n&&!t.m&&e.m&&(t.m=e.m),!0):t.m===e.m),_=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h;R(t,e),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],m=o.length-1,p=o[0],y=o[m];for(;r<=f&&c<=m;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==p)p=o[++c];else if(null==y)y=o[--m];else if(G(h,p,l))_(h,p,l),h=e[++r],p=o[++c];else if(G(d,y,l))_(d,y,l),d=e[--f],y=o[--m];else if(G(h,y,l))_(h,y,l),B(t,h.v,d.v.nextSibling),h=e[++r],y=o[--m];else if(G(d,p,l))_(d,p,l),B(t,d.v,h.v),d=e[--f],p=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].m&&e[a].m===p.m){u=a;break}u>=0?(i=e[u],i.p!==p.p?s=V(e&&e[c],n,u):(_(i,p,l),e[u]=void 0,s=i.v),p=o[++c]):(s=V(e&&e[c],n,c),p=o[++c]),s&&B(h.v.parentNode,s,h.v)}r>f?W(t,null==o[m+1]?null:o[m+1].v,n,o,c,m):c>m&&q(e,r,f)})(o,l,e,s,n):null!==s?W(o,null,e,s,0,s.length-1):!n&&null!==l&&q(l,0,l.length-1)},z=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(z)},B=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),I=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},J=(t,e)=>{if(t.o|=16,!(4&t.o))return I(t,t.j),w((()=>K(t,e)));t.o|=512},K=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return Q(void 0,(()=>Y(t,n,e)))},Q=(t,e)=>X(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),X=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Y=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k;((t,e)=>{var n;const o=N(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,i=H.get(t=t.head||t);if(i||H.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.O)?n:g(u);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(h){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.$hostElement$.getRootNode(),e)})(t);Z(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>tt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Z=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C||x(null,null),s=(t=>t&&t.p===A)(e)?e:P(null,null,e);if(E=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.p=null,s.o|=4,t.C=s,s.v=l.v=o,_(l,s,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},tt=t=>{const e=t.$hostElement$,n=t.t,o=t.j;64&t.o||(t.o|=64,ot(e),nt(n,"componentDidLoad",void 0,e),t.M(e),o||et()),t.S&&(t.S(),t.S=void 0),512&t.o&&b((()=>J(t,!1))),t.o&=-517},et=()=>{b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"ui-skeleton"}});return t.dispatchEvent(e),e})(c)))},nt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},ot=t=>t.classList.add("hydrated"),lt=(t,e,o,s)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${s.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.P.get(e),u=i.o,a=i.t;if(o=D(o,s.A[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.P.set(e,o),a)){if(s.D&&128&u){const t=s.D[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){l(t,r)}}))}2==(18&u)&&J(i,!1)}},st=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A||e.D||t.watchers){t.watchers&&!e.D&&(e.D=t.watchers);const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,D(s,l)),void lt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return lt(this,t,s,e),void(1&o&&!i.t&&i.H.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=D(s,l),lt(this,t,i.t[t],e)};i.t?n():i.H.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.D)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.D)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},it=(t,o={})=>{var f;const d=[],m=o.exclude||[],p=c.customElements,y=u.head,v=y.querySelector("meta[charset]"),$=u.createElement("style"),b=[];let w,S=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{var r;const c={o:o[0],$:o[1],A:o[2],N:o[3]};4&c.o&&(j=!0),c.A=o[2],c.D=null!=(r=o[4])?r:{};const u=c.$,f=class extends HTMLElement{constructor(t){super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,P:new Map};o.H=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.k,r=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(e,e.j=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.T){const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.T;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${e.F}" was not found`);o.isProxied||(n.D=o.watchers,st(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,e.o|=128,r()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=N(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>J(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}H.has(t)&&H.delete(t),t.shadowRoot&&H.has(t.shadowRoot)&&H.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).H}};c.T=t[0],m.includes(u)||p.get(u)||(d.push(u),p.define(u,st(f,c,1)))}))})),d.length>0&&(j&&($.textContent+=r),$.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(f=a.O)?f:g(u);null!=t&&$.setAttribute("nonce",t),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(et,30)))},rt=t=>a.O=t;export{it as b,P as h,f as p,o as r,rt as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,b as o}from"./p-
|
|
1
|
+
import{p as r,b as o}from"./p-d3d3a960.js";export{s as setNonce}from"./p-d3d3a960.js";import{g as a}from"./p-e1255160.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),r(a)})().then((async r=>(await a(),o([["p-cedfb5a2",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"],primaryColor:["updateStyles"],secondaryColor:["updateStyles"]}]]]],r))));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-443310cf.js";const r=class{constructor(t){e(this,t),this.animation=!0}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}updateStyles(){this.primaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color",this.primaryColor),this.secondaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color",this.secondaryColor)}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()}}renderLogo(){return t("div",{style:{width:`${this.width}px`,height:`${this.height}px`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Skeleton Logo"})}renderImage(){return t("div",{style:{width:`${this.width}px`,height:`${this.height}px`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Skeleton Image"})}renderTitle(){return t("div",{style:{width:`${this.width}px`,height:`${this.height}px`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Skeleton Title"})}renderText(){const e={width:`${this.width}px`,height:`${this.height}px`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return Array.from({length:this.rows>0?this.rows:1}).map(((r,i)=>t("div",{style:e,key:i,class:"Skeleton Text"})))}renderRectangle(){return t("div",{style:{width:`${this.width}px`,height:`${this.height}px`,"backgroud-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Skeleton Rectangle"})}renderCircle(){return t("div",{ref:e=>this.skeletonContainer=e},t("div",{style:{width:`${this.size}px`,height:`${this.size}px`,"background-color":`${this.color}`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Circle "+(this.animation?"Skeleton":"")}))}componentDidLoad(){this.updateStyles()}render(){return this.handleStructure(this.structure)}static get watchers(){return{structure:["handleStructureChange"],primaryColor:["updateStyles"],secondaryColor:["updateStyles"]}}};r.style=".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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";export{r as U}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{U as ui_skeleton}from"./p-75e06c6c.js";import"./p-443310cf.js";
|
|
File without changes
|