@everymatrix/lottery-draw-results 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/cjs/{index-40b9eb85.js → index-d192649c.js} +73 -208
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-bullet_3.cjs.entry.js +45 -155
- package/dist/cjs/lottery-draw-results.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/lottery-draw-results/lottery-draw-results.js +20 -109
- package/dist/esm/{index-1f968172.js → index-db0ed104.js} +73 -208
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-bullet_3.entry.js +45 -155
- package/dist/esm/lottery-draw-results.js +3 -3
- package/dist/lottery-draw-results/lottery-draw-results.esm.js +1 -1
- package/dist/lottery-draw-results/p-b8d0e94e.js +2 -0
- package/dist/lottery-draw-results/p-f143a1e2.entry.js +1 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/lottery-draw-results/p-9ad77409.entry.js +0 -1
- package/dist/lottery-draw-results/p-ba7135c7.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-draw-results/.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/lottery-draw-results/.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/lottery-draw-results/.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 = 'lottery-draw-results';
|
|
24
|
-
const BUILD = /* lottery-draw-results */ { 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: true, cmpWillUpdate: false, connectedCallback: true, 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: true, 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 = /* lottery-draw-results */ { 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: true, cmpWillUpdate: false, connectedCallback: true, 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: true, 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: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
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/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 isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -177,6 +166,12 @@ var flush = () => {
|
|
|
177
166
|
};
|
|
178
167
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
179
168
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
169
|
+
|
|
170
|
+
// src/utils/constants.ts
|
|
171
|
+
var EMPTY_OBJ = {};
|
|
172
|
+
|
|
173
|
+
// src/utils/helpers.ts
|
|
174
|
+
var isDef = (v) => v != null;
|
|
180
175
|
var isComplexType = (o) => {
|
|
181
176
|
o = typeof o;
|
|
182
177
|
return o === "object" || o === "function";
|
|
@@ -380,40 +375,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
380
375
|
}
|
|
381
376
|
if (!appliedStyles.has(scopeId2)) {
|
|
382
377
|
{
|
|
383
|
-
styleElm =
|
|
378
|
+
styleElm = doc.createElement("style");
|
|
384
379
|
styleElm.innerHTML = style;
|
|
385
380
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
386
381
|
if (nonce != null) {
|
|
387
382
|
styleElm.setAttribute("nonce", nonce);
|
|
388
383
|
}
|
|
389
|
-
|
|
390
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
391
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
392
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
393
|
-
styleContainerNode.insertBefore(
|
|
394
|
-
styleElm,
|
|
395
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
396
|
-
);
|
|
397
|
-
} else if ("host" in styleContainerNode) {
|
|
398
|
-
if (supportsConstructableStylesheets) {
|
|
399
|
-
const stylesheet = new CSSStyleSheet();
|
|
400
|
-
stylesheet.replaceSync(style);
|
|
401
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
402
|
-
} else {
|
|
403
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
404
|
-
if (existingStyleContainer) {
|
|
405
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
406
|
-
} else {
|
|
407
|
-
styleContainerNode.prepend(styleElm);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
} else {
|
|
411
|
-
styleContainerNode.append(styleElm);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
415
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
416
|
-
}
|
|
384
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
417
385
|
}
|
|
418
386
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
419
387
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -436,25 +404,23 @@ var attachStyles = (hostRef) => {
|
|
|
436
404
|
const scopeId2 = addStyle(
|
|
437
405
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
438
406
|
cmpMeta);
|
|
439
|
-
if (
|
|
407
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
440
408
|
elm["s-sc"] = scopeId2;
|
|
441
409
|
elm.classList.add(scopeId2 + "-h");
|
|
442
410
|
}
|
|
443
411
|
endAttachStyles();
|
|
444
412
|
};
|
|
445
413
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
446
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
414
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
447
415
|
if (oldValue !== newValue) {
|
|
448
416
|
let isProp = isMemberInElement(elm, memberName);
|
|
449
417
|
let ln = memberName.toLowerCase();
|
|
450
418
|
if (memberName === "class") {
|
|
451
419
|
const classList = elm.classList;
|
|
452
420
|
const oldClasses = parseClassList(oldValue);
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
457
|
-
}
|
|
421
|
+
const newClasses = parseClassList(newValue);
|
|
422
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
423
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
458
424
|
} else if (memberName === "style") {
|
|
459
425
|
{
|
|
460
426
|
for (const prop in oldValue) {
|
|
@@ -507,13 +473,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
507
473
|
if (memberName === "list") {
|
|
508
474
|
isProp = false;
|
|
509
475
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
510
|
-
|
|
511
|
-
elm[memberName] = n;
|
|
512
|
-
} else {
|
|
513
|
-
elm.setAttribute(memberName, n);
|
|
514
|
-
}
|
|
476
|
+
elm[memberName] = n;
|
|
515
477
|
}
|
|
516
|
-
} else
|
|
478
|
+
} else {
|
|
517
479
|
elm[memberName] = newValue;
|
|
518
480
|
}
|
|
519
481
|
} catch (e) {
|
|
@@ -535,44 +497,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
535
497
|
}
|
|
536
498
|
};
|
|
537
499
|
var parseClassListRegex = /\s/;
|
|
538
|
-
var parseClassList = (value) =>
|
|
539
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
540
|
-
value = value.baseVal;
|
|
541
|
-
}
|
|
542
|
-
if (!value || typeof value !== "string") {
|
|
543
|
-
return [];
|
|
544
|
-
}
|
|
545
|
-
return value.split(parseClassListRegex);
|
|
546
|
-
};
|
|
500
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
547
501
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
548
502
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
549
503
|
|
|
550
504
|
// src/runtime/vdom/update-element.ts
|
|
551
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
505
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
552
506
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
553
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
554
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
507
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
508
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
555
509
|
{
|
|
556
510
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
557
511
|
if (!(memberName in newVnodeAttrs)) {
|
|
558
|
-
setAccessor(
|
|
559
|
-
elm,
|
|
560
|
-
memberName,
|
|
561
|
-
oldVnodeAttrs[memberName],
|
|
562
|
-
void 0,
|
|
563
|
-
isSvgMode2,
|
|
564
|
-
newVnode.$flags$);
|
|
512
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
565
513
|
}
|
|
566
514
|
}
|
|
567
515
|
}
|
|
568
516
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
569
|
-
setAccessor(
|
|
570
|
-
elm,
|
|
571
|
-
memberName,
|
|
572
|
-
oldVnodeAttrs[memberName],
|
|
573
|
-
newVnodeAttrs[memberName],
|
|
574
|
-
isSvgMode2,
|
|
575
|
-
newVnode.$flags$);
|
|
517
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
576
518
|
}
|
|
577
519
|
};
|
|
578
520
|
function sortedAttrNames(attrNames) {
|
|
@@ -584,10 +526,13 @@ function sortedAttrNames(attrNames) {
|
|
|
584
526
|
attrNames
|
|
585
527
|
);
|
|
586
528
|
}
|
|
529
|
+
|
|
530
|
+
// src/runtime/vdom/vdom-render.ts
|
|
531
|
+
var scopeId;
|
|
587
532
|
var hostTagName;
|
|
588
533
|
var useNativeShadowDom = false;
|
|
589
534
|
var isSvgMode = false;
|
|
590
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
535
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
591
536
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
592
537
|
let i2 = 0;
|
|
593
538
|
let elm;
|
|
@@ -601,6 +546,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
601
546
|
{
|
|
602
547
|
updateElement(null, newVNode2, isSvgMode);
|
|
603
548
|
}
|
|
549
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
550
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
551
|
+
}
|
|
604
552
|
if (newVNode2.$children$) {
|
|
605
553
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
606
554
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -730,9 +678,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
730
678
|
if (!isInitialRender) {
|
|
731
679
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
732
680
|
}
|
|
733
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
734
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
735
|
-
}
|
|
736
681
|
return true;
|
|
737
682
|
}
|
|
738
683
|
return false;
|
|
@@ -755,10 +700,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
755
700
|
elm.textContent = "";
|
|
756
701
|
}
|
|
757
702
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
758
|
-
} else if (
|
|
759
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
760
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
761
|
-
) {
|
|
703
|
+
} else if (oldChildren !== null) {
|
|
762
704
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
763
705
|
}
|
|
764
706
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -772,9 +714,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
772
714
|
}
|
|
773
715
|
};
|
|
774
716
|
var insertBefore = (parent, newNode, reference) => {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
}
|
|
717
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
718
|
+
return inserted;
|
|
778
719
|
};
|
|
779
720
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
780
721
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -799,21 +740,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
799
740
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
800
741
|
hostRef.$vnode$ = rootVnode;
|
|
801
742
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
802
|
-
|
|
743
|
+
{
|
|
744
|
+
scopeId = hostElm["s-sc"];
|
|
745
|
+
}
|
|
746
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
803
747
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
804
748
|
};
|
|
805
749
|
|
|
806
750
|
// src/runtime/update-component.ts
|
|
807
751
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
808
752
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
809
|
-
|
|
810
|
-
new Promise(
|
|
811
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
812
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
813
|
-
r();
|
|
814
|
-
}
|
|
815
|
-
)
|
|
816
|
-
);
|
|
753
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
817
754
|
}
|
|
818
755
|
};
|
|
819
756
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -842,16 +779,16 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
842
779
|
{
|
|
843
780
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
844
781
|
if (hostRef.$queuedListeners$) {
|
|
845
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
782
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
846
783
|
hostRef.$queuedListeners$ = void 0;
|
|
847
784
|
}
|
|
848
785
|
}
|
|
849
786
|
{
|
|
850
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
787
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
851
788
|
}
|
|
852
789
|
}
|
|
853
790
|
{
|
|
854
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"
|
|
791
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
855
792
|
}
|
|
856
793
|
endSchedule();
|
|
857
794
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -919,7 +856,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
919
856
|
const instance = hostRef.$lazyInstance$ ;
|
|
920
857
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
921
858
|
{
|
|
922
|
-
safeCall(instance, "componentDidRender"
|
|
859
|
+
safeCall(instance, "componentDidRender");
|
|
923
860
|
}
|
|
924
861
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
925
862
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -948,14 +885,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
948
885
|
}
|
|
949
886
|
};
|
|
950
887
|
var appDidLoad = (who) => {
|
|
888
|
+
{
|
|
889
|
+
addHydratedFlag(doc.documentElement);
|
|
890
|
+
}
|
|
951
891
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
952
892
|
};
|
|
953
|
-
var safeCall = (instance, method, arg
|
|
893
|
+
var safeCall = (instance, method, arg) => {
|
|
954
894
|
if (instance && instance[method]) {
|
|
955
895
|
try {
|
|
956
896
|
return instance[method](arg);
|
|
957
897
|
} catch (e) {
|
|
958
|
-
consoleError(e
|
|
898
|
+
consoleError(e);
|
|
959
899
|
}
|
|
960
900
|
}
|
|
961
901
|
return void 0;
|
|
@@ -998,68 +938,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
998
938
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
999
939
|
members.map(([memberName, [memberFlags]]) => {
|
|
1000
940
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1001
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1002
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1003
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1004
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1005
|
-
Object.defineProperty(prototype, memberName, {
|
|
1006
|
-
get() {
|
|
1007
|
-
{
|
|
1008
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1009
|
-
return getValue(this, memberName);
|
|
1010
|
-
}
|
|
1011
|
-
const ref = getHostRef(this);
|
|
1012
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1013
|
-
if (!instance) return;
|
|
1014
|
-
return instance[memberName];
|
|
1015
|
-
}
|
|
1016
|
-
},
|
|
1017
|
-
configurable: true,
|
|
1018
|
-
enumerable: true
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
941
|
Object.defineProperty(prototype, memberName, {
|
|
942
|
+
get() {
|
|
943
|
+
return getValue(this, memberName);
|
|
944
|
+
},
|
|
1022
945
|
set(newValue) {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1028
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1029
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1030
|
-
}
|
|
1031
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1032
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1033
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1034
|
-
return;
|
|
1035
|
-
}
|
|
1036
|
-
{
|
|
1037
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1038
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1039
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1040
|
-
ref.$onReadyPromise$.then(() => {
|
|
1041
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1042
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1043
|
-
}
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
return;
|
|
1047
|
-
}
|
|
1048
|
-
const setterSetVal = () => {
|
|
1049
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1050
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1051
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1052
|
-
}
|
|
1053
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1054
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1055
|
-
};
|
|
1056
|
-
if (ref.$lazyInstance$) {
|
|
1057
|
-
setterSetVal();
|
|
1058
|
-
} else {
|
|
1059
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
946
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
947
|
+
},
|
|
948
|
+
configurable: true,
|
|
949
|
+
enumerable: true
|
|
1063
950
|
});
|
|
1064
951
|
}
|
|
1065
952
|
});
|
|
@@ -1069,11 +956,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1069
956
|
plt.jmp(() => {
|
|
1070
957
|
var _a2;
|
|
1071
958
|
const propName = attrNameToPropName.get(attrName);
|
|
1072
|
-
if (this.hasOwnProperty(propName)
|
|
959
|
+
if (this.hasOwnProperty(propName)) {
|
|
1073
960
|
newValue = this[propName];
|
|
1074
961
|
delete this[propName];
|
|
1075
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1076
|
-
this[propName] == newValue) {
|
|
962
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1077
963
|
return;
|
|
1078
964
|
} else if (propName == null) {
|
|
1079
965
|
const hostRef = getHostRef(this);
|
|
@@ -1089,11 +975,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1089
975
|
}
|
|
1090
976
|
return;
|
|
1091
977
|
}
|
|
1092
|
-
|
|
1093
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1094
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1095
|
-
this[propName] = newValue;
|
|
1096
|
-
}
|
|
978
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1097
979
|
});
|
|
1098
980
|
};
|
|
1099
981
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1122,7 +1004,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1122
1004
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1123
1005
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1124
1006
|
if (bundleId) {
|
|
1125
|
-
const CstrImport = loadModule(cmpMeta
|
|
1007
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1126
1008
|
if (CstrImport && "then" in CstrImport) {
|
|
1127
1009
|
const endLoad = uniqueTime();
|
|
1128
1010
|
Cstr = await CstrImport;
|
|
@@ -1144,13 +1026,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1144
1026
|
try {
|
|
1145
1027
|
new Cstr(hostRef);
|
|
1146
1028
|
} catch (e) {
|
|
1147
|
-
consoleError(e
|
|
1029
|
+
consoleError(e);
|
|
1148
1030
|
}
|
|
1149
1031
|
{
|
|
1150
1032
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1151
1033
|
}
|
|
1152
1034
|
endNewInstance();
|
|
1153
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1035
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1154
1036
|
} else {
|
|
1155
1037
|
Cstr = elm.constructor;
|
|
1156
1038
|
const cmpTag = elm.localName;
|
|
@@ -1177,9 +1059,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1177
1059
|
schedule();
|
|
1178
1060
|
}
|
|
1179
1061
|
};
|
|
1180
|
-
var fireConnectedCallback = (instance
|
|
1062
|
+
var fireConnectedCallback = (instance) => {
|
|
1181
1063
|
{
|
|
1182
|
-
safeCall(instance, "connectedCallback"
|
|
1064
|
+
safeCall(instance, "connectedCallback");
|
|
1183
1065
|
}
|
|
1184
1066
|
};
|
|
1185
1067
|
|
|
@@ -1215,15 +1097,15 @@ var connectedCallback = (elm) => {
|
|
|
1215
1097
|
} else {
|
|
1216
1098
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1217
1099
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1218
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1100
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1219
1101
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1220
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1102
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1221
1103
|
}
|
|
1222
1104
|
}
|
|
1223
1105
|
endConnected();
|
|
1224
1106
|
}
|
|
1225
1107
|
};
|
|
1226
|
-
var disconnectInstance = (instance
|
|
1108
|
+
var disconnectInstance = (instance) => {
|
|
1227
1109
|
};
|
|
1228
1110
|
var disconnectedCallback = async (elm) => {
|
|
1229
1111
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1238,12 +1120,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1238
1120
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1239
1121
|
}
|
|
1240
1122
|
}
|
|
1241
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1242
|
-
rootAppliedStyles.delete(elm);
|
|
1243
|
-
}
|
|
1244
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1245
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1246
|
-
}
|
|
1247
1123
|
};
|
|
1248
1124
|
|
|
1249
1125
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1324,17 +1200,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1324
1200
|
}
|
|
1325
1201
|
disconnectedCallback() {
|
|
1326
1202
|
plt.jmp(() => disconnectedCallback(this));
|
|
1327
|
-
plt.raf(() => {
|
|
1328
|
-
var _a3;
|
|
1329
|
-
const hostRef = getHostRef(this);
|
|
1330
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1331
|
-
if (i2 > -1) {
|
|
1332
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1333
|
-
}
|
|
1334
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1335
|
-
delete hostRef.$vnode$.$elm$;
|
|
1336
|
-
}
|
|
1337
|
-
});
|
|
1338
1203
|
}
|
|
1339
1204
|
componentOnReady() {
|
|
1340
1205
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1398,7 +1263,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1398
1263
|
}
|
|
1399
1264
|
}
|
|
1400
1265
|
} catch (e) {
|
|
1401
|
-
consoleError(e
|
|
1266
|
+
consoleError(e);
|
|
1402
1267
|
}
|
|
1403
1268
|
};
|
|
1404
1269
|
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-d192649c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|