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