@everymatrix/ui-skeleton 1.54.12 → 1.55.0
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-9cb6c0ab.js → index-24f3e29d.js} +60 -160
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ui-skeleton-d9f3209a.js → ui-skeleton-ba6533bf.js} +14 -4
- package/dist/cjs/ui-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ui-skeleton.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ui-skeleton/ui-skeleton.js +13 -31
- package/dist/esm/{index-db5752f9.js → index-7c2d76a2.js} +60 -160
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{ui-skeleton-982450d2.js → ui-skeleton-82ccc79b.js} +14 -4
- package/dist/esm/ui-skeleton.entry.js +2 -2
- package/dist/esm/ui-skeleton.js +3 -3
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.dev.d.ts +2 -0
- package/dist/ui-skeleton/index.esm.js +1 -1
- package/dist/ui-skeleton/p-759564b8.js +2 -0
- package/dist/ui-skeleton/p-75ecc506.js +1 -0
- package/dist/ui-skeleton/p-becf2dc3.entry.js +1 -0
- package/dist/ui-skeleton/ui-skeleton.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.dev.d.ts +0 -2
- package/dist/ui-skeleton/p-558efe80.js +0 -1
- package/dist/ui-skeleton/p-a483aa6f.entry.js +0 -1
- package/dist/ui-skeleton/p-a551f6fe.js +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'ui-skeleton';
|
|
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,
|
|
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, 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.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
57
52
|
|
|
@@ -87,22 +82,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
87
82
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
88
83
|
/* webpackMode: "lazy" */
|
|
89
84
|
`./${bundleId}.entry.js${""}`
|
|
90
|
-
)); }).then(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
cmpModules.set(bundleId, importedModule);
|
|
94
|
-
}
|
|
95
|
-
return importedModule[exportName];
|
|
96
|
-
},
|
|
97
|
-
(e) => {
|
|
98
|
-
consoleError(e, hostRef.$hostElement$);
|
|
85
|
+
)); }).then((importedModule) => {
|
|
86
|
+
{
|
|
87
|
+
cmpModules.set(bundleId, importedModule);
|
|
99
88
|
}
|
|
100
|
-
|
|
89
|
+
return importedModule[exportName];
|
|
90
|
+
}, consoleError);
|
|
101
91
|
};
|
|
102
92
|
|
|
103
93
|
// src/client/client-style.ts
|
|
104
94
|
var styles = /* @__PURE__ */ new Map();
|
|
105
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
106
95
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
107
96
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
108
97
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -161,6 +150,12 @@ var flush = () => {
|
|
|
161
150
|
};
|
|
162
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
163
152
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
+
|
|
154
|
+
// src/utils/constants.ts
|
|
155
|
+
var EMPTY_OBJ = {};
|
|
156
|
+
|
|
157
|
+
// src/utils/helpers.ts
|
|
158
|
+
var isDef = (v) => v != null;
|
|
164
159
|
var isComplexType = (o) => {
|
|
165
160
|
o = typeof o;
|
|
166
161
|
return o === "object" || o === "function";
|
|
@@ -348,7 +343,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
348
343
|
}
|
|
349
344
|
if (!appliedStyles.has(scopeId2)) {
|
|
350
345
|
{
|
|
351
|
-
styleElm =
|
|
346
|
+
styleElm = doc.createElement("style");
|
|
352
347
|
styleElm.innerHTML = style;
|
|
353
348
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
354
349
|
if (nonce != null) {
|
|
@@ -358,10 +353,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
358
353
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
359
354
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
360
355
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
361
|
-
styleContainerNode.insertBefore(
|
|
362
|
-
styleElm,
|
|
363
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
364
|
-
);
|
|
356
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
365
357
|
} else if ("host" in styleContainerNode) {
|
|
366
358
|
if (supportsConstructableStylesheets) {
|
|
367
359
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -379,7 +371,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
379
371
|
styleContainerNode.append(styleElm);
|
|
380
372
|
}
|
|
381
373
|
}
|
|
382
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
374
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
383
375
|
styleContainerNode.insertBefore(styleElm, null);
|
|
384
376
|
}
|
|
385
377
|
}
|
|
@@ -406,17 +398,15 @@ var attachStyles = (hostRef) => {
|
|
|
406
398
|
endAttachStyles();
|
|
407
399
|
};
|
|
408
400
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
409
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
401
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
410
402
|
if (oldValue !== newValue) {
|
|
411
403
|
memberName.toLowerCase();
|
|
412
404
|
if (memberName === "class") {
|
|
413
405
|
const classList = elm.classList;
|
|
414
406
|
const oldClasses = parseClassList(oldValue);
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
419
|
-
}
|
|
407
|
+
const newClasses = parseClassList(newValue);
|
|
408
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
409
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
420
410
|
} else if (memberName === "style") {
|
|
421
411
|
{
|
|
422
412
|
for (const prop in oldValue) {
|
|
@@ -446,38 +436,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
446
436
|
}
|
|
447
437
|
};
|
|
448
438
|
var parseClassListRegex = /\s/;
|
|
449
|
-
var parseClassList = (value) =>
|
|
450
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
451
|
-
value = value.baseVal;
|
|
452
|
-
}
|
|
453
|
-
if (!value || typeof value !== "string") {
|
|
454
|
-
return [];
|
|
455
|
-
}
|
|
456
|
-
return value.split(parseClassListRegex);
|
|
457
|
-
};
|
|
439
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
458
440
|
|
|
459
441
|
// src/runtime/vdom/update-element.ts
|
|
460
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
442
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
461
443
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
462
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
463
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
444
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
445
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
464
446
|
{
|
|
465
447
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
466
448
|
if (!(memberName in newVnodeAttrs)) {
|
|
467
|
-
setAccessor(
|
|
468
|
-
elm,
|
|
469
|
-
memberName,
|
|
470
|
-
oldVnodeAttrs[memberName],
|
|
471
|
-
void 0);
|
|
449
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0);
|
|
472
450
|
}
|
|
473
451
|
}
|
|
474
452
|
}
|
|
475
453
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
476
|
-
setAccessor(
|
|
477
|
-
elm,
|
|
478
|
-
memberName,
|
|
479
|
-
oldVnodeAttrs[memberName],
|
|
480
|
-
newVnodeAttrs[memberName]);
|
|
454
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName]);
|
|
481
455
|
}
|
|
482
456
|
};
|
|
483
457
|
function sortedAttrNames(attrNames) {
|
|
@@ -489,9 +463,12 @@ function sortedAttrNames(attrNames) {
|
|
|
489
463
|
attrNames
|
|
490
464
|
);
|
|
491
465
|
}
|
|
466
|
+
|
|
467
|
+
// src/runtime/vdom/vdom-render.ts
|
|
468
|
+
var scopeId;
|
|
492
469
|
var hostTagName;
|
|
493
470
|
var useNativeShadowDom = false;
|
|
494
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
471
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
495
472
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
496
473
|
let i2 = 0;
|
|
497
474
|
let elm;
|
|
@@ -503,6 +480,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
503
480
|
{
|
|
504
481
|
updateElement(null, newVNode2);
|
|
505
482
|
}
|
|
483
|
+
const rootNode = elm.getRootNode();
|
|
484
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
485
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
486
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
487
|
+
}
|
|
506
488
|
if (newVNode2.$children$) {
|
|
507
489
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
508
490
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -629,9 +611,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
629
611
|
if (!isInitialRender) {
|
|
630
612
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
631
613
|
}
|
|
632
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
633
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
634
|
-
}
|
|
635
614
|
return true;
|
|
636
615
|
}
|
|
637
616
|
return false;
|
|
@@ -665,9 +644,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
665
644
|
}
|
|
666
645
|
};
|
|
667
646
|
var insertBefore = (parent, newNode, reference) => {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
}
|
|
647
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
648
|
+
return inserted;
|
|
671
649
|
};
|
|
672
650
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
673
651
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -685,21 +663,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
685
663
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
686
664
|
hostRef.$vnode$ = rootVnode;
|
|
687
665
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
|
|
688
|
-
useNativeShadowDom = supportsShadow
|
|
666
|
+
useNativeShadowDom = supportsShadow ;
|
|
689
667
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
690
668
|
};
|
|
691
669
|
|
|
692
670
|
// src/runtime/update-component.ts
|
|
693
671
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
694
672
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
695
|
-
|
|
696
|
-
new Promise(
|
|
697
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
698
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
699
|
-
r();
|
|
700
|
-
}
|
|
701
|
-
)
|
|
702
|
-
);
|
|
673
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
703
674
|
}
|
|
704
675
|
};
|
|
705
676
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -795,7 +766,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
795
766
|
addHydratedFlag(elm);
|
|
796
767
|
}
|
|
797
768
|
{
|
|
798
|
-
safeCall(instance, "componentDidLoad"
|
|
769
|
+
safeCall(instance, "componentDidLoad");
|
|
799
770
|
}
|
|
800
771
|
endPostUpdate();
|
|
801
772
|
{
|
|
@@ -819,14 +790,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
819
790
|
}
|
|
820
791
|
};
|
|
821
792
|
var appDidLoad = (who) => {
|
|
793
|
+
{
|
|
794
|
+
addHydratedFlag(doc.documentElement);
|
|
795
|
+
}
|
|
822
796
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
823
797
|
};
|
|
824
|
-
var safeCall = (instance, method, arg
|
|
798
|
+
var safeCall = (instance, method, arg) => {
|
|
825
799
|
if (instance && instance[method]) {
|
|
826
800
|
try {
|
|
827
801
|
return instance[method](arg);
|
|
828
802
|
} catch (e) {
|
|
829
|
-
consoleError(e
|
|
803
|
+
consoleError(e);
|
|
830
804
|
}
|
|
831
805
|
}
|
|
832
806
|
return void 0;
|
|
@@ -885,68 +859,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
885
859
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
886
860
|
members.map(([memberName, [memberFlags]]) => {
|
|
887
861
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
888
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
889
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
890
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
891
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
892
|
-
Object.defineProperty(prototype, memberName, {
|
|
893
|
-
get() {
|
|
894
|
-
{
|
|
895
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
896
|
-
return getValue(this, memberName);
|
|
897
|
-
}
|
|
898
|
-
const ref = getHostRef(this);
|
|
899
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
900
|
-
if (!instance) return;
|
|
901
|
-
return instance[memberName];
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
configurable: true,
|
|
905
|
-
enumerable: true
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
862
|
Object.defineProperty(prototype, memberName, {
|
|
863
|
+
get() {
|
|
864
|
+
return getValue(this, memberName);
|
|
865
|
+
},
|
|
909
866
|
set(newValue) {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
915
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
916
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
917
|
-
}
|
|
918
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
919
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
920
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
921
|
-
return;
|
|
922
|
-
}
|
|
923
|
-
{
|
|
924
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
925
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
926
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
927
|
-
ref.$onReadyPromise$.then(() => {
|
|
928
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
929
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
930
|
-
}
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
return;
|
|
934
|
-
}
|
|
935
|
-
const setterSetVal = () => {
|
|
936
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
937
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
938
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
939
|
-
}
|
|
940
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
941
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
942
|
-
};
|
|
943
|
-
if (ref.$lazyInstance$) {
|
|
944
|
-
setterSetVal();
|
|
945
|
-
} else {
|
|
946
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
}
|
|
867
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
868
|
+
},
|
|
869
|
+
configurable: true,
|
|
870
|
+
enumerable: true
|
|
950
871
|
});
|
|
951
872
|
}
|
|
952
873
|
});
|
|
@@ -956,7 +877,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
956
877
|
plt.jmp(() => {
|
|
957
878
|
var _a2;
|
|
958
879
|
const propName = attrNameToPropName.get(attrName);
|
|
959
|
-
if (this.hasOwnProperty(propName)
|
|
880
|
+
if (this.hasOwnProperty(propName)) {
|
|
960
881
|
newValue = this[propName];
|
|
961
882
|
delete this[propName];
|
|
962
883
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -976,11 +897,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
976
897
|
}
|
|
977
898
|
return;
|
|
978
899
|
}
|
|
979
|
-
|
|
980
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
981
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
982
|
-
this[propName] = newValue;
|
|
983
|
-
}
|
|
900
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
984
901
|
});
|
|
985
902
|
};
|
|
986
903
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1005,7 +922,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1005
922
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1006
923
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1007
924
|
if (bundleId) {
|
|
1008
|
-
const CstrImport = loadModule(cmpMeta
|
|
925
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1009
926
|
if (CstrImport && "then" in CstrImport) {
|
|
1010
927
|
const endLoad = uniqueTime();
|
|
1011
928
|
Cstr = await CstrImport;
|
|
@@ -1030,7 +947,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1030
947
|
try {
|
|
1031
948
|
new Cstr(hostRef);
|
|
1032
949
|
} catch (e) {
|
|
1033
|
-
consoleError(e
|
|
950
|
+
consoleError(e);
|
|
1034
951
|
}
|
|
1035
952
|
{
|
|
1036
953
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1065,7 +982,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1065
982
|
schedule();
|
|
1066
983
|
}
|
|
1067
984
|
};
|
|
1068
|
-
var fireConnectedCallback = (instance
|
|
985
|
+
var fireConnectedCallback = (instance) => {
|
|
1069
986
|
};
|
|
1070
987
|
|
|
1071
988
|
// src/runtime/connected-callback.ts
|
|
@@ -1105,7 +1022,7 @@ var connectedCallback = (elm) => {
|
|
|
1105
1022
|
endConnected();
|
|
1106
1023
|
}
|
|
1107
1024
|
};
|
|
1108
|
-
var disconnectInstance = (instance
|
|
1025
|
+
var disconnectInstance = (instance) => {
|
|
1109
1026
|
};
|
|
1110
1027
|
var disconnectedCallback = async (elm) => {
|
|
1111
1028
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1114,12 +1031,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1114
1031
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1115
1032
|
}
|
|
1116
1033
|
}
|
|
1117
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1118
|
-
rootAppliedStyles.delete(elm);
|
|
1119
|
-
}
|
|
1120
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1121
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1122
|
-
}
|
|
1123
1034
|
};
|
|
1124
1035
|
|
|
1125
1036
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1182,17 +1093,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1182
1093
|
}
|
|
1183
1094
|
disconnectedCallback() {
|
|
1184
1095
|
plt.jmp(() => disconnectedCallback(this));
|
|
1185
|
-
plt.raf(() => {
|
|
1186
|
-
var _a3;
|
|
1187
|
-
const hostRef = getHostRef(this);
|
|
1188
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1189
|
-
if (i2 > -1) {
|
|
1190
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1191
|
-
}
|
|
1192
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1193
|
-
delete hostRef.$vnode$.$elm$;
|
|
1194
|
-
}
|
|
1195
|
-
});
|
|
1196
1096
|
}
|
|
1197
1097
|
componentOnReady() {
|
|
1198
1098
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/index.cjs.js
CHANGED
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-24f3e29d.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-24f3e29d.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;
|
|
@@ -8,10 +8,20 @@ const UiSkeletonStyle0 = uiSkeletonCss;
|
|
|
8
8
|
const UiSkeleton = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
this.structure = undefined;
|
|
12
|
+
this.width = undefined;
|
|
13
|
+
this.height = undefined;
|
|
14
|
+
this.borderRadius = undefined;
|
|
15
|
+
this.marginBottom = undefined;
|
|
16
|
+
this.marginTop = undefined;
|
|
17
|
+
this.marginLeft = undefined;
|
|
18
|
+
this.marginRight = undefined;
|
|
14
19
|
this.animation = true;
|
|
20
|
+
this.rows = undefined;
|
|
21
|
+
this.size = undefined;
|
|
22
|
+
this.color = undefined;
|
|
23
|
+
this.primaryColor = undefined;
|
|
24
|
+
this.secondaryColor = undefined;
|
|
15
25
|
}
|
|
16
26
|
handleStructureChange(newValue, oldValue) {
|
|
17
27
|
if (oldValue !== newValue) {
|
|
@@ -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-24f3e29d.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.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));
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class UiSkeleton {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
this.structure = undefined;
|
|
5
|
+
this.width = undefined;
|
|
6
|
+
this.height = undefined;
|
|
7
|
+
this.borderRadius = undefined;
|
|
8
|
+
this.marginBottom = undefined;
|
|
9
|
+
this.marginTop = undefined;
|
|
10
|
+
this.marginLeft = undefined;
|
|
11
|
+
this.marginRight = undefined;
|
|
7
12
|
this.animation = true;
|
|
13
|
+
this.rows = undefined;
|
|
14
|
+
this.size = undefined;
|
|
15
|
+
this.color = undefined;
|
|
16
|
+
this.primaryColor = undefined;
|
|
17
|
+
this.secondaryColor = undefined;
|
|
8
18
|
}
|
|
9
19
|
handleStructureChange(newValue, oldValue) {
|
|
10
20
|
if (oldValue !== newValue) {
|
|
@@ -148,8 +158,6 @@ export class UiSkeleton {
|
|
|
148
158
|
"tags": [],
|
|
149
159
|
"text": "The structure of the skeleton"
|
|
150
160
|
},
|
|
151
|
-
"getter": false,
|
|
152
|
-
"setter": false,
|
|
153
161
|
"attribute": "structure",
|
|
154
162
|
"reflect": false
|
|
155
163
|
},
|
|
@@ -167,8 +175,6 @@ export class UiSkeleton {
|
|
|
167
175
|
"tags": [],
|
|
168
176
|
"text": "Width of the element - it can either be a value in px (150px) or in percentage (100%)"
|
|
169
177
|
},
|
|
170
|
-
"getter": false,
|
|
171
|
-
"setter": false,
|
|
172
178
|
"attribute": "width",
|
|
173
179
|
"reflect": false
|
|
174
180
|
},
|
|
@@ -186,8 +192,6 @@ export class UiSkeleton {
|
|
|
186
192
|
"tags": [],
|
|
187
193
|
"text": "Height of the element - it can either be a value in px (150px) or in percentage (100%)"
|
|
188
194
|
},
|
|
189
|
-
"getter": false,
|
|
190
|
-
"setter": false,
|
|
191
195
|
"attribute": "height",
|
|
192
196
|
"reflect": false
|
|
193
197
|
},
|
|
@@ -205,8 +209,6 @@ export class UiSkeleton {
|
|
|
205
209
|
"tags": [],
|
|
206
210
|
"text": "The border radius of the element"
|
|
207
211
|
},
|
|
208
|
-
"getter": false,
|
|
209
|
-
"setter": false,
|
|
210
212
|
"attribute": "border-radius",
|
|
211
213
|
"reflect": false
|
|
212
214
|
},
|
|
@@ -224,8 +226,6 @@ export class UiSkeleton {
|
|
|
224
226
|
"tags": [],
|
|
225
227
|
"text": "Margin bottom for the element"
|
|
226
228
|
},
|
|
227
|
-
"getter": false,
|
|
228
|
-
"setter": false,
|
|
229
229
|
"attribute": "margin-bottom",
|
|
230
230
|
"reflect": false
|
|
231
231
|
},
|
|
@@ -243,8 +243,6 @@ export class UiSkeleton {
|
|
|
243
243
|
"tags": [],
|
|
244
244
|
"text": "Margin top for the element"
|
|
245
245
|
},
|
|
246
|
-
"getter": false,
|
|
247
|
-
"setter": false,
|
|
248
246
|
"attribute": "margin-top",
|
|
249
247
|
"reflect": false
|
|
250
248
|
},
|
|
@@ -262,8 +260,6 @@ export class UiSkeleton {
|
|
|
262
260
|
"tags": [],
|
|
263
261
|
"text": "Margin left for the element"
|
|
264
262
|
},
|
|
265
|
-
"getter": false,
|
|
266
|
-
"setter": false,
|
|
267
263
|
"attribute": "margin-left",
|
|
268
264
|
"reflect": false
|
|
269
265
|
},
|
|
@@ -281,8 +277,6 @@ export class UiSkeleton {
|
|
|
281
277
|
"tags": [],
|
|
282
278
|
"text": "Margin right for the element"
|
|
283
279
|
},
|
|
284
|
-
"getter": false,
|
|
285
|
-
"setter": false,
|
|
286
280
|
"attribute": "margin-right",
|
|
287
281
|
"reflect": false
|
|
288
282
|
},
|
|
@@ -300,8 +294,6 @@ export class UiSkeleton {
|
|
|
300
294
|
"tags": [],
|
|
301
295
|
"text": "Toggles skeleton animation"
|
|
302
296
|
},
|
|
303
|
-
"getter": false,
|
|
304
|
-
"setter": false,
|
|
305
297
|
"attribute": "animation",
|
|
306
298
|
"reflect": false,
|
|
307
299
|
"defaultValue": "true"
|
|
@@ -320,8 +312,6 @@ export class UiSkeleton {
|
|
|
320
312
|
"tags": [],
|
|
321
313
|
"text": "Number of rows displayed - only for `text`"
|
|
322
314
|
},
|
|
323
|
-
"getter": false,
|
|
324
|
-
"setter": false,
|
|
325
315
|
"attribute": "rows",
|
|
326
316
|
"reflect": false
|
|
327
317
|
},
|
|
@@ -339,8 +329,6 @@ export class UiSkeleton {
|
|
|
339
329
|
"tags": [],
|
|
340
330
|
"text": "The size of the circle - only for `circle - it can either be a value in px (150px) or in percentage (100%)"
|
|
341
331
|
},
|
|
342
|
-
"getter": false,
|
|
343
|
-
"setter": false,
|
|
344
332
|
"attribute": "size",
|
|
345
333
|
"reflect": false
|
|
346
334
|
},
|
|
@@ -358,8 +346,6 @@ export class UiSkeleton {
|
|
|
358
346
|
"tags": [],
|
|
359
347
|
"text": "Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)"
|
|
360
348
|
},
|
|
361
|
-
"getter": false,
|
|
362
|
-
"setter": false,
|
|
363
349
|
"attribute": "color",
|
|
364
350
|
"reflect": false
|
|
365
351
|
},
|
|
@@ -377,8 +363,6 @@ export class UiSkeleton {
|
|
|
377
363
|
"tags": [],
|
|
378
364
|
"text": "Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)"
|
|
379
365
|
},
|
|
380
|
-
"getter": false,
|
|
381
|
-
"setter": false,
|
|
382
366
|
"attribute": "primary-color",
|
|
383
367
|
"reflect": false
|
|
384
368
|
},
|
|
@@ -396,8 +380,6 @@ export class UiSkeleton {
|
|
|
396
380
|
"tags": [],
|
|
397
381
|
"text": "Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)"
|
|
398
382
|
},
|
|
399
|
-
"getter": false,
|
|
400
|
-
"setter": false,
|
|
401
383
|
"attribute": "secondary-color",
|
|
402
384
|
"reflect": false
|
|
403
385
|
}
|