@everymatrix/lottery-game-page 0.0.7 → 0.0.10
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/helper-accordion_13.cjs.entry.js +23492 -0
- package/dist/cjs/helper-pagination.cjs.entry.js +188 -0
- package/dist/cjs/{index-af6d701d.js → index-81cb3b3b.js} +70 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottery-game-page.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +75 -1
- package/dist/components/helper-accordion.js +6 -0
- package/dist/components/helper-accordion2.js +110 -0
- package/dist/components/helper-filters.js +6 -0
- package/dist/components/helper-filters2.js +22347 -0
- package/dist/components/helper-modal.js +6 -0
- package/dist/components/helper-modal2.js +58 -0
- package/dist/components/helper-pagination.js +215 -0
- package/dist/components/helper-tab.js +6 -0
- package/dist/components/helper-tab2.js +47 -0
- package/dist/components/helper-tabs.js +6 -0
- package/dist/components/helper-tabs2.js +62 -0
- package/dist/components/index.js +13 -0
- package/dist/components/lottery-bullet.js +6 -0
- package/dist/components/lottery-bullet2.js +56 -0
- package/dist/components/lottery-draw-results-history.js +6 -0
- package/dist/components/lottery-draw-results-history2.js +174 -0
- package/dist/components/lottery-draw-results.js +6 -0
- package/dist/components/lottery-draw-results2.js +217 -0
- package/dist/components/lottery-game-details.js +6 -0
- package/dist/components/lottery-game-details2.js +48 -0
- package/dist/components/lottery-game-page.js +73 -6
- package/dist/components/lottery-grid.js +6 -0
- package/dist/components/lottery-grid2.js +196 -0
- package/dist/components/lottery-ticket-controller.js +6 -0
- package/dist/components/lottery-ticket-controller2.js +117 -0
- package/dist/components/lottery-ticket.js +6 -0
- package/dist/components/lottery-ticket2.js +183 -0
- package/dist/esm/helper-accordion_13.entry.js +23476 -0
- package/dist/esm/helper-pagination.entry.js +184 -0
- package/dist/esm/{index-8c700c5e.js → index-be84da79.js} +70 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-game-page.js +2 -2
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-08581ede.entry.js +1 -0
- package/dist/lottery-game-page/p-49bd2864.entry.js +2849 -0
- package/dist/lottery-game-page/p-91420518.js +2 -0
- package/dist/stencil.config.js +6 -0
- package/package.json +1 -1
- package/dist/cjs/lottery-game-page.cjs.entry.js +0 -304
- package/dist/esm/lottery-game-page.entry.js +0 -300
- package/dist/lottery-game-page/p-453db7fa.entry.js +0 -1
- package/dist/lottery-game-page/p-b5969eab.js +0 -2
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-81cb3b3b.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @name isMobile
|
|
9
|
+
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
10
|
+
* @param {String} userAgent window.navigator.userAgent
|
|
11
|
+
* @returns {Boolean} true or false
|
|
12
|
+
*/
|
|
13
|
+
const isMobile = (userAgent) => {
|
|
14
|
+
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
15
|
+
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
16
|
+
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
17
|
+
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
21
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
22
|
+
const TRANSLATIONS = {
|
|
23
|
+
en: {
|
|
24
|
+
firstPage: 'First',
|
|
25
|
+
previousPage: 'Previous',
|
|
26
|
+
nextPage: 'Next',
|
|
27
|
+
lastPage: 'Last'
|
|
28
|
+
},
|
|
29
|
+
ro: {
|
|
30
|
+
firstPage: 'Prima',
|
|
31
|
+
previousPage: 'Anterior',
|
|
32
|
+
nextPage: 'Urmatoarea',
|
|
33
|
+
lastPage: 'Ultima'
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
const translate = (key, customLang) => {
|
|
37
|
+
const lang = customLang;
|
|
38
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const helperPaginationCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}#PaginationContainer{width:100%;margin-top:20px;display:inline-flex;justify-content:space-between;align-items:center}.LeftItems button:not(:first-child),.RightItems button:not(:last-child){margin:0 10px}.LeftItems button,.RightItems button{padding:0;background-color:#009993;border-color:#009993}.PaginationArea{display:inline-flex;gap:10px;list-style:none}.PaginationArea li{margin:0;padding:0}.PaginationArea li button{width:24px;height:24px;display:flex;border:0;padding:0;justify-content:center;align-items:center;background-color:transparent;color:#000;cursor:pointer;pointer-events:all}.PaginationItem.ActiveItem button{background:#009993;border-color:#009993;color:#fff}.PaginationItem.ActiveItem button:disabled{pointer-events:none;cursor:not-allowed}.PaginationItem button:hover,.PaginationItem button:active{background:#009993;border-color:#009993;color:#fff;opacity:0.8}button{width:100px;height:32px;border:1px solid #524e52;border-radius:5px;background:#524e52;color:#fff;font-size:14px;font:inherit;cursor:pointer;transition:all 0.1s linear;text-transform:uppercase;text-align:center;letter-spacing:0}button:hover,button:active{background:#004D4A;border-color:#004D4A}button:disabled{background-color:#ccc;border-color:#ccc;color:#fff;cursor:not-allowed}@media screen and (max-width: 720px){button{width:90px;font-size:12px}}@media screen and (max-width: 480px){button{width:70px;font-size:10px}.paginationArea{padding:5px}}@media screen and (max-width: 320px){button{width:58px;font-size:10px}.paginationArea{padding:5px;gap:5px}}@media (hover: none){.paginationItem button:hover{background:inherit;border-color:inherit;color:inherit;opacity:1}.paginationItem.activeItem button:hover{background:#009993;border-color:#009993;color:#fff}}";
|
|
42
|
+
|
|
43
|
+
const HelperPagination = class {
|
|
44
|
+
constructor(hostRef) {
|
|
45
|
+
index.registerInstance(this, hostRef);
|
|
46
|
+
this.hpPageChange = index.createEvent(this, "hpPageChange", 7);
|
|
47
|
+
/**
|
|
48
|
+
* First page boolean value - determines if the page is disabled or active
|
|
49
|
+
*/
|
|
50
|
+
this.firstPage = false;
|
|
51
|
+
/**
|
|
52
|
+
* Previous page boolean value - determines if the page is disabled or active
|
|
53
|
+
*/
|
|
54
|
+
this.previousPage = false;
|
|
55
|
+
/**
|
|
56
|
+
* The received offset
|
|
57
|
+
*/
|
|
58
|
+
this.offset = 0;
|
|
59
|
+
/**
|
|
60
|
+
* The received limit for the number of pages
|
|
61
|
+
*/
|
|
62
|
+
this.limit = 1;
|
|
63
|
+
/**
|
|
64
|
+
* The received total number of pages
|
|
65
|
+
*/
|
|
66
|
+
this.total = 1;
|
|
67
|
+
/**
|
|
68
|
+
* Language
|
|
69
|
+
*/
|
|
70
|
+
this.language = 'en';
|
|
71
|
+
/**
|
|
72
|
+
* In component working variable for the array of pages
|
|
73
|
+
*/
|
|
74
|
+
this.pagesArray = [];
|
|
75
|
+
/**
|
|
76
|
+
* In component working variable for last page
|
|
77
|
+
*/
|
|
78
|
+
this.endInt = 0;
|
|
79
|
+
this.userAgent = window.navigator.userAgent;
|
|
80
|
+
this.currentPage = 1;
|
|
81
|
+
/**
|
|
82
|
+
* Navigation logic
|
|
83
|
+
*/
|
|
84
|
+
this.navigateTo = (navigationPage) => {
|
|
85
|
+
switch (navigationPage) {
|
|
86
|
+
case 'firstPage':
|
|
87
|
+
this.offsetInt = 0;
|
|
88
|
+
break;
|
|
89
|
+
case 'lastPage':
|
|
90
|
+
this.offsetInt = this.endInt * this.limitInt;
|
|
91
|
+
break;
|
|
92
|
+
case 'previousPage':
|
|
93
|
+
this.offsetInt -= 10;
|
|
94
|
+
break;
|
|
95
|
+
case 'nextPage':
|
|
96
|
+
this.offsetInt += 10;
|
|
97
|
+
break;
|
|
98
|
+
case 'fivePagesBack':
|
|
99
|
+
this.offsetInt -= 30;
|
|
100
|
+
this.offsetInt = this.offsetInt < 0 ? 0 : this.offsetInt;
|
|
101
|
+
break;
|
|
102
|
+
case 'fivePagesForward':
|
|
103
|
+
this.offsetInt += 30;
|
|
104
|
+
this.offsetInt = this.offsetInt / 10 >= this.endInt ? this.endInt * 10 : this.offsetInt;
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
this.hpPageChange.emit({ offset: this.offsetInt, limit: this.limitInt, total: this.totalInt });
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Handle navigation from here
|
|
111
|
+
*/
|
|
112
|
+
this.paginationNavigation = (pageNumber, index) => {
|
|
113
|
+
if (!isNaN(pageNumber)) {
|
|
114
|
+
if (pageNumber === 1) {
|
|
115
|
+
this.offsetInt = pageNumber - 1;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
this.offsetInt = (pageNumber - 1) * 10;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
if (index === 0 && this.currentPage <= 4) {
|
|
123
|
+
this.navigateTo('firstPage');
|
|
124
|
+
}
|
|
125
|
+
else if (index === 0 && this.currentPage > 4) {
|
|
126
|
+
this.navigateTo('fivePagesBack');
|
|
127
|
+
}
|
|
128
|
+
else if (index === 4 && this.endInt - this.currentPage >= 2) {
|
|
129
|
+
this.navigateTo('fivePagesForward');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
this.currentPage = this.offsetInt;
|
|
133
|
+
this.hpPageChange.emit({ offset: this.offsetInt, limit: this.limitInt, total: this.totalInt });
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
componentWillRender() {
|
|
137
|
+
this.offsetInt = this.offset;
|
|
138
|
+
this.currentPage = this.offsetInt / this.limitInt + 1;
|
|
139
|
+
this.limitInt = this.limit;
|
|
140
|
+
this.totalInt = this.total;
|
|
141
|
+
this.endInt = (Math.ceil(this.totalInt / this.limitInt) - 1);
|
|
142
|
+
this.lastPage = (this.offsetInt >= this.endInt * this.limitInt) ? false : true;
|
|
143
|
+
/**
|
|
144
|
+
* Construct numbered navigation area based on current page position
|
|
145
|
+
*/
|
|
146
|
+
if (this.currentPage === 1 || this.currentPage === 2) {
|
|
147
|
+
this.pagesArray = Array.from({ length: 4 }, (_, i) => i + 1);
|
|
148
|
+
this.pagesArray.push('...');
|
|
149
|
+
}
|
|
150
|
+
else if (this.currentPage >= 3 && ((this.endInt - this.currentPage) >= 2)) {
|
|
151
|
+
this.pagesArray = Array.from({ length: 3 }, (_, i) => this.currentPage + i - 1);
|
|
152
|
+
this.pagesArray.push('...');
|
|
153
|
+
this.pagesArray.unshift('...');
|
|
154
|
+
}
|
|
155
|
+
else if ((this.endInt - this.currentPage) < 3) {
|
|
156
|
+
this.pagesArray = Array.from({ length: 4 }, (_, i) => this.endInt - 2 + i);
|
|
157
|
+
this.pagesArray.unshift('...');
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
render() {
|
|
161
|
+
/**
|
|
162
|
+
* Center navigation area
|
|
163
|
+
*/
|
|
164
|
+
let navigationArea = index.h("ul", { class: "PaginationArea" }, this.pagesArray.map((item, index$1) => {
|
|
165
|
+
return (index.h("li", { class: 'PaginationItem' + (item === this.currentPage ? ' ActiveItem' : ' ') + ' ' + (isMobile(this.userAgent) ? 'MobileButtons' : '') }, index.h("button", { disabled: item === this.currentPage ? true : false, onClick: this.paginationNavigation.bind(this, item, index$1) }, index.h("span", null, item))));
|
|
166
|
+
}));
|
|
167
|
+
/**
|
|
168
|
+
* Left navigation area
|
|
169
|
+
*/
|
|
170
|
+
let buttonsLeftSide = index.h("div", { class: "LeftItems" }, index.h("button", { disabled: !this.previousPage, onClick: this.navigateTo.bind(this, 'firstPage') }, translate('firstPage', this.language)), index.h("button", { disabled: !this.previousPage ? true : false, onClick: this.navigateTo.bind(this, 'previousPage') }, translate('previousPage', this.language)));
|
|
171
|
+
if (isMobile(this.userAgent)) {
|
|
172
|
+
buttonsLeftSide =
|
|
173
|
+
index.h("div", { class: "LeftItems" }, index.h("button", { disabled: !this.previousPage ? true : false, onClick: this.navigateTo.bind(this, 'previousPage') }, translate('previousPage', this.language)));
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Right navigation area
|
|
177
|
+
*/
|
|
178
|
+
let buttonsRightSide = index.h("div", { class: "RightItems" }, index.h("button", { disabled: !this.lastPage ? true : false, onClick: this.navigateTo.bind(this, 'nextPage') }, translate('nextPage', this.language)), index.h("button", { disabled: !this.lastPage ? true : false, onClick: this.navigateTo.bind(this, 'lastPage') }, translate('lastPage', this.language)));
|
|
179
|
+
if (isMobile(this.userAgent)) {
|
|
180
|
+
buttonsRightSide =
|
|
181
|
+
index.h("div", { class: "RightItems" }, index.h("button", { disabled: !this.lastPage ? true : false, onClick: this.navigateTo.bind(this, 'nextPage') }, translate('nextPage', this.language)));
|
|
182
|
+
}
|
|
183
|
+
return (index.h("div", { id: "PaginationContainer" }, buttonsLeftSide, navigationArea, buttonsRightSide));
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
HelperPagination.style = helperPaginationCss;
|
|
187
|
+
|
|
188
|
+
exports.helper_pagination = HelperPagination;
|
|
@@ -50,7 +50,7 @@ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
|
50
50
|
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
51
51
|
if (listeners) {
|
|
52
52
|
listeners.map(([flags, name, method]) => {
|
|
53
|
-
const target = elm;
|
|
53
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
54
54
|
const handler = hostListenerProxy(hostRef, method);
|
|
55
55
|
const opts = hostListenerOpts(flags);
|
|
56
56
|
plt.ael(target, name, handler, opts);
|
|
@@ -74,6 +74,11 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
74
74
|
consoleError(e);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
78
|
+
if (flags & 4 /* TargetDocument */)
|
|
79
|
+
return doc;
|
|
80
|
+
return elm;
|
|
81
|
+
};
|
|
77
82
|
// prettier-ignore
|
|
78
83
|
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
79
84
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
@@ -502,11 +507,14 @@ const patch = (oldVNode, newVNode) => {
|
|
|
502
507
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
503
508
|
const oldChildren = oldVNode.$children$;
|
|
504
509
|
const newChildren = newVNode.$children$;
|
|
510
|
+
const tag = newVNode.$tag$;
|
|
505
511
|
const text = newVNode.$text$;
|
|
506
512
|
if (text === null) {
|
|
507
513
|
// element node
|
|
508
514
|
{
|
|
509
|
-
|
|
515
|
+
if (tag === 'slot')
|
|
516
|
+
;
|
|
517
|
+
else {
|
|
510
518
|
// either this is the first render of an element OR it's an update
|
|
511
519
|
// AND we already know it's possible it could have changed
|
|
512
520
|
// this updates the element's css classes, attrs, props, listeners, etc.
|
|
@@ -539,9 +547,14 @@ const patch = (oldVNode, newVNode) => {
|
|
|
539
547
|
};
|
|
540
548
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
541
549
|
const hostElm = hostRef.$hostElement$;
|
|
550
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
542
551
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
543
552
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
544
553
|
hostTagName = hostElm.tagName;
|
|
554
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
555
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
556
|
+
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
557
|
+
}
|
|
545
558
|
rootVnode.$tag$ = null;
|
|
546
559
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
547
560
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -553,6 +566,19 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
553
566
|
patch(oldVNode, rootVnode);
|
|
554
567
|
};
|
|
555
568
|
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
569
|
+
const createEvent = (ref, name, flags) => {
|
|
570
|
+
const elm = getElement(ref);
|
|
571
|
+
return {
|
|
572
|
+
emit: (detail) => {
|
|
573
|
+
return emitEvent(elm, name, {
|
|
574
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
575
|
+
composed: !!(flags & 2 /* Composed */),
|
|
576
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
577
|
+
detail,
|
|
578
|
+
});
|
|
579
|
+
},
|
|
580
|
+
};
|
|
581
|
+
};
|
|
556
582
|
/**
|
|
557
583
|
* Helper function to create & dispatch a custom Event on a provided target
|
|
558
584
|
* @param elm the target of the Event
|
|
@@ -598,6 +624,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
598
624
|
}
|
|
599
625
|
}
|
|
600
626
|
}
|
|
627
|
+
{
|
|
628
|
+
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
|
629
|
+
}
|
|
601
630
|
endSchedule();
|
|
602
631
|
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
603
632
|
};
|
|
@@ -774,6 +803,7 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
|
|
|
774
803
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
775
804
|
// check our new property value against our internal value
|
|
776
805
|
const hostRef = getHostRef(ref);
|
|
806
|
+
const elm = hostRef.$hostElement$ ;
|
|
777
807
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
778
808
|
const flags = hostRef.$flags$;
|
|
779
809
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -786,6 +816,22 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
786
816
|
// set our new value!
|
|
787
817
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
788
818
|
if (instance) {
|
|
819
|
+
// get an array of method names of watch functions to call
|
|
820
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
821
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
822
|
+
if (watchMethods) {
|
|
823
|
+
// this instance is watching for when this property changed
|
|
824
|
+
watchMethods.map((watchMethodName) => {
|
|
825
|
+
try {
|
|
826
|
+
// fire off each of the watch methods that are watching this property
|
|
827
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
828
|
+
}
|
|
829
|
+
catch (e) {
|
|
830
|
+
consoleError(e, elm);
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
}
|
|
789
835
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
790
836
|
// looks like this value actually changed, so we've got work to do!
|
|
791
837
|
// but only if we've already rendered, otherwise just chill out
|
|
@@ -798,6 +844,9 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
798
844
|
};
|
|
799
845
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
800
846
|
if (cmpMeta.$members$) {
|
|
847
|
+
if (Cstr.watchers) {
|
|
848
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
849
|
+
}
|
|
801
850
|
// It's better to have a const than two Object.entries()
|
|
802
851
|
const members = Object.entries(cmpMeta.$members$);
|
|
803
852
|
const prototype = Cstr.prototype;
|
|
@@ -879,6 +928,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
879
928
|
.map(([propName, m]) => {
|
|
880
929
|
const attrName = m[1] || propName;
|
|
881
930
|
attrNameToPropName.set(attrName, propName);
|
|
931
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
932
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
933
|
+
}
|
|
882
934
|
return attrName;
|
|
883
935
|
});
|
|
884
936
|
}
|
|
@@ -902,6 +954,12 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
902
954
|
endLoad();
|
|
903
955
|
}
|
|
904
956
|
if (!Cstr.isProxied) {
|
|
957
|
+
// we've never proxied this Constructor before
|
|
958
|
+
// let's add the getters/setters to its prototype before
|
|
959
|
+
// the first time we create an instance of the implementation
|
|
960
|
+
{
|
|
961
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
962
|
+
}
|
|
905
963
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
906
964
|
Cstr.isProxied = true;
|
|
907
965
|
}
|
|
@@ -925,6 +983,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
925
983
|
{
|
|
926
984
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
927
985
|
}
|
|
986
|
+
{
|
|
987
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
988
|
+
}
|
|
928
989
|
endNewInstance();
|
|
929
990
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
930
991
|
}
|
|
@@ -1051,6 +1112,12 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1051
1112
|
{
|
|
1052
1113
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
1053
1114
|
}
|
|
1115
|
+
{
|
|
1116
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1117
|
+
}
|
|
1118
|
+
{
|
|
1119
|
+
cmpMeta.$watchers$ = {};
|
|
1120
|
+
}
|
|
1054
1121
|
const tagName = cmpMeta.$tagName$;
|
|
1055
1122
|
const HostElement = class extends HTMLElement {
|
|
1056
1123
|
// StencilLazyHost
|
|
@@ -1203,6 +1270,7 @@ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
|
1203
1270
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1204
1271
|
|
|
1205
1272
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1273
|
+
exports.createEvent = createEvent;
|
|
1206
1274
|
exports.getElement = getElement;
|
|
1207
1275
|
exports.h = h;
|
|
1208
1276
|
exports.promiseResolve = promiseResolve;
|
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-81cb3b3b.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["
|
|
17
|
+
return index.bootstrapLazy([["helper-pagination.cjs",[[1,"helper-pagination",{"firstPage":[1540,"first-page"],"previousPage":[1540,"previous-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1],"offsetInt":[32],"lastPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32]}]]],["helper-accordion_13.cjs",[[1,"lottery-game-page",{"endpoint":[1],"gameId":[1,"game-id"],"playerId":[2,"player-id"],"sessionId":[1,"session-id"],"language":[1],"autoPick":[4,"auto-pick"],"resetButton":[4,"reset-button"],"tickets":[32],"tabIndex":[32],"hasErrors":[32],"totalAmount":[32],"successVisible":[32],"deleteVisible":[32],"deleteEventData":[32],"daysRemaining":[32],"hoursRemaining":[32],"minutesRemaining":[32],"secondsRemaining":[32],"latestDraw":[32],"totalWinningsAmount":[32],"nextDate":[32]},[[0,"ticketCompleted","gridFilledHandler"],[0,"gridDirty","gridDirtyHandler"],[0,"deleteTicket","deleteTicketHandler"],[0,"modalCloseEvent","modalCloseEvent"],[0,"stakeChange","stakeChangeHandler"],[0,"multiplierChange","multiplierChangeHandler"]]],[1,"lottery-draw-results-history",{"endpoint":[1],"gameId":[1,"game-id"],"numberOfResults":[2,"number-of-results"],"language":[1],"drawData":[32],"displayAllDrawsResults":[32],"showQuickFilters":[32],"winningDataSetsData":[32]},[[0,"filterSelection","filtersHandler"],[0,"filterSelectionReset","clearFiltersHandler"]]],[1,"lottery-ticket-controller",{"endpoint":[1],"ticketId":[2,"ticket-id"],"ticketDescription":[1,"ticket-description"],"gameId":[1,"game-id"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"numberOfGrids":[2,"number-of-grids"],"last":[4],"language":[1],"autoPick":[4,"auto-pick"],"resetButton":[4,"reset-button"]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-game-details"],[1,"lottery-draw-results",{"endpoint":[1],"gameId":[1,"game-id"],"language":[1],"playerId":[1,"player-id"],"drawMode":[4,"draw-mode"],"drawId":[1,"draw-id"],"gameName":[1,"game-name"],"multiplier":[32],"ticketData":[32],"isLoading":[32],"drawResults":[32],"rules":[32],"toggleDrawer":[32],"hasErrors":[32],"errorText":[32]}],[1,"lottery-ticket",{"endpoint":[1],"gameId":[1,"game-id"],"numberOfGrids":[2,"number-of-grids"],"multipleDraws":[4,"multiple-draws"],"ticketId":[2,"ticket-id"],"resetButton":[4,"reset-button"],"autoPick":[4,"auto-pick"],"language":[1],"multiplier":[32],"numberOfDraws":[32],"isLoading":[32],"hasErrors":[32],"ticketDone":[32]},[[0,"gridFilled","gridFilledHandler"]]],[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-tabs",{"disabled":[4],"label":[1],"selected":[4],"cmsEndpoint":[1,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16]}],[1,"helper-accordion",{"headerTitle":[1,"header-title"],"headerSubtitle":[1,"header-subtitle"],"description":[1],"footer":[4],"deleteTab":[4,"delete-tab"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"language":[1],"showContent":[32]}],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}],[1,"helper-tab",{"selectedIndex":[2,"selected-index"],"cmsEndpoint":[1,"cms-endpoint"]}],[1,"lottery-grid",{"ticketId":[2,"ticket-id"],"totalNumbers":[2,"total-numbers"],"gameId":[1,"game-id"],"maximumAllowed":[2,"maximum-allowed"],"minimumAllowed":[2,"minimum-allowed"],"selectable":[4],"selectedNumbers":[1,"selected-numbers"],"displaySelected":[4,"display-selected"],"language":[1],"gridIndex":[2,"grid-index"],"numbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[1],"selectable":[4],"isSelected":[4,"is-selected"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-81cb3b3b.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["
|
|
18
|
+
return index.bootstrapLazy([["helper-pagination.cjs",[[1,"helper-pagination",{"firstPage":[1540,"first-page"],"previousPage":[1540,"previous-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1],"offsetInt":[32],"lastPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32]}]]],["helper-accordion_13.cjs",[[1,"lottery-game-page",{"endpoint":[1],"gameId":[1,"game-id"],"playerId":[2,"player-id"],"sessionId":[1,"session-id"],"language":[1],"autoPick":[4,"auto-pick"],"resetButton":[4,"reset-button"],"tickets":[32],"tabIndex":[32],"hasErrors":[32],"totalAmount":[32],"successVisible":[32],"deleteVisible":[32],"deleteEventData":[32],"daysRemaining":[32],"hoursRemaining":[32],"minutesRemaining":[32],"secondsRemaining":[32],"latestDraw":[32],"totalWinningsAmount":[32],"nextDate":[32]},[[0,"ticketCompleted","gridFilledHandler"],[0,"gridDirty","gridDirtyHandler"],[0,"deleteTicket","deleteTicketHandler"],[0,"modalCloseEvent","modalCloseEvent"],[0,"stakeChange","stakeChangeHandler"],[0,"multiplierChange","multiplierChangeHandler"]]],[1,"lottery-draw-results-history",{"endpoint":[1],"gameId":[1,"game-id"],"numberOfResults":[2,"number-of-results"],"language":[1],"drawData":[32],"displayAllDrawsResults":[32],"showQuickFilters":[32],"winningDataSetsData":[32]},[[0,"filterSelection","filtersHandler"],[0,"filterSelectionReset","clearFiltersHandler"]]],[1,"lottery-ticket-controller",{"endpoint":[1],"ticketId":[2,"ticket-id"],"ticketDescription":[1,"ticket-description"],"gameId":[1,"game-id"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"numberOfGrids":[2,"number-of-grids"],"last":[4],"language":[1],"autoPick":[4,"auto-pick"],"resetButton":[4,"reset-button"]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-game-details"],[1,"lottery-draw-results",{"endpoint":[1],"gameId":[1,"game-id"],"language":[1],"playerId":[1,"player-id"],"drawMode":[4,"draw-mode"],"drawId":[1,"draw-id"],"gameName":[1,"game-name"],"multiplier":[32],"ticketData":[32],"isLoading":[32],"drawResults":[32],"rules":[32],"toggleDrawer":[32],"hasErrors":[32],"errorText":[32]}],[1,"lottery-ticket",{"endpoint":[1],"gameId":[1,"game-id"],"numberOfGrids":[2,"number-of-grids"],"multipleDraws":[4,"multiple-draws"],"ticketId":[2,"ticket-id"],"resetButton":[4,"reset-button"],"autoPick":[4,"auto-pick"],"language":[1],"multiplier":[32],"numberOfDraws":[32],"isLoading":[32],"hasErrors":[32],"ticketDone":[32]},[[0,"gridFilled","gridFilledHandler"]]],[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-tabs",{"disabled":[4],"label":[1],"selected":[4],"cmsEndpoint":[1,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16]}],[1,"helper-accordion",{"headerTitle":[1,"header-title"],"headerSubtitle":[1,"header-subtitle"],"description":[1],"footer":[4],"deleteTab":[4,"delete-tab"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"language":[1],"showContent":[32]}],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}],[1,"helper-tab",{"selectedIndex":[2,"selected-index"],"cmsEndpoint":[1,"cms-endpoint"]}],[1,"lottery-grid",{"ticketId":[2,"ticket-id"],"totalNumbers":[2,"total-numbers"],"gameId":[1,"game-id"],"maximumAllowed":[2,"maximum-allowed"],"minimumAllowed":[2,"minimum-allowed"],"selectable":[4],"selectedNumbers":[1,"selected-numbers"],"displaySelected":[4,"display-selected"],"language":[1],"gridIndex":[2,"grid-index"],"numbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[1],"selectable":[4],"isSelected":[4,"is-selected"]}]]]], options);
|
|
19
19
|
});
|
|
@@ -7,6 +7,80 @@
|
|
|
7
7
|
"version": "2.17.0",
|
|
8
8
|
"typescriptVersion": "4.5.4"
|
|
9
9
|
},
|
|
10
|
-
"collections": [
|
|
10
|
+
"collections": [
|
|
11
|
+
{
|
|
12
|
+
"name": "@everymatrix/helper-accordion",
|
|
13
|
+
"tags": [
|
|
14
|
+
"helper-accordion"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "@everymatrix/helper-filters",
|
|
19
|
+
"tags": [
|
|
20
|
+
"helper-filters"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "@everymatrix/helper-modal",
|
|
25
|
+
"tags": [
|
|
26
|
+
"helper-modal"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "@everymatrix/helper-pagination",
|
|
31
|
+
"tags": [
|
|
32
|
+
"helper-pagination"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "@everymatrix/helper-tabs",
|
|
37
|
+
"tags": [
|
|
38
|
+
"helper-tab",
|
|
39
|
+
"helper-tabs"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "@everymatrix/lottery-bullet",
|
|
44
|
+
"tags": [
|
|
45
|
+
"lottery-bullet"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "@everymatrix/lottery-draw-results",
|
|
50
|
+
"tags": [
|
|
51
|
+
"lottery-draw-results"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "@everymatrix/lottery-draw-results-history",
|
|
56
|
+
"tags": [
|
|
57
|
+
"lottery-draw-results-history"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "@everymatrix/lottery-game-details",
|
|
62
|
+
"tags": [
|
|
63
|
+
"lottery-game-details"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "@everymatrix/lottery-grid",
|
|
68
|
+
"tags": [
|
|
69
|
+
"lottery-grid"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "@everymatrix/lottery-ticket",
|
|
74
|
+
"tags": [
|
|
75
|
+
"lottery-ticket"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "@everymatrix/lottery-ticket-controller",
|
|
80
|
+
"tags": [
|
|
81
|
+
"lottery-ticket-controller"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
],
|
|
11
85
|
"bundles": []
|
|
12
86
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
5
|
+
const TRANSLATIONS = {
|
|
6
|
+
en: {
|
|
7
|
+
deleteTicket: 'Delete ticket'
|
|
8
|
+
},
|
|
9
|
+
ro: {
|
|
10
|
+
deleteTicket: 'Sterge biletul'
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
const translate = (key, customLang) => {
|
|
14
|
+
const lang = customLang;
|
|
15
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const helperAccordionCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Header{border-radius:4px;margin-bottom:1px;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{border-radius:4px;margin-top:10px;cursor:pointer;text-transform:capitalize;display:block;font-size:12px;text-align:center;padding:8px 20px;width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
|
|
19
|
+
|
|
20
|
+
const Accordion = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
this.__registerHost();
|
|
24
|
+
this.__attachShadow();
|
|
25
|
+
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
26
|
+
/**
|
|
27
|
+
* Title (top header)
|
|
28
|
+
*/
|
|
29
|
+
this.headerTitle = '';
|
|
30
|
+
/**
|
|
31
|
+
* SubTitle (top header)
|
|
32
|
+
*/
|
|
33
|
+
this.headerSubtitle = '';
|
|
34
|
+
/**
|
|
35
|
+
* Description
|
|
36
|
+
*/
|
|
37
|
+
this.description = '';
|
|
38
|
+
/**
|
|
39
|
+
* Enables footer content
|
|
40
|
+
*/
|
|
41
|
+
this.footer = false;
|
|
42
|
+
/**
|
|
43
|
+
* Enables footer button for tab deletion
|
|
44
|
+
*/
|
|
45
|
+
this.deleteTab = false;
|
|
46
|
+
/**
|
|
47
|
+
* Activates postMessages as events for actions from the widget
|
|
48
|
+
*/
|
|
49
|
+
this.postMessage = false;
|
|
50
|
+
/**
|
|
51
|
+
* Name of the event emitter by the action button
|
|
52
|
+
*/
|
|
53
|
+
this.eventName = 'helperAccordionAction';
|
|
54
|
+
/**
|
|
55
|
+
* Collapsed
|
|
56
|
+
*/
|
|
57
|
+
this.collapsed = true;
|
|
58
|
+
/**
|
|
59
|
+
* Language
|
|
60
|
+
*/
|
|
61
|
+
this.language = 'en';
|
|
62
|
+
}
|
|
63
|
+
// @TODO fix the `any` type :)
|
|
64
|
+
connectedCallback() {
|
|
65
|
+
this.showContent = !this.collapsed;
|
|
66
|
+
}
|
|
67
|
+
toggleContent() {
|
|
68
|
+
this.showContent = !this.showContent;
|
|
69
|
+
}
|
|
70
|
+
deleteAction() {
|
|
71
|
+
if (this.postMessage) {
|
|
72
|
+
// @TODO maybe change the name type, this one sucks
|
|
73
|
+
window.postMessage({ type: this.eventName }, window.location.href);
|
|
74
|
+
}
|
|
75
|
+
this.accordionEvent.emit();
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
return (h("div", { class: "Wrapper" }, h("div", { class: "Header" }, h("p", { class: "Title" }, this.headerTitle), h("p", { class: "Subtitle" }, this.headerSubtitle), h("p", { class: "Subtitle" }, this.description), h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
|
|
79
|
+
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
80
|
+
h("div", null, this.deleteTab &&
|
|
81
|
+
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
82
|
+
}
|
|
83
|
+
static get style() { return helperAccordionCss; }
|
|
84
|
+
}, [1, "helper-accordion", {
|
|
85
|
+
"headerTitle": [1, "header-title"],
|
|
86
|
+
"headerSubtitle": [1, "header-subtitle"],
|
|
87
|
+
"description": [1],
|
|
88
|
+
"footer": [4],
|
|
89
|
+
"deleteTab": [4, "delete-tab"],
|
|
90
|
+
"postMessage": [4, "post-message"],
|
|
91
|
+
"eventName": [1, "event-name"],
|
|
92
|
+
"collapsed": [4],
|
|
93
|
+
"language": [1],
|
|
94
|
+
"showContent": [32]
|
|
95
|
+
}]);
|
|
96
|
+
function defineCustomElement() {
|
|
97
|
+
if (typeof customElements === "undefined") {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const components = ["helper-accordion"];
|
|
101
|
+
components.forEach(tagName => { switch (tagName) {
|
|
102
|
+
case "helper-accordion":
|
|
103
|
+
if (!customElements.get(tagName)) {
|
|
104
|
+
customElements.define(tagName, Accordion);
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
} });
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { Accordion as A, defineCustomElement as d };
|