@everymatrix/casino-tournament-banner 1.56.0 → 1.56.2
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/casino-tournament-banner/casino-tournament-banner.esm.js +1 -1
- package/dist/casino-tournament-banner/p-6e64cd47.entry.js +9 -0
- package/dist/casino-tournament-banner/p-ac8cc1ef.js +2 -0
- package/dist/cjs/casino-tournament-banner.cjs.js +2 -2
- package/dist/cjs/casino-tournament-banner_2.cjs.entry.js +403 -405
- package/dist/cjs/{index-0b07ce8b.js → index-0c7c7ceb.js} +70 -207
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.js +26 -82
- package/dist/esm/casino-tournament-banner.js +3 -3
- package/dist/esm/casino-tournament-banner_2.entry.js +403 -405
- package/dist/esm/{index-35b94b68.js → index-4dc9a6b7.js} +70 -207
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-tournament-banner/p-84129bcd.entry.js +0 -9
- package/dist/casino-tournament-banner/p-91da2a22.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-banner/.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/casino-tournament-banner/.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/casino-tournament-banner/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-tournament-banner';
|
|
24
|
-
const BUILD = /* casino-tournament-banner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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 = /* casino-tournament-banner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.19.2 | 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/utils/constants.ts
|
|
36
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
37
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
38
|
-
|
|
39
|
-
// src/client/client-host-ref.ts
|
|
40
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
41
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
42
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
43
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
44
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
45
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
46
38
|
const hostRef = {
|
|
47
39
|
$flags$: 0,
|
|
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
54
46
|
hostElement["s-p"] = [];
|
|
55
47
|
hostElement["s-rc"] = [];
|
|
56
48
|
}
|
|
57
|
-
|
|
58
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
59
50
|
};
|
|
60
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
61
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
92
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
93
84
|
/* webpackMode: "lazy" */
|
|
94
85
|
`./${bundleId}.entry.js${""}`
|
|
95
|
-
)); }).then(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
cmpModules.set(bundleId, importedModule);
|
|
99
|
-
}
|
|
100
|
-
return importedModule[exportName];
|
|
101
|
-
},
|
|
102
|
-
(e) => {
|
|
103
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
104
89
|
}
|
|
105
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
106
92
|
};
|
|
107
93
|
|
|
108
94
|
// src/client/client-style.ts
|
|
109
95
|
var styles = /* @__PURE__ */ new Map();
|
|
110
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
111
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
112
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
113
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -181,6 +166,14 @@ var flush = () => {
|
|
|
181
166
|
};
|
|
182
167
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
183
168
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
169
|
+
|
|
170
|
+
// src/utils/constants.ts
|
|
171
|
+
var EMPTY_OBJ = {};
|
|
172
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
173
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
174
|
+
|
|
175
|
+
// src/utils/helpers.ts
|
|
176
|
+
var isDef = (v) => v != null;
|
|
184
177
|
var isComplexType = (o) => {
|
|
185
178
|
o = typeof o;
|
|
186
179
|
return o === "object" || o === "function";
|
|
@@ -381,40 +374,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
381
374
|
}
|
|
382
375
|
if (!appliedStyles.has(scopeId2)) {
|
|
383
376
|
{
|
|
384
|
-
styleElm =
|
|
377
|
+
styleElm = doc.createElement("style");
|
|
385
378
|
styleElm.innerHTML = style;
|
|
386
379
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
387
380
|
if (nonce != null) {
|
|
388
381
|
styleElm.setAttribute("nonce", nonce);
|
|
389
382
|
}
|
|
390
|
-
|
|
391
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
392
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
393
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
394
|
-
styleContainerNode.insertBefore(
|
|
395
|
-
styleElm,
|
|
396
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
397
|
-
);
|
|
398
|
-
} else if ("host" in styleContainerNode) {
|
|
399
|
-
if (supportsConstructableStylesheets) {
|
|
400
|
-
const stylesheet = new CSSStyleSheet();
|
|
401
|
-
stylesheet.replaceSync(style);
|
|
402
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
403
|
-
} else {
|
|
404
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
405
|
-
if (existingStyleContainer) {
|
|
406
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
407
|
-
} else {
|
|
408
|
-
styleContainerNode.prepend(styleElm);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
} else {
|
|
412
|
-
styleContainerNode.append(styleElm);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
416
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
417
|
-
}
|
|
383
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
418
384
|
}
|
|
419
385
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
420
386
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -437,25 +403,23 @@ var attachStyles = (hostRef) => {
|
|
|
437
403
|
const scopeId2 = addStyle(
|
|
438
404
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
439
405
|
cmpMeta);
|
|
440
|
-
if (
|
|
406
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
441
407
|
elm["s-sc"] = scopeId2;
|
|
442
408
|
elm.classList.add(scopeId2 + "-h");
|
|
443
409
|
}
|
|
444
410
|
endAttachStyles();
|
|
445
411
|
};
|
|
446
412
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
447
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
413
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
448
414
|
if (oldValue !== newValue) {
|
|
449
415
|
let isProp = isMemberInElement(elm, memberName);
|
|
450
416
|
let ln = memberName.toLowerCase();
|
|
451
417
|
if (memberName === "class") {
|
|
452
418
|
const classList = elm.classList;
|
|
453
419
|
const oldClasses = parseClassList(oldValue);
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
458
|
-
}
|
|
420
|
+
const newClasses = parseClassList(newValue);
|
|
421
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
422
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
459
423
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
460
424
|
if (memberName[2] === "-") {
|
|
461
425
|
memberName = memberName.slice(3);
|
|
@@ -483,13 +447,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
483
447
|
if (memberName === "list") {
|
|
484
448
|
isProp = false;
|
|
485
449
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
486
|
-
|
|
487
|
-
elm[memberName] = n;
|
|
488
|
-
} else {
|
|
489
|
-
elm.setAttribute(memberName, n);
|
|
490
|
-
}
|
|
450
|
+
elm[memberName] = n;
|
|
491
451
|
}
|
|
492
|
-
} else
|
|
452
|
+
} else {
|
|
493
453
|
elm[memberName] = newValue;
|
|
494
454
|
}
|
|
495
455
|
} catch (e) {
|
|
@@ -511,44 +471,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
511
471
|
}
|
|
512
472
|
};
|
|
513
473
|
var parseClassListRegex = /\s/;
|
|
514
|
-
var parseClassList = (value) =>
|
|
515
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
516
|
-
value = value.baseVal;
|
|
517
|
-
}
|
|
518
|
-
if (!value || typeof value !== "string") {
|
|
519
|
-
return [];
|
|
520
|
-
}
|
|
521
|
-
return value.split(parseClassListRegex);
|
|
522
|
-
};
|
|
474
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
523
475
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
524
476
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
525
477
|
|
|
526
478
|
// src/runtime/vdom/update-element.ts
|
|
527
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
479
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
528
480
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
529
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
530
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
481
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
482
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
531
483
|
{
|
|
532
484
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
533
485
|
if (!(memberName in newVnodeAttrs)) {
|
|
534
|
-
setAccessor(
|
|
535
|
-
elm,
|
|
536
|
-
memberName,
|
|
537
|
-
oldVnodeAttrs[memberName],
|
|
538
|
-
void 0,
|
|
539
|
-
isSvgMode2,
|
|
540
|
-
newVnode.$flags$);
|
|
486
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
541
487
|
}
|
|
542
488
|
}
|
|
543
489
|
}
|
|
544
490
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
545
|
-
setAccessor(
|
|
546
|
-
elm,
|
|
547
|
-
memberName,
|
|
548
|
-
oldVnodeAttrs[memberName],
|
|
549
|
-
newVnodeAttrs[memberName],
|
|
550
|
-
isSvgMode2,
|
|
551
|
-
newVnode.$flags$);
|
|
491
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
552
492
|
}
|
|
553
493
|
};
|
|
554
494
|
function sortedAttrNames(attrNames) {
|
|
@@ -560,10 +500,13 @@ function sortedAttrNames(attrNames) {
|
|
|
560
500
|
attrNames
|
|
561
501
|
);
|
|
562
502
|
}
|
|
503
|
+
|
|
504
|
+
// src/runtime/vdom/vdom-render.ts
|
|
505
|
+
var scopeId;
|
|
563
506
|
var hostTagName;
|
|
564
507
|
var useNativeShadowDom = false;
|
|
565
508
|
var isSvgMode = false;
|
|
566
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
509
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
567
510
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
568
511
|
let i2 = 0;
|
|
569
512
|
let elm;
|
|
@@ -584,6 +527,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
584
527
|
{
|
|
585
528
|
updateElement(null, newVNode2, isSvgMode);
|
|
586
529
|
}
|
|
530
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
531
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
532
|
+
}
|
|
587
533
|
if (newVNode2.$children$) {
|
|
588
534
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
589
535
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -719,9 +665,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
719
665
|
if (!isInitialRender) {
|
|
720
666
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
721
667
|
}
|
|
722
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
723
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
724
|
-
}
|
|
725
668
|
return true;
|
|
726
669
|
}
|
|
727
670
|
return false;
|
|
@@ -748,10 +691,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
748
691
|
elm.textContent = "";
|
|
749
692
|
}
|
|
750
693
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
751
|
-
} else if (
|
|
752
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
753
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
754
|
-
) {
|
|
694
|
+
} else if (oldChildren !== null) {
|
|
755
695
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
756
696
|
}
|
|
757
697
|
if (isSvgMode && tag === "svg") {
|
|
@@ -762,9 +702,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
762
702
|
}
|
|
763
703
|
};
|
|
764
704
|
var insertBefore = (parent, newNode, reference) => {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}
|
|
705
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
706
|
+
return inserted;
|
|
768
707
|
};
|
|
769
708
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
770
709
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -789,21 +728,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
789
728
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
790
729
|
hostRef.$vnode$ = rootVnode;
|
|
791
730
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
792
|
-
|
|
731
|
+
{
|
|
732
|
+
scopeId = hostElm["s-sc"];
|
|
733
|
+
}
|
|
734
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
793
735
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
794
736
|
};
|
|
795
737
|
|
|
796
738
|
// src/runtime/update-component.ts
|
|
797
739
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
798
740
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
799
|
-
|
|
800
|
-
new Promise(
|
|
801
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
802
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
803
|
-
r();
|
|
804
|
-
}
|
|
805
|
-
)
|
|
806
|
-
);
|
|
741
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
807
742
|
}
|
|
808
743
|
};
|
|
809
744
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -832,12 +767,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
832
767
|
{
|
|
833
768
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
834
769
|
if (hostRef.$queuedListeners$) {
|
|
835
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
770
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
836
771
|
hostRef.$queuedListeners$ = void 0;
|
|
837
772
|
}
|
|
838
773
|
}
|
|
839
774
|
{
|
|
840
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
775
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
841
776
|
}
|
|
842
777
|
}
|
|
843
778
|
endSchedule();
|
|
@@ -906,7 +841,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
906
841
|
const instance = hostRef.$lazyInstance$ ;
|
|
907
842
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
908
843
|
{
|
|
909
|
-
safeCall(instance, "componentDidRender"
|
|
844
|
+
safeCall(instance, "componentDidRender");
|
|
910
845
|
}
|
|
911
846
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
912
847
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -935,14 +870,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
935
870
|
}
|
|
936
871
|
};
|
|
937
872
|
var appDidLoad = (who) => {
|
|
873
|
+
{
|
|
874
|
+
addHydratedFlag(doc.documentElement);
|
|
875
|
+
}
|
|
938
876
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
939
877
|
};
|
|
940
|
-
var safeCall = (instance, method, arg
|
|
878
|
+
var safeCall = (instance, method, arg) => {
|
|
941
879
|
if (instance && instance[method]) {
|
|
942
880
|
try {
|
|
943
881
|
return instance[method](arg);
|
|
944
882
|
} catch (e) {
|
|
945
|
-
consoleError(e
|
|
883
|
+
consoleError(e);
|
|
946
884
|
}
|
|
947
885
|
}
|
|
948
886
|
return void 0;
|
|
@@ -1001,68 +939,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1001
939
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1002
940
|
members.map(([memberName, [memberFlags]]) => {
|
|
1003
941
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1004
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1005
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1006
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1007
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1008
|
-
Object.defineProperty(prototype, memberName, {
|
|
1009
|
-
get() {
|
|
1010
|
-
{
|
|
1011
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1012
|
-
return getValue(this, memberName);
|
|
1013
|
-
}
|
|
1014
|
-
const ref = getHostRef(this);
|
|
1015
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1016
|
-
if (!instance) return;
|
|
1017
|
-
return instance[memberName];
|
|
1018
|
-
}
|
|
1019
|
-
},
|
|
1020
|
-
configurable: true,
|
|
1021
|
-
enumerable: true
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
942
|
Object.defineProperty(prototype, memberName, {
|
|
943
|
+
get() {
|
|
944
|
+
return getValue(this, memberName);
|
|
945
|
+
},
|
|
1025
946
|
set(newValue) {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1031
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1032
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1033
|
-
}
|
|
1034
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1035
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1036
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1037
|
-
return;
|
|
1038
|
-
}
|
|
1039
|
-
{
|
|
1040
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1041
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1042
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1043
|
-
ref.$onReadyPromise$.then(() => {
|
|
1044
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1045
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1046
|
-
}
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
return;
|
|
1050
|
-
}
|
|
1051
|
-
const setterSetVal = () => {
|
|
1052
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1053
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1054
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1055
|
-
}
|
|
1056
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1057
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1058
|
-
};
|
|
1059
|
-
if (ref.$lazyInstance$) {
|
|
1060
|
-
setterSetVal();
|
|
1061
|
-
} else {
|
|
1062
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
947
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
948
|
+
},
|
|
949
|
+
configurable: true,
|
|
950
|
+
enumerable: true
|
|
1066
951
|
});
|
|
1067
952
|
}
|
|
1068
953
|
});
|
|
@@ -1072,11 +957,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1072
957
|
plt.jmp(() => {
|
|
1073
958
|
var _a2;
|
|
1074
959
|
const propName = attrNameToPropName.get(attrName);
|
|
1075
|
-
if (this.hasOwnProperty(propName)
|
|
960
|
+
if (this.hasOwnProperty(propName)) {
|
|
1076
961
|
newValue = this[propName];
|
|
1077
962
|
delete this[propName];
|
|
1078
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1079
|
-
this[propName] == newValue) {
|
|
963
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1080
964
|
return;
|
|
1081
965
|
} else if (propName == null) {
|
|
1082
966
|
const hostRef = getHostRef(this);
|
|
@@ -1092,11 +976,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1092
976
|
}
|
|
1093
977
|
return;
|
|
1094
978
|
}
|
|
1095
|
-
|
|
1096
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1097
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1098
|
-
this[propName] = newValue;
|
|
1099
|
-
}
|
|
979
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1100
980
|
});
|
|
1101
981
|
};
|
|
1102
982
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1125,7 +1005,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1125
1005
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1126
1006
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1127
1007
|
if (bundleId) {
|
|
1128
|
-
const CstrImport = loadModule(cmpMeta
|
|
1008
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1129
1009
|
if (CstrImport && "then" in CstrImport) {
|
|
1130
1010
|
const endLoad = uniqueTime();
|
|
1131
1011
|
Cstr = await CstrImport;
|
|
@@ -1150,7 +1030,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1150
1030
|
try {
|
|
1151
1031
|
new Cstr(hostRef);
|
|
1152
1032
|
} catch (e) {
|
|
1153
|
-
consoleError(e
|
|
1033
|
+
consoleError(e);
|
|
1154
1034
|
}
|
|
1155
1035
|
{
|
|
1156
1036
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1185,7 +1065,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1185
1065
|
schedule();
|
|
1186
1066
|
}
|
|
1187
1067
|
};
|
|
1188
|
-
var fireConnectedCallback = (instance
|
|
1068
|
+
var fireConnectedCallback = (instance) => {
|
|
1189
1069
|
};
|
|
1190
1070
|
|
|
1191
1071
|
// src/runtime/connected-callback.ts
|
|
@@ -1226,7 +1106,7 @@ var connectedCallback = (elm) => {
|
|
|
1226
1106
|
endConnected();
|
|
1227
1107
|
}
|
|
1228
1108
|
};
|
|
1229
|
-
var disconnectInstance = (instance
|
|
1109
|
+
var disconnectInstance = (instance) => {
|
|
1230
1110
|
};
|
|
1231
1111
|
var disconnectedCallback = async (elm) => {
|
|
1232
1112
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1241,12 +1121,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1241
1121
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1242
1122
|
}
|
|
1243
1123
|
}
|
|
1244
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1245
|
-
rootAppliedStyles.delete(elm);
|
|
1246
|
-
}
|
|
1247
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1248
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1249
|
-
}
|
|
1250
1124
|
};
|
|
1251
1125
|
|
|
1252
1126
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1331,17 +1205,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1331
1205
|
}
|
|
1332
1206
|
disconnectedCallback() {
|
|
1333
1207
|
plt.jmp(() => disconnectedCallback(this));
|
|
1334
|
-
plt.raf(() => {
|
|
1335
|
-
var _a3;
|
|
1336
|
-
const hostRef = getHostRef(this);
|
|
1337
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1338
|
-
if (i2 > -1) {
|
|
1339
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1340
|
-
}
|
|
1341
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1342
|
-
delete hostRef.$vnode$.$elm$;
|
|
1343
|
-
}
|
|
1344
|
-
});
|
|
1345
1208
|
}
|
|
1346
1209
|
componentOnReady() {
|
|
1347
1210
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1405,7 +1268,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1405
1268
|
}
|
|
1406
1269
|
}
|
|
1407
1270
|
} catch (e) {
|
|
1408
|
-
consoleError(e
|
|
1271
|
+
consoleError(e);
|
|
1409
1272
|
}
|
|
1410
1273
|
};
|
|
1411
1274
|
var getHostListenerTarget = (elm, flags) => {
|
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-0c7c7ceb.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|