@everymatrix/lottery-bullet 1.53.0 → 1.53.11
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-a0006003.js → index-ff716414.js} +160 -65
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-bullet.cjs.entry.js +26 -8
- package/dist/cjs/lottery-bullet.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lottery-bullet/lottery-bullet.js +37 -7
- package/dist/esm/{index-a2e76fac.js → index-27c984cc.js} +160 -65
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-bullet.entry.js +26 -8
- package/dist/esm/lottery-bullet.js +3 -3
- package/dist/lottery-bullet/lottery-bullet.esm.js +1 -1
- package/dist/lottery-bullet/p-09f0d679.js +2 -0
- package/dist/lottery-bullet/{p-27f9105f.entry.js → p-fea3ca6a.entry.js} +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/lottery-bullet/p-464d66b0.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.dev.d.ts +0 -2
|
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'lottery-bullet';
|
|
24
|
-
const BUILD = /* lottery-bullet */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, 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: true, 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: 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: false };
|
|
24
|
+
const BUILD = /* lottery-bullet */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, 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: true, 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: 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: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.25.1 | 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 isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
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";
|
|
@@ -356,7 +361,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
356
361
|
}
|
|
357
362
|
if (!appliedStyles.has(scopeId2)) {
|
|
358
363
|
{
|
|
359
|
-
styleElm = doc.createElement("style");
|
|
364
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
360
365
|
styleElm.innerHTML = style;
|
|
361
366
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
362
367
|
if (nonce != null) {
|
|
@@ -366,7 +371,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
366
371
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
367
372
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
368
373
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
369
|
-
styleContainerNode.insertBefore(
|
|
374
|
+
styleContainerNode.insertBefore(
|
|
375
|
+
styleElm,
|
|
376
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
377
|
+
);
|
|
370
378
|
} else if ("host" in styleContainerNode) {
|
|
371
379
|
if (supportsConstructableStylesheets) {
|
|
372
380
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -416,16 +424,18 @@ var attachStyles = (hostRef) => {
|
|
|
416
424
|
endAttachStyles();
|
|
417
425
|
};
|
|
418
426
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
419
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
427
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
420
428
|
if (oldValue !== newValue) {
|
|
421
429
|
let isProp = isMemberInElement(elm, memberName);
|
|
422
430
|
let ln = memberName.toLowerCase();
|
|
423
431
|
if (memberName === "class") {
|
|
424
432
|
const classList = elm.classList;
|
|
425
433
|
const oldClasses = parseClassList(oldValue);
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
434
|
+
let newClasses = parseClassList(newValue);
|
|
435
|
+
{
|
|
436
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
437
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
438
|
+
}
|
|
429
439
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
430
440
|
if (newValue) {
|
|
431
441
|
newValue(elm);
|
|
@@ -463,7 +473,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
463
473
|
elm.setAttribute(memberName, n);
|
|
464
474
|
}
|
|
465
475
|
}
|
|
466
|
-
} else {
|
|
476
|
+
} else if (elm[memberName] !== newValue) {
|
|
467
477
|
elm[memberName] = newValue;
|
|
468
478
|
}
|
|
469
479
|
} catch (e) {
|
|
@@ -485,24 +495,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
485
495
|
}
|
|
486
496
|
};
|
|
487
497
|
var parseClassListRegex = /\s/;
|
|
488
|
-
var parseClassList = (value) =>
|
|
498
|
+
var parseClassList = (value) => {
|
|
499
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
500
|
+
value = value.baseVal;
|
|
501
|
+
}
|
|
502
|
+
if (!value || typeof value !== "string") {
|
|
503
|
+
return [];
|
|
504
|
+
}
|
|
505
|
+
return value.split(parseClassListRegex);
|
|
506
|
+
};
|
|
489
507
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
490
508
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
491
509
|
|
|
492
510
|
// src/runtime/vdom/update-element.ts
|
|
493
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
511
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
494
512
|
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$ ||
|
|
513
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
514
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
497
515
|
{
|
|
498
516
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
499
517
|
if (!(memberName in newVnodeAttrs)) {
|
|
500
|
-
setAccessor(
|
|
518
|
+
setAccessor(
|
|
519
|
+
elm,
|
|
520
|
+
memberName,
|
|
521
|
+
oldVnodeAttrs[memberName],
|
|
522
|
+
void 0,
|
|
523
|
+
isSvgMode2,
|
|
524
|
+
newVnode.$flags$);
|
|
501
525
|
}
|
|
502
526
|
}
|
|
503
527
|
}
|
|
504
528
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
505
|
-
setAccessor(
|
|
529
|
+
setAccessor(
|
|
530
|
+
elm,
|
|
531
|
+
memberName,
|
|
532
|
+
oldVnodeAttrs[memberName],
|
|
533
|
+
newVnodeAttrs[memberName],
|
|
534
|
+
isSvgMode2,
|
|
535
|
+
newVnode.$flags$);
|
|
506
536
|
}
|
|
507
537
|
};
|
|
508
538
|
function sortedAttrNames(attrNames) {
|
|
@@ -514,13 +544,10 @@ function sortedAttrNames(attrNames) {
|
|
|
514
544
|
attrNames
|
|
515
545
|
);
|
|
516
546
|
}
|
|
517
|
-
|
|
518
|
-
// src/runtime/vdom/vdom-render.ts
|
|
519
|
-
var scopeId;
|
|
520
547
|
var hostTagName;
|
|
521
548
|
var useNativeShadowDom = false;
|
|
522
549
|
var isSvgMode = false;
|
|
523
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
550
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
524
551
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
525
552
|
let i2 = 0;
|
|
526
553
|
let elm;
|
|
@@ -534,11 +561,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
534
561
|
{
|
|
535
562
|
updateElement(null, newVNode2, isSvgMode);
|
|
536
563
|
}
|
|
537
|
-
const rootNode = elm.getRootNode();
|
|
538
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
539
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
540
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
541
|
-
}
|
|
542
564
|
if (newVNode2.$children$) {
|
|
543
565
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
544
566
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -668,6 +690,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
668
690
|
if (!isInitialRender) {
|
|
669
691
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
670
692
|
}
|
|
693
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
694
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
695
|
+
}
|
|
671
696
|
return true;
|
|
672
697
|
}
|
|
673
698
|
return false;
|
|
@@ -707,8 +732,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
707
732
|
}
|
|
708
733
|
};
|
|
709
734
|
var insertBefore = (parent, newNode, reference) => {
|
|
710
|
-
|
|
711
|
-
|
|
735
|
+
{
|
|
736
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
737
|
+
}
|
|
712
738
|
};
|
|
713
739
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
714
740
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -733,9 +759,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
733
759
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
734
760
|
hostRef.$vnode$ = rootVnode;
|
|
735
761
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
736
|
-
{
|
|
737
|
-
scopeId = hostElm["s-sc"];
|
|
738
|
-
}
|
|
739
762
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
740
763
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
741
764
|
};
|
|
@@ -743,7 +766,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
743
766
|
// src/runtime/update-component.ts
|
|
744
767
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
745
768
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
746
|
-
ancestorComponent["s-p"].push(
|
|
769
|
+
const index = ancestorComponent["s-p"].push(
|
|
770
|
+
new Promise(
|
|
771
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
772
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
773
|
+
r();
|
|
774
|
+
}
|
|
775
|
+
)
|
|
776
|
+
);
|
|
747
777
|
}
|
|
748
778
|
};
|
|
749
779
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -834,7 +864,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
834
864
|
const instance = hostRef.$lazyInstance$ ;
|
|
835
865
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
836
866
|
{
|
|
837
|
-
safeCall(instance, "componentDidRender");
|
|
867
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
838
868
|
}
|
|
839
869
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
840
870
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -868,12 +898,12 @@ var appDidLoad = (who) => {
|
|
|
868
898
|
}
|
|
869
899
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
870
900
|
};
|
|
871
|
-
var safeCall = (instance, method, arg) => {
|
|
901
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
872
902
|
if (instance && instance[method]) {
|
|
873
903
|
try {
|
|
874
904
|
return instance[method](arg);
|
|
875
905
|
} catch (e) {
|
|
876
|
-
consoleError(e);
|
|
906
|
+
consoleError(e, elm);
|
|
877
907
|
}
|
|
878
908
|
}
|
|
879
909
|
return void 0;
|
|
@@ -916,15 +946,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
916
946
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
917
947
|
members.map(([memberName, [memberFlags]]) => {
|
|
918
948
|
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
|
+
}
|
|
919
969
|
Object.defineProperty(prototype, memberName, {
|
|
920
|
-
get() {
|
|
921
|
-
return getValue(this, memberName);
|
|
922
|
-
},
|
|
923
970
|
set(newValue) {
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
971
|
+
const ref = getHostRef(this);
|
|
972
|
+
if (origSetter) {
|
|
973
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
974
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
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
|
+
}
|
|
928
1011
|
});
|
|
929
1012
|
}
|
|
930
1013
|
});
|
|
@@ -934,7 +1017,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
934
1017
|
plt.jmp(() => {
|
|
935
1018
|
var _a2;
|
|
936
1019
|
const propName = attrNameToPropName.get(attrName);
|
|
937
|
-
if (this.hasOwnProperty(propName)) {
|
|
1020
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
938
1021
|
newValue = this[propName];
|
|
939
1022
|
delete this[propName];
|
|
940
1023
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -954,7 +1037,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
954
1037
|
}
|
|
955
1038
|
return;
|
|
956
1039
|
}
|
|
957
|
-
|
|
1040
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1041
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1042
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1043
|
+
this[propName] = newValue;
|
|
1044
|
+
}
|
|
958
1045
|
});
|
|
959
1046
|
};
|
|
960
1047
|
Cstr.observedAttributes = Array.from(
|
|
@@ -981,9 +1068,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
981
1068
|
let Cstr;
|
|
982
1069
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
983
1070
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1071
|
+
{
|
|
1072
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
987
1073
|
if (CstrImport && "then" in CstrImport) {
|
|
988
1074
|
const endLoad = uniqueTime();
|
|
989
1075
|
Cstr = await CstrImport;
|
|
@@ -1005,16 +1091,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1005
1091
|
try {
|
|
1006
1092
|
new Cstr(hostRef);
|
|
1007
1093
|
} catch (e) {
|
|
1008
|
-
consoleError(e);
|
|
1094
|
+
consoleError(e, elm);
|
|
1009
1095
|
}
|
|
1010
1096
|
{
|
|
1011
1097
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1012
1098
|
}
|
|
1013
1099
|
endNewInstance();
|
|
1014
|
-
} else {
|
|
1015
|
-
Cstr = elm.constructor;
|
|
1016
|
-
const cmpTag = elm.localName;
|
|
1017
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1018
1100
|
}
|
|
1019
1101
|
if (Cstr && Cstr.style) {
|
|
1020
1102
|
let style;
|
|
@@ -1037,7 +1119,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1037
1119
|
schedule();
|
|
1038
1120
|
}
|
|
1039
1121
|
};
|
|
1040
|
-
var fireConnectedCallback = (instance) => {
|
|
1122
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1041
1123
|
};
|
|
1042
1124
|
|
|
1043
1125
|
// src/runtime/connected-callback.ts
|
|
@@ -1077,7 +1159,7 @@ var connectedCallback = (elm) => {
|
|
|
1077
1159
|
endConnected();
|
|
1078
1160
|
}
|
|
1079
1161
|
};
|
|
1080
|
-
var disconnectInstance = (instance) => {
|
|
1162
|
+
var disconnectInstance = (instance, elm) => {
|
|
1081
1163
|
};
|
|
1082
1164
|
var disconnectedCallback = async (elm) => {
|
|
1083
1165
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1086,6 +1168,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1086
1168
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1087
1169
|
}
|
|
1088
1170
|
}
|
|
1171
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1172
|
+
rootAppliedStyles.delete(elm);
|
|
1173
|
+
}
|
|
1174
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1175
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1176
|
+
}
|
|
1089
1177
|
};
|
|
1090
1178
|
|
|
1091
1179
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1162,6 +1250,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1162
1250
|
}
|
|
1163
1251
|
disconnectedCallback() {
|
|
1164
1252
|
plt.jmp(() => disconnectedCallback(this));
|
|
1253
|
+
plt.raf(() => {
|
|
1254
|
+
var _a3;
|
|
1255
|
+
const hostRef = getHostRef(this);
|
|
1256
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1257
|
+
delete hostRef.$vnode$.$elm$;
|
|
1258
|
+
}
|
|
1259
|
+
});
|
|
1165
1260
|
}
|
|
1166
1261
|
componentOnReady() {
|
|
1167
1262
|
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-ff716414.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -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-ff716414.js');
|
|
6
6
|
|
|
7
7
|
const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:var(--emw--button-text-color, #000);display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-50, #F1F1F1) 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--button-border-color, #00958f)}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-gray-100, #D4D4D4);border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.Bonus{background:var(--emw--color-error, #FF3D00)}";
|
|
8
8
|
const LotteryBulletStyle0 = lotteryBulletCss;
|
|
@@ -11,6 +11,31 @@ const LotteryBullet = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
|
|
14
|
+
/**
|
|
15
|
+
* Value of the bullet
|
|
16
|
+
*/
|
|
17
|
+
this.value = '0';
|
|
18
|
+
/**
|
|
19
|
+
* Marks if the bullet should be selectable
|
|
20
|
+
*/
|
|
21
|
+
this.selectable = true;
|
|
22
|
+
/**
|
|
23
|
+
* Marks if the bullet should be selected
|
|
24
|
+
*/
|
|
25
|
+
this.isSelected = false;
|
|
26
|
+
/**
|
|
27
|
+
* Marks if the number is bonus number.
|
|
28
|
+
*/
|
|
29
|
+
this.isBonus = false;
|
|
30
|
+
/**
|
|
31
|
+
* Client custom styling via string
|
|
32
|
+
*/
|
|
33
|
+
this.clientStyling = '';
|
|
34
|
+
/**
|
|
35
|
+
* Client custom styling via url content
|
|
36
|
+
*/
|
|
37
|
+
this.clientStylingUrlContent = '';
|
|
38
|
+
this.limitStylingAppends = false;
|
|
14
39
|
this.select = () => {
|
|
15
40
|
if (this.selectable) {
|
|
16
41
|
this.isSelected = !this.isSelected;
|
|
@@ -32,13 +57,6 @@ const LotteryBullet = class {
|
|
|
32
57
|
this.stylingContainer.prepend(cssFile);
|
|
33
58
|
}, 1);
|
|
34
59
|
};
|
|
35
|
-
this.value = '0';
|
|
36
|
-
this.selectable = true;
|
|
37
|
-
this.isSelected = false;
|
|
38
|
-
this.isBonus = false;
|
|
39
|
-
this.clientStyling = '';
|
|
40
|
-
this.clientStylingUrlContent = '';
|
|
41
|
-
this.limitStylingAppends = false;
|
|
42
60
|
}
|
|
43
61
|
componentDidRender() {
|
|
44
62
|
// start custom styling area
|
|
@@ -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-ff716414.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.25.1 | 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('lottery-bullet.cjs.js', document.baseURI).href));
|
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class LotteryBullet {
|
|
3
3
|
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Value of the bullet
|
|
6
|
+
*/
|
|
7
|
+
this.value = '0';
|
|
8
|
+
/**
|
|
9
|
+
* Marks if the bullet should be selectable
|
|
10
|
+
*/
|
|
11
|
+
this.selectable = true;
|
|
12
|
+
/**
|
|
13
|
+
* Marks if the bullet should be selected
|
|
14
|
+
*/
|
|
15
|
+
this.isSelected = false;
|
|
16
|
+
/**
|
|
17
|
+
* Marks if the number is bonus number.
|
|
18
|
+
*/
|
|
19
|
+
this.isBonus = false;
|
|
20
|
+
/**
|
|
21
|
+
* Client custom styling via string
|
|
22
|
+
*/
|
|
23
|
+
this.clientStyling = '';
|
|
24
|
+
/**
|
|
25
|
+
* Client custom styling via url content
|
|
26
|
+
*/
|
|
27
|
+
this.clientStylingUrlContent = '';
|
|
28
|
+
this.limitStylingAppends = false;
|
|
4
29
|
this.select = () => {
|
|
5
30
|
if (this.selectable) {
|
|
6
31
|
this.isSelected = !this.isSelected;
|
|
@@ -22,13 +47,6 @@ export class LotteryBullet {
|
|
|
22
47
|
this.stylingContainer.prepend(cssFile);
|
|
23
48
|
}, 1);
|
|
24
49
|
};
|
|
25
|
-
this.value = '0';
|
|
26
|
-
this.selectable = true;
|
|
27
|
-
this.isSelected = false;
|
|
28
|
-
this.isBonus = false;
|
|
29
|
-
this.clientStyling = '';
|
|
30
|
-
this.clientStylingUrlContent = '';
|
|
31
|
-
this.limitStylingAppends = false;
|
|
32
50
|
}
|
|
33
51
|
componentDidRender() {
|
|
34
52
|
// start custom styling area
|
|
@@ -72,6 +90,8 @@ export class LotteryBullet {
|
|
|
72
90
|
"tags": [],
|
|
73
91
|
"text": "Value of the bullet"
|
|
74
92
|
},
|
|
93
|
+
"getter": false,
|
|
94
|
+
"setter": false,
|
|
75
95
|
"attribute": "value",
|
|
76
96
|
"reflect": true,
|
|
77
97
|
"defaultValue": "'0'"
|
|
@@ -90,6 +110,8 @@ export class LotteryBullet {
|
|
|
90
110
|
"tags": [],
|
|
91
111
|
"text": "Marks if the bullet should be selectable"
|
|
92
112
|
},
|
|
113
|
+
"getter": false,
|
|
114
|
+
"setter": false,
|
|
93
115
|
"attribute": "selectable",
|
|
94
116
|
"reflect": true,
|
|
95
117
|
"defaultValue": "true"
|
|
@@ -108,6 +130,8 @@ export class LotteryBullet {
|
|
|
108
130
|
"tags": [],
|
|
109
131
|
"text": "Marks if the bullet should be selected"
|
|
110
132
|
},
|
|
133
|
+
"getter": false,
|
|
134
|
+
"setter": false,
|
|
111
135
|
"attribute": "is-selected",
|
|
112
136
|
"reflect": true,
|
|
113
137
|
"defaultValue": "false"
|
|
@@ -126,6 +150,8 @@ export class LotteryBullet {
|
|
|
126
150
|
"tags": [],
|
|
127
151
|
"text": "Marks if the number is bonus number."
|
|
128
152
|
},
|
|
153
|
+
"getter": false,
|
|
154
|
+
"setter": false,
|
|
129
155
|
"attribute": "is-bonus",
|
|
130
156
|
"reflect": true,
|
|
131
157
|
"defaultValue": "false"
|
|
@@ -144,6 +170,8 @@ export class LotteryBullet {
|
|
|
144
170
|
"tags": [],
|
|
145
171
|
"text": "Client custom styling via string"
|
|
146
172
|
},
|
|
173
|
+
"getter": false,
|
|
174
|
+
"setter": false,
|
|
147
175
|
"attribute": "client-styling",
|
|
148
176
|
"reflect": true,
|
|
149
177
|
"defaultValue": "''"
|
|
@@ -162,6 +190,8 @@ export class LotteryBullet {
|
|
|
162
190
|
"tags": [],
|
|
163
191
|
"text": "Client custom styling via url content"
|
|
164
192
|
},
|
|
193
|
+
"getter": false,
|
|
194
|
+
"setter": false,
|
|
165
195
|
"attribute": "client-styling-url-content",
|
|
166
196
|
"reflect": true,
|
|
167
197
|
"defaultValue": "''"
|