@everymatrix/casino-play-random-game 1.56.0 → 1.56.3
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-play-random-game/casino-play-random-game.esm.js +1 -1
- package/dist/casino-play-random-game/p-2af16b90.entry.js +1 -0
- package/dist/casino-play-random-game/p-b74b1c99.js +2 -0
- package/dist/cjs/casino-play-random-game.cjs.entry.js +18 -38
- package/dist/cjs/casino-play-random-game.cjs.js +2 -2
- package/dist/cjs/{index-a0c0d6c2.js → index-1046d63d.js} +73 -208
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-play-random-game/casino-play-random-game.js +17 -59
- package/dist/esm/casino-play-random-game.entry.js +18 -38
- package/dist/esm/casino-play-random-game.js +3 -3
- package/dist/esm/{index-29915e18.js → index-510a6ba4.js} +73 -208
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/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-play-random-game/p-aafe302e.js +0 -2
- package/dist/casino-play-random-game/p-ca888ed9.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.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-play-random-game/.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-play-random-game/.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 = 'casino-play-random-game';
|
|
24
|
-
const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
24
|
+
const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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: false, 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: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, 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/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 : {};
|
|
@@ -161,6 +150,12 @@ var flush = () => {
|
|
|
161
150
|
};
|
|
162
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
163
152
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
+
|
|
154
|
+
// src/utils/constants.ts
|
|
155
|
+
var EMPTY_OBJ = {};
|
|
156
|
+
|
|
157
|
+
// src/utils/helpers.ts
|
|
158
|
+
var isDef = (v) => v != null;
|
|
164
159
|
var isComplexType = (o) => {
|
|
165
160
|
o = typeof o;
|
|
166
161
|
return o === "object" || o === "function";
|
|
@@ -343,40 +338,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
343
338
|
}
|
|
344
339
|
if (!appliedStyles.has(scopeId2)) {
|
|
345
340
|
{
|
|
346
|
-
styleElm =
|
|
341
|
+
styleElm = doc.createElement("style");
|
|
347
342
|
styleElm.innerHTML = style;
|
|
348
343
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
349
344
|
if (nonce != null) {
|
|
350
345
|
styleElm.setAttribute("nonce", nonce);
|
|
351
346
|
}
|
|
352
|
-
|
|
353
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
354
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
355
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
356
|
-
styleContainerNode.insertBefore(
|
|
357
|
-
styleElm,
|
|
358
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
359
|
-
);
|
|
360
|
-
} else if ("host" in styleContainerNode) {
|
|
361
|
-
if (supportsConstructableStylesheets) {
|
|
362
|
-
const stylesheet = new CSSStyleSheet();
|
|
363
|
-
stylesheet.replaceSync(style);
|
|
364
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
365
|
-
} else {
|
|
366
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
367
|
-
if (existingStyleContainer) {
|
|
368
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
369
|
-
} else {
|
|
370
|
-
styleContainerNode.prepend(styleElm);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
} else {
|
|
374
|
-
styleContainerNode.append(styleElm);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
378
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
379
|
-
}
|
|
347
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
380
348
|
}
|
|
381
349
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
382
350
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -399,25 +367,23 @@ var attachStyles = (hostRef) => {
|
|
|
399
367
|
const scopeId2 = addStyle(
|
|
400
368
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
401
369
|
cmpMeta);
|
|
402
|
-
if (
|
|
370
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
403
371
|
elm["s-sc"] = scopeId2;
|
|
404
372
|
elm.classList.add(scopeId2 + "-h");
|
|
405
373
|
}
|
|
406
374
|
endAttachStyles();
|
|
407
375
|
};
|
|
408
376
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
409
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
377
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
410
378
|
if (oldValue !== newValue) {
|
|
411
379
|
let isProp = isMemberInElement(elm, memberName);
|
|
412
380
|
let ln = memberName.toLowerCase();
|
|
413
381
|
if (memberName === "class") {
|
|
414
382
|
const classList = elm.classList;
|
|
415
383
|
const oldClasses = parseClassList(oldValue);
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
420
|
-
}
|
|
384
|
+
const newClasses = parseClassList(newValue);
|
|
385
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
386
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
421
387
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
422
388
|
if (newValue) {
|
|
423
389
|
newValue(elm);
|
|
@@ -449,13 +415,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
449
415
|
if (memberName === "list") {
|
|
450
416
|
isProp = false;
|
|
451
417
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
452
|
-
|
|
453
|
-
elm[memberName] = n;
|
|
454
|
-
} else {
|
|
455
|
-
elm.setAttribute(memberName, n);
|
|
456
|
-
}
|
|
418
|
+
elm[memberName] = n;
|
|
457
419
|
}
|
|
458
|
-
} else
|
|
420
|
+
} else {
|
|
459
421
|
elm[memberName] = newValue;
|
|
460
422
|
}
|
|
461
423
|
} catch (e) {
|
|
@@ -477,44 +439,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
477
439
|
}
|
|
478
440
|
};
|
|
479
441
|
var parseClassListRegex = /\s/;
|
|
480
|
-
var parseClassList = (value) =>
|
|
481
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
482
|
-
value = value.baseVal;
|
|
483
|
-
}
|
|
484
|
-
if (!value || typeof value !== "string") {
|
|
485
|
-
return [];
|
|
486
|
-
}
|
|
487
|
-
return value.split(parseClassListRegex);
|
|
488
|
-
};
|
|
442
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
489
443
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
490
444
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
491
445
|
|
|
492
446
|
// src/runtime/vdom/update-element.ts
|
|
493
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
447
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
494
448
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
495
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
496
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
449
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
450
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
497
451
|
{
|
|
498
452
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
499
453
|
if (!(memberName in newVnodeAttrs)) {
|
|
500
|
-
setAccessor(
|
|
501
|
-
elm,
|
|
502
|
-
memberName,
|
|
503
|
-
oldVnodeAttrs[memberName],
|
|
504
|
-
void 0,
|
|
505
|
-
isSvgMode2,
|
|
506
|
-
newVnode.$flags$);
|
|
454
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
507
455
|
}
|
|
508
456
|
}
|
|
509
457
|
}
|
|
510
458
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
511
|
-
setAccessor(
|
|
512
|
-
elm,
|
|
513
|
-
memberName,
|
|
514
|
-
oldVnodeAttrs[memberName],
|
|
515
|
-
newVnodeAttrs[memberName],
|
|
516
|
-
isSvgMode2,
|
|
517
|
-
newVnode.$flags$);
|
|
459
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
518
460
|
}
|
|
519
461
|
};
|
|
520
462
|
function sortedAttrNames(attrNames) {
|
|
@@ -526,10 +468,13 @@ function sortedAttrNames(attrNames) {
|
|
|
526
468
|
attrNames
|
|
527
469
|
);
|
|
528
470
|
}
|
|
471
|
+
|
|
472
|
+
// src/runtime/vdom/vdom-render.ts
|
|
473
|
+
var scopeId;
|
|
529
474
|
var hostTagName;
|
|
530
475
|
var useNativeShadowDom = false;
|
|
531
476
|
var isSvgMode = false;
|
|
532
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
477
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
533
478
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
534
479
|
let i2 = 0;
|
|
535
480
|
let elm;
|
|
@@ -543,6 +488,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
543
488
|
{
|
|
544
489
|
updateElement(null, newVNode2, isSvgMode);
|
|
545
490
|
}
|
|
491
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
492
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
493
|
+
}
|
|
546
494
|
if (newVNode2.$children$) {
|
|
547
495
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
548
496
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -672,9 +620,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
672
620
|
if (!isInitialRender) {
|
|
673
621
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
674
622
|
}
|
|
675
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
676
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
677
|
-
}
|
|
678
623
|
return true;
|
|
679
624
|
}
|
|
680
625
|
return false;
|
|
@@ -697,10 +642,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
697
642
|
elm.textContent = "";
|
|
698
643
|
}
|
|
699
644
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
700
|
-
} else if (
|
|
701
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
702
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
703
|
-
) {
|
|
645
|
+
} else if (oldChildren !== null) {
|
|
704
646
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
705
647
|
}
|
|
706
648
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -714,9 +656,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
714
656
|
}
|
|
715
657
|
};
|
|
716
658
|
var insertBefore = (parent, newNode, reference) => {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
}
|
|
659
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
660
|
+
return inserted;
|
|
720
661
|
};
|
|
721
662
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
722
663
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -741,21 +682,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
741
682
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
742
683
|
hostRef.$vnode$ = rootVnode;
|
|
743
684
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
744
|
-
|
|
685
|
+
{
|
|
686
|
+
scopeId = hostElm["s-sc"];
|
|
687
|
+
}
|
|
688
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
745
689
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
746
690
|
};
|
|
747
691
|
|
|
748
692
|
// src/runtime/update-component.ts
|
|
749
693
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
750
694
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
751
|
-
|
|
752
|
-
new Promise(
|
|
753
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
754
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
755
|
-
r();
|
|
756
|
-
}
|
|
757
|
-
)
|
|
758
|
-
);
|
|
695
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
759
696
|
}
|
|
760
697
|
};
|
|
761
698
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -782,7 +719,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
782
719
|
let maybePromise;
|
|
783
720
|
if (isInitialLoad) {
|
|
784
721
|
{
|
|
785
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
722
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
786
723
|
}
|
|
787
724
|
}
|
|
788
725
|
endSchedule();
|
|
@@ -856,7 +793,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
856
793
|
addHydratedFlag(elm);
|
|
857
794
|
}
|
|
858
795
|
{
|
|
859
|
-
safeCall(instance, "componentDidLoad"
|
|
796
|
+
safeCall(instance, "componentDidLoad");
|
|
860
797
|
}
|
|
861
798
|
endPostUpdate();
|
|
862
799
|
{
|
|
@@ -880,14 +817,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
880
817
|
}
|
|
881
818
|
};
|
|
882
819
|
var appDidLoad = (who) => {
|
|
820
|
+
{
|
|
821
|
+
addHydratedFlag(doc.documentElement);
|
|
822
|
+
}
|
|
883
823
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
884
824
|
};
|
|
885
|
-
var safeCall = (instance, method, arg
|
|
825
|
+
var safeCall = (instance, method, arg) => {
|
|
886
826
|
if (instance && instance[method]) {
|
|
887
827
|
try {
|
|
888
828
|
return instance[method](arg);
|
|
889
829
|
} catch (e) {
|
|
890
|
-
consoleError(e
|
|
830
|
+
consoleError(e);
|
|
891
831
|
}
|
|
892
832
|
}
|
|
893
833
|
return void 0;
|
|
@@ -946,68 +886,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
946
886
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
947
887
|
members.map(([memberName, [memberFlags]]) => {
|
|
948
888
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
949
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
950
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
951
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
952
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
953
|
-
Object.defineProperty(prototype, memberName, {
|
|
954
|
-
get() {
|
|
955
|
-
{
|
|
956
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
957
|
-
return getValue(this, memberName);
|
|
958
|
-
}
|
|
959
|
-
const ref = getHostRef(this);
|
|
960
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
961
|
-
if (!instance) return;
|
|
962
|
-
return instance[memberName];
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
configurable: true,
|
|
966
|
-
enumerable: true
|
|
967
|
-
});
|
|
968
|
-
}
|
|
969
889
|
Object.defineProperty(prototype, memberName, {
|
|
890
|
+
get() {
|
|
891
|
+
return getValue(this, memberName);
|
|
892
|
+
},
|
|
970
893
|
set(newValue) {
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
976
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
977
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
978
|
-
}
|
|
979
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
980
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
981
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
982
|
-
return;
|
|
983
|
-
}
|
|
984
|
-
{
|
|
985
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
986
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
987
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
988
|
-
ref.$onReadyPromise$.then(() => {
|
|
989
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
990
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
991
|
-
}
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
|
-
return;
|
|
995
|
-
}
|
|
996
|
-
const setterSetVal = () => {
|
|
997
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
998
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
999
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1000
|
-
}
|
|
1001
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1002
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1003
|
-
};
|
|
1004
|
-
if (ref.$lazyInstance$) {
|
|
1005
|
-
setterSetVal();
|
|
1006
|
-
} else {
|
|
1007
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
894
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
895
|
+
},
|
|
896
|
+
configurable: true,
|
|
897
|
+
enumerable: true
|
|
1011
898
|
});
|
|
1012
899
|
}
|
|
1013
900
|
});
|
|
@@ -1017,11 +904,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1017
904
|
plt.jmp(() => {
|
|
1018
905
|
var _a2;
|
|
1019
906
|
const propName = attrNameToPropName.get(attrName);
|
|
1020
|
-
if (this.hasOwnProperty(propName)
|
|
907
|
+
if (this.hasOwnProperty(propName)) {
|
|
1021
908
|
newValue = this[propName];
|
|
1022
909
|
delete this[propName];
|
|
1023
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1024
|
-
this[propName] == newValue) {
|
|
910
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1025
911
|
return;
|
|
1026
912
|
} else if (propName == null) {
|
|
1027
913
|
const hostRef = getHostRef(this);
|
|
@@ -1037,11 +923,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1037
923
|
}
|
|
1038
924
|
return;
|
|
1039
925
|
}
|
|
1040
|
-
|
|
1041
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1042
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1043
|
-
this[propName] = newValue;
|
|
1044
|
-
}
|
|
926
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1045
927
|
});
|
|
1046
928
|
};
|
|
1047
929
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1070,7 +952,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1070
952
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1071
953
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1072
954
|
if (bundleId) {
|
|
1073
|
-
const CstrImport = loadModule(cmpMeta
|
|
955
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1074
956
|
if (CstrImport && "then" in CstrImport) {
|
|
1075
957
|
const endLoad = uniqueTime();
|
|
1076
958
|
Cstr = await CstrImport;
|
|
@@ -1095,7 +977,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1095
977
|
try {
|
|
1096
978
|
new Cstr(hostRef);
|
|
1097
979
|
} catch (e) {
|
|
1098
|
-
consoleError(e
|
|
980
|
+
consoleError(e);
|
|
1099
981
|
}
|
|
1100
982
|
{
|
|
1101
983
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1104,7 +986,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1104
986
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1105
987
|
}
|
|
1106
988
|
endNewInstance();
|
|
1107
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
989
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1108
990
|
} else {
|
|
1109
991
|
Cstr = elm.constructor;
|
|
1110
992
|
const cmpTag = elm.localName;
|
|
@@ -1131,9 +1013,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1131
1013
|
schedule();
|
|
1132
1014
|
}
|
|
1133
1015
|
};
|
|
1134
|
-
var fireConnectedCallback = (instance
|
|
1016
|
+
var fireConnectedCallback = (instance) => {
|
|
1135
1017
|
{
|
|
1136
|
-
safeCall(instance, "connectedCallback"
|
|
1018
|
+
safeCall(instance, "connectedCallback");
|
|
1137
1019
|
}
|
|
1138
1020
|
};
|
|
1139
1021
|
|
|
@@ -1168,34 +1050,28 @@ var connectedCallback = (elm) => {
|
|
|
1168
1050
|
}
|
|
1169
1051
|
} else {
|
|
1170
1052
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1171
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1053
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1172
1054
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1173
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1055
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1174
1056
|
}
|
|
1175
1057
|
}
|
|
1176
1058
|
endConnected();
|
|
1177
1059
|
}
|
|
1178
1060
|
};
|
|
1179
|
-
var disconnectInstance = (instance
|
|
1061
|
+
var disconnectInstance = (instance) => {
|
|
1180
1062
|
{
|
|
1181
|
-
safeCall(instance, "disconnectedCallback"
|
|
1063
|
+
safeCall(instance, "disconnectedCallback");
|
|
1182
1064
|
}
|
|
1183
1065
|
};
|
|
1184
1066
|
var disconnectedCallback = async (elm) => {
|
|
1185
1067
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1186
1068
|
const hostRef = getHostRef(elm);
|
|
1187
1069
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1188
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1070
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1189
1071
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1190
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1072
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1191
1073
|
}
|
|
1192
1074
|
}
|
|
1193
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1194
|
-
rootAppliedStyles.delete(elm);
|
|
1195
|
-
}
|
|
1196
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1197
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1198
|
-
}
|
|
1199
1075
|
};
|
|
1200
1076
|
|
|
1201
1077
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1276,17 +1152,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1276
1152
|
}
|
|
1277
1153
|
disconnectedCallback() {
|
|
1278
1154
|
plt.jmp(() => disconnectedCallback(this));
|
|
1279
|
-
plt.raf(() => {
|
|
1280
|
-
var _a3;
|
|
1281
|
-
const hostRef = getHostRef(this);
|
|
1282
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1283
|
-
if (i2 > -1) {
|
|
1284
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1285
|
-
}
|
|
1286
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1287
|
-
delete hostRef.$vnode$.$elm$;
|
|
1288
|
-
}
|
|
1289
|
-
});
|
|
1290
1155
|
}
|
|
1291
1156
|
componentOnReady() {
|
|
1292
1157
|
return getHostRef(this).$onReadyPromise$;
|
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-1046d63d.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|